@26lights/orcha 0.42.71 → 0.42.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";var Zg=Object.defineProperty;var Kg=(t,e,n)=>e in t?Zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(Kg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),mo=require("vuedraggable");const Gg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),oe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Yg={},Jg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xg(t,e){return i.openBlock(),i.createElementBlock("svg",Jg,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const Qg=oe(Yg,[["render",Xg]]),e0={},t0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n0(t,e){return i.openBlock(),i.createElementBlock("svg",t0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const o0=oe(e0,[["render",n0]]),r0={},i0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s0(t,e){return i.openBlock(),i.createElementBlock("svg",i0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const a0=oe(r0,[["render",s0]]),l0={},c0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u0(t,e){return i.openBlock(),i.createElementBlock("svg",c0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const d0=oe(l0,[["render",u0]]),f0={},p0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h0(t,e){return i.openBlock(),i.createElementBlock("svg",p0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const m0=oe(f0,[["render",h0]]),g0={},v0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y0(t,e){return i.openBlock(),i.createElementBlock("svg",v0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const _0=oe(g0,[["render",y0]]),C0={},b0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",b0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const w0=oe(C0,[["render",k0]]),E0={},x0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const T0=oe(E0,[["render",S0]]),A0={},N0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0(t,e){return i.openBlock(),i.createElementBlock("svg",N0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const M0=oe(A0,[["render",D0]]),B0={},$0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O0(t,e){return i.openBlock(),i.createElementBlock("svg",$0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const L0=oe(B0,[["render",O0]]),I0={},P0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F0(t,e){return i.openBlock(),i.createElementBlock("svg",P0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const R0=oe(I0,[["render",F0]]),V0={},z0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U0(t,e){return i.openBlock(),i.createElementBlock("svg",z0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const q0=oe(V0,[["render",U0]]),H0={},j0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W0(t,e){return i.openBlock(),i.createElementBlock("svg",j0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const Z0=oe(H0,[["render",W0]]),K0={},G0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y0(t,e){return i.openBlock(),i.createElementBlock("svg",G0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const J0=oe(K0,[["render",Y0]]),X0={},Q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2(t,e){return i.openBlock(),i.createElementBlock("svg",Q0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const t2=oe(X0,[["render",e2]]),n2={},o2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r2(t,e){return i.openBlock(),i.createElementBlock("svg",o2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const i2=oe(n2,[["render",r2]]),s2={},a2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(t,e){return i.openBlock(),i.createElementBlock("svg",a2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const c2=oe(s2,[["render",l2]]),u2={},d2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return i.openBlock(),i.createElementBlock("svg",d2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const p2=oe(u2,[["render",f2]]),h2={},m2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g2(t,e){return i.openBlock(),i.createElementBlock("svg",m2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const v2=oe(h2,[["render",g2]]),y2={},_2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return i.openBlock(),i.createElementBlock("svg",_2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const b2=oe(y2,[["render",C2]]),k2={},w2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return i.openBlock(),i.createElementBlock("svg",w2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const x2=oe(k2,[["render",E2]]),S2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return i.openBlock(),i.createElementBlock("svg",T2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const N2=oe(S2,[["render",A2]]),D2={},M2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B2(t,e){return i.openBlock(),i.createElementBlock("svg",M2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const $2=oe(D2,[["render",B2]]),O2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I2(t,e){return i.openBlock(),i.createElementBlock("svg",L2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const P2=oe(O2,[["render",I2]]),F2={},R2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V2(t,e){return i.openBlock(),i.createElementBlock("svg",R2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const z2=oe(F2,[["render",V2]]),U2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return i.openBlock(),i.createElementBlock("svg",q2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const j2=oe(U2,[["render",H2]]),W2={},Z2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return i.openBlock(),i.createElementBlock("svg",Z2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const G2=oe(W2,[["render",K2]]),Y2={},J2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X2(t,e){return i.openBlock(),i.createElementBlock("svg",J2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const Q2=oe(Y2,[["render",X2]]),ev={},tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nv(t,e){return i.openBlock(),i.createElementBlock("svg",tv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const ov=oe(ev,[["render",nv]]),rv={},iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sv(t,e){return i.openBlock(),i.createElementBlock("svg",iv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const av=oe(rv,[["render",sv]]),lv={},cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(t,e){return i.openBlock(),i.createElementBlock("svg",cv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const dv=oe(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hv(t,e){return i.openBlock(),i.createElementBlock("svg",pv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const mv=oe(fv,[["render",hv]]),gv={},vv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yv(t,e){return i.openBlock(),i.createElementBlock("svg",vv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const _v=oe(gv,[["render",yv]]),Cv={},bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kv(t,e){return i.openBlock(),i.createElementBlock("svg",bv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const wv=oe(Cv,[["render",kv]]),Ev={},xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sv(t,e){return i.openBlock(),i.createElementBlock("svg",xv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const Tv=oe(Ev,[["render",Sv]]),Av={},Nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dv(t,e){return i.openBlock(),i.createElementBlock("svg",Nv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const Mv=oe(Av,[["render",Dv]]),Bv={},$v={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ov(t,e){return i.openBlock(),i.createElementBlock("svg",$v,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Lv=oe(Bv,[["render",Ov]]),Iv={},Pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fv(t,e){return i.openBlock(),i.createElementBlock("svg",Pv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Rv=oe(Iv,[["render",Fv]]),Vv={},zv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uv(t,e){return i.openBlock(),i.createElementBlock("svg",zv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const qv=oe(Vv,[["render",Uv]]),Hv={},jv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wv(t,e){return i.openBlock(),i.createElementBlock("svg",jv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Zv=oe(Hv,[["render",Wv]]),Kv=i.defineComponent({name:"LoadingIcon"});const Gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yv(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Gv,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Jv=oe(Kv,[["render",Yv],["__scopeId","data-v-ad6da4a9"]]),Xv={},Qv={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function e3(t,e){return i.openBlock(),i.createElementBlock("svg",Qv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const t3=oe(Xv,[["render",e3]]),n3={},o3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r3(t,e){return i.openBlock(),i.createElementBlock("svg",o3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const i3=oe(n3,[["render",r3]]),s3={},a3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l3(t,e){return i.openBlock(),i.createElementBlock("svg",a3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const c3=oe(s3,[["render",l3]]),u3={},d3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f3(t,e){return i.openBlock(),i.createElementBlock("svg",d3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const p3=oe(u3,[["render",f3]]),h3={},m3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g3(t,e){return i.openBlock(),i.createElementBlock("svg",m3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const v3=oe(h3,[["render",g3]]),y3={},_3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C3(t,e){return i.openBlock(),i.createElementBlock("svg",_3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const b3=oe(y3,[["render",C3]]),k3={},w3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E3(t,e){return i.openBlock(),i.createElementBlock("svg",w3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const x3=oe(k3,[["render",E3]]),S3={},T3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A3(t,e){return i.openBlock(),i.createElementBlock("svg",T3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const N3=oe(S3,[["render",A3]]),D3={},M3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B3(t,e){return i.openBlock(),i.createElementBlock("svg",M3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const $3=oe(D3,[["render",B3]]),O3={},L3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I3(t,e){return i.openBlock(),i.createElementBlock("svg",L3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const P3=oe(O3,[["render",I3]]),F3={},R3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V3(t,e){return i.openBlock(),i.createElementBlock("svg",R3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const z3=oe(F3,[["render",V3]]),U3={},q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H3(t,e){return i.openBlock(),i.createElementBlock("svg",q3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const j3=oe(U3,[["render",H3]]),W3={},Z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K3(t,e){return i.openBlock(),i.createElementBlock("svg",Z3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const G3=oe(W3,[["render",K3]]),Y3={},J3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X3(t,e){return i.openBlock(),i.createElementBlock("svg",J3,[...e[0]||(e[0]=[i.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const Q3=oe(Y3,[["render",X3]]),e5={},t5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n5(t,e){return i.openBlock(),i.createElementBlock("svg",t5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const o5=oe(e5,[["render",n5]]),r5={},i5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s5(t,e){return i.openBlock(),i.createElementBlock("svg",i5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const a5=oe(r5,[["render",s5]]),l5={},c5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u5(t,e){return i.openBlock(),i.createElementBlock("svg",c5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const d5=oe(l5,[["render",u5]]),f5={},p5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h5(t,e){return i.openBlock(),i.createElementBlock("svg",p5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const m5=oe(f5,[["render",h5]]),g5={},v5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y5(t,e){return i.openBlock(),i.createElementBlock("svg",v5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const _5=oe(g5,[["render",y5]]),C5={},b5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k5(t,e){return i.openBlock(),i.createElementBlock("svg",b5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const w5=oe(C5,[["render",k5]]),E5={},x5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S5(t,e){return i.openBlock(),i.createElementBlock("svg",x5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const T5=oe(E5,[["render",S5]]),A5={},N5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D5(t,e){return i.openBlock(),i.createElementBlock("svg",N5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const M5=oe(A5,[["render",D5]]),B5={},$5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O5(t,e){return i.openBlock(),i.createElementBlock("svg",$5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const L5=oe(B5,[["render",O5]]),I5={},P5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F5(t,e){return i.openBlock(),i.createElementBlock("svg",P5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const R5=oe(I5,[["render",F5]]),V5={},z5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U5(t,e){return i.openBlock(),i.createElementBlock("svg",z5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const q5=oe(V5,[["render",U5]]),H5={},j5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W5(t,e){return i.openBlock(),i.createElementBlock("svg",j5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const Z5=oe(H5,[["render",W5]]),K5={},G5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y5(t,e){return i.openBlock(),i.createElementBlock("svg",G5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const J5=oe(K5,[["render",Y5]]),X5={},Q5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ey(t,e){return i.openBlock(),i.createElementBlock("svg",Q5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const ty=oe(X5,[["render",ey]]),ny=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Qg,AccountCircle:o0,AccountTreeOutlineRounded:a0,AccountTreeRounded:d0,Add:m0,AddBoxOutlineRounded:_0,ArchiveOutlineRounded:w0,ArrowBackRounded:T0,ArrowDropDownRounded:M0,ArrowForwardRounded:L0,AssignmentOutlineRounded:R0,AttachFileRounded:q0,CalendarTodayOutlineRounded:Z0,CancelRounded:J0,ChatOutline:t2,CheckBoxOutlineBlank:i2,CheckBoxOutlineBlankSharp:c2,CheckBoxOutlineRounded:p2,CheckSmallRounded:v2,ChecklistRounded:b2,ChevronLeft:x2,ChevronRight:N2,CloseRounded:$2,ContactsOutlineRounded:P2,ContentCopyOutline:z2,DeleteOutlineRounded:j2,DragIndicator:G2,EditDocumentRounded:Q2,EditOutline:ov,ErrorOutlineRounded:av,FilterListRounded:dv,FlagRounded:mv,FlowsheetOutlineRounded:_v,GifBox:wv,GroupsOutline:Tv,HomeOutlineRounded:Mv,ImageRounded:Lv,Info:Rv,KeyboardArrowDown:qv,KeyboardArrowUp:Zv,Loading:Jv,Lock:t3,LogoutRounded:i3,Menu:c3,MoreHoriz:p3,MoreTimeRounded:v3,MoreVert:b3,MountainFlagOutlineRounded:x3,PersonAddOutlineRounded:N3,PictureAsPdfRounded:$3,RadioButtonChecked:P3,RadioButtonCheckedOutline:z3,RadioButtonUnchecked:j3,RemoveRounded:G3,SearchRounded:Q3,SelectCheckBox:o5,SendRounded:a5,Settings:d5,SlideshowRounded:m5,Target:_5,TaskOutlineRounded:w5,TextSnippetRounded:T5,TimerOutline:M5,ViewComfyAltRounded:L5,ViewCompactAltRounded:R5,ViewTimelineRounded:q5,WarningOutlineRounded:Z5,WarningRounded:J5,WaterfallChartRounded:ty},Symbol.toStringTag,{value:"Module"})),oy={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},wa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Wc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},ry={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Wc,...ry});const up={ROUND:"round",ROUNDED:"rounded"},iy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Se=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:wa.MD}},setup(t){const e=t,n=i.computed(()=>ny[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const sy=["type"],ay={key:0,class:"ao-button__label"},he=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>oy.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>wa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>up.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",ay,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Se,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,sy))}});function ly(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const st=i.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=ly(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:C=>C.stopPropagation(),blur:h}:{click:g,focus:g}:{}),f=l((C,_)=>{const v=_.target.value;r("update:title",v)}),p=c(),h=async()=>{s.value&&a(!1)},m=()=>{r("toggle-is-editing",!1)},g=C=>{C.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,C=>{C||p()}),(C,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(m,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const cy={key:0,class:"ao-card-horiz__drag ao-card__drag"},uy={class:"ao-card-horiz__header"},dy={key:0,class:"ao-card-horiz__avatar"},fy={class:"ao-card-horiz__title-group"},py={key:0,class:"ao-card-horiz__subtitle"},hy={key:1,class:"ao-card-horiz__header"},my={key:1,class:"ao-card-horiz__body"},gy={key:2,class:"ao-card-horiz__footer"},vy={key:3,class:"ao-card-horiz__secondary"},dp=i.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",cy,[i.createVNode(Se,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",uy,[t.icon?(i.openBlock(),i.createElementBlock("div",dy,[i.createVNode(Se,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",fy,[i.createVNode(st,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",py,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",hy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",my,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",gy,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",vy,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(iy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(Se,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(Se,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},yy={months:"months",weeks:"weeks",days:"days"},_y={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},fp={BEFORE:"before",AFTER:"after"},pp={START:"start",end:"end"},hp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},$e={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var mp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(mp||{});const Cy={add:"add",remove:"remove",moved:"moved"};var gp=(t=>(t.HOURS="hours",t.DAYS="days",t))(gp||{});const No={project:"projectId",type:"typeId",assignee:"assigneeId"};function Zs(t){"@babel/helpers - typeof";return Zs=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},Zs(t)}function Pn(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 Ue(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function dt(t){Ue(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Zs(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 by(t,e){Ue(2,arguments);var n=dt(t).getTime(),o=Pn(e);return new Date(n+o)}var ky={};function Gi(){return ky}function Oi(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 md(t){Ue(1,arguments);var e=dt(t);return e.setHours(0,0,0,0),e}var wy=864e5;function Ey(t,e){Ue(2,arguments);var n=md(t),o=md(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/wy)}function xy(t,e){Ue(2,arguments);var n=dt(t),o=dt(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var vp=6e4,yp=36e5;function Sy(t){return Ue(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _p(t){if(Ue(1,arguments),!Sy(t)&&typeof t!="number")return!1;var e=dt(t);return!isNaN(Number(e))}function sc(t,e){Ue(2,arguments);var n=Pn(e);return by(t,-n)}var Ty=864e5;function Ay(t){Ue(1,arguments);var e=dt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/Ty)+1}function Ks(t){Ue(1,arguments);var e=1,n=dt(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Cp(t){Ue(1,arguments);var e=dt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ks(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ks(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Ny(t){Ue(1,arguments);var e=Cp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ks(n);return o}var Dy=6048e5;function My(t){Ue(1,arguments);var e=dt(t),n=Ks(e).getTime()-Ny(e).getTime();return Math.round(n/Dy)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=Pn((n=(o=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=dt(t),h=p.getUTCDay(),m=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function bp(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=dt(t),f=d.getUTCFullYear(),p=Gi(),h=Pn((n=(o=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.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(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Gs(m,e),C=new Date(0);C.setUTCFullYear(f,0,h),C.setUTCHours(0,0,0,0);var _=Gs(C,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function By(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=Pn((n=(o=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=bp(t,e),h=new Date(0);h.setUTCFullYear(p,0,f),h.setUTCHours(0,0,0,0);var m=Gs(h,e);return m}var $y=6048e5;function Oy(t,e){Ue(1,arguments);var n=dt(t),o=Gs(n,e).getTime()-By(n,e).getTime();return Math.round(o/$y)+1}function xe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Ly={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return xe(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):xe(o+1,2)},d:function(e,n){return xe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="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 o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return xe(s,n.length)}};const Xn=Ly;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Iy={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Xn.y(e,n)},Y:function(e,n,o,r){var s=bp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return xe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):xe(a,n.length)},R:function(e,n){var o=Cp(e);return xe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return xe(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return xe(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return xe(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Xn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return xe(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=Oy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):xe(s,n.length)},I:function(e,n,o){var r=My(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):xe(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Xn.d(e,n)},D:function(e,n,o){var r=Ay(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):xe(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return xe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return xe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return xe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),s;switch(r===12?s=dr.noon:r===0?s=dr.midnight:s=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),s;switch(r>=17?s=dr.evening:r>=12?s=dr.afternoon:r>=4?s=dr.morning:s=dr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Xn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Xn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Xn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xn.s(e,n)},S:function(e,n){return Xn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return vd(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return vd(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gd(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gd(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return xe(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return xe(a,n.length)}};function gd(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+xe(s,2)}function vd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+xe(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=xe(Math.floor(r/60),2),a=xe(r%60,2);return o+s+n+a}const Py=Iy;var yd=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"})}},kp=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"})}},Fy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return yd(e,n);var a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",yd(r,n)).replace("{{time}}",kp(s,n))},Ry={p:kp,P:Fy};const Vy=Ry;var zy=["D","DD"],Uy=["YY","YYYY"];function qy(t){return zy.indexOf(t)!==-1}function Hy(t){return Uy.indexOf(t)!==-1}function _d(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 jy={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"}},Wy=function(e,n,o){var r,s=jy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Zy=Wy;function vl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var Ky={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yy={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jy={date:vl({formats:Ky,defaultWidth:"full"}),time:vl({formats:Gy,defaultWidth:"full"}),dateTime:vl({formats:Yy,defaultWidth:"full"})};const Xy=Jy;var Qy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e7=function(e,n,o,r){return Qy[e]};const t7=e7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var n7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r7={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"]},i7={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"]},s7={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"}},a7={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"}},l7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},c7={ordinalNumber:l7,era:ai({values:n7,defaultWidth:"wide"}),quarter:ai({values:o7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:r7,defaultWidth:"wide"}),day:ai({values:i7,defaultWidth:"wide"}),dayPeriod:ai({values:s7,defaultWidth:"wide",formattingValues:a7,defaultFormattingWidth:"wide"})};const u7=c7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?f7(l,function(f){return f.test(a)}):d7(l,function(f){return f.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function d7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function f7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function p7(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var r=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(r.length);return{value:a,rest:l}}}var h7=/^(\d+)(th|st|nd|rd)?/i,m7=/\d+/i,g7={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},v7={any:[/^b/i,/^(a|c)/i]},y7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_7={any:[/1/i,/2/i,/3/i,/4/i]},C7={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},b7={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]},k7={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},w7={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]},E7={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},x7={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}},S7={ordinalNumber:p7({matchPattern:h7,parsePattern:m7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:g7,defaultMatchWidth:"wide",parsePatterns:v7,defaultParseWidth:"any"}),quarter:li({matchPatterns:y7,defaultMatchWidth:"wide",parsePatterns:_7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:C7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),day:li({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:E7,defaultMatchWidth:"any",parsePatterns:x7,defaultParseWidth:"any"})};const T7=S7;var A7={code:"en-US",formatDistance:Zy,formatLong:Xy,formatRelative:t7,localize:u7,match:T7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wp=A7;var N7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M7=/^'([^]*?)'?$/,B7=/''/g,$7=/[a-zA-Z]/;function Ep(t,e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w;Ue(2,arguments);var k=String(e),b=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:wp,S=Pn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=Pn((h=(m=(g=(C=n==null?void 0:n.weekStartsOn)!==null&&C!==void 0?C:n==null||(_=n.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&m!==void 0?m:(v=b.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var A=dt(t);if(!_p(A))throw new RangeError("Invalid time value");var z=Oi(A),L=sc(A,z),M={firstWeekContainsDate:S,weekStartsOn:T,locale:E,_originalDate:A},B=k.match(D7).map(function(I){var F=I[0];if(F==="p"||F==="P"){var K=Vy[F];return K(I,E.formatLong)}return I}).join("").match(N7).map(function(I){if(I==="''")return"'";var F=I[0];if(F==="'")return O7(I);var K=Py[F];if(K)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Hy(I)&&_d(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&qy(I)&&_d(I,e,String(t)),K(L,I,E.localize,M);if(F.match($7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return I}).join("");return B}function O7(t){var e=t.match(M7);return e?e[1].replace(B7,"'"):t}function L7(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ue(2,arguments);var h=dt(t),m=dt(e),g=Gi(),C=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:wp,_=Pn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");if(!C.formatRelative)throw new RangeError("locale must contain formatRelative property");var y=Ey(h,m);if(isNaN(y))throw new RangeError("Invalid time value");var v;y<-6?v="other":y<-1?v="lastWeek":y<0?v="yesterday":y<1?v="today":y<2?v="tomorrow":y<7?v="nextWeek":v="other";var w=sc(h,Oi(h)),k=sc(m,Oi(m)),b=C.formatRelative(v,w,k,{locale:C,weekStartsOn:_});return Ep(h,b,{locale:C,weekStartsOn:_})}function Li(t,e){var n;Ue(1,arguments);var o=Pn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==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 r=R7(t),s;if(r.date){var a=V7(r.date,o);s=z7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=U7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=q7(r.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var ks={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},I7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,F7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function R7(t){var e={},n=t.split(ks.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ks.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ks.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ks.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function V7(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function z7(t,e){if(e===null)return new Date(NaN);var n=t.match(I7);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return K7(e,l,c)?H7(e,l,c):new Date(NaN);var u=new Date(0);return!W7(e,s,a)||!Z7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function U7(t){var e=t.match(P7);if(!e)return NaN;var n=yl(e[1]),o=yl(e[2]),r=yl(e[3]);return G7(n,o,r)?n*yp+o*vp+r*1e3:NaN}function yl(t){return t&&parseFloat(t.replace(",","."))||0}function q7(t){if(t==="Z")return 0;var e=t.match(F7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Y7(o,r)?n*(o*yp+r*vp):NaN}function H7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var j7=[31,null,31,30,31,30,31,31,30,31,30,31];function xp(t){return t%400===0||t%4===0&&t%100!==0}function W7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(j7[e]||(xp(t)?29:28))}function Z7(t,e){return e>=1&&e<=(xp(t)?366:365)}function K7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function G7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Y7(t,e){return e>=0&&e<=59}var yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function X7(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var rt={},Sp={},ui={},Yi={},Vr={},Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.lexoHelper=void 0;Ea.lexoHelper={arrayCopy:Q7};function Q7(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class e_{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}Ji.default=e_;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.LexoInteger=void 0;const ws=Ea,t_=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return ws.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return ws.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=fe.add(this.sys,this.mag,e.mag);return fe.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new t_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Vr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Vr,n_=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(di.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new n_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Yi.LexoDecimal=Pt;var Es={},Cd;function Tp(){if(Cd)return Es;Cd=1,Object.defineProperty(Es,"__esModule",{value:!0});const t=Vr,e=Np();class n{constructor(r){this.value=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(r){const s=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Es.default=n,Es}var Zc={},Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.LexoNumeralSystem10=void 0;class o_{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}xa.LexoNumeralSystem10=o_;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem36=void 0;class r_{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Sa.LexoNumeralSystem36=r_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem64=void 0;class i_{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ta.LexoNumeralSystem64=i_;(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ap,t),n(xa,t),n(Sa,t),n(Ta,t)})(Zc);var bd;function Np(){if(bd)return ui;bd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Tp(),n=Ji,o=Zc;class r{constructor(a,l){this.value=a.format()+"|"+r.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.mid(a,l);c=d}let f;for(let m=c.getScale();m>0;u=f){const g=m-1,C=c.setScale(g,!0);if(f=u.setScale(g,!1),C.compareTo(f)===0)return r.checkMid(a,l,C);if(C.compareTo(f)>0)break;m=g,c=C}let p=r.middleInternal(a,l,c,u),h;for(let m=p.getScale();m>0;m=h){h=m-1;const g=p.setScale(h);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new r(this.bucket,r.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return ui.LexoRank=r,ui}(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Np(),t),n(Tp(),t),n(Yi,t),n(Vr,t)})(Sp);(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Sp,t),n(Zc,t)})(rt);const _i=60,s_=8,kd=_i*s_;function Aa(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/kd),r=Math.floor(t%kd/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Dp(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function a_(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function l_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Dp(n.milestones):0;return e+o},0))??0}function c_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return rt.LexoRank.parse(n.rank).genPrev().format()}else return rt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return rt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return rt.LexoRank.parse(o.rank).between(rt.LexoRank.parse(n.rank)).format()}}function Na(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return _p(n)?Ep(n,e):""}function Kc(t,e){return t.status.id===e.id}function u_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Kc(n,e))}function d_(t,e){return{...t,status:u_(t,e)?$i.done:$i.todo}}const Mp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function f_(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function p_(t,e=.15){var n;if(t.startsWith("#"))return f_(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function Bp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function wd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Bp(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const h_=["title"],m_={key:0,className:"ao-avatar__initials"},g_=["src"],Un=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:wa.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=c_(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",m_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,g_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,h_))}});const v_={class:"ao-card-template__subitems"},y_={class:"ao-card-template__subitem"},__={class:"ao-card-template__subitem-number"},C_={class:"ao-card-template__subitem"},b_={class:"ao-card-template__subitem"},k_={class:"ao-card-template__body"},w_={class:"ao-card-template__col ao-card-template__col--phases"},E_={class:"ao-card-template__col-title"},x_={class:"ao-card-template__col-label"},S_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},T_={class:"ao-card-template__footer"},A_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},N_={class:"ao-card-template__col-title"},D_={class:"ao-card-template__col-label"},M_={class:"ao-card-template__col-body"},B_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},$_={class:"ao-card-template__col-title"},O_={class:"ao-card-template__col-label"},L_={class:"ao-card-template__col-body"},I_={class:"ao-card-template-item__secondary"},_l=5,P_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,_l))??[]}),l=i.computed(()=>n.phases&&n.phases.length>_l?n.phases.length-_l:0);return(c,u)=>(i.openBlock(),i.createBlock(dp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",v_,[i.createElementVNode("li",y_,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",__,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",C_,[i.createVNode(Se,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",b_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",k_,[i.createElementVNode("div",w_,[i.createElementVNode("div",E_,[i.createVNode(Se,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",x_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",S_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",I_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",T_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",A_,[i.createElementVNode("div",N_,[i.createElementVNode("span",D_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",M_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",B_,[i.createElementVNode("div",$_,[i.createElementVNode("span",O_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",L_,[i.createVNode(Un,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const F_={class:"ao-page-header"},R_={class:"ao-page-header-main"},V_={key:0,class:"ao-page-header-secondary"},Qi=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",F_,[i.createElementVNode("div",R_,[t.canGoBack?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",V_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const z_=["type"],U_={key:0,class:"ao-button-card__label"},go=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Wc.BLACK},size:{default:()=>wa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>up.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",U_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Se,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,z_))}});const q_={class:"ao-card-template-item__footer"},H_={key:0,class:"ao-card-template-item__subitem"},j_={class:"ao-card-template-item__subitem-number"},W_={class:"ao-card-template-item__secondary"},Gc=i.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(dp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",q_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",H_,[i.createVNode(Se,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",j_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",W_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const Z_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?Dp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Gc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),K_=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Gc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),G_={class:"ao-list__footer"},Y_=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:i.withCtx(()=>[i.createVNode(st,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(K_,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:i.withCtx(()=>[i.createElementVNode("div",G_,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),J_=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Gc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),X_={class:"ao-list__footer"},Q_=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:i.withCtx(()=>[i.createVNode(st,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(J_,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:i.withCtx(()=>[i.createElementVNode("div",X_,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),eC={class:"ao-modal"},tC={key:0,class:"ao-modal__header"},nC={class:"ao-modal__header-meta"},oC={class:"ao-modal__title-group"},rC={class:"ao-modal__body"},iC={key:1,class:"ao-modal__footer"},Da=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",eC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",tC,[i.createElementVNode("div",nC,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",oC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",rC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",iC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Ys=Math.round,xs=Math.floor,co=t=>({x:t,y:t}),sC={left:"right",right:"left",bottom:"top",top:"bottom"},aC={start:"end",end:"start"};function Yc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Ma(t){return t.split("-")[1]}function lC(t){return t==="x"?"y":"x"}function $p(t){return t==="y"?"height":"width"}function Jc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Op(t){return lC(Jc(t))}function cC(t,e,n){n===void 0&&(n=!1);const o=Ma(t),r=Op(t),s=$p(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Js(a)),[a,Js(a)]}function uC(t){const e=Js(t);return[ac(t),e,ac(e)]}function ac(t){return t.replace(/start|end/g,e=>aC[e])}function dC(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function fC(t,e,n,o){const r=Ma(t);let s=dC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(ac)))),s}function Js(t){return t.replace(/left|right|bottom|top/g,e=>sC[e])}function pC(t){return{top:0,right:0,bottom:0,left:0,...t}}function hC(t){return typeof t!="number"?pC(t):{top:t,right:t,bottom:t,left:t}}function Xs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ed(t,e,n){let{reference:o,floating:r}=t;const s=Jc(e),a=Op(e),l=$p(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Ma(e)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}const mC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=Ed(u,o,c),p=o,h={},m=0;for(let g=0;g<l.length;g++){const{name:C,fn:_}=l[g],{x:y,y:v,data:w,reset:k}=await _({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=y??d,f=v??f,h={...h,[C]:{...h[C],...w}},k&&m<=50){m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):k.rects),{x:d,y:f}=Ed(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}};async function Lp(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Yc(e,t),m=hC(h),C=l[p?f==="floating"?"reference":"floating":f],_=Xs(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{...a.floating,x:o,y:r}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Xs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:c}):y);return{top:(_.top-k.top+m.top)/w.y,bottom:(k.bottom-_.bottom+m.bottom)/w.y,left:(_.left-k.left+m.left)/w.x,right:(k.right-_.right+m.right)/w.x}}const gC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...C}=Yc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=Nr(r),y=Nr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=p||(y||!g?[Js(l)]:uC(l));!p&&m!=="none"&&w.push(...fC(l,g,m,v));const k=[l,...w],b=await Lp(e,C),E=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[_]),f){const L=cC(r,a,v);E.push(b[L[0]],b[L[1]])}if(S=[...S,{placement:r,overflows:E}],!E.every(L=>L<=0)){var T,A;const L=(((T=s.flip)==null?void 0:T.index)||0)+1,M=k[L];if(M)return{data:{index:L,overflows:S},reset:{placement:M}};let B=(A=S.filter(I=>I.overflows[0]<=0).sort((I,F)=>I.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!B)switch(h){case"bestFit":{var z;const I=(z=S.map(F=>[F.placement,F.overflows.filter(K=>K>0).reduce((K,P)=>K+P,0)]).sort((F,K)=>F[1]-K[1])[0])==null?void 0:z[0];I&&(B=I);break}case"initialPlacement":B=l;break}if(r!==B)return{reset:{placement:B}}}return{}}}},vC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=Yc(t,e),c=await Lp(e,l),u=Nr(n),d=Ma(n),f=Jc(n)==="y",{width:p,height:h}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const C=h-c[m],_=p-c[g],y=!e.middlewareData.shift;let v=C,w=_;if(f){const b=p-c.left-c.right;w=d||y?Ii(_,b):b}else{const b=h-c.top-c.bottom;v=d||y?Ii(C,b):b}if(y&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),S=Ft(c.top,0),T=Ft(c.bottom,0);f?w=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):v=h-2*(S!==0||T!==0?S+T:Ft(c.top,c.bottom))}await a({...e,availableWidth:w,availableHeight:v});const k=await r.getDimensions(s.floating);return p!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function uo(t){return Ip(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function qn(t){var e;return(e=(Ip(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ip(t){return t instanceof Node||t instanceof Bt(t).Node}function Fn(t){return t instanceof Element||t instanceof Bt(t).Element}function _n(t){return t instanceof HTMLElement||t instanceof Bt(t).HTMLElement}function xd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function es(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function yC(t){return["table","td","th"].includes(uo(t))}function Xc(t){const e=Qc(),n=Ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function _C(t){let e=Dr(t);for(;_n(e)&&!Ba(e);){if(Xc(e))return e;e=Dr(e)}return null}function Qc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ba(t){return["html","body","#document"].includes(uo(t))}function Ht(t){return Bt(t).getComputedStyle(t)}function $a(t){return Fn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(uo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xd(t)&&t.host||qn(t);return xd(e)?e.host:e}function Pp(t){const e=Dr(t);return Ba(e)?t.ownerDocument?t.ownerDocument.body:t.body:_n(e)&&es(e)?e:Pp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Pp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Bt(r);return s?e.concat(a,a.visualViewport||[],es(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Fp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=_n(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Ys(n)!==s||Ys(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function eu(t){return Fn(t)?t:t.contextElement}function br(t){const e=eu(t);if(!_n(e))return co(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Fp(e);let a=(s?Ys(n.width):n.width)/o,l=(s?Ys(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const CC=co(0);function Rp(t){const e=Bt(t);return!Qc()||!e.visualViewport?CC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bt(t)?!1:e}function qo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=eu(t);let a=co(1);e&&(o?Fn(o)&&(a=br(o)):a=br(t));const l=bC(s,n,o)?Rp(s):co(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Bt(s),h=o&&Fn(o)?Bt(o):o;let m=p.frameElement;for(;m&&o&&h!==p;){const g=br(m),C=m.getBoundingClientRect(),_=Ht(m),y=C.left+(m.clientLeft+parseFloat(_.paddingLeft))*g.x,v=C.top+(m.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=y,u+=v,m=Bt(m).frameElement}}return Xs({width:d,height:f,x:c,y:u})}function kC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=_n(n),s=qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=co(1);const c=co(0);if((r||!r&&o!=="fixed")&&((uo(n)!=="body"||es(s))&&(a=$a(n)),_n(n))){const u=qo(n);l=br(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function wC(t){return Array.from(t.getClientRects())}function Vp(t){return qo(qn(t)).left+$a(t).scrollLeft}function EC(t){const e=qn(t),n=$a(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Vp(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function xC(t,e){const n=Bt(t),o=qn(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=Qc();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function SC(t,e){const n=qo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=_n(t)?br(t):co(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Sd(t,e,n){let o;if(e==="viewport")o=xC(t,n);else if(e==="document")o=EC(qn(t));else if(Fn(e))o=SC(e,n);else{const r=Rp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Xs(o)}function zp(t,e){const n=Dr(t);return n===e||!Fn(n)||Ba(n)?!1:Ht(n).position==="fixed"||zp(n,e)}function TC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>Fn(l)&&uo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Dr(t):t;for(;Fn(a)&&!Ba(a);){const l=Ht(a),c=Xc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||es(a)&&!c&&zp(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function AC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?TC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Sd(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},Sd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function NC(t){return Fp(t)}function DC(t,e,n){const o=_n(e),r=qn(e),s=n==="fixed",a=qo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=co(0);if(o||!o&&!s)if((uo(e)!=="body"||es(r))&&(l=$a(e)),o){const u=qo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=Vp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Td(t,e){return!_n(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function Up(t,e){const n=Bt(t);if(!_n(t))return n;let o=Td(t,e);for(;o&&yC(o)&&Ht(o).position==="static";)o=Td(o,e);return o&&(uo(o)==="html"||uo(o)==="body"&&Ht(o).position==="static"&&!Xc(o))?n:o||_C(t)||n}const MC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Up,s=this.getDimensions;return{reference:DC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function BC(t){return Ht(t).direction==="rtl"}const $C={convertOffsetParentRelativeRectToViewportRelativeRect:kC,getDocumentElement:qn,getClippingRect:AC,getOffsetParent:Up,getElementRects:MC,getClientRects:wC,getDimensions:NC,getScale:br,isElement:Fn,isRTL:BC};function OC(t,e){let n=null,o;const r=qn(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const h=xs(d),m=xs(r.clientWidth-(u+f)),g=xs(r.clientHeight-(d+p)),C=xs(u),y={rootMargin:-h+"px "+-m+"px "+-g+"px "+-C+"px",threshold:Ft(0,Ii(1,c))||1};let v=!0;function w(k){const b=k[0].intersectionRatio;if(b!==c){if(!v)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(t)}return a(!0),s}function LC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=eu(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=u&&l?OC(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(_=>{let[y]=_;y&&y.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),u&&!c&&h.observe(u),h.observe(e));let m,g=c?qo(t):null;c&&C();function C(){const _=qo(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,m=requestAnimationFrame(C)}return n(),()=>{d.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const IC=(t,e,n)=>{const o=new Map,r={platform:$C,...n},s={...r.platform,_c:o};return mC(t,e,{...r,platform:s})},PC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),r.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const m=LC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||IC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[gC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),vC({apply({availableWidth:f,availableHeight:p,elements:h,rects:m}){Object.assign(h.floating.style,{minHeight:`${r.value}px`,width:`${m.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function dn(t){return[null,void 0].indexOf(t)!==-1}function FC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);e.emit("change",h,a),p&&(e.emit("input",h),e.emit("update:modelValue",h))},u=f=>o.value||dn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>dn(f)?s.value==="single"?{}:[]:f;return{update:c}}function RC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function VC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let h=o.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(o&&o.value){let m=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),m.split("").every(C=>!!C.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function zC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Cl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function UC(t){return Object.prototype.toString.call(t)==="[object Object]"}function qC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function HC(t,e,n){const{options:o,mode:r,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:m,loading:g,delay:C,resolveOnLoad:_,minChars:y,filterResults:v,clearOnSearch:w,clearOnSelect:k,valueProp:b,allowAbsent:E,groupLabel:S,canDeselect:T,max:A,strict:z,closeOnSelect:L,closeOnDeselect:M,groups:B,reverse:I,infinite:F,groupOptions:K,groupHideEmpty:P,groupSelect:D,onCreate:G,disabledProp:V,searchStart:H,searchFilter:ce}=i.toRefs(t),ee=i.getCurrentInstance().proxy,ie=n.iv,U=n.ev,ne=n.search,O=n.clearSearch,Y=n.update,ge=n.pointer,qe=n.setPointer,de=n.clearPointer,_e=n.focus,we=n.deactivate,ft=n.close,Ne=n.localize,pt=i.ref([]),bt=i.ref([]),Pe=i.ref(!1),ht=i.ref(null),kt=i.ref(F.value&&a.value===-1?10:a.value),Wn=i.computed(()=>c.value||u.value||!1),bo=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Fe=i.computed(()=>{if(B.value){let N=Zt.value||[],J=[];return N.forEach(me=>{ti(me[K.value]).forEach(Me=>{J.push(Object.assign({},Me,me[V.value]?{[V.value]:!0}:{}))})}),J}else{let N=ti(bt.value||[]);return pt.value.length&&(N=N.concat(pt.value)),N}}),mt=i.computed(()=>{let N=Fe.value;return I.value&&(N=N.reverse()),Sn.value.length&&(N=Sn.value.concat(N)),ei(N)}),nt=i.computed(()=>{let N=mt.value;return kt.value>0&&(N=N.slice(0,kt.value)),N}),Zt=i.computed(()=>{if(!B.value)return[];let N=[],J=bt.value||[];return pt.value.length&&N.push({[S.value]:" ",[K.value]:[...pt.value],__CREATE__:!0}),N.concat(J)}),xn=i.computed(()=>{let N=[...Zt.value].map(J=>({...J}));return Sn.value.length&&(N[0]&&N[0].__CREATE__?N[0][K.value]=[...Sn.value,...N[0][K.value]]:N=[{[S.value]:" ",[K.value]:[...Sn.value],__CREATE__:!0}].concat(N)),N}),Zn=i.computed(()=>{if(!B.value)return[];let N=xn.value;return Eo((N||[]).map((J,me)=>{const Me=ti(J[K.value]);return{...J,index:me,group:!0,[K.value]:ei(Me,!1).map(Tn=>Object.assign({},Tn,J[V.value]?{[V.value]:!0}:{})),__VISIBLE__:ei(Me).map(Tn=>Object.assign({},Tn,J[V.value]?{[V.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!dn(ie.value[b.value]);case"multiple":case"tags":return!dn(ie.value)&&ie.value.length>0}}),Kn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,ee):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),ir=i.computed(()=>!Fe.value.length&&!Pe.value&&!Sn.value.length),sr=i.computed(()=>Fe.value.length>0&&nt.value.length==0&&(ne.value&&B.value||!B.value)),Sn=i.computed(()=>Wn.value===!1||!ne.value?[]:gs(ne.value)!==-1?[]:[{[b.value]:ne.value,[cn.value[0]]:ne.value,[d.value]:ne.value,__CREATE__:!0}]),cn=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ps=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Pe.value),Kt=N=>{switch(typeof N!="object"&&(N=Tt(N)),r.value){case"single":Y(N);break;case"multiple":case"tags":Y(ie.value.concat(N));break}e.emit("select",Et(N),N,ee)},wt=N=>{switch(typeof N!="object"&&(N=Tt(N)),r.value){case"single":Jr();break;case"tags":case"multiple":Y(Array.isArray(N)?ie.value.filter(J=>N.map(me=>me[b.value]).indexOf(J[b.value])===-1):ie.value.filter(J=>J[b.value]!=N[b.value]));break}e.emit("deselect",Et(N),N,ee)},Et=N=>m.value?N:N[b.value],ar=N=>{wt(N)},hs=(N,J)=>{if(J.button!==0){J.preventDefault();return}ar(N)},Jr=()=>{Y(ps.value),e.emit("clear",ee)},xt=N=>{if(N.group!==void 0)return r.value==="single"?!1:ms(N[K.value])&&N[K.value].length;switch(r.value){case"single":return!dn(ie.value)&&ie.value[b.value]==N[b.value];case"tags":case"multiple":return!dn(ie.value)&&ie.value.map(J=>J[b.value]).indexOf(N[b.value])!==-1}},lr=N=>N[V.value]===!0,Gn=()=>A===void 0||A.value===-1||!ko.value&&A.value>0?!1:ie.value.length>=A.value,cr=N=>{if(!lr(N)){if(G&&G.value&&!xt(N)&&N.__CREATE__&&(N={...N},delete N.__CREATE__,N=G.value(N,ee),N instanceof Promise)){Pe.value=!0,N.then(J=>{Pe.value=!1,St(J)});return}St(N)}},St=N=>{switch(N.__CREATE__&&(N={...N},delete N.__CREATE__),r.value){case"single":if(N&&xt(N)){T.value&&wt(N),M.value&&(de(),ft());return}N&&wo(N),k.value&&O(),L.value&&(de(),ft()),N&&Kt(N);break;case"multiple":if(N&&xt(N)){wt(N),M.value&&(de(),ft());return}if(Gn()){e.emit("max",ee);return}N&&(wo(N),Kt(N)),k.value&&O(),l.value&&de(),L.value&&ft();break;case"tags":if(N&&xt(N)){wt(N),M.value&&(de(),ft());return}if(Gn()){e.emit("max",ee);return}N&&wo(N),k.value&&O(),N&&Kt(N),l.value&&de(),L.value&&ft();break}L.value||_e()},Yn=N=>{if(!(lr(N)||r.value==="single"||!D.value)){switch(r.value){case"multiple":case"tags":fl(N[K.value])?wt(N[K.value]):Kt(N[K.value].filter(J=>ie.value.map(me=>me[b.value]).indexOf(J[b.value])===-1).filter(J=>!J[V.value]).filter((J,me)=>ie.value.length+1+me<=A.value||A.value===-1)),l.value&&ge.value&&qe(Zn.value.filter(J=>!J[V.value])[ge.value.index]);break}L.value&&we()}},wo=N=>{Tt(N[b.value])===void 0&&Wn.value&&(e.emit("tag",N[b.value],ee),e.emit("option",N[b.value],ee),e.emit("create",N[b.value],ee),bo.value&&pl(N),O())},Xr=()=>{r.value!=="single"&&Kt(nt.value.filter(N=>!N.disabled&&!xt(N)))},fl=N=>N.find(J=>!xt(J)&&!J[V.value])===void 0,ms=N=>N.find(J=>!xt(J))===void 0,Tt=N=>Fe.value[Fe.value.map(J=>String(J[b.value])).indexOf(String(N))],gs=N=>Fe.value.findIndex(J=>cn.value.some(me=>(parseInt(J[me])==J[me]?parseInt(J[me]):J[me])===(parseInt(N)==N?parseInt(N):N))),Qr=N=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&xt(N),pl=N=>{pt.value.push(N)},Eo=N=>P.value?N.filter(J=>ne.value?J.__VISIBLE__.length:J[K.value].length):N.filter(J=>ne.value?J.__VISIBLE__.length:!0),ei=(N,J=!0)=>{let me=N;if(ne.value&&v.value){let Me=ce.value;Me||(Me=(Tn,Yt,ri)=>cn.value.some(An=>{let ys=Cl(Ne(Tn[An]),z.value);return H.value?ys.startsWith(Cl(Yt,z.value)):ys.indexOf(Cl(Yt,z.value))!==-1})),me=me.filter(Tn=>Me(Tn,ne.value,ee))}return l.value&&J&&(me=me.filter(Me=>!Qr(Me))),me},ti=N=>{let J=N;return UC(J)&&(J=Object.keys(J).map(me=>{let Me=J[me];return{[b.value]:me,[cn.value[0]]:Me,[d.value]:Me}})),J=J.map(me=>typeof me=="object"?me:{[b.value]:me,[cn.value[0]]:me,[d.value]:me}),J},Te=()=>{dn(U.value)||(ie.value=Jn(U.value))},Gt=N=>(Pe.value=!0,new Promise((J,me)=>{o.value(ne.value,ee).then(Me=>{bt.value=Me||[],typeof N=="function"&&N(Me),Pe.value=!1}).catch(Me=>{console.error(Me),bt.value=[],Pe.value=!1}).finally(()=>{J()})})),ni=()=>{if(ko.value)if(r.value==="single"){let N=Tt(ie.value[b.value]);if(N!==void 0){let J=N[d.value];ie.value[d.value]=J,m.value&&(U.value[d.value]=J)}}else ie.value.forEach((N,J)=>{let me=Tt(ie.value[J][b.value]);if(me!==void 0){let Me=me[d.value];ie.value[J][d.value]=Me,m.value&&(U.value[J][d.value]=Me)}})},vs=N=>{Gt(N)},Jn=N=>dn(N)?r.value==="single"?{}:[]:m.value?N:r.value==="single"?Tt(N)||(E.value?{[d.value]:N,[b.value]:N,[cn.value[0]]:N}:{}):N.filter(J=>!!Tt(J)||E.value).map(J=>Tt(J)||{[d.value]:J,[b.value]:J,[cn.value[0]]:J}),oi=()=>{ht.value=i.watch(ne,N=>{N.length<y.value||!N&&y.value!==0||(Pe.value=!0,w.value&&(bt.value=[]),setTimeout(()=>{N==ne.value&&o.value(ne.value,ee).then(J=>{(N==ne.value||!ne.value)&&(bt.value=J,ge.value=nt.value.filter(me=>me[V.value]!==!0)[0]||null,Pe.value=!1)}).catch(J=>{console.error(J)})},C.value))},{flush:"sync"})};if(r.value!=="single"&&!dn(U.value)&&!Array.isArray(U.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?_.value?Gt(Te):m.value==!0&&Te():(bt.value=o.value,Te()),C.value>-1&&oi(),i.watch(C,(N,J)=>{ht.value&&ht.value(),N>=0&&oi()}),i.watch(U,N=>{if(dn(N)){Y(Jn(N),!1);return}switch(r.value){case"single":(m.value?N[b.value]!=ie.value[b.value]:N!=ie.value[b.value])&&Y(Jn(N),!1);break;case"multiple":case"tags":qC(m.value?N.map(J=>J[b.value]):N,ie.value.map(J=>J[b.value]))||Y(Jn(N),!1);break}},{deep:!0}),i.watch(o,(N,J)=>{typeof t.options=="function"?_.value&&(!J||N&&N.toString()!==J.toString())&&Gt():(bt.value=t.options,Object.keys(ie.value).length||Te(),ni())}),i.watch(d,ni),i.watch(a,(N,J)=>{kt.value=F.value&&N===-1?10:N}),{pfo:mt,fo:nt,filteredOptions:nt,hasSelected:ko,multipleLabelText:Kn,eo:Fe,extendedOptions:Fe,eg:Zt,extendedGroups:Zt,fg:Zn,filteredGroups:Zn,noOptions:ir,noResults:sr,resolving:Pe,busy:Yr,offset:kt,select:Kt,deselect:wt,remove:ar,selectAll:Xr,clear:Jr,isSelected:xt,isDisabled:lr,isMax:Gn,getOption:Tt,handleOptionClick:cr,handleGroupClick:Yn,handleTagRemove:hs,refreshOptions:vs,resolveOptions:Gt,refreshLabels:ni}}function jC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,h=n.fg,m=n.handleOptionClick,g=n.handleGroupClick,C=n.search,_=n.pointer,y=n.setPointer,v=n.clearPointer,w=n.multiselect,k=n.isOpen,b=i.computed(()=>p.value.filter(U=>!U[d.value])),E=i.computed(()=>h.value.filter(U=>!U[d.value])),S=i.computed(()=>c.value!=="single"&&u.value),T=i.computed(()=>_.value&&_.value.group),A=i.computed(()=>ee(_.value)),z=i.computed(()=>{const U=T.value?_.value:ee(_.value),ne=E.value.map(Y=>Y[a.value]).indexOf(U[a.value]);let O=E.value[ne-1];return O===void 0&&(O=M.value),O}),L=i.computed(()=>{let U=E.value.map(ne=>ne.label).indexOf(T.value?_.value[a.value]:ee(_.value)[a.value])+1;return E.value.length<=U&&(U=0),E.value[U]}),M=i.computed(()=>[...E.value].slice(-1)[0]),B=i.computed(()=>_.value.__VISIBLE__.filter(U=>!U[d.value])[0]),I=i.computed(()=>{const U=A.value.__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1]}),F=i.computed(()=>{const U=ee(_.value).__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1]}),K=i.computed(()=>[...z.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),P=i.computed(()=>[...M.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),D=U=>_.value&&(!U.group&&_.value[o.value]===U[o.value]||U.group!==void 0&&_.value[a.value]===U[a.value])?!0:void 0,G=()=>{y(b.value[0]||null)},V=()=>{!_.value||_.value[d.value]===!0||(T.value?g(_.value):m(_.value))},H=()=>{if(_.value===null)y((l.value&&S.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&S.value){let U=T.value?B.value:F.value;U===void 0&&(U=L.value,U.__CREATE__&&(U=U[f.value][0])),y(U||null)}else{let U=b.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1;b.value.length<=U&&(U=0),y(b.value[U]||null)}i.nextTick(()=>{ie()})},ce=()=>{if(_.value===null){let U=b.value[b.value.length-1];l.value&&S.value&&(U=P.value,U===void 0&&(U=M.value)),y(U||null)}else if(l.value&&S.value){let U=T.value?K.value:I.value;U===void 0&&(U=T.value?z.value:A.value,U.__CREATE__&&(U=K.value,U===void 0&&(U=z.value))),y(U||null)}else{let U=b.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1;U<0&&(U=b.value.length-1),y(b.value[U]||null)}i.nextTick(()=>{ie()})},ee=U=>E.value.find(ne=>ne.__VISIBLE__.map(O=>O[o.value]).indexOf(U[o.value])!==-1),ie=()=>{let U=w.value.querySelector("[data-pointed]");if(!U)return;let ne=U.parentElement.parentElement;l.value&&(ne=T.value?U.parentElement.parentElement.parentElement:U.parentElement.parentElement.parentElement.parentElement),U.offsetTop+U.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=U.offsetTop+U.offsetHeight-ne.clientHeight),U.offsetTop<ne.scrollTop&&(ne.scrollTop=U.offsetTop)};return i.watch(C,U=>{s.value&&(U.length&&r.value?G():v())}),i.watch(k,U=>{if(U){let ne=w.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let O=ne.parentElement.parentElement;i.nextTick(()=>{O.scrollTop>0||(O.scrollTop=ne.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:D,setPointerFirst:G,selectPointer:V,forwardPointer:H,backwardPointer:ce}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ho(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function tu(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Fo=Math.max,Qs=Math.min,Mr=Math.round;function lc(){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 qp(){return!/^((?!chrome|android).)*safari/i.test(lc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Ho(t)?$t(t):window,l=a.visualViewport,c=!qp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function nu(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function WC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ZC(t){return t===$t(t)||!Ut(t)?nu(t):WC(t)}function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function vo(t){return((Ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function ou(t){return Br(vo(t)).left+nu(t).scrollLeft}function Rn(t){return $t(t).getComputedStyle(t)}function ru(t){var e=Rn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function KC(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function GC(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&KC(e),s=vo(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Cn(e)!=="body"||ru(s))&&(l=ZC(e)),Ut(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=ou(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Hp(t){var e=Br(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Oa(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(tu(t)?t.host:null)||vo(t)}function jp(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:Ut(t)&&ru(t)?t:jp(Oa(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=jp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],ru(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(Oa(a)))}function YC(t){return["table","td","th"].indexOf(Cn(t))>=0}function Ad(t){return!Ut(t)||Rn(t).position==="fixed"?null:t.offsetParent}function JC(t){var e=/firefox/i.test(lc()),n=/Trident/i.test(lc());if(n&&Ut(t)){var o=Rn(t);if(o.position==="fixed")return null}var r=Oa(t);for(tu(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(Cn(r))<0;){var s=Rn(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function La(t){for(var e=$t(t),n=Ad(t);n&&YC(n)&&Rn(n).position==="static";)n=Ad(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&Rn(n).position==="static")?e:n||JC(t)||e}var Qt="top",bn="bottom",fo="right",Ln="left",iu="auto",Ia=[Qt,bn,fo,Ln],$r="start",Fi="end",XC="clippingParents",Wp="viewport",fi="popper",QC="reference",Nd=Ia.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),eb=[].concat(Ia,[iu]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),tb="beforeRead",nb="read",ob="afterRead",rb="beforeMain",ib="main",sb="afterMain",ab="beforeWrite",lb="write",cb="afterWrite",ub=[tb,nb,ob,rb,ib,sb,ab,lb,cb];function db(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function fb(t){var e=db(t);return ub.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function pb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function hb(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function mb(t,e){var n=$t(t),o=vo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=qp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+ou(t),y:c}}function gb(t){var e,n=vo(t),o=nu(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Fo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Fo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ou(t),c=-o.scrollTop;return Rn(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function vb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&tu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function cc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function yb(t,e){var n=Br(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 Dd(t,e,n){return e===Wp?cc(mb(t,n)):Ho(e)?yb(e,n):cc(gb(vo(t)))}function _b(t){var e=Ei(Oa(t)),n=["absolute","fixed"].indexOf(Rn(t).position)>=0,o=n&&Ut(t)?La(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&vb(r,o)&&Cn(r)!=="body"}):[]}function Cb(t,e,n,o){var r=e==="clippingParents"?_b(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Dd(t,u,o);return c.top=Fo(d.top,c.top),c.right=Qs(d.right,c.right),c.bottom=Qs(d.bottom,c.bottom),c.left=Fo(d.left,c.left),c},Dd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function io(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Zp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Kp(t){var e=t.reference,n=t.element,o=t.placement,r=o?io(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case bn:c={x:a,y:e.y+e.height};break;case fo:c={x:e.x+e.width,y:l};break;case Ln:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Zp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Gp(){return{top:0,right:0,bottom:0,left:0}}function bb(t){return Object.assign({},Gp(),t)}function kb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function su(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?XC:l,u=n.rootBoundary,d=u===void 0?Wp:u,f=n.elementContext,p=f===void 0?fi:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,C=g===void 0?0:g,_=bb(typeof C!="number"?C:kb(C,Ia)),y=p===fi?QC:fi,v=t.rects.popper,w=t.elements[m?y:p],k=Cb(Ho(w)?w:w.contextElement||vo(t.elements.popper),c,d,a),b=Br(t.elements.reference),E=Kp({reference:b,element:v,strategy:"absolute",placement:r}),S=cc(Object.assign({},v,E)),T=p===fi?S:b,A={top:k.top-T.top+_.top,bottom:T.bottom-k.bottom+_.bottom,left:k.left-T.left+_.left,right:T.right-k.right+_.right},z=t.modifiersData.offset;if(p===fi&&z){var L=z[r];Object.keys(A).forEach(function(M){var B=[fo,bn].indexOf(M)>=0?1:-1,I=[Qt,bn].indexOf(M)>=0?"y":"x";A[M]+=L[I]*B})}return A}var Md={placement:"bottom",modifiers:[],strategy:"absolute"};function Bd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function wb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Md:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(_){var y=typeof _=="function"?_(d.options):_;g(),d.options=Object.assign({},s,d.options,y),d.scrollParents={reference:Ho(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var v=fb(hb([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var _=d.elements,y=_.reference,v=_.popper;if(Bd(y,v)){d.rects={reference:GC(y,La(v),d.options.strategy==="fixed"),popper:Hp(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],b=k.fn,E=k.options,S=E===void 0?{}:E,T=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:T,instance:h})||d)}}}},update:pb(function(){return new Promise(function(C){h.forceUpdate(),C(d)})}),destroy:function(){g(),p=!0}};if(!Bd(l,c))return h;h.setOptions(u).then(function(C){!p&&u.onFirstUpdate&&u.onFirstUpdate(C)});function m(){d.orderedModifiers.forEach(function(C){var _=C.name,y=C.options,v=y===void 0?{}:y,w=C.effect;if(typeof w=="function"){var k=w({state:d,name:_,instance:h,options:v}),b=function(){};f.push(k||b)}})}function g(){f.forEach(function(C){return C()}),f=[]}return h}}var Ss={passive:!0};function Eb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ss)}),l&&c.addEventListener("resize",n.update,Ss),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ss)}),l&&c.removeEventListener("resize",n.update,Ss)}}var xb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eb,data:{}};function Sb(t){var e=t.state,n=t.name;e.modifiersData[n]=Kp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Tb={name:"popperOffsets",enabled:!0,phase:"read",fn:Sb,data:{}},Ab={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function $d(t){var e,n=t.popper,o=t.popperRect,r=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,C=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=C.x,g=C.y;var _=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=Ln,w=Qt,k=window;if(u){var b=La(n),E="clientHeight",S="clientWidth";if(b===$t(n)&&(b=vo(n),Rn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),b=b,r===Qt||(r===Ln||r===fo)&&s===Fi){w=bn;var T=f&&b===k&&k.visualViewport?k.visualViewport.height:b[E];g-=T-o.height,g*=c?1:-1}if(r===Ln||(r===Qt||r===bn)&&s===Fi){v=fo;var A=f&&b===k&&k.visualViewport?k.visualViewport.width:b[S];h-=A-o.width,h*=c?1:-1}}var z=Object.assign({position:l},u&&Ab),L=d===!0?Nb({x:h,y:g},$t(n)):{x:h,y:g};if(h=L.x,g=L.y,c){var M;return Object.assign({},z,(M={},M[w]=y?"0":"",M[v]=_?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",M))}return Object.assign({},z,(e={},e[w]=y?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function Db(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:io(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$d(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$d(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Mb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Db,data:{}};function Bb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!Cn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function $b(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(o){var r=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ut(r)||!Cn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Ob={name:"applyStyles",enabled:!0,phase:"write",fn:Bb,effect:$b,requires:["computeStyles"]},Lb=[xb,Tb,Mb,Ob],Ib=wb({defaultModifiers:Lb});function Pb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Fo(t,Qs(e,n))}function Fb(t,e,n){var o=zs(t,e,n);return o>n?n:o}function Rb(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,C=su(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),_=io(e.placement),y=Or(e.placement),v=!y,w=Zp(_),k=Pb(w),b=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,T=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(b){if(s){var M,B=w==="y"?Qt:Ln,I=w==="y"?bn:fo,F=w==="y"?"height":"width",K=b[w],P=K+C[B],D=K-C[I],G=h?-S[F]/2:0,V=y===$r?E[F]:S[F],H=y===$r?-S[F]:-E[F],ce=e.elements.arrow,ee=h&&ce?Hp(ce):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gp(),U=ie[B],ne=ie[I],O=zs(0,E[F],ee[F]),Y=v?E[F]/2-G-O-U-A.mainAxis:V-O-U-A.mainAxis,ge=v?-E[F]/2+G+O+ne+A.mainAxis:H+O+ne+A.mainAxis,qe=e.elements.arrow&&La(e.elements.arrow),de=qe?w==="y"?qe.clientTop||0:qe.clientLeft||0:0,_e=(M=z==null?void 0:z[w])!=null?M:0,we=K+Y-_e-de,ft=K+ge-_e,Ne=zs(h?Qs(P,we):P,K,h?Fo(D,ft):D);b[w]=Ne,L[w]=Ne-K}if(l){var pt,bt=w==="x"?Qt:Ln,Pe=w==="x"?bn:fo,ht=b[k],kt=k==="y"?"height":"width",Wn=ht+C[bt],bo=ht-C[Pe],Fe=[Qt,Ln].indexOf(_)!==-1,mt=(pt=z==null?void 0:z[k])!=null?pt:0,nt=Fe?Wn:ht-E[kt]-S[kt]-mt+A.altAxis,Zt=Fe?ht+E[kt]+S[kt]-mt-A.altAxis:bo,xn=h&&Fe?Fb(nt,ht,Zt):zs(h?nt:Wn,ht,h?Zt:bo);b[k]=xn,L[k]=xn-ht}e.modifiersData[o]=L}}var Vb={name:"preventOverflow",enabled:!0,phase:"main",fn:Rb,requiresIfExists:["offset"]},zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return zb[e]})}var Ub={start:"end",end:"start"};function Od(t){return t.replace(/start|end/g,function(e){return Ub[e]})}function qb(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?eb:c,d=Or(o),f=d?l?Nd:Nd.filter(function(m){return Or(m)===d}):Ia,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=su(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[io(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Hb(t){if(io(t)===iu)return[];var e=Us(t);return[Od(t),e,Od(e)]}function jb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,C=e.options.placement,_=io(C),y=_===C,v=c||(y||!m?[Us(C)]:Hb(C)),w=[C].concat(v).reduce(function(ee,ie){return ee.concat(io(ie)===iu?qb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):ie)},[]),k=e.rects.reference,b=e.rects.popper,E=new Map,S=!0,T=w[0],A=0;A<w.length;A++){var z=w[A],L=io(z),M=Or(z)===$r,B=[Qt,bn].indexOf(L)>=0,I=B?"width":"height",F=su(e,{placement:z,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=B?M?fo:Ln:M?bn:Qt;k[I]>b[I]&&(K=Us(K));var P=Us(K),D=[];if(s&&D.push(F[L]<=0),l&&D.push(F[K]<=0,F[P]<=0),D.every(function(ee){return ee})){T=z,S=!1;break}E.set(z,D)}if(S)for(var G=m?3:1,V=function(ie){var U=w.find(function(ne){var O=E.get(ne);if(O)return O.slice(0,ie).every(function(Y){return Y})});if(U)return T=U,"break"},H=G;H>0;H--){var ce=V(H);if(ce==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var Wb={name:"flip",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"],data:{_skip:!1}};function Zb(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),h=i.computed(()=>r.value||s.value),m=i.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),h.value&&i.nextTick(()=>{_()}))},C=()=>{d.value&&(d.value=!1,e.emit("close",l))},_=()=>{if(!f.value)return;let v=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),w=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(k=>({...k,modifiers:[...k.modifiers,{name:"offset",options:{offset:[0,(m.value==="top"?v:w)*-1]}}]})),f.value.update()},y=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return i.onMounted(()=>{h.value&&(f.value=Ib(c.value,u.value,{strategy:y(c.value)?"fixed":void 0,placement:a.value,modifiers:[Vb,Wb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){p.value=v.placement}}]}))}),i.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:C,placement:m,updatePopper:_}}function Kb(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,h=i.ref(!1),m=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),C=()=>{o.value&&a.value.blur(),f.value.blur()},_=()=>{o.value&&!r.value&&a.value.focus()},y=(S=!0)=>{r.value||(h.value=!0,S&&l())},v=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:h,mouseClicked:m,blur:C,focus:_,activate:y,deactivate:v,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||y(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),C()},handleMousedown:S=>{m.value=!0,d.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&y(),setTimeout(()=>{m.value=!1},0)}}}function Gb(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=i.toRefs(t),m=i.getCurrentInstance().proxy,g=n.iv,C=n.update,_=n.deselect,y=n.search,v=n.setPointer,w=n.selectPointer,k=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,S=n.wrapper,T=n.tags,A=n.isOpen,z=n.open,L=n.blur,M=n.fo,B=i.computed(()=>f.value||p.value||!1),I=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),F=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&v(M.value[M.value.map(D=>D[c.value]).indexOf(y.value)])};return{handleKeydown:D=>{e.emit("keydown",D,m);let G,V;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(D.key)!==-1&&o.value==="tags"&&(G=[...E.value.querySelectorAll("[data-tags] > *")].filter(H=>H!==T.value),V=G.findIndex(H=>H===document.activeElement)),D.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(y.value)===-1||g.value.length===0)return;let H=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);H.length&&_(H[H.length-1]);break;case"Enter":if(D.preventDefault(),D.keyCode===229)return;if(V!==-1&&V!==void 0){C([...g.value].filter((ce,ee)=>ee!==V)),V===G.length-1&&(G.length-1?G[G.length-2].focus():a.value?T.value.querySelector("input").focus():S.value.focus());return}if(I.value.indexOf("enter")===-1&&B.value)return;F(),w();break;case" ":if(!B.value&&!a.value){D.preventDefault(),F(),w();return}if(!B.value)return!1;if(I.value.indexOf("space")===-1&&B.value)return;D.preventDefault(),F(),w();break;case"Tab":case";":case",":if(I.value.indexOf(D.key.toLowerCase())===-1||!B.value)return;F(),w(),D.preventDefault();break;case"Escape":L();break;case"ArrowUp":if(D.preventDefault(),!l.value)return;A.value||z(),k();break;case"ArrowDown":if(D.preventDefault(),!l.value)return;A.value||z(),b();break;case"ArrowLeft":if(a.value&&T.value&&T.value.querySelector("input").selectionStart||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),V===-1?G[G.length-1].focus():V>0&&G[V-1].focus();break;case"ArrowRight":if(V===-1||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),G.length>V+1?G[V+1].focus():a.value?T.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:D=>{e.emit("keyup",D,m)},preparePointer:F}}function Yb(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,m=n.fo,g=n.placement,C=i.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),_=i.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&m.value.length)));return{classList:i.computed(()=>{const v=C.value;return{container:[v.container].concat(r.value?v.containerDisabled:[]).concat(_.value&&g.value==="top"?v.containerOpenTop:[]).concat(_.value&&g.value!=="top"?v.containerOpen:[]).concat(f.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(r.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,a.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(g.value==="top"?v.dropdownTop:[]).concat(!l.value||!s.value||!_.value?v.dropdownHidden:[]),options:[v.options].concat(g.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let k=[v.groupLabel];return c(w)?k.push(u(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):u(w)&&p.value?k.push(d(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(w)&&k.push(v.groupLabelDisabled),p.value&&k.push(v.groupLabelPointable),k},groupOptions:v.groupOptions,option:(w,k)=>{let b=[v.option];return c(w)?b.push(u(w)?v.optionSelectedPointed:v.optionPointed):u(w)?b.push(d(w)?v.optionSelectedDisabled:v.optionSelected):(d(w)||k&&d(k))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:_}}function Jb(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.computed(()=>a.value<c.value.length),h=g=>{const{isIntersecting:C,target:_}=g[0];if(C){const y=_.offsetParent,v=y.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{y.scrollTop=v})}},m=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&m()}),i.watch(l,()=>{r.value&&(a.value=o.value,m())},{flush:"post"}),i.watch(u,()=>{r.value&&m()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function Xb(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,h=n.hasSelected,m=n.multipleLabelText,g=i.ref(null),C=i.computed(()=>{let L=[];return r&&r.value&&L.push(r.value),L.push("assist"),L.join("-")}),_=i.computed(()=>{let L=[];return r&&r.value&&L.push(r.value),L.push("multiselect-options"),L.join("-")}),y=i.computed(()=>{let L=[];if(r&&r.value&&L.push(r.value),f.value)return L.push(f.value.group?"multiselect-group":"multiselect-option"),L.push(f.value.group?f.value.index:f.value[s.value]),L.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let L="";return l.value==="single"&&h.value&&(L+=p.value[a.value]),l.value==="multiple"&&h.value&&(L+=m.value),l.value==="tags"&&h.value&&(L+=p.value.map(M=>M[a.value]).join(", ")),L}),b=i.computed(()=>{let L={...u.value};return d.value&&(L["aria-labelledby"]=L["aria-labelledby"]?`${C.value} ${L["aria-labelledby"]}`:C.value,k.value&&L["aria-label"]&&(L["aria-label"]=`${k.value}, ${L["aria-label"]}`)),L}),E=L=>{let M=[];return r&&r.value&&M.push(r.value),M.push("multiselect-option"),M.push(L[s.value]),M.join("-")},S=L=>{let M=[];return r&&r.value&&M.push(r.value),M.push("multiselect-group"),M.push(L.index),M.join("-")},T=L=>{let M=[];return M.push(L),M.join(" ")},A=L=>{let M=[];return M.push(L),M.join(" ")},z=L=>`${L} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let L=document.querySelector(`[for="${r.value}"]`);g.value=L?L.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:C,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:y,ariaOptionId:E,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:z}}function Qb(t,e,n){const{locale:o,fallbackLocale:r}=i.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function e9(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function t9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var to={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return t9(t,e,[e9,Qb,RC,zC,Zb,VC,FC,Kb,HC,Jb,jC,Gb,Yb,Xb])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const n9=["id","dir"],o9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],r9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],i9=["onKeyup","aria-label"],s9=["onClick"],a9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],l9=["innerHTML"],c9=["id"],u9=["id"],d9=["id","aria-label","aria-selected"],f9=["data-pointed","onMouseenter","onMousedown"],p9=["innerHTML"],h9=["aria-label"],m9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],g9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],v9=["innerHTML"],y9=["innerHTML"],_9=["value"],C9=["name","value"],b9=["name","value"],k9=["id"];function w9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[i.createElementVNode("div",i.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=i.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,r9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,s9)):i.createCommentVNode("v-if",!0)],42,i9))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=i.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,a9)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,l9)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,o9),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,p9)])],42,f9)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:f,onMouseenter:p=>t.setPointer(u),onMousedown:i.withModifiers(p=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,m9))),128))],10,h9)],10,d9))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:i.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,g9))),128))],10,u9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,v9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,y9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,c9)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,_9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,C9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,b9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,k9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,n9)}to.render=w9;to.__file="src/Multiselect.vue";const Dt=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&PC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(to),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Ld;function Hn(){const t=E9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function E9(){const t=i.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Ld.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Ld.lastIndex}return o.push(n.substring(s)),o}}});async function In(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const x9={class:"ao-tasks"},S9={class:"ao-tasks__list"},T9=["id","value","readonly","onChange"],A9={class:"ao-tasks__list-footer"},N9=i.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.tasks,(p,h)=>{In(p,h)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(h=>({label:`${h.firstName} ${h.lastName}`,value:h.id,avatar:h.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,h={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",h)},l=(p,h)=>{const g=p.target.value;r("update",{id:h,name:g})},c=(p,h)=>{o.isEditable&&r("update",{id:p,isDone:h})},u=p=>{r("delete",{id:p})},d=(p,h)=>{r("update",{id:h,assigneeId:p[0]??null})},f=p=>{const h=p.target;h==null||h.blur()};return(p,h)=>(i.openBlock(),i.createElementBlock("div",x9,[i.createElementVNode("ul",S9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,m=>{var g,C;return i.openBlock(),i.createElementBlock("li",{key:m.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,m))??!1?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":m.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(m.id,!m.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:m.id,value:m.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":m.isDone}]),type:"text",onChange:_=>l(_,m.id),onKeyup:i.withKeys(f,["enter"])},null,42,T9),h[0]||(h[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Dt,{key:1,value:(C=m.assignee)!=null&&C.id?[m.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:_=>d(_,m.id)},{tag:i.withCtx(({option:_,handleTagRemove:y})=>[i.createVNode(Un,{"user-name":_.label,"avatar-url":_.avatar,"is-closable":!0,onClose:v=>y(_,v)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(m.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",A9,[t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const D9={class:"ao-files__placeholder"},M9={key:0,class:"ao-files__list"},B9=["href"],$9={class:"ao-file__title"},O9={key:0},L9={class:"ao-files__input"},I9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},P9={class:"ao-button__label"},F9={class:"ao-files__dropzone"},R9={class:"ao-files__dropzone-label"},V9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=f=>{n("remove",f)},s=f=>{const p=f.target,h=Array.from(p.files??[]);n("add",h)},a=["dragenter","dragover","dragleave","drop"];i.onMounted(()=>{a.forEach(f=>{document.body.addEventListener(f,p=>p.preventDefault())})}),i.onUnmounted(()=>{a.forEach(f=>{document.body.removeEventListener(f,p=>p.preventDefault())})});const l=i.ref(!1);function c(){o.isEditable&&(l.value=!0)}function u(){l.value=!1}i.watch(l,f=>{n("toggleIsDropActive",f)});function d(f){var h;u();const p=Array.from(((h=f.dataTransfer)==null?void 0:h.files)||[]);f.dataTransfer&&n("add",p)}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:i.withModifiers(d,["prevent"]),onDragenter:i.withModifiers(c,["prevent"]),onDragover:i.withModifiers(c,["prevent"]),onDragleave:i.withModifiers(u,["prevent"])},[i.renderSlot(f.$slots,"default",{},()=>[i.createElementVNode("span",D9,i.toDisplayString(f.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(i.openBlock(),i.createElementBlock("ul",M9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,h=>(i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-file"},[i.createElementVNode("a",{class:"ao-file__link",href:h.url,target:"_blank",rel:"noopener noreferrer"},[i.createVNode(Se,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",$9,i.toDisplayString(h.name),1)],8,B9),t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(h)},null,8,["onClick"])):i.createCommentVNode("",!0)]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",O9,[i.createElementVNode("label",L9,[i.createElementVNode("div",I9,[i.createVNode(Se,{name:"Add",size:"sm"}),i.createElementVNode("span",P9,i.toDisplayString(f.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:s},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",F9,[i.createElementVNode("span",R9,i.toDisplayString(f.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,l.value]])],34))}});var ke={};const z9="Á",U9="á",q9="Ă",H9="ă",j9="∾",W9="∿",Z9="∾̳",K9="Â",G9="â",Y9="´",J9="А",X9="а",Q9="Æ",e4="æ",t4="⁡",n4="𝔄",o4="𝔞",r4="À",i4="à",s4="ℵ",a4="ℵ",l4="Α",c4="α",u4="Ā",d4="ā",f4="⨿",p4="&",h4="&",m4="⩕",g4="⩓",v4="∧",y4="⩜",_4="⩘",C4="⩚",b4="∠",k4="⦤",w4="∠",E4="⦨",x4="⦩",S4="⦪",T4="⦫",A4="⦬",N4="⦭",D4="⦮",M4="⦯",B4="∡",$4="∟",O4="⊾",L4="⦝",I4="∢",P4="Å",F4="⍼",R4="Ą",V4="ą",z4="𝔸",U4="𝕒",q4="⩯",H4="≈",j4="⩰",W4="≊",Z4="≋",K4="'",G4="⁡",Y4="≈",J4="≊",X4="Å",Q4="å",e8="𝒜",t8="𝒶",n8="≔",o8="*",r8="≈",i8="≍",s8="Ã",a8="ã",l8="Ä",c8="ä",u8="∳",d8="⨑",f8="≌",p8="϶",h8="‵",m8="∽",g8="⋍",v8="∖",y8="⫧",_8="⊽",C8="⌅",b8="⌆",k8="⌅",w8="⎵",E8="⎶",x8="≌",S8="Б",T8="б",A8="„",N8="∵",D8="∵",M8="∵",B8="⦰",$8="϶",O8="ℬ",L8="ℬ",I8="Β",P8="β",F8="ℶ",R8="≬",V8="𝔅",z8="𝔟",U8="⋂",q8="◯",H8="⋃",j8="⨀",W8="⨁",Z8="⨂",K8="⨆",G8="★",Y8="▽",J8="△",X8="⨄",Q8="⋁",ek="⋀",tk="⤍",nk="⧫",ok="▪",rk="▴",ik="▾",sk="◂",ak="▸",lk="␣",ck="▒",uk="░",dk="▓",fk="█",pk="=⃥",hk="≡⃥",mk="⫭",gk="⌐",vk="𝔹",yk="𝕓",_k="⊥",Ck="⊥",bk="⋈",kk="⧉",wk="┐",Ek="╕",xk="╖",Sk="╗",Tk="┌",Ak="╒",Nk="╓",Dk="╔",Mk="─",Bk="═",$k="┬",Ok="╤",Lk="╥",Ik="╦",Pk="┴",Fk="╧",Rk="╨",Vk="╩",zk="⊟",Uk="⊞",qk="⊠",Hk="┘",jk="╛",Wk="╜",Zk="╝",Kk="└",Gk="╘",Yk="╙",Jk="╚",Xk="│",Qk="║",e6="┼",t6="╪",n6="╫",o6="╬",r6="┤",i6="╡",s6="╢",a6="╣",l6="├",c6="╞",u6="╟",d6="╠",f6="‵",p6="˘",h6="˘",m6="¦",g6="𝒷",v6="ℬ",y6="⁏",_6="∽",C6="⋍",b6="⧅",k6="\\",w6="⟈",E6="•",x6="•",S6="≎",T6="⪮",A6="≏",N6="≎",D6="≏",M6="Ć",B6="ć",$6="⩄",O6="⩉",L6="⩋",I6="∩",P6="⋒",F6="⩇",R6="⩀",V6="ⅅ",z6="∩︀",U6="⁁",q6="ˇ",H6="ℭ",j6="⩍",W6="Č",Z6="č",K6="Ç",G6="ç",Y6="Ĉ",J6="ĉ",X6="∰",Q6="⩌",ew="⩐",tw="Ċ",nw="ċ",ow="¸",rw="¸",iw="⦲",sw="¢",aw="·",lw="·",cw="𝔠",uw="ℭ",dw="Ч",fw="ч",pw="✓",hw="✓",mw="Χ",gw="χ",vw="ˆ",yw="≗",_w="↺",Cw="↻",bw="⊛",kw="⊚",ww="⊝",Ew="⊙",xw="®",Sw="Ⓢ",Tw="⊖",Aw="⊕",Nw="⊗",Dw="○",Mw="⧃",Bw="≗",$w="⨐",Ow="⫯",Lw="⧂",Iw="∲",Pw="”",Fw="’",Rw="♣",Vw="♣",zw=":",Uw="∷",qw="⩴",Hw="≔",jw="≔",Ww=",",Zw="@",Kw="∁",Gw="∘",Yw="∁",Jw="ℂ",Xw="≅",Qw="⩭",eE="≡",tE="∮",nE="∯",oE="∮",rE="𝕔",iE="ℂ",sE="∐",aE="∐",lE="©",cE="©",uE="℗",dE="∳",fE="↵",pE="✗",hE="⨯",mE="𝒞",gE="𝒸",vE="⫏",yE="⫑",_E="⫐",CE="⫒",bE="⋯",kE="⤸",wE="⤵",EE="⋞",xE="⋟",SE="↶",TE="⤽",AE="⩈",NE="⩆",DE="≍",ME="∪",BE="⋓",$E="⩊",OE="⊍",LE="⩅",IE="∪︀",PE="↷",FE="⤼",RE="⋞",VE="⋟",zE="⋎",UE="⋏",qE="¤",HE="↶",jE="↷",WE="⋎",ZE="⋏",KE="∲",GE="∱",YE="⌭",JE="†",XE="‡",QE="ℸ",ex="↓",tx="↡",nx="⇓",ox="‐",rx="⫤",ix="⊣",sx="⤏",ax="˝",lx="Ď",cx="ď",ux="Д",dx="д",fx="‡",px="⇊",hx="ⅅ",mx="ⅆ",gx="⤑",vx="⩷",yx="°",_x="∇",Cx="Δ",bx="δ",kx="⦱",wx="⥿",Ex="𝔇",xx="𝔡",Sx="⥥",Tx="⇃",Ax="⇂",Nx="´",Dx="˙",Mx="˝",Bx="`",$x="˜",Ox="⋄",Lx="⋄",Ix="⋄",Px="♦",Fx="♦",Rx="¨",Vx="ⅆ",zx="ϝ",Ux="⋲",qx="÷",Hx="÷",jx="⋇",Wx="⋇",Zx="Ђ",Kx="ђ",Gx="⌞",Yx="⌍",Jx="$",Xx="𝔻",Qx="𝕕",eS="¨",tS="˙",nS="⃜",oS="≐",rS="≑",iS="≐",sS="∸",aS="∔",lS="⊡",cS="⌆",uS="∯",dS="¨",fS="⇓",pS="⇐",hS="⇔",mS="⫤",gS="⟸",vS="⟺",yS="⟹",_S="⇒",CS="⊨",bS="⇑",kS="⇕",wS="∥",ES="⤓",xS="↓",SS="↓",TS="⇓",AS="⇵",NS="̑",DS="⇊",MS="⇃",BS="⇂",$S="⥐",OS="⥞",LS="⥖",IS="↽",PS="⥟",FS="⥗",RS="⇁",VS="↧",zS="⊤",US="⤐",qS="⌟",HS="⌌",jS="𝒟",WS="𝒹",ZS="Ѕ",KS="ѕ",GS="⧶",YS="Đ",JS="đ",XS="⋱",QS="▿",eT="▾",tT="⇵",nT="⥯",oT="⦦",rT="Џ",iT="џ",sT="⟿",aT="É",lT="é",cT="⩮",uT="Ě",dT="ě",fT="Ê",pT="ê",hT="≖",mT="≕",gT="Э",vT="э",yT="⩷",_T="Ė",CT="ė",bT="≑",kT="ⅇ",wT="≒",ET="𝔈",xT="𝔢",ST="⪚",TT="È",AT="è",NT="⪖",DT="⪘",MT="⪙",BT="∈",$T="⏧",OT="ℓ",LT="⪕",IT="⪗",PT="Ē",FT="ē",RT="∅",VT="∅",zT="◻",UT="∅",qT="▫",HT=" ",jT=" ",WT=" ",ZT="Ŋ",KT="ŋ",GT=" ",YT="Ę",JT="ę",XT="𝔼",QT="𝕖",eA="⋕",tA="⧣",nA="⩱",oA="ε",rA="Ε",iA="ε",sA="ϵ",aA="≖",lA="≕",cA="≂",uA="⪖",dA="⪕",fA="⩵",pA="=",hA="≂",mA="≟",gA="⇌",vA="≡",yA="⩸",_A="⧥",CA="⥱",bA="≓",kA="ℯ",wA="ℰ",EA="≐",xA="⩳",SA="≂",TA="Η",AA="η",NA="Ð",DA="ð",MA="Ë",BA="ë",$A="€",OA="!",LA="∃",IA="∃",PA="ℰ",FA="ⅇ",RA="ⅇ",VA="≒",zA="Ф",UA="ф",qA="♀",HA="ffi",jA="ff",WA="ffl",ZA="𝔉",KA="𝔣",GA="fi",YA="◼",JA="▪",XA="fj",QA="♭",eN="fl",tN="▱",nN="ƒ",oN="𝔽",rN="𝕗",iN="∀",sN="∀",aN="⋔",lN="⫙",cN="ℱ",uN="⨍",dN="½",fN="⅓",pN="¼",hN="⅕",mN="⅙",gN="⅛",vN="⅔",yN="⅖",_N="¾",CN="⅗",bN="⅜",kN="⅘",wN="⅚",EN="⅝",xN="⅞",SN="⁄",TN="⌢",AN="𝒻",NN="ℱ",DN="ǵ",MN="Γ",BN="γ",$N="Ϝ",ON="ϝ",LN="⪆",IN="Ğ",PN="ğ",FN="Ģ",RN="Ĝ",VN="ĝ",zN="Г",UN="г",qN="Ġ",HN="ġ",jN="≥",WN="≧",ZN="⪌",KN="⋛",GN="≥",YN="≧",JN="⩾",XN="⪩",QN="⩾",eD="⪀",tD="⪂",nD="⪄",oD="⋛︀",rD="⪔",iD="𝔊",sD="𝔤",aD="≫",lD="⋙",cD="⋙",uD="ℷ",dD="Ѓ",fD="ѓ",pD="⪥",hD="≷",mD="⪒",gD="⪤",vD="⪊",yD="⪊",_D="⪈",CD="≩",bD="⪈",kD="≩",wD="⋧",ED="𝔾",xD="𝕘",SD="`",TD="≥",AD="⋛",ND="≧",DD="⪢",MD="≷",BD="⩾",$D="≳",OD="𝒢",LD="ℊ",ID="≳",PD="⪎",FD="⪐",RD="⪧",VD="⩺",zD=">",UD=">",qD="≫",HD="⋗",jD="⦕",WD="⩼",ZD="⪆",KD="⥸",GD="⋗",YD="⋛",JD="⪌",XD="≷",QD="≳",eM="≩︀",tM="≩︀",nM="ˇ",oM=" ",rM="½",iM="ℋ",sM="Ъ",aM="ъ",lM="⥈",cM="↔",uM="⇔",dM="↭",fM="^",pM="ℏ",hM="Ĥ",mM="ĥ",gM="♥",vM="♥",yM="…",_M="⊹",CM="𝔥",bM="ℌ",kM="ℋ",wM="⤥",EM="⤦",xM="⇿",SM="∻",TM="↩",AM="↪",NM="𝕙",DM="ℍ",MM="―",BM="─",$M="𝒽",OM="ℋ",LM="ℏ",IM="Ħ",PM="ħ",FM="≎",RM="≏",VM="⁃",zM="‐",UM="Í",qM="í",HM="⁣",jM="Î",WM="î",ZM="И",KM="и",GM="İ",YM="Е",JM="е",XM="¡",QM="⇔",eB="𝔦",tB="ℑ",nB="Ì",oB="ì",rB="ⅈ",iB="⨌",sB="∭",aB="⧜",lB="℩",cB="IJ",uB="ij",dB="Ī",fB="ī",pB="ℑ",hB="ⅈ",mB="ℐ",gB="ℑ",vB="ı",yB="ℑ",_B="⊷",CB="Ƶ",bB="⇒",kB="℅",wB="∞",EB="⧝",xB="ı",SB="⊺",TB="∫",AB="∬",NB="ℤ",DB="∫",MB="⊺",BB="⋂",$B="⨗",OB="⨼",LB="⁣",IB="⁢",PB="Ё",FB="ё",RB="Į",VB="į",zB="𝕀",UB="𝕚",qB="Ι",HB="ι",jB="⨼",WB="¿",ZB="𝒾",KB="ℐ",GB="∈",YB="⋵",JB="⋹",XB="⋴",QB="⋳",e$="∈",t$="⁢",n$="Ĩ",o$="ĩ",r$="І",i$="і",s$="Ï",a$="ï",l$="Ĵ",c$="ĵ",u$="Й",d$="й",f$="𝔍",p$="𝔧",h$="ȷ",m$="𝕁",g$="𝕛",v$="𝒥",y$="𝒿",_$="Ј",C$="ј",b$="Є",k$="є",w$="Κ",E$="κ",x$="ϰ",S$="Ķ",T$="ķ",A$="К",N$="к",D$="𝔎",M$="𝔨",B$="ĸ",$$="Х",O$="х",L$="Ќ",I$="ќ",P$="𝕂",F$="𝕜",R$="𝒦",V$="𝓀",z$="⇚",U$="Ĺ",q$="ĺ",H$="⦴",j$="ℒ",W$="Λ",Z$="λ",K$="⟨",G$="⟪",Y$="⦑",J$="⟨",X$="⪅",Q$="ℒ",eO="«",tO="⇤",nO="⤟",oO="←",rO="↞",iO="⇐",sO="⤝",aO="↩",lO="↫",cO="⤹",uO="⥳",dO="↢",fO="⤙",pO="⤛",hO="⪫",mO="⪭",gO="⪭︀",vO="⤌",yO="⤎",_O="❲",CO="{",bO="[",kO="⦋",wO="⦏",EO="⦍",xO="Ľ",SO="ľ",TO="Ļ",AO="ļ",NO="⌈",DO="{",MO="Л",BO="л",$O="⤶",OO="“",LO="„",IO="⥧",PO="⥋",FO="↲",RO="≤",VO="≦",zO="⟨",UO="⇤",qO="←",HO="←",jO="⇐",WO="⇆",ZO="↢",KO="⌈",GO="⟦",YO="⥡",JO="⥙",XO="⇃",QO="⌊",eL="↽",tL="↼",nL="⇇",oL="↔",rL="↔",iL="⇔",sL="⇆",aL="⇋",lL="↭",cL="⥎",uL="↤",dL="⊣",fL="⥚",pL="⋋",hL="⧏",mL="⊲",gL="⊴",vL="⥑",yL="⥠",_L="⥘",CL="↿",bL="⥒",kL="↼",wL="⪋",EL="⋚",xL="≤",SL="≦",TL="⩽",AL="⪨",NL="⩽",DL="⩿",ML="⪁",BL="⪃",$L="⋚︀",OL="⪓",LL="⪅",IL="⋖",PL="⋚",FL="⪋",RL="⋚",VL="≦",zL="≶",UL="≶",qL="⪡",HL="≲",jL="⩽",WL="≲",ZL="⥼",KL="⌊",GL="𝔏",YL="𝔩",JL="≶",XL="⪑",QL="⥢",eI="↽",tI="↼",nI="⥪",oI="▄",rI="Љ",iI="љ",sI="⇇",aI="≪",lI="⋘",cI="⌞",uI="⇚",dI="⥫",fI="◺",pI="Ŀ",hI="ŀ",mI="⎰",gI="⎰",vI="⪉",yI="⪉",_I="⪇",CI="≨",bI="⪇",kI="≨",wI="⋦",EI="⟬",xI="⇽",SI="⟦",TI="⟵",AI="⟵",NI="⟸",DI="⟷",MI="⟷",BI="⟺",$I="⟼",OI="⟶",LI="⟶",II="⟹",PI="↫",FI="↬",RI="⦅",VI="𝕃",zI="𝕝",UI="⨭",qI="⨴",HI="∗",jI="_",WI="↙",ZI="↘",KI="◊",GI="◊",YI="⧫",JI="(",XI="⦓",QI="⇆",eP="⌟",tP="⇋",nP="⥭",oP="‎",rP="⊿",iP="‹",sP="𝓁",aP="ℒ",lP="↰",cP="↰",uP="≲",dP="⪍",fP="⪏",pP="[",hP="‘",mP="‚",gP="Ł",vP="ł",yP="⪦",_P="⩹",CP="<",bP="<",kP="≪",wP="⋖",EP="⋋",xP="⋉",SP="⥶",TP="⩻",AP="◃",NP="⊴",DP="◂",MP="⦖",BP="⥊",$P="⥦",OP="≨︀",LP="≨︀",IP="¯",PP="♂",FP="✠",RP="✠",VP="↦",zP="↦",UP="↧",qP="↤",HP="↥",jP="▮",WP="⨩",ZP="М",KP="м",GP="—",YP="∺",JP="∡",XP=" ",QP="ℳ",eF="𝔐",tF="𝔪",nF="℧",oF="µ",rF="*",iF="⫰",sF="∣",aF="·",lF="⊟",cF="−",uF="∸",dF="⨪",fF="∓",pF="⫛",hF="…",mF="∓",gF="⊧",vF="𝕄",yF="𝕞",_F="∓",CF="𝓂",bF="ℳ",kF="∾",wF="Μ",EF="μ",xF="⊸",SF="⊸",TF="∇",AF="Ń",NF="ń",DF="∠⃒",MF="≉",BF="⩰̸",$F="≋̸",OF="ʼn",LF="≉",IF="♮",PF="ℕ",FF="♮",RF=" ",VF="≎̸",zF="≏̸",UF="⩃",qF="Ň",HF="ň",jF="Ņ",WF="ņ",ZF="≇",KF="⩭̸",GF="⩂",YF="Н",JF="н",XF="–",QF="⤤",eR="↗",tR="⇗",nR="↗",oR="≠",rR="≐̸",iR="​",sR="​",aR="​",lR="​",cR="≢",uR="⤨",dR="≂̸",fR="≫",pR="≪",hR=`
1
+ "use strict";var Zg=Object.defineProperty;var Kg=(t,e,n)=>e in t?Zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>(Kg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),mo=require("vuedraggable");const Gg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),oe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Yg={},Jg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xg(t,e){return i.openBlock(),i.createElementBlock("svg",Jg,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const Qg=oe(Yg,[["render",Xg]]),e0={},t0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n0(t,e){return i.openBlock(),i.createElementBlock("svg",t0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const o0=oe(e0,[["render",n0]]),r0={},i0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s0(t,e){return i.openBlock(),i.createElementBlock("svg",i0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const a0=oe(r0,[["render",s0]]),l0={},c0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u0(t,e){return i.openBlock(),i.createElementBlock("svg",c0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const d0=oe(l0,[["render",u0]]),f0={},p0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h0(t,e){return i.openBlock(),i.createElementBlock("svg",p0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const m0=oe(f0,[["render",h0]]),g0={},v0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y0(t,e){return i.openBlock(),i.createElementBlock("svg",v0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const _0=oe(g0,[["render",y0]]),C0={},b0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k0(t,e){return i.openBlock(),i.createElementBlock("svg",b0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const w0=oe(C0,[["render",k0]]),E0={},x0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S0(t,e){return i.openBlock(),i.createElementBlock("svg",x0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const T0=oe(E0,[["render",S0]]),A0={},N0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0(t,e){return i.openBlock(),i.createElementBlock("svg",N0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const M0=oe(A0,[["render",D0]]),B0={},$0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O0(t,e){return i.openBlock(),i.createElementBlock("svg",$0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const L0=oe(B0,[["render",O0]]),I0={},P0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F0(t,e){return i.openBlock(),i.createElementBlock("svg",P0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const R0=oe(I0,[["render",F0]]),V0={},z0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U0(t,e){return i.openBlock(),i.createElementBlock("svg",z0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const q0=oe(V0,[["render",U0]]),H0={},j0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W0(t,e){return i.openBlock(),i.createElementBlock("svg",j0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const Z0=oe(H0,[["render",W0]]),K0={},G0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y0(t,e){return i.openBlock(),i.createElementBlock("svg",G0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const J0=oe(K0,[["render",Y0]]),X0={},Q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2(t,e){return i.openBlock(),i.createElementBlock("svg",Q0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const t2=oe(X0,[["render",e2]]),n2={},o2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r2(t,e){return i.openBlock(),i.createElementBlock("svg",o2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const i2=oe(n2,[["render",r2]]),s2={},a2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(t,e){return i.openBlock(),i.createElementBlock("svg",a2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const c2=oe(s2,[["render",l2]]),u2={},d2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return i.openBlock(),i.createElementBlock("svg",d2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const p2=oe(u2,[["render",f2]]),h2={},m2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g2(t,e){return i.openBlock(),i.createElementBlock("svg",m2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const v2=oe(h2,[["render",g2]]),y2={},_2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C2(t,e){return i.openBlock(),i.createElementBlock("svg",_2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const b2=oe(y2,[["render",C2]]),k2={},w2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return i.openBlock(),i.createElementBlock("svg",w2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const x2=oe(k2,[["render",E2]]),S2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return i.openBlock(),i.createElementBlock("svg",T2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const N2=oe(S2,[["render",A2]]),D2={},M2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B2(t,e){return i.openBlock(),i.createElementBlock("svg",M2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const $2=oe(D2,[["render",B2]]),O2={},L2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I2(t,e){return i.openBlock(),i.createElementBlock("svg",L2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const P2=oe(O2,[["render",I2]]),F2={},R2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V2(t,e){return i.openBlock(),i.createElementBlock("svg",R2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const z2=oe(F2,[["render",V2]]),U2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return i.openBlock(),i.createElementBlock("svg",q2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const j2=oe(U2,[["render",H2]]),W2={},Z2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return i.openBlock(),i.createElementBlock("svg",Z2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const G2=oe(W2,[["render",K2]]),Y2={},J2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X2(t,e){return i.openBlock(),i.createElementBlock("svg",J2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const Q2=oe(Y2,[["render",X2]]),ev={},tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nv(t,e){return i.openBlock(),i.createElementBlock("svg",tv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const ov=oe(ev,[["render",nv]]),rv={},iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sv(t,e){return i.openBlock(),i.createElementBlock("svg",iv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const av=oe(rv,[["render",sv]]),lv={},cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(t,e){return i.openBlock(),i.createElementBlock("svg",cv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const dv=oe(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hv(t,e){return i.openBlock(),i.createElementBlock("svg",pv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const mv=oe(fv,[["render",hv]]),gv={},vv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yv(t,e){return i.openBlock(),i.createElementBlock("svg",vv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const _v=oe(gv,[["render",yv]]),Cv={},bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kv(t,e){return i.openBlock(),i.createElementBlock("svg",bv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const wv=oe(Cv,[["render",kv]]),Ev={},xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sv(t,e){return i.openBlock(),i.createElementBlock("svg",xv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const Tv=oe(Ev,[["render",Sv]]),Av={},Nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dv(t,e){return i.openBlock(),i.createElementBlock("svg",Nv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const Mv=oe(Av,[["render",Dv]]),Bv={},$v={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ov(t,e){return i.openBlock(),i.createElementBlock("svg",$v,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Lv=oe(Bv,[["render",Ov]]),Iv={},Pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fv(t,e){return i.openBlock(),i.createElementBlock("svg",Pv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Rv=oe(Iv,[["render",Fv]]),Vv={},zv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uv(t,e){return i.openBlock(),i.createElementBlock("svg",zv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const qv=oe(Vv,[["render",Uv]]),Hv={},jv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wv(t,e){return i.openBlock(),i.createElementBlock("svg",jv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Zv=oe(Hv,[["render",Wv]]),Kv=i.defineComponent({name:"LoadingIcon"});const Gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yv(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Gv,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Jv=oe(Kv,[["render",Yv],["__scopeId","data-v-ad6da4a9"]]),Xv={},Qv={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function e3(t,e){return i.openBlock(),i.createElementBlock("svg",Qv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const t3=oe(Xv,[["render",e3]]),n3={},o3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r3(t,e){return i.openBlock(),i.createElementBlock("svg",o3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const i3=oe(n3,[["render",r3]]),s3={},a3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l3(t,e){return i.openBlock(),i.createElementBlock("svg",a3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const c3=oe(s3,[["render",l3]]),u3={},d3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f3(t,e){return i.openBlock(),i.createElementBlock("svg",d3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const p3=oe(u3,[["render",f3]]),h3={},m3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g3(t,e){return i.openBlock(),i.createElementBlock("svg",m3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const v3=oe(h3,[["render",g3]]),y3={},_3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C3(t,e){return i.openBlock(),i.createElementBlock("svg",_3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const b3=oe(y3,[["render",C3]]),k3={},w3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E3(t,e){return i.openBlock(),i.createElementBlock("svg",w3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const x3=oe(k3,[["render",E3]]),S3={},T3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A3(t,e){return i.openBlock(),i.createElementBlock("svg",T3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const N3=oe(S3,[["render",A3]]),D3={},M3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B3(t,e){return i.openBlock(),i.createElementBlock("svg",M3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const $3=oe(D3,[["render",B3]]),O3={},L3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I3(t,e){return i.openBlock(),i.createElementBlock("svg",L3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const P3=oe(O3,[["render",I3]]),F3={},R3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V3(t,e){return i.openBlock(),i.createElementBlock("svg",R3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const z3=oe(F3,[["render",V3]]),U3={},q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H3(t,e){return i.openBlock(),i.createElementBlock("svg",q3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const j3=oe(U3,[["render",H3]]),W3={},Z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K3(t,e){return i.openBlock(),i.createElementBlock("svg",Z3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const G3=oe(W3,[["render",K3]]),Y3={},J3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X3(t,e){return i.openBlock(),i.createElementBlock("svg",J3,[...e[0]||(e[0]=[i.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const Q3=oe(Y3,[["render",X3]]),e5={},t5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n5(t,e){return i.openBlock(),i.createElementBlock("svg",t5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const o5=oe(e5,[["render",n5]]),r5={},i5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s5(t,e){return i.openBlock(),i.createElementBlock("svg",i5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const a5=oe(r5,[["render",s5]]),l5={},c5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u5(t,e){return i.openBlock(),i.createElementBlock("svg",c5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const d5=oe(l5,[["render",u5]]),f5={},p5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h5(t,e){return i.openBlock(),i.createElementBlock("svg",p5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const m5=oe(f5,[["render",h5]]),g5={},v5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y5(t,e){return i.openBlock(),i.createElementBlock("svg",v5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const _5=oe(g5,[["render",y5]]),C5={},b5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k5(t,e){return i.openBlock(),i.createElementBlock("svg",b5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const w5=oe(C5,[["render",k5]]),E5={},x5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S5(t,e){return i.openBlock(),i.createElementBlock("svg",x5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const T5=oe(E5,[["render",S5]]),A5={},N5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D5(t,e){return i.openBlock(),i.createElementBlock("svg",N5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const M5=oe(A5,[["render",D5]]),B5={},$5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O5(t,e){return i.openBlock(),i.createElementBlock("svg",$5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const L5=oe(B5,[["render",O5]]),I5={},P5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function F5(t,e){return i.openBlock(),i.createElementBlock("svg",P5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const R5=oe(I5,[["render",F5]]),V5={},z5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U5(t,e){return i.openBlock(),i.createElementBlock("svg",z5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const q5=oe(V5,[["render",U5]]),H5={},j5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W5(t,e){return i.openBlock(),i.createElementBlock("svg",j5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const Z5=oe(H5,[["render",W5]]),K5={},G5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y5(t,e){return i.openBlock(),i.createElementBlock("svg",G5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const J5=oe(K5,[["render",Y5]]),X5={},Q5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ey(t,e){return i.openBlock(),i.createElementBlock("svg",Q5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const ty=oe(X5,[["render",ey]]),ny=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Qg,AccountCircle:o0,AccountTreeOutlineRounded:a0,AccountTreeRounded:d0,Add:m0,AddBoxOutlineRounded:_0,ArchiveOutlineRounded:w0,ArrowBackRounded:T0,ArrowDropDownRounded:M0,ArrowForwardRounded:L0,AssignmentOutlineRounded:R0,AttachFileRounded:q0,CalendarTodayOutlineRounded:Z0,CancelRounded:J0,ChatOutline:t2,CheckBoxOutlineBlank:i2,CheckBoxOutlineBlankSharp:c2,CheckBoxOutlineRounded:p2,CheckSmallRounded:v2,ChecklistRounded:b2,ChevronLeft:x2,ChevronRight:N2,CloseRounded:$2,ContactsOutlineRounded:P2,ContentCopyOutline:z2,DeleteOutlineRounded:j2,DragIndicator:G2,EditDocumentRounded:Q2,EditOutline:ov,ErrorOutlineRounded:av,FilterListRounded:dv,FlagRounded:mv,FlowsheetOutlineRounded:_v,GifBox:wv,GroupsOutline:Tv,HomeOutlineRounded:Mv,ImageRounded:Lv,Info:Rv,KeyboardArrowDown:qv,KeyboardArrowUp:Zv,Loading:Jv,Lock:t3,LogoutRounded:i3,Menu:c3,MoreHoriz:p3,MoreTimeRounded:v3,MoreVert:b3,MountainFlagOutlineRounded:x3,PersonAddOutlineRounded:N3,PictureAsPdfRounded:$3,RadioButtonChecked:P3,RadioButtonCheckedOutline:z3,RadioButtonUnchecked:j3,RemoveRounded:G3,SearchRounded:Q3,SelectCheckBox:o5,SendRounded:a5,Settings:d5,SlideshowRounded:m5,Target:_5,TaskOutlineRounded:w5,TextSnippetRounded:T5,TimerOutline:M5,ViewComfyAltRounded:L5,ViewCompactAltRounded:R5,ViewTimelineRounded:q5,WarningOutlineRounded:Z5,WarningRounded:J5,WaterfallChartRounded:ty},Symbol.toStringTag,{value:"Module"})),oy={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},wa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Wc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},ry={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Wc,...ry});const up={ROUND:"round",ROUNDED:"rounded"},iy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Se=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:wa.MD}},setup(t){const e=t,n=i.computed(()=>ny[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const sy=["type"],ay={key:0,class:"ao-button__label"},he=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>oy.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>wa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>up.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",ay,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Se,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,sy))}});function ly(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const at=i.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=ly(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:C=>C.stopPropagation(),blur:h}:{click:g,focus:g}:{}),f=l((C,_)=>{const v=_.target.value;r("update:title",v)}),p=c(),h=async()=>{s.value&&a(!1)},m=()=>{r("toggle-is-editing",!1)},g=C=>{C.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,C=>{C||p()}),(C,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(m,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const cy={key:0,class:"ao-card-horiz__drag ao-card__drag"},uy={class:"ao-card-horiz__header"},dy={key:0,class:"ao-card-horiz__avatar"},fy={class:"ao-card-horiz__title-group"},py={key:0,class:"ao-card-horiz__subtitle"},hy={key:1,class:"ao-card-horiz__header"},my={key:1,class:"ao-card-horiz__body"},gy={key:2,class:"ao-card-horiz__footer"},vy={key:3,class:"ao-card-horiz__secondary"},dp=i.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",cy,[i.createVNode(Se,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",uy,[t.icon?(i.openBlock(),i.createElementBlock("div",dy,[i.createVNode(Se,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",fy,[i.createVNode(at,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",py,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",hy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",my,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",gy,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",vy,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(iy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(Se,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(Se,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},yy={months:"months",weeks:"weeks",days:"days"},_y={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},fp={BEFORE:"before",AFTER:"after"},pp={START:"start",end:"end"},hp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},$e={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var mp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(mp||{});const Cy={add:"add",remove:"remove",moved:"moved"};var gp=(t=>(t.HOURS="hours",t.DAYS="days",t))(gp||{});const No={project:"projectId",type:"typeId",assignee:"assigneeId"};function Zs(t){"@babel/helpers - typeof";return Zs=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},Zs(t)}function Pn(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 Ue(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function dt(t){Ue(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Zs(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 by(t,e){Ue(2,arguments);var n=dt(t).getTime(),o=Pn(e);return new Date(n+o)}var ky={};function Gi(){return ky}function Oi(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 md(t){Ue(1,arguments);var e=dt(t);return e.setHours(0,0,0,0),e}var wy=864e5;function Ey(t,e){Ue(2,arguments);var n=md(t),o=md(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/wy)}function xy(t,e){Ue(2,arguments);var n=dt(t),o=dt(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var vp=6e4,yp=36e5;function Sy(t){return Ue(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _p(t){if(Ue(1,arguments),!Sy(t)&&typeof t!="number")return!1;var e=dt(t);return!isNaN(Number(e))}function sc(t,e){Ue(2,arguments);var n=Pn(e);return by(t,-n)}var Ty=864e5;function Ay(t){Ue(1,arguments);var e=dt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/Ty)+1}function Ks(t){Ue(1,arguments);var e=1,n=dt(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Cp(t){Ue(1,arguments);var e=dt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ks(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ks(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Ny(t){Ue(1,arguments);var e=Cp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ks(n);return o}var Dy=6048e5;function My(t){Ue(1,arguments);var e=dt(t),n=Ks(e).getTime()-Ny(e).getTime();return Math.round(n/Dy)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=Pn((n=(o=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=dt(t),h=p.getUTCDay(),m=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function bp(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=dt(t),f=d.getUTCFullYear(),p=Gi(),h=Pn((n=(o=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.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(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Gs(m,e),C=new Date(0);C.setUTCFullYear(f,0,h),C.setUTCHours(0,0,0,0);var _=Gs(C,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function By(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=Pn((n=(o=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=bp(t,e),h=new Date(0);h.setUTCFullYear(p,0,f),h.setUTCHours(0,0,0,0);var m=Gs(h,e);return m}var $y=6048e5;function Oy(t,e){Ue(1,arguments);var n=dt(t),o=Gs(n,e).getTime()-By(n,e).getTime();return Math.round(o/$y)+1}function xe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Ly={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return xe(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):xe(o+1,2)},d:function(e,n){return xe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="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 o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return xe(s,n.length)}};const Xn=Ly;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Iy={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Xn.y(e,n)},Y:function(e,n,o,r){var s=bp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return xe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):xe(a,n.length)},R:function(e,n){var o=Cp(e);return xe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return xe(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return xe(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return xe(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Xn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return xe(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=Oy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):xe(s,n.length)},I:function(e,n,o){var r=My(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):xe(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Xn.d(e,n)},D:function(e,n,o){var r=Ay(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):xe(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return xe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return xe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return xe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),s;switch(r===12?s=dr.noon:r===0?s=dr.midnight:s=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),s;switch(r>=17?s=dr.evening:r>=12?s=dr.afternoon:r>=4?s=dr.morning:s=dr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Xn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Xn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Xn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xn.s(e,n)},S:function(e,n){return Xn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return vd(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return vd(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+gd(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+gd(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return xe(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return xe(a,n.length)}};function gd(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+xe(s,2)}function vd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+xe(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=xe(Math.floor(r/60),2),a=xe(r%60,2);return o+s+n+a}const Py=Iy;var yd=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"})}},kp=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"})}},Fy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return yd(e,n);var a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",yd(r,n)).replace("{{time}}",kp(s,n))},Ry={p:kp,P:Fy};const Vy=Ry;var zy=["D","DD"],Uy=["YY","YYYY"];function qy(t){return zy.indexOf(t)!==-1}function Hy(t){return Uy.indexOf(t)!==-1}function _d(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 jy={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"}},Wy=function(e,n,o){var r,s=jy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Zy=Wy;function vl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var Ky={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yy={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jy={date:vl({formats:Ky,defaultWidth:"full"}),time:vl({formats:Gy,defaultWidth:"full"}),dateTime:vl({formats:Yy,defaultWidth:"full"})};const Xy=Jy;var Qy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e7=function(e,n,o,r){return Qy[e]};const t7=e7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var n7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r7={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"]},i7={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"]},s7={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"}},a7={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"}},l7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},c7={ordinalNumber:l7,era:ai({values:n7,defaultWidth:"wide"}),quarter:ai({values:o7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:r7,defaultWidth:"wide"}),day:ai({values:i7,defaultWidth:"wide"}),dayPeriod:ai({values:s7,defaultWidth:"wide",formattingValues:a7,defaultFormattingWidth:"wide"})};const u7=c7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?f7(l,function(f){return f.test(a)}):d7(l,function(f){return f.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function d7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function f7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function p7(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var r=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(r.length);return{value:a,rest:l}}}var h7=/^(\d+)(th|st|nd|rd)?/i,m7=/\d+/i,g7={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},v7={any:[/^b/i,/^(a|c)/i]},y7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_7={any:[/1/i,/2/i,/3/i,/4/i]},C7={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},b7={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]},k7={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},w7={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]},E7={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},x7={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}},S7={ordinalNumber:p7({matchPattern:h7,parsePattern:m7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:g7,defaultMatchWidth:"wide",parsePatterns:v7,defaultParseWidth:"any"}),quarter:li({matchPatterns:y7,defaultMatchWidth:"wide",parsePatterns:_7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:C7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),day:li({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:E7,defaultMatchWidth:"any",parsePatterns:x7,defaultParseWidth:"any"})};const T7=S7;var A7={code:"en-US",formatDistance:Zy,formatLong:Xy,formatRelative:t7,localize:u7,match:T7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wp=A7;var N7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M7=/^'([^]*?)'?$/,B7=/''/g,$7=/[a-zA-Z]/;function Ep(t,e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w;Ue(2,arguments);var k=String(e),b=Gi(),x=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:wp,S=Pn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Pn((h=(m=(g=(C=n==null?void 0:n.weekStartsOn)!==null&&C!==void 0?C:n==null||(_=n.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&m!==void 0?m:(v=b.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var T=dt(t);if(!_p(T))throw new RangeError("Invalid time value");var I=Oi(T),$=sc(T,I),M={firstWeekContainsDate:S,weekStartsOn:A,locale:x,_originalDate:T},B=k.match(D7).map(function(P){var R=P[0];if(R==="p"||R==="P"){var K=Vy[R];return K(P,x.formatLong)}return P}).join("").match(N7).map(function(P){if(P==="''")return"'";var R=P[0];if(R==="'")return O7(P);var K=Py[R];if(K)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Hy(P)&&_d(P,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&qy(P)&&_d(P,e,String(t)),K($,P,x.localize,M);if(R.match($7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return P}).join("");return B}function O7(t){var e=t.match(M7);return e?e[1].replace(B7,"'"):t}function L7(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ue(2,arguments);var h=dt(t),m=dt(e),g=Gi(),C=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:wp,_=Pn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");if(!C.formatRelative)throw new RangeError("locale must contain formatRelative property");var y=Ey(h,m);if(isNaN(y))throw new RangeError("Invalid time value");var v;y<-6?v="other":y<-1?v="lastWeek":y<0?v="yesterday":y<1?v="today":y<2?v="tomorrow":y<7?v="nextWeek":v="other";var w=sc(h,Oi(h)),k=sc(m,Oi(m)),b=C.formatRelative(v,w,k,{locale:C,weekStartsOn:_});return Ep(h,b,{locale:C,weekStartsOn:_})}function Li(t,e){var n;Ue(1,arguments);var o=Pn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==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 r=R7(t),s;if(r.date){var a=V7(r.date,o);s=z7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=U7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=q7(r.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var ks={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},I7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,F7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function R7(t){var e={},n=t.split(ks.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ks.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ks.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ks.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function V7(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function z7(t,e){if(e===null)return new Date(NaN);var n=t.match(I7);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return K7(e,l,c)?H7(e,l,c):new Date(NaN);var u=new Date(0);return!W7(e,s,a)||!Z7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function U7(t){var e=t.match(P7);if(!e)return NaN;var n=yl(e[1]),o=yl(e[2]),r=yl(e[3]);return G7(n,o,r)?n*yp+o*vp+r*1e3:NaN}function yl(t){return t&&parseFloat(t.replace(",","."))||0}function q7(t){if(t==="Z")return 0;var e=t.match(F7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Y7(o,r)?n*(o*yp+r*vp):NaN}function H7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var j7=[31,null,31,30,31,30,31,31,30,31,30,31];function xp(t){return t%400===0||t%4===0&&t%100!==0}function W7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(j7[e]||(xp(t)?29:28))}function Z7(t,e){return e>=1&&e<=(xp(t)?366:365)}function K7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function G7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Y7(t,e){return e>=0&&e<=59}var yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function X7(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var it={},Sp={},ui={},Yi={},Vr={},Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.lexoHelper=void 0;Ea.lexoHelper={arrayCopy:Q7};function Q7(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class e_{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}Ji.default=e_;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.LexoInteger=void 0;const ws=Ea,t_=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return ws.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return ws.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=fe.add(this.sys,this.mag,e.mag);return fe.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new t_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Vr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Vr,n_=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(di.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new n_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Yi.LexoDecimal=Pt;var Es={},Cd;function Tp(){if(Cd)return Es;Cd=1,Object.defineProperty(Es,"__esModule",{value:!0});const t=Vr,e=Np();class n{constructor(r){this.value=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(r){const s=t.LexoInteger.parse(r,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Es.default=n,Es}var Zc={},Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.LexoNumeralSystem10=void 0;class o_{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}xa.LexoNumeralSystem10=o_;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem36=void 0;class r_{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Sa.LexoNumeralSystem36=r_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem64=void 0;class i_{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ta.LexoNumeralSystem64=i_;(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Ap,t),n(xa,t),n(Sa,t),n(Ta,t)})(Zc);var bd;function Np(){if(bd)return ui;bd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Tp(),n=Ji,o=Zc;class r{constructor(a,l){this.value=a.format()+"|"+r.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.mid(a,l);c=d}let f;for(let m=c.getScale();m>0;u=f){const g=m-1,C=c.setScale(g,!0);if(f=u.setScale(g,!1),C.compareTo(f)===0)return r.checkMid(a,l,C);if(C.compareTo(f)>0)break;m=g,c=C}let p=r.middleInternal(a,l,c,u),h;for(let m=p.getScale();m>0;m=h){h=m-1;const g=p.setScale(h);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new r(this.bucket,r.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return ui.LexoRank=r,ui}(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Np(),t),n(Tp(),t),n(Yi,t),n(Vr,t)})(Sp);(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Sp,t),n(Zc,t)})(it);const _i=60,s_=8,kd=_i*s_;function Aa(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/kd),r=Math.floor(t%kd/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Dp(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function a_(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function l_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Dp(n.milestones):0;return e+o},0))??0}function c_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return it.LexoRank.parse(n.rank).genPrev().format()}else return it.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return it.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return it.LexoRank.parse(o.rank).between(it.LexoRank.parse(n.rank)).format()}}function Na(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return _p(n)?Ep(n,e):""}function Kc(t,e){return t.status.id===e.id}function u_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Kc(n,e))}function d_(t,e){return{...t,status:u_(t,e)?$i.done:$i.todo}}const Mp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function f_(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function p_(t,e=.15){var n;if(t.startsWith("#"))return f_(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function Bp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function wd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Bp(r)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(r=>r[1]);return Array.from(new Set(n.filter(r=>o.includes(r.name)).map(r=>r.id)))}const h_=["title"],m_={key:0,className:"ao-avatar__initials"},g_=["src"],Un=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:wa.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=c_(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",m_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,g_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,h_))}});const v_={class:"ao-card-template__subitems"},y_={class:"ao-card-template__subitem"},__={class:"ao-card-template__subitem-number"},C_={class:"ao-card-template__subitem"},b_={class:"ao-card-template__subitem"},k_={class:"ao-card-template__body"},w_={class:"ao-card-template__col ao-card-template__col--phases"},E_={class:"ao-card-template__col-title"},x_={class:"ao-card-template__col-label"},S_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},T_={class:"ao-card-template__footer"},A_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},N_={class:"ao-card-template__col-title"},D_={class:"ao-card-template__col-label"},M_={class:"ao-card-template__col-body"},B_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},$_={class:"ao-card-template__col-title"},O_={class:"ao-card-template__col-label"},L_={class:"ao-card-template__col-body"},I_={class:"ao-card-template-item__secondary"},_l=5,P_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,_l))??[]}),l=i.computed(()=>n.phases&&n.phases.length>_l?n.phases.length-_l:0);return(c,u)=>(i.openBlock(),i.createBlock(dp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",v_,[i.createElementVNode("li",y_,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",__,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",C_,[i.createVNode(Se,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",b_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",k_,[i.createElementVNode("div",w_,[i.createElementVNode("div",E_,[i.createVNode(Se,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",x_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",S_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",I_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",T_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",A_,[i.createElementVNode("div",N_,[i.createElementVNode("span",D_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",M_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",B_,[i.createElementVNode("div",$_,[i.createElementVNode("span",O_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",L_,[i.createVNode(Un,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const F_={class:"ao-page-header"},R_={class:"ao-page-header-main"},V_={key:0,class:"ao-page-header-secondary"},Qi=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",F_,[i.createElementVNode("div",R_,[t.canGoBack?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",V_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const z_=["type"],U_={key:0,class:"ao-button-card__label"},go=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Wc.BLACK},size:{default:()=>wa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>up.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",U_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Se,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,z_))}});const q_={class:"ao-card-template-item__footer"},H_={key:0,class:"ao-card-template-item__subitem"},j_={class:"ao-card-template-item__subitem-number"},W_={class:"ao-card-template-item__secondary"},Gc=i.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(dp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",q_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",H_,[i.createVNode(Se,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",j_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",W_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const Z_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?Dp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Gc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),K_=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Gc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),G_={class:"ao-list__footer"},Y_=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:i.withCtx(()=>[i.createVNode(at,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(K_,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:i.withCtx(()=>[i.createElementVNode("div",G_,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),J_=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Gc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),X_={class:"ao-list__footer"},Q_=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(mo),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:i.withCtx(()=>[i.createVNode(at,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(J_,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:i.withCtx(()=>[i.createElementVNode("div",X_,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),eC={class:"ao-modal"},tC={key:0,class:"ao-modal__header"},nC={class:"ao-modal__header-meta"},oC={class:"ao-modal__title-group"},rC={class:"ao-modal__body"},iC={key:1,class:"ao-modal__footer"},Da=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",eC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",tC,[i.createElementVNode("div",nC,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",oC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",rC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",iC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Ys=Math.round,xs=Math.floor,co=t=>({x:t,y:t}),sC={left:"right",right:"left",bottom:"top",top:"bottom"},aC={start:"end",end:"start"};function Yc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Ma(t){return t.split("-")[1]}function lC(t){return t==="x"?"y":"x"}function $p(t){return t==="y"?"height":"width"}function Jc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Op(t){return lC(Jc(t))}function cC(t,e,n){n===void 0&&(n=!1);const o=Ma(t),r=Op(t),s=$p(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Js(a)),[a,Js(a)]}function uC(t){const e=Js(t);return[ac(t),e,ac(e)]}function ac(t){return t.replace(/start|end/g,e=>aC[e])}function dC(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function fC(t,e,n,o){const r=Ma(t);let s=dC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(ac)))),s}function Js(t){return t.replace(/left|right|bottom|top/g,e=>sC[e])}function pC(t){return{top:0,right:0,bottom:0,left:0,...t}}function hC(t){return typeof t!="number"?pC(t):{top:t,right:t,bottom:t,left:t}}function Xs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ed(t,e,n){let{reference:o,floating:r}=t;const s=Jc(e),a=Op(e),l=$p(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Ma(e)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}const mC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=Ed(u,o,c),p=o,h={},m=0;for(let g=0;g<l.length;g++){const{name:C,fn:_}=l[g],{x:y,y:v,data:w,reset:k}=await _({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=y??d,f=v??f,h={...h,[C]:{...h[C],...w}},k&&m<=50){m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):k.rects),{x:d,y:f}=Ed(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}};async function Lp(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Yc(e,t),m=hC(h),C=l[p?f==="floating"?"reference":"floating":f],_=Xs(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{...a.floating,x:o,y:r}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Xs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:c}):y);return{top:(_.top-k.top+m.top)/w.y,bottom:(k.bottom-_.bottom+m.bottom)/w.y,left:(_.left-k.left+m.left)/w.x,right:(k.right-_.right+m.right)/w.x}}const gC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...C}=Yc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=Nr(r),y=Nr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=p||(y||!g?[Js(l)]:uC(l));!p&&m!=="none"&&w.push(...fC(l,g,m,v));const k=[l,...w],b=await Lp(e,C),x=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&x.push(b[_]),f){const $=cC(r,a,v);x.push(b[$[0]],b[$[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every($=>$<=0)){var A,T;const $=(((A=s.flip)==null?void 0:A.index)||0)+1,M=k[$];if(M)return{data:{index:$,overflows:S},reset:{placement:M}};let B=(T=S.filter(P=>P.overflows[0]<=0).sort((P,R)=>P.overflows[1]-R.overflows[1])[0])==null?void 0:T.placement;if(!B)switch(h){case"bestFit":{var I;const P=(I=S.map(R=>[R.placement,R.overflows.filter(K=>K>0).reduce((K,F)=>K+F,0)]).sort((R,K)=>R[1]-K[1])[0])==null?void 0:I[0];P&&(B=P);break}case"initialPlacement":B=l;break}if(r!==B)return{reset:{placement:B}}}return{}}}},vC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=Yc(t,e),c=await Lp(e,l),u=Nr(n),d=Ma(n),f=Jc(n)==="y",{width:p,height:h}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const C=h-c[m],_=p-c[g],y=!e.middlewareData.shift;let v=C,w=_;if(f){const b=p-c.left-c.right;w=d||y?Ii(_,b):b}else{const b=h-c.top-c.bottom;v=d||y?Ii(C,b):b}if(y&&!d){const b=Ft(c.left,0),x=Ft(c.right,0),S=Ft(c.top,0),A=Ft(c.bottom,0);f?w=p-2*(b!==0||x!==0?b+x:Ft(c.left,c.right)):v=h-2*(S!==0||A!==0?S+A:Ft(c.top,c.bottom))}await a({...e,availableWidth:w,availableHeight:v});const k=await r.getDimensions(s.floating);return p!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function uo(t){return Ip(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function qn(t){var e;return(e=(Ip(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ip(t){return t instanceof Node||t instanceof Bt(t).Node}function Fn(t){return t instanceof Element||t instanceof Bt(t).Element}function _n(t){return t instanceof HTMLElement||t instanceof Bt(t).HTMLElement}function xd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function es(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function yC(t){return["table","td","th"].includes(uo(t))}function Xc(t){const e=Qc(),n=Ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function _C(t){let e=Dr(t);for(;_n(e)&&!Ba(e);){if(Xc(e))return e;e=Dr(e)}return null}function Qc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ba(t){return["html","body","#document"].includes(uo(t))}function Ht(t){return Bt(t).getComputedStyle(t)}function $a(t){return Fn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(uo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xd(t)&&t.host||qn(t);return xd(e)?e.host:e}function Pp(t){const e=Dr(t);return Ba(e)?t.ownerDocument?t.ownerDocument.body:t.body:_n(e)&&es(e)?e:Pp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Pp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Bt(r);return s?e.concat(a,a.visualViewport||[],es(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Fp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=_n(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Ys(n)!==s||Ys(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function eu(t){return Fn(t)?t:t.contextElement}function br(t){const e=eu(t);if(!_n(e))return co(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Fp(e);let a=(s?Ys(n.width):n.width)/o,l=(s?Ys(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const CC=co(0);function Rp(t){const e=Bt(t);return!Qc()||!e.visualViewport?CC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bt(t)?!1:e}function qo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=eu(t);let a=co(1);e&&(o?Fn(o)&&(a=br(o)):a=br(t));const l=bC(s,n,o)?Rp(s):co(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Bt(s),h=o&&Fn(o)?Bt(o):o;let m=p.frameElement;for(;m&&o&&h!==p;){const g=br(m),C=m.getBoundingClientRect(),_=Ht(m),y=C.left+(m.clientLeft+parseFloat(_.paddingLeft))*g.x,v=C.top+(m.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=y,u+=v,m=Bt(m).frameElement}}return Xs({width:d,height:f,x:c,y:u})}function kC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=_n(n),s=qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=co(1);const c=co(0);if((r||!r&&o!=="fixed")&&((uo(n)!=="body"||es(s))&&(a=$a(n)),_n(n))){const u=qo(n);l=br(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function wC(t){return Array.from(t.getClientRects())}function Vp(t){return qo(qn(t)).left+$a(t).scrollLeft}function EC(t){const e=qn(t),n=$a(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Vp(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function xC(t,e){const n=Bt(t),o=qn(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=Qc();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function SC(t,e){const n=qo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=_n(t)?br(t):co(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Sd(t,e,n){let o;if(e==="viewport")o=xC(t,n);else if(e==="document")o=EC(qn(t));else if(Fn(e))o=SC(e,n);else{const r=Rp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Xs(o)}function zp(t,e){const n=Dr(t);return n===e||!Fn(n)||Ba(n)?!1:Ht(n).position==="fixed"||zp(n,e)}function TC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>Fn(l)&&uo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Dr(t):t;for(;Fn(a)&&!Ba(a);){const l=Ht(a),c=Xc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||es(a)&&!c&&zp(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function AC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?TC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Sd(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},Sd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function NC(t){return Fp(t)}function DC(t,e,n){const o=_n(e),r=qn(e),s=n==="fixed",a=qo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=co(0);if(o||!o&&!s)if((uo(e)!=="body"||es(r))&&(l=$a(e)),o){const u=qo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=Vp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Td(t,e){return!_n(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function Up(t,e){const n=Bt(t);if(!_n(t))return n;let o=Td(t,e);for(;o&&yC(o)&&Ht(o).position==="static";)o=Td(o,e);return o&&(uo(o)==="html"||uo(o)==="body"&&Ht(o).position==="static"&&!Xc(o))?n:o||_C(t)||n}const MC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Up,s=this.getDimensions;return{reference:DC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function BC(t){return Ht(t).direction==="rtl"}const $C={convertOffsetParentRelativeRectToViewportRelativeRect:kC,getDocumentElement:qn,getClippingRect:AC,getOffsetParent:Up,getElementRects:MC,getClientRects:wC,getDimensions:NC,getScale:br,isElement:Fn,isRTL:BC};function OC(t,e){let n=null,o;const r=qn(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const h=xs(d),m=xs(r.clientWidth-(u+f)),g=xs(r.clientHeight-(d+p)),C=xs(u),y={rootMargin:-h+"px "+-m+"px "+-g+"px "+-C+"px",threshold:Ft(0,Ii(1,c))||1};let v=!0;function w(k){const b=k[0].intersectionRatio;if(b!==c){if(!v)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(t)}return a(!0),s}function LC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=eu(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=u&&l?OC(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(_=>{let[y]=_;y&&y.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),u&&!c&&h.observe(u),h.observe(e));let m,g=c?qo(t):null;c&&C();function C(){const _=qo(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,m=requestAnimationFrame(C)}return n(),()=>{d.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const IC=(t,e,n)=>{const o=new Map,r={platform:$C,...n},s={...r.platform,_c:o};return mC(t,e,{...r,platform:s})},PC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),r.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const m=LC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||IC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[gC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),vC({apply({availableWidth:f,availableHeight:p,elements:h,rects:m}){Object.assign(h.floating.style,{minHeight:`${r.value}px`,width:`${m.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function dn(t){return[null,void 0].indexOf(t)!==-1}function FC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);e.emit("change",h,a),p&&(e.emit("input",h),e.emit("update:modelValue",h))},u=f=>o.value||dn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>dn(f)?s.value==="single"?{}:[]:f;return{update:c}}function RC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function VC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let h=o.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(o&&o.value){let m=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),m.split("").every(C=>!!C.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function zC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Cl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function UC(t){return Object.prototype.toString.call(t)==="[object Object]"}function qC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function HC(t,e,n){const{options:o,mode:r,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:m,loading:g,delay:C,resolveOnLoad:_,minChars:y,filterResults:v,clearOnSearch:w,clearOnSelect:k,valueProp:b,allowAbsent:x,groupLabel:S,canDeselect:A,max:T,strict:I,closeOnSelect:$,closeOnDeselect:M,groups:B,reverse:P,infinite:R,groupOptions:K,groupHideEmpty:F,groupSelect:N,onCreate:G,disabledProp:z,searchStart:H,searchFilter:ce}=i.toRefs(t),ee=i.getCurrentInstance().proxy,ie=n.iv,U=n.ev,ne=n.search,L=n.clearSearch,Y=n.update,ge=n.pointer,qe=n.setPointer,de=n.clearPointer,_e=n.focus,we=n.deactivate,ft=n.close,Ne=n.localize,pt=i.ref([]),bt=i.ref([]),Pe=i.ref(!1),ht=i.ref(null),kt=i.ref(R.value&&a.value===-1?10:a.value),Wn=i.computed(()=>c.value||u.value||!1),bo=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Fe=i.computed(()=>{if(B.value){let D=Zt.value||[],J=[];return D.forEach(me=>{ti(me[K.value]).forEach(Me=>{J.push(Object.assign({},Me,me[z.value]?{[z.value]:!0}:{}))})}),J}else{let D=ti(bt.value||[]);return pt.value.length&&(D=D.concat(pt.value)),D}}),mt=i.computed(()=>{let D=Fe.value;return P.value&&(D=D.reverse()),Sn.value.length&&(D=Sn.value.concat(D)),ei(D)}),ot=i.computed(()=>{let D=mt.value;return kt.value>0&&(D=D.slice(0,kt.value)),D}),Zt=i.computed(()=>{if(!B.value)return[];let D=[],J=bt.value||[];return pt.value.length&&D.push({[S.value]:" ",[K.value]:[...pt.value],__CREATE__:!0}),D.concat(J)}),xn=i.computed(()=>{let D=[...Zt.value].map(J=>({...J}));return Sn.value.length&&(D[0]&&D[0].__CREATE__?D[0][K.value]=[...Sn.value,...D[0][K.value]]:D=[{[S.value]:" ",[K.value]:[...Sn.value],__CREATE__:!0}].concat(D)),D}),Zn=i.computed(()=>{if(!B.value)return[];let D=xn.value;return Eo((D||[]).map((J,me)=>{const Me=ti(J[K.value]);return{...J,index:me,group:!0,[K.value]:ei(Me,!1).map(Tn=>Object.assign({},Tn,J[z.value]?{[z.value]:!0}:{})),__VISIBLE__:ei(Me).map(Tn=>Object.assign({},Tn,J[z.value]?{[z.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!dn(ie.value[b.value]);case"multiple":case"tags":return!dn(ie.value)&&ie.value.length>0}}),Kn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,ee):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),ir=i.computed(()=>!Fe.value.length&&!Pe.value&&!Sn.value.length),sr=i.computed(()=>Fe.value.length>0&&ot.value.length==0&&(ne.value&&B.value||!B.value)),Sn=i.computed(()=>Wn.value===!1||!ne.value?[]:gs(ne.value)!==-1?[]:[{[b.value]:ne.value,[cn.value[0]]:ne.value,[d.value]:ne.value,__CREATE__:!0}]),cn=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ps=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Pe.value),Kt=D=>{switch(typeof D!="object"&&(D=Tt(D)),r.value){case"single":Y(D);break;case"multiple":case"tags":Y(ie.value.concat(D));break}e.emit("select",Et(D),D,ee)},wt=D=>{switch(typeof D!="object"&&(D=Tt(D)),r.value){case"single":Jr();break;case"tags":case"multiple":Y(Array.isArray(D)?ie.value.filter(J=>D.map(me=>me[b.value]).indexOf(J[b.value])===-1):ie.value.filter(J=>J[b.value]!=D[b.value]));break}e.emit("deselect",Et(D),D,ee)},Et=D=>m.value?D:D[b.value],ar=D=>{wt(D)},hs=(D,J)=>{if(J.button!==0){J.preventDefault();return}ar(D)},Jr=()=>{Y(ps.value),e.emit("clear",ee)},xt=D=>{if(D.group!==void 0)return r.value==="single"?!1:ms(D[K.value])&&D[K.value].length;switch(r.value){case"single":return!dn(ie.value)&&ie.value[b.value]==D[b.value];case"tags":case"multiple":return!dn(ie.value)&&ie.value.map(J=>J[b.value]).indexOf(D[b.value])!==-1}},lr=D=>D[z.value]===!0,Gn=()=>T===void 0||T.value===-1||!ko.value&&T.value>0?!1:ie.value.length>=T.value,cr=D=>{if(!lr(D)){if(G&&G.value&&!xt(D)&&D.__CREATE__&&(D={...D},delete D.__CREATE__,D=G.value(D,ee),D instanceof Promise)){Pe.value=!0,D.then(J=>{Pe.value=!1,St(J)});return}St(D)}},St=D=>{switch(D.__CREATE__&&(D={...D},delete D.__CREATE__),r.value){case"single":if(D&&xt(D)){A.value&&wt(D),M.value&&(de(),ft());return}D&&wo(D),k.value&&L(),$.value&&(de(),ft()),D&&Kt(D);break;case"multiple":if(D&&xt(D)){wt(D),M.value&&(de(),ft());return}if(Gn()){e.emit("max",ee);return}D&&(wo(D),Kt(D)),k.value&&L(),l.value&&de(),$.value&&ft();break;case"tags":if(D&&xt(D)){wt(D),M.value&&(de(),ft());return}if(Gn()){e.emit("max",ee);return}D&&wo(D),k.value&&L(),D&&Kt(D),l.value&&de(),$.value&&ft();break}$.value||_e()},Yn=D=>{if(!(lr(D)||r.value==="single"||!N.value)){switch(r.value){case"multiple":case"tags":fl(D[K.value])?wt(D[K.value]):Kt(D[K.value].filter(J=>ie.value.map(me=>me[b.value]).indexOf(J[b.value])===-1).filter(J=>!J[z.value]).filter((J,me)=>ie.value.length+1+me<=T.value||T.value===-1)),l.value&&ge.value&&qe(Zn.value.filter(J=>!J[z.value])[ge.value.index]);break}$.value&&we()}},wo=D=>{Tt(D[b.value])===void 0&&Wn.value&&(e.emit("tag",D[b.value],ee),e.emit("option",D[b.value],ee),e.emit("create",D[b.value],ee),bo.value&&pl(D),L())},Xr=()=>{r.value!=="single"&&Kt(ot.value.filter(D=>!D.disabled&&!xt(D)))},fl=D=>D.find(J=>!xt(J)&&!J[z.value])===void 0,ms=D=>D.find(J=>!xt(J))===void 0,Tt=D=>Fe.value[Fe.value.map(J=>String(J[b.value])).indexOf(String(D))],gs=D=>Fe.value.findIndex(J=>cn.value.some(me=>(parseInt(J[me])==J[me]?parseInt(J[me]):J[me])===(parseInt(D)==D?parseInt(D):D))),Qr=D=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&xt(D),pl=D=>{pt.value.push(D)},Eo=D=>F.value?D.filter(J=>ne.value?J.__VISIBLE__.length:J[K.value].length):D.filter(J=>ne.value?J.__VISIBLE__.length:!0),ei=(D,J=!0)=>{let me=D;if(ne.value&&v.value){let Me=ce.value;Me||(Me=(Tn,Yt,ri)=>cn.value.some(An=>{let ys=Cl(Ne(Tn[An]),I.value);return H.value?ys.startsWith(Cl(Yt,I.value)):ys.indexOf(Cl(Yt,I.value))!==-1})),me=me.filter(Tn=>Me(Tn,ne.value,ee))}return l.value&&J&&(me=me.filter(Me=>!Qr(Me))),me},ti=D=>{let J=D;return UC(J)&&(J=Object.keys(J).map(me=>{let Me=J[me];return{[b.value]:me,[cn.value[0]]:Me,[d.value]:Me}})),J=J.map(me=>typeof me=="object"?me:{[b.value]:me,[cn.value[0]]:me,[d.value]:me}),J},Te=()=>{dn(U.value)||(ie.value=Jn(U.value))},Gt=D=>(Pe.value=!0,new Promise((J,me)=>{o.value(ne.value,ee).then(Me=>{bt.value=Me||[],typeof D=="function"&&D(Me),Pe.value=!1}).catch(Me=>{console.error(Me),bt.value=[],Pe.value=!1}).finally(()=>{J()})})),ni=()=>{if(ko.value)if(r.value==="single"){let D=Tt(ie.value[b.value]);if(D!==void 0){let J=D[d.value];ie.value[d.value]=J,m.value&&(U.value[d.value]=J)}}else ie.value.forEach((D,J)=>{let me=Tt(ie.value[J][b.value]);if(me!==void 0){let Me=me[d.value];ie.value[J][d.value]=Me,m.value&&(U.value[J][d.value]=Me)}})},vs=D=>{Gt(D)},Jn=D=>dn(D)?r.value==="single"?{}:[]:m.value?D:r.value==="single"?Tt(D)||(x.value?{[d.value]:D,[b.value]:D,[cn.value[0]]:D}:{}):D.filter(J=>!!Tt(J)||x.value).map(J=>Tt(J)||{[d.value]:J,[b.value]:J,[cn.value[0]]:J}),oi=()=>{ht.value=i.watch(ne,D=>{D.length<y.value||!D&&y.value!==0||(Pe.value=!0,w.value&&(bt.value=[]),setTimeout(()=>{D==ne.value&&o.value(ne.value,ee).then(J=>{(D==ne.value||!ne.value)&&(bt.value=J,ge.value=ot.value.filter(me=>me[z.value]!==!0)[0]||null,Pe.value=!1)}).catch(J=>{console.error(J)})},C.value))},{flush:"sync"})};if(r.value!=="single"&&!dn(U.value)&&!Array.isArray(U.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?_.value?Gt(Te):m.value==!0&&Te():(bt.value=o.value,Te()),C.value>-1&&oi(),i.watch(C,(D,J)=>{ht.value&&ht.value(),D>=0&&oi()}),i.watch(U,D=>{if(dn(D)){Y(Jn(D),!1);return}switch(r.value){case"single":(m.value?D[b.value]!=ie.value[b.value]:D!=ie.value[b.value])&&Y(Jn(D),!1);break;case"multiple":case"tags":qC(m.value?D.map(J=>J[b.value]):D,ie.value.map(J=>J[b.value]))||Y(Jn(D),!1);break}},{deep:!0}),i.watch(o,(D,J)=>{typeof t.options=="function"?_.value&&(!J||D&&D.toString()!==J.toString())&&Gt():(bt.value=t.options,Object.keys(ie.value).length||Te(),ni())}),i.watch(d,ni),i.watch(a,(D,J)=>{kt.value=R.value&&D===-1?10:D}),{pfo:mt,fo:ot,filteredOptions:ot,hasSelected:ko,multipleLabelText:Kn,eo:Fe,extendedOptions:Fe,eg:Zt,extendedGroups:Zt,fg:Zn,filteredGroups:Zn,noOptions:ir,noResults:sr,resolving:Pe,busy:Yr,offset:kt,select:Kt,deselect:wt,remove:ar,selectAll:Xr,clear:Jr,isSelected:xt,isDisabled:lr,isMax:Gn,getOption:Tt,handleOptionClick:cr,handleGroupClick:Yn,handleTagRemove:hs,refreshOptions:vs,resolveOptions:Gt,refreshLabels:ni}}function jC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,h=n.fg,m=n.handleOptionClick,g=n.handleGroupClick,C=n.search,_=n.pointer,y=n.setPointer,v=n.clearPointer,w=n.multiselect,k=n.isOpen,b=i.computed(()=>p.value.filter(U=>!U[d.value])),x=i.computed(()=>h.value.filter(U=>!U[d.value])),S=i.computed(()=>c.value!=="single"&&u.value),A=i.computed(()=>_.value&&_.value.group),T=i.computed(()=>ee(_.value)),I=i.computed(()=>{const U=A.value?_.value:ee(_.value),ne=x.value.map(Y=>Y[a.value]).indexOf(U[a.value]);let L=x.value[ne-1];return L===void 0&&(L=M.value),L}),$=i.computed(()=>{let U=x.value.map(ne=>ne.label).indexOf(A.value?_.value[a.value]:ee(_.value)[a.value])+1;return x.value.length<=U&&(U=0),x.value[U]}),M=i.computed(()=>[...x.value].slice(-1)[0]),B=i.computed(()=>_.value.__VISIBLE__.filter(U=>!U[d.value])[0]),P=i.computed(()=>{const U=T.value.__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1]}),R=i.computed(()=>{const U=ee(_.value).__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1]}),K=i.computed(()=>[...I.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),F=i.computed(()=>[...M.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),N=U=>_.value&&(!U.group&&_.value[o.value]===U[o.value]||U.group!==void 0&&_.value[a.value]===U[a.value])?!0:void 0,G=()=>{y(b.value[0]||null)},z=()=>{!_.value||_.value[d.value]===!0||(A.value?g(_.value):m(_.value))},H=()=>{if(_.value===null)y((l.value&&S.value?x.value[0].__CREATE__?b.value[0]:x.value[0]:b.value[0])||null);else if(l.value&&S.value){let U=A.value?B.value:R.value;U===void 0&&(U=$.value,U.__CREATE__&&(U=U[f.value][0])),y(U||null)}else{let U=b.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1;b.value.length<=U&&(U=0),y(b.value[U]||null)}i.nextTick(()=>{ie()})},ce=()=>{if(_.value===null){let U=b.value[b.value.length-1];l.value&&S.value&&(U=F.value,U===void 0&&(U=M.value)),y(U||null)}else if(l.value&&S.value){let U=A.value?K.value:P.value;U===void 0&&(U=A.value?I.value:T.value,U.__CREATE__&&(U=K.value,U===void 0&&(U=I.value))),y(U||null)}else{let U=b.value.map(ne=>ne[o.value]).indexOf(_.value[o.value])-1;U<0&&(U=b.value.length-1),y(b.value[U]||null)}i.nextTick(()=>{ie()})},ee=U=>x.value.find(ne=>ne.__VISIBLE__.map(L=>L[o.value]).indexOf(U[o.value])!==-1),ie=()=>{let U=w.value.querySelector("[data-pointed]");if(!U)return;let ne=U.parentElement.parentElement;l.value&&(ne=A.value?U.parentElement.parentElement.parentElement:U.parentElement.parentElement.parentElement.parentElement),U.offsetTop+U.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=U.offsetTop+U.offsetHeight-ne.clientHeight),U.offsetTop<ne.scrollTop&&(ne.scrollTop=U.offsetTop)};return i.watch(C,U=>{s.value&&(U.length&&r.value?G():v())}),i.watch(k,U=>{if(U){let ne=w.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let L=ne.parentElement.parentElement;i.nextTick(()=>{L.scrollTop>0||(L.scrollTop=ne.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:N,setPointerFirst:G,selectPointer:z,forwardPointer:H,backwardPointer:ce}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ho(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function tu(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Fo=Math.max,Qs=Math.min,Mr=Math.round;function lc(){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 qp(){return!/^((?!chrome|android).)*safari/i.test(lc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Ho(t)?$t(t):window,l=a.visualViewport,c=!qp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function nu(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function WC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ZC(t){return t===$t(t)||!Ut(t)?nu(t):WC(t)}function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function vo(t){return((Ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function ou(t){return Br(vo(t)).left+nu(t).scrollLeft}function Rn(t){return $t(t).getComputedStyle(t)}function ru(t){var e=Rn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function KC(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function GC(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&KC(e),s=vo(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Cn(e)!=="body"||ru(s))&&(l=ZC(e)),Ut(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=ou(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Hp(t){var e=Br(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Oa(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(tu(t)?t.host:null)||vo(t)}function jp(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:Ut(t)&&ru(t)?t:jp(Oa(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=jp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],ru(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(Oa(a)))}function YC(t){return["table","td","th"].indexOf(Cn(t))>=0}function Ad(t){return!Ut(t)||Rn(t).position==="fixed"?null:t.offsetParent}function JC(t){var e=/firefox/i.test(lc()),n=/Trident/i.test(lc());if(n&&Ut(t)){var o=Rn(t);if(o.position==="fixed")return null}var r=Oa(t);for(tu(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(Cn(r))<0;){var s=Rn(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function La(t){for(var e=$t(t),n=Ad(t);n&&YC(n)&&Rn(n).position==="static";)n=Ad(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&Rn(n).position==="static")?e:n||JC(t)||e}var Qt="top",bn="bottom",fo="right",Ln="left",iu="auto",Ia=[Qt,bn,fo,Ln],$r="start",Fi="end",XC="clippingParents",Wp="viewport",fi="popper",QC="reference",Nd=Ia.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),eb=[].concat(Ia,[iu]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),tb="beforeRead",nb="read",ob="afterRead",rb="beforeMain",ib="main",sb="afterMain",ab="beforeWrite",lb="write",cb="afterWrite",ub=[tb,nb,ob,rb,ib,sb,ab,lb,cb];function db(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function fb(t){var e=db(t);return ub.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function pb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function hb(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function mb(t,e){var n=$t(t),o=vo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=qp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+ou(t),y:c}}function gb(t){var e,n=vo(t),o=nu(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Fo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Fo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ou(t),c=-o.scrollTop;return Rn(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function vb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&tu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function cc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function yb(t,e){var n=Br(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 Dd(t,e,n){return e===Wp?cc(mb(t,n)):Ho(e)?yb(e,n):cc(gb(vo(t)))}function _b(t){var e=Ei(Oa(t)),n=["absolute","fixed"].indexOf(Rn(t).position)>=0,o=n&&Ut(t)?La(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&vb(r,o)&&Cn(r)!=="body"}):[]}function Cb(t,e,n,o){var r=e==="clippingParents"?_b(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Dd(t,u,o);return c.top=Fo(d.top,c.top),c.right=Qs(d.right,c.right),c.bottom=Qs(d.bottom,c.bottom),c.left=Fo(d.left,c.left),c},Dd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function io(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Zp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Kp(t){var e=t.reference,n=t.element,o=t.placement,r=o?io(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case bn:c={x:a,y:e.y+e.height};break;case fo:c={x:e.x+e.width,y:l};break;case Ln:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Zp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Gp(){return{top:0,right:0,bottom:0,left:0}}function bb(t){return Object.assign({},Gp(),t)}function kb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function su(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?XC:l,u=n.rootBoundary,d=u===void 0?Wp:u,f=n.elementContext,p=f===void 0?fi:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,C=g===void 0?0:g,_=bb(typeof C!="number"?C:kb(C,Ia)),y=p===fi?QC:fi,v=t.rects.popper,w=t.elements[m?y:p],k=Cb(Ho(w)?w:w.contextElement||vo(t.elements.popper),c,d,a),b=Br(t.elements.reference),x=Kp({reference:b,element:v,strategy:"absolute",placement:r}),S=cc(Object.assign({},v,x)),A=p===fi?S:b,T={top:k.top-A.top+_.top,bottom:A.bottom-k.bottom+_.bottom,left:k.left-A.left+_.left,right:A.right-k.right+_.right},I=t.modifiersData.offset;if(p===fi&&I){var $=I[r];Object.keys(T).forEach(function(M){var B=[fo,bn].indexOf(M)>=0?1:-1,P=[Qt,bn].indexOf(M)>=0?"y":"x";T[M]+=$[P]*B})}return T}var Md={placement:"bottom",modifiers:[],strategy:"absolute"};function Bd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function wb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Md:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(_){var y=typeof _=="function"?_(d.options):_;g(),d.options=Object.assign({},s,d.options,y),d.scrollParents={reference:Ho(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var v=fb(hb([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var _=d.elements,y=_.reference,v=_.popper;if(Bd(y,v)){d.rects={reference:GC(y,La(v),d.options.strategy==="fixed"),popper:Hp(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],b=k.fn,x=k.options,S=x===void 0?{}:x,A=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:A,instance:h})||d)}}}},update:pb(function(){return new Promise(function(C){h.forceUpdate(),C(d)})}),destroy:function(){g(),p=!0}};if(!Bd(l,c))return h;h.setOptions(u).then(function(C){!p&&u.onFirstUpdate&&u.onFirstUpdate(C)});function m(){d.orderedModifiers.forEach(function(C){var _=C.name,y=C.options,v=y===void 0?{}:y,w=C.effect;if(typeof w=="function"){var k=w({state:d,name:_,instance:h,options:v}),b=function(){};f.push(k||b)}})}function g(){f.forEach(function(C){return C()}),f=[]}return h}}var Ss={passive:!0};function Eb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ss)}),l&&c.addEventListener("resize",n.update,Ss),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ss)}),l&&c.removeEventListener("resize",n.update,Ss)}}var xb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eb,data:{}};function Sb(t){var e=t.state,n=t.name;e.modifiersData[n]=Kp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Tb={name:"popperOffsets",enabled:!0,phase:"read",fn:Sb,data:{}},Ab={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function $d(t){var e,n=t.popper,o=t.popperRect,r=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,C=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=C.x,g=C.y;var _=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=Ln,w=Qt,k=window;if(u){var b=La(n),x="clientHeight",S="clientWidth";if(b===$t(n)&&(b=vo(n),Rn(b).position!=="static"&&l==="absolute"&&(x="scrollHeight",S="scrollWidth")),b=b,r===Qt||(r===Ln||r===fo)&&s===Fi){w=bn;var A=f&&b===k&&k.visualViewport?k.visualViewport.height:b[x];g-=A-o.height,g*=c?1:-1}if(r===Ln||(r===Qt||r===bn)&&s===Fi){v=fo;var T=f&&b===k&&k.visualViewport?k.visualViewport.width:b[S];h-=T-o.width,h*=c?1:-1}}var I=Object.assign({position:l},u&&Ab),$=d===!0?Nb({x:h,y:g},$t(n)):{x:h,y:g};if(h=$.x,g=$.y,c){var M;return Object.assign({},I,(M={},M[w]=y?"0":"",M[v]=_?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",M))}return Object.assign({},I,(e={},e[w]=y?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function Db(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:io(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$d(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$d(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Mb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Db,data:{}};function Bb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!Cn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function $b(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(o){var r=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ut(r)||!Cn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Ob={name:"applyStyles",enabled:!0,phase:"write",fn:Bb,effect:$b,requires:["computeStyles"]},Lb=[xb,Tb,Mb,Ob],Ib=wb({defaultModifiers:Lb});function Pb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Fo(t,Qs(e,n))}function Fb(t,e,n){var o=zs(t,e,n);return o>n?n:o}function Rb(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,C=su(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),_=io(e.placement),y=Or(e.placement),v=!y,w=Zp(_),k=Pb(w),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,A=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,T=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(b){if(s){var M,B=w==="y"?Qt:Ln,P=w==="y"?bn:fo,R=w==="y"?"height":"width",K=b[w],F=K+C[B],N=K-C[P],G=h?-S[R]/2:0,z=y===$r?x[R]:S[R],H=y===$r?-S[R]:-x[R],ce=e.elements.arrow,ee=h&&ce?Hp(ce):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gp(),U=ie[B],ne=ie[P],L=zs(0,x[R],ee[R]),Y=v?x[R]/2-G-L-U-T.mainAxis:z-L-U-T.mainAxis,ge=v?-x[R]/2+G+L+ne+T.mainAxis:H+L+ne+T.mainAxis,qe=e.elements.arrow&&La(e.elements.arrow),de=qe?w==="y"?qe.clientTop||0:qe.clientLeft||0:0,_e=(M=I==null?void 0:I[w])!=null?M:0,we=K+Y-_e-de,ft=K+ge-_e,Ne=zs(h?Qs(F,we):F,K,h?Fo(N,ft):N);b[w]=Ne,$[w]=Ne-K}if(l){var pt,bt=w==="x"?Qt:Ln,Pe=w==="x"?bn:fo,ht=b[k],kt=k==="y"?"height":"width",Wn=ht+C[bt],bo=ht-C[Pe],Fe=[Qt,Ln].indexOf(_)!==-1,mt=(pt=I==null?void 0:I[k])!=null?pt:0,ot=Fe?Wn:ht-x[kt]-S[kt]-mt+T.altAxis,Zt=Fe?ht+x[kt]+S[kt]-mt-T.altAxis:bo,xn=h&&Fe?Fb(ot,ht,Zt):zs(h?ot:Wn,ht,h?Zt:bo);b[k]=xn,$[k]=xn-ht}e.modifiersData[o]=$}}var Vb={name:"preventOverflow",enabled:!0,phase:"main",fn:Rb,requiresIfExists:["offset"]},zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return zb[e]})}var Ub={start:"end",end:"start"};function Od(t){return t.replace(/start|end/g,function(e){return Ub[e]})}function qb(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?eb:c,d=Or(o),f=d?l?Nd:Nd.filter(function(m){return Or(m)===d}):Ia,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=su(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[io(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Hb(t){if(io(t)===iu)return[];var e=Us(t);return[Od(t),e,Od(e)]}function jb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,C=e.options.placement,_=io(C),y=_===C,v=c||(y||!m?[Us(C)]:Hb(C)),w=[C].concat(v).reduce(function(ee,ie){return ee.concat(io(ie)===iu?qb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):ie)},[]),k=e.rects.reference,b=e.rects.popper,x=new Map,S=!0,A=w[0],T=0;T<w.length;T++){var I=w[T],$=io(I),M=Or(I)===$r,B=[Qt,bn].indexOf($)>=0,P=B?"width":"height",R=su(e,{placement:I,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=B?M?fo:Ln:M?bn:Qt;k[P]>b[P]&&(K=Us(K));var F=Us(K),N=[];if(s&&N.push(R[$]<=0),l&&N.push(R[K]<=0,R[F]<=0),N.every(function(ee){return ee})){A=I,S=!1;break}x.set(I,N)}if(S)for(var G=m?3:1,z=function(ie){var U=w.find(function(ne){var L=x.get(ne);if(L)return L.slice(0,ie).every(function(Y){return Y})});if(U)return A=U,"break"},H=G;H>0;H--){var ce=z(H);if(ce==="break")break}e.placement!==A&&(e.modifiersData[o]._skip=!0,e.placement=A,e.reset=!0)}}var Wb={name:"flip",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"],data:{_skip:!1}};function Zb(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),h=i.computed(()=>r.value||s.value),m=i.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),h.value&&i.nextTick(()=>{_()}))},C=()=>{d.value&&(d.value=!1,e.emit("close",l))},_=()=>{if(!f.value)return;let v=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),w=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(k=>({...k,modifiers:[...k.modifiers,{name:"offset",options:{offset:[0,(m.value==="top"?v:w)*-1]}}]})),f.value.update()},y=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return i.onMounted(()=>{h.value&&(f.value=Ib(c.value,u.value,{strategy:y(c.value)?"fixed":void 0,placement:a.value,modifiers:[Vb,Wb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){p.value=v.placement}}]}))}),i.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:C,placement:m,updatePopper:_}}function Kb(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,h=i.ref(!1),m=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),C=()=>{o.value&&a.value.blur(),f.value.blur()},_=()=>{o.value&&!r.value&&a.value.focus()},y=(S=!0)=>{r.value||(h.value=!0,S&&l())},v=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:h,mouseClicked:m,blur:C,focus:_,activate:y,deactivate:v,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||y(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),C()},handleMousedown:S=>{m.value=!0,d.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&y(),setTimeout(()=>{m.value=!1},0)}}}function Gb(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=i.toRefs(t),m=i.getCurrentInstance().proxy,g=n.iv,C=n.update,_=n.deselect,y=n.search,v=n.setPointer,w=n.selectPointer,k=n.backwardPointer,b=n.forwardPointer,x=n.multiselect,S=n.wrapper,A=n.tags,T=n.isOpen,I=n.open,$=n.blur,M=n.fo,B=i.computed(()=>f.value||p.value||!1),P=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),R=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&v(M.value[M.value.map(N=>N[c.value]).indexOf(y.value)])};return{handleKeydown:N=>{e.emit("keydown",N,m);let G,z;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(N.key)!==-1&&o.value==="tags"&&(G=[...x.value.querySelectorAll("[data-tags] > *")].filter(H=>H!==A.value),z=G.findIndex(H=>H===document.activeElement)),N.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(y.value)===-1||g.value.length===0)return;let H=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);H.length&&_(H[H.length-1]);break;case"Enter":if(N.preventDefault(),N.keyCode===229)return;if(z!==-1&&z!==void 0){C([...g.value].filter((ce,ee)=>ee!==z)),z===G.length-1&&(G.length-1?G[G.length-2].focus():a.value?A.value.querySelector("input").focus():S.value.focus());return}if(P.value.indexOf("enter")===-1&&B.value)return;R(),w();break;case" ":if(!B.value&&!a.value){N.preventDefault(),R(),w();return}if(!B.value)return!1;if(P.value.indexOf("space")===-1&&B.value)return;N.preventDefault(),R(),w();break;case"Tab":case";":case",":if(P.value.indexOf(N.key.toLowerCase())===-1||!B.value)return;R(),w(),N.preventDefault();break;case"Escape":$();break;case"ArrowUp":if(N.preventDefault(),!l.value)return;T.value||I(),k();break;case"ArrowDown":if(N.preventDefault(),!l.value)return;T.value||I(),b();break;case"ArrowLeft":if(a.value&&A.value&&A.value.querySelector("input").selectionStart||N.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;N.preventDefault(),z===-1?G[G.length-1].focus():z>0&&G[z-1].focus();break;case"ArrowRight":if(z===-1||N.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;N.preventDefault(),G.length>z+1?G[z+1].focus():a.value?A.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:N=>{e.emit("keyup",N,m)},preparePointer:R}}function Yb(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,m=n.fo,g=n.placement,C=i.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),_=i.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&m.value.length)));return{classList:i.computed(()=>{const v=C.value;return{container:[v.container].concat(r.value?v.containerDisabled:[]).concat(_.value&&g.value==="top"?v.containerOpenTop:[]).concat(_.value&&g.value!=="top"?v.containerOpen:[]).concat(f.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(r.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,a.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(g.value==="top"?v.dropdownTop:[]).concat(!l.value||!s.value||!_.value?v.dropdownHidden:[]),options:[v.options].concat(g.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let k=[v.groupLabel];return c(w)?k.push(u(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):u(w)&&p.value?k.push(d(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(w)&&k.push(v.groupLabelDisabled),p.value&&k.push(v.groupLabelPointable),k},groupOptions:v.groupOptions,option:(w,k)=>{let b=[v.option];return c(w)?b.push(u(w)?v.optionSelectedPointed:v.optionPointed):u(w)?b.push(d(w)?v.optionSelectedDisabled:v.optionSelected):(d(w)||k&&d(k))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:_}}function Jb(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.computed(()=>a.value<c.value.length),h=g=>{const{isIntersecting:C,target:_}=g[0];if(C){const y=_.offsetParent,v=y.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{y.scrollTop=v})}},m=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&m()}),i.watch(l,()=>{r.value&&(a.value=o.value,m())},{flush:"post"}),i.watch(u,()=>{r.value&&m()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function Xb(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,h=n.hasSelected,m=n.multipleLabelText,g=i.ref(null),C=i.computed(()=>{let $=[];return r&&r.value&&$.push(r.value),$.push("assist"),$.join("-")}),_=i.computed(()=>{let $=[];return r&&r.value&&$.push(r.value),$.push("multiselect-options"),$.join("-")}),y=i.computed(()=>{let $=[];if(r&&r.value&&$.push(r.value),f.value)return $.push(f.value.group?"multiselect-group":"multiselect-option"),$.push(f.value.group?f.value.index:f.value[s.value]),$.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let $="";return l.value==="single"&&h.value&&($+=p.value[a.value]),l.value==="multiple"&&h.value&&($+=m.value),l.value==="tags"&&h.value&&($+=p.value.map(M=>M[a.value]).join(", ")),$}),b=i.computed(()=>{let $={...u.value};return d.value&&($["aria-labelledby"]=$["aria-labelledby"]?`${C.value} ${$["aria-labelledby"]}`:C.value,k.value&&$["aria-label"]&&($["aria-label"]=`${k.value}, ${$["aria-label"]}`)),$}),x=$=>{let M=[];return r&&r.value&&M.push(r.value),M.push("multiselect-option"),M.push($[s.value]),M.join("-")},S=$=>{let M=[];return r&&r.value&&M.push(r.value),M.push("multiselect-group"),M.push($.index),M.join("-")},A=$=>{let M=[];return M.push($),M.join(" ")},T=$=>{let M=[];return M.push($),M.join(" ")},I=$=>`${$} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let $=document.querySelector(`[for="${r.value}"]`);g.value=$?$.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:C,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:y,ariaOptionId:x,ariaOptionLabel:A,ariaGroupId:S,ariaGroupLabel:T,ariaTagLabel:I}}function Qb(t,e,n){const{locale:o,fallbackLocale:r}=i.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function e9(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function t9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var to={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return t9(t,e,[e9,Qb,RC,zC,Zb,VC,FC,Kb,HC,Jb,jC,Gb,Yb,Xb])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const n9=["id","dir"],o9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],r9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],i9=["onKeyup","aria-label"],s9=["onClick"],a9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],l9=["innerHTML"],c9=["id"],u9=["id"],d9=["id","aria-label","aria-selected"],f9=["data-pointed","onMouseenter","onMousedown"],p9=["innerHTML"],h9=["aria-label"],m9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],g9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],v9=["innerHTML"],y9=["innerHTML"],_9=["value"],C9=["name","value"],b9=["name","value"],k9=["id"];function w9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[i.createElementVNode("div",i.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=i.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,r9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,s9)):i.createCommentVNode("v-if",!0)],42,i9))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=i.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,a9)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,l9)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,o9),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,p9)])],42,f9)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:f,onMouseenter:p=>t.setPointer(u),onMousedown:i.withModifiers(p=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,m9))),128))],10,h9)],10,d9))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:i.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,g9))),128))],10,u9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,v9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,y9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,c9)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,_9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,C9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,b9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,k9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,n9)}to.render=w9;to.__file="src/Multiselect.vue";const Dt=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&PC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(to),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Ld;function Hn(){const t=E9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function E9(){const t=i.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Ld.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Ld.lastIndex}return o.push(n.substring(s)),o}}});async function In(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const x9={class:"ao-tasks"},S9={class:"ao-tasks__list"},T9=["id","value","readonly","onChange"],A9={class:"ao-tasks__list-footer"},N9=i.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.tasks,(p,h)=>{In(p,h)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(h=>({label:`${h.firstName} ${h.lastName}`,value:h.id,avatar:h.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,h={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",h)},l=(p,h)=>{const g=p.target.value;r("update",{id:h,name:g})},c=(p,h)=>{o.isEditable&&r("update",{id:p,isDone:h})},u=p=>{r("delete",{id:p})},d=(p,h)=>{r("update",{id:h,assigneeId:p[0]??null})},f=p=>{const h=p.target;h==null||h.blur()};return(p,h)=>(i.openBlock(),i.createElementBlock("div",x9,[i.createElementVNode("ul",S9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,m=>{var g,C;return i.openBlock(),i.createElementBlock("li",{key:m.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,m))??!1?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":m.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(m.id,!m.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:m.id,value:m.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":m.isDone}]),type:"text",onChange:_=>l(_,m.id),onKeyup:i.withKeys(f,["enter"])},null,42,T9),h[0]||(h[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Dt,{key:1,value:(C=m.assignee)!=null&&C.id?[m.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:_=>d(_,m.id)},{tag:i.withCtx(({option:_,handleTagRemove:y})=>[i.createVNode(Un,{"user-name":_.label,"avatar-url":_.avatar,"is-closable":!0,onClose:v=>y(_,v)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(m.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",A9,[t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const D9={class:"ao-files__placeholder"},M9={key:0,class:"ao-files__list"},B9=["href"],$9={class:"ao-file__title"},O9={key:0},L9={class:"ao-files__input"},I9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},P9={class:"ao-button__label"},F9={class:"ao-files__dropzone"},R9={class:"ao-files__dropzone-label"},V9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=f=>{n("remove",f)},s=f=>{const p=f.target,h=Array.from(p.files??[]);n("add",h)},a=["dragenter","dragover","dragleave","drop"];i.onMounted(()=>{a.forEach(f=>{document.body.addEventListener(f,p=>p.preventDefault())})}),i.onUnmounted(()=>{a.forEach(f=>{document.body.removeEventListener(f,p=>p.preventDefault())})});const l=i.ref(!1);function c(){o.isEditable&&(l.value=!0)}function u(){l.value=!1}i.watch(l,f=>{n("toggleIsDropActive",f)});function d(f){var h;u();const p=Array.from(((h=f.dataTransfer)==null?void 0:h.files)||[]);f.dataTransfer&&n("add",p)}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:i.withModifiers(d,["prevent"]),onDragenter:i.withModifiers(c,["prevent"]),onDragover:i.withModifiers(c,["prevent"]),onDragleave:i.withModifiers(u,["prevent"])},[i.renderSlot(f.$slots,"default",{},()=>[i.createElementVNode("span",D9,i.toDisplayString(f.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(i.openBlock(),i.createElementBlock("ul",M9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,h=>(i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-file"},[i.createElementVNode("a",{class:"ao-file__link",href:h.url,target:"_blank",rel:"noopener noreferrer"},[i.createVNode(Se,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",$9,i.toDisplayString(h.name),1)],8,B9),t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(h)},null,8,["onClick"])):i.createCommentVNode("",!0)]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",O9,[i.createElementVNode("label",L9,[i.createElementVNode("div",I9,[i.createVNode(Se,{name:"Add",size:"sm"}),i.createElementVNode("span",P9,i.toDisplayString(f.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:s},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",F9,[i.createElementVNode("span",R9,i.toDisplayString(f.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,l.value]])],34))}});var ke={};const z9="Á",U9="á",q9="Ă",H9="ă",j9="∾",W9="∿",Z9="∾̳",K9="Â",G9="â",Y9="´",J9="А",X9="а",Q9="Æ",e4="æ",t4="⁡",n4="𝔄",o4="𝔞",r4="À",i4="à",s4="ℵ",a4="ℵ",l4="Α",c4="α",u4="Ā",d4="ā",f4="⨿",p4="&",h4="&",m4="⩕",g4="⩓",v4="∧",y4="⩜",_4="⩘",C4="⩚",b4="∠",k4="⦤",w4="∠",E4="⦨",x4="⦩",S4="⦪",T4="⦫",A4="⦬",N4="⦭",D4="⦮",M4="⦯",B4="∡",$4="∟",O4="⊾",L4="⦝",I4="∢",P4="Å",F4="⍼",R4="Ą",V4="ą",z4="𝔸",U4="𝕒",q4="⩯",H4="≈",j4="⩰",W4="≊",Z4="≋",K4="'",G4="⁡",Y4="≈",J4="≊",X4="Å",Q4="å",e8="𝒜",t8="𝒶",n8="≔",o8="*",r8="≈",i8="≍",s8="Ã",a8="ã",l8="Ä",c8="ä",u8="∳",d8="⨑",f8="≌",p8="϶",h8="‵",m8="∽",g8="⋍",v8="∖",y8="⫧",_8="⊽",C8="⌅",b8="⌆",k8="⌅",w8="⎵",E8="⎶",x8="≌",S8="Б",T8="б",A8="„",N8="∵",D8="∵",M8="∵",B8="⦰",$8="϶",O8="ℬ",L8="ℬ",I8="Β",P8="β",F8="ℶ",R8="≬",V8="𝔅",z8="𝔟",U8="⋂",q8="◯",H8="⋃",j8="⨀",W8="⨁",Z8="⨂",K8="⨆",G8="★",Y8="▽",J8="△",X8="⨄",Q8="⋁",ek="⋀",tk="⤍",nk="⧫",ok="▪",rk="▴",ik="▾",sk="◂",ak="▸",lk="␣",ck="▒",uk="░",dk="▓",fk="█",pk="=⃥",hk="≡⃥",mk="⫭",gk="⌐",vk="𝔹",yk="𝕓",_k="⊥",Ck="⊥",bk="⋈",kk="⧉",wk="┐",Ek="╕",xk="╖",Sk="╗",Tk="┌",Ak="╒",Nk="╓",Dk="╔",Mk="─",Bk="═",$k="┬",Ok="╤",Lk="╥",Ik="╦",Pk="┴",Fk="╧",Rk="╨",Vk="╩",zk="⊟",Uk="⊞",qk="⊠",Hk="┘",jk="╛",Wk="╜",Zk="╝",Kk="└",Gk="╘",Yk="╙",Jk="╚",Xk="│",Qk="║",e6="┼",t6="╪",n6="╫",o6="╬",r6="┤",i6="╡",s6="╢",a6="╣",l6="├",c6="╞",u6="╟",d6="╠",f6="‵",p6="˘",h6="˘",m6="¦",g6="𝒷",v6="ℬ",y6="⁏",_6="∽",C6="⋍",b6="⧅",k6="\\",w6="⟈",E6="•",x6="•",S6="≎",T6="⪮",A6="≏",N6="≎",D6="≏",M6="Ć",B6="ć",$6="⩄",O6="⩉",L6="⩋",I6="∩",P6="⋒",F6="⩇",R6="⩀",V6="ⅅ",z6="∩︀",U6="⁁",q6="ˇ",H6="ℭ",j6="⩍",W6="Č",Z6="č",K6="Ç",G6="ç",Y6="Ĉ",J6="ĉ",X6="∰",Q6="⩌",ew="⩐",tw="Ċ",nw="ċ",ow="¸",rw="¸",iw="⦲",sw="¢",aw="·",lw="·",cw="𝔠",uw="ℭ",dw="Ч",fw="ч",pw="✓",hw="✓",mw="Χ",gw="χ",vw="ˆ",yw="≗",_w="↺",Cw="↻",bw="⊛",kw="⊚",ww="⊝",Ew="⊙",xw="®",Sw="Ⓢ",Tw="⊖",Aw="⊕",Nw="⊗",Dw="○",Mw="⧃",Bw="≗",$w="⨐",Ow="⫯",Lw="⧂",Iw="∲",Pw="”",Fw="’",Rw="♣",Vw="♣",zw=":",Uw="∷",qw="⩴",Hw="≔",jw="≔",Ww=",",Zw="@",Kw="∁",Gw="∘",Yw="∁",Jw="ℂ",Xw="≅",Qw="⩭",eE="≡",tE="∮",nE="∯",oE="∮",rE="𝕔",iE="ℂ",sE="∐",aE="∐",lE="©",cE="©",uE="℗",dE="∳",fE="↵",pE="✗",hE="⨯",mE="𝒞",gE="𝒸",vE="⫏",yE="⫑",_E="⫐",CE="⫒",bE="⋯",kE="⤸",wE="⤵",EE="⋞",xE="⋟",SE="↶",TE="⤽",AE="⩈",NE="⩆",DE="≍",ME="∪",BE="⋓",$E="⩊",OE="⊍",LE="⩅",IE="∪︀",PE="↷",FE="⤼",RE="⋞",VE="⋟",zE="⋎",UE="⋏",qE="¤",HE="↶",jE="↷",WE="⋎",ZE="⋏",KE="∲",GE="∱",YE="⌭",JE="†",XE="‡",QE="ℸ",ex="↓",tx="↡",nx="⇓",ox="‐",rx="⫤",ix="⊣",sx="⤏",ax="˝",lx="Ď",cx="ď",ux="Д",dx="д",fx="‡",px="⇊",hx="ⅅ",mx="ⅆ",gx="⤑",vx="⩷",yx="°",_x="∇",Cx="Δ",bx="δ",kx="⦱",wx="⥿",Ex="𝔇",xx="𝔡",Sx="⥥",Tx="⇃",Ax="⇂",Nx="´",Dx="˙",Mx="˝",Bx="`",$x="˜",Ox="⋄",Lx="⋄",Ix="⋄",Px="♦",Fx="♦",Rx="¨",Vx="ⅆ",zx="ϝ",Ux="⋲",qx="÷",Hx="÷",jx="⋇",Wx="⋇",Zx="Ђ",Kx="ђ",Gx="⌞",Yx="⌍",Jx="$",Xx="𝔻",Qx="𝕕",eS="¨",tS="˙",nS="⃜",oS="≐",rS="≑",iS="≐",sS="∸",aS="∔",lS="⊡",cS="⌆",uS="∯",dS="¨",fS="⇓",pS="⇐",hS="⇔",mS="⫤",gS="⟸",vS="⟺",yS="⟹",_S="⇒",CS="⊨",bS="⇑",kS="⇕",wS="∥",ES="⤓",xS="↓",SS="↓",TS="⇓",AS="⇵",NS="̑",DS="⇊",MS="⇃",BS="⇂",$S="⥐",OS="⥞",LS="⥖",IS="↽",PS="⥟",FS="⥗",RS="⇁",VS="↧",zS="⊤",US="⤐",qS="⌟",HS="⌌",jS="𝒟",WS="𝒹",ZS="Ѕ",KS="ѕ",GS="⧶",YS="Đ",JS="đ",XS="⋱",QS="▿",eT="▾",tT="⇵",nT="⥯",oT="⦦",rT="Џ",iT="џ",sT="⟿",aT="É",lT="é",cT="⩮",uT="Ě",dT="ě",fT="Ê",pT="ê",hT="≖",mT="≕",gT="Э",vT="э",yT="⩷",_T="Ė",CT="ė",bT="≑",kT="ⅇ",wT="≒",ET="𝔈",xT="𝔢",ST="⪚",TT="È",AT="è",NT="⪖",DT="⪘",MT="⪙",BT="∈",$T="⏧",OT="ℓ",LT="⪕",IT="⪗",PT="Ē",FT="ē",RT="∅",VT="∅",zT="◻",UT="∅",qT="▫",HT=" ",jT=" ",WT=" ",ZT="Ŋ",KT="ŋ",GT=" ",YT="Ę",JT="ę",XT="𝔼",QT="𝕖",eA="⋕",tA="⧣",nA="⩱",oA="ε",rA="Ε",iA="ε",sA="ϵ",aA="≖",lA="≕",cA="≂",uA="⪖",dA="⪕",fA="⩵",pA="=",hA="≂",mA="≟",gA="⇌",vA="≡",yA="⩸",_A="⧥",CA="⥱",bA="≓",kA="ℯ",wA="ℰ",EA="≐",xA="⩳",SA="≂",TA="Η",AA="η",NA="Ð",DA="ð",MA="Ë",BA="ë",$A="€",OA="!",LA="∃",IA="∃",PA="ℰ",FA="ⅇ",RA="ⅇ",VA="≒",zA="Ф",UA="ф",qA="♀",HA="ffi",jA="ff",WA="ffl",ZA="𝔉",KA="𝔣",GA="fi",YA="◼",JA="▪",XA="fj",QA="♭",eN="fl",tN="▱",nN="ƒ",oN="𝔽",rN="𝕗",iN="∀",sN="∀",aN="⋔",lN="⫙",cN="ℱ",uN="⨍",dN="½",fN="⅓",pN="¼",hN="⅕",mN="⅙",gN="⅛",vN="⅔",yN="⅖",_N="¾",CN="⅗",bN="⅜",kN="⅘",wN="⅚",EN="⅝",xN="⅞",SN="⁄",TN="⌢",AN="𝒻",NN="ℱ",DN="ǵ",MN="Γ",BN="γ",$N="Ϝ",ON="ϝ",LN="⪆",IN="Ğ",PN="ğ",FN="Ģ",RN="Ĝ",VN="ĝ",zN="Г",UN="г",qN="Ġ",HN="ġ",jN="≥",WN="≧",ZN="⪌",KN="⋛",GN="≥",YN="≧",JN="⩾",XN="⪩",QN="⩾",eD="⪀",tD="⪂",nD="⪄",oD="⋛︀",rD="⪔",iD="𝔊",sD="𝔤",aD="≫",lD="⋙",cD="⋙",uD="ℷ",dD="Ѓ",fD="ѓ",pD="⪥",hD="≷",mD="⪒",gD="⪤",vD="⪊",yD="⪊",_D="⪈",CD="≩",bD="⪈",kD="≩",wD="⋧",ED="𝔾",xD="𝕘",SD="`",TD="≥",AD="⋛",ND="≧",DD="⪢",MD="≷",BD="⩾",$D="≳",OD="𝒢",LD="ℊ",ID="≳",PD="⪎",FD="⪐",RD="⪧",VD="⩺",zD=">",UD=">",qD="≫",HD="⋗",jD="⦕",WD="⩼",ZD="⪆",KD="⥸",GD="⋗",YD="⋛",JD="⪌",XD="≷",QD="≳",eM="≩︀",tM="≩︀",nM="ˇ",oM=" ",rM="½",iM="ℋ",sM="Ъ",aM="ъ",lM="⥈",cM="↔",uM="⇔",dM="↭",fM="^",pM="ℏ",hM="Ĥ",mM="ĥ",gM="♥",vM="♥",yM="…",_M="⊹",CM="𝔥",bM="ℌ",kM="ℋ",wM="⤥",EM="⤦",xM="⇿",SM="∻",TM="↩",AM="↪",NM="𝕙",DM="ℍ",MM="―",BM="─",$M="𝒽",OM="ℋ",LM="ℏ",IM="Ħ",PM="ħ",FM="≎",RM="≏",VM="⁃",zM="‐",UM="Í",qM="í",HM="⁣",jM="Î",WM="î",ZM="И",KM="и",GM="İ",YM="Е",JM="е",XM="¡",QM="⇔",eB="𝔦",tB="ℑ",nB="Ì",oB="ì",rB="ⅈ",iB="⨌",sB="∭",aB="⧜",lB="℩",cB="IJ",uB="ij",dB="Ī",fB="ī",pB="ℑ",hB="ⅈ",mB="ℐ",gB="ℑ",vB="ı",yB="ℑ",_B="⊷",CB="Ƶ",bB="⇒",kB="℅",wB="∞",EB="⧝",xB="ı",SB="⊺",TB="∫",AB="∬",NB="ℤ",DB="∫",MB="⊺",BB="⋂",$B="⨗",OB="⨼",LB="⁣",IB="⁢",PB="Ё",FB="ё",RB="Į",VB="į",zB="𝕀",UB="𝕚",qB="Ι",HB="ι",jB="⨼",WB="¿",ZB="𝒾",KB="ℐ",GB="∈",YB="⋵",JB="⋹",XB="⋴",QB="⋳",e$="∈",t$="⁢",n$="Ĩ",o$="ĩ",r$="І",i$="і",s$="Ï",a$="ï",l$="Ĵ",c$="ĵ",u$="Й",d$="й",f$="𝔍",p$="𝔧",h$="ȷ",m$="𝕁",g$="𝕛",v$="𝒥",y$="𝒿",_$="Ј",C$="ј",b$="Є",k$="є",w$="Κ",E$="κ",x$="ϰ",S$="Ķ",T$="ķ",A$="К",N$="к",D$="𝔎",M$="𝔨",B$="ĸ",$$="Х",O$="х",L$="Ќ",I$="ќ",P$="𝕂",F$="𝕜",R$="𝒦",V$="𝓀",z$="⇚",U$="Ĺ",q$="ĺ",H$="⦴",j$="ℒ",W$="Λ",Z$="λ",K$="⟨",G$="⟪",Y$="⦑",J$="⟨",X$="⪅",Q$="ℒ",eO="«",tO="⇤",nO="⤟",oO="←",rO="↞",iO="⇐",sO="⤝",aO="↩",lO="↫",cO="⤹",uO="⥳",dO="↢",fO="⤙",pO="⤛",hO="⪫",mO="⪭",gO="⪭︀",vO="⤌",yO="⤎",_O="❲",CO="{",bO="[",kO="⦋",wO="⦏",EO="⦍",xO="Ľ",SO="ľ",TO="Ļ",AO="ļ",NO="⌈",DO="{",MO="Л",BO="л",$O="⤶",OO="“",LO="„",IO="⥧",PO="⥋",FO="↲",RO="≤",VO="≦",zO="⟨",UO="⇤",qO="←",HO="←",jO="⇐",WO="⇆",ZO="↢",KO="⌈",GO="⟦",YO="⥡",JO="⥙",XO="⇃",QO="⌊",eL="↽",tL="↼",nL="⇇",oL="↔",rL="↔",iL="⇔",sL="⇆",aL="⇋",lL="↭",cL="⥎",uL="↤",dL="⊣",fL="⥚",pL="⋋",hL="⧏",mL="⊲",gL="⊴",vL="⥑",yL="⥠",_L="⥘",CL="↿",bL="⥒",kL="↼",wL="⪋",EL="⋚",xL="≤",SL="≦",TL="⩽",AL="⪨",NL="⩽",DL="⩿",ML="⪁",BL="⪃",$L="⋚︀",OL="⪓",LL="⪅",IL="⋖",PL="⋚",FL="⪋",RL="⋚",VL="≦",zL="≶",UL="≶",qL="⪡",HL="≲",jL="⩽",WL="≲",ZL="⥼",KL="⌊",GL="𝔏",YL="𝔩",JL="≶",XL="⪑",QL="⥢",eI="↽",tI="↼",nI="⥪",oI="▄",rI="Љ",iI="љ",sI="⇇",aI="≪",lI="⋘",cI="⌞",uI="⇚",dI="⥫",fI="◺",pI="Ŀ",hI="ŀ",mI="⎰",gI="⎰",vI="⪉",yI="⪉",_I="⪇",CI="≨",bI="⪇",kI="≨",wI="⋦",EI="⟬",xI="⇽",SI="⟦",TI="⟵",AI="⟵",NI="⟸",DI="⟷",MI="⟷",BI="⟺",$I="⟼",OI="⟶",LI="⟶",II="⟹",PI="↫",FI="↬",RI="⦅",VI="𝕃",zI="𝕝",UI="⨭",qI="⨴",HI="∗",jI="_",WI="↙",ZI="↘",KI="◊",GI="◊",YI="⧫",JI="(",XI="⦓",QI="⇆",eP="⌟",tP="⇋",nP="⥭",oP="‎",rP="⊿",iP="‹",sP="𝓁",aP="ℒ",lP="↰",cP="↰",uP="≲",dP="⪍",fP="⪏",pP="[",hP="‘",mP="‚",gP="Ł",vP="ł",yP="⪦",_P="⩹",CP="<",bP="<",kP="≪",wP="⋖",EP="⋋",xP="⋉",SP="⥶",TP="⩻",AP="◃",NP="⊴",DP="◂",MP="⦖",BP="⥊",$P="⥦",OP="≨︀",LP="≨︀",IP="¯",PP="♂",FP="✠",RP="✠",VP="↦",zP="↦",UP="↧",qP="↤",HP="↥",jP="▮",WP="⨩",ZP="М",KP="м",GP="—",YP="∺",JP="∡",XP=" ",QP="ℳ",eF="𝔐",tF="𝔪",nF="℧",oF="µ",rF="*",iF="⫰",sF="∣",aF="·",lF="⊟",cF="−",uF="∸",dF="⨪",fF="∓",pF="⫛",hF="…",mF="∓",gF="⊧",vF="𝕄",yF="𝕞",_F="∓",CF="𝓂",bF="ℳ",kF="∾",wF="Μ",EF="μ",xF="⊸",SF="⊸",TF="∇",AF="Ń",NF="ń",DF="∠⃒",MF="≉",BF="⩰̸",$F="≋̸",OF="ʼn",LF="≉",IF="♮",PF="ℕ",FF="♮",RF=" ",VF="≎̸",zF="≏̸",UF="⩃",qF="Ň",HF="ň",jF="Ņ",WF="ņ",ZF="≇",KF="⩭̸",GF="⩂",YF="Н",JF="н",XF="–",QF="⤤",eR="↗",tR="⇗",nR="↗",oR="≠",rR="≐̸",iR="​",sR="​",aR="​",lR="​",cR="≢",uR="⤨",dR="≂̸",fR="≫",pR="≪",hR=`
2
2
  `,mR="∄",gR="∄",vR="𝔑",yR="𝔫",_R="≧̸",CR="≱",bR="≱",kR="≧̸",wR="⩾̸",ER="⩾̸",xR="⋙̸",SR="≵",TR="≫⃒",AR="≯",NR="≯",DR="≫̸",MR="↮",BR="⇎",$R="⫲",OR="∋",LR="⋼",IR="⋺",PR="∋",FR="Њ",RR="њ",VR="↚",zR="⇍",UR="‥",qR="≦̸",HR="≰",jR="↚",WR="⇍",ZR="↮",KR="⇎",GR="≰",YR="≦̸",JR="⩽̸",XR="⩽̸",QR="≮",eV="⋘̸",tV="≴",nV="≪⃒",oV="≮",rV="⋪",iV="⋬",sV="≪̸",aV="∤",lV="⁠",cV=" ",uV="𝕟",dV="ℕ",fV="⫬",pV="¬",hV="≢",mV="≭",gV="∦",vV="∉",yV="≠",_V="≂̸",CV="∄",bV="≯",kV="≱",wV="≧̸",EV="≫̸",xV="≹",SV="⩾̸",TV="≵",AV="≎̸",NV="≏̸",DV="∉",MV="⋵̸",BV="⋹̸",$V="∉",OV="⋷",LV="⋶",IV="⧏̸",PV="⋪",FV="⋬",RV="≮",VV="≰",zV="≸",UV="≪̸",qV="⩽̸",HV="≴",jV="⪢̸",WV="⪡̸",ZV="∌",KV="∌",GV="⋾",YV="⋽",JV="⊀",XV="⪯̸",QV="⋠",ez="∌",tz="⧐̸",nz="⋫",oz="⋭",rz="⊏̸",iz="⋢",sz="⊐̸",az="⋣",lz="⊂⃒",cz="⊈",uz="⊁",dz="⪰̸",fz="⋡",pz="≿̸",hz="⊃⃒",mz="⊉",gz="≁",vz="≄",yz="≇",_z="≉",Cz="∤",bz="∦",kz="∦",wz="⫽⃥",Ez="∂̸",xz="⨔",Sz="⊀",Tz="⋠",Az="⊀",Nz="⪯̸",Dz="⪯̸",Mz="⤳̸",Bz="↛",$z="⇏",Oz="↝̸",Lz="↛",Iz="⇏",Pz="⋫",Fz="⋭",Rz="⊁",Vz="⋡",zz="⪰̸",Uz="𝒩",qz="𝓃",Hz="∤",jz="∦",Wz="≁",Zz="≄",Kz="≄",Gz="∤",Yz="∦",Jz="⋢",Xz="⋣",Qz="⊄",eU="⫅̸",tU="⊈",nU="⊂⃒",oU="⊈",rU="⫅̸",iU="⊁",sU="⪰̸",aU="⊅",lU="⫆̸",cU="⊉",uU="⊃⃒",dU="⊉",fU="⫆̸",pU="≹",hU="Ñ",mU="ñ",gU="≸",vU="⋪",yU="⋬",_U="⋫",CU="⋭",bU="Ν",kU="ν",wU="#",EU="№",xU=" ",SU="≍⃒",TU="⊬",AU="⊭",NU="⊮",DU="⊯",MU="≥⃒",BU=">⃒",$U="⤄",OU="⧞",LU="⤂",IU="≤⃒",PU="<⃒",FU="⊴⃒",RU="⤃",VU="⊵⃒",zU="∼⃒",UU="⤣",qU="↖",HU="⇖",jU="↖",WU="⤧",ZU="Ó",KU="ó",GU="⊛",YU="Ô",JU="ô",XU="⊚",QU="О",eq="о",tq="⊝",nq="Ő",oq="ő",rq="⨸",iq="⊙",sq="⦼",aq="Œ",lq="œ",cq="⦿",uq="𝔒",dq="𝔬",fq="˛",pq="Ò",hq="ò",mq="⧁",gq="⦵",vq="Ω",yq="∮",_q="↺",Cq="⦾",bq="⦻",kq="‾",wq="⧀",Eq="Ō",xq="ō",Sq="Ω",Tq="ω",Aq="Ο",Nq="ο",Dq="⦶",Mq="⊖",Bq="𝕆",$q="𝕠",Oq="⦷",Lq="“",Iq="‘",Pq="⦹",Fq="⊕",Rq="↻",Vq="⩔",zq="∨",Uq="⩝",qq="ℴ",Hq="ℴ",jq="ª",Wq="º",Zq="⊶",Kq="⩖",Gq="⩗",Yq="⩛",Jq="Ⓢ",Xq="𝒪",Qq="ℴ",eH="Ø",tH="ø",nH="⊘",oH="Õ",rH="õ",iH="⨶",sH="⨷",aH="⊗",lH="Ö",cH="ö",uH="⌽",dH="‾",fH="⏞",pH="⎴",hH="⏜",mH="¶",gH="∥",vH="∥",yH="⫳",_H="⫽",CH="∂",bH="∂",kH="П",wH="п",EH="%",xH=".",SH="‰",TH="⊥",AH="‱",NH="𝔓",DH="𝔭",MH="Φ",BH="φ",$H="ϕ",OH="ℳ",LH="☎",IH="Π",PH="π",FH="⋔",RH="ϖ",VH="ℏ",zH="ℎ",UH="ℏ",qH="⨣",HH="⊞",jH="⨢",WH="+",ZH="∔",KH="⨥",GH="⩲",YH="±",JH="±",XH="⨦",QH="⨧",ej="±",tj="ℌ",nj="⨕",oj="𝕡",rj="ℙ",ij="£",sj="⪷",aj="⪻",lj="≺",cj="≼",uj="⪷",dj="≺",fj="≼",pj="≺",hj="⪯",mj="≼",gj="≾",vj="⪯",yj="⪹",_j="⪵",Cj="⋨",bj="⪯",kj="⪳",wj="≾",Ej="′",xj="″",Sj="ℙ",Tj="⪹",Aj="⪵",Nj="⋨",Dj="∏",Mj="∏",Bj="⌮",$j="⌒",Oj="⌓",Lj="∝",Ij="∝",Pj="∷",Fj="∝",Rj="≾",Vj="⊰",zj="𝒫",Uj="𝓅",qj="Ψ",Hj="ψ",jj=" ",Wj="𝔔",Zj="𝔮",Kj="⨌",Gj="𝕢",Yj="ℚ",Jj="⁗",Xj="𝒬",Qj="𝓆",eW="ℍ",tW="⨖",nW="?",oW="≟",rW='"',iW='"',sW="⇛",aW="∽̱",lW="Ŕ",cW="ŕ",uW="√",dW="⦳",fW="⟩",pW="⟫",hW="⦒",mW="⦥",gW="⟩",vW="»",yW="⥵",_W="⇥",CW="⤠",bW="⤳",kW="→",wW="↠",EW="⇒",xW="⤞",SW="↪",TW="↬",AW="⥅",NW="⥴",DW="⤖",MW="↣",BW="↝",$W="⤚",OW="⤜",LW="∶",IW="ℚ",PW="⤍",FW="⤏",RW="⤐",VW="❳",zW="}",UW="]",qW="⦌",HW="⦎",jW="⦐",WW="Ř",ZW="ř",KW="Ŗ",GW="ŗ",YW="⌉",JW="}",XW="Р",QW="р",eZ="⤷",tZ="⥩",nZ="”",oZ="”",rZ="↳",iZ="ℜ",sZ="ℛ",aZ="ℜ",lZ="ℝ",cZ="ℜ",uZ="▭",dZ="®",fZ="®",pZ="∋",hZ="⇋",mZ="⥯",gZ="⥽",vZ="⌋",yZ="𝔯",_Z="ℜ",CZ="⥤",bZ="⇁",kZ="⇀",wZ="⥬",EZ="Ρ",xZ="ρ",SZ="ϱ",TZ="⟩",AZ="⇥",NZ="→",DZ="→",MZ="⇒",BZ="⇄",$Z="↣",OZ="⌉",LZ="⟧",IZ="⥝",PZ="⥕",FZ="⇂",RZ="⌋",VZ="⇁",zZ="⇀",UZ="⇄",qZ="⇌",HZ="⇉",jZ="↝",WZ="↦",ZZ="⊢",KZ="⥛",GZ="⋌",YZ="⧐",JZ="⊳",XZ="⊵",QZ="⥏",eK="⥜",tK="⥔",nK="↾",oK="⥓",rK="⇀",iK="˚",sK="≓",aK="⇄",lK="⇌",cK="‏",uK="⎱",dK="⎱",fK="⫮",pK="⟭",hK="⇾",mK="⟧",gK="⦆",vK="𝕣",yK="ℝ",_K="⨮",CK="⨵",bK="⥰",kK=")",wK="⦔",EK="⨒",xK="⇉",SK="⇛",TK="›",AK="𝓇",NK="ℛ",DK="↱",MK="↱",BK="]",$K="’",OK="’",LK="⋌",IK="⋊",PK="▹",FK="⊵",RK="▸",VK="⧎",zK="⧴",UK="⥨",qK="℞",HK="Ś",jK="ś",WK="‚",ZK="⪸",KK="Š",GK="š",YK="⪼",JK="≻",XK="≽",QK="⪰",eG="⪴",tG="Ş",nG="ş",oG="Ŝ",rG="ŝ",iG="⪺",sG="⪶",aG="⋩",lG="⨓",cG="≿",uG="С",dG="с",fG="⊡",pG="⋅",hG="⩦",mG="⤥",gG="↘",vG="⇘",yG="↘",_G="§",CG=";",bG="⤩",kG="∖",wG="∖",EG="✶",xG="𝔖",SG="𝔰",TG="⌢",AG="♯",NG="Щ",DG="щ",MG="Ш",BG="ш",$G="↓",OG="←",LG="∣",IG="∥",PG="→",FG="↑",RG="­",VG="Σ",zG="σ",UG="ς",qG="ς",HG="∼",jG="⩪",WG="≃",ZG="≃",KG="⪞",GG="⪠",YG="⪝",JG="⪟",XG="≆",QG="⨤",eY="⥲",tY="←",nY="∘",oY="∖",rY="⨳",iY="⧤",sY="∣",aY="⌣",lY="⪪",cY="⪬",uY="⪬︀",dY="Ь",fY="ь",pY="⌿",hY="⧄",mY="/",gY="𝕊",vY="𝕤",yY="♠",_Y="♠",CY="∥",bY="⊓",kY="⊓︀",wY="⊔",EY="⊔︀",xY="√",SY="⊏",TY="⊑",AY="⊏",NY="⊑",DY="⊐",MY="⊒",BY="⊐",$Y="⊒",OY="□",LY="□",IY="⊓",PY="⊏",FY="⊑",RY="⊐",VY="⊒",zY="⊔",UY="▪",qY="□",HY="▪",jY="→",WY="𝒮",ZY="𝓈",KY="∖",GY="⌣",YY="⋆",JY="⋆",XY="☆",QY="★",eJ="ϵ",tJ="ϕ",nJ="¯",oJ="⊂",rJ="⋐",iJ="⪽",sJ="⫅",aJ="⊆",lJ="⫃",cJ="⫁",uJ="⫋",dJ="⊊",fJ="⪿",pJ="⥹",hJ="⊂",mJ="⋐",gJ="⊆",vJ="⫅",yJ="⊆",_J="⊊",CJ="⫋",bJ="⫇",kJ="⫕",wJ="⫓",EJ="⪸",xJ="≻",SJ="≽",TJ="≻",AJ="⪰",NJ="≽",DJ="≿",MJ="⪰",BJ="⪺",$J="⪶",OJ="⋩",LJ="≿",IJ="∋",PJ="∑",FJ="∑",RJ="♪",VJ="¹",zJ="²",UJ="³",qJ="⊃",HJ="⋑",jJ="⪾",WJ="⫘",ZJ="⫆",KJ="⊇",GJ="⫄",YJ="⊃",JJ="⊇",XJ="⟉",QJ="⫗",eX="⥻",tX="⫂",nX="⫌",oX="⊋",rX="⫀",iX="⊃",sX="⋑",aX="⊇",lX="⫆",cX="⊋",uX="⫌",dX="⫈",fX="⫔",pX="⫖",hX="⤦",mX="↙",gX="⇙",vX="↙",yX="⤪",_X="ß",CX=" ",bX="⌖",kX="Τ",wX="τ",EX="⎴",xX="Ť",SX="ť",TX="Ţ",AX="ţ",NX="Т",DX="т",MX="⃛",BX="⌕",$X="𝔗",OX="𝔱",LX="∴",IX="∴",PX="∴",FX="Θ",RX="θ",VX="ϑ",zX="ϑ",UX="≈",qX="∼",HX="  ",jX=" ",WX=" ",ZX="≈",KX="∼",GX="Þ",YX="þ",JX="˜",XX="∼",QX="≃",eQ="≅",tQ="≈",nQ="⨱",oQ="⊠",rQ="×",iQ="⨰",sQ="∭",aQ="⤨",lQ="⌶",cQ="⫱",uQ="⊤",dQ="𝕋",fQ="𝕥",pQ="⫚",hQ="⤩",mQ="‴",gQ="™",vQ="™",yQ="▵",_Q="▿",CQ="◃",bQ="⊴",kQ="≜",wQ="▹",EQ="⊵",xQ="◬",SQ="≜",TQ="⨺",AQ="⃛",NQ="⨹",DQ="⧍",MQ="⨻",BQ="⏢",$Q="𝒯",OQ="𝓉",LQ="Ц",IQ="ц",PQ="Ћ",FQ="ћ",RQ="Ŧ",VQ="ŧ",zQ="≬",UQ="↞",qQ="↠",HQ="Ú",jQ="ú",WQ="↑",ZQ="↟",KQ="⇑",GQ="⥉",YQ="Ў",JQ="ў",XQ="Ŭ",QQ="ŭ",eee="Û",tee="û",nee="У",oee="у",ree="⇅",iee="Ű",see="ű",aee="⥮",lee="⥾",cee="𝔘",uee="𝔲",dee="Ù",fee="ù",pee="⥣",hee="↿",mee="↾",gee="▀",vee="⌜",yee="⌜",_ee="⌏",Cee="◸",bee="Ū",kee="ū",wee="¨",Eee="_",xee="⏟",See="⎵",Tee="⏝",Aee="⋃",Nee="⊎",Dee="Ų",Mee="ų",Bee="𝕌",$ee="𝕦",Oee="⤒",Lee="↑",Iee="↑",Pee="⇑",Fee="⇅",Ree="↕",Vee="↕",zee="⇕",Uee="⥮",qee="↿",Hee="↾",jee="⊎",Wee="↖",Zee="↗",Kee="υ",Gee="ϒ",Yee="ϒ",Jee="Υ",Xee="υ",Qee="↥",ete="⊥",tte="⇈",nte="⌝",ote="⌝",rte="⌎",ite="Ů",ste="ů",ate="◹",lte="𝒰",cte="𝓊",ute="⋰",dte="Ũ",fte="ũ",pte="▵",hte="▴",mte="⇈",gte="Ü",vte="ü",yte="⦧",_te="⦜",Cte="ϵ",bte="ϰ",kte="∅",wte="ϕ",Ete="ϖ",xte="∝",Ste="↕",Tte="⇕",Ate="ϱ",Nte="ς",Dte="⊊︀",Mte="⫋︀",Bte="⊋︀",$te="⫌︀",Ote="ϑ",Lte="⊲",Ite="⊳",Pte="⫨",Fte="⫫",Rte="⫩",Vte="В",zte="в",Ute="⊢",qte="⊨",Hte="⊩",jte="⊫",Wte="⫦",Zte="⊻",Kte="∨",Gte="⋁",Yte="≚",Jte="⋮",Xte="|",Qte="‖",ene="|",tne="‖",nne="∣",one="|",rne="❘",ine="≀",sne=" ",ane="𝔙",lne="𝔳",cne="⊲",une="⊂⃒",dne="⊃⃒",fne="𝕍",pne="𝕧",hne="∝",mne="⊳",gne="𝒱",vne="𝓋",yne="⫋︀",_ne="⊊︀",Cne="⫌︀",bne="⊋︀",kne="⊪",wne="⦚",Ene="Ŵ",xne="ŵ",Sne="⩟",Tne="∧",Ane="⋀",Nne="≙",Dne="℘",Mne="𝔚",Bne="𝔴",$ne="𝕎",One="𝕨",Lne="℘",Ine="≀",Pne="≀",Fne="𝒲",Rne="𝓌",Vne="⋂",zne="◯",Une="⋃",qne="▽",Hne="𝔛",jne="𝔵",Wne="⟷",Zne="⟺",Kne="Ξ",Gne="ξ",Yne="⟵",Jne="⟸",Xne="⟼",Qne="⋻",eoe="⨀",toe="𝕏",noe="𝕩",ooe="⨁",roe="⨂",ioe="⟶",soe="⟹",aoe="𝒳",loe="𝓍",coe="⨆",uoe="⨄",doe="△",foe="⋁",poe="⋀",hoe="Ý",moe="ý",goe="Я",voe="я",yoe="Ŷ",_oe="ŷ",Coe="Ы",boe="ы",koe="¥",woe="𝔜",Eoe="𝔶",xoe="Ї",Soe="ї",Toe="𝕐",Aoe="𝕪",Noe="𝒴",Doe="𝓎",Moe="Ю",Boe="ю",$oe="ÿ",Ooe="Ÿ",Loe="Ź",Ioe="ź",Poe="Ž",Foe="ž",Roe="З",Voe="з",zoe="Ż",Uoe="ż",qoe="ℨ",Hoe="​",joe="Ζ",Woe="ζ",Zoe="𝔷",Koe="ℨ",Goe="Ж",Yoe="ж",Joe="⇝",Xoe="𝕫",Qoe="ℤ",ere="𝒵",tre="𝓏",nre="‍",ore="‌",rre={Aacute:z9,aacute:U9,Abreve:q9,abreve:H9,ac:j9,acd:W9,acE:Z9,Acirc:K9,acirc:G9,acute:Y9,Acy:J9,acy:X9,AElig:Q9,aelig:e4,af:t4,Afr:n4,afr:o4,Agrave:r4,agrave:i4,alefsym:s4,aleph:a4,Alpha:l4,alpha:c4,Amacr:u4,amacr:d4,amalg:f4,amp:p4,AMP:h4,andand:m4,And:g4,and:v4,andd:y4,andslope:_4,andv:C4,ang:b4,ange:k4,angle:w4,angmsdaa:E4,angmsdab:x4,angmsdac:S4,angmsdad:T4,angmsdae:A4,angmsdaf:N4,angmsdag:D4,angmsdah:M4,angmsd:B4,angrt:$4,angrtvb:O4,angrtvbd:L4,angsph:I4,angst:P4,angzarr:F4,Aogon:R4,aogon:V4,Aopf:z4,aopf:U4,apacir:q4,ap:H4,apE:j4,ape:W4,apid:Z4,apos:K4,ApplyFunction:G4,approx:Y4,approxeq:J4,Aring:X4,aring:Q4,Ascr:e8,ascr:t8,Assign:n8,ast:o8,asymp:r8,asympeq:i8,Atilde:s8,atilde:a8,Auml:l8,auml:c8,awconint:u8,awint:d8,backcong:f8,backepsilon:p8,backprime:h8,backsim:m8,backsimeq:g8,Backslash:v8,Barv:y8,barvee:_8,barwed:C8,Barwed:b8,barwedge:k8,bbrk:w8,bbrktbrk:E8,bcong:x8,Bcy:S8,bcy:T8,bdquo:A8,becaus:N8,because:D8,Because:M8,bemptyv:B8,bepsi:$8,bernou:O8,Bernoullis:L8,Beta:I8,beta:P8,beth:F8,between:R8,Bfr:V8,bfr:z8,bigcap:U8,bigcirc:q8,bigcup:H8,bigodot:j8,bigoplus:W8,bigotimes:Z8,bigsqcup:K8,bigstar:G8,bigtriangledown:Y8,bigtriangleup:J8,biguplus:X8,bigvee:Q8,bigwedge:ek,bkarow:tk,blacklozenge:nk,blacksquare:ok,blacktriangle:rk,blacktriangledown:ik,blacktriangleleft:sk,blacktriangleright:ak,blank:lk,blk12:ck,blk14:uk,blk34:dk,block:fk,bne:pk,bnequiv:hk,bNot:mk,bnot:gk,Bopf:vk,bopf:yk,bot:_k,bottom:Ck,bowtie:bk,boxbox:kk,boxdl:wk,boxdL:Ek,boxDl:xk,boxDL:Sk,boxdr:Tk,boxdR:Ak,boxDr:Nk,boxDR:Dk,boxh:Mk,boxH:Bk,boxhd:$k,boxHd:Ok,boxhD:Lk,boxHD:Ik,boxhu:Pk,boxHu:Fk,boxhU:Rk,boxHU:Vk,boxminus:zk,boxplus:Uk,boxtimes:qk,boxul:Hk,boxuL:jk,boxUl:Wk,boxUL:Zk,boxur:Kk,boxuR:Gk,boxUr:Yk,boxUR:Jk,boxv:Xk,boxV:Qk,boxvh:e6,boxvH:t6,boxVh:n6,boxVH:o6,boxvl:r6,boxvL:i6,boxVl:s6,boxVL:a6,boxvr:l6,boxvR:c6,boxVr:u6,boxVR:d6,bprime:f6,breve:p6,Breve:h6,brvbar:m6,bscr:g6,Bscr:v6,bsemi:y6,bsim:_6,bsime:C6,bsolb:b6,bsol:k6,bsolhsub:w6,bull:E6,bullet:x6,bump:S6,bumpE:T6,bumpe:A6,Bumpeq:N6,bumpeq:D6,Cacute:M6,cacute:B6,capand:$6,capbrcup:O6,capcap:L6,cap:I6,Cap:P6,capcup:F6,capdot:R6,CapitalDifferentialD:V6,caps:z6,caret:U6,caron:q6,Cayleys:H6,ccaps:j6,Ccaron:W6,ccaron:Z6,Ccedil:K6,ccedil:G6,Ccirc:Y6,ccirc:J6,Cconint:X6,ccups:Q6,ccupssm:ew,Cdot:tw,cdot:nw,cedil:ow,Cedilla:rw,cemptyv:iw,cent:sw,centerdot:aw,CenterDot:lw,cfr:cw,Cfr:uw,CHcy:dw,chcy:fw,check:pw,checkmark:hw,Chi:mw,chi:gw,circ:vw,circeq:yw,circlearrowleft:_w,circlearrowright:Cw,circledast:bw,circledcirc:kw,circleddash:ww,CircleDot:Ew,circledR:xw,circledS:Sw,CircleMinus:Tw,CirclePlus:Aw,CircleTimes:Nw,cir:Dw,cirE:Mw,cire:Bw,cirfnint:$w,cirmid:Ow,cirscir:Lw,ClockwiseContourIntegral:Iw,CloseCurlyDoubleQuote:Pw,CloseCurlyQuote:Fw,clubs:Rw,clubsuit:Vw,colon:zw,Colon:Uw,Colone:qw,colone:Hw,coloneq:jw,comma:Ww,commat:Zw,comp:Kw,compfn:Gw,complement:Yw,complexes:Jw,cong:Xw,congdot:Qw,Congruent:eE,conint:tE,Conint:nE,ContourIntegral:oE,copf:rE,Copf:iE,coprod:sE,Coproduct:aE,copy:lE,COPY:cE,copysr:uE,CounterClockwiseContourIntegral:dE,crarr:fE,cross:pE,Cross:hE,Cscr:mE,cscr:gE,csub:vE,csube:yE,csup:_E,csupe:CE,ctdot:bE,cudarrl:kE,cudarrr:wE,cuepr:EE,cuesc:xE,cularr:SE,cularrp:TE,cupbrcap:AE,cupcap:NE,CupCap:DE,cup:ME,Cup:BE,cupcup:$E,cupdot:OE,cupor:LE,cups:IE,curarr:PE,curarrm:FE,curlyeqprec:RE,curlyeqsucc:VE,curlyvee:zE,curlywedge:UE,curren:qE,curvearrowleft:HE,curvearrowright:jE,cuvee:WE,cuwed:ZE,cwconint:KE,cwint:GE,cylcty:YE,dagger:JE,Dagger:XE,daleth:QE,darr:ex,Darr:tx,dArr:nx,dash:ox,Dashv:rx,dashv:ix,dbkarow:sx,dblac:ax,Dcaron:lx,dcaron:cx,Dcy:ux,dcy:dx,ddagger:fx,ddarr:px,DD:hx,dd:mx,DDotrahd:gx,ddotseq:vx,deg:yx,Del:_x,Delta:Cx,delta:bx,demptyv:kx,dfisht:wx,Dfr:Ex,dfr:xx,dHar:Sx,dharl:Tx,dharr:Ax,DiacriticalAcute:Nx,DiacriticalDot:Dx,DiacriticalDoubleAcute:Mx,DiacriticalGrave:Bx,DiacriticalTilde:$x,diam:Ox,diamond:Lx,Diamond:Ix,diamondsuit:Px,diams:Fx,die:Rx,DifferentialD:Vx,digamma:zx,disin:Ux,div:qx,divide:Hx,divideontimes:jx,divonx:Wx,DJcy:Zx,djcy:Kx,dlcorn:Gx,dlcrop:Yx,dollar:Jx,Dopf:Xx,dopf:Qx,Dot:eS,dot:tS,DotDot:nS,doteq:oS,doteqdot:rS,DotEqual:iS,dotminus:sS,dotplus:aS,dotsquare:lS,doublebarwedge:cS,DoubleContourIntegral:uS,DoubleDot:dS,DoubleDownArrow:fS,DoubleLeftArrow:pS,DoubleLeftRightArrow:hS,DoubleLeftTee:mS,DoubleLongLeftArrow:gS,DoubleLongLeftRightArrow:vS,DoubleLongRightArrow:yS,DoubleRightArrow:_S,DoubleRightTee:CS,DoubleUpArrow:bS,DoubleUpDownArrow:kS,DoubleVerticalBar:wS,DownArrowBar:ES,downarrow:xS,DownArrow:SS,Downarrow:TS,DownArrowUpArrow:AS,DownBreve:NS,downdownarrows:DS,downharpoonleft:MS,downharpoonright:BS,DownLeftRightVector:$S,DownLeftTeeVector:OS,DownLeftVectorBar:LS,DownLeftVector:IS,DownRightTeeVector:PS,DownRightVectorBar:FS,DownRightVector:RS,DownTeeArrow:VS,DownTee:zS,drbkarow:US,drcorn:qS,drcrop:HS,Dscr:jS,dscr:WS,DScy:ZS,dscy:KS,dsol:GS,Dstrok:YS,dstrok:JS,dtdot:XS,dtri:QS,dtrif:eT,duarr:tT,duhar:nT,dwangle:oT,DZcy:rT,dzcy:iT,dzigrarr:sT,Eacute:aT,eacute:lT,easter:cT,Ecaron:uT,ecaron:dT,Ecirc:fT,ecirc:pT,ecir:hT,ecolon:mT,Ecy:gT,ecy:vT,eDDot:yT,Edot:_T,edot:CT,eDot:bT,ee:kT,efDot:wT,Efr:ET,efr:xT,eg:ST,Egrave:TT,egrave:AT,egs:NT,egsdot:DT,el:MT,Element:BT,elinters:$T,ell:OT,els:LT,elsdot:IT,Emacr:PT,emacr:FT,empty:RT,emptyset:VT,EmptySmallSquare:zT,emptyv:UT,EmptyVerySmallSquare:qT,emsp13:HT,emsp14:jT,emsp:WT,ENG:ZT,eng:KT,ensp:GT,Eogon:YT,eogon:JT,Eopf:XT,eopf:QT,epar:eA,eparsl:tA,eplus:nA,epsi:oA,Epsilon:rA,epsilon:iA,epsiv:sA,eqcirc:aA,eqcolon:lA,eqsim:cA,eqslantgtr:uA,eqslantless:dA,Equal:fA,equals:pA,EqualTilde:hA,equest:mA,Equilibrium:gA,equiv:vA,equivDD:yA,eqvparsl:_A,erarr:CA,erDot:bA,escr:kA,Escr:wA,esdot:EA,Esim:xA,esim:SA,Eta:TA,eta:AA,ETH:NA,eth:DA,Euml:MA,euml:BA,euro:$A,excl:OA,exist:LA,Exists:IA,expectation:PA,exponentiale:FA,ExponentialE:RA,fallingdotseq:VA,Fcy:zA,fcy:UA,female:qA,ffilig:HA,fflig:jA,ffllig:WA,Ffr:ZA,ffr:KA,filig:GA,FilledSmallSquare:YA,FilledVerySmallSquare:JA,fjlig:XA,flat:QA,fllig:eN,fltns:tN,fnof:nN,Fopf:oN,fopf:rN,forall:iN,ForAll:sN,fork:aN,forkv:lN,Fouriertrf:cN,fpartint:uN,frac12:dN,frac13:fN,frac14:pN,frac15:hN,frac16:mN,frac18:gN,frac23:vN,frac25:yN,frac34:_N,frac35:CN,frac38:bN,frac45:kN,frac56:wN,frac58:EN,frac78:xN,frasl:SN,frown:TN,fscr:AN,Fscr:NN,gacute:DN,Gamma:MN,gamma:BN,Gammad:$N,gammad:ON,gap:LN,Gbreve:IN,gbreve:PN,Gcedil:FN,Gcirc:RN,gcirc:VN,Gcy:zN,gcy:UN,Gdot:qN,gdot:HN,ge:jN,gE:WN,gEl:ZN,gel:KN,geq:GN,geqq:YN,geqslant:JN,gescc:XN,ges:QN,gesdot:eD,gesdoto:tD,gesdotol:nD,gesl:oD,gesles:rD,Gfr:iD,gfr:sD,gg:aD,Gg:lD,ggg:cD,gimel:uD,GJcy:dD,gjcy:fD,gla:pD,gl:hD,glE:mD,glj:gD,gnap:vD,gnapprox:yD,gne:_D,gnE:CD,gneq:bD,gneqq:kD,gnsim:wD,Gopf:ED,gopf:xD,grave:SD,GreaterEqual:TD,GreaterEqualLess:AD,GreaterFullEqual:ND,GreaterGreater:DD,GreaterLess:MD,GreaterSlantEqual:BD,GreaterTilde:$D,Gscr:OD,gscr:LD,gsim:ID,gsime:PD,gsiml:FD,gtcc:RD,gtcir:VD,gt:zD,GT:UD,Gt:qD,gtdot:HD,gtlPar:jD,gtquest:WD,gtrapprox:ZD,gtrarr:KD,gtrdot:GD,gtreqless:YD,gtreqqless:JD,gtrless:XD,gtrsim:QD,gvertneqq:eM,gvnE:tM,Hacek:nM,hairsp:oM,half:rM,hamilt:iM,HARDcy:sM,hardcy:aM,harrcir:lM,harr:cM,hArr:uM,harrw:dM,Hat:fM,hbar:pM,Hcirc:hM,hcirc:mM,hearts:gM,heartsuit:vM,hellip:yM,hercon:_M,hfr:CM,Hfr:bM,HilbertSpace:kM,hksearow:wM,hkswarow:EM,hoarr:xM,homtht:SM,hookleftarrow:TM,hookrightarrow:AM,hopf:NM,Hopf:DM,horbar:MM,HorizontalLine:BM,hscr:$M,Hscr:OM,hslash:LM,Hstrok:IM,hstrok:PM,HumpDownHump:FM,HumpEqual:RM,hybull:VM,hyphen:zM,Iacute:UM,iacute:qM,ic:HM,Icirc:jM,icirc:WM,Icy:ZM,icy:KM,Idot:GM,IEcy:YM,iecy:JM,iexcl:XM,iff:QM,ifr:eB,Ifr:tB,Igrave:nB,igrave:oB,ii:rB,iiiint:iB,iiint:sB,iinfin:aB,iiota:lB,IJlig:cB,ijlig:uB,Imacr:dB,imacr:fB,image:pB,ImaginaryI:hB,imagline:mB,imagpart:gB,imath:vB,Im:yB,imof:_B,imped:CB,Implies:bB,incare:kB,in:"∈",infin:wB,infintie:EB,inodot:xB,intcal:SB,int:TB,Int:AB,integers:NB,Integral:DB,intercal:MB,Intersection:BB,intlarhk:$B,intprod:OB,InvisibleComma:LB,InvisibleTimes:IB,IOcy:PB,iocy:FB,Iogon:RB,iogon:VB,Iopf:zB,iopf:UB,Iota:qB,iota:HB,iprod:jB,iquest:WB,iscr:ZB,Iscr:KB,isin:GB,isindot:YB,isinE:JB,isins:XB,isinsv:QB,isinv:e$,it:t$,Itilde:n$,itilde:o$,Iukcy:r$,iukcy:i$,Iuml:s$,iuml:a$,Jcirc:l$,jcirc:c$,Jcy:u$,jcy:d$,Jfr:f$,jfr:p$,jmath:h$,Jopf:m$,jopf:g$,Jscr:v$,jscr:y$,Jsercy:_$,jsercy:C$,Jukcy:b$,jukcy:k$,Kappa:w$,kappa:E$,kappav:x$,Kcedil:S$,kcedil:T$,Kcy:A$,kcy:N$,Kfr:D$,kfr:M$,kgreen:B$,KHcy:$$,khcy:O$,KJcy:L$,kjcy:I$,Kopf:P$,kopf:F$,Kscr:R$,kscr:V$,lAarr:z$,Lacute:U$,lacute:q$,laemptyv:H$,lagran:j$,Lambda:W$,lambda:Z$,lang:K$,Lang:G$,langd:Y$,langle:J$,lap:X$,Laplacetrf:Q$,laquo:eO,larrb:tO,larrbfs:nO,larr:oO,Larr:rO,lArr:iO,larrfs:sO,larrhk:aO,larrlp:lO,larrpl:cO,larrsim:uO,larrtl:dO,latail:fO,lAtail:pO,lat:hO,late:mO,lates:gO,lbarr:vO,lBarr:yO,lbbrk:_O,lbrace:CO,lbrack:bO,lbrke:kO,lbrksld:wO,lbrkslu:EO,Lcaron:xO,lcaron:SO,Lcedil:TO,lcedil:AO,lceil:NO,lcub:DO,Lcy:MO,lcy:BO,ldca:$O,ldquo:OO,ldquor:LO,ldrdhar:IO,ldrushar:PO,ldsh:FO,le:RO,lE:VO,LeftAngleBracket:zO,LeftArrowBar:UO,leftarrow:qO,LeftArrow:HO,Leftarrow:jO,LeftArrowRightArrow:WO,leftarrowtail:ZO,LeftCeiling:KO,LeftDoubleBracket:GO,LeftDownTeeVector:YO,LeftDownVectorBar:JO,LeftDownVector:XO,LeftFloor:QO,leftharpoondown:eL,leftharpoonup:tL,leftleftarrows:nL,leftrightarrow:oL,LeftRightArrow:rL,Leftrightarrow:iL,leftrightarrows:sL,leftrightharpoons:aL,leftrightsquigarrow:lL,LeftRightVector:cL,LeftTeeArrow:uL,LeftTee:dL,LeftTeeVector:fL,leftthreetimes:pL,LeftTriangleBar:hL,LeftTriangle:mL,LeftTriangleEqual:gL,LeftUpDownVector:vL,LeftUpTeeVector:yL,LeftUpVectorBar:_L,LeftUpVector:CL,LeftVectorBar:bL,LeftVector:kL,lEg:wL,leg:EL,leq:xL,leqq:SL,leqslant:TL,lescc:AL,les:NL,lesdot:DL,lesdoto:ML,lesdotor:BL,lesg:$L,lesges:OL,lessapprox:LL,lessdot:IL,lesseqgtr:PL,lesseqqgtr:FL,LessEqualGreater:RL,LessFullEqual:VL,LessGreater:zL,lessgtr:UL,LessLess:qL,lesssim:HL,LessSlantEqual:jL,LessTilde:WL,lfisht:ZL,lfloor:KL,Lfr:GL,lfr:YL,lg:JL,lgE:XL,lHar:QL,lhard:eI,lharu:tI,lharul:nI,lhblk:oI,LJcy:rI,ljcy:iI,llarr:sI,ll:aI,Ll:lI,llcorner:cI,Lleftarrow:uI,llhard:dI,lltri:fI,Lmidot:pI,lmidot:hI,lmoustache:mI,lmoust:gI,lnap:vI,lnapprox:yI,lne:_I,lnE:CI,lneq:bI,lneqq:kI,lnsim:wI,loang:EI,loarr:xI,lobrk:SI,longleftarrow:TI,LongLeftArrow:AI,Longleftarrow:NI,longleftrightarrow:DI,LongLeftRightArrow:MI,Longleftrightarrow:BI,longmapsto:$I,longrightarrow:OI,LongRightArrow:LI,Longrightarrow:II,looparrowleft:PI,looparrowright:FI,lopar:RI,Lopf:VI,lopf:zI,loplus:UI,lotimes:qI,lowast:HI,lowbar:jI,LowerLeftArrow:WI,LowerRightArrow:ZI,loz:KI,lozenge:GI,lozf:YI,lpar:JI,lparlt:XI,lrarr:QI,lrcorner:eP,lrhar:tP,lrhard:nP,lrm:oP,lrtri:rP,lsaquo:iP,lscr:sP,Lscr:aP,lsh:lP,Lsh:cP,lsim:uP,lsime:dP,lsimg:fP,lsqb:pP,lsquo:hP,lsquor:mP,Lstrok:gP,lstrok:vP,ltcc:yP,ltcir:_P,lt:CP,LT:bP,Lt:kP,ltdot:wP,lthree:EP,ltimes:xP,ltlarr:SP,ltquest:TP,ltri:AP,ltrie:NP,ltrif:DP,ltrPar:MP,lurdshar:BP,luruhar:$P,lvertneqq:OP,lvnE:LP,macr:IP,male:PP,malt:FP,maltese:RP,Map:"⤅",map:VP,mapsto:zP,mapstodown:UP,mapstoleft:qP,mapstoup:HP,marker:jP,mcomma:WP,Mcy:ZP,mcy:KP,mdash:GP,mDDot:YP,measuredangle:JP,MediumSpace:XP,Mellintrf:QP,Mfr:eF,mfr:tF,mho:nF,micro:oF,midast:rF,midcir:iF,mid:sF,middot:aF,minusb:lF,minus:cF,minusd:uF,minusdu:dF,MinusPlus:fF,mlcp:pF,mldr:hF,mnplus:mF,models:gF,Mopf:vF,mopf:yF,mp:_F,mscr:CF,Mscr:bF,mstpos:kF,Mu:wF,mu:EF,multimap:xF,mumap:SF,nabla:TF,Nacute:AF,nacute:NF,nang:DF,nap:MF,napE:BF,napid:$F,napos:OF,napprox:LF,natural:IF,naturals:PF,natur:FF,nbsp:RF,nbump:VF,nbumpe:zF,ncap:UF,Ncaron:qF,ncaron:HF,Ncedil:jF,ncedil:WF,ncong:ZF,ncongdot:KF,ncup:GF,Ncy:YF,ncy:JF,ndash:XF,nearhk:QF,nearr:eR,neArr:tR,nearrow:nR,ne:oR,nedot:rR,NegativeMediumSpace:iR,NegativeThickSpace:sR,NegativeThinSpace:aR,NegativeVeryThinSpace:lR,nequiv:cR,nesear:uR,nesim:dR,NestedGreaterGreater:fR,NestedLessLess:pR,NewLine:hR,nexist:mR,nexists:gR,Nfr:vR,nfr:yR,ngE:_R,nge:CR,ngeq:bR,ngeqq:kR,ngeqslant:wR,nges:ER,nGg:xR,ngsim:SR,nGt:TR,ngt:AR,ngtr:NR,nGtv:DR,nharr:MR,nhArr:BR,nhpar:$R,ni:OR,nis:LR,nisd:IR,niv:PR,NJcy:FR,njcy:RR,nlarr:VR,nlArr:zR,nldr:UR,nlE:qR,nle:HR,nleftarrow:jR,nLeftarrow:WR,nleftrightarrow:ZR,nLeftrightarrow:KR,nleq:GR,nleqq:YR,nleqslant:JR,nles:XR,nless:QR,nLl:eV,nlsim:tV,nLt:nV,nlt:oV,nltri:rV,nltrie:iV,nLtv:sV,nmid:aV,NoBreak:lV,NonBreakingSpace:cV,nopf:uV,Nopf:dV,Not:fV,not:pV,NotCongruent:hV,NotCupCap:mV,NotDoubleVerticalBar:gV,NotElement:vV,NotEqual:yV,NotEqualTilde:_V,NotExists:CV,NotGreater:bV,NotGreaterEqual:kV,NotGreaterFullEqual:wV,NotGreaterGreater:EV,NotGreaterLess:xV,NotGreaterSlantEqual:SV,NotGreaterTilde:TV,NotHumpDownHump:AV,NotHumpEqual:NV,notin:DV,notindot:MV,notinE:BV,notinva:$V,notinvb:OV,notinvc:LV,NotLeftTriangleBar:IV,NotLeftTriangle:PV,NotLeftTriangleEqual:FV,NotLess:RV,NotLessEqual:VV,NotLessGreater:zV,NotLessLess:UV,NotLessSlantEqual:qV,NotLessTilde:HV,NotNestedGreaterGreater:jV,NotNestedLessLess:WV,notni:ZV,notniva:KV,notnivb:GV,notnivc:YV,NotPrecedes:JV,NotPrecedesEqual:XV,NotPrecedesSlantEqual:QV,NotReverseElement:ez,NotRightTriangleBar:tz,NotRightTriangle:nz,NotRightTriangleEqual:oz,NotSquareSubset:rz,NotSquareSubsetEqual:iz,NotSquareSuperset:sz,NotSquareSupersetEqual:az,NotSubset:lz,NotSubsetEqual:cz,NotSucceeds:uz,NotSucceedsEqual:dz,NotSucceedsSlantEqual:fz,NotSucceedsTilde:pz,NotSuperset:hz,NotSupersetEqual:mz,NotTilde:gz,NotTildeEqual:vz,NotTildeFullEqual:yz,NotTildeTilde:_z,NotVerticalBar:Cz,nparallel:bz,npar:kz,nparsl:wz,npart:Ez,npolint:xz,npr:Sz,nprcue:Tz,nprec:Az,npreceq:Nz,npre:Dz,nrarrc:Mz,nrarr:Bz,nrArr:$z,nrarrw:Oz,nrightarrow:Lz,nRightarrow:Iz,nrtri:Pz,nrtrie:Fz,nsc:Rz,nsccue:Vz,nsce:zz,Nscr:Uz,nscr:qz,nshortmid:Hz,nshortparallel:jz,nsim:Wz,nsime:Zz,nsimeq:Kz,nsmid:Gz,nspar:Yz,nsqsube:Jz,nsqsupe:Xz,nsub:Qz,nsubE:eU,nsube:tU,nsubset:nU,nsubseteq:oU,nsubseteqq:rU,nsucc:iU,nsucceq:sU,nsup:aU,nsupE:lU,nsupe:cU,nsupset:uU,nsupseteq:dU,nsupseteqq:fU,ntgl:pU,Ntilde:hU,ntilde:mU,ntlg:gU,ntriangleleft:vU,ntrianglelefteq:yU,ntriangleright:_U,ntrianglerighteq:CU,Nu:bU,nu:kU,num:wU,numero:EU,numsp:xU,nvap:SU,nvdash:TU,nvDash:AU,nVdash:NU,nVDash:DU,nvge:MU,nvgt:BU,nvHarr:$U,nvinfin:OU,nvlArr:LU,nvle:IU,nvlt:PU,nvltrie:FU,nvrArr:RU,nvrtrie:VU,nvsim:zU,nwarhk:UU,nwarr:qU,nwArr:HU,nwarrow:jU,nwnear:WU,Oacute:ZU,oacute:KU,oast:GU,Ocirc:YU,ocirc:JU,ocir:XU,Ocy:QU,ocy:eq,odash:tq,Odblac:nq,odblac:oq,odiv:rq,odot:iq,odsold:sq,OElig:aq,oelig:lq,ofcir:cq,Ofr:uq,ofr:dq,ogon:fq,Ograve:pq,ograve:hq,ogt:mq,ohbar:gq,ohm:vq,oint:yq,olarr:_q,olcir:Cq,olcross:bq,oline:kq,olt:wq,Omacr:Eq,omacr:xq,Omega:Sq,omega:Tq,Omicron:Aq,omicron:Nq,omid:Dq,ominus:Mq,Oopf:Bq,oopf:$q,opar:Oq,OpenCurlyDoubleQuote:Lq,OpenCurlyQuote:Iq,operp:Pq,oplus:Fq,orarr:Rq,Or:Vq,or:zq,ord:Uq,order:qq,orderof:Hq,ordf:jq,ordm:Wq,origof:Zq,oror:Kq,orslope:Gq,orv:Yq,oS:Jq,Oscr:Xq,oscr:Qq,Oslash:eH,oslash:tH,osol:nH,Otilde:oH,otilde:rH,otimesas:iH,Otimes:sH,otimes:aH,Ouml:lH,ouml:cH,ovbar:uH,OverBar:dH,OverBrace:fH,OverBracket:pH,OverParenthesis:hH,para:mH,parallel:gH,par:vH,parsim:yH,parsl:_H,part:CH,PartialD:bH,Pcy:kH,pcy:wH,percnt:EH,period:xH,permil:SH,perp:TH,pertenk:AH,Pfr:NH,pfr:DH,Phi:MH,phi:BH,phiv:$H,phmmat:OH,phone:LH,Pi:IH,pi:PH,pitchfork:FH,piv:RH,planck:VH,planckh:zH,plankv:UH,plusacir:qH,plusb:HH,pluscir:jH,plus:WH,plusdo:ZH,plusdu:KH,pluse:GH,PlusMinus:YH,plusmn:JH,plussim:XH,plustwo:QH,pm:ej,Poincareplane:tj,pointint:nj,popf:oj,Popf:rj,pound:ij,prap:sj,Pr:aj,pr:lj,prcue:cj,precapprox:uj,prec:dj,preccurlyeq:fj,Precedes:pj,PrecedesEqual:hj,PrecedesSlantEqual:mj,PrecedesTilde:gj,preceq:vj,precnapprox:yj,precneqq:_j,precnsim:Cj,pre:bj,prE:kj,precsim:wj,prime:Ej,Prime:xj,primes:Sj,prnap:Tj,prnE:Aj,prnsim:Nj,prod:Dj,Product:Mj,profalar:Bj,profline:$j,profsurf:Oj,prop:Lj,Proportional:Ij,Proportion:Pj,propto:Fj,prsim:Rj,prurel:Vj,Pscr:zj,pscr:Uj,Psi:qj,psi:Hj,puncsp:jj,Qfr:Wj,qfr:Zj,qint:Kj,qopf:Gj,Qopf:Yj,qprime:Jj,Qscr:Xj,qscr:Qj,quaternions:eW,quatint:tW,quest:nW,questeq:oW,quot:rW,QUOT:iW,rAarr:sW,race:aW,Racute:lW,racute:cW,radic:uW,raemptyv:dW,rang:fW,Rang:pW,rangd:hW,range:mW,rangle:gW,raquo:vW,rarrap:yW,rarrb:_W,rarrbfs:CW,rarrc:bW,rarr:kW,Rarr:wW,rArr:EW,rarrfs:xW,rarrhk:SW,rarrlp:TW,rarrpl:AW,rarrsim:NW,Rarrtl:DW,rarrtl:MW,rarrw:BW,ratail:$W,rAtail:OW,ratio:LW,rationals:IW,rbarr:PW,rBarr:FW,RBarr:RW,rbbrk:VW,rbrace:zW,rbrack:UW,rbrke:qW,rbrksld:HW,rbrkslu:jW,Rcaron:WW,rcaron:ZW,Rcedil:KW,rcedil:GW,rceil:YW,rcub:JW,Rcy:XW,rcy:QW,rdca:eZ,rdldhar:tZ,rdquo:nZ,rdquor:oZ,rdsh:rZ,real:iZ,realine:sZ,realpart:aZ,reals:lZ,Re:cZ,rect:uZ,reg:dZ,REG:fZ,ReverseElement:pZ,ReverseEquilibrium:hZ,ReverseUpEquilibrium:mZ,rfisht:gZ,rfloor:vZ,rfr:yZ,Rfr:_Z,rHar:CZ,rhard:bZ,rharu:kZ,rharul:wZ,Rho:EZ,rho:xZ,rhov:SZ,RightAngleBracket:TZ,RightArrowBar:AZ,rightarrow:NZ,RightArrow:DZ,Rightarrow:MZ,RightArrowLeftArrow:BZ,rightarrowtail:$Z,RightCeiling:OZ,RightDoubleBracket:LZ,RightDownTeeVector:IZ,RightDownVectorBar:PZ,RightDownVector:FZ,RightFloor:RZ,rightharpoondown:VZ,rightharpoonup:zZ,rightleftarrows:UZ,rightleftharpoons:qZ,rightrightarrows:HZ,rightsquigarrow:jZ,RightTeeArrow:WZ,RightTee:ZZ,RightTeeVector:KZ,rightthreetimes:GZ,RightTriangleBar:YZ,RightTriangle:JZ,RightTriangleEqual:XZ,RightUpDownVector:QZ,RightUpTeeVector:eK,RightUpVectorBar:tK,RightUpVector:nK,RightVectorBar:oK,RightVector:rK,ring:iK,risingdotseq:sK,rlarr:aK,rlhar:lK,rlm:cK,rmoustache:uK,rmoust:dK,rnmid:fK,roang:pK,roarr:hK,robrk:mK,ropar:gK,ropf:vK,Ropf:yK,roplus:_K,rotimes:CK,RoundImplies:bK,rpar:kK,rpargt:wK,rppolint:EK,rrarr:xK,Rrightarrow:SK,rsaquo:TK,rscr:AK,Rscr:NK,rsh:DK,Rsh:MK,rsqb:BK,rsquo:$K,rsquor:OK,rthree:LK,rtimes:IK,rtri:PK,rtrie:FK,rtrif:RK,rtriltri:VK,RuleDelayed:zK,ruluhar:UK,rx:qK,Sacute:HK,sacute:jK,sbquo:WK,scap:ZK,Scaron:KK,scaron:GK,Sc:YK,sc:JK,sccue:XK,sce:QK,scE:eG,Scedil:tG,scedil:nG,Scirc:oG,scirc:rG,scnap:iG,scnE:sG,scnsim:aG,scpolint:lG,scsim:cG,Scy:uG,scy:dG,sdotb:fG,sdot:pG,sdote:hG,searhk:mG,searr:gG,seArr:vG,searrow:yG,sect:_G,semi:CG,seswar:bG,setminus:kG,setmn:wG,sext:EG,Sfr:xG,sfr:SG,sfrown:TG,sharp:AG,SHCHcy:NG,shchcy:DG,SHcy:MG,shcy:BG,ShortDownArrow:$G,ShortLeftArrow:OG,shortmid:LG,shortparallel:IG,ShortRightArrow:PG,ShortUpArrow:FG,shy:RG,Sigma:VG,sigma:zG,sigmaf:UG,sigmav:qG,sim:HG,simdot:jG,sime:WG,simeq:ZG,simg:KG,simgE:GG,siml:YG,simlE:JG,simne:XG,simplus:QG,simrarr:eY,slarr:tY,SmallCircle:nY,smallsetminus:oY,smashp:rY,smeparsl:iY,smid:sY,smile:aY,smt:lY,smte:cY,smtes:uY,SOFTcy:dY,softcy:fY,solbar:pY,solb:hY,sol:mY,Sopf:gY,sopf:vY,spades:yY,spadesuit:_Y,spar:CY,sqcap:bY,sqcaps:kY,sqcup:wY,sqcups:EY,Sqrt:xY,sqsub:SY,sqsube:TY,sqsubset:AY,sqsubseteq:NY,sqsup:DY,sqsupe:MY,sqsupset:BY,sqsupseteq:$Y,square:OY,Square:LY,SquareIntersection:IY,SquareSubset:PY,SquareSubsetEqual:FY,SquareSuperset:RY,SquareSupersetEqual:VY,SquareUnion:zY,squarf:UY,squ:qY,squf:HY,srarr:jY,Sscr:WY,sscr:ZY,ssetmn:KY,ssmile:GY,sstarf:YY,Star:JY,star:XY,starf:QY,straightepsilon:eJ,straightphi:tJ,strns:nJ,sub:oJ,Sub:rJ,subdot:iJ,subE:sJ,sube:aJ,subedot:lJ,submult:cJ,subnE:uJ,subne:dJ,subplus:fJ,subrarr:pJ,subset:hJ,Subset:mJ,subseteq:gJ,subseteqq:vJ,SubsetEqual:yJ,subsetneq:_J,subsetneqq:CJ,subsim:bJ,subsub:kJ,subsup:wJ,succapprox:EJ,succ:xJ,succcurlyeq:SJ,Succeeds:TJ,SucceedsEqual:AJ,SucceedsSlantEqual:NJ,SucceedsTilde:DJ,succeq:MJ,succnapprox:BJ,succneqq:$J,succnsim:OJ,succsim:LJ,SuchThat:IJ,sum:PJ,Sum:FJ,sung:RJ,sup1:VJ,sup2:zJ,sup3:UJ,sup:qJ,Sup:HJ,supdot:jJ,supdsub:WJ,supE:ZJ,supe:KJ,supedot:GJ,Superset:YJ,SupersetEqual:JJ,suphsol:XJ,suphsub:QJ,suplarr:eX,supmult:tX,supnE:nX,supne:oX,supplus:rX,supset:iX,Supset:sX,supseteq:aX,supseteqq:lX,supsetneq:cX,supsetneqq:uX,supsim:dX,supsub:fX,supsup:pX,swarhk:hX,swarr:mX,swArr:gX,swarrow:vX,swnwar:yX,szlig:_X,Tab:CX,target:bX,Tau:kX,tau:wX,tbrk:EX,Tcaron:xX,tcaron:SX,Tcedil:TX,tcedil:AX,Tcy:NX,tcy:DX,tdot:MX,telrec:BX,Tfr:$X,tfr:OX,there4:LX,therefore:IX,Therefore:PX,Theta:FX,theta:RX,thetasym:VX,thetav:zX,thickapprox:UX,thicksim:qX,ThickSpace:HX,ThinSpace:jX,thinsp:WX,thkap:ZX,thksim:KX,THORN:GX,thorn:YX,tilde:JX,Tilde:XX,TildeEqual:QX,TildeFullEqual:eQ,TildeTilde:tQ,timesbar:nQ,timesb:oQ,times:rQ,timesd:iQ,tint:sQ,toea:aQ,topbot:lQ,topcir:cQ,top:uQ,Topf:dQ,topf:fQ,topfork:pQ,tosa:hQ,tprime:mQ,trade:gQ,TRADE:vQ,triangle:yQ,triangledown:_Q,triangleleft:CQ,trianglelefteq:bQ,triangleq:kQ,triangleright:wQ,trianglerighteq:EQ,tridot:xQ,trie:SQ,triminus:TQ,TripleDot:AQ,triplus:NQ,trisb:DQ,tritime:MQ,trpezium:BQ,Tscr:$Q,tscr:OQ,TScy:LQ,tscy:IQ,TSHcy:PQ,tshcy:FQ,Tstrok:RQ,tstrok:VQ,twixt:zQ,twoheadleftarrow:UQ,twoheadrightarrow:qQ,Uacute:HQ,uacute:jQ,uarr:WQ,Uarr:ZQ,uArr:KQ,Uarrocir:GQ,Ubrcy:YQ,ubrcy:JQ,Ubreve:XQ,ubreve:QQ,Ucirc:eee,ucirc:tee,Ucy:nee,ucy:oee,udarr:ree,Udblac:iee,udblac:see,udhar:aee,ufisht:lee,Ufr:cee,ufr:uee,Ugrave:dee,ugrave:fee,uHar:pee,uharl:hee,uharr:mee,uhblk:gee,ulcorn:vee,ulcorner:yee,ulcrop:_ee,ultri:Cee,Umacr:bee,umacr:kee,uml:wee,UnderBar:Eee,UnderBrace:xee,UnderBracket:See,UnderParenthesis:Tee,Union:Aee,UnionPlus:Nee,Uogon:Dee,uogon:Mee,Uopf:Bee,uopf:$ee,UpArrowBar:Oee,uparrow:Lee,UpArrow:Iee,Uparrow:Pee,UpArrowDownArrow:Fee,updownarrow:Ree,UpDownArrow:Vee,Updownarrow:zee,UpEquilibrium:Uee,upharpoonleft:qee,upharpoonright:Hee,uplus:jee,UpperLeftArrow:Wee,UpperRightArrow:Zee,upsi:Kee,Upsi:Gee,upsih:Yee,Upsilon:Jee,upsilon:Xee,UpTeeArrow:Qee,UpTee:ete,upuparrows:tte,urcorn:nte,urcorner:ote,urcrop:rte,Uring:ite,uring:ste,urtri:ate,Uscr:lte,uscr:cte,utdot:ute,Utilde:dte,utilde:fte,utri:pte,utrif:hte,uuarr:mte,Uuml:gte,uuml:vte,uwangle:yte,vangrt:_te,varepsilon:Cte,varkappa:bte,varnothing:kte,varphi:wte,varpi:Ete,varpropto:xte,varr:Ste,vArr:Tte,varrho:Ate,varsigma:Nte,varsubsetneq:Dte,varsubsetneqq:Mte,varsupsetneq:Bte,varsupsetneqq:$te,vartheta:Ote,vartriangleleft:Lte,vartriangleright:Ite,vBar:Pte,Vbar:Fte,vBarv:Rte,Vcy:Vte,vcy:zte,vdash:Ute,vDash:qte,Vdash:Hte,VDash:jte,Vdashl:Wte,veebar:Zte,vee:Kte,Vee:Gte,veeeq:Yte,vellip:Jte,verbar:Xte,Verbar:Qte,vert:ene,Vert:tne,VerticalBar:nne,VerticalLine:one,VerticalSeparator:rne,VerticalTilde:ine,VeryThinSpace:sne,Vfr:ane,vfr:lne,vltri:cne,vnsub:une,vnsup:dne,Vopf:fne,vopf:pne,vprop:hne,vrtri:mne,Vscr:gne,vscr:vne,vsubnE:yne,vsubne:_ne,vsupnE:Cne,vsupne:bne,Vvdash:kne,vzigzag:wne,Wcirc:Ene,wcirc:xne,wedbar:Sne,wedge:Tne,Wedge:Ane,wedgeq:Nne,weierp:Dne,Wfr:Mne,wfr:Bne,Wopf:$ne,wopf:One,wp:Lne,wr:Ine,wreath:Pne,Wscr:Fne,wscr:Rne,xcap:Vne,xcirc:zne,xcup:Une,xdtri:qne,Xfr:Hne,xfr:jne,xharr:Wne,xhArr:Zne,Xi:Kne,xi:Gne,xlarr:Yne,xlArr:Jne,xmap:Xne,xnis:Qne,xodot:eoe,Xopf:toe,xopf:noe,xoplus:ooe,xotime:roe,xrarr:ioe,xrArr:soe,Xscr:aoe,xscr:loe,xsqcup:coe,xuplus:uoe,xutri:doe,xvee:foe,xwedge:poe,Yacute:hoe,yacute:moe,YAcy:goe,yacy:voe,Ycirc:yoe,ycirc:_oe,Ycy:Coe,ycy:boe,yen:koe,Yfr:woe,yfr:Eoe,YIcy:xoe,yicy:Soe,Yopf:Toe,yopf:Aoe,Yscr:Noe,yscr:Doe,YUcy:Moe,yucy:Boe,yuml:$oe,Yuml:Ooe,Zacute:Loe,zacute:Ioe,Zcaron:Poe,zcaron:Foe,Zcy:Roe,zcy:Voe,Zdot:zoe,zdot:Uoe,zeetrf:qoe,ZeroWidthSpace:Hoe,Zeta:joe,zeta:Woe,zfr:Zoe,Zfr:Koe,ZHcy:Goe,zhcy:Yoe,zigrarr:Joe,zopf:Xoe,Zopf:Qoe,Zscr:ere,zscr:tre,zwj:nre,zwnj:ore};var Yp=rre,au=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zr={},Id={};function ire(t){var e,n,o=Id[t];if(o)return o;for(o=Id[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function Pa(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Pa.defaultChars),typeof n>"u"&&(n=!0),l=ire(e),o=0,r=t.length;o<r;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<r&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(s<128){c+=l[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<r&&(a=t.charCodeAt(o+1),a>=56320&&a<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}Pa.defaultChars=";/?:@&=+$,-_.!~*'()#";Pa.componentChars="-_.!~*'()";var sre=Pa,Pd={};function are(t){var e,n,o=Pd[t];if(o)return o;for(o=Pd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function Fa(t,e){var n;return typeof e!="string"&&(e=Fa.defaultChars),n=are(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),(l&192)===128&&(c&192)===128)){d=a<<12&61440|l<<6&4032|c&63,d<2048||d>=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+12),16),(l&192)===128&&(c&192)===128&&(u&192)===128)){d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63,d<65536||d>1114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),r+=9;continue}f+="�"}return f})}Fa.defaultChars=";/?:@&=+$,#";Fa.componentChars="";var lre=Fa,cre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ea(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var ure=/^([a-z0-9.+-]+:)/i,dre=/:[0-9]*$/,fre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pre=["<",">",'"',"`"," ","\r",`
3
- `," "],hre=["{","}","|","\\","^","`"].concat(pre),mre=["'"].concat(hre),Fd=["%","/","?",";","#"].concat(mre),Rd=["/","?","#"],gre=255,Vd=/^[+a-z0-9A-Z_-]{0,63}$/,vre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zd={javascript:!0,"javascript:":!0},Ud={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yre(t,e){if(t&&t instanceof ea)return t;var n=new ea;return n.parse(t,e),n}ea.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=fre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=ure.exec(l);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&zd[u])&&(l=l.substr(2),this.slashes=!0)),!zd[u]&&(a||u&&!Ud[u])){var d=-1;for(n=0;n<Rd.length;n++)s=l.indexOf(Rd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Fd.length;n++)s=l.indexOf(Fd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var h=l.slice(0,d);l=l.slice(d),this.parseHost(h),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var C=g[n];if(C&&!C.match(Vd)){for(var _="",y=0,v=C.length;y<v;y++)C.charCodeAt(y)>127?_+="x":_+=C[y];if(!_.match(Vd)){var w=g.slice(0,n),k=g.slice(n+1),b=C.match(vre);b&&(w.push(b[1]),k.unshift(b[2])),k.length&&(l=k.join(".")+l),this.hostname=w.join(".");break}}}}this.hostname.length>gre&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Ud[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ea.prototype.parseHost=function(t){var e=dre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var _re=yre;zr.encode=sre;zr.decode=lre;zr.format=cre;zr.parse=_re;var xo={},bl,qd;function Jp(){return qd||(qd=1,bl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),bl}var kl,Hd;function Xp(){return Hd||(Hd=1,kl=/[\0-\x1F\x7F-\x9F]/),kl}var wl,jd;function Cre(){return jd||(jd=1,wl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),wl}var El,Wd;function Qp(){return Wd||(Wd=1,El=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),El}var Zd;function bre(){return Zd||(Zd=1,xo.Any=Jp(),xo.Cc=Xp(),xo.Cf=Cre(),xo.P=au,xo.Z=Qp()),xo}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(B,I){return o.call(B,I)}function s(B){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(F){if(F){if(typeof F!="object")throw new TypeError(F+"must be object");Object.keys(F).forEach(function(K){B[K]=F[K]})}}),B}function a(B,I,F){return[].concat(B.slice(0,I),F,B.slice(I+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var I=55296+(B>>10),F=56320+(B&1023);return String.fromCharCode(I,F)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=Yp;function m(B,I){var F;return r(h,I)?h[I]:I.charCodeAt(0)===35&&p.test(I)&&(F=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(F))?c(F):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function C(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(I,F,K){return F||m(I,K)})}var _=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function w(B){return v[B]}function k(B){return _.test(B)?B.replace(y,w):B}var b=/[.?*+^$[\]\\(){}|-]/g;function E(B){return B.replace(b,"\\$&")}function S(B){switch(B){case 9:case 32:return!0}return!1}function T(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var A=au;function z(B){return A.test(B)}function L(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=bre(),t.assign=s,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=C,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=k,t.arrayReplaceAt=a,t.isSpace=S,t.isWhiteSpace=T,t.isMdAsciiPunct=L,t.isPunctChar=z,t.escapeRE=E,t.normalizeReference=M})(ke);var Ra={},kre=function(e,n,o){var r,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,r=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)r++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},Kd=ke.unescapeAll,wre=function(e,n,o){var r,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(r=e.charCodeAt(a),r===10||r===60)return l;if(r===62)return l.pos=a+1,l.str=Kd(e.slice(n+1,a)),l.ok=!0,l;if(r===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(r=e.charCodeAt(a),!(r===32||r<32||r===127));){if(r===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(r===40&&(s++,s>32))return l;if(r===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=Kd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Ere=ke.unescapeAll,xre=function(e,n,o){var r,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(r=e.charCodeAt(l),r===s)return c.pos=l+1,c.lines=a,c.str=Ere(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};Ra.parseLinkLabel=kre;Ra.parseLinkDestination=wre;Ra.parseLinkTitle=xre;var Sre=ke.assign,Tre=ke.unescapeAll,jo=ke.escapeHtml,wn={};wn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+jo(s.content)+"</code>"};wn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+jo(t[e].content)+`</code></pre>
3
+ `," "],hre=["{","}","|","\\","^","`"].concat(pre),mre=["'"].concat(hre),Fd=["%","/","?",";","#"].concat(mre),Rd=["/","?","#"],gre=255,Vd=/^[+a-z0-9A-Z_-]{0,63}$/,vre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zd={javascript:!0,"javascript:":!0},Ud={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yre(t,e){if(t&&t instanceof ea)return t;var n=new ea;return n.parse(t,e),n}ea.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=fre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=ure.exec(l);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&zd[u])&&(l=l.substr(2),this.slashes=!0)),!zd[u]&&(a||u&&!Ud[u])){var d=-1;for(n=0;n<Rd.length;n++)s=l.indexOf(Rd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Fd.length;n++)s=l.indexOf(Fd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var h=l.slice(0,d);l=l.slice(d),this.parseHost(h),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var C=g[n];if(C&&!C.match(Vd)){for(var _="",y=0,v=C.length;y<v;y++)C.charCodeAt(y)>127?_+="x":_+=C[y];if(!_.match(Vd)){var w=g.slice(0,n),k=g.slice(n+1),b=C.match(vre);b&&(w.push(b[1]),k.unshift(b[2])),k.length&&(l=k.join(".")+l),this.hostname=w.join(".");break}}}}this.hostname.length>gre&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=l.indexOf("#");x!==-1&&(this.hash=l.substr(x),l=l.slice(0,x));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Ud[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ea.prototype.parseHost=function(t){var e=dre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var _re=yre;zr.encode=sre;zr.decode=lre;zr.format=cre;zr.parse=_re;var xo={},bl,qd;function Jp(){return qd||(qd=1,bl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),bl}var kl,Hd;function Xp(){return Hd||(Hd=1,kl=/[\0-\x1F\x7F-\x9F]/),kl}var wl,jd;function Cre(){return jd||(jd=1,wl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),wl}var El,Wd;function Qp(){return Wd||(Wd=1,El=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),El}var Zd;function bre(){return Zd||(Zd=1,xo.Any=Jp(),xo.Cc=Xp(),xo.Cf=Cre(),xo.P=au,xo.Z=Qp()),xo}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(B,P){return o.call(B,P)}function s(B){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(R){if(R){if(typeof R!="object")throw new TypeError(R+"must be object");Object.keys(R).forEach(function(K){B[K]=R[K]})}}),B}function a(B,P,R){return[].concat(B.slice(0,P),R,B.slice(P+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var P=55296+(B>>10),R=56320+(B&1023);return String.fromCharCode(P,R)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=Yp;function m(B,P){var R;return r(h,P)?h[P]:P.charCodeAt(0)===35&&p.test(P)&&(R=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),l(R))?c(R):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function C(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(P,R,K){return R||m(P,K)})}var _=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function w(B){return v[B]}function k(B){return _.test(B)?B.replace(y,w):B}var b=/[.?*+^$[\]\\(){}|-]/g;function x(B){return B.replace(b,"\\$&")}function S(B){switch(B){case 9:case 32:return!0}return!1}function A(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=au;function I(B){return T.test(B)}function $(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=bre(),t.assign=s,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=C,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=k,t.arrayReplaceAt=a,t.isSpace=S,t.isWhiteSpace=A,t.isMdAsciiPunct=$,t.isPunctChar=I,t.escapeRE=x,t.normalizeReference=M})(ke);var Ra={},kre=function(e,n,o){var r,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,r=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)r++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},Kd=ke.unescapeAll,wre=function(e,n,o){var r,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(r=e.charCodeAt(a),r===10||r===60)return l;if(r===62)return l.pos=a+1,l.str=Kd(e.slice(n+1,a)),l.ok=!0,l;if(r===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(r=e.charCodeAt(a),!(r===32||r<32||r===127));){if(r===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(r===40&&(s++,s>32))return l;if(r===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=Kd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Ere=ke.unescapeAll,xre=function(e,n,o){var r,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(r=e.charCodeAt(l),r===s)return c.pos=l+1,c.lines=a,c.str=Ere(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};Ra.parseLinkLabel=kre;Ra.parseLinkDestination=wre;Ra.parseLinkTitle=xre;var Sre=ke.assign,Tre=ke.unescapeAll,jo=ke.escapeHtml,wn={};wn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+jo(s.content)+"</code>"};wn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+jo(t[e].content)+`</code></pre>
4
4
  `};wn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?Tre(s.info).trim():"",l="",c="",u,d,f,p,h;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||jo(s.content):u=jo(s.content),u.indexOf("<pre")===0?u+`
5
5
  `:a?(d=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[],d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l),h={attrs:p},"<pre><code"+r.renderAttrs(h)+">"+u+`</code></pre>
6
6
  `):"<pre><code"+r.renderAttrs(s)+">"+u+`</code></pre>
@@ -14,45 +14,45 @@
14
14
  `:">",s)};Ur.prototype.renderInline=function(t,e,n){for(var o,r="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?r+=s[o](t,a,e,n,this):r+=this.renderToken(t,a,e);return r};Ur.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,s=t.length;r<s;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
15
15
  `);return o};Ur.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;o++)s=t[o].type,s==="inline"?a+=this.renderInline(t[o].children,e,n):typeof l[s]<"u"?a+=l[s](t,o,e,n,this):a+=this.renderToken(t,o,e,n);return a};var Are=Ur;function sn(){this.__rules__=[],this.__cache__=null}sn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};sn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};sn.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null};sn.prototype.before=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.after=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};sn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};sn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};sn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};sn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var lu=sn,Nre=/\r\n?|\n/g,Dre=/\0/g,Mre=function(e){var n;n=e.src.replace(Nre,`
16
16
  `),n=n.replace(Dre,"�"),e.src=n},Bre=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},$re=function(e){var n=e.tokens,o,r,s;for(r=0,s=n.length;r<s;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Ore=ke.arrayReplaceAt;function Lre(t){return/^<a[>\s]/i.test(t)}function Ire(t){return/^<\/a\s*>/i.test(t)}var Pre=function(e){var n,o,r,s,a,l,c,u,d,f,p,h,m,g,C,_,y=e.tokens,v;if(e.md.options.linkify){for(o=0,r=y.length;o<r;o++)if(!(y[o].type!=="inline"||!e.md.linkify.pretest(y[o].content)))for(s=y[o].children,m=0,n=s.length-1;n>=0;n--){if(l=s[n],l.type==="link_close"){for(n--;s[n].level!==l.level&&s[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(Lre(l.content)&&m>0&&m--,Ire(l.content)&&m++),!(m>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,v=e.md.linkify.match(d),c=[],h=l.level,p=0,v.length>0&&v[0].index===0&&n>0&&s[n-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)g=v[u].url,C=e.md.normalizeLink(g),e.md.validateLink(C)&&(_=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),f=v[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=h,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",C]],a.level=h++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=_,a.level=h,c.push(a),a=new e.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",c.push(a),p=v[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=h,c.push(a)),y[o].children=s=Ore(s,n,c)}}}},eh=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Fre=/\((c|tm|r)\)/i,Rre=/\((c|tm|r)\)/ig,Vre={c:"©",r:"®",tm:"™"};function zre(t,e){return Vre[e.toLowerCase()]}function Ure(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(Rre,zre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function qre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&eh.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var Hre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Fre.test(e.tokens[n].content)&&Ure(e.tokens[n].children),eh.test(e.tokens[n].content)&&qre(e.tokens[n].children))},Gd=ke.isWhiteSpace,Yd=ke.isPunctChar,Jd=ke.isMdAsciiPunct,jre=/['"]/,Xd=/['"]/g,Qd="’";function Ts(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Wre(t,e){var n,o,r,s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b;for(w=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,y=w.length-1;y>=0&&!(w[y].level<=c);y--);if(w.length=y+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(Xd.lastIndex=a,s=Xd.exec(r),!!s);){if(C=_=!0,a=s.index+1,v=s[0]==="'",d=32,s.index-1>=0)d=r.charCodeAt(s.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(t[y].content){d=t[y].content.charCodeAt(t[y].content.length-1);break}if(f=32,a<l)f=r.charCodeAt(a);else for(y=n+1;y<t.length&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y++)if(t[y].content){f=t[y].content.charCodeAt(0);break}if(p=Jd(d)||Yd(String.fromCharCode(d)),h=Jd(f)||Yd(String.fromCharCode(f)),m=Gd(d),g=Gd(f),g?C=!1:h&&(m||p||(C=!1)),m?_=!1:p&&(g||h||(_=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(_=C=!1),C&&_&&(C=p,_=h),!C&&!_){v&&(o.content=Ts(o.content,s.index,Qd));continue}if(_){for(y=w.length-1;y>=0&&(u=w[y],!(w[y].level<c));y--)if(u.single===v&&w[y].level===c){u=w[y],v?(k=e.md.options.quotes[2],b=e.md.options.quotes[3]):(k=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=Ts(o.content,s.index,b),t[u.token].content=Ts(t[u.token].content,u.pos,k),a+=b.length-1,u.token===n&&(a+=k.length-1),r=o.content,l=r.length,w.length=y;continue e}}C?w.push({token:n,pos:s.index,single:v,level:c}):_&&v&&(o.content=Ts(o.content,s.index,Qd))}}}}var Zre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!jre.test(e.tokens[n].content)||Wre(e.tokens[n].children,e)},Kre=function(e){var n,o,r,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,a=r.length,s=0;s<a;s++)r[s].type==="text_special"&&(r[s].type="text");for(s=l=0;s<a;s++)r[s].type==="text"&&s+1<a&&r[s+1].type==="text"?r[s+1].content=r[s].content+r[s+1].content:(s!==l&&(r[l]=r[s]),l++);s!==l&&(r.length=l)}};function qr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}qr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1};qr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};qr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};qr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};qr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var cu=qr,Gre=cu;function th(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}th.prototype.Token=Gre;var Yre=th,Jre=lu,xl=[["normalize",Mre],["block",Bre],["inline",$re],["linkify",Pre],["replacements",Hre],["smartquotes",Zre],["text_join",Kre]];function uu(){this.ruler=new Jre;for(var t=0;t<xl.length;t++)this.ruler.push(xl[t][0],xl[t][1])}uu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};uu.prototype.State=Yre;var Xre=uu,Sl=ke.isSpace;function Tl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function e1(t){var e=[],n=0,o=t.length,r,s=!1,a=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var Qre=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b;if(n+2>o||(d=n+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(l=e.bMarks[d]+e.tShift[d],l>=e.eMarks[d])||(k=e.src.charCodeAt(l++),k!==124&&k!==45&&k!==58)||l>=e.eMarks[d]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Sl(b))||k===45&&Sl(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Sl(s))return!1;l++}for(a=Tl(e,n+1),f=a.split("|"),m=[],c=0;c<f.length;c++){if(g=f[c].trim(),!g){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?m.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?m.push("left"):m.push("")}if(a=Tl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=e1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==m.length))return!1;if(r)return!0;for(y=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=C=[n,0],h=e.push("thead_open","thead",1),h.map=[n,n+1],h=e.push("tr_open","tr",1),h.map=[n,n+1],c=0;c<f.length;c++)h=e.push("th_open","th",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),h=e.push("inline","",0),h.content=f[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,c=0,u=w.length;c<u;c++)if(w[c](e,d,o,!0)){v=!0;break}if(v||(a=Tl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=e1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(h=e.push("tbody_open","tbody",1),h.map=_=[n+2,0]),h=e.push("tr_open","tr",1),h.map=[d,d+1],c=0;c<p;c++)h=e.push("td_open","td",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),h=e.push("inline","",0),h.content=f[c]?f[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return _&&(h=e.push("tbody_close","tbody",-1),_[1]=d),h=e.push("table_close","table",-1),C[1]=d,e.parentType=y,e.line=d,!0},eie=function(e,n,o){var r,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,s=r;continue}break}return e.line=s,a=e.push("code_block","code",0),a.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
- `,a.map=[n,e.line],!0},tie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,h=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>m||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=e.skipChars(h,s),a=h-u,a<3)||(f=e.src.slice(u,h),l=e.src.slice(h,m),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(h=u=e.bMarks[c]+e.tShift[c],m=e.eMarks[c],h<m&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-u<a)&&(h=e.skipSpaces(h),!(h<m)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},nie=ke.isSpace,oie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,E,S,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],z=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(A)!==62)return!1;if(r)return!0;for(m=[],g=[],y=[],v=[],b=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n;p<o&&(S=e.sCount[p]<e.blkIndent,A=e.bMarks[p]+e.tShift[p],z=e.eMarks[p],!(A>=z));p++){if(e.src.charCodeAt(A++)===62&&!S){for(c=e.sCount[p]+1,e.src.charCodeAt(A)===32?(A++,c++,s=!1,w=!0):e.src.charCodeAt(A)===9?(w=!0,(e.bsCount[p]+c)%4===3?(A++,c++,s=!1):s=!0):w=!1,h=c,m.push(e.bMarks[p]),e.bMarks[p]=A;A<z&&(a=e.src.charCodeAt(A),nie(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;A++}d=A>=z,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),y.push(e.sCount[p]),e.sCount[p]=h-c,v.push(e.tShift[p]),e.tShift[p]=A-e.bMarks[p];continue}if(d)break;for(k=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){k=!0;break}if(k){e.lineMax=p,e.blkIndent!==0&&(m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}for(C=e.blkIndent,e.blkIndent=0,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.markup=">",e.lineMax=T,e.parentType=_,f[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+n]=m[l],e.tShift[l+n]=v[l],e.sCount[l+n]=y[l],e.bsCount[l+n]=g[l];return e.blkIndent=C,!0},rie=ke.isSpace,iie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!rie(l))return!1;l===s&&a++}return a<3?!1:(r||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},nh=ke.isSpace;function t1(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!nh(s))?-1:o}function n1(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!nh(n))?-1:r}function sie(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var aie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,E,S,T,A,z,L,M,B,I,F=n,K=!1,P=!0;if(e.sCount[F]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[F]-e.listIndent>=4&&e.sCount[F]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[F]>=e.blkIndent&&(K=!0),(A=n1(e,F))>=0){if(f=!0,L=e.bMarks[F]+e.tShift[F],_=Number(e.src.slice(L,A-1)),K&&_!==1)return!1}else if((A=t1(e,F))>=0)f=!1;else return!1;if(K&&e.skipSpaces(A)>=e.eMarks[F])return!1;if(r)return!0;for(C=e.src.charCodeAt(A-1),g=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),_!==1&&(I.attrs=[["start",_]])):I=e.push("bullet_list_open","ul",1),I.map=m=[F,0],I.markup=String.fromCharCode(C),z=!1,B=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";F<o;){for(T=A,y=e.eMarks[F],d=v=e.sCount[F]+A-(e.bMarks[F]+e.tShift[F]);T<y;){if(s=e.src.charCodeAt(T),s===9)v+=4-(v+e.bsCount[F])%4;else if(s===32)v++;else break;T++}if(a=T,a>=y?u=1:u=v-d,u>4&&(u=1),c=d+u,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(C),I.map=p=[F,0],f&&(I.info=e.src.slice(L,A-1)),S=e.tight,E=e.tShift[F],b=e.sCount[F],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[F]=a-e.bMarks[F],e.sCount[F]=v,a>=y&&e.isEmpty(F+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,F,o,!0),(!e.tight||z)&&(P=!1),z=e.line-F>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[F]=E,e.sCount[F]=b,e.tight=S,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(C),F=e.line,p[1]=F,F>=o||e.sCount[F]<e.blkIndent||e.sCount[F]-e.blkIndent>=4)break;for(M=!1,l=0,h=B.length;l<h;l++)if(B[l](e,F,o,!0)){M=!0;break}if(M)break;if(f){if(A=n1(e,F),A<0)break;L=e.bMarks[F]+e.tShift[F]}else if(A=t1(e,F),A<0)break;if(C!==e.src.charCodeAt(A-1))break}return f?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(C),m[1]=F,e.line=F,e.parentType=k,P&&sie(e,g),!0},lie=ke.normalizeReference,As=ke.isSpace,cie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(y=!1,d=0,f=v.length;d<f;d++)if(v[d](e,S,c,!0)){y=!0;break}if(y)break}for(_=e.getLines(n,S,e.blkIndent,!1).trim(),E=_.length,b=1;b<E;b++){if(s=_.charCodeAt(b),s===91)return!1;if(s===93){h=b;break}else s===10?k++:s===92&&(b++,b<E&&_.charCodeAt(b)===10&&k++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(b=h+2;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;if(g=e.md.helpers.parseLinkDestination(_,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,k+=g.lines,a=b,l=k,C=b;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;for(g=e.md.helpers.parseLinkTitle(_,b,E),b<E&&C!==b&&g.ok?(w=g.str,b=g.pos,k+=g.lines):(w="",b=a,k=l);b<E&&(s=_.charCodeAt(b),!!As(s));)b++;if(b<E&&_.charCodeAt(b)!==10&&w)for(w="",b=a,k=l;b<E&&(s=_.charCodeAt(b),!!As(s));)b++;return b<E&&_.charCodeAt(b)!==10||(p=lie(_.slice(1,h)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:w,href:u}),e.parentType=m,e.line=n+k+1),!0)},uie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Va={},die="[a-zA-Z_:][a-zA-Z0-9:._-]*",fie="[^\"'=<>`\\x00-\\x20]+",pie="'[^']*'",hie='"[^"]*"',mie="(?:"+fie+"|"+pie+"|"+hie+")",gie="(?:\\s+"+die+"(?:\\s*=\\s*"+mie+")?)",oh="<[A-Za-z][A-Za-z0-9\\-]*"+gie+"*\\s*\\/?>",rh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",yie="<[?][\\s\\S]*?[?]>",_ie="<![A-Z]+\\s+[^>]*>",Cie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",bie=new RegExp("^(?:"+oh+"|"+rh+"|"+vie+"|"+yie+"|"+_ie+"|"+Cie+")"),kie=new RegExp("^(?:"+oh+"|"+rh+")");Va.HTML_TAG_RE=bie;Va.HTML_OPEN_CLOSE_TAG_RE=kie;var wie=uie,Eie=Va.HTML_OPEN_CLOSE_TAG_RE,fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+wie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Eie.source+"\\s*$"),/^$/,!1]],xie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<fr.length&&!fr[s][0].test(c);s++);if(s===fr.length)return!1;if(r)return fr[s][2];if(a=n+1,!fr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),fr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},o1=ke.isSpace,Sie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!o1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&o1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},Tie=function(e,n,o){var r,s,a,l,c,u,d,f,p,h=n+1,m,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";h<o&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],d=e.eMarks[h],u<d&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,h,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=m,!0):!1},Aie=function(e,n,o){var r,s,a,l,c,u,d=n+1,f=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=f.length;a<l;a++)if(f[a](e,d,o,!0)){s=!0;break}if(s)break}return r=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},ih=cu,za=ke.isSpace;function En(t,e,n,o){var r,s,a,l,c,u,d,f;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(r=s.charCodeAt(l),!f)if(za(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),f=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}En.prototype.push=function(t,e,n){var o=new ih(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};En.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};En.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};En.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!za(n));e++);return e};En.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!za(this.src.charCodeAt(--e)))return e+1;return e};En.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};En.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};En.prototype.getLines=function(e,n,o,r){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),za(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};En.prototype.Token=ih;var Nie=En,Die=lu,Ns=[["table",Qre,["paragraph","reference"]],["code",eie],["fence",tie,["paragraph","reference","blockquote","list"]],["blockquote",oie,["paragraph","reference","blockquote","list"]],["hr",iie,["paragraph","reference","blockquote","list"]],["list",aie,["paragraph","reference","blockquote"]],["reference",cie],["html_block",xie,["paragraph","reference","blockquote"]],["heading",Sie,["paragraph","reference","blockquote"]],["lheading",Tie],["paragraph",Aie]];function Ua(){this.ruler=new Die;for(var t=0;t<Ns.length;t++)this.ruler.push(Ns[t][0],Ns[t][1],{alt:(Ns[t][2]||[]).slice()})}Ua.prototype.tokenize=function(t,e,n){for(var o,r,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,r=0;r<l;r++)if(o=a[r](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Ua.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};Ua.prototype.State=Nie;var Mie=Ua;function Bie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var $ie=function(e,n){for(var o=e.pos;o<e.posMax&&!Bie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Oie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Lie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Oie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},Iie=ke.isSpace,Pie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<r&&Iie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Fie=ke.isSpace,du=[];for(var r1=0;r1<256;r1++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){du[t.charCodeAt(0)]=1});var Rie=function(e,n){var o,r,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!Fie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&du[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Vie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<r&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(f,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},qa={};qa.tokenize=function(e,n){var o,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function i1(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}qa.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(i1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&i1(e,o[n].delimiters)};var Ha={};Ha.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function s1(t,e){var n,o,r,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[r.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ha.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(s1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&s1(e,o[n].delimiters)};var zie=ke.normalizeReference,Al=ke.isSpace,Uie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",h="",m=e.pos,g=e.posMax,C=e.pos,_=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<g&&e.src.charCodeAt(c)===40){for(_=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);if(c>=g)return!1;if(C=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",C=c;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&C!==c&&u.ok)for(h=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(C=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(C,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[zie(s)],!d)return e.pos=m,!1;p=d.href,h=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],h&&o.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},qie=ke.normalizeReference,Nl=ke.isSpace,Hie=function(e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,C="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<y&&e.src.charCodeAt(u)===40){for(u++;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);if(u>=y)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(C=e.md.normalizeLink(f.str),e.md.validateLink(C)?u=f.pos:C=""),g=u;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);else p="";if(u>=y||e.src.charCodeAt(u)!==41)return e.pos=_,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<y&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[qie(a)],!d)return e.pos=_,!1;C=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,m=[]),h=e.push("image","img",0),h.attrs=o=[["src",C],["alt",""]],h.children=m,h.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=y,!0},jie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Wie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Zie=function(e,n){var o,r,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),Wie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):jie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},Kie=Va.HTML_TAG_RE;function Gie(t){return/^<a[>\s]/i.test(t)}function Yie(t){return/^<\/a\s*>/i.test(t)}function Jie(t){var e=t|32;return e>=97&&e<=122}var Xie=function(e,n){var o,r,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!Jie(o))||(r=e.src.slice(l).match(Kie),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],Gie(a.content)&&e.linkLevel++,Yie(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},a1=Yp,Qie=ke.has,ese=ke.isValidEntityCode,l1=ke.fromCodePoint,tse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,nse=/^&([a-z][a-z0-9]{1,31});/i,ose=function(e,n){var o,r,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(tse),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=ese(r)?l1(r):l1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(nse),s&&Qie(a1,s[1]))return n||(a=e.push("text_special","",0),a.content=a1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function c1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,h=[];for(e=0;e<d;e++)if(o=t[e],h.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=f-h[f]-1,a=n;n>s;n-=h[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?h[n-1]+1:0,h[e]=e-n+c,h[n]=c,o.open=!1,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var rse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(c1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&c1(o[n].delimiters)},ise=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},fu=cu,u1=ke.isWhiteSpace,d1=ke.isPunctChar,f1=ke.isMdAsciiPunct;function ts(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ts.prototype.pushPending=function(){var t=new fu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ts.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new fu(t,e,n),r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};ts.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,h=!0,m=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<m?this.src.charCodeAt(n):32,u=f1(o)||d1(String.fromCharCode(o)),f=f1(r)||d1(String.fromCharCode(r)),c=u1(o),d=u1(r),d?p=!1:f&&(c||u||(p=!1)),c?h=!1:u&&(d||f||(h=!1)),e?(a=p,l=h):(a=p&&(!h||u),l=h&&(!p||f)),{can_open:a,can_close:l,length:s}};ts.prototype.Token=fu;var sse=ts,p1=lu,Dl=[["text",$ie],["linkify",Lie],["newline",Pie],["escape",Rie],["backticks",Vie],["strikethrough",qa.tokenize],["emphasis",Ha.tokenize],["link",Uie],["image",Hie],["autolink",Zie],["html_inline",Xie],["entity",ose]],Ml=[["balance_pairs",rse],["strikethrough",qa.postProcess],["emphasis",Ha.postProcess],["fragments_join",ise]];function ns(){var t;for(this.ruler=new p1,t=0;t<Dl.length;t++)this.ruler.push(Dl[t][0],Dl[t][1]);for(this.ruler2=new p1,t=0;t<Ml.length;t++)this.ruler2.push(Ml[t][0],Ml[t][1])}ns.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=r[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};ns.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=r[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ns.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};ns.prototype.State=sse;var ase=ns,Bl,h1;function lse(){return h1||(h1=1,Bl=function(t){var e={};t=t||{},e.src_Any=Jp().source,e.src_Cc=Xp().source,e.src_Z=Qp().source,e.src_P=au.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Bl}function uc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function ja(t){return Object.prototype.toString.call(t)}function cse(t){return ja(t)==="[object String]"}function use(t){return ja(t)==="[object Object]"}function dse(t){return ja(t)==="[object RegExp]"}function m1(t){return ja(t)==="[object Function]"}function fse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var sh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function pse(t){return Object.keys(t||{}).reduce(function(e,n){return e||sh.hasOwnProperty(n)},!1)}var hse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},mse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",gse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function vse(t){t.__index__=-1,t.__text_cache__=""}function yse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function g1(){return function(t,e){e.normalize(t)}}function ta(t){var e=t.re=lse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(mse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var r=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,use(c)){dse(c.validate)?u.validate=yse(c.validate):m1(c.validate)?u.validate=c.validate:s(l,c),m1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=g1();return}if(cse(c)){r.push(l);return}s(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:g1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(fse).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),vse(t)}function _se(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function dc(t,e){var n=new _se(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||pse(t)&&(e=t,t={}),this.__opts__=uc({},sh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=uc({},hse,t),this.__compiled__={},this.__tlds__=gse,this.__tlds_replaced__=!1,this.re={},ta(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,ta(this),this};Ot.prototype.set=function(e){return this.__opts__=uc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(dc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(dc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,dc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),ta(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ta(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Cse=Ot;const kr=2147483647,mn=36,pu=1,Ri=26,bse=38,kse=700,ah=72,lh=128,ch="-",wse=/^xn--/,Ese=/[^\0-\x7F]/,xse=/[\x2E\u3002\uFF0E\uFF61]/g,Sse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$l=mn-pu,gn=Math.floor,Ol=String.fromCharCode;function eo(t){throw new RangeError(Sse[t])}function Tse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function uh(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(xse,".");const r=t.split("."),s=Tse(r,e).join(".");return o+s}function hu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const dh=t=>String.fromCodePoint(...t),Ase=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:mn},v1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},fh=function(t,e,n){let o=0;for(t=n?gn(t/kse):t>>1,t+=gn(t/e);t>$l*Ri>>1;o+=mn)t=gn(t/$l);return gn(o+($l+1)*t/(t+bse))},mu=function(t){const e=[],n=t.length;let o=0,r=lh,s=ah,a=t.lastIndexOf(ch);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&eo("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=mn;;f+=mn){l>=n&&eo("invalid-input");const p=Ase(t.charCodeAt(l++));p>=mn&&eo("invalid-input"),p>gn((kr-o)/d)&&eo("overflow"),o+=p*d;const h=f<=s?pu:f>=s+Ri?Ri:f-s;if(p<h)break;const m=mn-h;d>gn(kr/m)&&eo("overflow"),d*=m}const u=e.length+1;s=fh(o-c,u,c==0),gn(o/u)>kr-r&&eo("overflow"),r+=gn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},gu=function(t){const e=[];t=hu(t);const n=t.length;let o=lh,r=0,s=ah;for(const c of t)c<128&&e.push(Ol(c));const a=e.length;let l=a;for(a&&e.push(ch);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>gn((kr-r)/u)&&eo("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&eo("overflow"),d===o){let f=r;for(let p=mn;;p+=mn){const h=p<=s?pu:p>=s+Ri?Ri:p-s;if(f<h)break;const m=f-h,g=mn-h;e.push(Ol(v1(h+m%g,0))),f=gn(m/g)}e.push(Ol(v1(f,0))),s=fh(r,u,l===a),r=0,++l}++r,++o}return e.join("")},ph=function(t){return uh(t,function(e){return wse.test(e)?mu(e.slice(4).toLowerCase()):e})},hh=function(t){return uh(t,function(e){return Ese.test(e)?"xn--"+gu(e):e})},Nse={version:"2.1.0",ucs2:{decode:hu,encode:dh},decode:mu,encode:gu,toASCII:hh,toUnicode:ph},Dse=Object.freeze(Object.defineProperty({__proto__:null,decode:mu,default:Nse,encode:gu,toASCII:hh,toUnicode:ph,ucs2decode:hu,ucs2encode:dh},Symbol.toStringTag,{value:"Module"})),Mse=X7(Dse);var Bse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},$se={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Ose={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},xi=ke,Lse=Ra,Ise=Are,Pse=Xre,Fse=Mie,Rse=ase,Vse=Cse,Oo=zr,mh=Mse,zse={default:Bse,zero:$se,commonmark:Ose},Use=/^(vbscript|javascript|file|data):/,qse=/^data:image\/(gif|png|jpeg|webp);/;function Hse(t){var e=t.trim().toLowerCase();return Use.test(e)?!!qse.test(e):!0}var gh=["http:","https:","mailto:"];function jse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||gh.indexOf(e.protocol)>=0))try{e.hostname=mh.toASCII(e.hostname)}catch{}return Oo.encode(Oo.format(e))}function Wse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||gh.indexOf(e.protocol)>=0))try{e.hostname=mh.toUnicode(e.hostname)}catch{}return Oo.decode(Oo.format(e),Oo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new Rse,this.block=new Fse,this.core=new Pse,this.renderer=new Ise,this.linkify=new Vse,this.validateLink=Hse,this.normalizeLink=jse,this.normalizeLinkText=Wse,this.utils=xi,this.helpers=xi.assign({},Lse),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return xi.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=zse[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Zse=jt,Kse=Zse;const Gse=J7(Kse);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function y1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Yse(t){if(Array.isArray(t))return t}function Jse(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function Xse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qse(t,e){return Yse(t)||Jse(t,e)||eae(t,e)||Xse()}function eae(t,e){if(t){if(typeof t=="string")return y1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y1(t,e):void 0}}const vh=Object.entries,_1=Object.setPrototypeOf,tae=Object.isFrozen,nae=Object.getPrototypeOf,oae=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,tt=Object.seal,vr=Object.create,yh=typeof Reflect<"u"&&Reflect,fc=yh.apply,pc=yh.construct;Qe||(Qe=function(e){return e});tt||(tt=function(e){return e});fc||(fc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});pc||(pc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const pr=Ve(Array.prototype.forEach),rae=Ve(Array.prototype.lastIndexOf),C1=Ve(Array.prototype.pop),hr=Ve(Array.prototype.push),iae=Ve(Array.prototype.splice),no=Array.isArray,Ci=Ve(String.prototype.toLowerCase),Ll=Ve(String.prototype.toString),b1=Ve(String.prototype.match),pi=Ve(String.prototype.replace),k1=Ve(String.prototype.indexOf),sae=Ve(String.prototype.trim),aae=Ve(Number.prototype.toString),lae=Ve(Boolean.prototype.toString),w1=typeof BigInt>"u"?null:Ve(BigInt.prototype.toString),E1=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Ke=Ve(Object.prototype.hasOwnProperty),hi=Ve(Object.prototype.toString),Ze=Ve(RegExp.prototype.test),So=cae(TypeError);function Ve(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return fc(t,e,o)}}function cae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return pc(t,n)}}function ve(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(_1&&_1(t,null),!no(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(tae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function uae(t){for(let e=0;e<t.length;e++)Ke(t,e)||(t[e]=null);return t}function ot(t){const e=vr(null);for(const o of vh(t)){var n=Qse(o,2);const r=n[0],s=n[1];Ke(t,r)&&(no(s)?e[r]=uae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=ot(s):e[r]=s)}return e}function dae(t){switch(typeof t){case"string":return t;case"number":return aae(t);case"boolean":return lae(t);case"bigint":return w1?w1(t):"0";case"symbol":return E1?E1(t):"Symbol()";case"undefined":return hi(t);case"function":case"object":{if(t===null)return hi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:hi(o)}return hi(t)}default:return hi(t)}}function Jt(t,e){for(;t!==null;){const o=oae(t,e);if(o){if(o.get)return Ve(o.get);if(typeof o.value=="function")return Ve(o.value)}t=nae(t)}function n(){return null}return n}function fae(t){try{return Ze(t,""),!0}catch{return!1}}const x1=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Il=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pl=Qe(["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"]),pae=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fl=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hae=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),S1=Qe(["#text"]),T1=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rl=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),A1=Qe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ds=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mae=tt(/{{[\w\W]*|^[\w\W]*}}/g),gae=tt(/<%[\w\W]*|^[\w\W]*%>/g),vae=tt(/\${[\w\W]*/g),yae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),_ae=tt(/^aria-[\-\w]+$/),N1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cae=tt(/^(?:\w+script|data):/i),bae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kae=tt(/^html$/i),wae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),D1=tt(/<[/\w!]/g),M1=tt(/<[/\w]/g),Eae=tt(/<\/no(script|embed|frames)/i),xae=tt(/\/>/i),At={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sae=function(){return typeof window>"u"?null:window},Tae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},B1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qn=function(e,n,o,r){return Ke(e,n)&&no(e[n])?ve(r.base?ot(r.base):{},e[n],r.transform):o};function _h(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sae();const e=X=>_h(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==At.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,p=l.prototype,h=Jt(p,"cloneNode"),m=Jt(p,"remove"),g=Jt(p,"nextSibling"),C=Jt(p,"childNodes"),_=Jt(p,"parentNode"),y=Jt(p,"shadowRoot"),v=Jt(p,"attributes"),w=a&&a.prototype?Jt(a.prototype,"nodeType"):null,k=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let E,S="",T,A=!1,z=0;const L=function(){if(z>0)throw So('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(x){L(),z++;try{return E.createHTML(x)}finally{z--}},B=function(x){L(),z++;try{return E.createScriptURL(x)}finally{z--}},I=function(){return A||(T=Tae(f,r),A=!0),T},F=n,K=F.implementation,P=F.createNodeIterator,D=F.createDocumentFragment,G=F.getElementsByTagName,V=o.importNode;let H=B1();e.isSupported=typeof vh=="function"&&typeof _=="function"&&K&&K.createHTMLDocument!==void 0;const ce=mae,ee=gae,ie=vae,U=yae,ne=_ae,O=Cae,Y=bae,ge=wae;let qe=N1,de=null;const _e=ve({},[...x1,...Il,...Pl,...Fl,...S1]);let we=null;const ft=ve({},[...T1,...Rl,...A1,...Ds]);let Ne=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,bt=null;const Pe=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ht=!0,kt=!0,Wn=!1,bo=!0,Fe=!1,mt=!0,nt=!1,Zt=!1,xn=null,Zn=null,ko=!1,Kn=!1,ir=!1,sr=!1,Sn=!0,cn=!1;const ps="user-content-";let Yr=!0,Kt=!1,wt={},Et=null;const ar=ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let hs=null;const Jr=ve({},["audio","video","img","source","image","track"]);let xt=null;const lr=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",St="http://www.w3.org/1999/xhtml";let Yn=St,wo=!1,Xr=null;const fl=ve({},[Gn,cr,St],Ll),ms=Qe(["mi","mo","mn","ms","mtext"]);let Tt=ve({},ms);const gs=Qe(["annotation-xml"]);let Qr=ve({},gs);const pl=ve({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Te=null,Gt=null;const ni=n.createElement("form"),vs=function(x){return x instanceof RegExp||x instanceof Function},Jn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===x)return;(!x||typeof x!="object")&&(x={}),x=ot(x),Eo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Te=Eo==="application/xhtml+xml"?Ll:Ci,de=Qn(x,"ALLOWED_TAGS",_e,{transform:Te}),we=Qn(x,"ALLOWED_ATTR",ft,{transform:Te}),Xr=Qn(x,"ALLOWED_NAMESPACES",fl,{transform:Ll}),xt=Qn(x,"ADD_URI_SAFE_ATTR",lr,{transform:Te,base:lr}),hs=Qn(x,"ADD_DATA_URI_TAGS",Jr,{transform:Te,base:Jr}),Et=Qn(x,"FORBID_CONTENTS",ar,{transform:Te}),pt=Qn(x,"FORBID_TAGS",ot({}),{transform:Te}),bt=Qn(x,"FORBID_ATTR",ot({}),{transform:Te}),wt=Ke(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?ot(x.USE_PROFILES):x.USE_PROFILES:!1,ht=x.ALLOW_ARIA_ATTR!==!1,kt=x.ALLOW_DATA_ATTR!==!1,Wn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,bo=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=x.SAFE_FOR_TEMPLATES||!1,mt=x.SAFE_FOR_XML!==!1,nt=x.WHOLE_DOCUMENT||!1,Kn=x.RETURN_DOM||!1,ir=x.RETURN_DOM_FRAGMENT||!1,sr=x.RETURN_TRUSTED_TYPE||!1,ko=x.FORCE_BODY||!1,Sn=x.SANITIZE_DOM!==!1,cn=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,Kt=x.IN_PLACE||!1,qe=fae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:N1,Yn=typeof x.NAMESPACE=="string"?x.NAMESPACE:St,Tt=Ke(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?ot(x.MATHML_TEXT_INTEGRATION_POINTS):ve({},ms),Qr=Ke(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?ot(x.HTML_INTEGRATION_POINTS):ve({},gs);const $=Ke(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?ot(x.CUSTOM_ELEMENT_HANDLING):vr(null);if(Ne=vr(null),Ke($,"tagNameCheck")&&vs($.tagNameCheck)&&(Ne.tagNameCheck=$.tagNameCheck),Ke($,"attributeNameCheck")&&vs($.attributeNameCheck)&&(Ne.attributeNameCheck=$.attributeNameCheck),Ke($,"allowCustomizedBuiltInElements")&&typeof $.allowCustomizedBuiltInElements=="boolean"&&(Ne.allowCustomizedBuiltInElements=$.allowCustomizedBuiltInElements),tt(Ne),Fe&&(kt=!1),ir&&(Kn=!0),wt&&(de=ve({},S1),we=vr(null),wt.html===!0&&(ve(de,x1),ve(we,T1)),wt.svg===!0&&(ve(de,Il),ve(we,Rl),ve(we,Ds)),wt.svgFilters===!0&&(ve(de,Pl),ve(we,Rl),ve(we,Ds)),wt.mathMl===!0&&(ve(de,Fl),ve(we,A1),ve(we,Ds))),Pe.tagCheck=null,Pe.attributeCheck=null,Ke(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Pe.tagCheck=x.ADD_TAGS:no(x.ADD_TAGS)&&(de===_e&&(de=ot(de)),ve(de,x.ADD_TAGS,Te))),Ke(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Pe.attributeCheck=x.ADD_ATTR:no(x.ADD_ATTR)&&(we===ft&&(we=ot(we)),ve(we,x.ADD_ATTR,Te))),Ke(x,"ADD_URI_SAFE_ATTR")&&no(x.ADD_URI_SAFE_ATTR)&&ve(xt,x.ADD_URI_SAFE_ATTR,Te),Ke(x,"FORBID_CONTENTS")&&no(x.FORBID_CONTENTS)&&(Et===ar&&(Et=ot(Et)),ve(Et,x.FORBID_CONTENTS,Te)),Ke(x,"ADD_FORBID_CONTENTS")&&no(x.ADD_FORBID_CONTENTS)&&(Et===ar&&(Et=ot(Et)),ve(Et,x.ADD_FORBID_CONTENTS,Te)),Yr&&(de["#text"]=!0),nt&&ve(de,["html","head","body"]),de.table&&(ve(de,["tbody"]),delete pt.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const j=E;E=x.TRUSTED_TYPES_POLICY;try{S=M("")}catch(se){throw E=j,se}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,S=""):(E===void 0&&(E=I()),E&&typeof S=="string"&&(S=M("")));Qe&&Qe(x),Gt=x},oi=ve({},[...Il,...Pl,...pae]),N=ve({},[...Fl,...hae]),J=function(x,$,j){return $.namespaceURI===St?x==="svg":$.namespaceURI===Gn?x==="svg"&&(j==="annotation-xml"||Tt[j]):!!oi[x]},me=function(x,$,j){return $.namespaceURI===St?x==="math":$.namespaceURI===cr?x==="math"&&Qr[j]:!!N[x]},Me=function(x,$,j){return $.namespaceURI===cr&&!Qr[j]||$.namespaceURI===Gn&&!Tt[j]?!1:!N[x]&&(pl[x]||!oi[x])},Tn=function(x){let $=_(x);(!$||!$.tagName)&&($={namespaceURI:Yn,tagName:"template"});const j=Ci(x.tagName),se=Ci($.tagName);return Xr[x.namespaceURI]?x.namespaceURI===cr?J(j,$,se):x.namespaceURI===Gn?me(j,$,se):x.namespaceURI===St?Me(j,$,se):!!(Eo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Yt=function(x){hr(e.removed,{element:x});try{_(x).removeChild(x)}catch{if(m(x),!_(x))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const $=C(x);if($){const se=[];pr($,ae=>{hr(se,ae)}),pr(se,ae=>{try{m(ae)}catch{}})}const j=v(x);if(j)for(let se=j.length-1;se>=0;--se){const ae=j[se],pe=ae&&ae.name;if(typeof pe=="string")try{x.removeAttribute(pe)}catch{}}},An=function(x,$){try{hr(e.removed,{attribute:$.getAttributeNode(x),from:$})}catch{hr(e.removed,{attribute:null,from:$})}if($.removeAttribute(x),x==="is")if(Kn||ir)try{Yt($)}catch{}else try{$.setAttribute(x,"")}catch{}},ys=function(x){const $=v(x);if($)for(let j=$.length-1;j>=0;--j){const se=$[j],ae=se&&se.name;if(!(typeof ae!="string"||we[Te(ae)]))try{x.removeAttribute(ae)}catch{}}},ii=function(x){const $=[x];for(;$.length>0;){const j=$.pop();(w?w(j):j.nodeType)===At.element&&ys(j);const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)$.push(ae[pe])}},zg=function(x){if(!mt)return;const $=[x];for(;$.length>0;){const j=$.pop(),se=w?w(j):j.nodeType;if(se===At.processingInstruction||se===At.comment&&Ze(M1,j.data)){try{m(j)}catch{}continue}if(se===At.element){const pe=j,Ae=Te(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Ae!=="label"&&Ae!=="output"&&pe.removeAttribute("for")}catch{}}const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)$.push(ae[pe])}},ld=function(x){let $=null,j=null;if(ko)x="<remove></remove>"+x;else{const pe=b1(x,/^[\r\n\t ]+/);j=pe&&pe[0]}Eo==="application/xhtml+xml"&&Yn===St&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const se=E?M(x):x;if(Yn===St)try{$=new d().parseFromString(se,Eo)}catch{}if(!$||!$.documentElement){$=K.createDocument(Yn,"template",null);try{$.documentElement.innerHTML=wo?S:se}catch{}}const ae=$.body||$.documentElement;return x&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Yn===St?G.call($,nt?"html":"body")[0]:nt?$.documentElement:ae},cd=function(x){const $=b?b(x):x.ownerDocument;return P.call($||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_s=function(x){return x=pi(x,ce," "),x=pi(x,ee," "),x=pi(x,ie," "),x},hl=function(x){var $;x.normalize();const j=b?b(x):x.ownerDocument,se=P.call(j||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ae=se.nextNode();for(;ae;)ae.data=_s(ae.data),ae=se.nextNode();const pe=($=x.querySelectorAll)===null||$===void 0?void 0:$.call(x,"template");pe&&pr(pe,Ae=>{ur(Ae.content)&&hl(Ae.content)})},Cs=function(x){const $=k?k(x):null;return typeof $!="string"||Te($)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==v(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==w(x)||x.childNodes!==C(x)},ur=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return w(x)===At.documentFragment}catch{return!1}},si=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return typeof w(x)=="number"}catch{return!1}};function un(X,x,$){X.length!==0&&pr(X,j=>{j.call(e,x,$,Gt)})}const Ug=function(x,$){return!!(mt&&x.hasChildNodes()&&!si(x.firstElementChild)&&Ze(D1,x.textContent)&&Ze(D1,x.innerHTML)||mt&&x.namespaceURI===St&&$==="style"&&si(x.firstElementChild)||x.nodeType===At.processingInstruction||mt&&x.nodeType===At.comment&&Ze(M1,x.data))},qg=function(x,$,j){if(!pt[$]&&pd($)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,$)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck($)))return!1;if(Yr&&!Et[$]){const se=_(x),ae=C(x);if(ae&&se){const pe=ae.length;for(let Ae=pe-1;Ae>=0;--Ae){const Be=x===j?h(ae[Ae],!0):ae[Ae];se.insertBefore(Be,g(x))}}}return Yt(x),!0},ud=function(x,$,j,se){return x.length===0?$:$===j||$===se?ot($):$},dd=function(x,$){if(un(H.beforeSanitizeElements,x,null),x!==$&&_(x)===null)return Kt&&ii(x),!0;if(Cs(x))return Yt(x),!0;const j=Te(k?k(x):x.nodeName);if(de=ud(H.uponSanitizeElement,de,_e,xn),un(H.uponSanitizeElement,x,{tagName:j,allowedTags:de}),x!==$&&_(x)===null)return Kt&&ii(x),!0;if(Ug(x,j))return Yt(x),!0;if(pt[j]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(j))&&!de[j]){const ae=qg(x,j,$);return ae===!1&&un(H.afterSanitizeElements,x,null),ae}if((w?w(x):x.nodeType)===At.element&&!Tn(x)||(j==="noscript"||j==="noembed"||j==="noframes")&&Ze(Eae,x.innerHTML))return Yt(x),!0;if(Fe&&x.nodeType===At.text){const ae=_s(x.textContent);x.textContent!==ae&&(hr(e.removed,{element:x.cloneNode()}),x.textContent=ae)}return un(H.afterSanitizeElements,x,null),!1},fd=function(x,$,j){if(bt[$]||mt&&$==="patchsrc"||mt&&$==="for"&&x!=="label"&&x!=="output"||Sn&&($==="id"||$==="name")&&(j in n||j in ni))return!1;const se=we[$]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck($,x);if(!(kt&&Ze(U,$))){if(!(ht&&Ze(ne,$))){if(se){if(!xt[$]){if(!Ze(qe,pi(j,Y,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&x!=="script"&&k1(j,"data:")===0&&hs[x])){if(!(Wn&&!Ze(O,pi(j,Y,"")))){if(j)return!1}}}}}else if(!(pd(x)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,x)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(x))&&(Ne.attributeNameCheck instanceof RegExp&&Ze(Ne.attributeNameCheck,$)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck($,x))||$==="is"&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,j)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(j))))return!1}}return!0},Hg=ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pd=function(x){return!Hg[Ci(x)]&&Ze(ge,x)},jg=function(x,$,j,se){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(x,$)){case"TrustedHTML":return M(se);case"TrustedScriptURL":return B(se)}return se},Wg=function(x,$,j,se){try{j?x.setAttributeNS(j,$,se):x.setAttribute($,se),Cs(x)?Yt(x):C1(e.removed)}catch{An($,x)}},hd=function(x){un(H.beforeSanitizeAttributes,x,null);const $=x.attributes;if(!$||Cs(x))return;we=ud(H.uponSanitizeAttribute,we,ft,Zn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let se=$.length;const ae=Te(x.nodeName);for(;se--;){const pe=$[se],Ae=pe.name,Be=pe.namespaceURI,gt=pe.value,vt=Te(Ae),gl=gt;let lt=Ae==="value"?gl:sae(gl);if(j.attrName=vt,j.attrValue=lt,j.keepAttr=!0,j.forceKeepAttr=void 0,un(H.uponSanitizeAttribute,x,j),lt=j.attrValue,cn&&(vt==="id"||vt==="name")&&k1(lt,ps)!==0&&(An(Ae,x),lt=ps+lt),mt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,lt)){An(Ae,x);continue}if(vt==="attributename"&&b1(lt,"href")){An(Ae,x);continue}if(!j.forceKeepAttr){if(!j.keepAttr){An(Ae,x);continue}if(!bo&&Ze(xae,lt)){An(Ae,x);continue}if(Fe&&(lt=_s(lt)),!fd(ae,vt,lt)){An(Ae,x);continue}lt=jg(ae,vt,Be,lt),lt!==gl&&Wg(x,Ae,Be,lt)}}un(H.afterSanitizeAttributes,x,null)},bs=function(x){let $=null;const j=cd(x);for(un(H.beforeSanitizeShadowDOM,x,null);$=j.nextNode();)if(un(H.uponSanitizeShadowNode,$,null),dd($,x),hd($),ur($.content)&&bs($.content),(w?w($):$.nodeType)===At.element){const ae=y($);ur(ae)&&(ml(ae),bs(ae))}un(H.afterSanitizeShadowDOM,x,null)},ml=function(x){const $=[{node:x,shadow:null}];for(;$.length>0;){const j=$.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===At.element,Ae=C(se);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)$.push({node:Ae[Be],shadow:null});if(pe){const Be=k?k(se):null;if(typeof Be=="string"&&Te(Be)==="template"){const gt=se.content;ur(gt)&&$.push({node:gt,shadow:null})}}if(pe){const Be=y(se);ur(Be)&&$.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return e.sanitize=function(X){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,j=null,se=null,ae=null;if(wo=!X,wo&&(X="<!-->"),typeof X!="string"&&!si(X)&&(X=dae(X),typeof X!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return X;Zt?(de=xn,we=Zn):Jn(x),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(de=ot(de)),H.uponSanitizeAttribute.length>0&&(we=ot(we)),e.removed=[];const pe=Kt&&typeof X!="string"&&si(X);if(pe){zg(X);const gt=k?k(X):X.nodeName;if(typeof gt=="string"){const vt=Te(gt);if(!de[vt]||pt[vt])throw ri(X),So("root node is forbidden and cannot be sanitized in-place")}if(Cs(X))throw ri(X),So("root node is clobbered and cannot be sanitized in-place");try{ml(X)}catch(vt){throw ri(X),vt}}else if(si(X))$=ld("<!---->"),j=$.ownerDocument.importNode(X,!0),j.nodeType===At.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?$=j:$.appendChild(j),ml(j);else{if(!Kn&&!Fe&&!nt&&X.indexOf("<")===-1)return E&&sr?M(X):X;if($=ld(X),!$)return Kn?null:sr?S:""}$&&ko&&Yt($.firstChild);const Ae=pe?X:$;try{const gt=cd(Ae);for(;se=gt.nextNode();)dd(se,Ae),hd(se),ur(se.content)&&bs(se.content)}catch(gt){throw pe&&(ri(X),pr(e.removed,vt=>{vt.element&&ii(vt.element)})),gt}if(pe)return pr(e.removed,gt=>{gt.element&&ii(gt.element)}),Fe&&hl(X),X;if(Kn){if(Fe&&hl($),ir)for(ae=D.call($.ownerDocument);$.firstChild;)ae.appendChild($.firstChild);else ae=$;return(we.shadowroot||we.shadowrootmode)&&(ae=V.call(o,ae,!0)),ae}let Be=nt?$.outerHTML:$.innerHTML;return nt&&de["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&Ze(kae,$.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
19
- `+Be),Fe&&(Be=_s(Be)),E&&sr?M(Be):Be},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jn(X),Zt=!0,xn=de,Zn=we},e.clearConfig=function(){Gt=null,Zt=!1,xn=null,Zn=null,E=T,S=""},e.isValidAttribute=function(X,x,$){Gt||Jn({});const j=Te(X),se=Te(x);return fd(j,se,$)},e.addHook=function(X,x){typeof x=="function"&&Ke(H,X)&&hr(H[X],x)},e.removeHook=function(X,x){if(Ke(H,X)){if(x!==void 0){const $=rae(H[X],x);return $===-1?void 0:iae(H[X],$,1)[0]}return C1(H[X])}},e.removeHooks=function(X){Ke(H,X)&&(H[X]=[])},e.removeAllHooks=function(){H=B1()},e}var Aae=_h();const Nae=["innerHTML"],Dae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Ch=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new Gse({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Aae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,s)=>t.content?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Nae)):(i.openBlock(),i.createElementBlock("div",Dae,i.toDisplayString(t.placeholder),1))}});function Z(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function bh(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const an=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Mae=an&&"documentMode"in document?document.documentMode:null,Xt=an&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Wo=an&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),na=!(!an||!("InputEvent"in window)||Mae)&&"getTargetRanges"in new window.InputEvent("input"),Vi=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bae=an&&/Android/.test(navigator.userAgent),kh=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$1=an&&Bae&&kh,zi=an&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xt&&!kh;function wh(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const $ae=0,Oae=1,Lae=2,Eh=128,Iae=1,Pae=2,Fae=3,Rae=4,Vae=5,zae=6,Wa=Vi||Lr||zi?" ":"​",po=`
17
+ `,a.map=[n,e.line],!0},tie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,h=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>m||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=e.skipChars(h,s),a=h-u,a<3)||(f=e.src.slice(u,h),l=e.src.slice(h,m),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(h=u=e.bMarks[c]+e.tShift[c],m=e.eMarks[c],h<m&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-u<a)&&(h=e.skipSpaces(h),!(h<m)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},nie=ke.isSpace,oie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,x,S,A=e.lineMax,T=e.bMarks[n]+e.tShift[n],I=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(T)!==62)return!1;if(r)return!0;for(m=[],g=[],y=[],v=[],b=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n;p<o&&(S=e.sCount[p]<e.blkIndent,T=e.bMarks[p]+e.tShift[p],I=e.eMarks[p],!(T>=I));p++){if(e.src.charCodeAt(T++)===62&&!S){for(c=e.sCount[p]+1,e.src.charCodeAt(T)===32?(T++,c++,s=!1,w=!0):e.src.charCodeAt(T)===9?(w=!0,(e.bsCount[p]+c)%4===3?(T++,c++,s=!1):s=!0):w=!1,h=c,m.push(e.bMarks[p]),e.bMarks[p]=T;T<I&&(a=e.src.charCodeAt(T),nie(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;T++}d=T>=I,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),y.push(e.sCount[p]),e.sCount[p]=h-c,v.push(e.tShift[p]),e.tShift[p]=T-e.bMarks[p];continue}if(d)break;for(k=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){k=!0;break}if(k){e.lineMax=p,e.blkIndent!==0&&(m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}for(C=e.blkIndent,e.blkIndent=0,x=e.push("blockquote_open","blockquote",1),x.markup=">",x.map=f=[n,0],e.md.block.tokenize(e,n,p),x=e.push("blockquote_close","blockquote",-1),x.markup=">",e.lineMax=A,e.parentType=_,f[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+n]=m[l],e.tShift[l+n]=v[l],e.sCount[l+n]=y[l],e.bsCount[l+n]=g[l];return e.blkIndent=C,!0},rie=ke.isSpace,iie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!rie(l))return!1;l===s&&a++}return a<3?!1:(r||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},nh=ke.isSpace;function t1(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!nh(s))?-1:o}function n1(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!nh(n))?-1:r}function sie(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var aie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,x,S,A,T,I,$,M,B,P,R=n,K=!1,F=!0;if(e.sCount[R]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[R]-e.listIndent>=4&&e.sCount[R]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[R]>=e.blkIndent&&(K=!0),(T=n1(e,R))>=0){if(f=!0,$=e.bMarks[R]+e.tShift[R],_=Number(e.src.slice($,T-1)),K&&_!==1)return!1}else if((T=t1(e,R))>=0)f=!1;else return!1;if(K&&e.skipSpaces(T)>=e.eMarks[R])return!1;if(r)return!0;for(C=e.src.charCodeAt(T-1),g=e.tokens.length,f?(P=e.push("ordered_list_open","ol",1),_!==1&&(P.attrs=[["start",_]])):P=e.push("bullet_list_open","ul",1),P.map=m=[R,0],P.markup=String.fromCharCode(C),I=!1,B=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";R<o;){for(A=T,y=e.eMarks[R],d=v=e.sCount[R]+T-(e.bMarks[R]+e.tShift[R]);A<y;){if(s=e.src.charCodeAt(A),s===9)v+=4-(v+e.bsCount[R])%4;else if(s===32)v++;else break;A++}if(a=A,a>=y?u=1:u=v-d,u>4&&(u=1),c=d+u,P=e.push("list_item_open","li",1),P.markup=String.fromCharCode(C),P.map=p=[R,0],f&&(P.info=e.src.slice($,T-1)),S=e.tight,x=e.tShift[R],b=e.sCount[R],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[R]=a-e.bMarks[R],e.sCount[R]=v,a>=y&&e.isEmpty(R+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,R,o,!0),(!e.tight||I)&&(F=!1),I=e.line-R>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[R]=x,e.sCount[R]=b,e.tight=S,P=e.push("list_item_close","li",-1),P.markup=String.fromCharCode(C),R=e.line,p[1]=R,R>=o||e.sCount[R]<e.blkIndent||e.sCount[R]-e.blkIndent>=4)break;for(M=!1,l=0,h=B.length;l<h;l++)if(B[l](e,R,o,!0)){M=!0;break}if(M)break;if(f){if(T=n1(e,R),T<0)break;$=e.bMarks[R]+e.tShift[R]}else if(T=t1(e,R),T<0)break;if(C!==e.src.charCodeAt(T-1))break}return f?P=e.push("ordered_list_close","ol",-1):P=e.push("bullet_list_close","ul",-1),P.markup=String.fromCharCode(C),m[1]=R,e.line=R,e.parentType=k,F&&sie(e,g),!0},lie=ke.normalizeReference,As=ke.isSpace,cie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k=0,b=e.bMarks[n]+e.tShift[n],x=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<x;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===x||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(y=!1,d=0,f=v.length;d<f;d++)if(v[d](e,S,c,!0)){y=!0;break}if(y)break}for(_=e.getLines(n,S,e.blkIndent,!1).trim(),x=_.length,b=1;b<x;b++){if(s=_.charCodeAt(b),s===91)return!1;if(s===93){h=b;break}else s===10?k++:s===92&&(b++,b<x&&_.charCodeAt(b)===10&&k++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(b=h+2;b<x;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;if(g=e.md.helpers.parseLinkDestination(_,b,x),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,k+=g.lines,a=b,l=k,C=b;b<x;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;for(g=e.md.helpers.parseLinkTitle(_,b,x),b<x&&C!==b&&g.ok?(w=g.str,b=g.pos,k+=g.lines):(w="",b=a,k=l);b<x&&(s=_.charCodeAt(b),!!As(s));)b++;if(b<x&&_.charCodeAt(b)!==10&&w)for(w="",b=a,k=l;b<x&&(s=_.charCodeAt(b),!!As(s));)b++;return b<x&&_.charCodeAt(b)!==10||(p=lie(_.slice(1,h)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:w,href:u}),e.parentType=m,e.line=n+k+1),!0)},uie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Va={},die="[a-zA-Z_:][a-zA-Z0-9:._-]*",fie="[^\"'=<>`\\x00-\\x20]+",pie="'[^']*'",hie='"[^"]*"',mie="(?:"+fie+"|"+pie+"|"+hie+")",gie="(?:\\s+"+die+"(?:\\s*=\\s*"+mie+")?)",oh="<[A-Za-z][A-Za-z0-9\\-]*"+gie+"*\\s*\\/?>",rh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",yie="<[?][\\s\\S]*?[?]>",_ie="<![A-Z]+\\s+[^>]*>",Cie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",bie=new RegExp("^(?:"+oh+"|"+rh+"|"+vie+"|"+yie+"|"+_ie+"|"+Cie+")"),kie=new RegExp("^(?:"+oh+"|"+rh+")");Va.HTML_TAG_RE=bie;Va.HTML_OPEN_CLOSE_TAG_RE=kie;var wie=uie,Eie=Va.HTML_OPEN_CLOSE_TAG_RE,fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+wie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Eie.source+"\\s*$"),/^$/,!1]],xie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<fr.length&&!fr[s][0].test(c);s++);if(s===fr.length)return!1;if(r)return fr[s][2];if(a=n+1,!fr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),fr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},o1=ke.isSpace,Sie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!o1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&o1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},Tie=function(e,n,o){var r,s,a,l,c,u,d,f,p,h=n+1,m,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";h<o&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],d=e.eMarks[h],u<d&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,h,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=m,!0):!1},Aie=function(e,n,o){var r,s,a,l,c,u,d=n+1,f=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=f.length;a<l;a++)if(f[a](e,d,o,!0)){s=!0;break}if(s)break}return r=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},ih=cu,za=ke.isSpace;function En(t,e,n,o){var r,s,a,l,c,u,d,f;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(r=s.charCodeAt(l),!f)if(za(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),f=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}En.prototype.push=function(t,e,n){var o=new ih(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};En.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};En.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};En.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!za(n));e++);return e};En.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!za(this.src.charCodeAt(--e)))return e+1;return e};En.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};En.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};En.prototype.getLines=function(e,n,o,r){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),za(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};En.prototype.Token=ih;var Nie=En,Die=lu,Ns=[["table",Qre,["paragraph","reference"]],["code",eie],["fence",tie,["paragraph","reference","blockquote","list"]],["blockquote",oie,["paragraph","reference","blockquote","list"]],["hr",iie,["paragraph","reference","blockquote","list"]],["list",aie,["paragraph","reference","blockquote"]],["reference",cie],["html_block",xie,["paragraph","reference","blockquote"]],["heading",Sie,["paragraph","reference","blockquote"]],["lheading",Tie],["paragraph",Aie]];function Ua(){this.ruler=new Die;for(var t=0;t<Ns.length;t++)this.ruler.push(Ns[t][0],Ns[t][1],{alt:(Ns[t][2]||[]).slice()})}Ua.prototype.tokenize=function(t,e,n){for(var o,r,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,r=0;r<l;r++)if(o=a[r](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Ua.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};Ua.prototype.State=Nie;var Mie=Ua;function Bie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var $ie=function(e,n){for(var o=e.pos;o<e.posMax&&!Bie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Oie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Lie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Oie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},Iie=ke.isSpace,Pie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<r&&Iie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Fie=ke.isSpace,du=[];for(var r1=0;r1<256;r1++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){du[t.charCodeAt(0)]=1});var Rie=function(e,n){var o,r,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!Fie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&du[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Vie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<r&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(f,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},qa={};qa.tokenize=function(e,n){var o,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function i1(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}qa.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(i1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&i1(e,o[n].delimiters)};var Ha={};Ha.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function s1(t,e){var n,o,r,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[r.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ha.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(s1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&s1(e,o[n].delimiters)};var zie=ke.normalizeReference,Al=ke.isSpace,Uie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",h="",m=e.pos,g=e.posMax,C=e.pos,_=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<g&&e.src.charCodeAt(c)===40){for(_=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);if(c>=g)return!1;if(C=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",C=c;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&C!==c&&u.ok)for(h=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!Al(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(C=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(C,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[zie(s)],!d)return e.pos=m,!1;p=d.href,h=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],h&&o.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},qie=ke.normalizeReference,Nl=ke.isSpace,Hie=function(e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,C="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<y&&e.src.charCodeAt(u)===40){for(u++;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);if(u>=y)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(C=e.md.normalizeLink(f.str),e.md.validateLink(C)?u=f.pos:C=""),g=u;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<y&&(r=e.src.charCodeAt(u),!(!Nl(r)&&r!==10));u++);else p="";if(u>=y||e.src.charCodeAt(u)!==41)return e.pos=_,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<y&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[qie(a)],!d)return e.pos=_,!1;C=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,m=[]),h=e.push("image","img",0),h.attrs=o=[["src",C],["alt",""]],h.children=m,h.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=y,!0},jie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Wie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Zie=function(e,n){var o,r,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),Wie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):jie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},Kie=Va.HTML_TAG_RE;function Gie(t){return/^<a[>\s]/i.test(t)}function Yie(t){return/^<\/a\s*>/i.test(t)}function Jie(t){var e=t|32;return e>=97&&e<=122}var Xie=function(e,n){var o,r,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!Jie(o))||(r=e.src.slice(l).match(Kie),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],Gie(a.content)&&e.linkLevel++,Yie(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},a1=Yp,Qie=ke.has,ese=ke.isValidEntityCode,l1=ke.fromCodePoint,tse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,nse=/^&([a-z][a-z0-9]{1,31});/i,ose=function(e,n){var o,r,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(tse),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=ese(r)?l1(r):l1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(nse),s&&Qie(a1,s[1]))return n||(a=e.push("text_special","",0),a.content=a1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function c1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,h=[];for(e=0;e<d;e++)if(o=t[e],h.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=f-h[f]-1,a=n;n>s;n-=h[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?h[n-1]+1:0,h[e]=e-n+c,h[n]=c,o.open=!1,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var rse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(c1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&c1(o[n].delimiters)},ise=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},fu=cu,u1=ke.isWhiteSpace,d1=ke.isPunctChar,f1=ke.isMdAsciiPunct;function ts(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ts.prototype.pushPending=function(){var t=new fu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ts.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new fu(t,e,n),r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};ts.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,h=!0,m=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<m?this.src.charCodeAt(n):32,u=f1(o)||d1(String.fromCharCode(o)),f=f1(r)||d1(String.fromCharCode(r)),c=u1(o),d=u1(r),d?p=!1:f&&(c||u||(p=!1)),c?h=!1:u&&(d||f||(h=!1)),e?(a=p,l=h):(a=p&&(!h||u),l=h&&(!p||f)),{can_open:a,can_close:l,length:s}};ts.prototype.Token=fu;var sse=ts,p1=lu,Dl=[["text",$ie],["linkify",Lie],["newline",Pie],["escape",Rie],["backticks",Vie],["strikethrough",qa.tokenize],["emphasis",Ha.tokenize],["link",Uie],["image",Hie],["autolink",Zie],["html_inline",Xie],["entity",ose]],Ml=[["balance_pairs",rse],["strikethrough",qa.postProcess],["emphasis",Ha.postProcess],["fragments_join",ise]];function ns(){var t;for(this.ruler=new p1,t=0;t<Dl.length;t++)this.ruler.push(Dl[t][0],Dl[t][1]);for(this.ruler2=new p1,t=0;t<Ml.length;t++)this.ruler2.push(Ml[t][0],Ml[t][1])}ns.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=r[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};ns.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=r[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ns.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};ns.prototype.State=sse;var ase=ns,Bl,h1;function lse(){return h1||(h1=1,Bl=function(t){var e={};t=t||{},e.src_Any=Jp().source,e.src_Cc=Xp().source,e.src_Z=Qp().source,e.src_P=au.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Bl}function uc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function ja(t){return Object.prototype.toString.call(t)}function cse(t){return ja(t)==="[object String]"}function use(t){return ja(t)==="[object Object]"}function dse(t){return ja(t)==="[object RegExp]"}function m1(t){return ja(t)==="[object Function]"}function fse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var sh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function pse(t){return Object.keys(t||{}).reduce(function(e,n){return e||sh.hasOwnProperty(n)},!1)}var hse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},mse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",gse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function vse(t){t.__index__=-1,t.__text_cache__=""}function yse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function g1(){return function(t,e){e.normalize(t)}}function ta(t){var e=t.re=lse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(mse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var r=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,use(c)){dse(c.validate)?u.validate=yse(c.validate):m1(c.validate)?u.validate=c.validate:s(l,c),m1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=g1();return}if(cse(c)){r.push(l);return}s(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:g1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(fse).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),vse(t)}function _se(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function dc(t,e){var n=new _se(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||pse(t)&&(e=t,t={}),this.__opts__=uc({},sh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=uc({},hse,t),this.__compiled__={},this.__tlds__=gse,this.__tlds_replaced__=!1,this.re={},ta(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,ta(this),this};Ot.prototype.set=function(e){return this.__opts__=uc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(dc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(dc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,dc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),ta(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ta(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Cse=Ot;const kr=2147483647,mn=36,pu=1,Ri=26,bse=38,kse=700,ah=72,lh=128,ch="-",wse=/^xn--/,Ese=/[^\0-\x7F]/,xse=/[\x2E\u3002\uFF0E\uFF61]/g,Sse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$l=mn-pu,gn=Math.floor,Ol=String.fromCharCode;function eo(t){throw new RangeError(Sse[t])}function Tse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function uh(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(xse,".");const r=t.split("."),s=Tse(r,e).join(".");return o+s}function hu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const dh=t=>String.fromCodePoint(...t),Ase=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:mn},v1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},fh=function(t,e,n){let o=0;for(t=n?gn(t/kse):t>>1,t+=gn(t/e);t>$l*Ri>>1;o+=mn)t=gn(t/$l);return gn(o+($l+1)*t/(t+bse))},mu=function(t){const e=[],n=t.length;let o=0,r=lh,s=ah,a=t.lastIndexOf(ch);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&eo("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=mn;;f+=mn){l>=n&&eo("invalid-input");const p=Ase(t.charCodeAt(l++));p>=mn&&eo("invalid-input"),p>gn((kr-o)/d)&&eo("overflow"),o+=p*d;const h=f<=s?pu:f>=s+Ri?Ri:f-s;if(p<h)break;const m=mn-h;d>gn(kr/m)&&eo("overflow"),d*=m}const u=e.length+1;s=fh(o-c,u,c==0),gn(o/u)>kr-r&&eo("overflow"),r+=gn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},gu=function(t){const e=[];t=hu(t);const n=t.length;let o=lh,r=0,s=ah;for(const c of t)c<128&&e.push(Ol(c));const a=e.length;let l=a;for(a&&e.push(ch);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>gn((kr-r)/u)&&eo("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&eo("overflow"),d===o){let f=r;for(let p=mn;;p+=mn){const h=p<=s?pu:p>=s+Ri?Ri:p-s;if(f<h)break;const m=f-h,g=mn-h;e.push(Ol(v1(h+m%g,0))),f=gn(m/g)}e.push(Ol(v1(f,0))),s=fh(r,u,l===a),r=0,++l}++r,++o}return e.join("")},ph=function(t){return uh(t,function(e){return wse.test(e)?mu(e.slice(4).toLowerCase()):e})},hh=function(t){return uh(t,function(e){return Ese.test(e)?"xn--"+gu(e):e})},Nse={version:"2.1.0",ucs2:{decode:hu,encode:dh},decode:mu,encode:gu,toASCII:hh,toUnicode:ph},Dse=Object.freeze(Object.defineProperty({__proto__:null,decode:mu,default:Nse,encode:gu,toASCII:hh,toUnicode:ph,ucs2decode:hu,ucs2encode:dh},Symbol.toStringTag,{value:"Module"})),Mse=X7(Dse);var Bse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},$se={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Ose={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},xi=ke,Lse=Ra,Ise=Are,Pse=Xre,Fse=Mie,Rse=ase,Vse=Cse,Oo=zr,mh=Mse,zse={default:Bse,zero:$se,commonmark:Ose},Use=/^(vbscript|javascript|file|data):/,qse=/^data:image\/(gif|png|jpeg|webp);/;function Hse(t){var e=t.trim().toLowerCase();return Use.test(e)?!!qse.test(e):!0}var gh=["http:","https:","mailto:"];function jse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||gh.indexOf(e.protocol)>=0))try{e.hostname=mh.toASCII(e.hostname)}catch{}return Oo.encode(Oo.format(e))}function Wse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||gh.indexOf(e.protocol)>=0))try{e.hostname=mh.toUnicode(e.hostname)}catch{}return Oo.decode(Oo.format(e),Oo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new Rse,this.block=new Fse,this.core=new Pse,this.renderer=new Ise,this.linkify=new Vse,this.validateLink=Hse,this.normalizeLink=jse,this.normalizeLinkText=Wse,this.utils=xi,this.helpers=xi.assign({},Lse),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return xi.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=zse[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Zse=jt,Kse=Zse;const Gse=J7(Kse);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function y1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Yse(t){if(Array.isArray(t))return t}function Jse(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function Xse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qse(t,e){return Yse(t)||Jse(t,e)||eae(t,e)||Xse()}function eae(t,e){if(t){if(typeof t=="string")return y1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y1(t,e):void 0}}const vh=Object.entries,_1=Object.setPrototypeOf,tae=Object.isFrozen,nae=Object.getPrototypeOf,oae=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,tt=Object.seal,vr=Object.create,yh=typeof Reflect<"u"&&Reflect,fc=yh.apply,pc=yh.construct;Qe||(Qe=function(e){return e});tt||(tt=function(e){return e});fc||(fc=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});pc||(pc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const pr=Ve(Array.prototype.forEach),rae=Ve(Array.prototype.lastIndexOf),C1=Ve(Array.prototype.pop),hr=Ve(Array.prototype.push),iae=Ve(Array.prototype.splice),no=Array.isArray,Ci=Ve(String.prototype.toLowerCase),Ll=Ve(String.prototype.toString),b1=Ve(String.prototype.match),pi=Ve(String.prototype.replace),k1=Ve(String.prototype.indexOf),sae=Ve(String.prototype.trim),aae=Ve(Number.prototype.toString),lae=Ve(Boolean.prototype.toString),w1=typeof BigInt>"u"?null:Ve(BigInt.prototype.toString),E1=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Ke=Ve(Object.prototype.hasOwnProperty),hi=Ve(Object.prototype.toString),Ze=Ve(RegExp.prototype.test),So=cae(TypeError);function Ve(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return fc(t,e,o)}}function cae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return pc(t,n)}}function ve(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(_1&&_1(t,null),!no(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(tae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function uae(t){for(let e=0;e<t.length;e++)Ke(t,e)||(t[e]=null);return t}function rt(t){const e=vr(null);for(const o of vh(t)){var n=Qse(o,2);const r=n[0],s=n[1];Ke(t,r)&&(no(s)?e[r]=uae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=rt(s):e[r]=s)}return e}function dae(t){switch(typeof t){case"string":return t;case"number":return aae(t);case"boolean":return lae(t);case"bigint":return w1?w1(t):"0";case"symbol":return E1?E1(t):"Symbol()";case"undefined":return hi(t);case"function":case"object":{if(t===null)return hi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:hi(o)}return hi(t)}default:return hi(t)}}function Jt(t,e){for(;t!==null;){const o=oae(t,e);if(o){if(o.get)return Ve(o.get);if(typeof o.value=="function")return Ve(o.value)}t=nae(t)}function n(){return null}return n}function fae(t){try{return Ze(t,""),!0}catch{return!1}}const x1=Qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Il=Qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pl=Qe(["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"]),pae=Qe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fl=Qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hae=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),S1=Qe(["#text"]),T1=Qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rl=Qe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),A1=Qe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ds=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mae=tt(/{{[\w\W]*|^[\w\W]*}}/g),gae=tt(/<%[\w\W]*|^[\w\W]*%>/g),vae=tt(/\${[\w\W]*/g),yae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),_ae=tt(/^aria-[\-\w]+$/),N1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cae=tt(/^(?:\w+script|data):/i),bae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kae=tt(/^html$/i),wae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),D1=tt(/<[/\w!]/g),M1=tt(/<[/\w]/g),Eae=tt(/<\/no(script|embed|frames)/i),xae=tt(/\/>/i),At={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sae=function(){return typeof window>"u"?null:window},Tae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},B1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qn=function(e,n,o,r){return Ke(e,n)&&no(e[n])?ve(r.base?rt(r.base):{},e[n],r.transform):o};function _h(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sae();const e=X=>_h(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==At.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,p=l.prototype,h=Jt(p,"cloneNode"),m=Jt(p,"remove"),g=Jt(p,"nextSibling"),C=Jt(p,"childNodes"),_=Jt(p,"parentNode"),y=Jt(p,"shadowRoot"),v=Jt(p,"attributes"),w=a&&a.prototype?Jt(a.prototype,"nodeType"):null,k=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let x,S="",A,T=!1,I=0;const $=function(){if(I>0)throw So('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(E){$(),I++;try{return x.createHTML(E)}finally{I--}},B=function(E){$(),I++;try{return x.createScriptURL(E)}finally{I--}},P=function(){return T||(A=Tae(f,r),T=!0),A},R=n,K=R.implementation,F=R.createNodeIterator,N=R.createDocumentFragment,G=R.getElementsByTagName,z=o.importNode;let H=B1();e.isSupported=typeof vh=="function"&&typeof _=="function"&&K&&K.createHTMLDocument!==void 0;const ce=mae,ee=gae,ie=vae,U=yae,ne=_ae,L=Cae,Y=bae,ge=wae;let qe=N1,de=null;const _e=ve({},[...x1,...Il,...Pl,...Fl,...S1]);let we=null;const ft=ve({},[...T1,...Rl,...A1,...Ds]);let Ne=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,bt=null;const Pe=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ht=!0,kt=!0,Wn=!1,bo=!0,Fe=!1,mt=!0,ot=!1,Zt=!1,xn=null,Zn=null,ko=!1,Kn=!1,ir=!1,sr=!1,Sn=!0,cn=!1;const ps="user-content-";let Yr=!0,Kt=!1,wt={},Et=null;const ar=ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let hs=null;const Jr=ve({},["audio","video","img","source","image","track"]);let xt=null;const lr=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",St="http://www.w3.org/1999/xhtml";let Yn=St,wo=!1,Xr=null;const fl=ve({},[Gn,cr,St],Ll),ms=Qe(["mi","mo","mn","ms","mtext"]);let Tt=ve({},ms);const gs=Qe(["annotation-xml"]);let Qr=ve({},gs);const pl=ve({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Te=null,Gt=null;const ni=n.createElement("form"),vs=function(E){return E instanceof RegExp||E instanceof Function},Jn=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===E)return;(!E||typeof E!="object")&&(E={}),E=rt(E),Eo=ei.indexOf(E.PARSER_MEDIA_TYPE)===-1?ti:E.PARSER_MEDIA_TYPE,Te=Eo==="application/xhtml+xml"?Ll:Ci,de=Qn(E,"ALLOWED_TAGS",_e,{transform:Te}),we=Qn(E,"ALLOWED_ATTR",ft,{transform:Te}),Xr=Qn(E,"ALLOWED_NAMESPACES",fl,{transform:Ll}),xt=Qn(E,"ADD_URI_SAFE_ATTR",lr,{transform:Te,base:lr}),hs=Qn(E,"ADD_DATA_URI_TAGS",Jr,{transform:Te,base:Jr}),Et=Qn(E,"FORBID_CONTENTS",ar,{transform:Te}),pt=Qn(E,"FORBID_TAGS",rt({}),{transform:Te}),bt=Qn(E,"FORBID_ATTR",rt({}),{transform:Te}),wt=Ke(E,"USE_PROFILES")?E.USE_PROFILES&&typeof E.USE_PROFILES=="object"?rt(E.USE_PROFILES):E.USE_PROFILES:!1,ht=E.ALLOW_ARIA_ATTR!==!1,kt=E.ALLOW_DATA_ATTR!==!1,Wn=E.ALLOW_UNKNOWN_PROTOCOLS||!1,bo=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=E.SAFE_FOR_TEMPLATES||!1,mt=E.SAFE_FOR_XML!==!1,ot=E.WHOLE_DOCUMENT||!1,Kn=E.RETURN_DOM||!1,ir=E.RETURN_DOM_FRAGMENT||!1,sr=E.RETURN_TRUSTED_TYPE||!1,ko=E.FORCE_BODY||!1,Sn=E.SANITIZE_DOM!==!1,cn=E.SANITIZE_NAMED_PROPS||!1,Yr=E.KEEP_CONTENT!==!1,Kt=E.IN_PLACE||!1,qe=fae(E.ALLOWED_URI_REGEXP)?E.ALLOWED_URI_REGEXP:N1,Yn=typeof E.NAMESPACE=="string"?E.NAMESPACE:St,Tt=Ke(E,"MATHML_TEXT_INTEGRATION_POINTS")&&E.MATHML_TEXT_INTEGRATION_POINTS&&typeof E.MATHML_TEXT_INTEGRATION_POINTS=="object"?rt(E.MATHML_TEXT_INTEGRATION_POINTS):ve({},ms),Qr=Ke(E,"HTML_INTEGRATION_POINTS")&&E.HTML_INTEGRATION_POINTS&&typeof E.HTML_INTEGRATION_POINTS=="object"?rt(E.HTML_INTEGRATION_POINTS):ve({},gs);const O=Ke(E,"CUSTOM_ELEMENT_HANDLING")&&E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING=="object"?rt(E.CUSTOM_ELEMENT_HANDLING):vr(null);if(Ne=vr(null),Ke(O,"tagNameCheck")&&vs(O.tagNameCheck)&&(Ne.tagNameCheck=O.tagNameCheck),Ke(O,"attributeNameCheck")&&vs(O.attributeNameCheck)&&(Ne.attributeNameCheck=O.attributeNameCheck),Ke(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(Ne.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),tt(Ne),Fe&&(kt=!1),ir&&(Kn=!0),wt&&(de=ve({},S1),we=vr(null),wt.html===!0&&(ve(de,x1),ve(we,T1)),wt.svg===!0&&(ve(de,Il),ve(we,Rl),ve(we,Ds)),wt.svgFilters===!0&&(ve(de,Pl),ve(we,Rl),ve(we,Ds)),wt.mathMl===!0&&(ve(de,Fl),ve(we,A1),ve(we,Ds))),Pe.tagCheck=null,Pe.attributeCheck=null,Ke(E,"ADD_TAGS")&&(typeof E.ADD_TAGS=="function"?Pe.tagCheck=E.ADD_TAGS:no(E.ADD_TAGS)&&(de===_e&&(de=rt(de)),ve(de,E.ADD_TAGS,Te))),Ke(E,"ADD_ATTR")&&(typeof E.ADD_ATTR=="function"?Pe.attributeCheck=E.ADD_ATTR:no(E.ADD_ATTR)&&(we===ft&&(we=rt(we)),ve(we,E.ADD_ATTR,Te))),Ke(E,"ADD_URI_SAFE_ATTR")&&no(E.ADD_URI_SAFE_ATTR)&&ve(xt,E.ADD_URI_SAFE_ATTR,Te),Ke(E,"FORBID_CONTENTS")&&no(E.FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),ve(Et,E.FORBID_CONTENTS,Te)),Ke(E,"ADD_FORBID_CONTENTS")&&no(E.ADD_FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),ve(Et,E.ADD_FORBID_CONTENTS,Te)),Yr&&(de["#text"]=!0),ot&&ve(de,["html","head","body"]),de.table&&(ve(de,["tbody"]),delete pt.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const j=x;x=E.TRUSTED_TYPES_POLICY;try{S=M("")}catch(se){throw x=j,se}}else E.TRUSTED_TYPES_POLICY===null?(x=void 0,S=""):(x===void 0&&(x=P()),x&&typeof S=="string"&&(S=M("")));Qe&&Qe(E),Gt=E},oi=ve({},[...Il,...Pl,...pae]),D=ve({},[...Fl,...hae]),J=function(E,O,j){return O.namespaceURI===St?E==="svg":O.namespaceURI===Gn?E==="svg"&&(j==="annotation-xml"||Tt[j]):!!oi[E]},me=function(E,O,j){return O.namespaceURI===St?E==="math":O.namespaceURI===cr?E==="math"&&Qr[j]:!!D[E]},Me=function(E,O,j){return O.namespaceURI===cr&&!Qr[j]||O.namespaceURI===Gn&&!Tt[j]?!1:!D[E]&&(pl[E]||!oi[E])},Tn=function(E){let O=_(E);(!O||!O.tagName)&&(O={namespaceURI:Yn,tagName:"template"});const j=Ci(E.tagName),se=Ci(O.tagName);return Xr[E.namespaceURI]?E.namespaceURI===cr?J(j,O,se):E.namespaceURI===Gn?me(j,O,se):E.namespaceURI===St?Me(j,O,se):!!(Eo==="application/xhtml+xml"&&Xr[E.namespaceURI]):!1},Yt=function(E){hr(e.removed,{element:E});try{_(E).removeChild(E)}catch{if(m(E),!_(E))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(E){ii(E);const O=C(E);if(O){const se=[];pr(O,ae=>{hr(se,ae)}),pr(se,ae=>{try{m(ae)}catch{}})}const j=v(E);if(j)for(let se=j.length-1;se>=0;--se){const ae=j[se],pe=ae&&ae.name;if(typeof pe=="string")try{E.removeAttribute(pe)}catch{}}},An=function(E,O){try{hr(e.removed,{attribute:O.getAttributeNode(E),from:O})}catch{hr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(E),E==="is")if(Kn||ir)try{Yt(O)}catch{}else try{O.setAttribute(E,"")}catch{}},ys=function(E){const O=v(E);if(O)for(let j=O.length-1;j>=0;--j){const se=O[j],ae=se&&se.name;if(!(typeof ae!="string"||we[Te(ae)]))try{E.removeAttribute(ae)}catch{}}},ii=function(E){const O=[E];for(;O.length>0;){const j=O.pop();(w?w(j):j.nodeType)===At.element&&ys(j);const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)O.push(ae[pe])}},zg=function(E){if(!mt)return;const O=[E];for(;O.length>0;){const j=O.pop(),se=w?w(j):j.nodeType;if(se===At.processingInstruction||se===At.comment&&Ze(M1,j.data)){try{m(j)}catch{}continue}if(se===At.element){const pe=j,Ae=Te(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Ae!=="label"&&Ae!=="output"&&pe.removeAttribute("for")}catch{}}const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)O.push(ae[pe])}},ld=function(E){let O=null,j=null;if(ko)E="<remove></remove>"+E;else{const pe=b1(E,/^[\r\n\t ]+/);j=pe&&pe[0]}Eo==="application/xhtml+xml"&&Yn===St&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const se=x?M(E):E;if(Yn===St)try{O=new d().parseFromString(se,Eo)}catch{}if(!O||!O.documentElement){O=K.createDocument(Yn,"template",null);try{O.documentElement.innerHTML=wo?S:se}catch{}}const ae=O.body||O.documentElement;return E&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Yn===St?G.call(O,ot?"html":"body")[0]:ot?O.documentElement:ae},cd=function(E){const O=b?b(E):E.ownerDocument;return F.call(O||E,E,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_s=function(E){return E=pi(E,ce," "),E=pi(E,ee," "),E=pi(E,ie," "),E},hl=function(E){var O;E.normalize();const j=b?b(E):E.ownerDocument,se=F.call(j||E,E,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ae=se.nextNode();for(;ae;)ae.data=_s(ae.data),ae=se.nextNode();const pe=(O=E.querySelectorAll)===null||O===void 0?void 0:O.call(E,"template");pe&&pr(pe,Ae=>{ur(Ae.content)&&hl(Ae.content)})},Cs=function(E){const O=k?k(E):null;return typeof O!="string"||Te(O)!=="form"?!1:typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||E.attributes!==v(E)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function"||E.nodeType!==w(E)||E.childNodes!==C(E)},ur=function(E){if(!w||typeof E!="object"||E===null)return!1;try{return w(E)===At.documentFragment}catch{return!1}},si=function(E){if(!w||typeof E!="object"||E===null)return!1;try{return typeof w(E)=="number"}catch{return!1}};function un(X,E,O){X.length!==0&&pr(X,j=>{j.call(e,E,O,Gt)})}const Ug=function(E,O){return!!(mt&&E.hasChildNodes()&&!si(E.firstElementChild)&&Ze(D1,E.textContent)&&Ze(D1,E.innerHTML)||mt&&E.namespaceURI===St&&O==="style"&&si(E.firstElementChild)||E.nodeType===At.processingInstruction||mt&&E.nodeType===At.comment&&Ze(M1,E.data))},qg=function(E,O,j){if(!pt[O]&&pd(O)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,O)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(O)))return!1;if(Yr&&!Et[O]){const se=_(E),ae=C(E);if(ae&&se){const pe=ae.length;for(let Ae=pe-1;Ae>=0;--Ae){const Be=E===j?h(ae[Ae],!0):ae[Ae];se.insertBefore(Be,g(E))}}}return Yt(E),!0},ud=function(E,O,j,se){return E.length===0?O:O===j||O===se?rt(O):O},dd=function(E,O){if(un(H.beforeSanitizeElements,E,null),E!==O&&_(E)===null)return Kt&&ii(E),!0;if(Cs(E))return Yt(E),!0;const j=Te(k?k(E):E.nodeName);if(de=ud(H.uponSanitizeElement,de,_e,xn),un(H.uponSanitizeElement,E,{tagName:j,allowedTags:de}),E!==O&&_(E)===null)return Kt&&ii(E),!0;if(Ug(E,j))return Yt(E),!0;if(pt[j]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(j))&&!de[j]){const ae=qg(E,j,O);return ae===!1&&un(H.afterSanitizeElements,E,null),ae}if((w?w(E):E.nodeType)===At.element&&!Tn(E)||(j==="noscript"||j==="noembed"||j==="noframes")&&Ze(Eae,E.innerHTML))return Yt(E),!0;if(Fe&&E.nodeType===At.text){const ae=_s(E.textContent);E.textContent!==ae&&(hr(e.removed,{element:E.cloneNode()}),E.textContent=ae)}return un(H.afterSanitizeElements,E,null),!1},fd=function(E,O,j){if(bt[O]||mt&&O==="patchsrc"||mt&&O==="for"&&E!=="label"&&E!=="output"||Sn&&(O==="id"||O==="name")&&(j in n||j in ni))return!1;const se=we[O]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(O,E);if(!(kt&&Ze(U,O))){if(!(ht&&Ze(ne,O))){if(se){if(!xt[O]){if(!Ze(qe,pi(j,Y,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&E!=="script"&&k1(j,"data:")===0&&hs[E])){if(!(Wn&&!Ze(L,pi(j,Y,"")))){if(j)return!1}}}}}else if(!(pd(E)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,E)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(E))&&(Ne.attributeNameCheck instanceof RegExp&&Ze(Ne.attributeNameCheck,O)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(O,E))||O==="is"&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,j)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(j))))return!1}}return!0},Hg=ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pd=function(E){return!Hg[Ci(E)]&&Ze(ge,E)},jg=function(E,O,j,se){if(x&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(E,O)){case"TrustedHTML":return M(se);case"TrustedScriptURL":return B(se)}return se},Wg=function(E,O,j,se){try{j?E.setAttributeNS(j,O,se):E.setAttribute(O,se),Cs(E)?Yt(E):C1(e.removed)}catch{An(O,E)}},hd=function(E){un(H.beforeSanitizeAttributes,E,null);const O=E.attributes;if(!O||Cs(E))return;we=ud(H.uponSanitizeAttribute,we,ft,Zn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let se=O.length;const ae=Te(E.nodeName);for(;se--;){const pe=O[se],Ae=pe.name,Be=pe.namespaceURI,gt=pe.value,vt=Te(Ae),gl=gt;let lt=Ae==="value"?gl:sae(gl);if(j.attrName=vt,j.attrValue=lt,j.keepAttr=!0,j.forceKeepAttr=void 0,un(H.uponSanitizeAttribute,E,j),lt=j.attrValue,cn&&(vt==="id"||vt==="name")&&k1(lt,ps)!==0&&(An(Ae,E),lt=ps+lt),mt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,lt)){An(Ae,E);continue}if(vt==="attributename"&&b1(lt,"href")){An(Ae,E);continue}if(!j.forceKeepAttr){if(!j.keepAttr){An(Ae,E);continue}if(!bo&&Ze(xae,lt)){An(Ae,E);continue}if(Fe&&(lt=_s(lt)),!fd(ae,vt,lt)){An(Ae,E);continue}lt=jg(ae,vt,Be,lt),lt!==gl&&Wg(E,Ae,Be,lt)}}un(H.afterSanitizeAttributes,E,null)},bs=function(E){let O=null;const j=cd(E);for(un(H.beforeSanitizeShadowDOM,E,null);O=j.nextNode();)if(un(H.uponSanitizeShadowNode,O,null),dd(O,E),hd(O),ur(O.content)&&bs(O.content),(w?w(O):O.nodeType)===At.element){const ae=y(O);ur(ae)&&(ml(ae),bs(ae))}un(H.afterSanitizeShadowDOM,E,null)},ml=function(E){const O=[{node:E,shadow:null}];for(;O.length>0;){const j=O.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===At.element,Ae=C(se);if(Ae)for(let Be=Ae.length-1;Be>=0;--Be)O.push({node:Ae[Be],shadow:null});if(pe){const Be=k?k(se):null;if(typeof Be=="string"&&Te(Be)==="template"){const gt=se.content;ur(gt)&&O.push({node:gt,shadow:null})}}if(pe){const Be=y(se);ur(Be)&&O.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return e.sanitize=function(X){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,j=null,se=null,ae=null;if(wo=!X,wo&&(X="<!-->"),typeof X!="string"&&!si(X)&&(X=dae(X),typeof X!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return X;Zt?(de=xn,we=Zn):Jn(E),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(de=rt(de)),H.uponSanitizeAttribute.length>0&&(we=rt(we)),e.removed=[];const pe=Kt&&typeof X!="string"&&si(X);if(pe){zg(X);const gt=k?k(X):X.nodeName;if(typeof gt=="string"){const vt=Te(gt);if(!de[vt]||pt[vt])throw ri(X),So("root node is forbidden and cannot be sanitized in-place")}if(Cs(X))throw ri(X),So("root node is clobbered and cannot be sanitized in-place");try{ml(X)}catch(vt){throw ri(X),vt}}else if(si(X))O=ld("<!---->"),j=O.ownerDocument.importNode(X,!0),j.nodeType===At.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?O=j:O.appendChild(j),ml(j);else{if(!Kn&&!Fe&&!ot&&X.indexOf("<")===-1)return x&&sr?M(X):X;if(O=ld(X),!O)return Kn?null:sr?S:""}O&&ko&&Yt(O.firstChild);const Ae=pe?X:O;try{const gt=cd(Ae);for(;se=gt.nextNode();)dd(se,Ae),hd(se),ur(se.content)&&bs(se.content)}catch(gt){throw pe&&(ri(X),pr(e.removed,vt=>{vt.element&&ii(vt.element)})),gt}if(pe)return pr(e.removed,gt=>{gt.element&&ii(gt.element)}),Fe&&hl(X),X;if(Kn){if(Fe&&hl(O),ir)for(ae=N.call(O.ownerDocument);O.firstChild;)ae.appendChild(O.firstChild);else ae=O;return(we.shadowroot||we.shadowrootmode)&&(ae=z.call(o,ae,!0)),ae}let Be=ot?O.outerHTML:O.innerHTML;return ot&&de["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&Ze(kae,O.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
+ `+Be),Fe&&(Be=_s(Be)),x&&sr?M(Be):Be},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jn(X),Zt=!0,xn=de,Zn=we},e.clearConfig=function(){Gt=null,Zt=!1,xn=null,Zn=null,x=A,S=""},e.isValidAttribute=function(X,E,O){Gt||Jn({});const j=Te(X),se=Te(E);return fd(j,se,O)},e.addHook=function(X,E){typeof E=="function"&&Ke(H,X)&&hr(H[X],E)},e.removeHook=function(X,E){if(Ke(H,X)){if(E!==void 0){const O=rae(H[X],E);return O===-1?void 0:iae(H[X],O,1)[0]}return C1(H[X])}},e.removeHooks=function(X){Ke(H,X)&&(H[X]=[])},e.removeAllHooks=function(){H=B1()},e}var Aae=_h();const Nae=["innerHTML"],Dae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Ch=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new Gse({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Aae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(r,s)=>t.content?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Nae)):(i.openBlock(),i.createElementBlock("div",Dae,i.toDisplayString(t.placeholder),1))}});function Z(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function bh(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const an=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Mae=an&&"documentMode"in document?document.documentMode:null,Xt=an&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Wo=an&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),na=!(!an||!("InputEvent"in window)||Mae)&&"getTargetRanges"in new window.InputEvent("input"),Vi=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bae=an&&/Android/.test(navigator.userAgent),kh=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$1=an&&Bae&&kh,zi=an&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xt&&!kh;function wh(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const $ae=0,Oae=1,Lae=2,Eh=128,Iae=1,Pae=2,Fae=3,Rae=4,Vae=5,zae=6,Wa=Vi||Lr||zi?" ":"​",po=`
20
20
 
21
- `,Uae=Wo?" ":Wa,ct={bold:1,capitalize:1024,code:16,highlight:Eh,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},qae={directionless:1,unmergeable:2},O1={center:2,end:6,justify:4,left:1,right:3,start:5},Hae={[Pae]:"center",[zae]:"end",[Rae]:"justify",[Iae]:"left",[Fae]:"right",[Vae]:"start"},jae={normal:0,segmented:2,token:1},Wae={[$ae]:"normal",[Lae]:"segmented",[Oae]:"token"},L1="$config";function xh(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(R(a)&&xh(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let hc=!1,vu=0;function Zae(t){vu=t.timeStamp}function Vl(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&tl(t,n)!==void 0}function Kae(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&$u(e,a,r,s,!1)}function Gae(t,e,n){if(W(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return jn(e)&&n.isAttached()}function Yae(t,e,n,o){for(let r=t;r&&!Qle(r);r=us(r)){const s=tl(r,e);if(s!==void 0){const a=We(s,n);if(a)return Ce(a)||!ze(r)?void 0:[r,a]}else if(r===o)return[o,Tm(n)]}}function Sh(t,e,n){hc=!0;const o=performance.now()-vu>100;try{Mt(t,()=>{const r=te()||function(p){return p.getEditorState().read(()=>{const h=te();return h!==null?h.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let p=0;p<e.length;p++){const h=e[p],m=h.type,g=h.target,C=Yae(g,t,l,a);if(!C)continue;const[_,y]=C;if(m==="characterData")o&&Q(y)&&jn(g)&&Gae(r,g,y)&&Kae(g,y,t);else if(m==="childList"){u=!0;const v=h.addedNodes;for(let b=0;b<v.length;b++){const E=v[b],S=xm(E),T=E.parentNode;if(T!=null&&E!==c&&S===null&&!Vl(E,T,t)){if(Wo){const A=(ze(E)?E.innerText:null)||E.nodeValue;A&&(d+=A)}T.removeChild(E)}}const w=h.removedNodes,k=w.length;if(k>0){let b=0;for(let E=0;E<k;E++){const S=w[E];(Vl(S,g,t)||c===S)&&(g.appendChild(S),b++)}k!==b&&s.set(_,y)}}}if(s.size>0)for(const[p,h]of s)h.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const h=f[p],m=h.addedNodes,g=h.target;for(let C=0;C<m.length;C++){const _=m[C],y=_.parentNode;y==null||_.nodeName!=="BR"||Vl(_,g,t)||y.removeChild(_)}}n.takeRecords()}r!==null&&(u&&at(r),Wo&&Mm(t)&&r.insertRawText(d))})}finally{hc=!1}}function Th(t){const e=t._observer;e!==null&&Sh(t,e.takeRecords(),e)}function Ah(t){(function(e){vu===0&&Wt(e).addEventListener("textInput",Zae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Sh(t,e,n)})}let Jae=class{constructor(e,n){q(this,"key");q(this,"parse");q(this,"unparse");q(this,"isEqual");q(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||tle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function Xae(t,e){return new Jae(t,e)}function Nh(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function zl(t,e,n){let o;if(Ge(),typeof n=="function"){const s=t.getLatest(),a=Nh(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Mh(r).updateFromKnown(e,o),r}function Qae(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:r}=rl(o);if(r&&r.stateConfigs)for(const s of r.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let ele=class Dh{constructor(e,n,o=void 0,r=new Map,s=void 0){q(this,"node");q(this,"knownState");q(this,"unknownState");q(this,"sharedNodeState");q(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let f=d.size;if(u)for(const p in u){const h=c.get(p);h&&d.has(h)||f++}return f}(a,o,r);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return I1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new Dh(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=I1(s)),this.size++),r.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Mh(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ele(e,Bh(e));return e.__state=n,n}function Bh(t){return t.__state?t.__state.sharedNodeState:bm(ol(),t.getType()).sharedNodeState}function I1(t){if(t)for(const e in t)return t}function tle(t){return t}function P1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function F1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function R1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function V1(t,e){const n=t.__mode,o=t.__format,r=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(r===null||r===l)&&(t.__state===null||c===u||function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&P1(p,d,f)||f&&P1(p,f,d)||d&&F1(p,d,f)||f&&F1(p,f,d))}(c,u))}function z1(t,e){const n=t.mergeWithSibling(e),o=Oe()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function U1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(V1(e,o)){o=z1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(V1(o,n)){o=z1(o,n);break}break}n.remove()}}else o.remove()}function oa(t){return q1(t.anchor),q1(t.focus),t}function q1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),Q(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!R(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Zo,it,Ui,Za,mc,gc,Ko,en,vc,qi,He="",fn=null,pn="",$n="",yr=!1,ra=!1;function ia(t,e){const n=Ko.get(t);if(e!==null){const o=bc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||it._keyToDOMMap.delete(t),R(n)){const o=aa(n,Ko);yc(o,0,o.length-1,null)}n!==void 0&&Ou(qi,Ui,Za,n,"destroyed")}function yc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&ia(s,o)}}function To(t,e){t.setProperty("text-align",e)}const nle="40px";function $h(t,e){const n=Zo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||nle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Oh(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function _c(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Re(o))return null;const s=o.getParentOrThrow();return Re(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function sa(t,e){const n=en.get(t);n===void 0&&Z(60);const o=n.createDOM(Zo,it);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,it),Q(n)?o.setAttribute("data-lexical-text","true"):Ce(n)&&o.setAttribute("data-lexical-decorator","true"),R(n)){const r=n.__indent,s=n.__size;if(_c(o,n),r!==0&&$h(o,r),s!==0){const l=s-1;Cc(aa(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Oh(o,a),n.isInline()||Lh(null,n,o),nl(n)&&(He+=po,$n+=po)}else{const r=n.getTextContent();if(Ce(n)){const s=n.decorate(it,Zo);s!==null&&Ih(t,s),o.contentEditable="false"}He+=r,$n+=r}return e!==null&&e.insertChild(o),Ou(qi,Ui,Za,n,"created"),o}function Cc(t,e,n,o,r){const s=He;He="";let a=n;for(;a<=o;++a){sa(t[a],r);const l=en.get(t[a]);l!==null&&Q(l)&&(fn===null&&(fn=l.getFormat()),pn===""&&(pn=l.getStyle()))}nl(e)&&(He+=po),r.element.__lexicalTextContent=He,He=s+He}function H1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return so(o)?"line-break":Ce(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Lh(t,e,n){const o=H1(t,Ko),r=H1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ole(t,e,n){var o;fn=null,pn="",function(r,s,a){const l=He,c=r.__size,u=s.__size;He="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const m=bc(f),g=sa(p,null);try{d.replaceChild(g,m)}catch(C){if(typeof C=="object"&&C!=null){const _=`${C.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(_)}throw C}ia(f,null)}const h=en.get(p);Q(h)&&(fn===null&&(fn=h.getFormat()),pn===""&&(pn=h.getStyle()))}else{const f=aa(r,Ko),p=aa(s,en);if(f.length!==c&&Z(227),p.length!==u&&Z(228),c===0)u!==0&&Cc(p,s,0,u-1,a);else if(u===0){if(c!==0){const h=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;yc(f,0,c-1,h?null:d),h&&(d.textContent="")}}else(function(h,m,g,C,_,y){const v=C-1,w=_-1;let k,b,E=y.getFirstChild(),S=0,T=0;for(;S<=v&&T<=w;){const L=m[S],M=g[T];if(L===M)E=Ul(bi(M,y.element)),S++,T++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const I=b.has(L),F=k.has(M);if(I)if(F){const K=Yo(it,M);K===E?E=Ul(bi(M,y.element)):(y.withBefore(E).insertChild(K),bi(M,y.element)),S++,T++}else sa(M,y.withBefore(E)),T++;else E=Ul(bc(L)),ia(L,y.element),S++}const B=en.get(M);B!==null&&Q(B)&&(fn===null&&(fn=B.getFormat()),pn===""&&(pn=B.getStyle()))}const A=S>v,z=T>w;if(A&&!z){const L=g[w+1],M=L===void 0?null:it.getElementByKey(L);Cc(g,h,T,w,y.withBefore(M))}else z&&!A&&yc(m,S,v,y.element)})(s,f,p,c,u,a)}nl(s)&&(He+=po),d.__lexicalTextContent=He,He=l+He}(t,e,e.getDOMSlot(n)),o=e,fn==null||fn===o.__textFormat||ra||o.setTextFormat(fn),function(r){pn===""||pn===r.__textStyle||ra||r.setTextStyle(pn)}(e)}function aa(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&Z(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Ko.get(t);let o=en.get(t);n!==void 0&&o!==void 0||Z(61);const r=yr||gc.has(t)||mc.has(t),s=Yo(it,t);if(n===o&&!r){if(R(n)){const a=s.__lexicalTextContent;a!==void 0&&(He+=a,$n+=a)}else{const a=n.getTextContent();$n+=a,He+=a}return s}if(n!==o&&r&&Ou(qi,Ui,Za,o,"updated"),o.updateDOM(n,s,Zo)){const a=sa(t,null);return e===null&&Z(62),e.replaceChild(a,s),ia(t,null),a}if(R(n)&&R(o)){const a=o.__indent;(yr||a!==n.__indent)&&$h(s,a);const l=o.__format;if((yr||l!==n.__format)&&Oh(s,l),r&&(ole(n,o,s),Re(o)||o.isInline()||Lh(n,o,s)),nl(o)&&(He+=po,$n+=po),(yr||o.__dir!==n.__dir)&&(_c(s,o),Re(o)&&!yr))for(const c of o.getChildren())R(c)&&_c(Yo(it,c.getKey()),c)}else{const a=o.getTextContent();if(Ce(o)){const l=o.decorate(it,Zo);l!==null&&Ih(t,l)}He+=a,$n+=a}if(!ra&&Re(o)&&o.__cachedText!==$n){const a=o.getWritable();a.__cachedText=$n,o=a}return s}function Ih(t,e){let n=it._pendingDecorators;const o=it._decorators;if(n===null){if(o[t]===e)return;n=Sm(it)}n[t]=e}function Ul(t){let e=t.nextSibling;return e!==null&&e===it._blockCursorElement&&(e=e.nextSibling),e}function rle(t,e,n,o,r,s){He="",$n="",yr=o===2,it=n,Zo=n._config,Ui=n._nodes,Za=it._listeners.mutation,mc=r,gc=s,Ko=t._nodeMap,en=e._nodeMap,ra=e._readOnly,vc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),it=void 0,Ui=void 0,mc=void 0,gc=void 0,Ko=void 0,en=void 0,Zo=void 0,vc=void 0,qi=void 0,a}function bc(t){const e=vc.get(t);return e===void 0&&Z(75,t),e}function le(t){return{type:t}}const Ph=le("SELECTION_CHANGE_COMMAND"),ile=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fh=le("CLICK_COMMAND"),Ro=le("DELETE_CHARACTER_COMMAND"),wr=le("INSERT_LINE_BREAK_COMMAND"),Hi=le("INSERT_PARAGRAPH_COMMAND"),Er=le("CONTROLLED_TEXT_INSERTION_COMMAND"),yu=le("PASTE_COMMAND"),kc=le("REMOVE_TEXT_COMMAND"),ji=le("DELETE_WORD_COMMAND"),Wi=le("DELETE_LINE_COMMAND"),Vt=le("FORMAT_TEXT_COMMAND"),_u=le("UNDO_COMMAND"),Cu=le("REDO_COMMAND"),sle=le("KEYDOWN_COMMAND"),Rh=le("KEY_ARROW_RIGHT_COMMAND"),ale=le("MOVE_TO_END"),Vh=le("KEY_ARROW_LEFT_COMMAND"),lle=le("MOVE_TO_START"),zh=le("KEY_ARROW_UP_COMMAND"),Uh=le("KEY_ARROW_DOWN_COMMAND"),la=le("KEY_ENTER_COMMAND"),qh=le("KEY_SPACE_COMMAND"),Hh=le("KEY_BACKSPACE_COMMAND"),jh=le("KEY_ESCAPE_COMMAND"),Wh=le("KEY_DELETE_COMMAND"),Zh=le("KEY_TAB_COMMAND"),cle=le("INSERT_TAB_COMMAND"),ule=le("INDENT_CONTENT_COMMAND"),j1=le("OUTDENT_CONTENT_COMMAND"),Kh=le("DROP_COMMAND"),dle=le("FORMAT_ELEMENT_COMMAND"),Gh=le("DRAGSTART_COMMAND"),Yh=le("DRAGOVER_COMMAND"),fle=le("DRAGEND_COMMAND"),Ka=le("COPY_COMMAND"),bu=le("CUT_COMMAND"),wc=le("SELECT_ALL_COMMAND"),ple=le("CLEAR_EDITOR_COMMAND"),hle=le("CLEAR_HISTORY_COMMAND"),Ms=le("CAN_REDO_COMMAND"),Bs=le("CAN_UNDO_COMMAND"),mle=le("FOCUS_COMMAND"),gle=le("BLUR_COMMAND"),vle=le("KEY_MODIFIER_COMMAND"),Nn=Object.freeze({}),Ec=[["keydown",function(t,e){if(Si=t.timeStamp,Jh=t.key,!e.isComposing()&&!re(e,sle,t)&&t.key!=null){if(ql&&bf(t))return Mt(e,()=>{$s(e,Hl)}),ql=!1,void(Hl="");if(function(n){return Ee(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Rh,t);else if(function(n){return Ee(n,"ArrowRight",Mn)}(t))re(e,ale,t);else if(function(n){return Ee(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,Vh,t);else if(function(n){return Ee(n,"ArrowLeft",Mn)}(t))re(e,lle,t);else if(function(n){return Ee(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,zh,t);else if(function(n){return Ee(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,Uh,t);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,re(e,la,t);else if(function(n){return n.key===" "}(t))re(e,qh,t);else if(function(n){return Xt&&Ee(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,re(e,wr,!0);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,re(e,la,t);else if(function(n){return Ee(n,"Backspace",{shiftKey:"any"})||Xt&&Ee(n,"h",{ctrlKey:!0})}(t))bf(t)?re(e,Hh,t):(t.preventDefault(),re(e,Ro,!0));else if(function(n){return n.key==="Escape"}(t))re(e,jh,t);else if(function(n){return Ee(n,"Delete",{})||Xt&&Ee(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Wh,t):(t.preventDefault(),re(e,Ro,!1));else if(function(n){return Ee(n,"Backspace",Cf)}(t))t.preventDefault(),re(e,ji,!0);else if(function(n){return Ee(n,"Delete",Cf)}(t))t.preventDefault(),re(e,ji,!1);else if(function(n){return Xt&&Ee(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Wi,!0);else if(function(n){return Xt&&(Ee(n,"Delete",{metaKey:!0})||Ee(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Wi,!1);else if(function(n){return Ee(n,"b",Mn)}(t))t.preventDefault(),re(e,Vt,"bold");else if(function(n){return Ee(n,"u",Mn)}(t))t.preventDefault(),re(e,Vt,"underline");else if(function(n){return Ee(n,"i",Mn)}(t))t.preventDefault(),re(e,Vt,"italic");else if(function(n){return Ee(n,"Tab",{shiftKey:"any"})}(t))re(e,Zh,t);else if(function(n){return Ee(n,"z",Mn)}(t))t.preventDefault(),re(e,_u,void 0);else if(function(n){return Xt?Ee(n,"z",{metaKey:!0,shiftKey:!0}):Ee(n,"y",{ctrlKey:!0})||Ee(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,Cu,void 0);else{const n=e._editorState._selection;n===null||W(n)?kf(t)&&(t.preventDefault(),re(e,wc,t)):function(o){return Ee(o,"c",Mn)}(t)?(t.preventDefault(),re(e,Ka,t)):function(o){return Ee(o,"x",Mn)}(t)?(t.preventDefault(),re(e,bu,t)):kf(t)&&(t.preventDefault(),re(e,wc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,vle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Mt(e,()=>{vf(n)||(Tc=!0)})}],["compositionstart",function(t,e){Mt(e,()=>{const n=te();if(W(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();Xe(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||Q(r)&&r.getStyle()!==n.style)&&re(e,Er,Uae)}})}],["compositionend",function(t,e){Wo?mi=!0:Lr||!Vi&&!zi?Mt(e,()=>{$s(e,t.data)}):(ql=!0,Hl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(ze(t.target)&&vf(t.target))return;const n=te(),o=t.data,r=nm(t);if(o!=null&&W(n)&&em(n,r,o,t.timeStamp,!1)){mi&&($s(e,o),mi=!1);const s=n.anchor.getNode(),a=on(Wt(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;na&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Dm(a.anchorNode)||re(e,Er,o);const d=o.length;Wo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Vi||Lr||zi||!e.isComposing()||(Si=0,Xe(null))}else Bu(!1,e,o!==null?o:void 0),mi&&($s(e,o||void 0),mi=!1);(function(){Ge();const s=Oe();Th(s)})()},{event:t}),_r=null}],["click",function(t,e){Mt(e,()=>{const n=te(),o=on(Wt(e)),r=jr();if(o){if(W(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Re(a)&&Le().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>R(c)&&!c.isInline());R(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(ze(s)||jn(s))&&at(wu(r,o,e,t))}}re(e,Fh,t)})}],["cut",Nn],["copy",Nn],["dragstart",Nn],["dragover",Nn],["dragend",Nn],["paste",Nn],["focus",Nn],["blur",Nn],["drop",Nn]];na&&Ec.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=nm(n);r==="deleteCompositionText"||Wo&&Mm(o)||r!=="insertCompositionText"&&Mt(o,()=>{const a=te();if(r==="deleteContentBackward"){if(a===null){const h=jr();if(!W(h))return;at(h.clone())}if(W(a)){const h=a.anchor.key===a.focus.key;if(l=n.timeStamp,Jh==="MediaLast"&&l<Si+30&&o.isComposing()&&h){if(Xe(null),Si=0,setTimeout(()=>{Mt(o,()=>{Xe(null)})},30),W(a)){const m=a.anchor.getNode();m.markDirty(),Q(m)||Z(142),tm(a,m)}}else{Xe(null),n.preventDefault();const m=a.anchor.getNode(),g=m.getTextContent(),C=m.canInsertTextAfter(),_=a.anchor.offset===0&&a.focus.offset===g.length;let y=$1&&h&&!_&&C;if(y&&a.isCollapsed()&&(y=!Ce(Bc(a.anchor,!0))),!y){re(o,Ro,!0);const v=te();$1&&W(v)&&v.isCollapsed()&&($o=v,setTimeout(()=>$o=null))}}return}}var l;if(!W(a))return;const c=n.data;_r!==null&&Bu(!1,o,_r),a.dirty&&_r===null||!a.isCollapsed()||Re(a.anchor.getNode())||s===null||a.applyDOMRange(s),_r=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":re(o,Er,n);break;case"insertFromComposition":Xe(null),re(o,Er,n);break;case"insertLineBreak":Xe(null),re(o,wr,!1);break;case"insertParagraph":Xe(null),Ti&&!Lr?(Ti=!1,re(o,wr,!1)):re(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,yu,n);break;case"deleteByComposition":(function(h,m){return h!==m||R(h)||R(m)||!Vo(h)||!Vo(m)})(f,p)&&re(o,kc,n);break;case"deleteByDrag":case"deleteByCut":re(o,kc,n);break;case"deleteContent":re(o,Ro,!1);break;case"deleteWordBackward":re(o,ji,!0);break;case"deleteWordForward":re(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Wi,!1);break;case"formatStrikeThrough":re(o,Vt,"strikethrough");break;case"formatBold":re(o,Vt,"bold");break;case"formatItalic":re(o,Vt,"italic");break;case"formatUnderline":re(o,Vt,"underline");break;case"historyUndo":re(o,_u,void 0);break;case"historyRedo":re(o,Cu,void 0)}else{if(c===`
22
- `)n.preventDefault(),re(o,wr,!1);else if(c===po)n.preventDefault(),re(o,Hi,void 0);else if(c==null&&n.dataTransfer){const h=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(h)}else c!=null&&em(a,s,c,n.timeStamp,!0)?(n.preventDefault(),re(o,Er,c)):_r=c;Xh=n.timeStamp}})}(t,e)]);let Si=0,Jh=null,Xh=0,_r=null;const xc=new WeakMap,ca=new WeakMap;let Sc=!1,Tc=!1,Ti=!1,mi=!1,ql=!1,Hl="",$o=null,Qh=[0,"",0,"root",0];function em(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=Oe(),u=on(Wt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),h=n.length;return f!==a.key||!Q(l)||(!r&&(!na||Xh<o+50)||l.isDirty()&&h<2||Am(n))&&s.offset!==a.offset&&!l.isComposing()||Bn(l)||l.isDirty()&&h>1||(r||!na)&&p!==null&&!l.isComposing()&&d!==Ir(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(m,g){if(g.isSegmented())return!0;if(!m.isCollapsed())return!1;const C=m.anchor.offset,_=g.getParentOrThrow(),y=Vo(g);return C===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||y||function(v){const w=v.getPreviousSibling();return(Q(w)||R(w)&&w.isInline())&&!w.canInsertTextAfter()}(g):C===g.getTextContentSize()&&(!g.canInsertTextAfter()||!_.canInsertTextAfter()&&!g.isComposing()||y)}(t,l)}function W1(t,e){return jn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Z1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Sc&&(Sc=!1,W1(o,r)&&W1(s,a)&&!$o)||Mt(e,()=>{if(!n)return void at(null);if(!cs(e,o,s))return;let l=te();if($o&&W(l)&&l.isCollapsed()){const c=l.anchor,u=$o.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=$o.clone(),at(l))}if($o=null,W(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=Wt(e).event,f=d?d.timeStamp:performance.now(),[p,h,m,g,C]=Qh,_=Le(),y=e.isComposing()===!1&&_.getTextContent()==="";if(f<C+200&&c.offset===m&&c.key===g)qs(l,p,h);else if(c.type==="text")Q(u)||Z(141),tm(l,u);else if(c.type==="element"&&!y){R(u)||Z(259);const v=c.getNode();v.isEmpty()?function(w,k){const b=k.getTextFormat(),E=k.getTextStyle();qs(w,b,E)}(l,v):qs(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),h=p.length,m=l.isBackward(),g=m?a:r,C=m?r:a,_=m?f:d,y=m?d:f;let v=2047,w=!1;for(let k=0;k<h;k++){const b=p[k],E=b.getTextContentSize();if(Q(b)&&E!==0&&!(k===0&&b.__key===_&&g===E||k===h-1&&b.__key===y&&C===0)&&(w=!0,v&=b.getFormat(),v===0))break}l.format=w?v:0}}re(e,Ph,void 0)})}function qs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function tm(t,e){qs(t,e.getFormat(),e.getStyle())}function nm(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function $s(t,e){const n=t._compositionKey;if(Xe(null),n!==null&&e!=null){if(e===""){const o=We(n),r=Ir(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&Q(o)&&$u(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
- `){const o=te();if(W(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,la,null)}}}Bu(!0,t,e)}function om(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function rm(t){const e=Yle(t.target);if(e===null)return;const n=km(e.anchorNode);if(n===null)return;Tc&&(Tc=!1,Mt(n,()=>{const c=jr(),u=e.anchorNode;(ze(u)||jn(u))&&at(wu(c,e,n,t))}));const o=Mu(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&Z1(e,l,!1),Z1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function K1(t){t._lexicalHandled=!0}function G1(t){return t._lexicalHandled===!0}const Y1=()=>{};function yle(t){const e=xc.get(t);if(e===void 0)return void Y1();const n=ca.get(e);if(n===void 0)return void Y1();const o=n-1;o>=0||Z(164),xc.delete(t),ca.set(e,o),o===0&&e.removeEventListener("selectionchange",rm);const r=el(t);Du(r)?(function(a){if(a._parentEditor!==null){const l=Mu(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&Z(198);const s=om(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Ac(t,e,n){Ge();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=te();if(!W(c)||!R(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return $c(f,l)&&u.set(l.__key,0,"element"),$c(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(W(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(pa(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(pa(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Nt(s)&&e&&t.isSelected()&&t.selectPrevious();if(W(s)&&e&&!a){const l=t.getIndexWithinParent();zo(t),fa(s,r,l,-1)}else zo(t);n||ut(r)||r.canBeEmpty()||!r.isEmpty()||Ac(r,e),e&&s&&Re(r)&&r.isEmpty()&&r.selectEnd()}const im=Symbol.for("ephemeral");function ua(t){return t[im]||!1}class tn{constructor(e){q(this,"__type");q(this,"__key");q(this,"__parent");q(this,"__prev");q(this,"__next");q(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),qle(this,e)}static getType(){const{ownNodeType:e}=rl(this);return e===void 0&&Z(64,this.name),e}static clone(e){Z(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){Z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=We(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(Q(this))return o;if(W(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(Ce(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:We(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Z(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ut(n))return R(e)||e===this&&Ce(e)||Z(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Z(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:We(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:We(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=R(this)?this:this.getParent(),o=R(e)?e:e.getParent(),r=n&&o?js(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=js(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Pm(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Z(279),!1)))}isParentOf(e){const n=js(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let s=this;for(;s!==null;){const a=s.__key;if(r.has(a)||(r.add(a),o.push(s)),s===e)break;const l=R(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&Z(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Oe()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ua(this))return this;const e=We(this.__key);return e===null&&Z(113),e}getWritable(){if(ua(this))return this;Ge();const e=_o(),n=Oe(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(r))return ma(s),s;const c=Om(s);return a.add(r),ma(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Z(70)}updateDOM(e,n,o){Z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Z(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Bh(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Mh(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Ac(this,!0,e)}replace(e,n){Ge();let o=te();o!==null&&(o=o.clone()),Yl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;zo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,h=r.__next,m=r.__parent;if(Ac(r,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=p,f===null?c.__last=a:f.getWritable().__prev=a,l.__next=h,l.__parent=m,c.__size=u,n&&(R(this)&&R(l)||Z(139),this.getChildren().forEach(g=>{l.append(g)})),W(o)){at(o);const g=o.anchor,C=o.focus;g.key===s&&ef(g,l),C.key===s&&ef(C,l)}return oo()===s&&Xe(a),l}insertAfter(e,n=!0){Ge(),Yl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=te();let l=!1,c=!1;if(s!==null){const h=e.getIndexWithinParent();if(zo(r),W(a)){const m=s.__key,g=a.anchor,C=a.focus;l=g.type==="element"&&g.key===m&&g.offset===h+1,c=C.type==="element"&&C.key===m&&C.offset===h+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=r.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,r.__next=p,r.__prev=o.__key,r.__parent=o.__parent,n&&W(a)){const h=this.getIndexWithinParent();fa(a,d,h+1);const m=d.__key;l&&a.anchor.set(m,h+2,"element"),c&&a.focus.set(m,h+2,"element")}return e}insertBefore(e,n=!0){Ge(),Yl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;zo(r);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=te();return n&&W(d)&&fa(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return De()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Ge();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(R(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){Ge();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(R(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}q(tn,"importDOM");const da="historic",_le="history-push",Ai="history-merge",Cle="paste",sm="collaboration",ble="skip-scroll-into-view",kle="skip-dom-selection",wle="skip-selection-focus";class os extends tn{static getType(){return"linebreak"}static clone(e){return new os(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&ga(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ga(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}return!1}(e)?null:{conversion:Ele,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Ele(t){return{node:nn()}}function nn(){return ln(new os)}function so(t){return t instanceof os}function Os(t){return jn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function jl(t,e){return 16&e?"code":e&Eh?"mark":32&e?"sub":64&e?"sup":null}function Wl(t,e){return 1&e?"strong":2&e?"em":"span"}function am(t,e,n,o,r){const s=o.classList;let a=Sr(r,"base");a!==void 0&&s.add(...a),a=Sr(r,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in ct){const d=ct[u];if(a=Sr(r,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function lm(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Wa:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Wo){const[l,c,u]=function(d,f){const p=d.length,h=f.length;let m=0,g=0;for(;m<p&&m<h&&d[m]===f[m];)m++;for(;g+m<p&&g+m<h&&d[p-g-1]===f[h-g-1];)g++;return[m,p-m-g,f.slice(m,h-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function J1(t,e,n,o,r,s){lm(r,t,e);const a=s.theme.text;a!==void 0&&am(0,0,o,t,a)}function Ls(t,e){const n=document.createElement(e);return n.appendChild(t),n}class yo extends tn{constructor(n="",o){super(o);q(this,"__text");q(this,"__format");q(this,"__style");q(this,"__mode");q(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new yo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return Wae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===oo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=ct[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ha(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=jl(0,r),a=Wl(0,r),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),J1(u,this,0,r,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,r){const s=this.__text,a=n.__format,l=this.__format,c=jl(0,a),u=jl(0,l),d=Wl(0,a),f=Wl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const C=o.firstChild;C==null&&Z(48);const _=document.createElement(f);return J1(_,this,0,l,s,r),o.replaceChild(_,C),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&Z(49)),lm(s,p,this);const h=r.theme.text;h!==void 0&&a!==l&&am(0,a,l,p,h);const m=n.__style,g=this.__style;return m!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Ale,priority:0}),b:()=>({conversion:Sle,priority:0}),code:()=>({conversion:Dn,priority:0}),em:()=>({conversion:Dn,priority:0}),i:()=>({conversion:Dn,priority:0}),mark:()=>({conversion:Dn,priority:0}),s:()=>({conversion:Dn,priority:0}),span:()=>({conversion:xle,priority:0}),strong:()=>({conversion:Dn,priority:0}),sub:()=>({conversion:Dn,priority:0}),sup:()=>({conversion:Dn,priority:0}),u:()=>({conversion:Dn,priority:0})}}static importJSON(n){return Ie().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return ze(o)||Z(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Ls(o,"b")),this.hasFormat("italic")&&(o=Ls(o,"i")),this.hasFormat("strikethrough")&&(o=Ls(o,"s")),this.hasFormat("underline")&&(o=Ls(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?ct[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?qae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ha(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=jae[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Ge();let r=n,s=o;const a=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;r===void 0&&(r=u),s===void 0&&(s=u)}else r=0,s=0;if(!W(a))return dm(c,r,c,s,"text","text");{const u=oo();u!==a.anchor.key&&u!==a.focus.key||Xe(c),a.setTextNodeRange(this,r,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,s){const a=this.getWritable(),l=a.__text,c=r.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=te();if(s&&W(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+r+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Ge();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=oo(),l=r.length;n.sort((T,A)=>T-A),n.push(l);const c=[],u=n.length;for(let T=0,A=0;T<l&&A<=u;A++){const z=n[A];z>T&&(c.push(r.slice(T,z)),T=z)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let h;const m=o.getFormat(),g=o.getStyle(),C=o.__detail;let _=!1,y=null,v=null;const w=te();if(W(w)){const[T,A]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];T.type==="text"&&T.key===s&&(y=T),A.type==="text"&&A.key===s&&(v=A)}o.isSegmented()?(h=Ie(f),h.__format=m,h.__style=g,h.__detail=C,h.__state=R1(o,h),_=!0):h=o.setTextContent(f);const k=[h];for(let T=1;T<d;T++){const A=Ie(c[T]);A.__format=m,A.__style=g,A.__detail=C,A.__state=R1(o,A);const z=A.__key;a===s&&Xe(z),k.push(A)}const b=y?y.offset:null,E=v?v.offset:null;let S=0;for(const T of k){if(!y&&!v)break;const A=S+T.getTextContentSize();if(y!==null&&b!==null&&b<=A&&b>=S&&(y.set(T.getKey(),b-S,"text"),b<A&&(y=null)),v!==null&&E!==null&&E<=A&&E>=S){v.set(T.getKey(),E-S,"text");break}S=A}if(p!==null){(function(z){const L=z.getPreviousSibling(),M=z.getNextSibling();L!==null&&ma(L),M!==null&&ma(M)})(this);const T=p.getWritable(),A=this.getIndexWithinParent();_?(T.splice(A,0,k),this.remove()):T.splice(A,1,k),W(w)&&fa(w,p,A,d-1)}return k}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||Z(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;oo()===s&&Xe(r);const c=te();if(W(c)){const p=c.anchor,h=c.focus;p!==null&&p.key===s&&lf(p,o,r,n,l),h!==null&&h.key===s&&lf(h,o,r,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function xle(t){return{forChild:ku(t.style),node:null}}function Sle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:ku(e.style,n?void 0:"bold"),node:null}}const X1=new WeakMap;function Tle(t){if(!ze(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Ale(t){const e=t;t.parentElement===null&&Z(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=X1.get(s))===void 0&&!Tle(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)X1.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
21
+ `,Uae=Wo?" ":Wa,ct={bold:1,capitalize:1024,code:16,highlight:Eh,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},qae={directionless:1,unmergeable:2},O1={center:2,end:6,justify:4,left:1,right:3,start:5},Hae={[Pae]:"center",[zae]:"end",[Rae]:"justify",[Iae]:"left",[Fae]:"right",[Vae]:"start"},jae={normal:0,segmented:2,token:1},Wae={[$ae]:"normal",[Lae]:"segmented",[Oae]:"token"},L1="$config";function xh(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(V(a)&&xh(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let hc=!1,vu=0;function Zae(t){vu=t.timeStamp}function Vl(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&tl(t,n)!==void 0}function Kae(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&$u(e,a,r,s,!1)}function Gae(t,e,n){if(W(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return jn(e)&&n.isAttached()}function Yae(t,e,n,o){for(let r=t;r&&!Qle(r);r=us(r)){const s=tl(r,e);if(s!==void 0){const a=We(s,n);if(a)return Ce(a)||!ze(r)?void 0:[r,a]}else if(r===o)return[o,Tm(n)]}}function Sh(t,e,n){hc=!0;const o=performance.now()-vu>100;try{Mt(t,()=>{const r=te()||function(p){return p.getEditorState().read(()=>{const h=te();return h!==null?h.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let p=0;p<e.length;p++){const h=e[p],m=h.type,g=h.target,C=Yae(g,t,l,a);if(!C)continue;const[_,y]=C;if(m==="characterData")o&&Q(y)&&jn(g)&&Gae(r,g,y)&&Kae(g,y,t);else if(m==="childList"){u=!0;const v=h.addedNodes;for(let b=0;b<v.length;b++){const x=v[b],S=xm(x),A=x.parentNode;if(A!=null&&x!==c&&S===null&&!Vl(x,A,t)){if(Wo){const T=(ze(x)?x.innerText:null)||x.nodeValue;T&&(d+=T)}A.removeChild(x)}}const w=h.removedNodes,k=w.length;if(k>0){let b=0;for(let x=0;x<k;x++){const S=w[x];(Vl(S,g,t)||c===S)&&(g.appendChild(S),b++)}k!==b&&s.set(_,y)}}}if(s.size>0)for(const[p,h]of s)h.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const h=f[p],m=h.addedNodes,g=h.target;for(let C=0;C<m.length;C++){const _=m[C],y=_.parentNode;y==null||_.nodeName!=="BR"||Vl(_,g,t)||y.removeChild(_)}}n.takeRecords()}r!==null&&(u&&nt(r),Wo&&Mm(t)&&r.insertRawText(d))})}finally{hc=!1}}function Th(t){const e=t._observer;e!==null&&Sh(t,e.takeRecords(),e)}function Ah(t){(function(e){vu===0&&Wt(e).addEventListener("textInput",Zae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Sh(t,e,n)})}let Jae=class{constructor(e,n){q(this,"key");q(this,"parse");q(this,"unparse");q(this,"isEqual");q(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||tle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function Xae(t,e){return new Jae(t,e)}function Nh(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function zl(t,e,n){let o;if(Ge(),typeof n=="function"){const s=t.getLatest(),a=Nh(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Mh(r).updateFromKnown(e,o),r}function Qae(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:r}=rl(o);if(r&&r.stateConfigs)for(const s of r.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let ele=class Dh{constructor(e,n,o=void 0,r=new Map,s=void 0){q(this,"node");q(this,"knownState");q(this,"unknownState");q(this,"sharedNodeState");q(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let f=d.size;if(u)for(const p in u){const h=c.get(p);h&&d.has(h)||f++}return f}(a,o,r);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return I1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new Dh(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=I1(s)),this.size++),r.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Mh(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ele(e,Bh(e));return e.__state=n,n}function Bh(t){return t.__state?t.__state.sharedNodeState:bm(ol(),t.getType()).sharedNodeState}function I1(t){if(t)for(const e in t)return t}function tle(t){return t}function P1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function F1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function R1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function V1(t,e){const n=t.__mode,o=t.__format,r=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(r===null||r===l)&&(t.__state===null||c===u||function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&P1(p,d,f)||f&&P1(p,f,d)||d&&F1(p,d,f)||f&&F1(p,f,d))}(c,u))}function z1(t,e){const n=t.mergeWithSibling(e),o=Oe()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function U1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(V1(e,o)){o=z1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(V1(o,n)){o=z1(o,n);break}break}n.remove()}}else o.remove()}function oa(t){return q1(t.anchor),q1(t.focus),t}function q1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),Q(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!V(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Zo,st,Ui,Za,mc,gc,Ko,en,vc,qi,He="",fn=null,pn="",$n="",yr=!1,ra=!1;function ia(t,e){const n=Ko.get(t);if(e!==null){const o=bc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||st._keyToDOMMap.delete(t),V(n)){const o=aa(n,Ko);yc(o,0,o.length-1,null)}n!==void 0&&Ou(qi,Ui,Za,n,"destroyed")}function yc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&ia(s,o)}}function To(t,e){t.setProperty("text-align",e)}const nle="40px";function $h(t,e){const n=Zo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||nle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Oh(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function _c(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Re(o))return null;const s=o.getParentOrThrow();return Re(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function sa(t,e){const n=en.get(t);n===void 0&&Z(60);const o=n.createDOM(Zo,st);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,st),Q(n)?o.setAttribute("data-lexical-text","true"):Ce(n)&&o.setAttribute("data-lexical-decorator","true"),V(n)){const r=n.__indent,s=n.__size;if(_c(o,n),r!==0&&$h(o,r),s!==0){const l=s-1;Cc(aa(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Oh(o,a),n.isInline()||Lh(null,n,o),nl(n)&&(He+=po,$n+=po)}else{const r=n.getTextContent();if(Ce(n)){const s=n.decorate(st,Zo);s!==null&&Ih(t,s),o.contentEditable="false"}He+=r,$n+=r}return e!==null&&e.insertChild(o),Ou(qi,Ui,Za,n,"created"),o}function Cc(t,e,n,o,r){const s=He;He="";let a=n;for(;a<=o;++a){sa(t[a],r);const l=en.get(t[a]);l!==null&&Q(l)&&(fn===null&&(fn=l.getFormat()),pn===""&&(pn=l.getStyle()))}nl(e)&&(He+=po),r.element.__lexicalTextContent=He,He=s+He}function H1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return so(o)?"line-break":Ce(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Lh(t,e,n){const o=H1(t,Ko),r=H1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ole(t,e,n){var o;fn=null,pn="",function(r,s,a){const l=He,c=r.__size,u=s.__size;He="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const m=bc(f),g=sa(p,null);try{d.replaceChild(g,m)}catch(C){if(typeof C=="object"&&C!=null){const _=`${C.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(_)}throw C}ia(f,null)}const h=en.get(p);Q(h)&&(fn===null&&(fn=h.getFormat()),pn===""&&(pn=h.getStyle()))}else{const f=aa(r,Ko),p=aa(s,en);if(f.length!==c&&Z(227),p.length!==u&&Z(228),c===0)u!==0&&Cc(p,s,0,u-1,a);else if(u===0){if(c!==0){const h=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;yc(f,0,c-1,h?null:d),h&&(d.textContent="")}}else(function(h,m,g,C,_,y){const v=C-1,w=_-1;let k,b,x=y.getFirstChild(),S=0,A=0;for(;S<=v&&A<=w;){const $=m[S],M=g[A];if($===M)x=Ul(bi(M,y.element)),S++,A++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const P=b.has($),R=k.has(M);if(P)if(R){const K=Yo(st,M);K===x?x=Ul(bi(M,y.element)):(y.withBefore(x).insertChild(K),bi(M,y.element)),S++,A++}else sa(M,y.withBefore(x)),A++;else x=Ul(bc($)),ia($,y.element),S++}const B=en.get(M);B!==null&&Q(B)&&(fn===null&&(fn=B.getFormat()),pn===""&&(pn=B.getStyle()))}const T=S>v,I=A>w;if(T&&!I){const $=g[w+1],M=$===void 0?null:st.getElementByKey($);Cc(g,h,A,w,y.withBefore(M))}else I&&!T&&yc(m,S,v,y.element)})(s,f,p,c,u,a)}nl(s)&&(He+=po),d.__lexicalTextContent=He,He=l+He}(t,e,e.getDOMSlot(n)),o=e,fn==null||fn===o.__textFormat||ra||o.setTextFormat(fn),function(r){pn===""||pn===r.__textStyle||ra||r.setTextStyle(pn)}(e)}function aa(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&Z(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Ko.get(t);let o=en.get(t);n!==void 0&&o!==void 0||Z(61);const r=yr||gc.has(t)||mc.has(t),s=Yo(st,t);if(n===o&&!r){if(V(n)){const a=s.__lexicalTextContent;a!==void 0&&(He+=a,$n+=a)}else{const a=n.getTextContent();$n+=a,He+=a}return s}if(n!==o&&r&&Ou(qi,Ui,Za,o,"updated"),o.updateDOM(n,s,Zo)){const a=sa(t,null);return e===null&&Z(62),e.replaceChild(a,s),ia(t,null),a}if(V(n)&&V(o)){const a=o.__indent;(yr||a!==n.__indent)&&$h(s,a);const l=o.__format;if((yr||l!==n.__format)&&Oh(s,l),r&&(ole(n,o,s),Re(o)||o.isInline()||Lh(n,o,s)),nl(o)&&(He+=po,$n+=po),(yr||o.__dir!==n.__dir)&&(_c(s,o),Re(o)&&!yr))for(const c of o.getChildren())V(c)&&_c(Yo(st,c.getKey()),c)}else{const a=o.getTextContent();if(Ce(o)){const l=o.decorate(st,Zo);l!==null&&Ih(t,l)}He+=a,$n+=a}if(!ra&&Re(o)&&o.__cachedText!==$n){const a=o.getWritable();a.__cachedText=$n,o=a}return s}function Ih(t,e){let n=st._pendingDecorators;const o=st._decorators;if(n===null){if(o[t]===e)return;n=Sm(st)}n[t]=e}function Ul(t){let e=t.nextSibling;return e!==null&&e===st._blockCursorElement&&(e=e.nextSibling),e}function rle(t,e,n,o,r,s){He="",$n="",yr=o===2,st=n,Zo=n._config,Ui=n._nodes,Za=st._listeners.mutation,mc=r,gc=s,Ko=t._nodeMap,en=e._nodeMap,ra=e._readOnly,vc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),st=void 0,Ui=void 0,mc=void 0,gc=void 0,Ko=void 0,en=void 0,Zo=void 0,vc=void 0,qi=void 0,a}function bc(t){const e=vc.get(t);return e===void 0&&Z(75,t),e}function le(t){return{type:t}}const Ph=le("SELECTION_CHANGE_COMMAND"),ile=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fh=le("CLICK_COMMAND"),Ro=le("DELETE_CHARACTER_COMMAND"),wr=le("INSERT_LINE_BREAK_COMMAND"),Hi=le("INSERT_PARAGRAPH_COMMAND"),Er=le("CONTROLLED_TEXT_INSERTION_COMMAND"),yu=le("PASTE_COMMAND"),kc=le("REMOVE_TEXT_COMMAND"),ji=le("DELETE_WORD_COMMAND"),Wi=le("DELETE_LINE_COMMAND"),Vt=le("FORMAT_TEXT_COMMAND"),_u=le("UNDO_COMMAND"),Cu=le("REDO_COMMAND"),sle=le("KEYDOWN_COMMAND"),Rh=le("KEY_ARROW_RIGHT_COMMAND"),ale=le("MOVE_TO_END"),Vh=le("KEY_ARROW_LEFT_COMMAND"),lle=le("MOVE_TO_START"),zh=le("KEY_ARROW_UP_COMMAND"),Uh=le("KEY_ARROW_DOWN_COMMAND"),la=le("KEY_ENTER_COMMAND"),qh=le("KEY_SPACE_COMMAND"),Hh=le("KEY_BACKSPACE_COMMAND"),jh=le("KEY_ESCAPE_COMMAND"),Wh=le("KEY_DELETE_COMMAND"),Zh=le("KEY_TAB_COMMAND"),cle=le("INSERT_TAB_COMMAND"),ule=le("INDENT_CONTENT_COMMAND"),j1=le("OUTDENT_CONTENT_COMMAND"),Kh=le("DROP_COMMAND"),dle=le("FORMAT_ELEMENT_COMMAND"),Gh=le("DRAGSTART_COMMAND"),Yh=le("DRAGOVER_COMMAND"),fle=le("DRAGEND_COMMAND"),Ka=le("COPY_COMMAND"),bu=le("CUT_COMMAND"),wc=le("SELECT_ALL_COMMAND"),ple=le("CLEAR_EDITOR_COMMAND"),hle=le("CLEAR_HISTORY_COMMAND"),Ms=le("CAN_REDO_COMMAND"),Bs=le("CAN_UNDO_COMMAND"),mle=le("FOCUS_COMMAND"),gle=le("BLUR_COMMAND"),vle=le("KEY_MODIFIER_COMMAND"),Nn=Object.freeze({}),Ec=[["keydown",function(t,e){if(Si=t.timeStamp,Jh=t.key,!e.isComposing()&&!re(e,sle,t)&&t.key!=null){if(ql&&bf(t))return Mt(e,()=>{$s(e,Hl)}),ql=!1,void(Hl="");if(function(n){return Ee(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Rh,t);else if(function(n){return Ee(n,"ArrowRight",Mn)}(t))re(e,ale,t);else if(function(n){return Ee(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,Vh,t);else if(function(n){return Ee(n,"ArrowLeft",Mn)}(t))re(e,lle,t);else if(function(n){return Ee(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,zh,t);else if(function(n){return Ee(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,Uh,t);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,re(e,la,t);else if(function(n){return n.key===" "}(t))re(e,qh,t);else if(function(n){return Xt&&Ee(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,re(e,wr,!0);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,re(e,la,t);else if(function(n){return Ee(n,"Backspace",{shiftKey:"any"})||Xt&&Ee(n,"h",{ctrlKey:!0})}(t))bf(t)?re(e,Hh,t):(t.preventDefault(),re(e,Ro,!0));else if(function(n){return n.key==="Escape"}(t))re(e,jh,t);else if(function(n){return Ee(n,"Delete",{})||Xt&&Ee(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Wh,t):(t.preventDefault(),re(e,Ro,!1));else if(function(n){return Ee(n,"Backspace",Cf)}(t))t.preventDefault(),re(e,ji,!0);else if(function(n){return Ee(n,"Delete",Cf)}(t))t.preventDefault(),re(e,ji,!1);else if(function(n){return Xt&&Ee(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Wi,!0);else if(function(n){return Xt&&(Ee(n,"Delete",{metaKey:!0})||Ee(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Wi,!1);else if(function(n){return Ee(n,"b",Mn)}(t))t.preventDefault(),re(e,Vt,"bold");else if(function(n){return Ee(n,"u",Mn)}(t))t.preventDefault(),re(e,Vt,"underline");else if(function(n){return Ee(n,"i",Mn)}(t))t.preventDefault(),re(e,Vt,"italic");else if(function(n){return Ee(n,"Tab",{shiftKey:"any"})}(t))re(e,Zh,t);else if(function(n){return Ee(n,"z",Mn)}(t))t.preventDefault(),re(e,_u,void 0);else if(function(n){return Xt?Ee(n,"z",{metaKey:!0,shiftKey:!0}):Ee(n,"y",{ctrlKey:!0})||Ee(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,Cu,void 0);else{const n=e._editorState._selection;n===null||W(n)?kf(t)&&(t.preventDefault(),re(e,wc,t)):function(o){return Ee(o,"c",Mn)}(t)?(t.preventDefault(),re(e,Ka,t)):function(o){return Ee(o,"x",Mn)}(t)?(t.preventDefault(),re(e,bu,t)):kf(t)&&(t.preventDefault(),re(e,wc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,vle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Mt(e,()=>{vf(n)||(Tc=!0)})}],["compositionstart",function(t,e){Mt(e,()=>{const n=te();if(W(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();Xe(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||Q(r)&&r.getStyle()!==n.style)&&re(e,Er,Uae)}})}],["compositionend",function(t,e){Wo?mi=!0:Lr||!Vi&&!zi?Mt(e,()=>{$s(e,t.data)}):(ql=!0,Hl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(ze(t.target)&&vf(t.target))return;const n=te(),o=t.data,r=nm(t);if(o!=null&&W(n)&&em(n,r,o,t.timeStamp,!1)){mi&&($s(e,o),mi=!1);const s=n.anchor.getNode(),a=on(Wt(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;na&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Dm(a.anchorNode)||re(e,Er,o);const d=o.length;Wo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Vi||Lr||zi||!e.isComposing()||(Si=0,Xe(null))}else Bu(!1,e,o!==null?o:void 0),mi&&($s(e,o||void 0),mi=!1);(function(){Ge();const s=Oe();Th(s)})()},{event:t}),_r=null}],["click",function(t,e){Mt(e,()=>{const n=te(),o=on(Wt(e)),r=jr();if(o){if(W(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Re(a)&&Le().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>V(c)&&!c.isInline());V(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(ze(s)||jn(s))&&nt(wu(r,o,e,t))}}re(e,Fh,t)})}],["cut",Nn],["copy",Nn],["dragstart",Nn],["dragover",Nn],["dragend",Nn],["paste",Nn],["focus",Nn],["blur",Nn],["drop",Nn]];na&&Ec.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=nm(n);r==="deleteCompositionText"||Wo&&Mm(o)||r!=="insertCompositionText"&&Mt(o,()=>{const a=te();if(r==="deleteContentBackward"){if(a===null){const h=jr();if(!W(h))return;nt(h.clone())}if(W(a)){const h=a.anchor.key===a.focus.key;if(l=n.timeStamp,Jh==="MediaLast"&&l<Si+30&&o.isComposing()&&h){if(Xe(null),Si=0,setTimeout(()=>{Mt(o,()=>{Xe(null)})},30),W(a)){const m=a.anchor.getNode();m.markDirty(),Q(m)||Z(142),tm(a,m)}}else{Xe(null),n.preventDefault();const m=a.anchor.getNode(),g=m.getTextContent(),C=m.canInsertTextAfter(),_=a.anchor.offset===0&&a.focus.offset===g.length;let y=$1&&h&&!_&&C;if(y&&a.isCollapsed()&&(y=!Ce(Bc(a.anchor,!0))),!y){re(o,Ro,!0);const v=te();$1&&W(v)&&v.isCollapsed()&&($o=v,setTimeout(()=>$o=null))}}return}}var l;if(!W(a))return;const c=n.data;_r!==null&&Bu(!1,o,_r),a.dirty&&_r===null||!a.isCollapsed()||Re(a.anchor.getNode())||s===null||a.applyDOMRange(s),_r=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":re(o,Er,n);break;case"insertFromComposition":Xe(null),re(o,Er,n);break;case"insertLineBreak":Xe(null),re(o,wr,!1);break;case"insertParagraph":Xe(null),Ti&&!Lr?(Ti=!1,re(o,wr,!1)):re(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,yu,n);break;case"deleteByComposition":(function(h,m){return h!==m||V(h)||V(m)||!Vo(h)||!Vo(m)})(f,p)&&re(o,kc,n);break;case"deleteByDrag":case"deleteByCut":re(o,kc,n);break;case"deleteContent":re(o,Ro,!1);break;case"deleteWordBackward":re(o,ji,!0);break;case"deleteWordForward":re(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Wi,!1);break;case"formatStrikeThrough":re(o,Vt,"strikethrough");break;case"formatBold":re(o,Vt,"bold");break;case"formatItalic":re(o,Vt,"italic");break;case"formatUnderline":re(o,Vt,"underline");break;case"historyUndo":re(o,_u,void 0);break;case"historyRedo":re(o,Cu,void 0)}else{if(c===`
22
+ `)n.preventDefault(),re(o,wr,!1);else if(c===po)n.preventDefault(),re(o,Hi,void 0);else if(c==null&&n.dataTransfer){const h=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(h)}else c!=null&&em(a,s,c,n.timeStamp,!0)?(n.preventDefault(),re(o,Er,c)):_r=c;Xh=n.timeStamp}})}(t,e)]);let Si=0,Jh=null,Xh=0,_r=null;const xc=new WeakMap,ca=new WeakMap;let Sc=!1,Tc=!1,Ti=!1,mi=!1,ql=!1,Hl="",$o=null,Qh=[0,"",0,"root",0];function em(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=Oe(),u=on(Wt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),h=n.length;return f!==a.key||!Q(l)||(!r&&(!na||Xh<o+50)||l.isDirty()&&h<2||Am(n))&&s.offset!==a.offset&&!l.isComposing()||Bn(l)||l.isDirty()&&h>1||(r||!na)&&p!==null&&!l.isComposing()&&d!==Ir(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(m,g){if(g.isSegmented())return!0;if(!m.isCollapsed())return!1;const C=m.anchor.offset,_=g.getParentOrThrow(),y=Vo(g);return C===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||y||function(v){const w=v.getPreviousSibling();return(Q(w)||V(w)&&w.isInline())&&!w.canInsertTextAfter()}(g):C===g.getTextContentSize()&&(!g.canInsertTextAfter()||!_.canInsertTextAfter()&&!g.isComposing()||y)}(t,l)}function W1(t,e){return jn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Z1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Sc&&(Sc=!1,W1(o,r)&&W1(s,a)&&!$o)||Mt(e,()=>{if(!n)return void nt(null);if(!cs(e,o,s))return;let l=te();if($o&&W(l)&&l.isCollapsed()){const c=l.anchor,u=$o.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=$o.clone(),nt(l))}if($o=null,W(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=Wt(e).event,f=d?d.timeStamp:performance.now(),[p,h,m,g,C]=Qh,_=Le(),y=e.isComposing()===!1&&_.getTextContent()==="";if(f<C+200&&c.offset===m&&c.key===g)qs(l,p,h);else if(c.type==="text")Q(u)||Z(141),tm(l,u);else if(c.type==="element"&&!y){V(u)||Z(259);const v=c.getNode();v.isEmpty()?function(w,k){const b=k.getTextFormat(),x=k.getTextStyle();qs(w,b,x)}(l,v):qs(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),h=p.length,m=l.isBackward(),g=m?a:r,C=m?r:a,_=m?f:d,y=m?d:f;let v=2047,w=!1;for(let k=0;k<h;k++){const b=p[k],x=b.getTextContentSize();if(Q(b)&&x!==0&&!(k===0&&b.__key===_&&g===x||k===h-1&&b.__key===y&&C===0)&&(w=!0,v&=b.getFormat(),v===0))break}l.format=w?v:0}}re(e,Ph,void 0)})}function qs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function tm(t,e){qs(t,e.getFormat(),e.getStyle())}function nm(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function $s(t,e){const n=t._compositionKey;if(Xe(null),n!==null&&e!=null){if(e===""){const o=We(n),r=Ir(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&Q(o)&&$u(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
+ `){const o=te();if(W(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,la,null)}}}Bu(!0,t,e)}function om(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function rm(t){const e=Yle(t.target);if(e===null)return;const n=km(e.anchorNode);if(n===null)return;Tc&&(Tc=!1,Mt(n,()=>{const c=jr(),u=e.anchorNode;(ze(u)||jn(u))&&nt(wu(c,e,n,t))}));const o=Mu(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&Z1(e,l,!1),Z1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function K1(t){t._lexicalHandled=!0}function G1(t){return t._lexicalHandled===!0}const Y1=()=>{};function yle(t){const e=xc.get(t);if(e===void 0)return void Y1();const n=ca.get(e);if(n===void 0)return void Y1();const o=n-1;o>=0||Z(164),xc.delete(t),ca.set(e,o),o===0&&e.removeEventListener("selectionchange",rm);const r=el(t);Du(r)?(function(a){if(a._parentEditor!==null){const l=Mu(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&Z(198);const s=om(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Ac(t,e,n){Ge();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=te();if(!W(c)||!V(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return $c(f,l)&&u.set(l.__key,0,"element"),$c(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(W(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(pa(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(pa(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Nt(s)&&e&&t.isSelected()&&t.selectPrevious();if(W(s)&&e&&!a){const l=t.getIndexWithinParent();zo(t),fa(s,r,l,-1)}else zo(t);n||ut(r)||r.canBeEmpty()||!r.isEmpty()||Ac(r,e),e&&s&&Re(r)&&r.isEmpty()&&r.selectEnd()}const im=Symbol.for("ephemeral");function ua(t){return t[im]||!1}class tn{constructor(e){q(this,"__type");q(this,"__key");q(this,"__parent");q(this,"__prev");q(this,"__next");q(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),qle(this,e)}static getType(){const{ownNodeType:e}=rl(this);return e===void 0&&Z(64,this.name),e}static clone(e){Z(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){Z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=We(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(Q(this))return o;if(W(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(Ce(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:We(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Z(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ut(n))return V(e)||e===this&&Ce(e)||Z(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Z(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:We(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:We(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=V(this)?this:this.getParent(),o=V(e)?e:e.getParent(),r=n&&o?js(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=js(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Pm(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Z(279),!1)))}isParentOf(e){const n=js(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let s=this;for(;s!==null;){const a=s.__key;if(r.has(a)||(r.add(a),o.push(s)),s===e)break;const l=V(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&Z(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Oe()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ua(this))return this;const e=We(this.__key);return e===null&&Z(113),e}getWritable(){if(ua(this))return this;Ge();const e=_o(),n=Oe(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(r))return ma(s),s;const c=Om(s);return a.add(r),ma(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Z(70)}updateDOM(e,n,o){Z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Z(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Bh(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Mh(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Ac(this,!0,e)}replace(e,n){Ge();let o=te();o!==null&&(o=o.clone()),Yl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;zo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,h=r.__next,m=r.__parent;if(Ac(r,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=p,f===null?c.__last=a:f.getWritable().__prev=a,l.__next=h,l.__parent=m,c.__size=u,n&&(V(this)&&V(l)||Z(139),this.getChildren().forEach(g=>{l.append(g)})),W(o)){nt(o);const g=o.anchor,C=o.focus;g.key===s&&ef(g,l),C.key===s&&ef(C,l)}return oo()===s&&Xe(a),l}insertAfter(e,n=!0){Ge(),Yl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=te();let l=!1,c=!1;if(s!==null){const h=e.getIndexWithinParent();if(zo(r),W(a)){const m=s.__key,g=a.anchor,C=a.focus;l=g.type==="element"&&g.key===m&&g.offset===h+1,c=C.type==="element"&&C.key===m&&C.offset===h+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=r.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,r.__next=p,r.__prev=o.__key,r.__parent=o.__parent,n&&W(a)){const h=this.getIndexWithinParent();fa(a,d,h+1);const m=d.__key;l&&a.anchor.set(m,h+2,"element"),c&&a.focus.set(m,h+2,"element")}return e}insertBefore(e,n=!0){Ge(),Yl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;zo(r);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=te();return n&&W(d)&&fa(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return De()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Ge();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(V(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){Ge();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(V(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}q(tn,"importDOM");const da="historic",_le="history-push",Ai="history-merge",Cle="paste",sm="collaboration",ble="skip-scroll-into-view",kle="skip-dom-selection",wle="skip-selection-focus";class os extends tn{static getType(){return"linebreak"}static clone(e){return new os(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&ga(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ga(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}return!1}(e)?null:{conversion:Ele,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Ele(t){return{node:nn()}}function nn(){return ln(new os)}function so(t){return t instanceof os}function Os(t){return jn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function jl(t,e){return 16&e?"code":e&Eh?"mark":32&e?"sub":64&e?"sup":null}function Wl(t,e){return 1&e?"strong":2&e?"em":"span"}function am(t,e,n,o,r){const s=o.classList;let a=Sr(r,"base");a!==void 0&&s.add(...a),a=Sr(r,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in ct){const d=ct[u];if(a=Sr(r,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function lm(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Wa:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Wo){const[l,c,u]=function(d,f){const p=d.length,h=f.length;let m=0,g=0;for(;m<p&&m<h&&d[m]===f[m];)m++;for(;g+m<p&&g+m<h&&d[p-g-1]===f[h-g-1];)g++;return[m,p-m-g,f.slice(m,h-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function J1(t,e,n,o,r,s){lm(r,t,e);const a=s.theme.text;a!==void 0&&am(0,0,o,t,a)}function Ls(t,e){const n=document.createElement(e);return n.appendChild(t),n}class yo extends tn{constructor(n="",o){super(o);q(this,"__text");q(this,"__format");q(this,"__style");q(this,"__mode");q(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new yo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return Wae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===oo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=ct[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ha(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=jl(0,r),a=Wl(0,r),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),J1(u,this,0,r,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,r){const s=this.__text,a=n.__format,l=this.__format,c=jl(0,a),u=jl(0,l),d=Wl(0,a),f=Wl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const C=o.firstChild;C==null&&Z(48);const _=document.createElement(f);return J1(_,this,0,l,s,r),o.replaceChild(_,C),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&Z(49)),lm(s,p,this);const h=r.theme.text;h!==void 0&&a!==l&&am(0,a,l,p,h);const m=n.__style,g=this.__style;return m!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Ale,priority:0}),b:()=>({conversion:Sle,priority:0}),code:()=>({conversion:Dn,priority:0}),em:()=>({conversion:Dn,priority:0}),i:()=>({conversion:Dn,priority:0}),mark:()=>({conversion:Dn,priority:0}),s:()=>({conversion:Dn,priority:0}),span:()=>({conversion:xle,priority:0}),strong:()=>({conversion:Dn,priority:0}),sub:()=>({conversion:Dn,priority:0}),sup:()=>({conversion:Dn,priority:0}),u:()=>({conversion:Dn,priority:0})}}static importJSON(n){return Ie().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return ze(o)||Z(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Ls(o,"b")),this.hasFormat("italic")&&(o=Ls(o,"i")),this.hasFormat("strikethrough")&&(o=Ls(o,"s")),this.hasFormat("underline")&&(o=Ls(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?ct[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?qae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ha(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=jae[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Ge();let r=n,s=o;const a=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;r===void 0&&(r=u),s===void 0&&(s=u)}else r=0,s=0;if(!W(a))return dm(c,r,c,s,"text","text");{const u=oo();u!==a.anchor.key&&u!==a.focus.key||Xe(c),a.setTextNodeRange(this,r,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,s){const a=this.getWritable(),l=a.__text,c=r.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=te();if(s&&W(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+r+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Ge();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=oo(),l=r.length;n.sort((A,T)=>A-T),n.push(l);const c=[],u=n.length;for(let A=0,T=0;A<l&&T<=u;T++){const I=n[T];I>A&&(c.push(r.slice(A,I)),A=I)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let h;const m=o.getFormat(),g=o.getStyle(),C=o.__detail;let _=!1,y=null,v=null;const w=te();if(W(w)){const[A,T]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];A.type==="text"&&A.key===s&&(y=A),T.type==="text"&&T.key===s&&(v=T)}o.isSegmented()?(h=Ie(f),h.__format=m,h.__style=g,h.__detail=C,h.__state=R1(o,h),_=!0):h=o.setTextContent(f);const k=[h];for(let A=1;A<d;A++){const T=Ie(c[A]);T.__format=m,T.__style=g,T.__detail=C,T.__state=R1(o,T);const I=T.__key;a===s&&Xe(I),k.push(T)}const b=y?y.offset:null,x=v?v.offset:null;let S=0;for(const A of k){if(!y&&!v)break;const T=S+A.getTextContentSize();if(y!==null&&b!==null&&b<=T&&b>=S&&(y.set(A.getKey(),b-S,"text"),b<T&&(y=null)),v!==null&&x!==null&&x<=T&&x>=S){v.set(A.getKey(),x-S,"text");break}S=T}if(p!==null){(function(I){const $=I.getPreviousSibling(),M=I.getNextSibling();$!==null&&ma($),M!==null&&ma(M)})(this);const A=p.getWritable(),T=this.getIndexWithinParent();_?(A.splice(T,0,k),this.remove()):A.splice(T,1,k),W(w)&&fa(w,p,T,d-1)}return k}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||Z(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;oo()===s&&Xe(r);const c=te();if(W(c)){const p=c.anchor,h=c.focus;p!==null&&p.key===s&&lf(p,o,r,n,l),h!==null&&h.key===s&&lf(h,o,r,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function xle(t){return{forChild:ku(t.style),node:null}}function Sle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:ku(e.style,n?void 0:"bold"),node:null}}const X1=new WeakMap;function Tle(t){if(!ze(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Ale(t){const e=t;t.parentElement===null&&Z(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=X1.get(s))===void 0&&!Tle(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)X1.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
25
25
  `||l===`\r
26
- `?r.push(nn()):l===" "?r.push(Hr()):l!==""&&r.push(Ie(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=Q1(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=Q1(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ie(n)}}function Q1(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,ze(n)){const s=n.style.display;if(s===""&&!Ic(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(jn(n))return n;if(n.nodeName==="BR")return null}}const Nle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Dn(t){const e=Nle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:ku(t.style,e),node:null}}function Ie(t=""){return ln(new yo(t))}function Q(t){return t instanceof yo}function ku(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(r&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class rs extends yo{static getType(){return"tab"}static clone(e){return new rs(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Sr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Hr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&bh(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||Z(286),this}setDetail(e){return e!==2&&Z(127),this}setMode(e){return e!=="normal"&&Z(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return ln(new rs)}function Ga(t){return t instanceof rs}class Dle{constructor(e,n,o){q(this,"key");q(this,"offset");q(this,"type");q(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Im(zt(Vn(this,"next")),zt(Vn(e,"next")))<0}getNode(){const e=We(this.key);return e===null&&Z(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,is()||(oo()===a&&Xe(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function kn(t,e,n){return new Dle(t,e,n)}function Zl(t,e){let n=e.__key,o=t.offset,r="element";if(Q(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function ef(t,e){if(R(e)){const n=e.getLastDescendant();R(n)||Q(n)?Zl(t,n):Zl(t,e)}else Zl(t,e)}class Ya{constructor(e){q(this,"_nodes");q(this,"_cachedNodes");q(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Nt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Ya(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(Q(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const s=We(r);s!==null&&o.push(s)}return is()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||jr())===this&&e[0]){const n=et(e[0],"next");cce(ho(n,n))}for(const n of e)n.remove()}}function W(t){return t instanceof nr}class nr{constructor(e,n,o,r){q(this,"format");q(this,"style");q(this,"anchor");q(this,"focus");q(this,"_cachedNodes");q(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!W(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const r=[],[s,a]=o.getTextSlices();s&&r.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(yn(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;R(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Fr(o.focus)&&R(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=rn(o.focus.origin,"previous");yn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Ru(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!R(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=zt(o.anchor),d=zt(o.anchor.getFlipped()),f=h=>ao(h)?h.origin:h.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Rm(Af(this),"next"));return is()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,s=this.focus,a=r.isBefore(s),[l,c]=Nc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(R(p)&&!p.isInline())d||(u+=`
26
+ `?r.push(nn()):l===" "?r.push(Hr()):l!==""&&r.push(Ie(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=Q1(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=Q1(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ie(n)}}function Q1(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,ze(n)){const s=n.style.display;if(s===""&&!Ic(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(jn(n))return n;if(n.nodeName==="BR")return null}}const Nle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Dn(t){const e=Nle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:ku(t.style,e),node:null}}function Ie(t=""){return ln(new yo(t))}function Q(t){return t instanceof yo}function ku(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(r&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class rs extends yo{static getType(){return"tab"}static clone(e){return new rs(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Sr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Hr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&bh(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||Z(286),this}setDetail(e){return e!==2&&Z(127),this}setMode(e){return e!=="normal"&&Z(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return ln(new rs)}function Ga(t){return t instanceof rs}class Dle{constructor(e,n,o){q(this,"key");q(this,"offset");q(this,"type");q(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Im(zt(Vn(this,"next")),zt(Vn(e,"next")))<0}getNode(){const e=We(this.key);return e===null&&Z(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,is()||(oo()===a&&Xe(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function kn(t,e,n){return new Dle(t,e,n)}function Zl(t,e){let n=e.__key,o=t.offset,r="element";if(Q(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!V(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function ef(t,e){if(V(e)){const n=e.getLastDescendant();V(n)||Q(n)?Zl(t,n):Zl(t,e)}else Zl(t,e)}class Ya{constructor(e){q(this,"_nodes");q(this,"_cachedNodes");q(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Nt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Ya(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(Q(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const s=We(r);s!==null&&o.push(s)}return is()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||jr())===this&&e[0]){const n=et(e[0],"next");cce(ho(n,n))}for(const n of e)n.remove()}}function W(t){return t instanceof nr}class nr{constructor(e,n,o,r){q(this,"format");q(this,"style");q(this,"anchor");q(this,"focus");q(this,"_cachedNodes");q(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!W(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const r=[],[s,a]=o.getTextSlices();s&&r.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(yn(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;V(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Fr(o.focus)&&V(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=rn(o.focus.origin,"previous");yn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Ru(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!V(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=zt(o.anchor),d=zt(o.anchor.getFlipped()),f=h=>ao(h)?h.origin:h.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Rm(Af(this),"next"));return is()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,s=this.focus,a=r.isBefore(s),[l,c]=Nc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(V(p)&&!p.isInline())d||(u+=`
27
27
  `),d=!p.isEmpty();else if(d=!1,Q(p)){let h=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.offset||(h=l<c?h.slice(l,c):h.slice(c,l)):h=a?h.slice(l):h.slice(c):p===o&&(h=a?h.slice(0,c):h.slice(0,l)),u+=h}else!Ce(p)&&!so(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=Oe(),o=n.getEditorState()._selection,r=um(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(r===null)return;const[s,a]=r;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),oa(this)}clone(){const e=this.anchor,n=this.focus;return new nr(kn(e.key,e.offset,e.type),kn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ha(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=ct[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let s=0;s<r;s++){const a=n[s];a===`
28
28
  `||a===`\r
29
- `?o.push(nn()):a===" "?o.push(Hr()):o.push(Ie(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(C,_,y,v){const w=C.getNode(),k=w.getChildAtIndex(C.offset),b=Ie();if(b.setFormat(y),b.setStyle(v),ls(k))k.splice(0,0,[b]);else{const E=Re(w)?De().append(b):b;k===null?w.append(E):k.insertBefore(E)}C.is(_)&&_.set(b.__key,0,"text"),C.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&er(l,zt(Vn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];Q(p)||Z(26);const h=p.getTextContent().length,m=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=h,l.set(a.key,u,"text")),this.isCollapsed()&&c===h&&(Bn(p)||!p.canInsertTextAfter()||!m.canInsertTextAfter()&&p.getNextSibling()===null)){let C=p.getNextSibling();if(Q(C)&&C.canInsertTextBefore()&&!Bn(C)||(C=Ie(),C.setFormat(r),C.setStyle(s),m.canInsertTextAfter()?p.insertAfter(C):m.insertAfter(C)),C.select(0,0),p=C,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Bn(p)||!p.canInsertTextBefore()||!m.canInsertTextBefore()&&p.getPreviousSibling()===null)){let C=p.getPreviousSibling();if(Q(C)&&!Bn(C)||(C=Ie(),C.setFormat(r),m.canInsertTextBefore()?p.insertBefore(C):m.insertBefore(C)),C.select(),p=C,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==h){const C=Ie(p.getTextContent());C.setFormat(r),p.replace(C),p=C}else if(!this.isCollapsed()&&e!==""){const C=g.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||R(C)&&(!C.canInsertTextBefore()||!C.canInsertTextAfter()))return this.insertText(""),cm(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Vo(p)){const v=Ie(e);return v.select(),void p.replace(v)}const C=p.getFormat(),_=p.getStyle();if(c!==u||C===r&&_===s){if(Ga(p)){const v=Ie(e);return v.setFormat(r),v.setStyle(s),v.select(),void p.replace(v)}}else{if(p.getTextContent()!==""){const v=Ie(e);if(v.setFormat(r),v.setStyle(s),v.select(),c===0)p.insertBefore(v,!1);else{const[w]=p.splitText(c);w.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const y=u-c;p=p.spliceText(c,y,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=C,this.style=_))}else{const C=new Set([...p.getParentKeys(),...g.getParentKeys()]),_=R(p)?p:p.getParentOrThrow();let y=R(g)?g:g.getParentOrThrow(),v=g;if(!_.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(Q(g)&&!Vo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const S=Ie(g.getTextContent());g.replace(S),g=S}Re(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),C.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else C.add(g.__key);const w=y.getChildren(),k=new Set(d),b=_.is(y),E=_.isInline()&&p.getNextSibling()===null?_:p;for(let S=w.length-1;S>=0;S--){const T=w[S];if(T.is(p)||R(T)&&T.isParentOf(p))break;T.isAttached()&&(!k.has(T)||T.is(v)?b||E.insertAfter(T,!1):T.remove())}if(!b){let S=y,T=null;for(;S!==null;){const A=S.getChildren(),z=A.length;(z===0||A[z-1].is(T))&&(C.delete(S.__key),T=S),S=S.getParent()}}if(Vo(p))if(c===h)p.select();else{const S=Ie(e);S.select(),p.replace(S)}else p=p.spliceText(c,h-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<f;S++){const T=d[S],A=T.__key;C.has(A)||T.remove()}}}removeText(){const e=te()===this;Ws(this,uce(Af(this))),e&&te()!==this&&at(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void Xe(null);const o=this.getNodes(),r=[];for(const w of o)Q(w)&&r.push(w);const s=w=>{o.forEach(k=>{if(R(k)){const b=k.getFormatFlags(e,w);k.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),Xe(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,f=u?l:c;let p=0,h=r[0],m=d.type==="element"?0:d.offset;if(d.type==="text"&&m===h.getTextContentSize()&&(p=1,h=r[1],m=0),h==null)return;const g=h.getFormatFlags(e,n);s(g);const C=a-1;let _=r[C];const y=f.type==="text"?f.offset:_.getTextContentSize();if(h.is(_)){if(m===y)return;if(Bn(h)||m===0&&y===h.getTextContentSize())h.setFormat(g);else{const w=h.splitText(m,y),k=m===0?w[0]:w[1];k.setFormat(g),d.type==="text"&&d.set(k.__key,0,"text"),f.type==="text"&&f.set(k.__key,y-m,"text")}return void(this.format=g)}m===0||Bn(h)||([,h]=h.splitText(m),m=0),h.setFormat(g);const v=_.getFormatFlags(e,g);y>0&&(y===_.getTextContentSize()||Bn(_)||([_]=_.splitText(y)),_.setFormat(v));for(let w=p+1;w<C;w++){const k=r[w],b=k.getFormatFlags(e,v);k.setFormat(b)}d.type==="text"&&d.set(h.__key,m,"text"),f.type==="text"&&f.set(_.__key,y,"text"),this.format=g|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=te();return W(m)||Z(134),m.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Rt),r=e[e.length-1];if(R(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const m=Kl(this);o.splice(m,0,e),r.selectEnd()}return}if(!e.some(m=>(R(m)||Ce(m))&&!m.isInline())){R(o)||Z(211,n.constructor.name,n.getType());const m=Kl(this);return o.splice(m,0,e),void r.selectEnd()}const s=function(m){const g=De();let C=null;for(let _=0;_<m.length;_++){const y=m[_],v=so(y);if(v||Ce(y)&&y.isInline()||R(y)&&y.isInline()||Q(y)||y.isParentRequired()){if(C===null&&(C=y.createParentElementNode(),g.append(C),v))continue;C!==null&&C.append(y)}else g.append(y),C=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!R(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;R(f=d)&&Rt(f)&&!f.isEmpty()&&R(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(R(o)||Z(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&Z(212,n.constructor.name,n.getType()),function(m,g){const C=g.getParentOrThrow().getLastChild();let _=g;const y=[g];for(;_!==C;)_.getNextSibling()||Z(140),_=_.getNextSibling(),y.push(_);let v=m;for(const w of y)v=v.insertAfter(w)}(o,d));const p=qt(a,Rt);c&&R(p)&&(c.canMergeWhenEmpty()||Rt(u))&&(p.append(...c.getChildren()),c.remove()),R(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const h=R(o)?o.getLastChild():null;so(h)&&p!==o&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=De();return Le().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Kl(this),n=qt(this.anchor.getNode(),Rt);R(n)||Z(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=Nc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const p=o.splitText(d,f),h=d===0?p[0]:p[1];return h?(c.set(h.getKey(),0,"text"),u.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(cf(this,e,n,o))return;const r=e==="move",s=Oe(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!R(u)||u.isInline()||u.canBeEmpty()||Oc(l,s,c),this.dirty){let d=Yo(s,this.anchor.key),f=Yo(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&pm(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,h){d.modify(f,p,h)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Re(f)?f:Kle(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const h=this.getNodes(),m=[];let g=!1;for(let C=0;C<h.length;C++){const _=h[C];$c(_,p)?m.push(_):g=!0}if(g&&m.length>0)if(n){const C=m[0];R(C)?C.selectStart():C.getParentOrThrow().selectStart()}else{const C=m[m.length-1];R(C)?C.selectEnd():C.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(C){const _=C.focus,y=C.anchor,v=y.key,w=y.offset,k=y.type;y.set(_.key,_.offset,_.type,!0),_.set(v,w,k,!0)}(this)}}o==="lineboundary"&&cf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&R(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(R(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=zu(Vn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(yn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(R(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Ws(this,ho(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Fr(c)){if(R(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Ce(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&R(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=fm();u.add(c.origin.getKey()),at(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ws(this,ho(!c.origin.isEmpty()&&u.isEmpty()?Uu(et(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&nf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void of(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void of(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),h=f.getNode();if(p===h&&d.type==="text"&&f.type==="text"){const m=d.offset,g=f.offset,C=m<g,_=C?m:g,y=C?g:m,v=y-1;_!==v&&function(w){return!(Am(w)||Mle(w))}(p.getTextContent().slice(_,y))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Re(o.getParent())&&o.getPreviousSibling()===null&&nf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Nt(t){return t instanceof Ya}function tf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Nc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[tf(n),tf(o)]}function nf(t,e){for(let n=e;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(t))return!0;if(ut(n))break}if(n.getPreviousSibling())break}return!1}const Mle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function of(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function rf(t,e,n,o){let r,s=e;if(ze(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(r=Cr(d),Q(r))s=lo(r,a?"next":"previous");else{let p=Cr(t);if(p===null)return null;if(R(p)){const h=o.getElementByKey(p.getKey());h===null&&Z(214),[p,s]=p.getDOMSlot(h).resolveChildIndex(p,h,t,e),R(p)||Z(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(R(g)&&function(C,_,y){const v=C.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(g,0,n)){const C=a?g.getLastDescendant():g.getFirstDescendant();C===null?p=g:(g=C,p=R(g)?g:g.getParentOrThrow()),s=0}Q(g)?(r=g,p=null,s=lo(g,a?"next":"previous")):g!==p&&a&&!f&&(R(p)||Z(216),s=Math.min(p.getChildrenSize(),s+1))}else{const h=p.getIndexWithinParent();s=e===0&&Ce(p)&&Cr(t)===p?h:h+1,p=p.getParentOrThrow()}if(R(p))return kn(p.__key,s,"element")}}else r=Cr(t);return Q(r)?kn(r.__key,lo(r,s,"clamp"),"text"):null}function sf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&R(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&R(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&R(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function cm(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);sf(t,o,r),sf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Oe();if(s.isComposing()&&s._compositionKey!==t.key&&W(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function um(t,e,n,o,r,s){if(t===null||n===null||!cs(r,t,n))return null;const a=rf(t,e,W(s)?s.anchor:null,r);if(a===null)return null;const l=rf(n,o,W(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Cr(t),u=Cr(n);if(Ce(c)&&Ce(u))return null}return cm(a,l,s),[a,l]}function Dc(t){return R(t)&&!t.isInline()}function dm(t,e,n,o,r,s){const a=_o(),l=new nr(kn(t,e,r),kn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Ja(){const t=kn("root",0,"element"),e=kn("root",0,"element");return new nr(t,e,0,"")}function fm(){return new Ya(new Set)}function wu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!hc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(W(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&W(t)&&!cs(n,u,d))return t.clone();const h=um(u,f,d,p,n,t);if(h===null)return null;const[m,g]=h;return new nr(m,g,W(t)?t.format:0,W(t)?t.style:"")}function te(){return _o()._selection}function jr(){return Oe()._editorState._selection}function fa(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),af(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,h=p.getNode();if(e.is(f)){const m=d.offset;(n<=m&&o>0||n<m&&o<0)&&d.set(c,Math.max(0,m+o),"element")}if(e.is(h)){const m=p.offset;(n<=m&&o>0||n<m&&o<0)&&p.set(c,Math.max(0,m+o),"element")}}af(t)}function af(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!R(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(R(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(R(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function pa(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,Q(r)?l="text":R(r)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function lf(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function pm(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Ble(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(sm)&&f!==s||f!==null&&Nu(f))return;if(!W(e))return void(t!==null&&cs(n,l,c)&&o.removeAllRanges());const p=e.anchor,h=e.focus,m=p.key,g=h.key,C=Yo(n,m),_=Yo(n,g),y=p.offset,v=h.offset,w=e.format,k=e.style,b=e.isCollapsed();let E=C,S=_,T=!1;if(p.type==="text"){E=Ir(C);const I=p.getNode();T=I.getFormat()!==w||I.getStyle()!==k}else W(t)&&t.anchor.type==="text"&&(T=!0);var A,z,L,M,B;if(h.type==="text"&&(S=Ir(_)),E!==null&&S!==null&&(b&&(t===null||T||W(t)&&(t.format!==w||t.style!==k))&&(A=w,z=k,L=y,M=m,B=performance.now(),Qh=[A,z,L,M,B]),u!==y||d!==v||l!==E||c!==S||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(wle)||s.focus({preventScroll:!0}),p.type==="element"))){if(pm(o,E,y,S,v),!r.has(ble)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const I=W(e)&&e.anchor.type==="element"?E.childNodes[y]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let F;if(I instanceof Text){const K=document.createRange();K.selectNode(I),F=K.getBoundingClientRect()}else F=I.getBoundingClientRect();(function(K,P,D){const G=Bm(D),V=Lu(G);if(G===null||V===null)return;let{top:H,bottom:ce}=P,ee=0,ie=0,U=D;for(;U!==null;){const ne=U===G.body;if(ne)ee=0,ie=Wt(K).innerHeight;else{const Y=U.getBoundingClientRect();ee=Y.top,ie=Y.bottom}let O=0;if(H<ee?O=-(ee-H):ce>ie&&(O=ce-ie),O!==0)if(ne)V.scrollBy(0,O);else{const Y=U.scrollTop;U.scrollTop+=O;const ge=U.scrollTop-Y;H-=ge,ce-=ge}if(ne)break;U=us(U)}})(n,F,s)}}Sc=!0}}function $le(t){let e=te()||jr();e===null&&(e=Le().selectEnd()),e.insertNodes(t)}function Kl(t){let e=t;t.isCollapsed()||e.removeText();const n=te();W(n)&&(e=n),W(e)||Z(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Rt(r);){const a=r;if([r,s]=Ole(r,s),a.is(r))break}return s}function Ole(t,e){const n=t.getParent();if(!n){const r=De();return Le().append(r),r.select(),[Le(),0]}if(Q(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!R(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new nr(kn(t.__key,e,"element"),kn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function cf(t,e,n,o,r="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Vn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Fm(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ce(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of zu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(yn(d))d.origin.isInline()||(c=d);else{if(R(d.origin))continue;Ce(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ce(c.origin)&&c.origin.isKeyboardSelectable()){const d=fm();return d.add(c.origin.getKey()),at(d),!0}return c=zt(c),l&&er(t.anchor,c),er(t.focus,c),u||!a}let Ye=null,Je=null,_t=!1,Gl=!1,Hs=0;const uf={characterData:!0,childList:!0,subtree:!0};function is(){return _t||Ye!==null&&Ye._readOnly}function Ge(){_t&&Z(13)}function hm(){Hs>99&&Z(14)}function _o(){return Ye===null&&Z(195,mm()),Ye}function Oe(){return Je===null&&Z(196,mm()),Je}function mm(){let t=0;const e=new Set,n=Go.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=el(r);if(Du(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function Lle(){return Je}function df(t,e,n){const o=e.__type,r=bm(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function ff(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function gm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function Ile(t){return Eu(t,Oe()._nodes)}function Eu(t,e){const n=t.type,o=e.get(n);o===void 0&&Z(17,n);const r=o.klass;t.type!==r.getType()&&Z(18,r.name);const s=r.importJSON(t),a=t.children;if(R(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Eu(a[l],e);s.append(c)}return s}function pf(t,e,n){const o=Ye,r=_t,s=Je;Ye=e,_t=!0,Je=t;try{return n()}finally{Ye=o,_t=r,Je=s}}function On(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=Ye,d=_t,f=Je,p=t._updating,h=t._observer;let m=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&h!==null){Je=t,Ye=n,_t=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,S=t._dirtyLeaves;h.disconnect(),m=rle(s,n,t,b,E,S)}catch(b){if(b instanceof Error&&t._onError(b),Gl)throw b;return Cm(t,null,o,n),Ah(t),t._dirtyType=2,Gl=!0,On(t,s),void(Gl=!1)}finally{h.observe(o,uf),t._updating=p,Ye=u,_t=d,Je=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,C=t._dirtyElements,_=t._normalizedNodes,y=t._updateTags,v=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(b,E){const S=b._decorators;let T=b._pendingDecorators||S;const A=E._nodeMap;let z;for(z in T)A.has(z)||(T===S&&(T=Sm(b)),delete T[z])}(t,n);const w=r?null:on(Wt(t));if(t._editable&&w!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!y.has(kle)){Je=t,Ye=n;try{if(h!==null&&h.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Oc(b,t,o),Ble(a,l,t,w,y,o)}(function(b,E,S){let T=b._blockCursorElement;if(W(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const A=S.anchor,z=A.getNode(),L=A.offset;let M=!1,B=null;if(L===z.getChildrenSize())Jl(z.getChildAtIndex(L-1))&&(M=!0);else{const I=z.getChildAtIndex(L);if(I!==null&&Jl(I)){const F=I.getPreviousSibling();(F===null||Jl(F))&&(M=!0,B=b.getElementByKey(I.__key))}}if(M){const I=b.getElementByKey(z.__key);return T===null&&(b._blockCursorElement=T=function(F){const K=F.theme,P=document.createElement("div");P.contentEditable="false",P.setAttribute("data-lexical-cursor","true");let D=K.blockCursor;if(D!==void 0){if(typeof D=="string"){const G=wh(D);D=K.blockCursor=G}D!==void 0&&P.classList.add(...D)}return P}(b._config)),E.style.caretColor="transparent",void(B===null?I.appendChild(T):I.insertBefore(T,B))}}T!==null&&Oc(T,b,E)})(t,o,l)}finally{h!==null&&h.observe(o,uf),Je=f,Ye=u}}m!==null&&function(b,E,S,T,A){const z=Array.from(b._listeners.mutation),L=z.length;for(let M=0;M<L;M++){const[B,I]=z[M];for(const F of I){const K=E.get(F);K!==void 0&&B(K,{dirtyLeaves:T,prevEditorState:A,updateTags:S})}}}(t,m,y,g,s),W(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Ph,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Ni("decorator",t,!0,k)),function(b,E,S){const T=yf(E),A=yf(S);T!==A&&Ni("textcontent",b,!0,A)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:C,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:e||s,tags:y}),function(b,E){if(b._deferred=[],E.length!==0){const S=b._updating;b._updating=!0;try{for(let T=0;T<E.length;T++)E[T]()}finally{b._updating=S}}}(t,v),function(b){const E=b._updates;if(E.length!==0){const S=E.shift();if(S){const[T,A]=S;Xa(b,T,A)}}}(t)}function Ni(t,e,n,...o){const r=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=r}}function hf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&Z(191),l._flushSync=!0),c&&t._deferred.push(c),gm(t,a.tag)),l==null?Xa(t,s,a):s()}}return o}function Xa(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,gm(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=ym(c||l),u=!0),c._flushSync=a;const d=Ye,f=_t,p=Je,h=t._updating;Ye=c,_t=!1,t._updating=!0,Je=t;const m=t._headless||t.getRootElement()===null;Tu(null);try{u&&(m?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(y,v){const w=y.getEditorState()._selection,k=on(Wt(y));return W(w)||w==null?wu(w,k,y,v):w.clone()}(t,n&&n.event||null));const C=t._compositionKey;e(),s=hf(t,s),function(y,v){const w=v.getEditorState()._selection,k=y._selection;if(W(k)){const b=k.anchor,E=k.focus;let S;if(b.type==="text"&&(S=b.getNode(),S.selectionTransform(w,k)),E.type==="text"){const T=E.getNode();S!==T&&T.selectionTransform(w,k)}}}(c,t),t._dirtyType!==0&&(s?function(y,v){const w=v._dirtyLeaves,k=y._nodeMap;for(const b of w){const E=k.get(b);Q(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&U1(E)}}(c,t):function(y,v){const w=v._dirtyLeaves,k=v._dirtyElements,b=y._nodeMap,E=oo(),S=new Map;let T=w,A=T.size,z=k,L=z.size;for(;A>0||L>0;){if(A>0){v._dirtyLeaves=new Set;for(const M of T){const B=b.get(M);Q(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&U1(B),B!==void 0&&ff(B,E)&&df(v,B,S),w.add(M)}if(T=v._dirtyLeaves,A=T.size,A>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,z.delete("root")&&z.set("root",!0);for(const M of z){const B=M[0],I=M[1];if(k.set(B,I),!I)continue;const F=b.get(B);F!==void 0&&ff(F,E)&&df(v,F,S)}T=v._dirtyLeaves,A=T.size,z=v._dirtyElements,L=z.size,Hs++}v._dirtyLeaves=w,v._dirtyElements=k}(c,t),hf(t),function(y,v,w,k){const b=y._nodeMap,E=v._nodeMap,S=[];for(const[T]of k){const A=E.get(T);A!==void 0&&(A.isAttached()||(R(A)&&xh(A,T,b,E,S,k),b.has(T)||k.delete(T),S.push(T)))}for(const T of S)E.delete(T);for(const T of w){const A=E.get(T);A===void 0||A.isAttached()||(b.has(T)||w.delete(T),E.delete(T))}}(l,c,t._dirtyLeaves,t._dirtyElements)),C!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(W(_)){const y=c._nodeMap,v=_.anchor.key,w=_.focus.key;y.get(v)!==void 0&&y.get(w)!==void 0||Z(19)}else Nt(_)&&_._nodes.size===0&&(c._selection=null)}catch(C){return C instanceof Error&&t._onError(C),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void On(t)}finally{Ye=d,_t=f,Je=p,t._updating=h,Hs=0}t._dirtyType!==0||t._deferred.length>0||function(C,_){const y=_.getEditorState()._selection,v=C._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,On(t)):u&&Ule(()=>{On(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Mt(t,e,n){Je===t&&n===void 0?e():Xa(t,e,n)}class Di{constructor(e,n,o){q(this,"element");q(this,"before");q(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Z(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Z(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Z(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(zi||Lr||Vi);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=mf(n,o);s.push(r);const a=mf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function mf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&Z(225),n.reverse()}class Lt extends tn{constructor(n){super(n);q(this,"__first");q(this,"__last");q(this,"__size");q(this,"__format");q(this,"__style");q(this,"__indent");q(this,"__dir");q(this,"__textFormat");q(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return Hae[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Oe()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),R(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return R(a)&&a.getLastDescendant()||a||null}const s=o[n];return R(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:We(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&Z(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&Z(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),R(a)&&s!==r-1&&!a.isInline()&&(n+=po)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),R(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=O1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=ct[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ha(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Ge();const r=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||R(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||R(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return W(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):dm(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?O1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,r){ua(this)&&Z(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||Z(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(f=m.getPreviousSibling())}if(o>0){let m=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){m===null&&Z(100);const C=m.getNextSibling(),_=m.__key;zo(m.getWritable()),u.push(_),m=C}}let h=f;for(const m of r){h!==null&&m.is(h)&&(f=h=h.getPreviousSibling());const g=m.getWritable();g.__parent===l&&p--,zo(g);const C=m.__key;if(h===null)a.__first=C,g.__prev=null;else{const _=h.getWritable();_.__next=C,g.__prev=_.__key}m.__key===l&&Z(76),g.__parent=l,c.push(C),h=m}if(n+o===s)h!==null&&(h.getWritable().__next=null,a.__last=h.__key);else if(d!==null){const m=d.getWritable();if(h!==null){const g=h.getWritable();m.__prev=h.__key,g.__next=d.__key}else m.__prev=null}if(a.__size=p,u.length){const m=te();if(W(m)){const g=new Set(u),C=new Set(c),{anchor:_,focus:y}=m;gf(_,g,C)&&pa(_,_.getNode(),this,f,d),gf(y,g,C)&&pa(y,y.getNode(),this,f,d),p!==0||this.canBeEmpty()||ut(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function R(t){return t instanceof Lt}function gf(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class vm extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ce(t){return t instanceof vm}class ss extends Lt{constructor(){super("root");q(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ss}getTopLevelElementOrThrow(){Z(51)}getTextContent(){const n=this.__cachedText;return!is()&&Oe()._dirtyType!==0||n===null?super.getTextContent():n}remove(){Z(52)}replace(n){Z(53)}insertBefore(n){Z(54)}insertAfter(n){Z(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)R(s)||Ce(s)||Z(282);return super.splice(n,o,r)}static importJSON(n){return Le().updateFromJSON(n)}collapseAtStart(){return!0}}function Re(t){return t instanceof ss}function ym(t){return new Qa(new Map(t._nodeMap))}function xu(){return new Qa(new Map([["root",new ss]]))}function _m(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Z(130,n.name),R(t)){const o=e.children;Array.isArray(o)||Z(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=_m(r[s]);o.push(a)}}return e}class Qa{constructor(e,n){q(this,"_nodeMap");q(this,"_selection");q(this,"_flushSync");q(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return pf(n&&n.editor||null,this,e)}clone(e){const n=new Qa(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return pf(null,this,()=>({root:_m(Le())}))}}class Su extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class as extends Lt{static getType(){return"paragraph"}static clone(e){return new as(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Ple,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return De().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=De();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Ple(t){const e=De();return t.style&&(e.setFormat(t.style.textAlign),Iu(t,e)),{node:e}}function De(){return ln(new as)}function ls(t){return t instanceof as}const ye=0,gi=1,Fle=4;function Cm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=xu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",r.set("root",n))}function Rle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=rl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Vle(t){const e=t||{},n=Lle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=xu(),l=e.namespace||(r!==null?r._config.namespace:Nm()),c=e.editorState,u=[ss,yo,os,rs,as,Su,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let h;if(t===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let g=0;g<u.length;g++){let C=u[g],_=null,y=null;if(typeof C!="function"){const k=C;C=k.replace,_=k.with,y=k.withKlass||null}rl(C);const v=C.getType(),w=Rle(C);h.set(v,{exportDOM:f&&f.export?f.export.get(C):void 0,klass:C,replace:_,replaceWithKlass:y,sharedNodeState:Qae(u[g]),transforms:w})}}const m=new Go(a,r,h,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,C){const _=new Map,y=new Set,v=w=>{Object.keys(w).forEach(k=>{let b=_.get(k);b===void 0&&(b=[],_.set(k,b)),b.push(w[k])})};return g.forEach(w=>{const k=w.klass.importDOM;if(k==null||y.has(k))return;y.add(k);const b=k.call(w.klass);b!==null&&v(b)}),C&&v(C),_}(h,f?f.import:void 0),p,t);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),m}class Go{constructor(e,n,o,r,s,a,l,c){q(this,"_headless");q(this,"_parentEditor");q(this,"_rootElement");q(this,"_editorState");q(this,"_pendingEditorState");q(this,"_compositionKey");q(this,"_deferred");q(this,"_keyToDOMMap");q(this,"_updates");q(this,"_updating");q(this,"_listeners");q(this,"_commands");q(this,"_nodes");q(this,"_decorators");q(this,"_pendingDecorators");q(this,"_config");q(this,"_dirtyType");q(this,"_cloneNotNeeded");q(this,"_dirtyLeaves");q(this,"_dirtyElements");q(this,"_normalizedNodes");q(this,"_updateTags");q(this,"_observer");q(this,"_key");q(this,"_onError");q(this,"_htmlConversions");q(this,"_window");q(this,"_editable");q(this,"_blockCursorElement");q(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Nm(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&Z(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&Z(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Z(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=xf(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=xf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=We(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return re(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Cm(this,n,e,r),n!==null&&(this._config.disableEvents||yle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Lu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Ah(this),this._updateTags.add(Ai),On(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;xc.set(l,u);const d=ca.get(u)??0;d<1&&u.addEventListener("selectionchange",rm),ca.set(u,d+1),l.__lexicalEditor=c;const f=om(l);for(let p=0;p<Ec.length;p++){const[h,m]=Ec[p],g=typeof m=="function"?C=>{G1(C)||(K1(C),(c.isEditable()||h==="click")&&m(C,c))}:C=>{if(G1(C))return;K1(C);const _=c.isEditable();switch(h){case"cut":return _&&re(c,bu,C);case"copy":return re(c,Ka,C);case"paste":return _&&re(c,yu,C);case"dragstart":return _&&re(c,Gh,C);case"dragover":return _&&re(c,Yh,C);case"dragend":return _&&re(c,fle,C);case"focus":return _&&re(c,mle,C);case"blur":return _&&re(c,gle,C);case"drop":return _&&re(c,Kh,C)}};l.addEventListener(h,g),f.push(()=>{l.removeEventListener(h,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ai),On(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Z(38);let o=e;o._readOnly&&(o=ym(e),o._selection=e._selection?e._selection.clone():null),Th(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),On(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||On(this)}parseEditorState(e,n){return function(o,r,s){const a=xu(),l=Ye,c=_t,u=Je,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,h=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=a,_t=!1,Je=r,Tu(null);try{const m=r._nodes;Eu(o.root,m),s&&s(),a._readOnly=!0}catch(m){m instanceof Error&&r._onError(m)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=h,Ye=l,_t=c,Je=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return On(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Xa(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Mt(this,()=>{const r=te(),s=Le();r!==null?r.dirty||at(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Wle("focus"),Zle(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}q(Go,"version");Go.version="0.38.1+prod.esm";let Mc=null;function Tu(t){Mc=t}let zle=1;function bm(t,e){const n=Au(t,e);return n===void 0&&Z(30,e),n}function Au(t,e){return t._nodes.get(e)}const Ule=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function vf(t){return Ce(Pr(t))}function Nu(t){const e=document.activeElement;if(!ze(e))return!1;const n=e.nodeName;return Ce(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&el(e)==null)}function cs(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Nu(e)&&km(e)===t}catch{return!1}}function Du(t){return t instanceof Go}function km(t){let e=t;for(;e!=null;){const n=el(e);if(Du(n))return n;e=us(e)}return null}function el(t){return t?t.__lexicalEditor:null}function Vo(t){return Ga(t)||t.isToken()}function Bn(t){return Vo(t)||t.isSegmented()}function jn(t){return Wr(t)&&t.nodeType===3}function wm(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(jn(e))return e;e=e.firstChild}return null}function ha(t,e,n){const o=ct[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~ct.superscript:e==="superscript"?r&=~ct.subscript:e==="lowercase"?(r&=~ct.uppercase,r&=~ct.capitalize):e==="uppercase"?(r&=~ct.lowercase,r&=~ct.capitalize):e==="capitalize"&&(r&=~ct.lowercase,r&=~ct.uppercase),r}function Em(t){return Q(t)||so(t)||Ce(t)}function qle(t,e){const n=function(){const a=Mc;return Mc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Ge(),hm();const o=Oe(),r=_o(),s=""+zle++;r._nodeMap.set(s,t),R(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function ma(t){hm(),ua(t)&&Z(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=_o(),r=Oe(),s=o._nodeMap,a=r._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;r._dirtyType=1,R(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function Xe(t){Ge();const e=Oe(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=We(n);o!==null&&o.getWritable()}if(t!==null){const o=We(t);o!==null&&o.getWritable()}}}function oo(){return is()?null:Oe()._compositionKey}function We(t,e){const n=(e||_o())._nodeMap.get(t);return n===void 0?null:n}function xm(t,e){const n=tl(t,Oe());return n!==void 0?We(n,e):null}function tl(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=xm(n,e);if(o!==null)return o;n=us(n)}return null}function Sm(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function yf(t){return t.read(()=>Le().getTextContent())}function Le(){return Tm(_o())}function Tm(t){return t._nodeMap.get("root")}function at(t){Ge();const e=_o();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Cr(t){const e=Oe(),n=function(o,r){let s=o;for(;s!=null;){const a=tl(s,r);if(a!==void 0)return a;s=us(s)}return null}(t,e);return n===null?t===e.getRootElement()?We("root"):null:We(n)}function Am(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Mu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Nm(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Dm(t){return jn(t)?t.nodeValue:null}function Bu(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Dm(r);const c=Pr(r);if(l!==null&&Q(c)){if(l===Wa&&n){const u=n.length;l=n,s=u,a=u}l!==null&&$u(c,l,s,a,t)}}}function $u(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Wa&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(Xe(null),Vi||Lr||zi)s.remove();else{const g=Oe();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=oo(),h=s.getKey();if(s.isToken()||p!==null&&h===p&&!a||W(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const m=te();if(!W(m)||n===null||o===null)return void _f(s,l,m);if(m.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ie(s.getTextContent());s.replace(g),s=g}_f(s,l,m)}}}function _f(t,e,n){if(t.setTextContent(e),W(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=lo(t,s.offset,"clamp"))}}}function Is(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Hle(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Ee(t,e,n){return Hle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Mn={ctrlKey:!Xt,metaKey:Xt},Cf={altKey:Xt,ctrlKey:!Xt};function bf(t){return t.key==="Backspace"}function kf(t){return Ee(t,"a",Mn)}function jle(t){const e=Le();if(W(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),oa(t),t}{const n=e.select(0,e.getChildrenSize());return at(oa(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=wh(r);return n[e]=s,s}return r}function Ou(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&Z(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function wf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function Bc(t,e){const n=t.offset;if(t.type==="element")return wf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?wf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Mm(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,s){const a=Mu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),h=p.length;let m=!1;if(Mt(u,()=>{for(let g=0;g<h;g++)if(p[g](s,o))return void(m=!0)}),m)return m}}}return!1}(t,e,n)}function nl(t){return!Re(t)&&!t.isLastChild()&&!t.isInline()}function Yo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Z(75,e),n}function us(t){const e=t.assignedSlot||t.parentElement;return Lc(e)?e.host:e}function Bm(t){return wm(t)?t:ze(t)?t.ownerDocument:null}function Wle(t){Ge(),Oe()._updateTags.add(t)}function Zle(t){Ge(),Oe()._deferred.push(t)}function $c(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Lu(t){const e=Bm(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&Z(78),e}function Kle(t){let e=t.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(t){return Re(t)||R(t)&&t.isShadowRoot()}function ln(t){const e=Oe(),n=t.getType(),o=Au(e,n);o===void 0&&Z(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||Z(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||Z(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&Z(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Yl(t,e){!Re(t.getParent())||R(e)||Ce(e)||Z(99)}function Gle(t){const e=We(t);return e===null&&Z(63,t),e}function Jl(t){return(Ce(t)||R(t)&&!t.canBeEmpty())&&!t.isInline()}function Oc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function Yle(t){const e=Lu(t);return e?e.getSelection():null}function $m(t){return ze(t)&&t.tagName==="A"}function ze(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Lc(t){return Wr(t)&&t.nodeType===11}function Ic(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function ga(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Rt(t){if(Ce(t)&&!t.isInline())return!0;if(!R(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ol(){return Oe()}const Ef=new WeakMap,Jle=new Map;function xf(t){if(!t._readOnly&&t.isEmpty())return Jle;t._readOnly||Z(192);let e=Ef.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),Ef.set(t,e)),e}function Om(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function Xle(t){return(e=Om(t))[im]=!0,e;var e}function Iu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function Qle(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function rl(t){const e=L1 in t.prototype?t.prototype[L1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Go.version&&(c=JSON.parse(Go.version))}catch{}Z(290,a.name,l,c)}return a===vm||a===Lt||a===tn}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Tu(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ece(t){const e=ol();return Ge(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!Re(n);){if(e(n))return n;n=n.getParent()}return null},tce={next:"previous",previous:"next"};class Pu{constructor(e){q(this,"origin");this.origin=e}[Symbol.iterator](){return Lm({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return et(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return et(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of r){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&Z(263,Array.from(l).join(" "))}else s.insert(c);s=et(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Pu{constructor(){super(...arguments);q(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const nce={root:Re,shadowRoot:ut};function Zr(t){return tce[t]}function Fu(t,e="root"){return nce[e](t)?null:t}class Jo extends Pu{constructor(){super(...arguments);q(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:et(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Xo extends Pu{constructor(n,o){super(n);q(this,"type","text");q(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Qo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Qo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return et(this.origin,this.direction)}}function ao(t){return t instanceof Xo}function Fr(t){return t instanceof Jo}function yn(t){return t instanceof Zi}const oce={next:class extends Xo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},rce={next:class extends Jo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Jo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ice={next:class extends Zi{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function et(t,e){return t?new rce[e](t):null}function Qo(t,e,n){return t?new oce[e](t,lo(t,n)):null}function lo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&bh(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Sf(t,e){return new ace(t,e)}function rn(t,e){return R(t)?new ice[e](t):null}function sce(t){return t&&t.getChildCaret()||t}function Ru(t){return t&&sce(t.getAdjacentCaret())}class Vu{constructor(e,n,o){q(this,"type","node-caret-range");q(this,"direction");q(this,"anchor");q(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Vu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return ao(s)?function(a,l){const{direction:c,origin:u}=a,d=lo(u,l==="focus"?Zr(c):c);return Sf(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[Sf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=ao(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=ao(o),s=a=>a.isSameNodeCaret(o)?null:Ru(a)||a.getParentCaret(e);return Lm({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ace{constructor(e,n){q(this,"type","slice");q(this,"caret");q(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),s=e.getTextContent();return Qo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function zu(t){return ho(t,et(Le(),t.direction))}function lce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&Z(265),new Vu(t,e,t.direction)}function Lm(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Im(t,e){const n=js(t.origin,e.origin);switch(n===null&&Z(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Pm(n)}}function Pm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Ps(t,e){return e.is(t)}function Tf(t){return R(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function js(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Tf(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Tf(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Ps(t,o)||Z(276),{commonAncestor:o,type:"ancestor"}):r===null?(Ps(e,o)||Z(277),{commonAncestor:o,type:"descendant"}):((R(s)||Ps(t,s))&&(R(r)||Ps(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||Z(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Vn(t,e){const{type:n,key:o,offset:r}=t,s=Gle(t.key);return n==="text"?(Q(s)||Z(266,s.getType(),o),Qo(s,e,r)):(R(s)||Z(267,s.getType(),o),dce(s,t.offset,e))}function er(t,e){const{origin:n,direction:o}=e,r=o==="next";ao(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?Q(n)?t.set(n.getKey(),lo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(yn(e)&&R(n)||Z(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function cce(t){const e=te(),n=W(e)?e:Ja();return Ws(n,t),at(n),n}function Ws(t,e){er(t.anchor,e.anchor),er(t.focus,e.focus)}function Af(t){const{anchor:e,focus:n}=t,o=Vn(e,"next"),r=Vn(n,"next"),s=Im(o,r)<=0?"next":"previous";return ho(Rr(o,s),Rr(r,s))}function Uu(t){const{direction:e,origin:n}=t,o=et(n,Zr(e)).getNodeAtCaret();return o?et(o,e):rn(n.getParentOrThrow(),e)}function Nf(t,e="root"){const n=[t];for(let o=yn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Uu(o));return n}function Xl(t){return!!t&&t.origin.isAttached()}function uce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Rm(t,o),a=Nf(s.anchor,n),l=Nf(s.focus.getFlipped(),n),c=new Set,u=[];for(const m of s.iterNodeCarets(n))if(yn(m))c.add(m.origin.getKey());else if(Fr(m)){const{origin:g}=m;R(g)&&!c.has(g.getKey())||u.push(g)}for(const m of u)m.remove();for(const m of s.getTextSlices()){if(!m)continue;const{origin:g}=m.caret,C=g.getTextContentSize(),_=Uu(et(g,o)),y=g.getMode();if(Math.abs(m.distance)===C&&r==="removeEmptySlices"||y==="token"&&m.distance!==0)_.remove();else if(m.distance!==0){r="removeEmptySlices";let v=m.removeTextSlice();const w=m.caret.origin;if(y==="segmented"){const k=v.origin,b=Ie(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(b),v=Qo(b,o,v.offset)}w.is(a[0].origin)&&(a[0]=v),w.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const m of a)if(Xl(m)){d=zt(m);break}for(const m of l)if(Xl(m)){f=zt(m);break}const p=function(m,g,C){if(!m||!g)return null;const _=m.getParentAtCaret(),y=g.getParentAtCaret();if(!_||!y)return null;const v=_.getParents().reverse();v.push(_);const w=y.getParents().reverse();w.push(y);const k=Math.min(v.length,w.length);let b;for(b=0;b<k&&v[b]===w[b];b++);const E=(A,z)=>{let L;for(let M=b;M<A.length;M++){const B=A[M];if(ut(B))return;!L&&z(B)&&(L=B)}return L},S=E(v,Rt),T=S&&E(w,A=>C.has(A.getKey())&&Rt(A));return S&&T?[S,T]:null}(d,f,c);if(p){const[m,g]=p;rn(m,"previous").splice(0,g.getChildren()),g.remove()}const h=[d,f,...a,...l].find(Xl);if(h)return lce(Rr(zt(h),t.direction));Z(269,JSON.stringify(a.map(m=>m.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;yn(s);){const a=Ru(s);if(!yn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return ao(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&Q(o.origin)?Qo(o.origin,n,Zr(n)):e}function Fm(t){return ao(t)&&t.offset!==lo(t.origin,t.direction)}function Rr(t,e){return t.direction===e?t:t.getFlipped()}function Rm(t,e){return t.direction===e?t:ho(Rr(t.focus,e),Rr(t.anchor,e))}function dce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Rr(o,n)}const Pc=new Map;function Vm(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function Df(t){let e=Pc.get(t);return e===void 0&&(e=Vm(t),Pc.set(t,e)),e}function zm(t){const e=ol().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Um(t){return zm(Re(t)?t:t.getParentOrThrow())}function Mf(t){const e=Um(t);return e!==null&&e.direction==="rtl"}function qm(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Bn(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=Nc(t),h=l.is(c),m=e.is(a?c:l),g=e.is(a?l:c);let C,_=0;h?(_=f>p?p:f,C=f>p?f:p):m?(_=a?p:f,C=void 0):g&&(_=0,C=a?f:p);const y=e.__text.slice(_,C);y!==e.__text&&(n==="clone"&&(e=Xle(e)),e.__text=y)}}return e}function fce(t){const e=t.getStyle(),n=Vm(e);Pc.set(e,n)}function pce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function Ql(t,e,n=pce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Ja(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Rt),u=qt(l.getNode(),Rt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Rt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Rt);R(l)&&r.set(l.getKey(),l)}for(const[a,l]of r){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(te())&&at(s)}function Hm(t){const e=jm(t);return e!==null&&e.writingMode==="vertical-rl"}function jm(t){const e=t.anchor.getNode();return R(e)?zm(e):Um(e)}function Bf(t,e){let n=Hm(t)?!e:e;Wm(t)&&(n=!n);const o=Vn(t.focus,n?"previous":"next");if(Fm(o))return!1;for(const r of zu(o)){if(yn(r))return!r.origin.isInline();if(!R(r.origin)){if(Ce(r.origin))return!0;break}}return!1}function hce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Wm(t){const e=jm(t);return e!==null&&e.direction==="rtl"}function $f(t,e,n){const o=Wm(t);let r;r=Hm(t)||o?!n:n,hce(t,e,r,"character")}function mce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const qu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gce=qu&&"documentMode"in document?document.documentMode:null;!(!qu||!("InputEvent"in window)||gce)&&"getTargetRanges"in new window.InputEvent("input");function Zm(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function ds(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const vce=qu;function zn(t,...e){const n=Zm(...e);n.length>0&&t.classList.add(...n)}function Hu(t,...e){const n=Zm(...e);n.length>0&&t.classList.remove(...n)}function yce(t){return t?t.getAdjacentCaret():null}function _ce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Cce(t){const e=qt(t,n=>R(n)&&!n.isInline());return R(e)||mce(4,t.__key),e}function Lo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ro(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Fc(t){let e=1,n=t.getParent();for(;n!=null;){if(be(n)){const o=n.getParent();if(ue(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function Rc(t){let e=t.getParent();ue(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),ue(n)&&(e=n);return e}function Km(t){let e=[];const n=t.getChildren().filter(be);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();ue(s)?e=e.concat(Km(s)):e.push(r)}return e}function hn(t){return be(t)&&ue(t.getFirstChild())}function Of(t){return It().append(t)}function Gm(t,e){return be(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Lf(t){const e=te();if(e!==null){let n=e.getNodes();if(W(e)){const r=e.getStartEndPoints();r===null&&ro(143);const[s]=r,a=s.getNode(),l=a.getParent();if(ut(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=De();a.append(u),n=u.select().getNodes()}}else if(Gm(a,n)){const c=Ct(t);if(ut(l)){a.replace(c);const u=It();R(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(be(a)){const u=a.getParentOrThrow();tr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(R(s)&&s.isEmpty()&&!be(s)&&!o.has(s.getKey())){If(s,t);continue}let a=Em(s)?s.getParent():be(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ue(a)){if(!o.has(l)){const c=Ct(t);tr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(ut(c)&&!o.has(l)){o.add(l),If(a,t);break}a=c}}}}}function tr(t,e){t.splice(t.getChildrenSize(),0,e)}function If(t,e){if(ue(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),ue(n)&&e===n.getListType())n.append(r),ue(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(ue(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=Ct(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function ju(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&hn(n)&&hn(o)&&(ju(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function bce(){const t=te();if(W(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Gm(o,n))e.add(Rc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Em(s)){const a=_ce(s,Co);a!=null&&e.add(Rc(a))}}for(const r of e){let s=r;const a=Km(r);for(const l of a){const c=De().setTextStyle(t.style).setTextFormat(t.format);tr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&er(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&er(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Ym(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())be(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ue(o.getFirstChild())||n++)}function kce(t){const e=new Set;if(hn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(hn(o)&&hn(r)){const s=r.getFirstChild();if(ue(s)){s.append(t);const a=o.getFirstChild();ue(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(ue(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();ue(s)&&s.append(t)}else if(ue(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Ct(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function wce(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ue(n?n.getParent():void 0)&&be(n)&&ue(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=Ct(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=Ct(s);c.append(u),tr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Ece(){const t=te();if(!W(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!be(e)||e.getChildrenSize()!==0)return!1;const n=Rc(e),o=e.getParent();ue(o)||ro(40);const r=o.getParent();let s;if(ut(r))s=De(),n.insertAfter(s);else{if(!be(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Ct(o.getListType());if(be(s)){const c=It();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!be(u)&&!ue(u))break;c=u}c.remove()}(e),!0}function va(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let Co=class extends Lt{constructor(n=1,o=void 0,r){super(r);q(this,"__value");q(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ue(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:xce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,r){(function(l,c,u){const d=c.getParent();!ue(d)||d.getListType()!=="check"||ue(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],f=[],p=c.list,h=p?p.listitem:void 0;let m;if(p&&p.nested&&(m=p.nested.listitem),h!==void 0&&d.push(...va(h)),p){const g=u.getParent(),C=ue(g)&&g.getListType()==="check",_=u.getChecked();C&&!_||f.push(p.listitemUnchecked),C&&_||f.push(p.listitemChecked),C&&d.push(_?p.listitemChecked:p.listitemUnchecked)}if(m!==void 0){const g=va(m);u.getChildren().some(C=>ue(C))?d.push(...g):f.push(...g)}f.length>0&&Hu(l,...f),d.length>0&&zn(l,...d)}(o,r.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=Df(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Df(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const r=n[o];if(R(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(be(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!ue(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=Ct(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(R(n)||ro(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(ue(r)||ro(39),be(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=Ct(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&hn(o)&&hn(r)&&(ju(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=De();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=be(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return ue(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;be(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ro(117),(n=Math.floor(n))>=0||ro(199);let o=this.getIndent();for(;o!==n;)o<n?(kce(this),o++):(wce(this),o--);return this}canInsertAfter(n){return be(n)}canReplaceWith(n){return be(n)}canMergeWith(n){return be(n)||ls(n)}extractWithChild(n,o){if(!W(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ct("bullet")}canMergeWhenEmpty(){return!0}};function xce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Pf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Pf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Pf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new Co(void 0,t))}function be(t){return t instanceof Co}let or=class extends Lt{constructor(n="number",o=1,r){super(r);q(this,"__tag");q(this,"__start");q(this,"__listType");const s=Tce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();ue(r)&&o.getListType()===r.getListType()&&ju(o,r)})(n),Ym(n)},extends:Lt,importDOM:{ol:()=>({conversion:Rf,priority:0}),ul:()=>({conversion:Rf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Ff(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Ff(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return ze(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];be(l)||(s===r&&(s=[...r]),s[a]=It().append(!R(l)||ue(l)||l.isInline()?l:Ie(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return be(n)}};function Ff(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Fc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,h=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),h!==void 0&&n.__listType==="check"&&o.push(h),u!==void 0){o.push(...va(u));for(let m=0;m<a.length;m++)m!==c&&r.push(n.__tag+m)}if(f!==void 0){const m=va(f);l>1?o.push(...m):r.push(...m)}}r.length>0&&Hu(t,...r),o.length>0&&zn(t,...o)}function Sce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(be(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{ue(s)&&e.push(Of(s))})}else e.push(Of(o))}return e}function Rf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Ct("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const r of o.childNodes)if(ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Ct("check"):Ct("bullet")),{after:Sce,node:n}}const Tce={ol:"number",ul:"bullet"};function Ct(t="number",e=1){return ln(new or(t,e))}function ue(t){return t instanceof or}const Ace=le("UPDATE_LIST_START_COMMAND"),Jm=le("INSERT_UNORDERED_LIST_COMMAND"),Xm=le("INSERT_ORDERED_LIST_COMMAND"),Nce=le("REMOVE_LIST_COMMAND");function Dce(t){return ds(t.registerCommand(Xm,()=>(Lf("number"),!0),gi),t.registerCommand(Ace,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!ue(r)&&(r.getListType()==="number"&&(r.setStart(o),Ym(r)),!0)},gi),t.registerCommand(Jm,()=>(Lf("bullet"),!0),gi),t.registerCommand(Nce,()=>(bce(),!0),gi),t.registerCommand(Hi,()=>Ece(),gi),t.registerNodeTransform(Co,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();W(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(yo,e=>{const n=e.getParent();if(be(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Mce(t){const e=n=>{const o=n.getParent();if(ue(n.getFirstChild())||!ue(o))return;const r=qt(n,s=>be(s)&&ue(s.getParent())&&be(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(be(r)){const s=r.getPreviousSibling();if(be(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ue(d);){const f=d.getLastChild();if(!be(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ue(l)){const c=Fc(l);c+1<Fc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(or,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(ue(r)){for(const s of r.getChildren())if(be(s)){e(s);const a=s.getFirstChild();ue(a)&&o.push(a)}}}})}function Bce(t,e){const n=wm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!eg.has(s.nodeName)){const a=tg(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Su&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function $ce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=Le().getChildren();for(let r=0;r<o.length;r++)Qm(t,o[r],n,e);return n.innerHTML}function Qm(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=R(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=qm(o,e,"clone"));const l=R(a)?a.getChildren():[],c=Au(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let h=0;h<l.length;h++){const m=l[h],g=Qm(t,m,p,o);!r&&R(e)&&g&&e.extractWithChild(m,o,"html")&&(r=!0)}if(r&&!s){if((ze(d)||Lc(d))&&d.append(p),n.append(d),f){const h=f.call(a,d);h&&(Lc(d)?d.replaceChildren(h):d.replaceWith(h))}}else n.append(p);return r}const eg=new Set(["STYLE","SCRIPT"]);function tg(t,e,n,o,r=new Map,s){let a=[];if(eg.has(t.nodeName))return a;let l=null;const c=function(m,g){const{nodeName:C}=m,_=g._htmlConversions.get(C.toLowerCase());let y=null;if(_!==void 0)for(const v of _){const w=v(m);w!==null&&(y===null||(y.priority||0)<=(w.priority||0))&&(y=w)}return y!==null?y.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const m=u.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(m)?m:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const h=(l==null||!ut(l))&&(l!=null&&Dc(l)||o);for(let m=0;m<f.length;m++)p.push(...tg(f[m],e,n,h,new Map(r),l));return d!=null&&(p=d(p)),ga(t)&&(p=Oce(t,p,h?()=>{const m=new Su;return n.push(m),m}:De)),l==null?p.length>0?a=a.concat(p):ga(t)&&function(m){return m.nextSibling==null||m.previousSibling==null?!1:Ic(m.nextSibling)&&Ic(m.previousSibling)}(t)&&(a=a.concat(nn())):R(l)&&l.append(...p),a}function Oce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Dc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Dc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function ya(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Lce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?"":$ce(t,e)}function Ice(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Pce(t,e))}function Vf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return zf(n,Fce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return zf(n,Bce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(W(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=te();if(W(u)){const d=l[c];d===`
29
+ `?o.push(nn()):a===" "?o.push(Hr()):o.push(Ie(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(C,_,y,v){const w=C.getNode(),k=w.getChildAtIndex(C.offset),b=Ie();if(b.setFormat(y),b.setStyle(v),ls(k))k.splice(0,0,[b]);else{const x=Re(w)?De().append(b):b;k===null?w.append(x):k.insertBefore(x)}C.is(_)&&_.set(b.__key,0,"text"),C.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&er(l,zt(Vn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];Q(p)||Z(26);const h=p.getTextContent().length,m=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=h,l.set(a.key,u,"text")),this.isCollapsed()&&c===h&&(Bn(p)||!p.canInsertTextAfter()||!m.canInsertTextAfter()&&p.getNextSibling()===null)){let C=p.getNextSibling();if(Q(C)&&C.canInsertTextBefore()&&!Bn(C)||(C=Ie(),C.setFormat(r),C.setStyle(s),m.canInsertTextAfter()?p.insertAfter(C):m.insertAfter(C)),C.select(0,0),p=C,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Bn(p)||!p.canInsertTextBefore()||!m.canInsertTextBefore()&&p.getPreviousSibling()===null)){let C=p.getPreviousSibling();if(Q(C)&&!Bn(C)||(C=Ie(),C.setFormat(r),m.canInsertTextBefore()?p.insertBefore(C):m.insertBefore(C)),C.select(),p=C,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==h){const C=Ie(p.getTextContent());C.setFormat(r),p.replace(C),p=C}else if(!this.isCollapsed()&&e!==""){const C=g.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||V(C)&&(!C.canInsertTextBefore()||!C.canInsertTextAfter()))return this.insertText(""),cm(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Vo(p)){const v=Ie(e);return v.select(),void p.replace(v)}const C=p.getFormat(),_=p.getStyle();if(c!==u||C===r&&_===s){if(Ga(p)){const v=Ie(e);return v.setFormat(r),v.setStyle(s),v.select(),void p.replace(v)}}else{if(p.getTextContent()!==""){const v=Ie(e);if(v.setFormat(r),v.setStyle(s),v.select(),c===0)p.insertBefore(v,!1);else{const[w]=p.splitText(c);w.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const y=u-c;p=p.spliceText(c,y,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=C,this.style=_))}else{const C=new Set([...p.getParentKeys(),...g.getParentKeys()]),_=V(p)?p:p.getParentOrThrow();let y=V(g)?g:g.getParentOrThrow(),v=g;if(!_.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(Q(g)&&!Vo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const S=Ie(g.getTextContent());g.replace(S),g=S}Re(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),C.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else C.add(g.__key);const w=y.getChildren(),k=new Set(d),b=_.is(y),x=_.isInline()&&p.getNextSibling()===null?_:p;for(let S=w.length-1;S>=0;S--){const A=w[S];if(A.is(p)||V(A)&&A.isParentOf(p))break;A.isAttached()&&(!k.has(A)||A.is(v)?b||x.insertAfter(A,!1):A.remove())}if(!b){let S=y,A=null;for(;S!==null;){const T=S.getChildren(),I=T.length;(I===0||T[I-1].is(A))&&(C.delete(S.__key),A=S),S=S.getParent()}}if(Vo(p))if(c===h)p.select();else{const S=Ie(e);S.select(),p.replace(S)}else p=p.spliceText(c,h-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<f;S++){const A=d[S],T=A.__key;C.has(T)||A.remove()}}}removeText(){const e=te()===this;Ws(this,uce(Af(this))),e&&te()!==this&&nt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void Xe(null);const o=this.getNodes(),r=[];for(const w of o)Q(w)&&r.push(w);const s=w=>{o.forEach(k=>{if(V(k)){const b=k.getFormatFlags(e,w);k.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),Xe(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,f=u?l:c;let p=0,h=r[0],m=d.type==="element"?0:d.offset;if(d.type==="text"&&m===h.getTextContentSize()&&(p=1,h=r[1],m=0),h==null)return;const g=h.getFormatFlags(e,n);s(g);const C=a-1;let _=r[C];const y=f.type==="text"?f.offset:_.getTextContentSize();if(h.is(_)){if(m===y)return;if(Bn(h)||m===0&&y===h.getTextContentSize())h.setFormat(g);else{const w=h.splitText(m,y),k=m===0?w[0]:w[1];k.setFormat(g),d.type==="text"&&d.set(k.__key,0,"text"),f.type==="text"&&f.set(k.__key,y-m,"text")}return void(this.format=g)}m===0||Bn(h)||([,h]=h.splitText(m),m=0),h.setFormat(g);const v=_.getFormatFlags(e,g);y>0&&(y===_.getTextContentSize()||Bn(_)||([_]=_.splitText(y)),_.setFormat(v));for(let w=p+1;w<C;w++){const k=r[w],b=k.getFormatFlags(e,v);k.setFormat(b)}d.type==="text"&&d.set(h.__key,m,"text"),f.type==="text"&&f.set(_.__key,y,"text"),this.format=g|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=te();return W(m)||Z(134),m.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Rt),r=e[e.length-1];if(V(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const m=Kl(this);o.splice(m,0,e),r.selectEnd()}return}if(!e.some(m=>(V(m)||Ce(m))&&!m.isInline())){V(o)||Z(211,n.constructor.name,n.getType());const m=Kl(this);return o.splice(m,0,e),void r.selectEnd()}const s=function(m){const g=De();let C=null;for(let _=0;_<m.length;_++){const y=m[_],v=so(y);if(v||Ce(y)&&y.isInline()||V(y)&&y.isInline()||Q(y)||y.isParentRequired()){if(C===null&&(C=y.createParentElementNode(),g.append(C),v))continue;C!==null&&C.append(y)}else g.append(y),C=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!V(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;V(f=d)&&Rt(f)&&!f.isEmpty()&&V(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(V(o)||Z(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&Z(212,n.constructor.name,n.getType()),function(m,g){const C=g.getParentOrThrow().getLastChild();let _=g;const y=[g];for(;_!==C;)_.getNextSibling()||Z(140),_=_.getNextSibling(),y.push(_);let v=m;for(const w of y)v=v.insertAfter(w)}(o,d));const p=qt(a,Rt);c&&V(p)&&(c.canMergeWhenEmpty()||Rt(u))&&(p.append(...c.getChildren()),c.remove()),V(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const h=V(o)?o.getLastChild():null;so(h)&&p!==o&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=De();return Le().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Kl(this),n=qt(this.anchor.getNode(),Rt);V(n)||Z(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=Nc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const p=o.splitText(d,f),h=d===0?p[0]:p[1];return h?(c.set(h.getKey(),0,"text"),u.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(cf(this,e,n,o))return;const r=e==="move",s=Oe(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!V(u)||u.isInline()||u.canBeEmpty()||Oc(l,s,c),this.dirty){let d=Yo(s,this.anchor.key),f=Yo(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&pm(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,h){d.modify(f,p,h)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Re(f)?f:Kle(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const h=this.getNodes(),m=[];let g=!1;for(let C=0;C<h.length;C++){const _=h[C];$c(_,p)?m.push(_):g=!0}if(g&&m.length>0)if(n){const C=m[0];V(C)?C.selectStart():C.getParentOrThrow().selectStart()}else{const C=m[m.length-1];V(C)?C.selectEnd():C.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(C){const _=C.focus,y=C.anchor,v=y.key,w=y.offset,k=y.type;y.set(_.key,_.offset,_.type,!0),_.set(v,w,k,!0)}(this)}}o==="lineboundary"&&cf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&V(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(V(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=zu(Vn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(yn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(V(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Ws(this,ho(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Fr(c)){if(V(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Ce(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&V(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=fm();u.add(c.origin.getKey()),nt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ws(this,ho(!c.origin.isEmpty()&&u.isEmpty()?Uu(et(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&nf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void of(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void of(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),h=f.getNode();if(p===h&&d.type==="text"&&f.type==="text"){const m=d.offset,g=f.offset,C=m<g,_=C?m:g,y=C?g:m,v=y-1;_!==v&&function(w){return!(Am(w)||Mle(w))}(p.getTextContent().slice(_,y))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Re(o.getParent())&&o.getPreviousSibling()===null&&nf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Nt(t){return t instanceof Ya}function tf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Nc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[tf(n),tf(o)]}function nf(t,e){for(let n=e;n;n=n.getParent()){if(V(n)){if(n.collapseAtStart(t))return!0;if(ut(n))break}if(n.getPreviousSibling())break}return!1}const Mle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function of(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function rf(t,e,n,o){let r,s=e;if(ze(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(r=Cr(d),Q(r))s=lo(r,a?"next":"previous");else{let p=Cr(t);if(p===null)return null;if(V(p)){const h=o.getElementByKey(p.getKey());h===null&&Z(214),[p,s]=p.getDOMSlot(h).resolveChildIndex(p,h,t,e),V(p)||Z(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(V(g)&&function(C,_,y){const v=C.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(g,0,n)){const C=a?g.getLastDescendant():g.getFirstDescendant();C===null?p=g:(g=C,p=V(g)?g:g.getParentOrThrow()),s=0}Q(g)?(r=g,p=null,s=lo(g,a?"next":"previous")):g!==p&&a&&!f&&(V(p)||Z(216),s=Math.min(p.getChildrenSize(),s+1))}else{const h=p.getIndexWithinParent();s=e===0&&Ce(p)&&Cr(t)===p?h:h+1,p=p.getParentOrThrow()}if(V(p))return kn(p.__key,s,"element")}}else r=Cr(t);return Q(r)?kn(r.__key,lo(r,s,"clamp"),"text"):null}function sf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&V(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else V(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&V(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&V(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function cm(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);sf(t,o,r),sf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Oe();if(s.isComposing()&&s._compositionKey!==t.key&&W(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function um(t,e,n,o,r,s){if(t===null||n===null||!cs(r,t,n))return null;const a=rf(t,e,W(s)?s.anchor:null,r);if(a===null)return null;const l=rf(n,o,W(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Cr(t),u=Cr(n);if(Ce(c)&&Ce(u))return null}return cm(a,l,s),[a,l]}function Dc(t){return V(t)&&!t.isInline()}function dm(t,e,n,o,r,s){const a=_o(),l=new nr(kn(t,e,r),kn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Ja(){const t=kn("root",0,"element"),e=kn("root",0,"element");return new nr(t,e,0,"")}function fm(){return new Ya(new Set)}function wu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!hc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(W(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&W(t)&&!cs(n,u,d))return t.clone();const h=um(u,f,d,p,n,t);if(h===null)return null;const[m,g]=h;return new nr(m,g,W(t)?t.format:0,W(t)?t.style:"")}function te(){return _o()._selection}function jr(){return Oe()._editorState._selection}function fa(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),af(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,h=p.getNode();if(e.is(f)){const m=d.offset;(n<=m&&o>0||n<m&&o<0)&&d.set(c,Math.max(0,m+o),"element")}if(e.is(h)){const m=p.offset;(n<=m&&o>0||n<m&&o<0)&&p.set(c,Math.max(0,m+o),"element")}}af(t)}function af(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!V(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(V(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(V(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function pa(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):V(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,Q(r)?l="text":V(r)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function lf(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function pm(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Ble(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(sm)&&f!==s||f!==null&&Nu(f))return;if(!W(e))return void(t!==null&&cs(n,l,c)&&o.removeAllRanges());const p=e.anchor,h=e.focus,m=p.key,g=h.key,C=Yo(n,m),_=Yo(n,g),y=p.offset,v=h.offset,w=e.format,k=e.style,b=e.isCollapsed();let x=C,S=_,A=!1;if(p.type==="text"){x=Ir(C);const P=p.getNode();A=P.getFormat()!==w||P.getStyle()!==k}else W(t)&&t.anchor.type==="text"&&(A=!0);var T,I,$,M,B;if(h.type==="text"&&(S=Ir(_)),x!==null&&S!==null&&(b&&(t===null||A||W(t)&&(t.format!==w||t.style!==k))&&(T=w,I=k,$=y,M=m,B=performance.now(),Qh=[T,I,$,M,B]),u!==y||d!==v||l!==x||c!==S||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(wle)||s.focus({preventScroll:!0}),p.type==="element"))){if(pm(o,x,y,S,v),!r.has(ble)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const P=W(e)&&e.anchor.type==="element"?x.childNodes[y]||null:o.rangeCount>0?o.getRangeAt(0):null;if(P!==null){let R;if(P instanceof Text){const K=document.createRange();K.selectNode(P),R=K.getBoundingClientRect()}else R=P.getBoundingClientRect();(function(K,F,N){const G=Bm(N),z=Lu(G);if(G===null||z===null)return;let{top:H,bottom:ce}=F,ee=0,ie=0,U=N;for(;U!==null;){const ne=U===G.body;if(ne)ee=0,ie=Wt(K).innerHeight;else{const Y=U.getBoundingClientRect();ee=Y.top,ie=Y.bottom}let L=0;if(H<ee?L=-(ee-H):ce>ie&&(L=ce-ie),L!==0)if(ne)z.scrollBy(0,L);else{const Y=U.scrollTop;U.scrollTop+=L;const ge=U.scrollTop-Y;H-=ge,ce-=ge}if(ne)break;U=us(U)}})(n,R,s)}}Sc=!0}}function $le(t){let e=te()||jr();e===null&&(e=Le().selectEnd()),e.insertNodes(t)}function Kl(t){let e=t;t.isCollapsed()||e.removeText();const n=te();W(n)&&(e=n),W(e)||Z(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Rt(r);){const a=r;if([r,s]=Ole(r,s),a.is(r))break}return s}function Ole(t,e){const n=t.getParent();if(!n){const r=De();return Le().append(r),r.select(),[Le(),0]}if(Q(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!V(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new nr(kn(t.__key,e,"element"),kn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function cf(t,e,n,o,r="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Vn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Fm(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ce(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of zu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(yn(d))d.origin.isInline()||(c=d);else{if(V(d.origin))continue;Ce(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ce(c.origin)&&c.origin.isKeyboardSelectable()){const d=fm();return d.add(c.origin.getKey()),nt(d),!0}return c=zt(c),l&&er(t.anchor,c),er(t.focus,c),u||!a}let Ye=null,Je=null,_t=!1,Gl=!1,Hs=0;const uf={characterData:!0,childList:!0,subtree:!0};function is(){return _t||Ye!==null&&Ye._readOnly}function Ge(){_t&&Z(13)}function hm(){Hs>99&&Z(14)}function _o(){return Ye===null&&Z(195,mm()),Ye}function Oe(){return Je===null&&Z(196,mm()),Je}function mm(){let t=0;const e=new Set,n=Go.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=el(r);if(Du(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function Lle(){return Je}function df(t,e,n){const o=e.__type,r=bm(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function ff(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function gm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function Ile(t){return Eu(t,Oe()._nodes)}function Eu(t,e){const n=t.type,o=e.get(n);o===void 0&&Z(17,n);const r=o.klass;t.type!==r.getType()&&Z(18,r.name);const s=r.importJSON(t),a=t.children;if(V(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Eu(a[l],e);s.append(c)}return s}function pf(t,e,n){const o=Ye,r=_t,s=Je;Ye=e,_t=!0,Je=t;try{return n()}finally{Ye=o,_t=r,Je=s}}function On(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=Ye,d=_t,f=Je,p=t._updating,h=t._observer;let m=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&h!==null){Je=t,Ye=n,_t=!1,t._updating=!0;try{const b=t._dirtyType,x=t._dirtyElements,S=t._dirtyLeaves;h.disconnect(),m=rle(s,n,t,b,x,S)}catch(b){if(b instanceof Error&&t._onError(b),Gl)throw b;return Cm(t,null,o,n),Ah(t),t._dirtyType=2,Gl=!0,On(t,s),void(Gl=!1)}finally{h.observe(o,uf),t._updating=p,Ye=u,_t=d,Je=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,C=t._dirtyElements,_=t._normalizedNodes,y=t._updateTags,v=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(b,x){const S=b._decorators;let A=b._pendingDecorators||S;const T=x._nodeMap;let I;for(I in A)T.has(I)||(A===S&&(A=Sm(b)),delete A[I])}(t,n);const w=r?null:on(Wt(t));if(t._editable&&w!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!y.has(kle)){Je=t,Ye=n;try{if(h!==null&&h.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Oc(b,t,o),Ble(a,l,t,w,y,o)}(function(b,x,S){let A=b._blockCursorElement;if(W(S)&&S.isCollapsed()&&S.anchor.type==="element"&&x.contains(document.activeElement)){const T=S.anchor,I=T.getNode(),$=T.offset;let M=!1,B=null;if($===I.getChildrenSize())Jl(I.getChildAtIndex($-1))&&(M=!0);else{const P=I.getChildAtIndex($);if(P!==null&&Jl(P)){const R=P.getPreviousSibling();(R===null||Jl(R))&&(M=!0,B=b.getElementByKey(P.__key))}}if(M){const P=b.getElementByKey(I.__key);return A===null&&(b._blockCursorElement=A=function(R){const K=R.theme,F=document.createElement("div");F.contentEditable="false",F.setAttribute("data-lexical-cursor","true");let N=K.blockCursor;if(N!==void 0){if(typeof N=="string"){const G=wh(N);N=K.blockCursor=G}N!==void 0&&F.classList.add(...N)}return F}(b._config)),x.style.caretColor="transparent",void(B===null?P.appendChild(A):P.insertBefore(A,B))}}A!==null&&Oc(A,b,x)})(t,o,l)}finally{h!==null&&h.observe(o,uf),Je=f,Ye=u}}m!==null&&function(b,x,S,A,T){const I=Array.from(b._listeners.mutation),$=I.length;for(let M=0;M<$;M++){const[B,P]=I[M];for(const R of P){const K=x.get(R);K!==void 0&&B(K,{dirtyLeaves:A,prevEditorState:T,updateTags:S})}}}(t,m,y,g,s),W(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Ph,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Ni("decorator",t,!0,k)),function(b,x,S){const A=yf(x),T=yf(S);A!==T&&Ni("textcontent",b,!0,T)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:C,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:e||s,tags:y}),function(b,x){if(b._deferred=[],x.length!==0){const S=b._updating;b._updating=!0;try{for(let A=0;A<x.length;A++)x[A]()}finally{b._updating=S}}}(t,v),function(b){const x=b._updates;if(x.length!==0){const S=x.shift();if(S){const[A,T]=S;Xa(b,A,T)}}}(t)}function Ni(t,e,n,...o){const r=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=r}}function hf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&Z(191),l._flushSync=!0),c&&t._deferred.push(c),gm(t,a.tag)),l==null?Xa(t,s,a):s()}}return o}function Xa(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,gm(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=ym(c||l),u=!0),c._flushSync=a;const d=Ye,f=_t,p=Je,h=t._updating;Ye=c,_t=!1,t._updating=!0,Je=t;const m=t._headless||t.getRootElement()===null;Tu(null);try{u&&(m?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(y,v){const w=y.getEditorState()._selection,k=on(Wt(y));return W(w)||w==null?wu(w,k,y,v):w.clone()}(t,n&&n.event||null));const C=t._compositionKey;e(),s=hf(t,s),function(y,v){const w=v.getEditorState()._selection,k=y._selection;if(W(k)){const b=k.anchor,x=k.focus;let S;if(b.type==="text"&&(S=b.getNode(),S.selectionTransform(w,k)),x.type==="text"){const A=x.getNode();S!==A&&A.selectionTransform(w,k)}}}(c,t),t._dirtyType!==0&&(s?function(y,v){const w=v._dirtyLeaves,k=y._nodeMap;for(const b of w){const x=k.get(b);Q(x)&&x.isAttached()&&x.isSimpleText()&&!x.isUnmergeable()&&U1(x)}}(c,t):function(y,v){const w=v._dirtyLeaves,k=v._dirtyElements,b=y._nodeMap,x=oo(),S=new Map;let A=w,T=A.size,I=k,$=I.size;for(;T>0||$>0;){if(T>0){v._dirtyLeaves=new Set;for(const M of A){const B=b.get(M);Q(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&U1(B),B!==void 0&&ff(B,x)&&df(v,B,S),w.add(M)}if(A=v._dirtyLeaves,T=A.size,T>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const M of I){const B=M[0],P=M[1];if(k.set(B,P),!P)continue;const R=b.get(B);R!==void 0&&ff(R,x)&&df(v,R,S)}A=v._dirtyLeaves,T=A.size,I=v._dirtyElements,$=I.size,Hs++}v._dirtyLeaves=w,v._dirtyElements=k}(c,t),hf(t),function(y,v,w,k){const b=y._nodeMap,x=v._nodeMap,S=[];for(const[A]of k){const T=x.get(A);T!==void 0&&(T.isAttached()||(V(T)&&xh(T,A,b,x,S,k),b.has(A)||k.delete(A),S.push(A)))}for(const A of S)x.delete(A);for(const A of w){const T=x.get(A);T===void 0||T.isAttached()||(b.has(A)||w.delete(A),x.delete(A))}}(l,c,t._dirtyLeaves,t._dirtyElements)),C!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(W(_)){const y=c._nodeMap,v=_.anchor.key,w=_.focus.key;y.get(v)!==void 0&&y.get(w)!==void 0||Z(19)}else Nt(_)&&_._nodes.size===0&&(c._selection=null)}catch(C){return C instanceof Error&&t._onError(C),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void On(t)}finally{Ye=d,_t=f,Je=p,t._updating=h,Hs=0}t._dirtyType!==0||t._deferred.length>0||function(C,_){const y=_.getEditorState()._selection,v=C._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,On(t)):u&&Ule(()=>{On(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Mt(t,e,n){Je===t&&n===void 0?e():Xa(t,e,n)}class Di{constructor(e,n,o){q(this,"element");q(this,"before");q(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Z(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Z(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Z(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(zi||Lr||Vi);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=mf(n,o);s.push(r);const a=mf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function mf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&Z(225),n.reverse()}class Lt extends tn{constructor(n){super(n);q(this,"__first");q(this,"__last");q(this,"__size");q(this,"__format");q(this,"__style");q(this,"__indent");q(this,"__dir");q(this,"__textFormat");q(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return Hae[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=Oe()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),V(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;V(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;V(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return V(a)&&a.getLastDescendant()||a||null}const s=o[n];return V(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:We(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&Z(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&Z(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),V(a)&&s!==r-1&&!a.isInline()&&(n+=po)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),V(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=O1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=ct[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ha(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Ge();const r=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||V(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||V(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return W(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):dm(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?O1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,r){ua(this)&&Z(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||Z(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(f=m.getPreviousSibling())}if(o>0){let m=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){m===null&&Z(100);const C=m.getNextSibling(),_=m.__key;zo(m.getWritable()),u.push(_),m=C}}let h=f;for(const m of r){h!==null&&m.is(h)&&(f=h=h.getPreviousSibling());const g=m.getWritable();g.__parent===l&&p--,zo(g);const C=m.__key;if(h===null)a.__first=C,g.__prev=null;else{const _=h.getWritable();_.__next=C,g.__prev=_.__key}m.__key===l&&Z(76),g.__parent=l,c.push(C),h=m}if(n+o===s)h!==null&&(h.getWritable().__next=null,a.__last=h.__key);else if(d!==null){const m=d.getWritable();if(h!==null){const g=h.getWritable();m.__prev=h.__key,g.__next=d.__key}else m.__prev=null}if(a.__size=p,u.length){const m=te();if(W(m)){const g=new Set(u),C=new Set(c),{anchor:_,focus:y}=m;gf(_,g,C)&&pa(_,_.getNode(),this,f,d),gf(y,g,C)&&pa(y,y.getNode(),this,f,d),p!==0||this.canBeEmpty()||ut(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function V(t){return t instanceof Lt}function gf(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class vm extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ce(t){return t instanceof vm}class ss extends Lt{constructor(){super("root");q(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ss}getTopLevelElementOrThrow(){Z(51)}getTextContent(){const n=this.__cachedText;return!is()&&Oe()._dirtyType!==0||n===null?super.getTextContent():n}remove(){Z(52)}replace(n){Z(53)}insertBefore(n){Z(54)}insertAfter(n){Z(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)V(s)||Ce(s)||Z(282);return super.splice(n,o,r)}static importJSON(n){return Le().updateFromJSON(n)}collapseAtStart(){return!0}}function Re(t){return t instanceof ss}function ym(t){return new Qa(new Map(t._nodeMap))}function xu(){return new Qa(new Map([["root",new ss]]))}function _m(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Z(130,n.name),V(t)){const o=e.children;Array.isArray(o)||Z(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=_m(r[s]);o.push(a)}}return e}class Qa{constructor(e,n){q(this,"_nodeMap");q(this,"_selection");q(this,"_flushSync");q(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return pf(n&&n.editor||null,this,e)}clone(e){const n=new Qa(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return pf(null,this,()=>({root:_m(Le())}))}}class Su extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class as extends Lt{static getType(){return"paragraph"}static clone(e){return new as(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Ple,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return De().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=De();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Ple(t){const e=De();return t.style&&(e.setFormat(t.style.textAlign),Iu(t,e)),{node:e}}function De(){return ln(new as)}function ls(t){return t instanceof as}const ye=0,gi=1,Fle=4;function Cm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=xu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",r.set("root",n))}function Rle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=rl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Vle(t){const e=t||{},n=Lle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=xu(),l=e.namespace||(r!==null?r._config.namespace:Nm()),c=e.editorState,u=[ss,yo,os,rs,as,Su,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let h;if(t===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let g=0;g<u.length;g++){let C=u[g],_=null,y=null;if(typeof C!="function"){const k=C;C=k.replace,_=k.with,y=k.withKlass||null}rl(C);const v=C.getType(),w=Rle(C);h.set(v,{exportDOM:f&&f.export?f.export.get(C):void 0,klass:C,replace:_,replaceWithKlass:y,sharedNodeState:Qae(u[g]),transforms:w})}}const m=new Go(a,r,h,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,C){const _=new Map,y=new Set,v=w=>{Object.keys(w).forEach(k=>{let b=_.get(k);b===void 0&&(b=[],_.set(k,b)),b.push(w[k])})};return g.forEach(w=>{const k=w.klass.importDOM;if(k==null||y.has(k))return;y.add(k);const b=k.call(w.klass);b!==null&&v(b)}),C&&v(C),_}(h,f?f.import:void 0),p,t);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),m}class Go{constructor(e,n,o,r,s,a,l,c){q(this,"_headless");q(this,"_parentEditor");q(this,"_rootElement");q(this,"_editorState");q(this,"_pendingEditorState");q(this,"_compositionKey");q(this,"_deferred");q(this,"_keyToDOMMap");q(this,"_updates");q(this,"_updating");q(this,"_listeners");q(this,"_commands");q(this,"_nodes");q(this,"_decorators");q(this,"_pendingDecorators");q(this,"_config");q(this,"_dirtyType");q(this,"_cloneNotNeeded");q(this,"_dirtyLeaves");q(this,"_dirtyElements");q(this,"_normalizedNodes");q(this,"_updateTags");q(this,"_observer");q(this,"_key");q(this,"_onError");q(this,"_htmlConversions");q(this,"_window");q(this,"_editable");q(this,"_blockCursorElement");q(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Nm(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&Z(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&Z(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Z(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=xf(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=xf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=We(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return re(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Cm(this,n,e,r),n!==null&&(this._config.disableEvents||yle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Lu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Ah(this),this._updateTags.add(Ai),On(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;xc.set(l,u);const d=ca.get(u)??0;d<1&&u.addEventListener("selectionchange",rm),ca.set(u,d+1),l.__lexicalEditor=c;const f=om(l);for(let p=0;p<Ec.length;p++){const[h,m]=Ec[p],g=typeof m=="function"?C=>{G1(C)||(K1(C),(c.isEditable()||h==="click")&&m(C,c))}:C=>{if(G1(C))return;K1(C);const _=c.isEditable();switch(h){case"cut":return _&&re(c,bu,C);case"copy":return re(c,Ka,C);case"paste":return _&&re(c,yu,C);case"dragstart":return _&&re(c,Gh,C);case"dragover":return _&&re(c,Yh,C);case"dragend":return _&&re(c,fle,C);case"focus":return _&&re(c,mle,C);case"blur":return _&&re(c,gle,C);case"drop":return _&&re(c,Kh,C)}};l.addEventListener(h,g),f.push(()=>{l.removeEventListener(h,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ai),On(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Z(38);let o=e;o._readOnly&&(o=ym(e),o._selection=e._selection?e._selection.clone():null),Th(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),On(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||On(this)}parseEditorState(e,n){return function(o,r,s){const a=xu(),l=Ye,c=_t,u=Je,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,h=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=a,_t=!1,Je=r,Tu(null);try{const m=r._nodes;Eu(o.root,m),s&&s(),a._readOnly=!0}catch(m){m instanceof Error&&r._onError(m)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=h,Ye=l,_t=c,Je=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return On(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Xa(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Mt(this,()=>{const r=te(),s=Le();r!==null?r.dirty||nt(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Wle("focus"),Zle(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}q(Go,"version");Go.version="0.38.1+prod.esm";let Mc=null;function Tu(t){Mc=t}let zle=1;function bm(t,e){const n=Au(t,e);return n===void 0&&Z(30,e),n}function Au(t,e){return t._nodes.get(e)}const Ule=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function vf(t){return Ce(Pr(t))}function Nu(t){const e=document.activeElement;if(!ze(e))return!1;const n=e.nodeName;return Ce(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&el(e)==null)}function cs(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Nu(e)&&km(e)===t}catch{return!1}}function Du(t){return t instanceof Go}function km(t){let e=t;for(;e!=null;){const n=el(e);if(Du(n))return n;e=us(e)}return null}function el(t){return t?t.__lexicalEditor:null}function Vo(t){return Ga(t)||t.isToken()}function Bn(t){return Vo(t)||t.isSegmented()}function jn(t){return Wr(t)&&t.nodeType===3}function wm(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(jn(e))return e;e=e.firstChild}return null}function ha(t,e,n){const o=ct[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~ct.superscript:e==="superscript"?r&=~ct.subscript:e==="lowercase"?(r&=~ct.uppercase,r&=~ct.capitalize):e==="uppercase"?(r&=~ct.lowercase,r&=~ct.capitalize):e==="capitalize"&&(r&=~ct.lowercase,r&=~ct.uppercase),r}function Em(t){return Q(t)||so(t)||Ce(t)}function qle(t,e){const n=function(){const a=Mc;return Mc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Ge(),hm();const o=Oe(),r=_o(),s=""+zle++;r._nodeMap.set(s,t),V(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function ma(t){hm(),ua(t)&&Z(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=_o(),r=Oe(),s=o._nodeMap,a=r._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;r._dirtyType=1,V(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function Xe(t){Ge();const e=Oe(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=We(n);o!==null&&o.getWritable()}if(t!==null){const o=We(t);o!==null&&o.getWritable()}}}function oo(){return is()?null:Oe()._compositionKey}function We(t,e){const n=(e||_o())._nodeMap.get(t);return n===void 0?null:n}function xm(t,e){const n=tl(t,Oe());return n!==void 0?We(n,e):null}function tl(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=xm(n,e);if(o!==null)return o;n=us(n)}return null}function Sm(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function yf(t){return t.read(()=>Le().getTextContent())}function Le(){return Tm(_o())}function Tm(t){return t._nodeMap.get("root")}function nt(t){Ge();const e=_o();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Cr(t){const e=Oe(),n=function(o,r){let s=o;for(;s!=null;){const a=tl(s,r);if(a!==void 0)return a;s=us(s)}return null}(t,e);return n===null?t===e.getRootElement()?We("root"):null:We(n)}function Am(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Mu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Nm(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Dm(t){return jn(t)?t.nodeValue:null}function Bu(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Dm(r);const c=Pr(r);if(l!==null&&Q(c)){if(l===Wa&&n){const u=n.length;l=n,s=u,a=u}l!==null&&$u(c,l,s,a,t)}}}function $u(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Wa&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(Xe(null),Vi||Lr||zi)s.remove();else{const g=Oe();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=oo(),h=s.getKey();if(s.isToken()||p!==null&&h===p&&!a||W(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const m=te();if(!W(m)||n===null||o===null)return void _f(s,l,m);if(m.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ie(s.getTextContent());s.replace(g),s=g}_f(s,l,m)}}}function _f(t,e,n){if(t.setTextContent(e),W(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=lo(t,s.offset,"clamp"))}}}function Is(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Hle(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Ee(t,e,n){return Hle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Mn={ctrlKey:!Xt,metaKey:Xt},Cf={altKey:Xt,ctrlKey:!Xt};function bf(t){return t.key==="Backspace"}function kf(t){return Ee(t,"a",Mn)}function jle(t){const e=Le();if(W(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),oa(t),t}{const n=e.select(0,e.getChildrenSize());return nt(oa(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=wh(r);return n[e]=s,s}return r}function Ou(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&Z(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function wf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function Bc(t,e){const n=t.offset;if(t.type==="element")return wf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?wf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Mm(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,s){const a=Mu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),h=p.length;let m=!1;if(Mt(u,()=>{for(let g=0;g<h;g++)if(p[g](s,o))return void(m=!0)}),m)return m}}}return!1}(t,e,n)}function nl(t){return!Re(t)&&!t.isLastChild()&&!t.isInline()}function Yo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Z(75,e),n}function us(t){const e=t.assignedSlot||t.parentElement;return Lc(e)?e.host:e}function Bm(t){return wm(t)?t:ze(t)?t.ownerDocument:null}function Wle(t){Ge(),Oe()._updateTags.add(t)}function Zle(t){Ge(),Oe()._deferred.push(t)}function $c(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Lu(t){const e=Bm(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&Z(78),e}function Kle(t){let e=t.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(t){return Re(t)||V(t)&&t.isShadowRoot()}function ln(t){const e=Oe(),n=t.getType(),o=Au(e,n);o===void 0&&Z(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||Z(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||Z(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&Z(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Yl(t,e){!Re(t.getParent())||V(e)||Ce(e)||Z(99)}function Gle(t){const e=We(t);return e===null&&Z(63,t),e}function Jl(t){return(Ce(t)||V(t)&&!t.canBeEmpty())&&!t.isInline()}function Oc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function Yle(t){const e=Lu(t);return e?e.getSelection():null}function $m(t){return ze(t)&&t.tagName==="A"}function ze(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Lc(t){return Wr(t)&&t.nodeType===11}function Ic(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function ga(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Rt(t){if(Ce(t)&&!t.isInline())return!0;if(!V(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ol(){return Oe()}const Ef=new WeakMap,Jle=new Map;function xf(t){if(!t._readOnly&&t.isEmpty())return Jle;t._readOnly||Z(192);let e=Ef.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),Ef.set(t,e)),e}function Om(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function Xle(t){return(e=Om(t))[im]=!0,e;var e}function Iu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function Qle(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function rl(t){const e=L1 in t.prototype?t.prototype[L1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Go.version&&(c=JSON.parse(Go.version))}catch{}Z(290,a.name,l,c)}return a===vm||a===Lt||a===tn}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Tu(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ece(t){const e=ol();return Ge(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!Re(n);){if(e(n))return n;n=n.getParent()}return null},tce={next:"previous",previous:"next"};class Pu{constructor(e){q(this,"origin");this.origin=e}[Symbol.iterator](){return Lm({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return et(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return et(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of r){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&Z(263,Array.from(l).join(" "))}else s.insert(c);s=et(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Pu{constructor(){super(...arguments);q(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const nce={root:Re,shadowRoot:ut};function Zr(t){return tce[t]}function Fu(t,e="root"){return nce[e](t)?null:t}class Jo extends Pu{constructor(){super(...arguments);q(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:et(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return V(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Xo extends Pu{constructor(n,o){super(n);q(this,"type","text");q(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Qo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return et(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Qo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return et(this.origin,this.direction)}}function ao(t){return t instanceof Xo}function Fr(t){return t instanceof Jo}function yn(t){return t instanceof Zi}const oce={next:class extends Xo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},rce={next:class extends Jo{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Jo{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ice={next:class extends Zi{constructor(){super(...arguments);q(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);q(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function et(t,e){return t?new rce[e](t):null}function Qo(t,e,n){return t?new oce[e](t,lo(t,n)):null}function lo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&bh(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Sf(t,e){return new ace(t,e)}function rn(t,e){return V(t)?new ice[e](t):null}function sce(t){return t&&t.getChildCaret()||t}function Ru(t){return t&&sce(t.getAdjacentCaret())}class Vu{constructor(e,n,o){q(this,"type","node-caret-range");q(this,"direction");q(this,"anchor");q(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Vu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return ao(s)?function(a,l){const{direction:c,origin:u}=a,d=lo(u,l==="focus"?Zr(c):c);return Sf(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[Sf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=ao(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=ao(o),s=a=>a.isSameNodeCaret(o)?null:Ru(a)||a.getParentCaret(e);return Lm({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ace{constructor(e,n){q(this,"type","slice");q(this,"caret");q(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),s=e.getTextContent();return Qo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function zu(t){return ho(t,et(Le(),t.direction))}function lce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&Z(265),new Vu(t,e,t.direction)}function Lm(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Im(t,e){const n=js(t.origin,e.origin);switch(n===null&&Z(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Pm(n)}}function Pm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Ps(t,e){return e.is(t)}function Tf(t){return V(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function js(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Tf(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Tf(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Ps(t,o)||Z(276),{commonAncestor:o,type:"ancestor"}):r===null?(Ps(e,o)||Z(277),{commonAncestor:o,type:"descendant"}):((V(s)||Ps(t,s))&&(V(r)||Ps(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||Z(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Vn(t,e){const{type:n,key:o,offset:r}=t,s=Gle(t.key);return n==="text"?(Q(s)||Z(266,s.getType(),o),Qo(s,e,r)):(V(s)||Z(267,s.getType(),o),dce(s,t.offset,e))}function er(t,e){const{origin:n,direction:o}=e,r=o==="next";ao(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?Q(n)?t.set(n.getKey(),lo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(yn(e)&&V(n)||Z(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function cce(t){const e=te(),n=W(e)?e:Ja();return Ws(n,t),nt(n),n}function Ws(t,e){er(t.anchor,e.anchor),er(t.focus,e.focus)}function Af(t){const{anchor:e,focus:n}=t,o=Vn(e,"next"),r=Vn(n,"next"),s=Im(o,r)<=0?"next":"previous";return ho(Rr(o,s),Rr(r,s))}function Uu(t){const{direction:e,origin:n}=t,o=et(n,Zr(e)).getNodeAtCaret();return o?et(o,e):rn(n.getParentOrThrow(),e)}function Nf(t,e="root"){const n=[t];for(let o=yn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Uu(o));return n}function Xl(t){return!!t&&t.origin.isAttached()}function uce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Rm(t,o),a=Nf(s.anchor,n),l=Nf(s.focus.getFlipped(),n),c=new Set,u=[];for(const m of s.iterNodeCarets(n))if(yn(m))c.add(m.origin.getKey());else if(Fr(m)){const{origin:g}=m;V(g)&&!c.has(g.getKey())||u.push(g)}for(const m of u)m.remove();for(const m of s.getTextSlices()){if(!m)continue;const{origin:g}=m.caret,C=g.getTextContentSize(),_=Uu(et(g,o)),y=g.getMode();if(Math.abs(m.distance)===C&&r==="removeEmptySlices"||y==="token"&&m.distance!==0)_.remove();else if(m.distance!==0){r="removeEmptySlices";let v=m.removeTextSlice();const w=m.caret.origin;if(y==="segmented"){const k=v.origin,b=Ie(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(b),v=Qo(b,o,v.offset)}w.is(a[0].origin)&&(a[0]=v),w.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const m of a)if(Xl(m)){d=zt(m);break}for(const m of l)if(Xl(m)){f=zt(m);break}const p=function(m,g,C){if(!m||!g)return null;const _=m.getParentAtCaret(),y=g.getParentAtCaret();if(!_||!y)return null;const v=_.getParents().reverse();v.push(_);const w=y.getParents().reverse();w.push(y);const k=Math.min(v.length,w.length);let b;for(b=0;b<k&&v[b]===w[b];b++);const x=(T,I)=>{let $;for(let M=b;M<T.length;M++){const B=T[M];if(ut(B))return;!$&&I(B)&&($=B)}return $},S=x(v,Rt),A=S&&x(w,T=>C.has(T.getKey())&&Rt(T));return S&&A?[S,A]:null}(d,f,c);if(p){const[m,g]=p;rn(m,"previous").splice(0,g.getChildren()),g.remove()}const h=[d,f,...a,...l].find(Xl);if(h)return lce(Rr(zt(h),t.direction));Z(269,JSON.stringify(a.map(m=>m.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;yn(s);){const a=Ru(s);if(!yn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return ao(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&Q(o.origin)?Qo(o.origin,n,Zr(n)):e}function Fm(t){return ao(t)&&t.offset!==lo(t.origin,t.direction)}function Rr(t,e){return t.direction===e?t:t.getFlipped()}function Rm(t,e){return t.direction===e?t:ho(Rr(t.focus,e),Rr(t.anchor,e))}function dce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Rr(o,n)}const Pc=new Map;function Vm(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function Df(t){let e=Pc.get(t);return e===void 0&&(e=Vm(t),Pc.set(t,e)),e}function zm(t){const e=ol().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Um(t){return zm(Re(t)?t:t.getParentOrThrow())}function Mf(t){const e=Um(t);return e!==null&&e.direction==="rtl"}function qm(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Bn(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=Nc(t),h=l.is(c),m=e.is(a?c:l),g=e.is(a?l:c);let C,_=0;h?(_=f>p?p:f,C=f>p?f:p):m?(_=a?p:f,C=void 0):g&&(_=0,C=a?f:p);const y=e.__text.slice(_,C);y!==e.__text&&(n==="clone"&&(e=Xle(e)),e.__text=y)}}return e}function fce(t){const e=t.getStyle(),n=Vm(e);Pc.set(e,n)}function pce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function Ql(t,e,n=pce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Ja(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Rt),u=qt(l.getNode(),Rt);V(c)&&r.set(c.getKey(),c),V(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(V(a)&&Rt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Rt);V(l)&&r.set(l.getKey(),l)}for(const[a,l]of r){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(te())&&nt(s)}function Hm(t){const e=jm(t);return e!==null&&e.writingMode==="vertical-rl"}function jm(t){const e=t.anchor.getNode();return V(e)?zm(e):Um(e)}function Bf(t,e){let n=Hm(t)?!e:e;Wm(t)&&(n=!n);const o=Vn(t.focus,n?"previous":"next");if(Fm(o))return!1;for(const r of zu(o)){if(yn(r))return!r.origin.isInline();if(!V(r.origin)){if(Ce(r.origin))return!0;break}}return!1}function hce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Wm(t){const e=jm(t);return e!==null&&e.direction==="rtl"}function $f(t,e,n){const o=Wm(t);let r;r=Hm(t)||o?!n:n,hce(t,e,r,"character")}function mce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const qu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gce=qu&&"documentMode"in document?document.documentMode:null;!(!qu||!("InputEvent"in window)||gce)&&"getTargetRanges"in new window.InputEvent("input");function Zm(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function ds(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const vce=qu;function zn(t,...e){const n=Zm(...e);n.length>0&&t.classList.add(...n)}function Hu(t,...e){const n=Zm(...e);n.length>0&&t.classList.remove(...n)}function yce(t){return t?t.getAdjacentCaret():null}function _ce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Cce(t){const e=qt(t,n=>V(n)&&!n.isInline());return V(e)||mce(4,t.__key),e}function Lo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ro(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Fc(t){let e=1,n=t.getParent();for(;n!=null;){if(be(n)){const o=n.getParent();if(ue(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function Rc(t){let e=t.getParent();ue(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),ue(n)&&(e=n);return e}function Km(t){let e=[];const n=t.getChildren().filter(be);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();ue(s)?e=e.concat(Km(s)):e.push(r)}return e}function hn(t){return be(t)&&ue(t.getFirstChild())}function Of(t){return It().append(t)}function Gm(t,e){return be(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Lf(t){const e=te();if(e!==null){let n=e.getNodes();if(W(e)){const r=e.getStartEndPoints();r===null&&ro(143);const[s]=r,a=s.getNode(),l=a.getParent();if(ut(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=De();a.append(u),n=u.select().getNodes()}}else if(Gm(a,n)){const c=Ct(t);if(ut(l)){a.replace(c);const u=It();V(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(be(a)){const u=a.getParentOrThrow();tr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(V(s)&&s.isEmpty()&&!be(s)&&!o.has(s.getKey())){If(s,t);continue}let a=Em(s)?s.getParent():be(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ue(a)){if(!o.has(l)){const c=Ct(t);tr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(ut(c)&&!o.has(l)){o.add(l),If(a,t);break}a=c}}}}}function tr(t,e){t.splice(t.getChildrenSize(),0,e)}function If(t,e){if(ue(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),ue(n)&&e===n.getListType())n.append(r),ue(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(ue(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=Ct(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function ju(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&hn(n)&&hn(o)&&(ju(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function bce(){const t=te();if(W(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Gm(o,n))e.add(Rc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Em(s)){const a=_ce(s,Co);a!=null&&e.add(Rc(a))}}for(const r of e){let s=r;const a=Km(r);for(const l of a){const c=De().setTextStyle(t.style).setTextFormat(t.format);tr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&er(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&er(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Ym(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())be(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ue(o.getFirstChild())||n++)}function kce(t){const e=new Set;if(hn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(hn(o)&&hn(r)){const s=r.getFirstChild();if(ue(s)){s.append(t);const a=o.getFirstChild();ue(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(ue(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();ue(s)&&s.append(t)}else if(ue(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Ct(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function wce(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ue(n?n.getParent():void 0)&&be(n)&&ue(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=Ct(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=Ct(s);c.append(u),tr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Ece(){const t=te();if(!W(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!be(e)||e.getChildrenSize()!==0)return!1;const n=Rc(e),o=e.getParent();ue(o)||ro(40);const r=o.getParent();let s;if(ut(r))s=De(),n.insertAfter(s);else{if(!be(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Ct(o.getListType());if(be(s)){const c=It();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!be(u)&&!ue(u))break;c=u}c.remove()}(e),!0}function va(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let Co=class extends Lt{constructor(n=1,o=void 0,r){super(r);q(this,"__value");q(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ue(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:xce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,r){(function(l,c,u){const d=c.getParent();!ue(d)||d.getListType()!=="check"||ue(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],f=[],p=c.list,h=p?p.listitem:void 0;let m;if(p&&p.nested&&(m=p.nested.listitem),h!==void 0&&d.push(...va(h)),p){const g=u.getParent(),C=ue(g)&&g.getListType()==="check",_=u.getChecked();C&&!_||f.push(p.listitemUnchecked),C&&_||f.push(p.listitemChecked),C&&d.push(_?p.listitemChecked:p.listitemUnchecked)}if(m!==void 0){const g=va(m);u.getChildren().some(C=>ue(C))?d.push(...g):f.push(...g)}f.length>0&&Hu(l,...f),d.length>0&&zn(l,...d)}(o,r.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=Df(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Df(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const r=n[o];if(V(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(be(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!ue(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=Ct(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(V(n)||ro(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(ue(r)||ro(39),be(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=Ct(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&hn(o)&&hn(r)&&(ju(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=De();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=be(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return ue(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;be(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ro(117),(n=Math.floor(n))>=0||ro(199);let o=this.getIndent();for(;o!==n;)o<n?(kce(this),o++):(wce(this),o--);return this}canInsertAfter(n){return be(n)}canReplaceWith(n){return be(n)}canMergeWith(n){return be(n)||ls(n)}extractWithChild(n,o){if(!W(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ct("bullet")}canMergeWhenEmpty(){return!0}};function xce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Pf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Pf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Pf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new Co(void 0,t))}function be(t){return t instanceof Co}let or=class extends Lt{constructor(n="number",o=1,r){super(r);q(this,"__tag");q(this,"__start");q(this,"__listType");const s=Tce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();ue(r)&&o.getListType()===r.getListType()&&ju(o,r)})(n),Ym(n)},extends:Lt,importDOM:{ol:()=>({conversion:Rf,priority:0}),ul:()=>({conversion:Rf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Ff(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Ff(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return ze(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];be(l)||(s===r&&(s=[...r]),s[a]=It().append(!V(l)||ue(l)||l.isInline()?l:Ie(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return be(n)}};function Ff(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Fc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,h=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),h!==void 0&&n.__listType==="check"&&o.push(h),u!==void 0){o.push(...va(u));for(let m=0;m<a.length;m++)m!==c&&r.push(n.__tag+m)}if(f!==void 0){const m=va(f);l>1?o.push(...m):r.push(...m)}}r.length>0&&Hu(t,...r),o.length>0&&zn(t,...o)}function Sce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(be(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{ue(s)&&e.push(Of(s))})}else e.push(Of(o))}return e}function Rf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Ct("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const r of o.childNodes)if(ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Ct("check"):Ct("bullet")),{after:Sce,node:n}}const Tce={ol:"number",ul:"bullet"};function Ct(t="number",e=1){return ln(new or(t,e))}function ue(t){return t instanceof or}const Ace=le("UPDATE_LIST_START_COMMAND"),Jm=le("INSERT_UNORDERED_LIST_COMMAND"),Xm=le("INSERT_ORDERED_LIST_COMMAND"),Nce=le("REMOVE_LIST_COMMAND");function Dce(t){return ds(t.registerCommand(Xm,()=>(Lf("number"),!0),gi),t.registerCommand(Ace,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!ue(r)&&(r.getListType()==="number"&&(r.setStart(o),Ym(r)),!0)},gi),t.registerCommand(Jm,()=>(Lf("bullet"),!0),gi),t.registerCommand(Nce,()=>(bce(),!0),gi),t.registerCommand(Hi,()=>Ece(),gi),t.registerNodeTransform(Co,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();W(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(yo,e=>{const n=e.getParent();if(be(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Mce(t){const e=n=>{const o=n.getParent();if(ue(n.getFirstChild())||!ue(o))return;const r=qt(n,s=>be(s)&&ue(s.getParent())&&be(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(be(r)){const s=r.getPreviousSibling();if(be(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ue(d);){const f=d.getLastChild();if(!be(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ue(l)){const c=Fc(l);c+1<Fc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(or,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(ue(r)){for(const s of r.getChildren())if(be(s)){e(s);const a=s.getFirstChild();ue(a)&&o.push(a)}}}})}function Bce(t,e){const n=wm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!eg.has(s.nodeName)){const a=tg(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Su&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function $ce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=Le().getChildren();for(let r=0;r<o.length;r++)Qm(t,o[r],n,e);return n.innerHTML}function Qm(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=V(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=qm(o,e,"clone"));const l=V(a)?a.getChildren():[],c=Au(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let h=0;h<l.length;h++){const m=l[h],g=Qm(t,m,p,o);!r&&V(e)&&g&&e.extractWithChild(m,o,"html")&&(r=!0)}if(r&&!s){if((ze(d)||Lc(d))&&d.append(p),n.append(d),f){const h=f.call(a,d);h&&(Lc(d)?d.replaceChildren(h):d.replaceWith(h))}}else n.append(p);return r}const eg=new Set(["STYLE","SCRIPT"]);function tg(t,e,n,o,r=new Map,s){let a=[];if(eg.has(t.nodeName))return a;let l=null;const c=function(m,g){const{nodeName:C}=m,_=g._htmlConversions.get(C.toLowerCase());let y=null;if(_!==void 0)for(const v of _){const w=v(m);w!==null&&(y===null||(y.priority||0)<=(w.priority||0))&&(y=w)}return y!==null?y.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const m=u.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(m)?m:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const h=(l==null||!ut(l))&&(l!=null&&Dc(l)||o);for(let m=0;m<f.length;m++)p.push(...tg(f[m],e,n,h,new Map(r),l));return d!=null&&(p=d(p)),ga(t)&&(p=Oce(t,p,h?()=>{const m=new Su;return n.push(m),m}:De)),l==null?p.length>0?a=a.concat(p):ga(t)&&function(m){return m.nextSibling==null||m.previousSibling==null?!1:Ic(m.nextSibling)&&Ic(m.previousSibling)}(t)&&(a=a.concat(nn())):V(l)&&l.append(...p),a}function Oce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Dc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Dc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function ya(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Lce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?"":$ce(t,e)}function Ice(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Pce(t,e))}function Vf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return zf(n,Fce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return zf(n,Bce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(W(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=te();if(W(u)){const d=l[c];d===`
30
30
  `||d===`\r
31
- `?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function zf(t,e,n){t.dispatchCommand(ile,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(W(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Vn(r,"previous");if(a)if(ao(a))s=a.origin;else{const l=ho(a,rn(Le(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function ng(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=R(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=qm(e,a,"clone"));const l=R(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ya(58,f.name),R(u)){const p=d.children;Array.isArray(p)||ya(59,f.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=ng(t,e,d,c.children);!r&&R(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return r}function Pce(t,e){const n=[],o=Le().getChildren();for(let r=0;r<o.length;r++)ng(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Fce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=Ile(o);Q(r)&&fce(r),e.push(r)}return e}let mr=null;async function Uf(t,e,n){if(mr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(qf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Ka,p=>(Lo(p,ClipboardEvent)&&(f(),mr!==null&&(r.clearTimeout(mr),mr=null),u(qf(t,p,n))),!0),Fle);mr=r.setTimeout(()=>{f(),mr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function qf(t,e,n){if(n===void 0){const r=on(t._window),s=te();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!cs(t,a,l))return!1;n=Rce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Vce(o,n),!0)}const og=[["text/html",Lce],["application/x-lexical-editor",Ice]];function Rce(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ol();for(const[o,r]of og){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Vce(t,e){for(const[n]of og)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,h]=c;t.update(()=>{const m=te();if(W(m)){const g=m.anchor;let C=g.getNode(),_=0,y=0;if(Q(C)&&u>=0&&d>=0&&(_=u,y=u+d,m.setTextNodeRange(C,_,C,y)),_===y&&f===""||(m.insertRawText(f),C=g.getNode()),Q(C)){_=p,y=p+h;const v=C.getTextContentSize();_=_>v?v:_,y=y>v?v:y,m.setTextNodeRange(C,_,C,y)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Hf(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const rr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Uce=rr&&"documentMode"in document?document.documentMode:null,qce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hce=!(!rr||!("InputEvent"in window)||Uce)&&"getTargetRanges"in new window.InputEvent("input"),jce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Wce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Zce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&qce&&!Wce,Wf=le("DRAG_DROP_PASTE_FILE");let Wu=class rg extends Lt{static getType(){return"quote"}static clone(e){return new rg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return zn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:Kce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Zu().updateFromJSON(e)}insertNewAfter(e,n){const o=De(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=De();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Zu(){return ln(new Wu)}function Vc(t){return t instanceof Wu}let il=class ig extends Lt{constructor(n,o){super(o);q(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new ig(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];zn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:gr,priority:0}),h2:n=>({conversion:gr,priority:0}),h3:n=>({conversion:gr,priority:0}),h4:n=>({conversion:gr,priority:0}),h5:n=>({conversion:gr,priority:0}),h6:n=>({conversion:gr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Zf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Zf(n)?{conversion:o=>({node:Io("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Io(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?De():Io(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=De();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?De():Io(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Zf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Io(e),t.style!==null&&(Iu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function Kce(t){const e=Zu();return t.style!==null&&(e.setFormat(t.style.textAlign),Iu(t,e)),{node:e}}function Io(t="h1"){return ln(new il(t))}function sg(t){return t instanceof il}function Fs(t){let e=null;if(Lo(t,DragEvent)?e=t.dataTransfer:Lo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Kf(t){const e=te();if(!W(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=qt(s,u=>R(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function Gf(t){const e=Pr(t);return Ce(e)}function ec(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function Gce(t){return ds(t.registerCommand(Fh,e=>{const n=te();return!!Nt(n)&&(n.clear(),!0)},ye),t.registerCommand(Ro,e=>{const n=te();return W(n)?(n.deleteCharacter(e),!0):!!Nt(n)&&(n.deleteNodes(),!0)},ye),t.registerCommand(ji,e=>{const n=te();return!!W(n)&&(n.deleteWord(e),!0)},ye),t.registerCommand(Wi,e=>{const n=te();return!!W(n)&&(n.deleteLine(e),!0)},ye),t.registerCommand(Er,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Vf(o,n,t);else if(W(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},ye),t.registerCommand(kc,()=>{const e=te();return!!W(e)&&(e.removeText(),!0)},ye),t.registerCommand(Vt,e=>{const n=te();return!!W(n)&&(n.formatText(e),!0)},ye),t.registerCommand(dle,e=>{const n=te();if(!W(n)&&!Nt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>R(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},ye),t.registerCommand(wr,e=>{const n=te();return!!W(n)&&(n.insertLineBreak(e),!0)},ye),t.registerCommand(Hi,()=>{const e=te();return!!W(e)&&(e.insertParagraph(),!0)},ye),t.registerCommand(cle,()=>($le([Hr()]),!0),ye),t.registerCommand(ule,()=>Kf(e=>{const n=e.getIndent();e.setIndent(n+1)}),ye),t.registerCommand(j1,()=>Kf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),ye),t.registerCommand(zh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(W(n)){const o=Bc(n.focus,!0);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Uh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(W(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===Le().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Bc(n.focus,!1);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Vh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Mf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!W(n))return!1;if(Bf(n,!0)){const o=e.shiftKey;return e.preventDefault(),$f(n,o,!0),!0}return!1},ye),t.registerCommand(Rh,e=>{const n=te();if(Nt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Mf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!W(n))return!1;const o=e.shiftKey;return!!Bf(n,!1)&&(e.preventDefault(),$f(n,o,!1),!0)},ye),t.registerCommand(Hh,e=>{if(Gf(e.target))return!1;const n=te();if(W(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Re(s))return!1;const a=Cce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(j1,void 0);if(jf&&navigator.language==="ko-KR")return!1}else if(!Nt(n))return!1;return e.preventDefault(),t.dispatchCommand(Ro,!0)},ye),t.registerCommand(Wh,e=>{if(Gf(e.target))return!1;const n=te();return!(!W(n)&&!Nt(n))&&(e.preventDefault(),t.dispatchCommand(Ro,!1))},ye),t.registerCommand(la,e=>{const n=te();if(!W(n))return!1;if(ec(n),e!==null){if((jf||jce||Zce)&&Hce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},ye),t.registerCommand(jh,()=>{const e=te();return!!W(e)&&(t.blur(),!0)},ye),t.registerCommand(Kh,e=>{const[,n]=Fs(e);if(n.length>0){const r=Hf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=Ja();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=oa(c);at(u)}t.dispatchCommand(Wf,n)}return e.preventDefault(),!0}const o=te();return!!W(o)},ye),t.registerCommand(Gh,e=>{const[n]=Fs(e),o=te();return!(n&&!W(o))},ye),t.registerCommand(Yh,e=>{const[n]=Fs(e),o=te();if(n&&!W(o))return!1;const r=Hf(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);Ce(s)&&e.preventDefault()}return!0},ye),t.registerCommand(wc,()=>(jle(),!0),ye),t.registerCommand(Ka,e=>(Uf(t,Lo(e,ClipboardEvent)?e:null),!0),ye),t.registerCommand(bu,e=>(async function(n,o){await Uf(o,Lo(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();W(r)?r.removeText():Nt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),ye),t.registerCommand(yu,e=>{const[,n,o]=Fs(e);return n.length>0&&!o?(t.dispatchCommand(Wf,n),!0):Wr(e.target)&&Nu(e.target)?!1:te()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=te(),l=Lo(r,InputEvent)||Lo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&Vf(l,a,s)},{tag:Cle})}(e,t),!0)},ye),t.registerCommand(qh,e=>{const n=te();return W(n)&&ec(n),!1},ye),t.registerCommand(Zh,e=>{const n=te();return W(n)&&ec(n),!1},ye))}var Yce={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
31
+ `?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function zf(t,e,n){t.dispatchCommand(ile,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(W(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Vn(r,"previous");if(a)if(ao(a))s=a.origin;else{const l=ho(a,rn(Le(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(V(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function ng(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=V(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=qm(e,a,"clone"));const l=V(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ya(58,f.name),V(u)){const p=d.children;Array.isArray(p)||ya(59,f.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=ng(t,e,d,c.children);!r&&V(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return r}function Pce(t,e){const n=[],o=Le().getChildren();for(let r=0;r<o.length;r++)ng(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Fce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=Ile(o);Q(r)&&fce(r),e.push(r)}return e}let mr=null;async function Uf(t,e,n){if(mr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(qf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Ka,p=>(Lo(p,ClipboardEvent)&&(f(),mr!==null&&(r.clearTimeout(mr),mr=null),u(qf(t,p,n))),!0),Fle);mr=r.setTimeout(()=>{f(),mr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function qf(t,e,n){if(n===void 0){const r=on(t._window),s=te();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!cs(t,a,l))return!1;n=Rce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Vce(o,n),!0)}const og=[["text/html",Lce],["application/x-lexical-editor",Ice]];function Rce(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ol();for(const[o,r]of og){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Vce(t,e){for(const[n]of og)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,h]=c;t.update(()=>{const m=te();if(W(m)){const g=m.anchor;let C=g.getNode(),_=0,y=0;if(Q(C)&&u>=0&&d>=0&&(_=u,y=u+d,m.setTextNodeRange(C,_,C,y)),_===y&&f===""||(m.insertRawText(f),C=g.getNode()),Q(C)){_=p,y=p+h;const v=C.getTextContentSize();_=_>v?v:_,y=y>v?v:y,m.setTextNodeRange(C,_,C,y)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Hf(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const rr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Uce=rr&&"documentMode"in document?document.documentMode:null,qce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hce=!(!rr||!("InputEvent"in window)||Uce)&&"getTargetRanges"in new window.InputEvent("input"),jce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Wce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Zce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&qce&&!Wce,Wf=le("DRAG_DROP_PASTE_FILE");let Wu=class rg extends Lt{static getType(){return"quote"}static clone(e){return new rg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return zn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:Kce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Zu().updateFromJSON(e)}insertNewAfter(e,n){const o=De(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=De();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Zu(){return ln(new Wu)}function Vc(t){return t instanceof Wu}let il=class ig extends Lt{constructor(n,o){super(o);q(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new ig(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];zn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:gr,priority:0}),h2:n=>({conversion:gr,priority:0}),h3:n=>({conversion:gr,priority:0}),h4:n=>({conversion:gr,priority:0}),h5:n=>({conversion:gr,priority:0}),h6:n=>({conversion:gr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Zf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Zf(n)?{conversion:o=>({node:Io("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Io(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?De():Io(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=De();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?De():Io(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Zf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Io(e),t.style!==null&&(Iu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function Kce(t){const e=Zu();return t.style!==null&&(e.setFormat(t.style.textAlign),Iu(t,e)),{node:e}}function Io(t="h1"){return ln(new il(t))}function sg(t){return t instanceof il}function Fs(t){let e=null;if(Lo(t,DragEvent)?e=t.dataTransfer:Lo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Kf(t){const e=te();if(!W(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=qt(s,u=>V(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function Gf(t){const e=Pr(t);return Ce(e)}function ec(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function Gce(t){return ds(t.registerCommand(Fh,e=>{const n=te();return!!Nt(n)&&(n.clear(),!0)},ye),t.registerCommand(Ro,e=>{const n=te();return W(n)?(n.deleteCharacter(e),!0):!!Nt(n)&&(n.deleteNodes(),!0)},ye),t.registerCommand(ji,e=>{const n=te();return!!W(n)&&(n.deleteWord(e),!0)},ye),t.registerCommand(Wi,e=>{const n=te();return!!W(n)&&(n.deleteLine(e),!0)},ye),t.registerCommand(Er,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Vf(o,n,t);else if(W(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},ye),t.registerCommand(kc,()=>{const e=te();return!!W(e)&&(e.removeText(),!0)},ye),t.registerCommand(Vt,e=>{const n=te();return!!W(n)&&(n.formatText(e),!0)},ye),t.registerCommand(dle,e=>{const n=te();if(!W(n)&&!Nt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>V(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},ye),t.registerCommand(wr,e=>{const n=te();return!!W(n)&&(n.insertLineBreak(e),!0)},ye),t.registerCommand(Hi,()=>{const e=te();return!!W(e)&&(e.insertParagraph(),!0)},ye),t.registerCommand(cle,()=>($le([Hr()]),!0),ye),t.registerCommand(ule,()=>Kf(e=>{const n=e.getIndent();e.setIndent(n+1)}),ye),t.registerCommand(j1,()=>Kf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),ye),t.registerCommand(zh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(W(n)){const o=Bc(n.focus,!0);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Uh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(W(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===Le().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Bc(n.focus,!1);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Vh,e=>{const n=te();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Mf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!W(n))return!1;if(Bf(n,!0)){const o=e.shiftKey;return e.preventDefault(),$f(n,o,!0),!0}return!1},ye),t.registerCommand(Rh,e=>{const n=te();if(Nt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Mf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!W(n))return!1;const o=e.shiftKey;return!!Bf(n,!1)&&(e.preventDefault(),$f(n,o,!1),!0)},ye),t.registerCommand(Hh,e=>{if(Gf(e.target))return!1;const n=te();if(W(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Re(s))return!1;const a=Cce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(j1,void 0);if(jf&&navigator.language==="ko-KR")return!1}else if(!Nt(n))return!1;return e.preventDefault(),t.dispatchCommand(Ro,!0)},ye),t.registerCommand(Wh,e=>{if(Gf(e.target))return!1;const n=te();return!(!W(n)&&!Nt(n))&&(e.preventDefault(),t.dispatchCommand(Ro,!1))},ye),t.registerCommand(la,e=>{const n=te();if(!W(n))return!1;if(ec(n),e!==null){if((jf||jce||Zce)&&Hce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},ye),t.registerCommand(jh,()=>{const e=te();return!!W(e)&&(t.blur(),!0)},ye),t.registerCommand(Kh,e=>{const[,n]=Fs(e);if(n.length>0){const r=Hf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=Ja();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=oa(c);nt(u)}t.dispatchCommand(Wf,n)}return e.preventDefault(),!0}const o=te();return!!W(o)},ye),t.registerCommand(Gh,e=>{const[n]=Fs(e),o=te();return!(n&&!W(o))},ye),t.registerCommand(Yh,e=>{const[n]=Fs(e),o=te();if(n&&!W(o))return!1;const r=Hf(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);Ce(s)&&e.preventDefault()}return!0},ye),t.registerCommand(wc,()=>(jle(),!0),ye),t.registerCommand(Ka,e=>(Uf(t,Lo(e,ClipboardEvent)?e:null),!0),ye),t.registerCommand(bu,e=>(async function(n,o){await Uf(o,Lo(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();W(r)?r.removeText():Nt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),ye),t.registerCommand(yu,e=>{const[,n,o]=Fs(e);return n.length>0&&!o?(t.dispatchCommand(Wf,n),!0):Wr(e.target)&&Nu(e.target)?!1:te()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=te(),l=Lo(r,InputEvent)||Lo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&Vf(l,a,s)},{tag:Cle})}(e,t),!0)},ye),t.registerCommand(qh,e=>{const n=te();return W(n)&&ec(n),!1},ye),t.registerCommand(Zh,e=>{const n=te();return W(n)&&ec(n),!1},ye))}var Yce={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function y(v){return v instanceof c?new c(v.type,y(v.content),v.alias):Array.isArray(v)?v.map(y):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++s}),y.__id},clone:function y(v,w){w=w||{};var k,b;switch(l.util.type(v)){case"Object":if(b=l.util.objId(v),w[b])return w[b];k={},w[b]=k;for(var E in v)v.hasOwnProperty(E)&&(k[E]=y(v[E],w));return k;case"Array":return b=l.util.objId(v),w[b]?w[b]:(k=[],w[b]=k,v.forEach(function(S,T){k[T]=y(S,w)}),k);default:return v}},getLanguage:function(y){for(;y;){var v=r.exec(y.className);if(v)return v[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,v){y.className=y.className.replace(RegExp(r,"gi"),""),y.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(k){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(y){var v=document.getElementsByTagName("script");for(var w in v)if(v[w].src==y)return v[w]}return null}},isActive:function(y,v,w){for(var k="no-"+v;y;){var b=y.classList;if(b.contains(v))return!0;if(b.contains(k))return!1;y=y.parentElement}return!!w}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,v){var w=l.util.clone(l.languages[y]);for(var k in v)w[k]=v[k];return w},insertBefore:function(y,v,w,k){k=k||l.languages;var b=k[y],E={};for(var S in b)if(b.hasOwnProperty(S)){if(S==v)for(var T in w)w.hasOwnProperty(T)&&(E[T]=w[T]);w.hasOwnProperty(S)||(E[S]=b[S])}var A=k[y];return k[y]=E,l.languages.DFS(l.languages,function(z,L){L===A&&z!=y&&(this[z]=E)}),E},DFS:function y(v,w,k,b){b=b||{};var E=l.util.objId;for(var S in v)if(v.hasOwnProperty(S)){w.call(v,S,v[S],k||S);var T=v[S],A=l.util.type(T);A==="Object"&&!b[E(T)]?(b[E(T)]=!0,y(T,w,null,b)):A==="Array"&&!b[E(T)]&&(b[E(T)]=!0,y(T,w,S,b))}}},plugins:{},highlightAll:function(y,v){l.highlightAllUnder(document,y,v)},highlightAllUnder:function(y,v,w){var k={callback:w,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var b=0,E;E=k.elements[b++];)l.highlightElement(E,v===!0,k.callback)},highlightElement:function(y,v,w){var k=l.util.getLanguage(y),b=l.languages[k];l.util.setLanguage(y,k);var E=y.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,k);var S=y.textContent,T={element:y,language:k,grammar:b,code:S};function A(L){T.highlightedCode=L,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),w&&w.call(T.element)}if(l.hooks.run("before-sanity-check",T),E=T.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),w&&w.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){A(l.util.encode(T.code));return}if(v&&o.Worker){var z=new Worker(l.filename);z.onmessage=function(L){A(L.data)},z.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(l.highlight(T.code,T.grammar,T.language))},highlight:function(y,v,w){var k={code:y,grammar:v,language:w};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),c.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(y,v){var w=v.rest;if(w){for(var k in w)v[k]=w[k];delete v.rest}var b=new f;return p(b,b.head,y),d(y,b,v,b.head,0),m(b)},hooks:{all:{},add:function(y,v){var w=l.hooks.all;w[y]=w[y]||[],w[y].push(v)},run:function(y,v){var w=l.hooks.all[y];if(!(!w||!w.length))for(var k=0,b;b=w[k++];)b(v)}},Token:c};o.Prism=l;function c(y,v,w,k){this.type=y,this.content=v,this.alias=w,this.length=(k||"").length|0}c.stringify=function y(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(A){k+=y(A,w)}),k}var b={type:v.type,content:y(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},E=v.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var S="";for(var T in b.attributes)S+=" "+T+'="'+(b.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+S+">"+b.content+"</"+b.tag+">"};function u(y,v,w,k){y.lastIndex=v;var b=y.exec(w);if(b&&k&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(y,v,w,k,b,E){for(var S in w)if(!(!w.hasOwnProperty(S)||!w[S])){var T=w[S];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(E&&E.cause==S+","+A)return;var z=T[A],L=z.inside,M=!!z.lookbehind,B=!!z.greedy,I=z.alias;if(B&&!z.pattern.global){var F=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,F+"g")}for(var K=z.pattern||z,P=k.next,D=b;P!==v.tail&&!(E&&D>=E.reach);D+=P.value.length,P=P.next){var G=P.value;if(v.length>y.length)return;if(!(G instanceof c)){var V=1,H;if(B){if(H=u(K,D,y,M),!H||H.index>=y.length)break;var U=H.index,ce=H.index+H[0].length,ee=D;for(ee+=P.value.length;U>=ee;)P=P.next,ee+=P.value.length;if(ee-=P.value.length,D=ee,P.value instanceof c)continue;for(var ie=P;ie!==v.tail&&(ee<ce||typeof ie.value=="string");ie=ie.next)V++,ee+=ie.value.length;V--,G=y.slice(D,ee),H.index-=D}else if(H=u(K,0,G,M),!H)continue;var U=H.index,ne=H[0],O=G.slice(0,U),Y=G.slice(U+ne.length),ge=D+G.length;E&&ge>E.reach&&(E.reach=ge);var qe=P.prev;O&&(qe=p(v,qe,O),D+=O.length),h(v,qe,V);var de=new c(S,L?l.tokenize(ne,L):ne,I,ne);if(P=p(v,qe,de),Y&&p(v,P,Y),V>1){var _e={cause:S+","+A,reach:ge};d(y,v,w,P.prev,D,_e),E&&_e.reach>E.reach&&(E.reach=_e.reach)}}}}}}function f(){var y={value:null,prev:null,next:null},v={value:null,prev:y,next:null};y.next=v,this.head=y,this.tail=v,this.length=0}function p(y,v,w){var k=v.next,b={value:w,prev:v,next:k};return v.next=b,k.prev=b,y.length++,b}function h(y,v,w){for(var k=v.next,b=0;b<w&&k!==y.tail;b++)k=k.next;v.next=k,k.prev=v,y.length-=b}function m(y){for(var v=[],w=y.head.next;w!==y.tail;)v.push(w.value),w=w.next;return v}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(y){var v=JSON.parse(y.data),w=v.language,k=v.code,b=v.immediateClose;o.postMessage(l.highlight(k,l.languages[w],w)),b&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var _=document.readyState;_==="loading"||_==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(e);t.exports&&(t.exports=n),typeof yt<"u"&&(yt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",r=function(g,C){return"✖ Error "+g+" while fetching file: "+C},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,C,_){var y=new XMLHttpRequest;y.open("GET",g,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?_(r(y.status,y.statusText)):_(s))},y.send(null)}function h(g){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(C){var _=Number(C[1]),y=C[2],v=C[3];return y?v?[_,Number(v)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var C=g.element;if(C.matches(f)){g.code="",C.setAttribute(l,c);var _=C.appendChild(document.createElement("CODE"));_.textContent=o;var y=C.getAttribute("data-src"),v=g.language;if(v==="none"){var w=(/\.(\w+)$/.exec(y)||[,"none"])[1];v=a[w]||w}n.util.setLanguage(_,v),n.util.setLanguage(C,v);var k=n.plugins.autoloader;k&&k.loadLanguages(v),p(y,function(b){C.setAttribute(l,u);var E=h(C.getAttribute("data-range"));if(E){var S=b.split(/\r\n?|\n/g),T=E[0],A=E[1]==null?S.length:E[1];T<0&&(T+=S.length),T=Math.max(0,Math.min(T-1,S.length)),A<0&&(A+=S.length),A=Math.max(0,Math.min(A,S.length)),b=S.slice(T,A).join(`
39
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(T+1))}_.textContent=b,n.highlightElement(_)},function(b){C.setAttribute(l,d),_.textContent=b})}}),n.plugins.fileHighlight={highlight:function(C){for(var _=(C||document).querySelectorAll(f),y=0,v;v=_[y++];)n.highlightElement(v)}};var m=!1;n.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Yce);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var h=0,m=p.length;h<m;h++){var g=p[h];if(g.type!=="code"){f(g.content);continue}var C=g.content[1],_=g.content[3];if(C&&_&&C.type==="code-language"&&_.type==="code-block"&&typeof C.content=="string"){var y=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var v="language-"+y;_.alias?typeof _.alias=="string"?_.alias=[_.alias,v]:_.alias.push(v):_.alias=[v]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,h=d.classes.length;p<h;p++){var m=d.classes[p],g=/language-(.+)/.exec(m);if(g){f=g[1];break}}var C=t.languages[f];if(C)d.content=t.highlight(u(d.content),C,f);else if(f&&f!=="none"&&t.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=_,t.plugins.autoloader.loadLanguages(f,function(){var y=document.getElementById(_);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,h){if(h=h.toLowerCase(),h[0]==="#"){var m;return h[1]==="x"?m=parseInt(h.slice(2),16):m=Number(h.slice(1)),c(m)}else{var g=l[h];return g||p}}),f}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);function ag(t,e){for(const n of t.childNodes){if(ze(n)&&n.tagName===e)return!0;ag(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let sl=class lg extends Lt{constructor(n,o){super(o);q(this,"__language");q(this,"__theme");q(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new lg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");zn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");zn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||ag(n,"BR"))?{conversion:Yf,priority:1}:null,div:()=>({conversion:Jce,priority:1}),pre:()=>({conversion:Yf,priority:0}),table:n=>tc(n)?{conversion:Xce,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&tc(r)?{conversion:Jf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&tc(o)?{conversion:Jf,priority:3}:null}}}static importJSON(n){return vn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
38
+ */var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function y(v){return v instanceof c?new c(v.type,y(v.content),v.alias):Array.isArray(v)?v.map(y):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++s}),y.__id},clone:function y(v,w){w=w||{};var k,b;switch(l.util.type(v)){case"Object":if(b=l.util.objId(v),w[b])return w[b];k={},w[b]=k;for(var x in v)v.hasOwnProperty(x)&&(k[x]=y(v[x],w));return k;case"Array":return b=l.util.objId(v),w[b]?w[b]:(k=[],w[b]=k,v.forEach(function(S,A){k[A]=y(S,w)}),k);default:return v}},getLanguage:function(y){for(;y;){var v=r.exec(y.className);if(v)return v[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,v){y.className=y.className.replace(RegExp(r,"gi"),""),y.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(k){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(y){var v=document.getElementsByTagName("script");for(var w in v)if(v[w].src==y)return v[w]}return null}},isActive:function(y,v,w){for(var k="no-"+v;y;){var b=y.classList;if(b.contains(v))return!0;if(b.contains(k))return!1;y=y.parentElement}return!!w}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,v){var w=l.util.clone(l.languages[y]);for(var k in v)w[k]=v[k];return w},insertBefore:function(y,v,w,k){k=k||l.languages;var b=k[y],x={};for(var S in b)if(b.hasOwnProperty(S)){if(S==v)for(var A in w)w.hasOwnProperty(A)&&(x[A]=w[A]);w.hasOwnProperty(S)||(x[S]=b[S])}var T=k[y];return k[y]=x,l.languages.DFS(l.languages,function(I,$){$===T&&I!=y&&(this[I]=x)}),x},DFS:function y(v,w,k,b){b=b||{};var x=l.util.objId;for(var S in v)if(v.hasOwnProperty(S)){w.call(v,S,v[S],k||S);var A=v[S],T=l.util.type(A);T==="Object"&&!b[x(A)]?(b[x(A)]=!0,y(A,w,null,b)):T==="Array"&&!b[x(A)]&&(b[x(A)]=!0,y(A,w,S,b))}}},plugins:{},highlightAll:function(y,v){l.highlightAllUnder(document,y,v)},highlightAllUnder:function(y,v,w){var k={callback:w,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var b=0,x;x=k.elements[b++];)l.highlightElement(x,v===!0,k.callback)},highlightElement:function(y,v,w){var k=l.util.getLanguage(y),b=l.languages[k];l.util.setLanguage(y,k);var x=y.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(x,k);var S=y.textContent,A={element:y,language:k,grammar:b,code:S};function T($){A.highlightedCode=$,l.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,l.hooks.run("after-highlight",A),l.hooks.run("complete",A),w&&w.call(A.element)}if(l.hooks.run("before-sanity-check",A),x=A.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!A.code){l.hooks.run("complete",A),w&&w.call(A.element);return}if(l.hooks.run("before-highlight",A),!A.grammar){T(l.util.encode(A.code));return}if(v&&o.Worker){var I=new Worker(l.filename);I.onmessage=function($){T($.data)},I.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else T(l.highlight(A.code,A.grammar,A.language))},highlight:function(y,v,w){var k={code:y,grammar:v,language:w};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),c.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(y,v){var w=v.rest;if(w){for(var k in w)v[k]=w[k];delete v.rest}var b=new f;return p(b,b.head,y),d(y,b,v,b.head,0),m(b)},hooks:{all:{},add:function(y,v){var w=l.hooks.all;w[y]=w[y]||[],w[y].push(v)},run:function(y,v){var w=l.hooks.all[y];if(!(!w||!w.length))for(var k=0,b;b=w[k++];)b(v)}},Token:c};o.Prism=l;function c(y,v,w,k){this.type=y,this.content=v,this.alias=w,this.length=(k||"").length|0}c.stringify=function y(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(T){k+=y(T,w)}),k}var b={type:v.type,content:y(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},x=v.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(b.classes,x):b.classes.push(x)),l.hooks.run("wrap",b);var S="";for(var A in b.attributes)S+=" "+A+'="'+(b.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+S+">"+b.content+"</"+b.tag+">"};function u(y,v,w,k){y.lastIndex=v;var b=y.exec(w);if(b&&k&&b[1]){var x=b[1].length;b.index+=x,b[0]=b[0].slice(x)}return b}function d(y,v,w,k,b,x){for(var S in w)if(!(!w.hasOwnProperty(S)||!w[S])){var A=w[S];A=Array.isArray(A)?A:[A];for(var T=0;T<A.length;++T){if(x&&x.cause==S+","+T)return;var I=A[T],$=I.inside,M=!!I.lookbehind,B=!!I.greedy,P=I.alias;if(B&&!I.pattern.global){var R=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,R+"g")}for(var K=I.pattern||I,F=k.next,N=b;F!==v.tail&&!(x&&N>=x.reach);N+=F.value.length,F=F.next){var G=F.value;if(v.length>y.length)return;if(!(G instanceof c)){var z=1,H;if(B){if(H=u(K,N,y,M),!H||H.index>=y.length)break;var U=H.index,ce=H.index+H[0].length,ee=N;for(ee+=F.value.length;U>=ee;)F=F.next,ee+=F.value.length;if(ee-=F.value.length,N=ee,F.value instanceof c)continue;for(var ie=F;ie!==v.tail&&(ee<ce||typeof ie.value=="string");ie=ie.next)z++,ee+=ie.value.length;z--,G=y.slice(N,ee),H.index-=N}else if(H=u(K,0,G,M),!H)continue;var U=H.index,ne=H[0],L=G.slice(0,U),Y=G.slice(U+ne.length),ge=N+G.length;x&&ge>x.reach&&(x.reach=ge);var qe=F.prev;L&&(qe=p(v,qe,L),N+=L.length),h(v,qe,z);var de=new c(S,$?l.tokenize(ne,$):ne,P,ne);if(F=p(v,qe,de),Y&&p(v,F,Y),z>1){var _e={cause:S+","+T,reach:ge};d(y,v,w,F.prev,N,_e),x&&_e.reach>x.reach&&(x.reach=_e.reach)}}}}}}function f(){var y={value:null,prev:null,next:null},v={value:null,prev:y,next:null};y.next=v,this.head=y,this.tail=v,this.length=0}function p(y,v,w){var k=v.next,b={value:w,prev:v,next:k};return v.next=b,k.prev=b,y.length++,b}function h(y,v,w){for(var k=v.next,b=0;b<w&&k!==y.tail;b++)k=k.next;v.next=k,k.prev=v,y.length-=b}function m(y){for(var v=[],w=y.head.next;w!==y.tail;)v.push(w.value),w=w.next;return v}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(y){var v=JSON.parse(y.data),w=v.language,k=v.code,b=v.immediateClose;o.postMessage(l.highlight(k,l.languages[w],w)),b&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var _=document.readyState;_==="loading"||_==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(e);t.exports&&(t.exports=n),typeof yt<"u"&&(yt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",r=function(g,C){return"✖ Error "+g+" while fetching file: "+C},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,C,_){var y=new XMLHttpRequest;y.open("GET",g,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?_(r(y.status,y.statusText)):_(s))},y.send(null)}function h(g){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(C){var _=Number(C[1]),y=C[2],v=C[3];return y?v?[_,Number(v)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var C=g.element;if(C.matches(f)){g.code="",C.setAttribute(l,c);var _=C.appendChild(document.createElement("CODE"));_.textContent=o;var y=C.getAttribute("data-src"),v=g.language;if(v==="none"){var w=(/\.(\w+)$/.exec(y)||[,"none"])[1];v=a[w]||w}n.util.setLanguage(_,v),n.util.setLanguage(C,v);var k=n.plugins.autoloader;k&&k.loadLanguages(v),p(y,function(b){C.setAttribute(l,u);var x=h(C.getAttribute("data-range"));if(x){var S=b.split(/\r\n?|\n/g),A=x[0],T=x[1]==null?S.length:x[1];A<0&&(A+=S.length),A=Math.max(0,Math.min(A-1,S.length)),T<0&&(T+=S.length),T=Math.max(0,Math.min(T,S.length)),b=S.slice(A,T).join(`
39
+ `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(A+1))}_.textContent=b,n.highlightElement(_)},function(b){C.setAttribute(l,d),_.textContent=b})}}),n.plugins.fileHighlight={highlight:function(C){for(var _=(C||document).querySelectorAll(f),y=0,v;v=_[y++];)n.highlightElement(v)}};var m=!1;n.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Yce);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var h=0,m=p.length;h<m;h++){var g=p[h];if(g.type!=="code"){f(g.content);continue}var C=g.content[1],_=g.content[3];if(C&&_&&C.type==="code-language"&&_.type==="code-block"&&typeof C.content=="string"){var y=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var v="language-"+y;_.alias?typeof _.alias=="string"?_.alias=[_.alias,v]:_.alias.push(v):_.alias=[v]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,h=d.classes.length;p<h;p++){var m=d.classes[p],g=/language-(.+)/.exec(m);if(g){f=g[1];break}}var C=t.languages[f];if(C)d.content=t.highlight(u(d.content),C,f);else if(f&&f!=="none"&&t.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=_,t.plugins.autoloader.loadLanguages(f,function(){var y=document.getElementById(_);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,h){if(h=h.toLowerCase(),h[0]==="#"){var m;return h[1]==="x"?m=parseInt(h.slice(2),16):m=Number(h.slice(1)),c(m)}else{var g=l[h];return g||p}}),f}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);function ag(t,e){for(const n of t.childNodes){if(ze(n)&&n.tagName===e)return!0;ag(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let sl=class lg extends Lt{constructor(n,o){super(o);q(this,"__language");q(this,"__theme");q(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new lg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");zn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");zn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||ag(n,"BR"))?{conversion:Yf,priority:1}:null,div:()=>({conversion:Jce,priority:1}),pre:()=>({conversion:Yf,priority:0}),table:n=>tc(n)?{conversion:Xce,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&tc(r)?{conversion:Jf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&tc(o)?{conversion:Jf,priority:3}:null}}}static importJSON(n){return vn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
40
40
  `&&r[s-2].getTextContent()===`
41
41
  `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=De();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(Q(c)){let u=eue(c);const d=[];for(;;)if(Ga(u))d.push(Hr()),u=u.getNextSibling();else{if(!fg(u))break;{let _=0;const y=u.getTextContent(),v=u.getTextContentSize();for(;_<v&&y[_]===" ";)_++;if(_!==0&&d.push(dg(" ".repeat(_))),_!==v)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,h=f.getIndexWithinParent()+p,m=c.getParentOrThrow(),g=[nn(),...d];m.splice(h,0,g);const C=d[d.length-1];C?C.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(al(c)){const{offset:u}=n.anchor;c.splice(u,0,[nn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=De();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function vn(t,e){return ece(sl).setLanguage(t).setTheme(e)}function al(t){return t instanceof sl}function Yf(t){return{node:vn(t.getAttribute(ki))}}function Jce(t){const e=t,n=Xf(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(Xf(r))return!0;r=r.parentElement}return!1}(e)?{node:n?vn():null}:{node:null}}function Xce(){return{node:vn()}}function Jf(){return{node:null}}function Xf(t){return t.style.fontFamily.match("monospace")!==null}function tc(t){return t.classList.contains("js-file-line-container")}let cg=class ug extends yo{constructor(n="",o,r){super(n,r);q(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new ug(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),r=nc(n.theme,this.__highlightType);return zn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=nc(r.theme,n.__highlightType),l=nc(r.theme,this.__highlightType);return a!==l&&(a&&Hu(o,a),l&&zn(o,l)),s}static importJSON(n){return dg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return vn()}};function nc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function dg(t="",e){return ln(new cg(t,e))}function fg(t){return t instanceof cg}function Qce(t,e){let n=t;for(let o=et(t,e);o&&(fg(o.origin)||Ga(o.origin));o=yce(o))n=o.origin;return n}function eue(t){return Qce(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
42
  ?|
43
- |(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const tue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);q(this,"__url");q(this,"__target");q(this,"__rel");q(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Kr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),zn(o,n.theme.link),o}updateLinkDOM(n,o,r){if($m(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:nue,priority:1})}}static importJSON(n){return _a().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=ep(n);try{const o=new URL(ep(n));if(!tue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const r=_a(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!W(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function nue(t){let e=null;if($m(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=_a(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function _a(t="",e){return ln(new Kr(t,e))}function oue(t){return t instanceof Kr}class ll extends Kr{constructor(n="",o={},r){super(n,o,r);q(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ll(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Qf().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const r=this.getParentOrThrow().insertNewAfter(n,o);if(R(r)){const s=Qf(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function Qf(t="",e){return ln(new ll(t,e))}function rue(t){return t instanceof ll}const iue=/^\+?[0-9\s()-]{5,}$/;function ep(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:iue.test(t)?`tel:${t}`:`https://${t}`}function zc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Ku(t){const e=zc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ca=/[!-/:-@[-`{-~\s]/,sue=/^\s{0,3}$/;function Uc(t){if(!ls(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&sue.test(e.getTextContent())}function aue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>ba(a,n,o));if(s!=null)return s}return R(t)?ba(t,n,o):Ce(t)?t.getTextContent():null}function ba(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>ba(d,e,n,o,[...r,...o]),(d,f)=>tp(d,f,e,o,r));if(u!=null){s.push(u);continue e}}so(l)?s.push(`
44
- `):Q(l)?s.push(tp(l,l.getTextContent(),e,o,r)):R(l)?s.push(ba(l,e,n,o,r)):Ce(l)&&s.push(l.getTextContent())}return s.join("")}function tp(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,h=>[...h].map(m=>"&#"+m.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=np(t,!0),d=np(t,!1),f=new Set;for(const p of n){const h=p.format[0],m=p.tag;Vs(t,h)&&!f.has(h)&&(f.add(h),Vs(u,h)&&o.find(g=>g.tag===m)||(o.push({format:h,tag:m}),a+=m))}for(let p=0;p<o.length;p++){const h=Vs(t,o[p].format),m=Vs(d,o[p].format);if(h&&m)continue;const g=[...o];for(;g.length>p;){const C=g.pop();r&&C&&r.find(_=>_.tag===C.tag)||(C&&typeof C.tag=="string"&&(h?m||(c+=C.tag):l+=C.tag),o.pop())}break}return s=a+s+c,l+s}function np(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(R(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!R(n))return null}return null}function Vs(t,e){return Q(t)&&t.hasFormat(e)}function lue(t,e){const n=function(r,s){const a=r.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,h=r[p-1],m=r[p+d[0].length];if((!h||Ca.test(h))&&(!m||Ca.test(m)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Mo(t){return Q(t)&&!t.hasFormat("code")}function Bo(t,e,n){let o=lue(t,e),r=function(a,l){const c=a;let u,d,f,p;for(const h of l){if(!h.replace||!h.importRegExp)continue;const m=c.getTextContent().match(h.importRegExp);if(!m)continue;const g=m.index||0,C=h.getEndIndex?h.getEndIndex(c,m):g+m[0].length;C!==!1&&(u===void 0||d===void 0||g<u&&(C>d||C<=u))&&(u=g,d=C,f=h,p=m)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let h,m,g;if(f[0]===p?h=l:c===0?[h,m]=l.splitText(u):[g,h,m]=l.splitText(c,u),h.setTextContent(f[2]),d)for(const C of d.format)h.hasFormat(C)||h.toggleFormat(C);return{nodeAfter:m,nodeBefore:g,transformedNode:h}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}else if(r){const a=function(l,c,u,d,f){let p,h,m;return c===0?[p,h]=l.splitText(u):[m,p,h]=l.splitText(c,u),d.replace?{nodeAfter:h,nodeBefore:m,transformedNode:d.replace(p,f)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function cue(t,e=!1){const n=Ku(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(r,s)=>{const a=r.split(`
43
+ |(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const tue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);q(this,"__url");q(this,"__target");q(this,"__rel");q(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Kr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),zn(o,n.theme.link),o}updateLinkDOM(n,o,r){if($m(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:nue,priority:1})}}static importJSON(n){return _a().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=ep(n);try{const o=new URL(ep(n));if(!tue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const r=_a(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!W(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function nue(t){let e=null;if($m(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=_a(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function _a(t="",e){return ln(new Kr(t,e))}function oue(t){return t instanceof Kr}class ll extends Kr{constructor(n="",o={},r){super(n,o,r);q(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ll(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return Qf().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const r=this.getParentOrThrow().insertNewAfter(n,o);if(V(r)){const s=Qf(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function Qf(t="",e){return ln(new ll(t,e))}function rue(t){return t instanceof ll}const iue=/^\+?[0-9\s()-]{5,}$/;function ep(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:iue.test(t)?`tel:${t}`:`https://${t}`}function zc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Ku(t){const e=zc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ca=/[!-/:-@[-`{-~\s]/,sue=/^\s{0,3}$/;function Uc(t){if(!ls(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&sue.test(e.getTextContent())}function aue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>ba(a,n,o));if(s!=null)return s}return V(t)?ba(t,n,o):Ce(t)?t.getTextContent():null}function ba(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>ba(d,e,n,o,[...r,...o]),(d,f)=>tp(d,f,e,o,r));if(u!=null){s.push(u);continue e}}so(l)?s.push(`
44
+ `):Q(l)?s.push(tp(l,l.getTextContent(),e,o,r)):V(l)?s.push(ba(l,e,n,o,r)):Ce(l)&&s.push(l.getTextContent())}return s.join("")}function tp(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,h=>[...h].map(m=>"&#"+m.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=np(t,!0),d=np(t,!1),f=new Set;for(const p of n){const h=p.format[0],m=p.tag;Vs(t,h)&&!f.has(h)&&(f.add(h),Vs(u,h)&&o.find(g=>g.tag===m)||(o.push({format:h,tag:m}),a+=m))}for(let p=0;p<o.length;p++){const h=Vs(t,o[p].format),m=Vs(d,o[p].format);if(h&&m)continue;const g=[...o];for(;g.length>p;){const C=g.pop();r&&C&&r.find(_=>_.tag===C.tag)||(C&&typeof C.tag=="string"&&(h?m||(c+=C.tag):l+=C.tag),o.pop())}break}return s=a+s+c,l+s}function np(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(V(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!V(n))return null}return null}function Vs(t,e){return Q(t)&&t.hasFormat(e)}function lue(t,e){const n=function(r,s){const a=r.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,h=r[p-1],m=r[p+d[0].length];if((!h||Ca.test(h))&&(!m||Ca.test(m)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Mo(t){return Q(t)&&!t.hasFormat("code")}function Bo(t,e,n){let o=lue(t,e),r=function(a,l){const c=a;let u,d,f,p;for(const h of l){if(!h.replace||!h.importRegExp)continue;const m=c.getTextContent().match(h.importRegExp);if(!m)continue;const g=m.index||0,C=h.getEndIndex?h.getEndIndex(c,m):g+m[0].length;C!==!1&&(u===void 0||d===void 0||g<u&&(C>d||C<=u))&&(u=g,d=C,f=h,p=m)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let h,m,g;if(f[0]===p?h=l:c===0?[h,m]=l.splitText(u):[g,h,m]=l.splitText(c,u),h.setTextContent(f[2]),d)for(const C of d.format)h.hasFormat(C)||h.toggleFormat(C);return{nodeAfter:m,nodeBefore:g,transformedNode:h}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}else if(r){const a=function(l,c,u,d,f){let p,h,m;return c===0?[p,h]=l.splitText(u):[m,p,h]=l.splitText(c,u),d.replace?{nodeAfter:h,nodeBefore:m,transformedNode:d.replace(p,f)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;Mo(a.nodeAfter)&&Bo(a.nodeAfter,e,n),Mo(a.nodeBefore)&&Bo(a.nodeBefore,e,n),Mo(a.transformedNode)&&Bo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function cue(t,e=!1){const n=Ku(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(r,s)=>{const a=r.split(`
45
45
  `),l=a.length,c=s||Le();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,h]=uue(a,d,n.multilineElement,c);p?d=h:due(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Uc(d)&&c.getChildrenSize()>1&&d.remove();te()!==null&&c.selectStart()}}function uue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const m=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});if(m===null)continue;if(m)return m}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const h=t.length;for(;p<h;){const m=d?t[p].match(d):null;if(!m&&(!f||f&&p<h-1)){p++;continue}if(m&&e===p&&m.index===u.index){p++;continue}const g=[];if(m&&e===p)g.push(t[e].slice(u[0].length,-m[0].length));else for(let C=e;C<=p;C++)if(C===e){const _=t[C].slice(u[0].length);g.push(_)}else if(C===p&&m){const _=t[C].slice(0,-m[0].length);g.push(_)}else g.push(t[C]);if(c(o,null,u,m,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function due(t,e,n,o,r,s){const a=Ie(t),l=De();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Bo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ls(c)||Vc(c)||ue(c))){let u=c;if(ue(c)){const d=c.getLastDescendant();u=d==null?null:qt(d,be)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function fue(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const pg=/^(\s*)(\d{1,})\.\s/,hg=/^(\s*)[-*+]\s/,pue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,qc=/^(#{1,6})\s/,mg=/^>\s/,gg=/^[ \t]*```([\w-]+)?/,Hc=/[ \t]*```$/,hue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,mue=/^(?:\|)(.+)(?:\|)\s?$/,gue=/^(\| ?:?-*:? ?)+\|\s?$/,op=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,rp=/^<\/[a-z_][\w-]*\s*>/i,ip=t=>new RegExp(`(?:${t.source})$`,t.flags),wi=Xae("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),vg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},yg=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=It(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==wi.parse(c)?void 0:c;if(ue(a)&&a.getListType()===t){u&&zl(a,wi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(ue(s)&&s.getListType()===t)u&&zl(s,wi,u),s.append(l),e.remove();else{const f=Ct(t,t==="number"?Number(o[2]):void 0);u&&zl(f,wi,u),f.append(l),e.replace(f)}l.append(...n),r||l.select(0,0);const d=function(f){const p=f.match(/\t/g),h=f.match(/ /g);let m=0;return p&&(m+=p.length),h&&(m+=Math.floor(h.length/4)),m}(o[1]);d&&l.setIndent(d)},Gu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(be(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(ue(f)){o.push(Gu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Nh(t,wi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
46
  `)},_g={dependencies:[il],export:(t,e)=>{if(!sg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:qc,replace:vg(t=>{const e="h"+t[1].length;return Io(e)}),type:"element"},vue={dependencies:[Wu],export:(t,e)=>{if(!Vc(t))return null;const n=e(t).split(`
47
47
  `),o=[];for(const r of n)o.push("> "+r);return o.join(`
48
48
  `)},regExp:mg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(Vc(s))return s.splice(s.getChildrenSize(),0,[nn(),...e]),void t.remove()}const r=Zu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},Cg={dependencies:[sl],export:t=>{if(!al(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
49
  `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Hc},regExpStart:gg,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=vn(),l=n[1]+r[0]):(a=vn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=vn(n[1]),r[0].trim().length===0)for(;r.length>0&&!r[0].length;)r.shift();else r[0]=r[0].startsWith(" ")?r[0].slice(1):r[0];for(;r.length>0&&!r[r.length-1].length;)r.pop();l=r.join(`
50
- `)}const c=Ie(l);a.append(c),t.append(a)}else e&&vg(c=>vn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},bg={dependencies:[or,Co],export:(t,e)=>ue(t)?Gu(t,e,0):null,regExp:hg,replace:yg("bullet"),type:"element"},kg={dependencies:[or,Co],export:(t,e)=>ue(t)?Gu(t,e,0):null,regExp:pg,replace:yg("number"),type:"element"},wg={format:["code"],tag:"`",type:"text-format"},yue={format:["highlight"],tag:"==",type:"text-format"},Eg={format:["bold","italic"],tag:"***",type:"text-format"},_ue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},xg={format:["bold"],tag:"**",type:"text-format"},Cue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Sg={format:["strikethrough"],tag:"~~",type:"text-format"},Tg={format:["italic"],tag:"*",type:"text-format"},bue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},kue={dependencies:[Kr],export:(t,e,n)=>{if(!oue(t)||rue(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,s=_a(o,{title:r}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const f=n.split("[");u="["+f[0],c=f.slice(1).join("[")}const d=Ie(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ie(u)),d},trigger:")",type:"text-match"},wue=[_g,vue,bg,kg],Eue=[Cg],xue=[wg,Eg,_ue,xg,Cue,yue,Tg,bue,Sg],Sue=[kue],Yu=[...wue,...Eue,...xue,...Sue];function sp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Ag(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Ag(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Tue(t,e=Yu){const n=Ku(e),o=zc(n.textFormat,({tag:a})=>a[a.length-1]),r=zc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||fue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const h=u.getParent();if(!ut(h)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExp:g,replace:C}of p){const _=m.match(g);if(_&&_[0].length===(_[0].endsWith(" ")?f:f-1)){const y=d.getNextSiblings(),[v,w]=d.splitText(f);if(C(u,w?[w,...y]:y,_,!1)!==!1)return v.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const h=u.getParent();if(!ut(h)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExpStart:g,replace:C,regExpEnd:_}of p){if(_&&!("optional"in _)||_&&"optional"in _&&!_.optional)continue;const y=m.match(g);if(y&&y[0].length===(y[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[w,k]=d.splitText(f);if(C(u,k?[k,...v]:v,y,null,null,!1)!==!1)return w.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const h=f[p[d-1]];if(h==null)return!1;d<p.length&&(p=p.slice(0,d));for(const m of h){if(!m.replace||!m.regExp)continue;const g=p.match(m.regExp);if(g===null)continue;const C=g.index||0,_=C+g[0].length;let y;return C===0?[y]=u.splitText(_):[,y]=u.splitText(C,_),y.selectNext(0,0),m.replace(y,g),!0}return!1}(l,c,r)||function(u,d,f){const p=u.getTextContent(),h=d-1,m=p[h],g=f[m];if(!g)return!1;for(const C of g){const{tag:_}=C,y=_.length,v=h-y+1;if(y>1&&!Ag(p,v,_,0,y)||p[v-1]===" ")continue;const w=p[h+1];if(C.intraword===!1&&w&&!Ca.test(w))continue;const k=u;let b=k,E=sp(p,v,_),S=b;for(;E<0&&(S=S.getPreviousSibling())&&!so(S);)if(Q(S)){if(S.hasFormat("code"))continue;const K=S.getTextContent();b=S,E=sp(K,K.length,_)}if(E<0||b===k&&E+y===v)continue;const T=b.getTextContent();if(E>0&&T[E-1]===m)continue;const A=T[E-1];if(C.intraword===!1&&A&&!Ca.test(A))continue;const z=k.getTextContent(),L=z.slice(0,v)+z.slice(h+1);k.setTextContent(L);const M=b===k?L:T;b.setTextContent(M.slice(0,E)+M.slice(E+y));const B=te(),I=Ja();at(I);const F=h-y*(b===k?2:1)+1;I.anchor.set(b.__key,E,"text"),I.focus.set(k.__key,F,"text");for(const K of C.format)I.hasFormat(K)||I.formatText(K);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const K of C.format)I.hasFormat(K)&&I.toggleFormat(K);return W(B)&&(I.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(sm)||a.has(da)||t.isComposing())return;const d=c.read(te),f=u.read(te);if(!W(f)||!W(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,h=d.anchor.offset,m=c._nodeMap.get(p);!Q(m)||!l.has(p)||h!==1&&h>f.anchor.offset+1||t.update(()=>{if(!Mo(m))return;const g=m.getParent();g===null||al(g)||s(g,m,d.anchor.offset)})})}function Aue(t,e=Yu,n,o=!1,r=!1){const s=o?t:function(a,l=!1){const c=a.split(`
50
+ `)}const c=Ie(l);a.append(c),t.append(a)}else e&&vg(c=>vn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},bg={dependencies:[or,Co],export:(t,e)=>ue(t)?Gu(t,e,0):null,regExp:hg,replace:yg("bullet"),type:"element"},kg={dependencies:[or,Co],export:(t,e)=>ue(t)?Gu(t,e,0):null,regExp:pg,replace:yg("number"),type:"element"},wg={format:["code"],tag:"`",type:"text-format"},yue={format:["highlight"],tag:"==",type:"text-format"},Eg={format:["bold","italic"],tag:"***",type:"text-format"},_ue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},xg={format:["bold"],tag:"**",type:"text-format"},Cue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Sg={format:["strikethrough"],tag:"~~",type:"text-format"},Tg={format:["italic"],tag:"*",type:"text-format"},bue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},kue={dependencies:[Kr],export:(t,e,n)=>{if(!oue(t)||rue(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,s=_a(o,{title:r}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const f=n.split("[");u="["+f[0],c=f.slice(1).join("[")}const d=Ie(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ie(u)),d},trigger:")",type:"text-match"},wue=[_g,vue,bg,kg],Eue=[Cg],xue=[wg,Eg,_ue,xg,Cue,yue,Tg,bue,Sg],Sue=[kue],Yu=[...wue,...Eue,...xue,...Sue];function sp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Ag(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Ag(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Tue(t,e=Yu){const n=Ku(e),o=zc(n.textFormat,({tag:a})=>a[a.length-1]),r=zc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||fue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const h=u.getParent();if(!ut(h)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExp:g,replace:C}of p){const _=m.match(g);if(_&&_[0].length===(_[0].endsWith(" ")?f:f-1)){const y=d.getNextSiblings(),[v,w]=d.splitText(f);if(C(u,w?[w,...y]:y,_,!1)!==!1)return v.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const h=u.getParent();if(!ut(h)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExpStart:g,replace:C,regExpEnd:_}of p){if(_&&!("optional"in _)||_&&"optional"in _&&!_.optional)continue;const y=m.match(g);if(y&&y[0].length===(y[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[w,k]=d.splitText(f);if(C(u,k?[k,...v]:v,y,null,null,!1)!==!1)return w.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const h=f[p[d-1]];if(h==null)return!1;d<p.length&&(p=p.slice(0,d));for(const m of h){if(!m.replace||!m.regExp)continue;const g=p.match(m.regExp);if(g===null)continue;const C=g.index||0,_=C+g[0].length;let y;return C===0?[y]=u.splitText(_):[,y]=u.splitText(C,_),y.selectNext(0,0),m.replace(y,g),!0}return!1}(l,c,r)||function(u,d,f){const p=u.getTextContent(),h=d-1,m=p[h],g=f[m];if(!g)return!1;for(const C of g){const{tag:_}=C,y=_.length,v=h-y+1;if(y>1&&!Ag(p,v,_,0,y)||p[v-1]===" ")continue;const w=p[h+1];if(C.intraword===!1&&w&&!Ca.test(w))continue;const k=u;let b=k,x=sp(p,v,_),S=b;for(;x<0&&(S=S.getPreviousSibling())&&!so(S);)if(Q(S)){if(S.hasFormat("code"))continue;const K=S.getTextContent();b=S,x=sp(K,K.length,_)}if(x<0||b===k&&x+y===v)continue;const A=b.getTextContent();if(x>0&&A[x-1]===m)continue;const T=A[x-1];if(C.intraword===!1&&T&&!Ca.test(T))continue;const I=k.getTextContent(),$=I.slice(0,v)+I.slice(h+1);k.setTextContent($);const M=b===k?$:A;b.setTextContent(M.slice(0,x)+M.slice(x+y));const B=te(),P=Ja();nt(P);const R=h-y*(b===k?2:1)+1;P.anchor.set(b.__key,x,"text"),P.focus.set(k.__key,R,"text");for(const K of C.format)P.hasFormat(K)||P.formatText(K);P.anchor.set(P.focus.key,P.focus.offset,P.focus.type);for(const K of C.format)P.hasFormat(K)&&P.toggleFormat(K);return W(B)&&(P.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(sm)||a.has(da)||t.isComposing())return;const d=c.read(te),f=u.read(te);if(!W(f)||!W(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,h=d.anchor.offset,m=c._nodeMap.get(p);!Q(m)||!l.has(p)||h!==1&&h>f.anchor.offset+1||t.update(()=>{if(!Mo(m))return;const g=m.getParent();g===null||al(g)||s(g,m,d.anchor.offset)})})}function Aue(t,e=Yu,n,o=!1,r=!1){const s=o?t:function(a,l=!1){const c=a.split(`
51
51
  `);let u=!1;const d=[];for(let f=0;f<c.length;f++){const p=c[f].trimEnd(),h=d[d.length-1];hue.test(p)?d.push(p):gg.test(p)||Hc.test(p)?(u=!u,d.push(p)):u||p===""||h===""||!h||qc.test(h)||qc.test(p)||mg.test(p)||pg.test(p)||hg.test(p)||pue.test(p)||mue.test(p)||gue.test(p)||!l||op.test(p)||rp.test(p)||ip(rp).test(h)||ip(op).test(h)||Hc.test(h)?d.push(p):d[d.length-1]=h+" "+p.trimStart()}return d.join(`
52
52
  `)}(t,r);return cue(e,o)(s,n)}function Nue(t=Yu,e,n=!1){return function(r,s=!1){const a=Ku(r),l=[...a.multilineElement,...a.element],c=!s,u=a.textFormat.filter(d=>d.format.length===1).sort((d,f)=>Number(d.format.includes("code"))-Number(f.format.includes("code")));return d=>{const f=[],p=(d||Le()).getChildren();for(let h=0;h<p.length;h++){const m=p[h],g=aue(m,l,u,a.textMatch);g!=null&&f.push(c&&h>0&&!Uc(m)&&!Uc(p[h-1])?`
53
53
  `.concat(g):g)}return f.join(`
54
- `)}}(t,n)(e)}var Due=process.env.NODE_ENV==="production",oc="Invariant failed";function Mue(t,e){if(!t){if(Due)throw new Error(oc);var n=typeof e=="function"?e():e,o=n?"".concat(oc,": ").concat(n):oc;throw new Error(o)}}const Ng=Symbol("LexicalEditor"),Bue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:h}=a.initialConfig,m=Vle({editable:a.initialConfig.editable,html:h,namespace:u,nodes:d,theme:c,onError(C){s("error",C,m),f==null||f(C,m)}});g(m,p);function g(C,_){if(_!==null){if(_===void 0)C.update(()=>{const y=Le();if(y.isEmpty()){const v=De();y.append(v);const w=vce?document.activeElement:null;(te()!==null||w!==null&&w===C.getRootElement())&&v.select()}},l);else if(_!==null)switch(typeof _){case"string":{const y=C.parseEditorState(_);C.setEditorState(y,l);break}case"object":C.setEditorState(_,l);break;case"function":C.update(()=>{Le().isEmpty()&&_(C)},l);break}}}return i.provide(Ng,m),i.onMounted(()=>{const C=a.initialConfig.editable;m.setEditable(C!==void 0?C:!0)}),(C,_)=>i.renderSlot(C.$slots,"default")}});return t.__vue_vine=!0,t})();function Gr(){const t=i.inject(Ng,null);return t||Mue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function $ue(t,e){if(t==null)return{};var n=Oue(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Oue(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);return n}const Lue=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=i.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>$ue(s,["editor"]));i.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function Iue(){return Le().getTextContent()}function Pue(t,e=!0){if(t)return!1;let n=Iue();return e&&(n=n.trim()),n===""}function Fue(t){if(!Pue(t,!1))return!1;const e=Le().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Ce(r))return!1;if(R(r)){if(!ls(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Dg(t){return()=>Fue(t)}function Rue(t){return t.getEditorState().read(Dg(t.isComposing()))}function Mg(t){const e=t.getEditorState().read(Dg(t.isComposing())),n=i.ref(e);function o(){const r=Rue(t);n.value=r}return i.onMounted(()=>{const r=ds(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Vue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Vue(t,r,n[r])})}return t}function Uue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function que(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Uue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Hue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const s=Gr(),a=i.ref(!1),l=Mg(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(Lue),i.mergeProps({editor:i.unref(s)},que(zue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function jue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(W(s)&&W(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(_,y,v){const w=_._nodeMap,k=[];for(const b of y){const E=w.get(b);E!==void 0&&k.push(E)}for(const[b,E]of v){if(!E)continue;const S=w.get(b);S===void 0||Re(S)||k.push(S)}return k}(e,n,o);if(l.length===0)return 0;if(l.length>1){const _=e._nodeMap,y=_.get(s.anchor.key),v=_.get(a.anchor.key);return y&&v&&!t._nodeMap.has(y.__key)&&Q(y)&&y.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,h=a.anchor;if(p.key!==h.key||p.type!=="text")return 0;const m=p.offset,g=h.offset,C=f.length-d.length;return C===1&&g===m-1?2:C===-1&&g===m+1?3:C===-1&&g===m?4:0}function Wue(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(da))return o=0,n=d,2;const f=jue(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(_le);if(!m&&h&&u.has(Ai))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const C=typeof e=="number"?e:e.peek();return m===!1&&f!==0&&f===o&&d<n+C&&h||l.size===1&&function(_,y,v){const w=y._nodeMap.get(_),k=v._nodeMap.get(_),b=y._selection,E=v._selection;return!(W(b)&&W(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!Q(w)||!Q(k)||w.__parent!==k.__parent)&&JSON.stringify(y.read(()=>w.exportJSON()))===JSON.stringify(v.read(()=>k.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function ap(t){t.undoStack=[],t.redoStack=[],t.current=null}function Zue(t,e,n){const o=Wue(t,n);return ds(t.registerCommand(_u,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Ms,!0)),c.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:da})}}(t,e),!0),ye),t.registerCommand(Cu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Bs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ms,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:da})}}(t,e),!0),ye),t.registerCommand(ple,()=>(ap(e),!1),ye),t.registerCommand(hle,()=>(ap(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),ye),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,h=d===null?null:d.editorState;if(d!==null&&s===h)return;const m=o(a,s,d,l,c,u);if(m===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ms,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Bs,!0));else if(m===2)return;e.current={editor:t,editorState:s}}))}function Kue(){return{current:null,redoStack:[],undoStack:[]}}function Gue(t,e,n){const o=i.computed(()=>i.toValue(e)||Kue());i.watchEffect(r=>{const s=Zue(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const Yue=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return Gue(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function Jue(t){i.onMounted(()=>{const e=Dce(t);i.onUnmounted(()=>{e()})})}const Xue=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([or,Co]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Mce(s);a(l)}),Jue(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function Que(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const ede=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=Que(t);return()=>e.value}});function tde(t){i.onMounted(()=>{const e=ds(Gce(t),zce(t));i.onUnmounted(e)})}const nde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Mg(r);return tde(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(ede))],64))}});return t.__vue_vine=!0,t})(),rc=[_g,Cg,bg,kg,Eg,xg,Tg,Sg,wg],ode={class:"ao-lexical-editor__placeholder"},Bg=i.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown"],setup(t,{expose:e,emit:n}){const o=t,r=n,s=i.shallowRef(null),a=i.ref("paragraph"),l=i.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),c={namespace:"AoLexicalEditor",nodes:[or,Co,il,sl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Aue(o.initialMarkdown||"",rc)},onError(b){console.error("Lexical error:",b)}},u=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:b=>!0,blockStyleChange:b=>!0},setup(b,{emit:E}){const S=Gr();let T=null,A=null;const z=()=>{S.getEditorState().read(()=>{const L=te();if(!W(L))return;const M=L.anchor.getNode(),B=M.getKey()==="root"?M:M.getTopLevelElementOrThrow();if(sg(B)){const I=B.getTag();if(I==="h1"||I==="h2"||I==="h3"){E("blockStyleChange",I);return}}if(al(B)){E("blockStyleChange","code");return}E("blockStyleChange","paragraph")})};return i.onMounted(()=>{E("ready",S),z(),A=Tue(S,rc),T=S.registerUpdateListener(()=>{z()})}),i.onUnmounted(()=>{A==null||A(),T==null||T()}),()=>null}});function d(b){s.value=b,r("ready",b)}function f(b){r("keydown",b)}function p(){var b;(b=s.value)==null||b.dispatchCommand(Vt,"bold")}function h(){var b;(b=s.value)==null||b.dispatchCommand(Vt,"italic")}function m(){var b;(b=s.value)==null||b.dispatchCommand(Vt,"strikethrough")}function g(){var b;(b=s.value)==null||b.dispatchCommand(Vt,"code")}function C(){var b;(b=s.value)==null||b.dispatchCommand(Jm,void 0)}function _(){var b;(b=s.value)==null||b.dispatchCommand(Xm,void 0)}function y(b){const E=s.value;E&&(E.update(()=>{const S=te();if(W(S)){if(S.isCollapsed()||S.focus.set(S.anchor.key,S.anchor.offset,S.anchor.type),b==="paragraph"){Ql(S,()=>De());return}if(b==="code"){Ql(S,()=>vn());return}Ql(S,()=>Io(b))}}),E.focus(),a.value=b)}function v(){const b=s.value;return b?b.getEditorState().read(()=>Nue(rc)):""}function w(){const b=s.value;b&&b.update(()=>{const E=Le();E.clear(),E.append(De())})}function k(){var b;(b=s.value)==null||b.focus()}return e({toggleBold:p,toggleItalic:h,toggleStrikethrough:m,toggleInlineCode:g,insertBulletList:C,insertNumberedList:_,setBlockStyle:y,getMarkdown:v,clear:w,focus:k,blockStyle:a}),(b,E)=>(i.openBlock(),i.createBlock(i.unref(Bue),{"initial-config":c},{default:i.withCtx(()=>[i.renderSlot(b.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",l.value])},[i.createVNode(i.unref(nde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Hue),{class:"ao-lexical-editor__content",onKeydown:f},{placeholder:i.withCtx(()=>[i.createElementVNode("div",ode,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(Yue)),i.createVNode(i.unref(Xue)),i.createVNode(i.unref(u),{onReady:d,onBlockStyleChange:E[0]||(E[0]=S=>a.value=S)})]),_:3}))}});function rde(t,e){const n=i.ref(""),o=i.ref(!1),r=i.ref({top:0,left:0}),s=i.ref(0),a=i.computed(()=>e.value.filter(m=>m.firstName||m.lastName).map(m=>({id:m.id,name:Bp(m)}))),l=i.computed(()=>a.value.filter(m=>m.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const m=te();if(!W(m)||!m.isCollapsed()){c();return}const g=m.anchor.getNode();if(!Q(g)){c();return}const _=g.getTextContent().slice(0,m.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!_){c();return}n.value=_[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const m=t.value;if(!m||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const C=g.getRangeAt(0),_=C.getClientRects().item(0)??C.getBoundingClientRect(),y=m.getRootElement();if(!y)return;const v=y.getBoundingClientRect();r.value={top:_.bottom-v.top+4,left:_.left-v.left}}function f(m){const g=t.value;g&&(g.update(()=>{const C=te();if(!W(C)||!C.isCollapsed())return;const _=C.anchor.getNode();if(!Q(_))return;const y=_.getTextContent(),v=C.anchor.offset,k=y.slice(0,v).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!k)return;const b=v-k[0].length,E=`@${m} `,S=y.slice(0,b)+E+y.slice(v);_.setTextContent(S);const T=b+E.length;C.anchor.set(_.getKey(),T,"text"),C.focus.set(_.getKey(),T,"text")}),c(),g.focus())}function p(m){if(!o.value)return!1;switch(m.key){case"ArrowDown":return m.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return m.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;m.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return m.preventDefault(),c(),!0;default:return!1}}function h(){const m=t.value;if(m)return m.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:r,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:h}}const ide={key:0,class:"ao-comment-editor__toolbar"},sde=["onClick"],$g=i.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,r=n,s=i.ref(null),a=i.shallowRef(null),l=i.ref(!1),c=i.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:h,handleKeydown:m,closeMentionList:g,setupMentionTracking:C}=rde(a,c);let _,y;const v=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{_==null||_(),y!==void 0&&window.clearTimeout(y)});function w(L){a.value=L,_==null||_(),_=C()}function k(){y!==void 0&&(window.clearTimeout(y),y=void 0),l.value||(l.value=!0,r("focus"))}function b(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{var B;y=void 0;const L=(B=a.value)==null?void 0:B.getRootElement(),M=document.activeElement;L&&M instanceof Node&&L.contains(M)||l.value&&(l.value=!1,r("blur"))},100)}function E(L){if(!m(L)){if(L.key==="Enter"&&(L.ctrlKey||L.metaKey)){L.preventDefault(),S();return}if(L.key==="Escape"){if(u.value){g();return}L.preventDefault(),T()}}}function S(){const L=s.value;if(!L)return;const M=L.getMarkdown();M.trim()&&r("submit",M)}function T(){g(),r("cancel")}function A(){var L;(L=s.value)==null||L.clear(),g()}function z(){var L;(L=s.value)==null||L.focus()}return e({submit:S,cancel:T,reset:A,focus:z}),(L,M)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[v.value?(i.openBlock(),i.createElementBlock("div",ide,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:M[0]||(M[0]=i.withModifiers(()=>{},["prevent"])),onClick:M[1]||(M[1]=B=>{var I;return(I=s.value)==null?void 0:I.toggleBold()})},[...M[14]||(M[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:M[2]||(M[2]=i.withModifiers(()=>{},["prevent"])),onClick:M[3]||(M[3]=B=>{var I;return(I=s.value)==null?void 0:I.toggleItalic()})},[...M[15]||(M[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:M[4]||(M[4]=i.withModifiers(()=>{},["prevent"])),onClick:M[5]||(M[5]=B=>{var I;return(I=s.value)==null?void 0:I.toggleStrikethrough()})},[...M[16]||(M[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:M[6]||(M[6]=i.withModifiers(()=>{},["prevent"])),onClick:M[7]||(M[7]=B=>{var I;return(I=s.value)==null?void 0:I.toggleInlineCode()})},[...M[17]||(M[17]=[i.createElementVNode("span",null,"</>",-1)])],32),M[18]||(M[18]=i.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:M[8]||(M[8]=i.withModifiers(()=>{},["prevent"])),onClick:M[9]||(M[9]=B=>{var I;return(I=s.value)==null?void 0:I.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:M[10]||(M[10]=i.withModifiers(()=>{},["prevent"])),onClick:M[11]||(M[11]=B=>{var I;return(I=s.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:k,onFocusout:b},[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:w,onKeydown:E},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(B,I)=>(i.openBlock(),i.createElementBlock("li",{key:B.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":I===i.unref(p)}),onMousedown:M[12]||(M[12]=i.withModifiers(()=>{},["prevent"])),onClick:F=>i.unref(h)(B.name)}," @"+i.toDisplayString(B.name),43,sde))),128))],4)):i.createCommentVNode("",!0),t.showSubmitButton?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:M[13]||(M[13]=i.withModifiers(()=>{},["prevent"])),onClick:S},[i.createVNode(Se,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const ade={class:"ao-comment"},lde={class:"ao-comment__created-at"},cde={class:"ao-comment__body"},ude={class:"ao-comment__content-wrapper"},dde={key:0,class:"ao-comment__footer"},fde=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const m=n.user;return m?`${m.firstName??""}${m.firstName?" ":""}${m.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const m=n.editedAt&&Li(n.editedAt),g=Li(n.createdAt),C=new Date,_=m??g;return _&&L7(_,C)});i.watch(()=>n.content,m=>{s.value||(a.value=m)});function u(){a.value=n.content,s.value=!0,i.nextTick(()=>{var m;(m=l.value)==null||m.focus()})}function d(m){o("edit",m),s.value=!1}function f(){var m;(m=l.value)==null||m.submit()}function p(){s.value=!1,a.value=n.content}function h(){o("remove")}return(m,g)=>{var C;return i.openBlock(),i.createElementBlock("li",ade,[i.createElementVNode("span",lde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(Un,{key:0,"avatar-url":(C=t.user)==null?void 0:C.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",cde,[i.createElementVNode("div",ude,[s.value?(i.openBlock(),i.createBlock($g,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:p},null,8,["initial-markdown","mentionable-users"])):(i.openBlock(),i.createBlock(Ch,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",dde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(he,{label:m.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(he,{label:m.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const pde={class:"ao-comments__new"},hde={key:0,class:"ao-comments__list"},mde=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[...n.comments].sort((f,p)=>xy(Li(f.createdAt),Li(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var h;if(!f.trim())return;const p=wd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(h=l.value)==null||h.reset()}function u(f,p){const h=wd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:h})}function d(f){o("removeComment",{id:f})}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",pde,[i.createVNode($g,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),r.value.length>0?(i.openBlock(),i.createElementBlock("ul",hde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,h=>(i.openBlock(),i.createBlock(fde,{key:h.id,user:s(h.author.id),content:h.message,"created-at":h.createdAt,"edited-at":h.updatedAt,"is-editable":h.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:m=>u(h.id,m),onRemove:()=>d(h.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0)],512))}});const Og=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(he,{color:t.modelValue?t.color:i.unref(Wc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),gde=i.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const vde=["onClick"],yde={class:"tab-button__label"},_de={key:0,class:"tab-button__badge"};function Cde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",yde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",_de,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,vde))),128))],2)}const fs=oe(gde,[["render",Cde],["__scopeId","data-v-3d268d7b"]]),bde={class:"ao-rich-text-editor"},kde={class:"ao-rich-text-editor__toolbar"},wde=["value"],Ede={class:"ao-rich-text-editor__actions"},xde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(l){var u;const c=l.target;(u=o.value)==null||u.setBlockStyle(c.value)}function s(){const l=o.value;l&&n("save",l.getMarkdown())}function a(){n("cancel")}return(l,c)=>(i.openBlock(),i.createElementBlock("div",bde,[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:i.withCtx(()=>{var u;return[i.createElementVNode("div",kde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(u=o.value)==null?void 0:u.blockStyle,onChange:r},[...c[12]||(c[12]=[i.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),i.createElementVNode("option",{value:"h1"},"Heading 1",-1),i.createElementVNode("option",{value:"h2"},"Heading 2",-1),i.createElementVNode("option",{value:"h3"},"Heading 3",-1),i.createElementVNode("option",{value:"code"},"Code block",-1)])],40,wde),c[17]||(c[17]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:c[0]||(c[0]=i.withModifiers(()=>{},["prevent"])),onClick:c[1]||(c[1]=d=>{var f;return(f=o.value)==null?void 0:f.toggleBold()})},[...c[13]||(c[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:c[2]||(c[2]=i.withModifiers(()=>{},["prevent"])),onClick:c[3]||(c[3]=d=>{var f;return(f=o.value)==null?void 0:f.toggleItalic()})},[...c[14]||(c[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:c[4]||(c[4]=i.withModifiers(()=>{},["prevent"])),onClick:c[5]||(c[5]=d=>{var f;return(f=o.value)==null?void 0:f.toggleStrikethrough()})},[...c[15]||(c[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:c[6]||(c[6]=i.withModifiers(()=>{},["prevent"])),onClick:c[7]||(c[7]=d=>{var f;return(f=o.value)==null?void 0:f.toggleInlineCode()})},[...c[16]||(c[16]=[i.createElementVNode("span",null,"</>",-1)])],32),c[18]||(c[18]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:c[8]||(c[8]=i.withModifiers(()=>{},["prevent"])),onClick:c[9]||(c[9]=d=>{var f;return(f=o.value)==null?void 0:f.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:c[10]||(c[10]=i.withModifiers(()=>{},["prevent"])),onClick:c[11]||(c[11]=d=>{var f;return(f=o.value)==null?void 0:f.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),i.createElementVNode("div",Ede,[i.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Sde={class:"ao-activity-details"},Tde={class:"ao-activity-details__main"},Ade={class:"ao-activity-details__header"},Nde={key:1,class:"ao-activity__category"},Dde={class:"ao-feed__activity-details__header"},Mde={key:0,class:"ao-field ao-feed__activity-details__project"},Bde={class:"ao-field__label"},$de={key:1,class:"ao-field ao-feed__activity-details__project"},Ode={class:"ao-field__label"},Lde={class:"ao-activity-details__content"},Ide={class:"ao-activity-details__tab-content"},Pde={class:"ao-fieldset"},Fde={class:"ao-field__row"},Rde={class:"ao-activity-details__tab-content"},Vde={class:"ao-fieldset"},zde={class:"ao-fieldset__body"},Ude={class:"ao-activity-details__tab-content"},qde={key:0,class:"ao-fieldset"},Hde={class:"ao-activity-details__aside"},jde={class:"ao-activity-details__close-button"},Wde={key:0,class:"ao-activity-details__aside-section"},Zde={class:"ao-field"},Kde={class:"ao-field__label"},Gde={class:"ao-activity-details__aside-section"},Yde={class:"ao-field ao-field--multiselect"},Jde={class:"assignee-inline"},Xde={class:"ao-field__label"},Qde={class:"ao-activity-details__aside-section"},e1e={key:0,class:"ao-field__row"},t1e={class:"ao-field"},n1e={class:"ao-field__label"},o1e=["readonly"],r1e={class:"ao-activity-details__aside-section"},i1e={class:"ao-field__row"},s1e={class:"ao-field ao-field--inline"},a1e={class:"ao-field__label"},l1e=["readonly"],c1e={class:"ao-field__row"},u1e={class:"ao-field ao-field--inline"},d1e={class:"ao-field__label"},f1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},p1e={class:"ao-activity-details__aside-section"},h1e={class:"ao-fieldset ao-activity-details__aside-section"},m1e={class:"ao-fieldset__title"},g1e={class:"ao-fieldset__body"},v1e={class:"ao-field__row"},y1e={class:"ao-field ao-field--multiselect"},_1e={class:"ao-field__label"},C1e={class:"ao-field__row"},b1e={class:"ao-field ao-field--multiselect"},k1e={class:"ao-field__label"},Ju=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=Hn(),s=i.ref("description"),a=i.computed(()=>{var O,Y;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((O=n.activity.tasks)==null?void 0:O.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((Y=n.activity.comments)==null?void 0:Y.length)??0}]}),l=i.computed(()=>{var O;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((O=n.activity.assignee)==null?void 0:O.id):!1}),c=i.ref(!1),u=O=>{o("update:activity",{id:n.activity.id,name:O})},d=i.computed(()=>n.activity.description??""),f=()=>{l.value&&(c.value=!0)},p=O=>{o("update:activity",{id:n.activity.id,description:O}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const m=i.computed({get(){return n.activity.estimation??0},set(O){o("update:activity",{id:n.activity.id,estimation:O})}}),g=i.computed({get(){var Y;const O=(Y=n.timeTrackingData)==null?void 0:Y[n.activity.id];return(O==null?void 0:O.timeSpent)??0},set(){}}),C=i.computed(()=>{var Y;return((Y=n.activity.project)==null?void 0:Y.estimationUnit)==="days"?"d":"h"}),_=i.computed(()=>{var Y;const O=(Y=n.activity.project)==null?void 0:Y.estimationUnit;return Aa(g.value,O)}),y=i.computed({get(){return n.activity.important??!1},set(O){o("update:activity",{id:n.activity.id,important:O})}});i.computed({get(){return n.activity.private??!1},set(O){o("update:activity",{id:n.activity.id,private:O})}});const v=i.computed({get(){return n.activity.deadline},set(O){o("update:activity",{id:n.activity.id,deadline:O})}});i.computed(()=>{var O;return(O=n.activityTypes)==null?void 0:O.map(Y=>({label:Y.name,value:Y.id}))}),i.computed({get(){var O;return(O=n.activity.type)==null?void 0:O.id},set(O){o("update:activity",{id:n.activity.id,typeId:O})}});const w=i.computed(()=>n.templateActivities.filter(O=>O.id!==n.activity.id).map(O=>({label:O.name,value:O.id}))),k=i.computed({get(){var O;return(O=n.activity.dependingOn)==null?void 0:O.map(Y=>Y.id)},set(O){O&&o("update:activity",{id:n.activity.id,dependingOn:O})}}),b=i.computed(()=>w.value.map(O=>{var Y;return{...O,disabled:(Y=n.activity.blocking)==null?void 0:Y.some(ge=>ge.id===O.value)}})),E=i.computed({get(){var O;return(O=n.activity.blocking)==null?void 0:O.map(Y=>Y.id)},set(O){O&&o("update:activity",{id:n.activity.id,blocking:O})}}),S=i.computed(()=>w.value.map(O=>{var Y;return{...O,disabled:(Y=n.activity.dependingOn)==null?void 0:Y.some(ge=>ge.id===O.value)}})),T=O=>{o("addSubtask",O)},A=O=>{o("updateSubtask",O)},z=O=>{o("deleteSubtask",O)};function L(){n.userId?I.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function M(O){I.value=[O]}const B=i.computed(()=>{var Y;const O=new Map;return(Y=n.users)==null||Y.forEach(ge=>{O.has(ge.id)||O.set(ge.id,ge)}),Array.from(O.values()).map(ge=>({label:`${ge.firstName} ${ge.lastName}`,value:ge.id,avatar:ge.avatarUrl}))}),I=i.computed({get(){var O,Y;return(O=n.activity.assignee)!=null&&O.id?[(Y=n.activity.assignee)==null?void 0:Y.id]:[]},set(O){o("update:activity",{id:n.activity.id,assigneeId:O[0]??null})}}),F=O=>{o("addFiles",{activityId:n.activity.id,files:O})},K=O=>{o("removeFile",{activityId:n.activity.id,file:O})},P=i.computed(()=>n.projects.map(O=>({value:O.id,label:O.name}))),D=i.computed(()=>{var Y,ge,qe;const O=(qe=(ge=(Y=n.activity)==null?void 0:Y.project)==null?void 0:ge.phases)==null?void 0:qe.reduce((de,_e)=>[...de,..._e.milestones],[]);return O==null?void 0:O.map(de=>({value:de.id,label:de.name}))}),G=O=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:O})},V=O=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:O})},H=i.computed(()=>{var O;return(O=n.statuses)==null?void 0:O.map(Y=>({value:Y.id,label:Y.name}))}),ce=O=>{o("update:activity",{id:n.activity.id,statusId:O})},ee=O=>{o("addComment",{...O,activityId:n.activity.id})},ie=O=>{o("updateComment",O)},U=O=>{o("removeComment",O)};i.computed(()=>{var O,Y;return((O=n.activity.createdBy)==null?void 0:O.firstName)&&((Y=n.activity.createdBy)==null?void 0:Y.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ne(){const O=window.location.origin,Y=n.activity.slug,ge=`${O}/activity-feed/slug/${Y}`;navigator.clipboard.writeText(ge).then(()=>{console.log(`Link copied to clipboard: ${ge}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(O,Y)=>(i.openBlock(),i.createBlock(Da,{onClose:Y[8]||(Y[8]=ge=>O.$emit("close"))},{default:i.withCtx(()=>{var ge,qe,de;return[i.createElementVNode("div",Sde,[i.createElementVNode("div",Tde,[i.createElementVNode("div",Ade,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:ne},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",Nde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(st,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":u},null,8,["title","is-editable"]),i.createElementVNode("div",Dde,[P.value?(i.openBlock(),i.createElementBlock("label",Mde,[i.createElementVNode("span",Bde,i.toDisplayString(O.$t("activity.project.label")),1),i.createVNode(Dt,{options:P.value,value:(ge=t.activity.project)==null?void 0:ge.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:G},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createElementBlock("label",$de,[i.createElementVNode("span",Ode,i.toDisplayString(O.$t("activity.milestone.label")),1),i.createVNode(Dt,{options:D.value,value:(qe=t.activity.milestone)==null?void 0:qe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:V},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(O.$slots,"header")]),i.createElementVNode("div",Lde,[i.createVNode(fs,{modelValue:s.value,"onUpdate:modelValue":Y[0]||(Y[0]=_e=>s.value=_e),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",Ide,[i.createElementVNode("fieldset",Pde,[i.createElementVNode("div",Fde,[i.createVNode(V9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:F,onRemove:K},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(xde,{key:1,"initial-markdown":d.value,onSave:p,onCancel:h},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:f},[i.createVNode(Ch,{content:d.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",Rde,[i.createElementVNode("fieldset",Vde,[i.createElementVNode("div",zde,[i.createVNode(N9,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":l.value,"is-template":t.isTemplate,onAdd:T,onUpdate:A,onDelete:z},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",Ude,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",qde,[i.createVNode(mde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ee,onUpdateComment:ie,onRemoveComment:U},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",Hde,[i.createElementVNode("div",jde,[i.createVNode(Se,{name:"CloseRounded",onClick:Y[1]||(Y[1]=_e=>O.$emit("close"))})]),H.value?(i.openBlock(),i.createElementBlock("div",Wde,[i.createElementVNode("label",Zde,[i.createElementVNode("span",Kde,i.toDisplayString(O.$t("activity.status.label")),1),i.createVNode(Dt,{class:"ao-activity-details__multiselect",options:H.value,value:(de=t.activity.status)==null?void 0:de.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Gde,[i.createElementVNode("div",Yde,[i.createElementVNode("div",Jde,[i.createElementVNode("span",Xde,i.toDisplayString(O.$t("activity.assignee.label")),1),i.createVNode(he,{label:O.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:L},null,8,["label"])]),i.createVNode(Dt,{modelValue:I.value,"onUpdate:modelValue":Y[2]||(Y[2]=_e=>I.value=_e),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:B.value,"close-on-select":!0,searchable:!0,placeholder:O.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:M},{tag:i.withCtx(({option:_e,handleTagRemove:we})=>[i.createVNode(Un,{"user-name":_e.label,"avatar-url":_e.avatar,"is-closable":!0,onClose:ft=>we(_e,ft)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Qde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",e1e,[i.createElementVNode("label",t1e,[i.createElementVNode("span",n1e,i.toDisplayString(O.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[3]||(Y[3]=_e=>v.value=_e),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,o1e),[[i.vModelText,v.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",r1e,[i.createElementVNode("div",i1e,[i.createElementVNode("label",s1e,[i.createElementVNode("span",a1e,i.toDisplayString(O.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[4]||(Y[4]=_e=>m.value=_e),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,l1e),[[i.vModelText,m.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",c1e,[i.createElementVNode("label",u1e,[i.createElementVNode("span",d1e,i.toDisplayString(O.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",f1e,i.toDisplayString(_.value),1)])])]),i.createElementVNode("div",p1e,[i.createVNode(Og,{modelValue:y.value,"onUpdate:modelValue":Y[5]||(Y[5]=_e=>y.value=_e),modelModifiers:{lazy:!0},label:O.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),i.createElementVNode("fieldset",h1e,[i.createElementVNode("div",m1e,[i.createVNode(Se,{name:"FlowsheetOutlineRounded"}),i.createVNode(st,{level:4,title:O.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",g1e,[i.createElementVNode("div",v1e,[i.createElementVNode("label",y1e,[i.createElementVNode("span",_1e,i.toDisplayString(O.$t("activity.dependingOn.label")),1),i.createVNode(Dt,{modelValue:k.value,"onUpdate:modelValue":Y[6]||(Y[6]=_e=>k.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",C1e,[i.createElementVNode("label",b1e,[i.createElementVNode("span",k1e,i.toDisplayString(O.$t("activity.blocking.label")),1),i.createVNode(Dt,{modelValue:E.value,"onUpdate:modelValue":Y[7]||(Y[7]=_e=>E.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(O.$slots,"default",{activity:t.activity})])])]}),_:3}))}});const w1e=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||$e.ACTIVITIES),s=i.computed({get(){return r.value},set(y){r.value=y,o("update:rule",{...n.rule,itemType:y,subItemId:void 0})}}),a=i.computed(()=>Object.values($e)),l=i.computed({get(){return n.rule.subItemId},set(y){o("update:rule",{...n.rule,subItemId:y,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var v;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(v={[$e.ACTIVITIES]:n.templateActivities,[$e.MILESTONES]:n.templateMilestones,[$e.PHASES]:n.templatePhases}[r.value])==null?void 0:v.map(w=>({value:w.id,label:w.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(y){o("update:rule",{...n.rule,comparator:y})}}),f=i.computed(()=>Object.values(fp)),p=i.toRef(n.rule.trigger),h=i.computed({get(){return p.value},set(y){o("update:rule",{...n.rule,trigger:y})}}),m=i.computed(()=>Object.values(pp)),g=i.computed({get(){return n.rule.duration},set(y){o("update:rule",{...n.rule,duration:y})}}),C=i.computed({get(){return n.rule.durationUnit},set(y){o("update:rule",{...n.rule,durationUnit:y})}}),_=i.computed(()=>Object.values(hp));return(y,v)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(to),{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=w=>s.value=w),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=w=>l.value=w),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:h.value,"onUpdate:modelValue":v[2]||(v[2]=w=>h.value=w),options:m.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=w=>d.value=w),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=w=>g.value=w),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(to),{modelValue:C.value,"onUpdate:modelValue":v[5]||(v[5]=w=>C.value=w),options:_.value},null,8,["modelValue","options"]),i.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>y.$emit("close"))})]),_:1}))}});const E1e={class:"ao-template-rules__body"},x1e={class:"ao-template-rules__list"},S1e=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Da,null,{header:i.withCtx(()=>[i.createVNode(st,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",E1e,[i.createElementVNode("ul",x1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(w1e,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(go,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Uo(t,e,n){const o=t.length,r=t.at(-1),s=r?rt.LexoRank.parse(r.rank).genNext():rt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const T1e={key:0,class:"ao-template-details"},A1e={class:"ao-template-details__body"},N1e={class:"ao-template-details__cols"},D1e={class:"ao-template-details__col"},M1e={class:"ao-list__footer"},B1e={class:"ao-template-details__col"},$1e={class:"ao-template-details__col"},Lg=i.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=i.computed(()=>{var P;return(P=o.templates)==null?void 0:P.find(D=>D.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var P;return(P=s.value)==null?void 0:P.phases},(P,D)=>{a.value&&In(P,D)});const l=i.computed(()=>{var P,D;return(D=(P=s==null?void 0:s.value)==null?void 0:P.phases)==null?void 0:D.find(G=>G.id===o.phaseId)});i.watch(()=>{var P;return(P=l.value)==null?void 0:P.milestones},(P,D)=>{a.value&&In(P,D)});const c=i.computed(()=>{var P,D;return(D=(P=l.value)==null?void 0:P.milestones)==null?void 0:D.find(G=>G.id===o.milestoneId)});i.watch(()=>{var P;return(P=c.value)==null?void 0:P.activities},(P,D)=>{a.value&&In(P,D)});const u=i.computed(()=>{var P,D;return((D=(P=s.value)==null?void 0:P.phases)==null?void 0:D.reduce((G,V)=>{const H=V.milestones||[];return[...G,...H]},[]))||[]}),d=i.computed(()=>{var P,D;return((D=(P=s.value)==null?void 0:P.phases)==null?void 0:D.reduce((G,V)=>{const ce=(V.milestones||[]).reduce((ee,ie)=>ie.activities?[...ee,...ie.activities]:ee,[]);return[...G,...ce]},[]))||[]}),f=i.computed(()=>{var P,D;return(D=(P=c.value)==null?void 0:P.activities)==null?void 0:D.find(G=>G.id===o.activityId)}),p=i.computed(()=>{var P;return((P=s.value)==null?void 0:P.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:P,rank:D}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:$e.PHASES,templateId:o.templateId,item:{name:P,rank:D}})},m=P=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:$e.TEMPLATES,data:{name:P}})},g=P=>{r("removeItem",{itemType:$e.PHASES,templateId:o.templateId,data:{id:P}})},C=(P,D)=>{r("updateItem",{templateId:o.templateId,id:P,itemType:$e.PHASES,data:{name:D}})},_=P=>{r("updateItem",P)},y=P=>{if(!l.value)return;const{name:D,rank:G}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:$e.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,item:{name:D,rank:G,phaseId:P.phaseId}})},v=P=>{r("removeItem",{itemType:$e.MILESTONES,templateId:o.templateId,phaseId:P.phaseId,data:{id:P.id}})},w=P=>{const{id:D,...G}=P;r("updateItem",{itemType:$e.MILESTONES,id:D,templateId:o.templateId,data:G})},k=P=>{const{milestoneId:D}=P;if(!c.value)return;const{name:G,rank:V}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:$e.ACTIVITIES,milestoneId:D,templateId:o.templateId,item:{name:G,rank:V,milestoneId:D}})},b=P=>{var D,G;r("removeItem",{itemType:$e.ACTIVITIES,templateId:o.templateId,phaseId:(D=l.value)==null?void 0:D.id,milestoneId:(G=c.value)==null?void 0:G.id,data:{id:P.id}})},E=P=>{const{id:D,...G}=P;r("updateItem",{itemType:$e.ACTIVITIES,id:D,templateId:o.templateId,data:G})},S=i.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},z=P=>{r("removeRule",{id:P,templateId:o.templateId})},L=P=>{var D;if(P.moved){const G=Xi(P,((D=s.value)==null?void 0:D.phases)??[]);r("updateItem",{itemType:$e.PHASES,id:P.moved.element.id,templateId:o.templateId,data:{rank:G}})}},M=P=>{!l.value||!c.value||!f.value||r("addItem",{type:$e.TASKS,activityId:P.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:P})},B=P=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:$e.TASKS,id:P.id,templateId:o.templateId,data:P})},I=P=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:$e.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:P})},F=P=>{r("addFiles",P)},K=P=>{r("removeFile",P)};return(P,D)=>{var G,V,H,ce,ee,ie;return s.value?(i.openBlock(),i.createElementBlock("div",T1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:D[1]||(D[1]=U=>P.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(st,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":D[0]||(D[0]=U=>{m(U)})},null,8,["title"])]),_:1}),i.createElementVNode("div",A1e,[i.createElementVNode("ol",N1e,[i.createElementVNode("li",D1e,[i.createVNode(i.unref(mo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:L},{header:i.withCtx(()=>[i.createVNode(st,{title:P.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:U})=>{var ne;return[i.createVNode(Z_,{id:U.id,name:U.name,milestones:U.milestones,"is-active":((ne=l.value)==null?void 0:ne.id)===U.id,"is-draggable":!0,onClick:O=>P.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":O=>{C(U.id,O)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",M1e,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:P.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",B1e,[l.value?(i.openBlock(),i.createBlock(Y_,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(G=c.value)==null?void 0:G.id,onAddMilestone:y,onUpdateMilestone:w,onUpdatePhase:_,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",$1e,[l.value&&c.value?(i.openBlock(),i.createBlock(Q_,{key:0,"template-id":t.templateId,"phase-id":(V=l.value)==null?void 0:V.id,milestone:c.value,"activity-id":(H=f.value)==null?void 0:H.id,onAddActivity:k,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Ju,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(ee=c.value)==null?void 0:ee.name}`,"milestone-id":(ie=c.value)==null?void 0:ie.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"onUpdate:activity":D[2]||(D[2]=U=>{f.value&&E(U)}),"attachment-enabled":!1,onClose:P.$router.back,onAddSubtask:M,onUpdateSubtask:B,onDeleteSubtask:I,onAddFiles:F,onRemoveFile:K},{default:i.withCtx(U=>[i.renderSlot(P.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(U)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[S.value?(i.openBlock(),i.createBlock(S1e,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:T,onAddRule:A,onRemoveRule:z},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const O1e={class:"ao-card__content"},L1e={key:0,class:"ao-card__header"},I1e={class:"ao-card__body"},P1e={key:1,class:"ao-card__footer"},cl=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",O1e,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",L1e,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",I1e,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",P1e,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const ul=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
54
+ `)}}(t,n)(e)}var Due=process.env.NODE_ENV==="production",oc="Invariant failed";function Mue(t,e){if(!t){if(Due)throw new Error(oc);var n=typeof e=="function"?e():e,o=n?"".concat(oc,": ").concat(n):oc;throw new Error(o)}}const Ng=Symbol("LexicalEditor"),Bue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:h}=a.initialConfig,m=Vle({editable:a.initialConfig.editable,html:h,namespace:u,nodes:d,theme:c,onError(C){s("error",C,m),f==null||f(C,m)}});g(m,p);function g(C,_){if(_!==null){if(_===void 0)C.update(()=>{const y=Le();if(y.isEmpty()){const v=De();y.append(v);const w=vce?document.activeElement:null;(te()!==null||w!==null&&w===C.getRootElement())&&v.select()}},l);else if(_!==null)switch(typeof _){case"string":{const y=C.parseEditorState(_);C.setEditorState(y,l);break}case"object":C.setEditorState(_,l);break;case"function":C.update(()=>{Le().isEmpty()&&_(C)},l);break}}}return i.provide(Ng,m),i.onMounted(()=>{const C=a.initialConfig.editable;m.setEditable(C!==void 0?C:!0)}),(C,_)=>i.renderSlot(C.$slots,"default")}});return t.__vue_vine=!0,t})();function Gr(){const t=i.inject(Ng,null);return t||Mue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function $ue(t,e){if(t==null)return{};var n=Oue(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Oue(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);return n}const Lue=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=i.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>$ue(s,["editor"]));i.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function Iue(){return Le().getTextContent()}function Pue(t,e=!0){if(t)return!1;let n=Iue();return e&&(n=n.trim()),n===""}function Fue(t){if(!Pue(t,!1))return!1;const e=Le().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Ce(r))return!1;if(V(r)){if(!ls(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Dg(t){return()=>Fue(t)}function Rue(t){return t.getEditorState().read(Dg(t.isComposing()))}function Mg(t){const e=t.getEditorState().read(Dg(t.isComposing())),n=i.ref(e);function o(){const r=Rue(t);n.value=r}return i.onMounted(()=>{const r=ds(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Vue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Vue(t,r,n[r])})}return t}function Uue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function que(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Uue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Hue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const s=Gr(),a=i.ref(!1),l=Mg(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(Lue),i.mergeProps({editor:i.unref(s)},que(zue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function jue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(W(s)&&W(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(_,y,v){const w=_._nodeMap,k=[];for(const b of y){const x=w.get(b);x!==void 0&&k.push(x)}for(const[b,x]of v){if(!x)continue;const S=w.get(b);S===void 0||Re(S)||k.push(S)}return k}(e,n,o);if(l.length===0)return 0;if(l.length>1){const _=e._nodeMap,y=_.get(s.anchor.key),v=_.get(a.anchor.key);return y&&v&&!t._nodeMap.has(y.__key)&&Q(y)&&y.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,h=a.anchor;if(p.key!==h.key||p.type!=="text")return 0;const m=p.offset,g=h.offset,C=f.length-d.length;return C===1&&g===m-1?2:C===-1&&g===m+1?3:C===-1&&g===m?4:0}function Wue(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(da))return o=0,n=d,2;const f=jue(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(_le);if(!m&&h&&u.has(Ai))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const C=typeof e=="number"?e:e.peek();return m===!1&&f!==0&&f===o&&d<n+C&&h||l.size===1&&function(_,y,v){const w=y._nodeMap.get(_),k=v._nodeMap.get(_),b=y._selection,x=v._selection;return!(W(b)&&W(x)&&b.anchor.type==="element"&&b.focus.type==="element"&&x.anchor.type==="text"&&x.focus.type==="text"||!Q(w)||!Q(k)||w.__parent!==k.__parent)&&JSON.stringify(y.read(()=>w.exportJSON()))===JSON.stringify(v.read(()=>k.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function ap(t){t.undoStack=[],t.redoStack=[],t.current=null}function Zue(t,e,n){const o=Wue(t,n);return ds(t.registerCommand(_u,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Ms,!0)),c.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:da})}}(t,e),!0),ye),t.registerCommand(Cu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Bs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ms,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:da})}}(t,e),!0),ye),t.registerCommand(ple,()=>(ap(e),!1),ye),t.registerCommand(hle,()=>(ap(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),ye),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,h=d===null?null:d.editorState;if(d!==null&&s===h)return;const m=o(a,s,d,l,c,u);if(m===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ms,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Bs,!0));else if(m===2)return;e.current={editor:t,editorState:s}}))}function Kue(){return{current:null,redoStack:[],undoStack:[]}}function Gue(t,e,n){const o=i.computed(()=>i.toValue(e)||Kue());i.watchEffect(r=>{const s=Zue(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const Yue=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return Gue(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function Jue(t){i.onMounted(()=>{const e=Dce(t);i.onUnmounted(()=>{e()})})}const Xue=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([or,Co]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Mce(s);a(l)}),Jue(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function Que(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const ede=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=Que(t);return()=>e.value}});function tde(t){i.onMounted(()=>{const e=ds(Gce(t),zce(t));i.onUnmounted(e)})}const nde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Mg(r);return tde(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(ede))],64))}});return t.__vue_vine=!0,t})(),rc=[_g,Cg,bg,kg,Eg,xg,Tg,Sg,wg],ode={class:"ao-lexical-editor__placeholder"},Bg=i.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown"],setup(t,{expose:e,emit:n}){const o=t,r=n,s=i.shallowRef(null),a=i.shallowRef(null),l=i.ref("paragraph"),c=i.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[or,Co,il,sl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Aue(o.initialMarkdown||"",rc)},onError(T){console.error("Lexical error:",T)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:T=>!0,blockStyleChange:T=>!0,selectionChange:T=>!0},setup(T,{emit:I}){const $=Gr();let M=null,B=null;function P(){$.getEditorState().read(()=>{const R=te();if(!W(R))return;I("selectionChange",R.clone());const K=R.anchor.getNode(),F=K.getKey()==="root"?K:K.getTopLevelElementOrThrow();if(sg(F)){const N=F.getTag();if(N==="h1"||N==="h2"||N==="h3"){I("blockStyleChange",N);return}}if(al(F)){I("blockStyleChange","code");return}I("blockStyleChange","paragraph")})}return i.onMounted(()=>{I("ready",$),P(),B=Tue($,rc),M=$.registerUpdateListener(()=>{P()})}),i.onUnmounted(()=>{B==null||B(),M==null||M()}),()=>null}});function f(T){s.value=T,r("ready",T)}function p(T){a.value=T}function h(T){r("keydown",T)}function m(){a.value&&nt(a.value.clone())}function g(T){const I=s.value;I&&(I.update(()=>{m(),T()}),I.focus())}function C(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Vt,"bold"),T.focus())}function _(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Vt,"italic"),T.focus())}function y(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Vt,"strikethrough"),T.focus())}function v(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Vt,"code"),T.focus())}function w(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Jm,void 0),T.focus())}function k(){const T=s.value;T&&(T.update(()=>{m()}),T.dispatchCommand(Xm,void 0),T.focus())}function b(T){g(()=>{const I=te();if(W(I)){if(I.isCollapsed()||I.focus.set(I.anchor.key,I.anchor.offset,I.anchor.type),T==="paragraph"){Ql(I,()=>De());return}if(T==="code"){Ql(I,()=>vn());return}Ql(I,()=>Io(T))}}),l.value=T}function x(){const T=s.value;return T?T.getEditorState().read(()=>Nue(rc)):""}function S(){const T=s.value;T&&T.update(()=>{const I=Le();I.clear(),I.append(De())})}function A(){var T;(T=s.value)==null||T.focus()}return e({toggleBold:C,toggleItalic:_,toggleStrikethrough:y,toggleInlineCode:v,insertBulletList:w,insertNumberedList:k,setBlockStyle:b,getMarkdown:x,clear:S,focus:A,blockStyle:l}),(T,I)=>(i.openBlock(),i.createBlock(i.unref(Bue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(T.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(nde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Hue),{class:"ao-lexical-editor__content",onKeydown:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",ode,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(Yue)),i.createVNode(i.unref(Xue)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:I[0]||(I[0]=$=>l.value=$),onSelectionChange:p})]),_:3}))}});function rde(t,e){const n=i.ref(""),o=i.ref(!1),r=i.ref({top:0,left:0}),s=i.ref(0),a=i.computed(()=>e.value.filter(m=>m.firstName||m.lastName).map(m=>({id:m.id,name:Bp(m)}))),l=i.computed(()=>a.value.filter(m=>m.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const m=te();if(!W(m)||!m.isCollapsed()){c();return}const g=m.anchor.getNode();if(!Q(g)){c();return}const _=g.getTextContent().slice(0,m.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!_){c();return}n.value=_[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const m=t.value;if(!m||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const C=g.getRangeAt(0),_=C.getClientRects().item(0)??C.getBoundingClientRect(),y=m.getRootElement();if(!y)return;const v=y.getBoundingClientRect();r.value={top:_.bottom-v.top+4,left:_.left-v.left}}function f(m){const g=t.value;g&&(g.update(()=>{const C=te();if(!W(C)||!C.isCollapsed())return;const _=C.anchor.getNode();if(!Q(_))return;const y=_.getTextContent(),v=C.anchor.offset,k=y.slice(0,v).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!k)return;const b=v-k[0].length,x=`@${m} `,S=y.slice(0,b)+x+y.slice(v);_.setTextContent(S);const A=b+x.length;C.anchor.set(_.getKey(),A,"text"),C.focus.set(_.getKey(),A,"text")}),c(),g.focus())}function p(m){if(!o.value)return!1;switch(m.key){case"ArrowDown":return m.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return m.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;m.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return m.preventDefault(),c(),!0;default:return!1}}function h(){const m=t.value;if(m)return m.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:r,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:h}}const ide={key:0,class:"ao-comment-editor__toolbar"},sde=["onClick"],$g=i.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,r=n,s=i.ref(null),a=i.shallowRef(null),l=i.ref(!1),c=i.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:f,selectedIndex:p,selectUserMention:h,handleKeydown:m,closeMentionList:g,setupMentionTracking:C}=rde(a,c);let _,y;const v=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{_==null||_(),y!==void 0&&window.clearTimeout(y)});function w($){a.value=$,_==null||_(),_=C()}function k(){y!==void 0&&(window.clearTimeout(y),y=void 0),l.value||(l.value=!0,r("focus"))}function b(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{var B;y=void 0;const $=(B=a.value)==null?void 0:B.getRootElement(),M=document.activeElement;$&&M instanceof Node&&$.contains(M)||l.value&&(l.value=!1,r("blur"))},100)}function x($){if(!m($)){if($.key==="Enter"&&($.ctrlKey||$.metaKey)){$.preventDefault(),S();return}if($.key==="Escape"){if(u.value){g();return}$.preventDefault(),A()}}}function S(){const $=s.value;if(!$)return;const M=$.getMarkdown();M.trim()&&r("submit",M)}function A(){g(),r("cancel")}function T(){var $;($=s.value)==null||$.clear(),g()}function I(){var $;($=s.value)==null||$.focus()}return e({submit:S,cancel:A,reset:T,focus:I}),($,M)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[v.value?(i.openBlock(),i.createElementBlock("div",ide,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:M[0]||(M[0]=i.withModifiers(()=>{},["prevent"])),onClick:M[1]||(M[1]=B=>{var P;return(P=s.value)==null?void 0:P.toggleBold()})},[...M[14]||(M[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:M[2]||(M[2]=i.withModifiers(()=>{},["prevent"])),onClick:M[3]||(M[3]=B=>{var P;return(P=s.value)==null?void 0:P.toggleItalic()})},[...M[15]||(M[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:M[4]||(M[4]=i.withModifiers(()=>{},["prevent"])),onClick:M[5]||(M[5]=B=>{var P;return(P=s.value)==null?void 0:P.toggleStrikethrough()})},[...M[16]||(M[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:M[6]||(M[6]=i.withModifiers(()=>{},["prevent"])),onClick:M[7]||(M[7]=B=>{var P;return(P=s.value)==null?void 0:P.toggleInlineCode()})},[...M[17]||(M[17]=[i.createElementVNode("span",null,"</>",-1)])],32),M[18]||(M[18]=i.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:M[8]||(M[8]=i.withModifiers(()=>{},["prevent"])),onClick:M[9]||(M[9]=B=>{var P;return(P=s.value)==null?void 0:P.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:M[10]||(M[10]=i.withModifiers(()=>{},["prevent"])),onClick:M[11]||(M[11]=B=>{var P;return(P=s.value)==null?void 0:P.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:k,onFocusout:b},[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:w,onKeydown:x},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(B,P)=>(i.openBlock(),i.createElementBlock("li",{key:B.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":P===i.unref(p)}),onMousedown:M[12]||(M[12]=i.withModifiers(()=>{},["prevent"])),onClick:R=>i.unref(h)(B.name)}," @"+i.toDisplayString(B.name),43,sde))),128))],4)):i.createCommentVNode("",!0),t.showSubmitButton?(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:M[13]||(M[13]=i.withModifiers(()=>{},["prevent"])),onClick:S},[i.createVNode(Se,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const ade={class:"ao-comment"},lde={class:"ao-comment__created-at"},cde={class:"ao-comment__body"},ude={class:"ao-comment__content-wrapper"},dde={key:0,class:"ao-comment__footer"},fde=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const m=n.user;return m?`${m.firstName??""}${m.firstName?" ":""}${m.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const m=n.editedAt&&Li(n.editedAt),g=Li(n.createdAt),C=new Date,_=m??g;return _&&L7(_,C)});i.watch(()=>n.content,m=>{s.value||(a.value=m)});function u(){a.value=n.content,s.value=!0,i.nextTick(()=>{var m;(m=l.value)==null||m.focus()})}function d(m){o("edit",m),s.value=!1}function f(){var m;(m=l.value)==null||m.submit()}function p(){s.value=!1,a.value=n.content}function h(){o("remove")}return(m,g)=>{var C;return i.openBlock(),i.createElementBlock("li",ade,[i.createElementVNode("span",lde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(Un,{key:0,"avatar-url":(C=t.user)==null?void 0:C.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",cde,[i.createElementVNode("div",ude,[s.value?(i.openBlock(),i.createBlock($g,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:p},null,8,["initial-markdown","mentionable-users"])):(i.openBlock(),i.createBlock(Ch,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",dde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(he,{label:m.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(he,{label:m.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const pde={class:"ao-comments__new"},hde={key:0,class:"ao-comments__list"},mde=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[...n.comments].sort((f,p)=>xy(Li(f.createdAt),Li(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var h;if(!f.trim())return;const p=wd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(h=l.value)==null||h.reset()}function u(f,p){const h=wd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:h})}function d(f){o("removeComment",{id:f})}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",pde,[i.createVNode($g,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),r.value.length>0?(i.openBlock(),i.createElementBlock("ul",hde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,h=>(i.openBlock(),i.createBlock(fde,{key:h.id,user:s(h.author.id),content:h.message,"created-at":h.createdAt,"edited-at":h.updatedAt,"is-editable":h.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:m=>u(h.id,m),onRemove:()=>d(h.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0)],512))}});const Og=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(he,{color:t.modelValue?t.color:i.unref(Wc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),gde=i.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const vde=["onClick"],yde={class:"tab-button__label"},_de={key:0,class:"tab-button__badge"};function Cde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",yde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",_de,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,vde))),128))],2)}const fs=oe(gde,[["render",Cde],["__scopeId","data-v-3d268d7b"]]),bde={class:"ao-rich-text-editor"},kde={class:"ao-rich-text-editor__toolbar"},wde=["value"],Ede={class:"ao-rich-text-editor__actions"},xde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(l){var u;const c=l.target;(u=o.value)==null||u.setBlockStyle(c.value)}function s(){const l=o.value;l&&n("save",l.getMarkdown())}function a(){n("cancel")}return(l,c)=>(i.openBlock(),i.createElementBlock("div",bde,[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:i.withCtx(()=>{var u;return[i.createElementVNode("div",kde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(u=o.value)==null?void 0:u.blockStyle,onChange:r},[...c[12]||(c[12]=[i.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),i.createElementVNode("option",{value:"h1"},"Heading 1",-1),i.createElementVNode("option",{value:"h2"},"Heading 2",-1),i.createElementVNode("option",{value:"h3"},"Heading 3",-1),i.createElementVNode("option",{value:"code"},"Code block",-1)])],40,wde),c[17]||(c[17]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:c[0]||(c[0]=i.withModifiers(()=>{},["prevent"])),onClick:c[1]||(c[1]=d=>{var f;return(f=o.value)==null?void 0:f.toggleBold()})},[...c[13]||(c[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:c[2]||(c[2]=i.withModifiers(()=>{},["prevent"])),onClick:c[3]||(c[3]=d=>{var f;return(f=o.value)==null?void 0:f.toggleItalic()})},[...c[14]||(c[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:c[4]||(c[4]=i.withModifiers(()=>{},["prevent"])),onClick:c[5]||(c[5]=d=>{var f;return(f=o.value)==null?void 0:f.toggleStrikethrough()})},[...c[15]||(c[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:c[6]||(c[6]=i.withModifiers(()=>{},["prevent"])),onClick:c[7]||(c[7]=d=>{var f;return(f=o.value)==null?void 0:f.toggleInlineCode()})},[...c[16]||(c[16]=[i.createElementVNode("span",null,"</>",-1)])],32),c[18]||(c[18]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:c[8]||(c[8]=i.withModifiers(()=>{},["prevent"])),onClick:c[9]||(c[9]=d=>{var f;return(f=o.value)==null?void 0:f.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:c[10]||(c[10]=i.withModifiers(()=>{},["prevent"])),onClick:c[11]||(c[11]=d=>{var f;return(f=o.value)==null?void 0:f.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),i.createElementVNode("div",Ede,[i.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Sde={class:"ao-activity-details"},Tde={class:"ao-activity-details__main"},Ade={class:"ao-activity-details__header"},Nde={key:1,class:"ao-activity__category"},Dde={class:"ao-feed__activity-details__header"},Mde={key:0,class:"ao-field ao-feed__activity-details__project"},Bde={class:"ao-field__label"},$de={key:1,class:"ao-field ao-feed__activity-details__project"},Ode={class:"ao-field__label"},Lde={class:"ao-activity-details__content"},Ide={class:"ao-activity-details__tab-content"},Pde={class:"ao-fieldset"},Fde={class:"ao-field__row"},Rde={class:"ao-activity-details__tab-content"},Vde={class:"ao-fieldset"},zde={class:"ao-fieldset__body"},Ude={class:"ao-activity-details__tab-content"},qde={key:0,class:"ao-fieldset"},Hde={class:"ao-activity-details__aside"},jde={class:"ao-activity-details__close-button"},Wde={key:0,class:"ao-activity-details__aside-section"},Zde={class:"ao-field"},Kde={class:"ao-field__label"},Gde={class:"ao-activity-details__aside-section"},Yde={class:"ao-field ao-field--multiselect"},Jde={class:"assignee-inline"},Xde={class:"ao-field__label"},Qde={class:"ao-activity-details__aside-section"},e1e={key:0,class:"ao-field__row"},t1e={class:"ao-field"},n1e={class:"ao-field__label"},o1e=["readonly"],r1e={class:"ao-activity-details__aside-section"},i1e={class:"ao-field__row"},s1e={class:"ao-field ao-field--inline"},a1e={class:"ao-field__label"},l1e=["readonly"],c1e={class:"ao-field__row"},u1e={class:"ao-field ao-field--inline"},d1e={class:"ao-field__label"},f1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},p1e={class:"ao-activity-details__aside-section"},h1e={class:"ao-fieldset ao-activity-details__aside-section"},m1e={class:"ao-fieldset__title"},g1e={class:"ao-fieldset__body"},v1e={class:"ao-field__row"},y1e={class:"ao-field ao-field--multiselect"},_1e={class:"ao-field__label"},C1e={class:"ao-field__row"},b1e={class:"ao-field ao-field--multiselect"},k1e={class:"ao-field__label"},Ju=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=Hn(),s=i.ref("description"),a=i.computed(()=>{var L,Y;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((L=n.activity.tasks)==null?void 0:L.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((Y=n.activity.comments)==null?void 0:Y.length)??0}]}),l=i.computed(()=>{var L;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((L=n.activity.assignee)==null?void 0:L.id):!1}),c=i.ref(!1),u=L=>{o("update:activity",{id:n.activity.id,name:L})},d=i.computed(()=>n.activity.description??""),f=()=>{l.value&&(c.value=!0)},p=L=>{o("update:activity",{id:n.activity.id,description:L}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const m=i.computed({get(){return n.activity.estimation??0},set(L){o("update:activity",{id:n.activity.id,estimation:L})}}),g=i.computed({get(){var Y;const L=(Y=n.timeTrackingData)==null?void 0:Y[n.activity.id];return(L==null?void 0:L.timeSpent)??0},set(){}}),C=i.computed(()=>{var Y;return((Y=n.activity.project)==null?void 0:Y.estimationUnit)==="days"?"d":"h"}),_=i.computed(()=>{var Y;const L=(Y=n.activity.project)==null?void 0:Y.estimationUnit;return Aa(g.value,L)}),y=i.computed({get(){return n.activity.important??!1},set(L){o("update:activity",{id:n.activity.id,important:L})}});i.computed({get(){return n.activity.private??!1},set(L){o("update:activity",{id:n.activity.id,private:L})}});const v=i.computed({get(){return n.activity.deadline},set(L){o("update:activity",{id:n.activity.id,deadline:L})}});i.computed(()=>{var L;return(L=n.activityTypes)==null?void 0:L.map(Y=>({label:Y.name,value:Y.id}))}),i.computed({get(){var L;return(L=n.activity.type)==null?void 0:L.id},set(L){o("update:activity",{id:n.activity.id,typeId:L})}});const w=i.computed(()=>n.templateActivities.filter(L=>L.id!==n.activity.id).map(L=>({label:L.name,value:L.id}))),k=i.computed({get(){var L;return(L=n.activity.dependingOn)==null?void 0:L.map(Y=>Y.id)},set(L){L&&o("update:activity",{id:n.activity.id,dependingOn:L})}}),b=i.computed(()=>w.value.map(L=>{var Y;return{...L,disabled:(Y=n.activity.blocking)==null?void 0:Y.some(ge=>ge.id===L.value)}})),x=i.computed({get(){var L;return(L=n.activity.blocking)==null?void 0:L.map(Y=>Y.id)},set(L){L&&o("update:activity",{id:n.activity.id,blocking:L})}}),S=i.computed(()=>w.value.map(L=>{var Y;return{...L,disabled:(Y=n.activity.dependingOn)==null?void 0:Y.some(ge=>ge.id===L.value)}})),A=L=>{o("addSubtask",L)},T=L=>{o("updateSubtask",L)},I=L=>{o("deleteSubtask",L)};function $(){n.userId?P.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function M(L){P.value=[L]}const B=i.computed(()=>{var Y;const L=new Map;return(Y=n.users)==null||Y.forEach(ge=>{L.has(ge.id)||L.set(ge.id,ge)}),Array.from(L.values()).map(ge=>({label:`${ge.firstName} ${ge.lastName}`,value:ge.id,avatar:ge.avatarUrl}))}),P=i.computed({get(){var L,Y;return(L=n.activity.assignee)!=null&&L.id?[(Y=n.activity.assignee)==null?void 0:Y.id]:[]},set(L){o("update:activity",{id:n.activity.id,assigneeId:L[0]??null})}}),R=L=>{o("addFiles",{activityId:n.activity.id,files:L})},K=L=>{o("removeFile",{activityId:n.activity.id,file:L})},F=i.computed(()=>n.projects.map(L=>({value:L.id,label:L.name}))),N=i.computed(()=>{var Y,ge,qe;const L=(qe=(ge=(Y=n.activity)==null?void 0:Y.project)==null?void 0:ge.phases)==null?void 0:qe.reduce((de,_e)=>[...de,..._e.milestones],[]);return L==null?void 0:L.map(de=>({value:de.id,label:de.name}))}),G=L=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:L})},z=L=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:L})},H=i.computed(()=>{var L;return(L=n.statuses)==null?void 0:L.map(Y=>({value:Y.id,label:Y.name}))}),ce=L=>{o("update:activity",{id:n.activity.id,statusId:L})},ee=L=>{o("addComment",{...L,activityId:n.activity.id})},ie=L=>{o("updateComment",L)},U=L=>{o("removeComment",L)};i.computed(()=>{var L,Y;return((L=n.activity.createdBy)==null?void 0:L.firstName)&&((Y=n.activity.createdBy)==null?void 0:Y.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ne(){const L=window.location.origin,Y=n.activity.slug,ge=`${L}/activity-feed/slug/${Y}`;navigator.clipboard.writeText(ge).then(()=>{console.log(`Link copied to clipboard: ${ge}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(L,Y)=>(i.openBlock(),i.createBlock(Da,{onClose:Y[8]||(Y[8]=ge=>L.$emit("close"))},{default:i.withCtx(()=>{var ge,qe,de;return[i.createElementVNode("div",Sde,[i.createElementVNode("div",Tde,[i.createElementVNode("div",Ade,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:ne},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",Nde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(at,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":u},null,8,["title","is-editable"]),i.createElementVNode("div",Dde,[F.value?(i.openBlock(),i.createElementBlock("label",Mde,[i.createElementVNode("span",Bde,i.toDisplayString(L.$t("activity.project.label")),1),i.createVNode(Dt,{options:F.value,value:(ge=t.activity.project)==null?void 0:ge.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:G},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),N.value?(i.openBlock(),i.createElementBlock("label",$de,[i.createElementVNode("span",Ode,i.toDisplayString(L.$t("activity.milestone.label")),1),i.createVNode(Dt,{options:N.value,value:(qe=t.activity.milestone)==null?void 0:qe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:z},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(L.$slots,"header")]),i.createElementVNode("div",Lde,[i.createVNode(fs,{modelValue:s.value,"onUpdate:modelValue":Y[0]||(Y[0]=_e=>s.value=_e),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",Ide,[i.createElementVNode("fieldset",Pde,[i.createElementVNode("div",Fde,[i.createVNode(V9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:R,onRemove:K},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(xde,{key:1,"initial-markdown":d.value,onSave:p,onCancel:h},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:f},[i.createVNode(Ch,{content:d.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",Rde,[i.createElementVNode("fieldset",Vde,[i.createElementVNode("div",zde,[i.createVNode(N9,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":l.value,"is-template":t.isTemplate,onAdd:A,onUpdate:T,onDelete:I},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",Ude,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",qde,[i.createVNode(mde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ee,onUpdateComment:ie,onRemoveComment:U},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",Hde,[i.createElementVNode("div",jde,[i.createVNode(Se,{name:"CloseRounded",onClick:Y[1]||(Y[1]=_e=>L.$emit("close"))})]),H.value?(i.openBlock(),i.createElementBlock("div",Wde,[i.createElementVNode("label",Zde,[i.createElementVNode("span",Kde,i.toDisplayString(L.$t("activity.status.label")),1),i.createVNode(Dt,{class:"ao-activity-details__multiselect",options:H.value,value:(de=t.activity.status)==null?void 0:de.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Gde,[i.createElementVNode("div",Yde,[i.createElementVNode("div",Jde,[i.createElementVNode("span",Xde,i.toDisplayString(L.$t("activity.assignee.label")),1),i.createVNode(he,{label:L.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:$},null,8,["label"])]),i.createVNode(Dt,{modelValue:P.value,"onUpdate:modelValue":Y[2]||(Y[2]=_e=>P.value=_e),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:B.value,"close-on-select":!0,searchable:!0,placeholder:L.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:M},{tag:i.withCtx(({option:_e,handleTagRemove:we})=>[i.createVNode(Un,{"user-name":_e.label,"avatar-url":_e.avatar,"is-closable":!0,onClose:ft=>we(_e,ft)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Qde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",e1e,[i.createElementVNode("label",t1e,[i.createElementVNode("span",n1e,i.toDisplayString(L.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[3]||(Y[3]=_e=>v.value=_e),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,o1e),[[i.vModelText,v.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",r1e,[i.createElementVNode("div",i1e,[i.createElementVNode("label",s1e,[i.createElementVNode("span",a1e,i.toDisplayString(L.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[4]||(Y[4]=_e=>m.value=_e),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,l1e),[[i.vModelText,m.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",c1e,[i.createElementVNode("label",u1e,[i.createElementVNode("span",d1e,i.toDisplayString(L.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",f1e,i.toDisplayString(_.value),1)])])]),i.createElementVNode("div",p1e,[i.createVNode(Og,{modelValue:y.value,"onUpdate:modelValue":Y[5]||(Y[5]=_e=>y.value=_e),modelModifiers:{lazy:!0},label:L.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),i.createElementVNode("fieldset",h1e,[i.createElementVNode("div",m1e,[i.createVNode(Se,{name:"FlowsheetOutlineRounded"}),i.createVNode(at,{level:4,title:L.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",g1e,[i.createElementVNode("div",v1e,[i.createElementVNode("label",y1e,[i.createElementVNode("span",_1e,i.toDisplayString(L.$t("activity.dependingOn.label")),1),i.createVNode(Dt,{modelValue:k.value,"onUpdate:modelValue":Y[6]||(Y[6]=_e=>k.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",C1e,[i.createElementVNode("label",b1e,[i.createElementVNode("span",k1e,i.toDisplayString(L.$t("activity.blocking.label")),1),i.createVNode(Dt,{modelValue:x.value,"onUpdate:modelValue":Y[7]||(Y[7]=_e=>x.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(L.$slots,"default",{activity:t.activity})])])]}),_:3}))}});const w1e=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||$e.ACTIVITIES),s=i.computed({get(){return r.value},set(y){r.value=y,o("update:rule",{...n.rule,itemType:y,subItemId:void 0})}}),a=i.computed(()=>Object.values($e)),l=i.computed({get(){return n.rule.subItemId},set(y){o("update:rule",{...n.rule,subItemId:y,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var v;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(v={[$e.ACTIVITIES]:n.templateActivities,[$e.MILESTONES]:n.templateMilestones,[$e.PHASES]:n.templatePhases}[r.value])==null?void 0:v.map(w=>({value:w.id,label:w.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(y){o("update:rule",{...n.rule,comparator:y})}}),f=i.computed(()=>Object.values(fp)),p=i.toRef(n.rule.trigger),h=i.computed({get(){return p.value},set(y){o("update:rule",{...n.rule,trigger:y})}}),m=i.computed(()=>Object.values(pp)),g=i.computed({get(){return n.rule.duration},set(y){o("update:rule",{...n.rule,duration:y})}}),C=i.computed({get(){return n.rule.durationUnit},set(y){o("update:rule",{...n.rule,durationUnit:y})}}),_=i.computed(()=>Object.values(hp));return(y,v)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(to),{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=w=>s.value=w),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=w=>l.value=w),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:h.value,"onUpdate:modelValue":v[2]||(v[2]=w=>h.value=w),options:m.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=w=>d.value=w),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=w=>g.value=w),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(to),{modelValue:C.value,"onUpdate:modelValue":v[5]||(v[5]=w=>C.value=w),options:_.value},null,8,["modelValue","options"]),i.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>y.$emit("close"))})]),_:1}))}});const E1e={class:"ao-template-rules__body"},x1e={class:"ao-template-rules__list"},S1e=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Da,null,{header:i.withCtx(()=>[i.createVNode(at,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",E1e,[i.createElementVNode("ul",x1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(w1e,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(go,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Uo(t,e,n){const o=t.length,r=t.at(-1),s=r?it.LexoRank.parse(r.rank).genNext():it.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const T1e={key:0,class:"ao-template-details"},A1e={class:"ao-template-details__body"},N1e={class:"ao-template-details__cols"},D1e={class:"ao-template-details__col"},M1e={class:"ao-list__footer"},B1e={class:"ao-template-details__col"},$1e={class:"ao-template-details__col"},Lg=i.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=i.computed(()=>{var F;return(F=o.templates)==null?void 0:F.find(N=>N.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var F;return(F=s.value)==null?void 0:F.phases},(F,N)=>{a.value&&In(F,N)});const l=i.computed(()=>{var F,N;return(N=(F=s==null?void 0:s.value)==null?void 0:F.phases)==null?void 0:N.find(G=>G.id===o.phaseId)});i.watch(()=>{var F;return(F=l.value)==null?void 0:F.milestones},(F,N)=>{a.value&&In(F,N)});const c=i.computed(()=>{var F,N;return(N=(F=l.value)==null?void 0:F.milestones)==null?void 0:N.find(G=>G.id===o.milestoneId)});i.watch(()=>{var F;return(F=c.value)==null?void 0:F.activities},(F,N)=>{a.value&&In(F,N)});const u=i.computed(()=>{var F,N;return((N=(F=s.value)==null?void 0:F.phases)==null?void 0:N.reduce((G,z)=>{const H=z.milestones||[];return[...G,...H]},[]))||[]}),d=i.computed(()=>{var F,N;return((N=(F=s.value)==null?void 0:F.phases)==null?void 0:N.reduce((G,z)=>{const ce=(z.milestones||[]).reduce((ee,ie)=>ie.activities?[...ee,...ie.activities]:ee,[]);return[...G,...ce]},[]))||[]}),f=i.computed(()=>{var F,N;return(N=(F=c.value)==null?void 0:F.activities)==null?void 0:N.find(G=>G.id===o.activityId)}),p=i.computed(()=>{var F;return((F=s.value)==null?void 0:F.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:F,rank:N}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:$e.PHASES,templateId:o.templateId,item:{name:F,rank:N}})},m=F=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:$e.TEMPLATES,data:{name:F}})},g=F=>{r("removeItem",{itemType:$e.PHASES,templateId:o.templateId,data:{id:F}})},C=(F,N)=>{r("updateItem",{templateId:o.templateId,id:F,itemType:$e.PHASES,data:{name:N}})},_=F=>{r("updateItem",F)},y=F=>{if(!l.value)return;const{name:N,rank:G}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:$e.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,item:{name:N,rank:G,phaseId:F.phaseId}})},v=F=>{r("removeItem",{itemType:$e.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,data:{id:F.id}})},w=F=>{const{id:N,...G}=F;r("updateItem",{itemType:$e.MILESTONES,id:N,templateId:o.templateId,data:G})},k=F=>{const{milestoneId:N}=F;if(!c.value)return;const{name:G,rank:z}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:$e.ACTIVITIES,milestoneId:N,templateId:o.templateId,item:{name:G,rank:z,milestoneId:N}})},b=F=>{var N,G;r("removeItem",{itemType:$e.ACTIVITIES,templateId:o.templateId,phaseId:(N=l.value)==null?void 0:N.id,milestoneId:(G=c.value)==null?void 0:G.id,data:{id:F.id}})},x=F=>{const{id:N,...G}=F;r("updateItem",{itemType:$e.ACTIVITIES,id:N,templateId:o.templateId,data:G})},S=i.ref(!1),A=()=>{S.value=!S.value},T=()=>{r("addRule",{templateId:o.templateId})},I=F=>{r("removeRule",{id:F,templateId:o.templateId})},$=F=>{var N;if(F.moved){const G=Xi(F,((N=s.value)==null?void 0:N.phases)??[]);r("updateItem",{itemType:$e.PHASES,id:F.moved.element.id,templateId:o.templateId,data:{rank:G}})}},M=F=>{!l.value||!c.value||!f.value||r("addItem",{type:$e.TASKS,activityId:F.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:F})},B=F=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:$e.TASKS,id:F.id,templateId:o.templateId,data:F})},P=F=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:$e.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:F})},R=F=>{r("addFiles",F)},K=F=>{r("removeFile",F)};return(F,N)=>{var G,z,H,ce,ee,ie;return s.value?(i.openBlock(),i.createElementBlock("div",T1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:N[1]||(N[1]=U=>F.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(at,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":N[0]||(N[0]=U=>{m(U)})},null,8,["title"])]),_:1}),i.createElementVNode("div",A1e,[i.createElementVNode("ol",N1e,[i.createElementVNode("li",D1e,[i.createVNode(i.unref(mo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:$},{header:i.withCtx(()=>[i.createVNode(at,{title:F.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:U})=>{var ne;return[i.createVNode(Z_,{id:U.id,name:U.name,milestones:U.milestones,"is-active":((ne=l.value)==null?void 0:ne.id)===U.id,"is-draggable":!0,onClick:L=>F.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":L=>{C(U.id,L)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",M1e,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:F.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",B1e,[l.value?(i.openBlock(),i.createBlock(Y_,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(G=c.value)==null?void 0:G.id,onAddMilestone:y,onUpdateMilestone:w,onUpdatePhase:_,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",$1e,[l.value&&c.value?(i.openBlock(),i.createBlock(Q_,{key:0,"template-id":t.templateId,"phase-id":(z=l.value)==null?void 0:z.id,milestone:c.value,"activity-id":(H=f.value)==null?void 0:H.id,onAddActivity:k,onUpdateActivity:x,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Ju,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(ee=c.value)==null?void 0:ee.name}`,"milestone-id":(ie=c.value)==null?void 0:ie.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"onUpdate:activity":N[2]||(N[2]=U=>{f.value&&x(U)}),"attachment-enabled":!1,onClose:F.$router.back,onAddSubtask:M,onUpdateSubtask:B,onDeleteSubtask:P,onAddFiles:R,onRemoveFile:K},{default:i.withCtx(U=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(U)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[S.value?(i.openBlock(),i.createBlock(S1e,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:A,onAddRule:T,onRemoveRule:I},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const O1e={class:"ao-card__content"},L1e={key:0,class:"ao-card__header"},I1e={class:"ao-card__body"},P1e={key:1,class:"ao-card__footer"},cl=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",O1e,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",L1e,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",I1e,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",P1e,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const ul=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
55
55
  * vue-color-kit v1.0.6
56
56
  * (c) 2023
57
57
  * @license MIT
58
- */function Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=R1e(t):/rgb/.test(t)?e=lp(t):typeof t=="string"?e=lp(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=V1e(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function Xu(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function jc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function F1e({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function R1e(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function lp(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function V1e({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var Qu=i.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),jc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),jc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),r=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const z1e={ref:"canvasSaturation"};function U1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",z1e,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Qu.render=U1e;Qu.__file="src/color/Saturation.vue";var ed=i.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const q1e={ref:"canvasHue"};function H1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",q1e,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ed.render=H1e;ed.__file="src/color/Hue.vue";var td=i.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,r=Xu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),jc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=r=>{let s=r.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const j1e={ref:"canvasAlpha"};function W1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",j1e,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}td.render=W1e;td.__file="src/color/Alpha.vue";var nd=i.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,r=Xu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function Z1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}nd.render=Z1e;nd.__file="src/color/Preview.vue";var od=i.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,h,m]=d.data;m=parseFloat((m/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${p}, ${h}, ${m})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,h,m,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:h,b:m,a:g})}))}}});const K1e=i.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),G1e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Y1e=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function J1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[K1e],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",G1e,[Y1e])):i.createCommentVNode("v-if",!0)])}od.render=J1e;od.__file="src/color/Sucker.vue";var rd=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const X1e={class:"color-type"},Q1e={class:"name"};function efe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",X1e,[i.createVNode("span",Q1e,i.toDisplayString(t.name),1),i.withDirectives(i.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[i.vModelText,t.modelColor]])])}rd.render=efe;rd.__file="src/color/Box.vue";var id=i.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=Xu(4).toDataURL(),i.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:r,selectColor:a}}});const tfe={class:"colors"},nfe={key:0,class:"colors history"};function ofe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",tfe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",nfe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}id.render=ofe;id.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:Qu,Hue:ed,Alpha:td,Preview:nd,Sucker:od,Box:rd,Colors:id},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return F1e(this.rgba,!0)}},created(){Object.assign(this,Ao(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const rfe={class:"color-set"};function ife(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",rfe,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=ife;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const sfe={class:"color-picker-wrapper"},dl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async m=>{a.value=m,r.value=!0,await i.nextTick();const g=m.getBoundingClientRect(),C=s.value,_=(C==null?void 0:C.offsetHeight)||300,y=window.innerHeight-g.bottom,v=g.top,w=y<_&&v>_;console.log("pickerHeight = "+_),l.value=w?g.top-_-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=m=>{const g=m.target;s.value&&!s.value.contains(g)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,m=>{r.value||(p.value=m)});const p=i.ref(n.color),h=m=>{const{r:g,g:C,b:_,a:y}=m.rgba;p.value=`rgba(${g}, ${C}, ${_}, ${y})`};return(m,g)=>(i.openBlock(),i.createElementBlock("div",sfe,[i.renderSlot(m.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:h},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const afe={class:"ao-card-project-phase__header"},lfe={class:"ao-card-project-item__title-line"},cfe={key:0,class:"ao-card-project-item-phase__estimation"},ufe={class:"ao-card-project-phase__footer"},dfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ffe={class:"ao-card-project-phase__subitem"},pfe={class:"ao-card-project-phase__subitem"},hfe={key:0,class:"ao-card-project-phase__secondary"},mfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},gfe=i.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((C,_)=>{var y;return C+((y=_.activities)==null?void 0:y.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,C)=>{var _;return g+(((_=C.activities)==null?void 0:_.reduce((y,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return y+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Aa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(C=>C.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,C)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||C(_)};return(g,C)=>(i.openBlock(),i.createBlock(dl,{color:h.value,"onUpdate:color":C[2]||(C[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:y})=>[i.createVNode(cl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",lfe,[i.createVNode(st,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",cfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ufe,[u.value?(i.openBlock(),i.createElementBlock("div",dfe,[i.createElementVNode("div",ffe,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",pfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(ul,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",hfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>p.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",mfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",afe,[i.createVNode(he,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:C[0]||(C[0]=i.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const vfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const yfe={class:"ao-card-project-milestone__default"},_fe={class:"ao-title-with-badge-wrapper"},Cfe={class:"ao-card-project-item__title-line"},bfe={key:0,class:"ao-card-project-item-milestone__estimation"},kfe={key:0,class:"ao-card-project-milestone__archive"},wfe={class:"ao-card-project-milestone__activities"},Efe={class:"ao-card-project-milestone__activities-row"},xfe={class:"ao-card-project-milestone__subitem"},Sfe={class:"ao-card-project-milestone__subitem"},Tfe={key:1,class:"ao-card-project-milestone__secondary"},Afe={class:"ao-card-project-milestone__footer"},Nfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Dfe={class:"ao-field__label"},Mfe={key:2,class:"ao-card-project-milestone__assignee"},Bfe=i.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((h,m)=>h+(m.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,h)=>{var g;const m=(g=n.timeTrackingData)==null?void 0:g[h.id];return p+((m==null?void 0:m.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Aa(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(h=>Kc(h,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,h)=>(i.openBlock(),i.createBlock(cl,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",yfe,[i.createElementVNode("div",_fe,[i.createVNode(vfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Cfe,[i.createVNode(st,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":f},null,8,["id","title","is-editable"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",bfe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",kfe,[i.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:h[0]||(h[0]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",wfe,[i.createElementVNode("div",Efe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",xfe,[i.createVNode(Se,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Sfe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(ul,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Tfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",Afe,[t.important?(i.openBlock(),i.createBlock(Se,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",Nfe,[i.createElementVNode("span",Dfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Mfe,[i.createVNode(Un,{"user-name":i.unref(Mp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const $fe={class:"ao-mapping-card-project-phase__header"},Ofe={class:"ao-card-project-item__title-line"},Lfe={key:0,class:"ao-card-project-item-phase__estimation"},Ife={class:"ao-mapping-card-project-phase__footer"},Pfe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Ffe={class:"ao-mapping-card-project-phase__subitem"},Rfe={class:"ao-mapping-card-project-phase__subitem"},Vfe={key:0,class:"ao-mapping-card-project-phase__secondary"},zfe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Ufe=i.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((C,_)=>{var y;return C+((y=_.activities)==null?void 0:y.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,C)=>{var _;return g+(((_=C.activities)==null?void 0:_.reduce((y,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return y+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Aa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(C=>C.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,C)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||C()};return(g,C)=>(i.openBlock(),i.createBlock(dl,{color:h.value,"onUpdate:color":C[2]||(C[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:y})=>[i.createVNode(cl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Ofe,[i.createVNode(st,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",Lfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Ife,[u.value?(i.openBlock(),i.createElementBlock("div",Pfe,[i.createElementVNode("div",Ffe,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Rfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(ul,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:h.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Vfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>p.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",zfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",$fe,[i.createVNode(he,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:C[0]||(C[0]=i.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const qfe={class:"ao-project-phase"},Hfe={key:0,class:"ao-project-phase__drag ao-card__drag"},jfe={key:1,class:"ao-project-phase__col-phase"},Wfe={key:2,class:"ao-mapping-project-phase__col-phase"},Zfe={key:0,class:"ao-project-phase__col-milestones"},Kfe={class:"ao-project-phase__milestones-list-footer"},Gfe=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.phase.milestones,(v,w)=>{In(v,w)});const s=v=>{r("updatePhase",{id:o.phase.id,name:v})},a=v=>{r("updatePhase",{id:o.phase.id,deadline:v})},l=v=>{r("updatePhase",v)},c=i.computed(()=>o.phase.milestones.map(v=>d_(v,o.closedStatus))),u=v=>{const{name:w,rank:k}=Uo(c.value??[],"milestone",n);r("addMilestone",{name:w,rank:k,phaseId:v})},d=v=>{r("updateMilestone",v)},f=v=>{r("archiveMilestone",v)},p=v=>{r("unarchiveMilestone",v)},h=v=>{r("archivePhase",v)},m=v=>{r("unarchivePhase",v)},g=v=>{"added"in v?r("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:Ar(c.value,v.added.newIndex)}):"removed"in v||"moved"in v&&r("updateMilestone",{id:v.moved.element.id,rank:Ar(c.value,v.moved.newIndex)})},C=Ki.useRoute(),_=i.computed(()=>C.path.includes("/mapping")),y=i.computed(()=>{var v;return o.phase.id!==((v=C.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:p_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",qfe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(y.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Hfe,[i.createVNode(Se,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",Wfe,[i.createVNode(Ufe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",jfe,[i.createVNode(gfe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Zfe,[i.createElementVNode("div",{class:"ao-project-phase__milestones",style:i.normalizeStyle(y.value)},[i.createVNode(i.unref(mo),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:g}),{item:i.withCtx(({element:k})=>{var b;return[i.createVNode(Bfe,{id:k.id,name:k.name,color:k.color,"phase-color":t.phase.color,activities:k.activities,deadline:k.deadline,active:k.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":k.id===((b=v.$route.params)==null?void 0:b.milestoneId),assignee:k.assignee,important:k.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!t.readonly&&v.$router.push({name:i.unref(je).milestone,params:{phaseId:t.phase.id,milestoneId:k.id}}),onUpdateMilestone:d,onArchiveMilestone:f,onUnarchiveMilestone:p},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),i.createElementVNode("div",Kfe,[t.isEditable?(i.openBlock(),i.createBlock(go,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:w[0]||(w[0]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Yfe={class:"ao-project__phases"},Jfe={key:0,class:"ao-project-phase__phases-list-footer"},Xfe={class:"ao-project-phase__col-phase"},sd=i.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>n.phases,(h,m)=>{In(h,m)});const r=h=>{o("addMilestone",h)},s=h=>{o("updateMilestone",h)},a=h=>{o("archiveMilestone",h)},l=h=>{o("unarchiveMilestone",h)},c=h=>{o("archivePhase",h)},u=h=>{o("unarchivePhase",h)},d=h=>{if(h.moved){const m=Xi(h,n.phases??[]);o("updatePhase",{id:h.moved.element.id,rank:m})}},f=h=>{o("updatePhase",h)},p=h=>{o("addPhase",h)};return(h,m)=>(i.openBlock(),i.createElementBlock("div",Yfe,[i.createVNode(i.unref(mo),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Gfe,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:r,onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Jfe,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Xfe,[i.createVNode(go,{label:h.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),m[1]||(m[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const Qfe={class:"ao-add-template-modal__form-body"},epe={class:"field__row"},tpe={class:"ao-add-template-modal__form-footer"},Ig=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Da,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",Qfe,[i.createElementVNode("div",epe,[i.createVNode(Dt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",tpe,[i.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const npe={class:"ao-save-template-modal__form-body"},ope={class:"field__row"},rpe={class:"ao-field ao-field--inline"},ipe={class:"ao-field__label"},spe={class:"ao-save-template-modal__phases"},ape={class:"ao-field__label"},lpe={class:"ao-save-template-modal__phases-list"},cpe=["value"],upe={class:"ao-save-template-modal__form-footer"},Pg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Da,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",npe,[i.createElementVNode("div",ope,[i.createElementVNode("label",rpe,[i.createElementVNode("span",ipe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",spe,[i.createElementVNode("div",ape,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",lpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:u.id},[i.withDirectives(i.createElementVNode("input",{type:"checkbox",value:u.id,"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d)},null,8,cpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",upe,[i.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const dpe={class:"ao-project"},fpe={class:"ao-project__body"},ppe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(D=>D.milestones)),a=()=>{const{name:D,rank:G}=Uo(o.phases,"phase",n);r("addPhase",{name:D,rank:G,projectId:o.project.id})},l=D=>{r("updatePhase",D)},c=D=>{r("archivePhase",D)},u=D=>{r("unarchivePhase",D)},d=D=>{r("copyPhaseToTemplate",D)},f=D=>{r("addMilestone",D)},p=D=>{r("updateMilestone",D)},h=D=>{r("archiveMilestone",D)},m=D=>{r("unarchiveMilestone",D)},g=D=>{r("addActivity",D)},C=D=>{r("update:activity",D)},_=D=>{r("archiveActivity",D)},y=D=>{r("unarchiveActivity",D)},v=D=>{r("addSubtask",D)},w=D=>{r("updateSubtask",D)},k=D=>{r("deleteSubtask",D)},b=i.computed(()=>s.value.flatMap(D=>D.activities)),E=D=>{r("addFiles",D)},S=D=>{r("removeFile",D)},T=D=>{r("addComment",D)},A=D=>{r("updateComment",D)},z=D=>{r("removeComment",D)},L=i.ref(!1),M=i.ref(!1),B=(D,G)=>{r("applyTemplate",{templateId:D,projectId:G}),L.value=!1},I=(D,G)=>{var ce;const V=(ce=o.templates)==null?void 0:ce.at(-1),H=V?rt.LexoRank.parse(V.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:D,rank:H.format(),phaseIds:G}),M.value=!1},F=Ki.useRouter(),K=i.ref("overview"),P=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(K,D=>{D==="feed"?(F.push({name:je.feed}),console.log("Navigating to feed...")):D==="overview"?(F.push({name:je.project}),console.log("Navigating to feed...")):D==="mapping"&&(F.push({name:je.mapping}),console.log("Navigating to feed..."))}),(D,G)=>{var H;const V=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},D.$attrs),[i.createElementVNode("div",dpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{tabs:P,modelValue:K.value,"onUpdate:modelValue":G[0]||(G[0]=ce=>K.value=ce)},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:D.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:G[1]||(G[1]=ce=>D.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:D.$t("project.template.save.label"),onClick:G[2]||(G[2]=ce=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:D.$t("project.template.apply.label"),onClick:G[3]||(G[3]=ce=>L.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",fpe,[i.createVNode(sd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(H=t.project)==null?void 0:H.estimationUnit,onAddMilestone:f,onUpdateMilestone:p,onArchiveMilestone:h,onUnarchiveMilestone:m,onAddPhase:a,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(V,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:G[4]||(G[4]=ce=>D.$router.push({name:i.unref(je).project})),onUpdateMilestone:p,onAddActivity:g,onUpdateActivity:C,onArchiveActivity:_,onUnarchiveActivity:y},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(V,{name:"modal",activities:b.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"onUpdate:activity":C,onAddSubtask:v,onUpdateSubtask:w,onDeleteSubtask:k,onAddFiles:E,onRemoveFile:S,onAddComment:T,onUpdateComment:A,onRemoveComment:z},{default:i.withCtx(({Component:ce})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ce),null,{default:i.withCtx(ee=>[i.renderSlot(D.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ee)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:G[5]||(G[5]=ce=>M.value=!1),onSave:I},null,8,["phases"])):i.createCommentVNode("",!0),L.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:G[6]||(G[6]=ce=>L.value=!1),onApply:B},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const hpe={class:"ao-card-feed__header"},mpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},gpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},vpe={class:"ao-card-feed__body"},ype={key:0,class:"ao-card-feed__breadcrumbs"},_pe={class:i.normalizeClass(["ao-card-feed__title-group"])},Cpe={class:"ao-card-feed__title-line"},bpe={key:0,class:"ao-card-feed__slug"},kpe={key:1,class:"ao-card-feed__deadline"},wpe={class:"ao-card-feed__footer"},Epe={class:"ao-card-feed__footer-row"},xpe={class:"ao-assignees"},Spe={key:0,class:"ao-assignee"},Tpe={key:0,class:"ao-card-feed__subitems"},Ape={key:0,class:"ao-card-feed__subitem"},Npe={class:"ao-card-feed__subitem"},Dpe={key:1,class:"ao-card-feed__subitem"},Mpe={class:"ao-card-feed__subitem"},Bpe={class:"ao-card-feed__timer-wrapper"},$pe={class:"ao-card-feed__footer-row"},Ope={key:0,class:"ao-card-feed__progress-wrapper"},Lpe={class:"ao-card-feed__subitem"},Ipe={class:"ao-card-feed__subitem"},ad=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Na(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),h=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(C=>C.isDone).length}),m=i.computed(()=>(h.value||0)/(p.value||1));return(g,C)=>(i.openBlock(),i.createBlock(cl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",hpe,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",mpe,[t.isPrivate?(i.openBlock(),i.createBlock(Se,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(Se,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(Se,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",gpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",vpe,[l.value?(i.openBlock(),i.createElementBlock("span",ype,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",_pe,[i.createElementVNode("div",Cpe,[t.slug?(i.openBlock(),i.createElementBlock("span",bpe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(st,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":a,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",kpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",wpe,[i.createElementVNode("div",Epe,[i.createElementVNode("ul",xpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[_?(i.openBlock(),i.createElementBlock("li",Spe,[i.createVNode(Un,{"user-name":i.unref(Mp)(_),"avatar-url":_.avatarUrl,"is-closable":!0,onClose:()=>d(_.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",Tpe,[t.comments?(i.openBlock(),i.createElementBlock("li",Ape,[i.createVNode(Se,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",Npe,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",Dpe,[i.createVNode(Se,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Mpe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Bpe,[i.createVNode(Se,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",$pe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",Ope,[i.createElementVNode("div",Lpe,[i.createVNode(Se,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Ipe,i.toDisplayString(h.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(ul,{percentages:m.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Ppe={class:"ao-project-milestone"},Fpe={class:"ao-project-milestone__header"},Rpe={class:"ao-project-milestone__header_line"},Vpe={class:"ao-project-milestone__header_line"},zpe={class:"ao-project-milestone__title"},Upe={key:0,class:"ao-fieldset ao-milestone__fieldset"},qpe={class:"ao-field__row ao-milestone__field-row"},Hpe={class:"ao-field ao-field--inline"},jpe={class:"ao-field__row ao-milestone__field-row"},Wpe={class:"ao-field ao-milestone__field-multiselect"},Zpe=["onClick"],Kpe={class:"ao-project-milestone__body"},Gpe={key:0,class:"ao-project-milestone__footer"},cp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=k=>{var b;r("startTimer",k),(b=window.parent)==null||b.postMessage({type:"startTimer",data:k},"*")},a=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.find(b=>b.id===o.phaseId)}),l=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.flatMap(b=>b.milestones)}),c=i.computed(()=>{var k;return(k=l.value)==null?void 0:k.find(b=>b.id===o.milestoneId)}),u=i.computed(()=>{var k;return(k=c.value)==null?void 0:k.activities});i.watch(u,(k,b)=>{In(k,b)});const d=k=>{r("close",k)},f=()=>{const{name:k,rank:b}=Uo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:k,rank:b,projectId:o.projectId})},p=k=>{r("updateActivity",k)},h=k=>{u.value&&"moved"in k&&r("updateActivity",{id:k.moved.element.id,rank:Ar(u.value,k.moved.newIndex)})},m=i.computed({get:()=>{var k;return(k=c.value)==null?void 0:k.color},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,color:k})}}),g=i.computed({get:()=>{var k;return((k=c==null?void 0:c.value)==null?void 0:k.deadline)??""},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:k!=null&&k.length?k:null})}}),C=k=>o.closedStatus?Kc(k,o.closedStatus):!1,_=i.computed(()=>{var k;return((k=o.users)==null?void 0:k.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))||[]}),y=i.computed({get(){var k,b;return(b=(k=c.value)==null?void 0:k.assignee)!=null&&b.id?[c.value.assignee.id]:[]},set(k){r("updateMilestone",{id:o.milestoneId,assigneeId:k[0]??null})}}),v=i.computed({get(){var k;return((k=c.value)==null?void 0:k.important)??!1},set(k){r("updateMilestone",{id:o.milestoneId,important:k})}}),w=(k,b)=>{const E=k.currentTarget;E instanceof HTMLElement&&b(E)};return(k,b)=>{var E;return i.openBlock(),i.createElementBlock("div",Ppe,[i.createElementVNode("header",Fpe,[i.createElementVNode("div",Rpe,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",Vpe,[i.createElementVNode("div",zpe,[i.createVNode(st,{title:((E=c.value)==null?void 0:E.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Og,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=S=>v.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:k.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Upe,[i.createElementVNode("div",qpe,[i.createElementVNode("label",Hpe,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,g.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",jpe,[i.createElementVNode("label",Wpe,[i.createVNode(Dt,{modelValue:y.value,"onUpdate:modelValue":b[2]||(b[2]=S=>y.value=S),options:_.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:T})=>[i.createVNode(Un,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:A=>T(S,A)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createVNode(dl,{color:m.value,"onUpdate:color":b[3]||(b[3]=S=>m.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:T})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:T}),class:"color-button",onClick:A=>w(A,S)},null,12,Zpe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Kpe,[i.createVNode(i.unref(mo),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},k.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var T,A,z,L,M;return[i.createVNode(ad,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(T=a.value)==null?void 0:T.name,"milestone-name":(A=c.value)==null?void 0:A.name,"milestone-color":(z=c.value)==null?void 0:z.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(L=S.comments)==null?void 0:L.length,attachments:(M=S.attachments)==null?void 0:M.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:B=>k.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("archive"),onClick:i.withModifiers(()=>k.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>k.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Gpe,[i.createVNode(go,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Ype=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.find(y=>y.id===n.phaseId)}),s=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.flatMap(y=>y.milestones)}),a=i.computed(()=>{var _;return(_=s.value)==null?void 0:_.find(y=>y.id===n.milestoneId)}),l=i.computed(()=>{var _;return(_=n.activities)==null?void 0:_.find(y=>y.id===n.activityId)}),c=_=>{o("update:activity",_)},u=_=>{o("addSubtask",_)},d=_=>{o("updateSubtask",_)},f=_=>{o("deleteSubtask",_)},p=_=>{o("addFiles",_)},h=_=>{o("removeFile",_)},m=_=>{o("addComment",_)},g=_=>{o("updateComment",_)},C=_=>{o("removeComment",_)};return(_,y)=>{var v,w;return l.value?(i.openBlock(),i.createBlock(Ju,{key:0,activity:l.value,"activity-types":t.activityTypes,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(v=r.value)==null?void 0:v.name} / ${(w=a.value)==null?void 0:w.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:_.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:h,onAddComment:m,onUpdateComment:g,onRemoveComment:C},{default:i.withCtx(k=>[i.renderSlot(_.$slots,"default",i.normalizeProps(i.guardReactiveProps(k)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):i.createCommentVNode("",!0)}}}),Jpe={class:"ao-col-header"},Xpe=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Jpe,[i.createVNode(st,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Qpe(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function ka(t){return typeof t=="function"?t():i.unref(t)}const ehe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const the=t=>t!=null,Mi=()=>{};function nhe(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function ohe(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=ka(t),u=ka(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{r=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function rhe(t,e=200,n={}){return nhe(ohe(e,n),t)}function ic(t){var e;const n=ka(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ihe=ehe?window:void 0;function she(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function ahe(t){const e=she();return i.computed(()=>(e.value,!!t()))}function lhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=ihe,immediate:l=!0}=n,c=ahe(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const m=ka(t);return(Array.isArray(m)?m:[m]).map(ic).filter(the)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,ic(o),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const C=new IntersectionObserver(e,{root:ic(g),rootMargin:r,threshold:s});m.forEach(_=>_&&C.observe(_)),d=()=>{C.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,h=()=>{d(),p(),f.value=!1};return Qpe(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const che={class:i.normalizeClass(["ao-list-kanban"])},uhe={class:"ao-list-kanban__header"},dhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},fhe={key:1,class:"ao-list-kanban__end"},phe={key:0,class:"ao-list-kanban__no-more"},hhe={key:1,class:"ao-list-kanban__divider"},mhe={key:1,class:"ao-list-kanban__footer"},ghe=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null);lhe(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",che,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",uhe,[t.title?(i.openBlock(),i.createBlock(Xpe,{key:0,title:t.title,level:3,items:(h=t.list)==null?void 0:h.length},null,8,["title","items"])):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(mo),i.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:i.withCtx(({element:h})=>{var m,g,C,_,y,v,w,k,b,E;return[i.createVNode(ad,{class:i.normalizeClass(a(h)?"ao-list-draggable":""),id:h.id,name:h.name,"project-name":(m=h.project)==null?void 0:m.name,"project-id":(g=h.project)==null?void 0:g.id,"project-color":(C=h.project)==null?void 0:C.color,"phase-name":(y=(_=h.milestone)==null?void 0:_.phase)==null?void 0:y.name,"milestone-name":(v=h.milestone)==null?void 0:v.name,"milestone-color":(w=h.milestone)==null?void 0:w.color,deadline:h.deadline,rules:((k=h.rules)==null?void 0:k.length)||0,tasks:h.tasks,description:h.description,important:h.important,type:h.type,comments:(b=h.comments)==null?void 0:b.length,attachments:(E=h.attachments)==null?void 0:E.length,users:t.users,assignee:h.assignee,slug:h.slug,"is-editable":a(h),"is-private":h.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(h)&&c(S),()=>a(h)&&c],onClick:()=>l(h.id),onRemoveAssignee:()=>a(h)&&c({id:h.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=S=>f.$emit("startTimer",S))},{secondary:i.withCtx(()=>[a(h)&&h.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(h)&&!h.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",dhe,[i.createVNode(Se,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",fhe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",phe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",hhe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",mhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(go,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[3]||(p[3]=h=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const vhe={class:"ao-field ao-search-field"},yhe=["value","placeholder"],_he=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=rhe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",vhe,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,yhe),i.createVNode(Se,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const Che={class:"ao-feed"},bhe={class:"ao-feed__filters"},khe={class:"ao-feed__body"},Fg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;function s(V,H){r("toast",V,H)}const a=i.toRef(o,"activities"),l=async(V,H)=>{await r("selectActivity",V,H)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([V,H,ce,ee],[ie,U])=>{c.value=Object.fromEntries(V.map(ne=>[ne.id,H.filter(O=>{var Y;return((Y=O.status)==null?void 0:Y.id)===ne.id})])),ce&&!u.value?(l(ce,null),u.value=!0):ee&&!u.value&&(l(null,ee),u.value=!0),d.value&&In(H,U)},{immediate:!0});const p=i.computed(()=>{var V;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((V=o.selectedActivity.milestone.phase)==null?void 0:V.name)??""} / ${o.selectedActivity.milestone.name??""}`}),h=V=>{var U,ne;const H=(U=o.activities)==null?void 0:U.at(-1),ce=H?rt.LexoRank.parse(H.rank).genNext():rt.LexoRank.middle(),ee=((ne=o.activities)==null?void 0:ne.length)??0,ie={name:n("activity.defaultName",{idx:ee+1}),rank:ce.format(),statusId:V.id};o.filters.assigneeId.length>0&&(ie.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ie.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ie.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",ie)},m=(V,H)=>{d.value=!1,r("update:filters",{...o.filters,[V]:H})},g=i.computed(()=>o.project?[o.project]:o.projects??[]),C=i.computed(()=>g.value.map(V=>({value:V.id,label:V.name}))),_=i.computed(()=>{var V;return(V=o.activityTypes)==null?void 0:V.map(H=>({value:H.id,label:H.name}))}),y=i.computed(()=>o.users.map(V=>({value:V.id,label:`${V.firstName} ${V.lastName}`,avatar:V.avatarUrl}))),v=V=>{o.selectedActivity&&r("update:activity",V)},w=V=>{r("update:activity",V)},k=V=>{r("archiveActivity",V)},b=V=>{r("unarchiveActivity",V)},E=V=>{var H;r("startTimer",V),(H=window.parent)==null||H.postMessage({type:"startTimer",data:V},"*")},S=V=>{d.value=!1,r("update:searchText",V)},T=V=>{d.value=!1,r("clear:searchText",V)},A=V=>{o.selectedActivity&&r("addSubtask",V)},z=V=>{o.selectedActivity&&r("updateSubtask",V)},L=V=>{o.selectedActivity&&r("deleteSubtask",V)},M=V=>{r("addFiles",V)},B=V=>{r("removeFile",V)},I=V=>{o.selectedActivity&&r("addComment",{...V,activityId:o.selectedActivity.id})},F=V=>{const{id:H}=o.selectedActivity||{};H&&r("updateComment",V)},K=V=>{const{id:H}=o.selectedActivity||{};H&&r("removeComment",V)},P=Ki.useRouter(),D=i.ref("feed"),G=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(D,V=>{V==="feed"?(P.push({name:je.feed}),console.log("Navigating to feed...")):V==="overview"?(P.push({name:je.project}),console.log("Navigating to feed...")):V==="mapping"&&(P.push({name:je.mapping}),console.log("Navigating to feed..."))}),(V,H)=>{var ce;return i.openBlock(),i.createElementBlock("div",Che,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",bhe,[i.createVNode(fs,{tabs:G,modelValue:D.value,"onUpdate:modelValue":H[0]||(H[0]=ee=>D.value=ee)},null,8,["modelValue"]),i.createVNode(_he,{"model-value":t.searchText,placeholder:V.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:T},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Dt,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:V.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":H[1]||(H[1]=ee=>m(i.unref(No).project,ee))},null,8,["model-value","options","placeholder"])),_.value?(i.openBlock(),i.createBlock(Dt,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:V.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":H[2]||(H[2]=ee=>m(i.unref(No).type,ee))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),y.value.length?(i.openBlock(),i.createBlock(Dt,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:V.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":H[3]||(H[3]=ee=>m(i.unref(No).assignee,ee))},{tag:i.withCtx(({option:ee,handleTagRemove:ie})=>[i.createVNode(Un,{"user-name":ee.label,"avatar-url":ee.avatar,"is-closable":!0,onClose:U=>ie(ee,U)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:H[4]||(H[4]=ee=>V.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:H[5]||(H[5]=ee=>V.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:H[6]||(H[6]=ee=>V.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",khe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,ee=>(i.openBlock(),i.createBlock(ghe,{key:ee.id,status:ee,list:c.value[ee.id],title:ee.name,"footer-label":V.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:f.value,onAdd:()=>h(ee),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Ju,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:H[7]||(H[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:A,onUpdateSubtask:z,onDeleteSubtask:L,onAddFiles:M,onRemoveFile:B,onAddComment:I,onUpdateComment:F,onRemoveComment:K,onToast:s},{default:i.withCtx(ee=>[i.renderSlot(V.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ee)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):i.createCommentVNode("",!0)]))])}}});const whe={class:"ao-project-mapping"},Ehe={class:"ao-project-mapping-mapping__body"},xhe={class:"ao-project-mapping-mapping__phases"},She={key:0,class:"ao-project-mapping-mapping__image-wrapper"},The=["src","alt"],Ahe=i.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=()=>{const{name:_,rank:y}=Uo(o.phases,"phase",n);r("addPhase",{name:_,rank:y,projectId:o.project.id})},a=_=>{r("updatePhase",_)},l=_=>{r("archivePhase",_)},c=_=>{r("unarchivePhase",_)},u=_=>{r("copyPhaseToTemplate",_)},d=i.ref(!1),f=i.ref(!1),p=(_,y)=>{r("applyTemplate",{templateId:_,projectId:y}),d.value=!1},h=(_,y)=>{var k;const v=(k=o.templates)==null?void 0:k.at(-1),w=v?rt.LexoRank.parse(v.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:_,rank:w.format(),phaseIds:y}),f.value=!1},m=Ki.useRouter(),g=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(g,_=>{_==="feed"?(m.push({name:je.feed}),console.log("Navigating to feed...")):_==="overview"?(m.push({name:je.project}),console.log("Navigating to feed...")):_==="mapping"&&(m.push({name:je.mapping}),console.log("Navigating to feed..."))}),(_,y)=>{var v;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[i.createElementVNode("div",whe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{modelValue:g.value,"onUpdate:modelValue":y[0]||(y[0]=w=>g.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:y[1]||(y[1]=w=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:y[2]||(y[2]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:y[3]||(y[3]=w=>d.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",Ehe,[i.createElementVNode("div",xhe,[i.createVNode(sd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(v=t.project)==null?void 0:v.estimationUnit,onAddPhase:s,onUpdatePhase:a,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",She,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,The)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:y[4]||(y[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:y[5]||(y[5]=w=>d.value=!1),onApply:p},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Po={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Nhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Rg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Lg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Dhe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:ppe,props:!0,children:[{path:":phaseId/:milestoneId",name:je.milestone,component:cp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:je.activity,props:{default:!0,modal:!0},components:{default:cp,modal:Ype}}]},{path:"feed",name:je.feed,component:Fg,props:!0},{path:"mapping",name:je.mapping,component:Ahe,props:!0}]}],Mhe={class:"ao-templates"},Rg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{In(u,d)});const s=()=>{var h,m;const u=(h=o.templates)==null?void 0:h.at(-1),d=u?rt.LexoRank.parse(u.rank).genNext():rt.LexoRank.middle(),f=((m=o.templates)==null?void 0:m.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:$e.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:$e.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:$e.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",Mhe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(he,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(mo),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(P_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(a_)(f.phases):0,activities:f.phases?i.unref(l_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:h=>a(f.id,h),onClick:h=>u.$router.push({name:i.unref(Po).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(h,m)=>l(h,m))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const Bhe={class:"ao-field__label"},Vg=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",Bhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),$he=["type","value","disabled","readonly"],Ohe=i.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(Vg,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,$he)]),_:1},8,["label"]))}}),Lhe={class:"ao-field"},Ihe={class:"ao-field__label"},Phe=["checked","disabled"],Fhe=i.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",Lhe,[i.createElementVNode("span",Ihe,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,Phe)]))}});exports.AoAvatar=Un;exports.AoCardFeed=ad;exports.AoCheckboxField=Fhe;exports.AoColorPicker=dl;exports.AoFeed=Fg;exports.AoField=Vg;exports.AoInputField=Ohe;exports.AoMultiselect=Dt;exports.AoProjectPhases=sd;exports.AoTabBar=fs;exports.AoTemplateDetails=Lg;exports.AoTemplates=Gg;exports.AoTemplatesList=Rg;exports.EstimationUnit=gp;exports.TemplateItemTypeEnum=mp;exports.activityFeedStatus=_y;exports.durationTypes=yy;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=Dhe;exports.getTemplateRoutes=Nhe;exports.listUpdateTypes=Cy;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=fp;exports.ruleDurationUnits=hp;exports.ruleTriggerTypes=pp;exports.templateItemType=$e;exports.templateRouteNames=Po;
58
+ */function Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=R1e(t):/rgb/.test(t)?e=lp(t):typeof t=="string"?e=lp(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=V1e(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function Xu(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function jc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function F1e({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function R1e(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function lp(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function V1e({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var Qu=i.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),jc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),jc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),r=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const z1e={ref:"canvasSaturation"};function U1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",z1e,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Qu.render=U1e;Qu.__file="src/color/Saturation.vue";var ed=i.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const q1e={ref:"canvasHue"};function H1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",q1e,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ed.render=H1e;ed.__file="src/color/Hue.vue";var td=i.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,r=Xu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),jc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=r=>{let s=r.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const j1e={ref:"canvasAlpha"};function W1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",j1e,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}td.render=W1e;td.__file="src/color/Alpha.vue";var nd=i.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,r=Xu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function Z1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}nd.render=Z1e;nd.__file="src/color/Preview.vue";var od=i.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,h,m]=d.data;m=parseFloat((m/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${p}, ${h}, ${m})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,h,m,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:h,b:m,a:g})}))}}});const K1e=i.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),G1e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Y1e=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function J1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[K1e],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",G1e,[Y1e])):i.createCommentVNode("v-if",!0)])}od.render=J1e;od.__file="src/color/Sucker.vue";var rd=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const X1e={class:"color-type"},Q1e={class:"name"};function efe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",X1e,[i.createVNode("span",Q1e,i.toDisplayString(t.name),1),i.withDirectives(i.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[i.vModelText,t.modelColor]])])}rd.render=efe;rd.__file="src/color/Box.vue";var id=i.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=Xu(4).toDataURL(),i.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:r,selectColor:a}}});const tfe={class:"colors"},nfe={key:0,class:"colors history"};function ofe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",tfe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",nfe,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}id.render=ofe;id.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:Qu,Hue:ed,Alpha:td,Preview:nd,Sucker:od,Box:rd,Colors:id},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return F1e(this.rgba,!0)}},created(){Object.assign(this,Ao(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const rfe={class:"color-set"};function ife(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",rfe,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=ife;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const sfe={class:"color-picker-wrapper"},dl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async m=>{a.value=m,r.value=!0,await i.nextTick();const g=m.getBoundingClientRect(),C=s.value,_=(C==null?void 0:C.offsetHeight)||300,y=window.innerHeight-g.bottom,v=g.top,w=y<_&&v>_;console.log("pickerHeight = "+_),l.value=w?g.top-_-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=m=>{const g=m.target;s.value&&!s.value.contains(g)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,m=>{r.value||(p.value=m)});const p=i.ref(n.color),h=m=>{const{r:g,g:C,b:_,a:y}=m.rgba;p.value=`rgba(${g}, ${C}, ${_}, ${y})`};return(m,g)=>(i.openBlock(),i.createElementBlock("div",sfe,[i.renderSlot(m.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:h},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const afe={class:"ao-card-project-phase__header"},lfe={class:"ao-card-project-item__title-line"},cfe={key:0,class:"ao-card-project-item-phase__estimation"},ufe={class:"ao-card-project-phase__footer"},dfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ffe={class:"ao-card-project-phase__subitem"},pfe={class:"ao-card-project-phase__subitem"},hfe={key:0,class:"ao-card-project-phase__secondary"},mfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},gfe=i.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((C,_)=>{var y;return C+((y=_.activities)==null?void 0:y.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,C)=>{var _;return g+(((_=C.activities)==null?void 0:_.reduce((y,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return y+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Aa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(C=>C.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,C)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||C(_)};return(g,C)=>(i.openBlock(),i.createBlock(dl,{color:h.value,"onUpdate:color":C[2]||(C[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:y})=>[i.createVNode(cl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",lfe,[i.createVNode(at,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",cfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ufe,[u.value?(i.openBlock(),i.createElementBlock("div",dfe,[i.createElementVNode("div",ffe,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",pfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(ul,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",hfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>p.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",mfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",afe,[i.createVNode(he,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:C[0]||(C[0]=i.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const vfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const yfe={class:"ao-card-project-milestone__default"},_fe={class:"ao-title-with-badge-wrapper"},Cfe={class:"ao-card-project-item__title-line"},bfe={key:0,class:"ao-card-project-item-milestone__estimation"},kfe={key:0,class:"ao-card-project-milestone__archive"},wfe={class:"ao-card-project-milestone__activities"},Efe={class:"ao-card-project-milestone__activities-row"},xfe={class:"ao-card-project-milestone__subitem"},Sfe={class:"ao-card-project-milestone__subitem"},Tfe={key:1,class:"ao-card-project-milestone__secondary"},Afe={class:"ao-card-project-milestone__footer"},Nfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Dfe={class:"ao-field__label"},Mfe={key:2,class:"ao-card-project-milestone__assignee"},Bfe=i.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((h,m)=>h+(m.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,h)=>{var g;const m=(g=n.timeTrackingData)==null?void 0:g[h.id];return p+((m==null?void 0:m.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Aa(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(h=>Kc(h,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,h)=>(i.openBlock(),i.createBlock(cl,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",yfe,[i.createElementVNode("div",_fe,[i.createVNode(vfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Cfe,[i.createVNode(at,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":f},null,8,["id","title","is-editable"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",bfe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",kfe,[i.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:h[0]||(h[0]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",wfe,[i.createElementVNode("div",Efe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",xfe,[i.createVNode(Se,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Sfe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(ul,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Tfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",Afe,[t.important?(i.openBlock(),i.createBlock(Se,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",Nfe,[i.createElementVNode("span",Dfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Mfe,[i.createVNode(Un,{"user-name":i.unref(Mp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const $fe={class:"ao-mapping-card-project-phase__header"},Ofe={class:"ao-card-project-item__title-line"},Lfe={key:0,class:"ao-card-project-item-phase__estimation"},Ife={class:"ao-mapping-card-project-phase__footer"},Pfe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Ffe={class:"ao-mapping-card-project-phase__subitem"},Rfe={class:"ao-mapping-card-project-phase__subitem"},Vfe={key:0,class:"ao-mapping-card-project-phase__secondary"},zfe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Ufe=i.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((C,_)=>{var y;return C+((y=_.activities)==null?void 0:y.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,C)=>{var _;return g+(((_=C.activities)==null?void 0:_.reduce((y,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return y+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Aa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(C=>C.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,C)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||C()};return(g,C)=>(i.openBlock(),i.createBlock(dl,{color:h.value,"onUpdate:color":C[2]||(C[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:y})=>[i.createVNode(cl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:y,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Ofe,[i.createVNode(at,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",Lfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Ife,[u.value?(i.openBlock(),i.createElementBlock("div",Pfe,[i.createElementVNode("div",Ffe,[i.createVNode(Se,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Rfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(ul,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:h.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Vfe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>p.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",zfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",$fe,[i.createVNode(he,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:C[0]||(C[0]=i.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const qfe={class:"ao-project-phase"},Hfe={key:0,class:"ao-project-phase__drag ao-card__drag"},jfe={key:1,class:"ao-project-phase__col-phase"},Wfe={key:2,class:"ao-mapping-project-phase__col-phase"},Zfe={key:0,class:"ao-project-phase__col-milestones"},Kfe={class:"ao-project-phase__milestones-list-footer"},Gfe=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.phase.milestones,(v,w)=>{In(v,w)});const s=v=>{r("updatePhase",{id:o.phase.id,name:v})},a=v=>{r("updatePhase",{id:o.phase.id,deadline:v})},l=v=>{r("updatePhase",v)},c=i.computed(()=>o.phase.milestones.map(v=>d_(v,o.closedStatus))),u=v=>{const{name:w,rank:k}=Uo(c.value??[],"milestone",n);r("addMilestone",{name:w,rank:k,phaseId:v})},d=v=>{r("updateMilestone",v)},f=v=>{r("archiveMilestone",v)},p=v=>{r("unarchiveMilestone",v)},h=v=>{r("archivePhase",v)},m=v=>{r("unarchivePhase",v)},g=v=>{"added"in v?r("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:Ar(c.value,v.added.newIndex)}):"removed"in v||"moved"in v&&r("updateMilestone",{id:v.moved.element.id,rank:Ar(c.value,v.moved.newIndex)})},C=Ki.useRoute(),_=i.computed(()=>C.path.includes("/mapping")),y=i.computed(()=>{var v;return o.phase.id!==((v=C.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:p_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",qfe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(y.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Hfe,[i.createVNode(Se,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",Wfe,[i.createVNode(Ufe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",jfe,[i.createVNode(gfe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Zfe,[i.createElementVNode("div",{class:"ao-project-phase__milestones",style:i.normalizeStyle(y.value)},[i.createVNode(i.unref(mo),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:g}),{item:i.withCtx(({element:k})=>{var b;return[i.createVNode(Bfe,{id:k.id,name:k.name,color:k.color,"phase-color":t.phase.color,activities:k.activities,deadline:k.deadline,active:k.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":k.id===((b=v.$route.params)==null?void 0:b.milestoneId),assignee:k.assignee,important:k.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&v.$router.push({name:i.unref(je).milestone,params:{phaseId:t.phase.id,milestoneId:k.id}}),onUpdateMilestone:d,onArchiveMilestone:f,onUnarchiveMilestone:p},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),i.createElementVNode("div",Kfe,[t.isEditable?(i.openBlock(),i.createBlock(go,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:w[0]||(w[0]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Yfe={class:"ao-project__phases"},Jfe={key:0,class:"ao-project-phase__phases-list-footer"},Xfe={class:"ao-project-phase__col-phase"},sd=i.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>n.phases,(h,m)=>{In(h,m)});const r=h=>{o("addMilestone",h)},s=h=>{o("updateMilestone",h)},a=h=>{o("archiveMilestone",h)},l=h=>{o("unarchiveMilestone",h)},c=h=>{o("archivePhase",h)},u=h=>{o("unarchivePhase",h)},d=h=>{if(h.moved){const m=Xi(h,n.phases??[]);o("updatePhase",{id:h.moved.element.id,rank:m})}},f=h=>{o("updatePhase",h)},p=h=>{o("addPhase",h)};return(h,m)=>(i.openBlock(),i.createElementBlock("div",Yfe,[i.createVNode(i.unref(mo),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Gfe,{phase:g,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:r,onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Jfe,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Xfe,[i.createVNode(go,{label:h.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),m[1]||(m[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const Qfe={class:"ao-add-template-modal__form-body"},epe={class:"field__row"},tpe={class:"ao-add-template-modal__form-footer"},Ig=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Da,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(at,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",Qfe,[i.createElementVNode("div",epe,[i.createVNode(Dt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",tpe,[i.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const npe={class:"ao-save-template-modal__form-body"},ope={class:"field__row"},rpe={class:"ao-field ao-field--inline"},ipe={class:"ao-field__label"},spe={class:"ao-save-template-modal__phases"},ape={class:"ao-field__label"},lpe={class:"ao-save-template-modal__phases-list"},cpe=["value"],upe={class:"ao-save-template-modal__form-footer"},Pg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Da,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(at,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",npe,[i.createElementVNode("div",ope,[i.createElementVNode("label",rpe,[i.createElementVNode("span",ipe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",spe,[i.createElementVNode("div",ape,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",lpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:u.id},[i.withDirectives(i.createElementVNode("input",{type:"checkbox",value:u.id,"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d)},null,8,cpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",upe,[i.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const dpe={class:"ao-project"},fpe={class:"ao-project__body"},ppe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(N=>N.milestones)),a=()=>{const{name:N,rank:G}=Uo(o.phases,"phase",n);r("addPhase",{name:N,rank:G,projectId:o.project.id})},l=N=>{r("updatePhase",N)},c=N=>{r("archivePhase",N)},u=N=>{r("unarchivePhase",N)},d=N=>{r("copyPhaseToTemplate",N)},f=N=>{r("addMilestone",N)},p=N=>{r("updateMilestone",N)},h=N=>{r("archiveMilestone",N)},m=N=>{r("unarchiveMilestone",N)},g=N=>{r("addActivity",N)},C=N=>{r("update:activity",N)},_=N=>{r("archiveActivity",N)},y=N=>{r("unarchiveActivity",N)},v=N=>{r("addSubtask",N)},w=N=>{r("updateSubtask",N)},k=N=>{r("deleteSubtask",N)},b=i.computed(()=>s.value.flatMap(N=>N.activities)),x=N=>{r("addFiles",N)},S=N=>{r("removeFile",N)},A=N=>{r("addComment",N)},T=N=>{r("updateComment",N)},I=N=>{r("removeComment",N)},$=i.ref(!1),M=i.ref(!1),B=(N,G)=>{r("applyTemplate",{templateId:N,projectId:G}),$.value=!1},P=(N,G)=>{var ce;const z=(ce=o.templates)==null?void 0:ce.at(-1),H=z?it.LexoRank.parse(z.rank).genNext():it.LexoRank.middle();r("saveTemplate",{templateName:N,rank:H.format(),phaseIds:G}),M.value=!1},R=Ki.useRouter(),K=i.ref("overview"),F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(K,N=>{N==="feed"?(R.push({name:je.feed}),console.log("Navigating to feed...")):N==="overview"?(R.push({name:je.project}),console.log("Navigating to feed...")):N==="mapping"&&(R.push({name:je.mapping}),console.log("Navigating to feed..."))}),(N,G)=>{var H;const z=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},N.$attrs),[i.createElementVNode("div",dpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{tabs:F,modelValue:K.value,"onUpdate:modelValue":G[0]||(G[0]=ce=>K.value=ce)},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:N.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:G[1]||(G[1]=ce=>N.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:N.$t("project.template.save.label"),onClick:G[2]||(G[2]=ce=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:N.$t("project.template.apply.label"),onClick:G[3]||(G[3]=ce=>$.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",fpe,[i.createVNode(sd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(H=t.project)==null?void 0:H.estimationUnit,onAddMilestone:f,onUpdateMilestone:p,onArchiveMilestone:h,onUnarchiveMilestone:m,onAddPhase:a,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(z,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:G[4]||(G[4]=ce=>N.$router.push({name:i.unref(je).project})),onUpdateMilestone:p,onAddActivity:g,onUpdateActivity:C,onArchiveActivity:_,onUnarchiveActivity:y},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(z,{name:"modal",activities:b.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"onUpdate:activity":C,onAddSubtask:v,onUpdateSubtask:w,onDeleteSubtask:k,onAddFiles:x,onRemoveFile:S,onAddComment:A,onUpdateComment:T,onRemoveComment:I},{default:i.withCtx(({Component:ce})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ce),null,{default:i.withCtx(ee=>[i.renderSlot(N.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ee)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:G[5]||(G[5]=ce=>M.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),$.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:G[6]||(G[6]=ce=>$.value=!1),onApply:B},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const hpe={class:"ao-card-feed__header"},mpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},gpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},vpe={class:"ao-card-feed__body"},ype={key:0,class:"ao-card-feed__breadcrumbs"},_pe={class:i.normalizeClass(["ao-card-feed__title-group"])},Cpe={class:"ao-card-feed__title-line"},bpe={key:0,class:"ao-card-feed__slug"},kpe={key:1,class:"ao-card-feed__deadline"},wpe={class:"ao-card-feed__footer"},Epe={class:"ao-card-feed__footer-row"},xpe={class:"ao-assignees"},Spe={key:0,class:"ao-assignee"},Tpe={key:0,class:"ao-card-feed__subitems"},Ape={key:0,class:"ao-card-feed__subitem"},Npe={class:"ao-card-feed__subitem"},Dpe={key:1,class:"ao-card-feed__subitem"},Mpe={class:"ao-card-feed__subitem"},Bpe={class:"ao-card-feed__timer-wrapper"},$pe={class:"ao-card-feed__footer-row"},Ope={key:0,class:"ao-card-feed__progress-wrapper"},Lpe={class:"ao-card-feed__subitem"},Ipe={class:"ao-card-feed__subitem"},ad=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Na(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),h=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(C=>C.isDone).length}),m=i.computed(()=>(h.value||0)/(p.value||1));return(g,C)=>(i.openBlock(),i.createBlock(cl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",hpe,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",mpe,[t.isPrivate?(i.openBlock(),i.createBlock(Se,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(Se,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(Se,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",gpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",vpe,[l.value?(i.openBlock(),i.createElementBlock("span",ype,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",_pe,[i.createElementVNode("div",Cpe,[t.slug?(i.openBlock(),i.createElementBlock("span",bpe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(at,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":a,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",kpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",wpe,[i.createElementVNode("div",Epe,[i.createElementVNode("ul",xpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[_?(i.openBlock(),i.createElementBlock("li",Spe,[i.createVNode(Un,{"user-name":i.unref(Mp)(_),"avatar-url":_.avatarUrl,"is-closable":!0,onClose:()=>d(_.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",Tpe,[t.comments?(i.openBlock(),i.createElementBlock("li",Ape,[i.createVNode(Se,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",Npe,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",Dpe,[i.createVNode(Se,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Mpe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Bpe,[i.createVNode(Se,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",$pe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",Ope,[i.createElementVNode("div",Lpe,[i.createVNode(Se,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Ipe,i.toDisplayString(h.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(ul,{percentages:m.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Ppe={class:"ao-project-milestone"},Fpe={class:"ao-project-milestone__header"},Rpe={class:"ao-project-milestone__header_line"},Vpe={class:"ao-project-milestone__header_line"},zpe={class:"ao-project-milestone__title"},Upe={key:0,class:"ao-fieldset ao-milestone__fieldset"},qpe={class:"ao-field__row ao-milestone__field-row"},Hpe={class:"ao-field ao-field--inline"},jpe={class:"ao-field__row ao-milestone__field-row"},Wpe={class:"ao-field ao-milestone__field-multiselect"},Zpe=["onClick"],Kpe={class:"ao-project-milestone__body"},Gpe={key:0,class:"ao-project-milestone__footer"},cp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=k=>{var b;r("startTimer",k),(b=window.parent)==null||b.postMessage({type:"startTimer",data:k},"*")},a=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.find(b=>b.id===o.phaseId)}),l=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.flatMap(b=>b.milestones)}),c=i.computed(()=>{var k;return(k=l.value)==null?void 0:k.find(b=>b.id===o.milestoneId)}),u=i.computed(()=>{var k;return(k=c.value)==null?void 0:k.activities});i.watch(u,(k,b)=>{In(k,b)});const d=k=>{r("close",k)},f=()=>{const{name:k,rank:b}=Uo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:k,rank:b,projectId:o.projectId})},p=k=>{r("updateActivity",k)},h=k=>{u.value&&"moved"in k&&r("updateActivity",{id:k.moved.element.id,rank:Ar(u.value,k.moved.newIndex)})},m=i.computed({get:()=>{var k;return(k=c.value)==null?void 0:k.color},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,color:k})}}),g=i.computed({get:()=>{var k;return((k=c==null?void 0:c.value)==null?void 0:k.deadline)??""},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:k!=null&&k.length?k:null})}}),C=k=>o.closedStatus?Kc(k,o.closedStatus):!1,_=i.computed(()=>{var k;return((k=o.users)==null?void 0:k.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))||[]}),y=i.computed({get(){var k,b;return(b=(k=c.value)==null?void 0:k.assignee)!=null&&b.id?[c.value.assignee.id]:[]},set(k){r("updateMilestone",{id:o.milestoneId,assigneeId:k[0]??null})}}),v=i.computed({get(){var k;return((k=c.value)==null?void 0:k.important)??!1},set(k){r("updateMilestone",{id:o.milestoneId,important:k})}}),w=(k,b)=>{const x=k.currentTarget;x instanceof HTMLElement&&b(x)};return(k,b)=>{var x;return i.openBlock(),i.createElementBlock("div",Ppe,[i.createElementVNode("header",Fpe,[i.createElementVNode("div",Rpe,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",Vpe,[i.createElementVNode("div",zpe,[i.createVNode(at,{title:((x=c.value)==null?void 0:x.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Og,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=S=>v.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:k.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Upe,[i.createElementVNode("div",qpe,[i.createElementVNode("label",Hpe,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,g.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",jpe,[i.createElementVNode("label",Wpe,[i.createVNode(Dt,{modelValue:y.value,"onUpdate:modelValue":b[2]||(b[2]=S=>y.value=S),options:_.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:A})=>[i.createVNode(Un,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:T=>A(S,T)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createVNode(dl,{color:m.value,"onUpdate:color":b[3]||(b[3]=S=>m.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:A})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:A}),class:"color-button",onClick:T=>w(T,S)},null,12,Zpe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Kpe,[i.createVNode(i.unref(mo),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},k.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var A,T,I,$,M;return[i.createVNode(ad,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(A=a.value)==null?void 0:A.name,"milestone-name":(T=c.value)==null?void 0:T.name,"milestone-color":(I=c.value)==null?void 0:I.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:($=S.comments)==null?void 0:$.length,attachments:(M=S.attachments)==null?void 0:M.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:B=>k.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("archive"),onClick:i.withModifiers(()=>k.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>k.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Gpe,[i.createVNode(go,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Ype=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.find(y=>y.id===n.phaseId)}),s=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.flatMap(y=>y.milestones)}),a=i.computed(()=>{var _;return(_=s.value)==null?void 0:_.find(y=>y.id===n.milestoneId)}),l=i.computed(()=>{var _;return(_=n.activities)==null?void 0:_.find(y=>y.id===n.activityId)}),c=_=>{o("update:activity",_)},u=_=>{o("addSubtask",_)},d=_=>{o("updateSubtask",_)},f=_=>{o("deleteSubtask",_)},p=_=>{o("addFiles",_)},h=_=>{o("removeFile",_)},m=_=>{o("addComment",_)},g=_=>{o("updateComment",_)},C=_=>{o("removeComment",_)};return(_,y)=>{var v,w;return l.value?(i.openBlock(),i.createBlock(Ju,{key:0,activity:l.value,"activity-types":t.activityTypes,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(v=r.value)==null?void 0:v.name} / ${(w=a.value)==null?void 0:w.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:_.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:h,onAddComment:m,onUpdateComment:g,onRemoveComment:C},{default:i.withCtx(k=>[i.renderSlot(_.$slots,"default",i.normalizeProps(i.guardReactiveProps(k)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):i.createCommentVNode("",!0)}}}),Jpe={class:"ao-col-header"},Xpe=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Jpe,[i.createVNode(at,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Qpe(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function ka(t){return typeof t=="function"?t():i.unref(t)}const ehe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const the=t=>t!=null,Mi=()=>{};function nhe(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function ohe(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=ka(t),u=ka(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{r=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function rhe(t,e=200,n={}){return nhe(ohe(e,n),t)}function ic(t){var e;const n=ka(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ihe=ehe?window:void 0;function she(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function ahe(t){const e=she();return i.computed(()=>(e.value,!!t()))}function lhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=ihe,immediate:l=!0}=n,c=ahe(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const m=ka(t);return(Array.isArray(m)?m:[m]).map(ic).filter(the)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,ic(o),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const C=new IntersectionObserver(e,{root:ic(g),rootMargin:r,threshold:s});m.forEach(_=>_&&C.observe(_)),d=()=>{C.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,h=()=>{d(),p(),f.value=!1};return Qpe(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const che={class:i.normalizeClass(["ao-list-kanban"])},uhe={class:"ao-list-kanban__header"},dhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},fhe={key:1,class:"ao-list-kanban__end"},phe={key:0,class:"ao-list-kanban__no-more"},hhe={key:1,class:"ao-list-kanban__divider"},mhe={key:1,class:"ao-list-kanban__footer"},ghe=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null);lhe(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",che,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",uhe,[t.title?(i.openBlock(),i.createBlock(Xpe,{key:0,title:t.title,level:3,items:(h=t.list)==null?void 0:h.length},null,8,["title","items"])):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(mo),i.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:i.withCtx(({element:h})=>{var m,g,C,_,y,v,w,k,b,x;return[i.createVNode(ad,{class:i.normalizeClass(a(h)?"ao-list-draggable":""),id:h.id,name:h.name,"project-name":(m=h.project)==null?void 0:m.name,"project-id":(g=h.project)==null?void 0:g.id,"project-color":(C=h.project)==null?void 0:C.color,"phase-name":(y=(_=h.milestone)==null?void 0:_.phase)==null?void 0:y.name,"milestone-name":(v=h.milestone)==null?void 0:v.name,"milestone-color":(w=h.milestone)==null?void 0:w.color,deadline:h.deadline,rules:((k=h.rules)==null?void 0:k.length)||0,tasks:h.tasks,description:h.description,important:h.important,type:h.type,comments:(b=h.comments)==null?void 0:b.length,attachments:(x=h.attachments)==null?void 0:x.length,users:t.users,assignee:h.assignee,slug:h.slug,"is-editable":a(h),"is-private":h.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(h)&&c(S),()=>a(h)&&c],onClick:()=>l(h.id),onRemoveAssignee:()=>a(h)&&c({id:h.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=S=>f.$emit("startTimer",S))},{secondary:i.withCtx(()=>[a(h)&&h.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(h)&&!h.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",dhe,[i.createVNode(Se,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",fhe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",phe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",hhe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",mhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(go,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[3]||(p[3]=h=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const vhe={class:"ao-field ao-search-field"},yhe=["value","placeholder"],_he=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=rhe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",vhe,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,yhe),i.createVNode(Se,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const Che={class:"ao-feed"},bhe={class:"ao-feed__filters"},khe={class:"ao-feed__body"},Fg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;function s(z,H){r("toast",z,H)}const a=i.toRef(o,"activities"),l=async(z,H)=>{await r("selectActivity",z,H)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([z,H,ce,ee],[ie,U])=>{c.value=Object.fromEntries(z.map(ne=>[ne.id,H.filter(L=>{var Y;return((Y=L.status)==null?void 0:Y.id)===ne.id})])),ce&&!u.value?(l(ce,null),u.value=!0):ee&&!u.value&&(l(null,ee),u.value=!0),d.value&&In(H,U)},{immediate:!0});const p=i.computed(()=>{var z;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((z=o.selectedActivity.milestone.phase)==null?void 0:z.name)??""} / ${o.selectedActivity.milestone.name??""}`}),h=z=>{var U,ne;const H=(U=o.activities)==null?void 0:U.at(-1),ce=H?it.LexoRank.parse(H.rank).genNext():it.LexoRank.middle(),ee=((ne=o.activities)==null?void 0:ne.length)??0,ie={name:n("activity.defaultName",{idx:ee+1}),rank:ce.format(),statusId:z.id};o.filters.assigneeId.length>0&&(ie.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ie.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ie.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",ie)},m=(z,H)=>{d.value=!1,r("update:filters",{...o.filters,[z]:H})},g=i.computed(()=>o.project?[o.project]:o.projects??[]),C=i.computed(()=>g.value.map(z=>({value:z.id,label:z.name}))),_=i.computed(()=>{var z;return(z=o.activityTypes)==null?void 0:z.map(H=>({value:H.id,label:H.name}))}),y=i.computed(()=>o.users.map(z=>({value:z.id,label:`${z.firstName} ${z.lastName}`,avatar:z.avatarUrl}))),v=z=>{o.selectedActivity&&r("update:activity",z)},w=z=>{r("update:activity",z)},k=z=>{r("archiveActivity",z)},b=z=>{r("unarchiveActivity",z)},x=z=>{var H;r("startTimer",z),(H=window.parent)==null||H.postMessage({type:"startTimer",data:z},"*")},S=z=>{d.value=!1,r("update:searchText",z)},A=z=>{d.value=!1,r("clear:searchText",z)},T=z=>{o.selectedActivity&&r("addSubtask",z)},I=z=>{o.selectedActivity&&r("updateSubtask",z)},$=z=>{o.selectedActivity&&r("deleteSubtask",z)},M=z=>{r("addFiles",z)},B=z=>{r("removeFile",z)},P=z=>{o.selectedActivity&&r("addComment",{...z,activityId:o.selectedActivity.id})},R=z=>{const{id:H}=o.selectedActivity||{};H&&r("updateComment",z)},K=z=>{const{id:H}=o.selectedActivity||{};H&&r("removeComment",z)},F=Ki.useRouter(),N=i.ref("feed"),G=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(N,z=>{z==="feed"?(F.push({name:je.feed}),console.log("Navigating to feed...")):z==="overview"?(F.push({name:je.project}),console.log("Navigating to feed...")):z==="mapping"&&(F.push({name:je.mapping}),console.log("Navigating to feed..."))}),(z,H)=>{var ce;return i.openBlock(),i.createElementBlock("div",Che,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",bhe,[i.createVNode(fs,{tabs:G,modelValue:N.value,"onUpdate:modelValue":H[0]||(H[0]=ee=>N.value=ee)},null,8,["modelValue"]),i.createVNode(_he,{"model-value":t.searchText,placeholder:z.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:A},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Dt,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:z.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":H[1]||(H[1]=ee=>m(i.unref(No).project,ee))},null,8,["model-value","options","placeholder"])),_.value?(i.openBlock(),i.createBlock(Dt,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:z.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":H[2]||(H[2]=ee=>m(i.unref(No).type,ee))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),y.value.length?(i.openBlock(),i.createBlock(Dt,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:z.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":H[3]||(H[3]=ee=>m(i.unref(No).assignee,ee))},{tag:i.withCtx(({option:ee,handleTagRemove:ie})=>[i.createVNode(Un,{"user-name":ee.label,"avatar-url":ee.avatar,"is-closable":!0,onClose:U=>ie(ee,U)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:z.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:H[4]||(H[4]=ee=>z.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:z.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:H[5]||(H[5]=ee=>z.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:z.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:H[6]||(H[6]=ee=>z.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",khe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,ee=>(i.openBlock(),i.createBlock(ghe,{key:ee.id,status:ee,list:c.value[ee.id],title:ee.name,"footer-label":z.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:f.value,onAdd:()=>h(ee),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Ju,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:H[7]||(H[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:T,onUpdateSubtask:I,onDeleteSubtask:$,onAddFiles:M,onRemoveFile:B,onAddComment:P,onUpdateComment:R,onRemoveComment:K,onToast:s},{default:i.withCtx(ee=>[i.renderSlot(z.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ee)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):i.createCommentVNode("",!0)]))])}}});const whe={class:"ao-project-mapping"},Ehe={class:"ao-project-mapping-mapping__body"},xhe={class:"ao-project-mapping-mapping__phases"},She={key:0,class:"ao-project-mapping-mapping__image-wrapper"},The=["src","alt"],Ahe=i.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e,s=()=>{const{name:_,rank:y}=Uo(o.phases,"phase",n);r("addPhase",{name:_,rank:y,projectId:o.project.id})},a=_=>{r("updatePhase",_)},l=_=>{r("archivePhase",_)},c=_=>{r("unarchivePhase",_)},u=_=>{r("copyPhaseToTemplate",_)},d=i.ref(!1),f=i.ref(!1),p=(_,y)=>{r("applyTemplate",{templateId:_,projectId:y}),d.value=!1},h=(_,y)=>{var k;const v=(k=o.templates)==null?void 0:k.at(-1),w=v?it.LexoRank.parse(v.rank).genNext():it.LexoRank.middle();r("saveTemplate",{templateName:_,rank:w.format(),phaseIds:y}),f.value=!1},m=Ki.useRouter(),g=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(g,_=>{_==="feed"?(m.push({name:je.feed}),console.log("Navigating to feed...")):_==="overview"?(m.push({name:je.project}),console.log("Navigating to feed...")):_==="mapping"&&(m.push({name:je.mapping}),console.log("Navigating to feed..."))}),(_,y)=>{var v;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[i.createElementVNode("div",whe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{modelValue:g.value,"onUpdate:modelValue":y[0]||(y[0]=w=>g.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:y[1]||(y[1]=w=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:y[2]||(y[2]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:y[3]||(y[3]=w=>d.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",Ehe,[i.createElementVNode("div",xhe,[i.createVNode(sd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(v=t.project)==null?void 0:v.estimationUnit,onAddPhase:s,onUpdatePhase:a,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",She,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,The)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:y[4]||(y[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:y[5]||(y[5]=w=>d.value=!1),onApply:p},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Po={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Nhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Rg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Lg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Dhe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:ppe,props:!0,children:[{path:":phaseId/:milestoneId",name:je.milestone,component:cp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:je.activity,props:{default:!0,modal:!0},components:{default:cp,modal:Ype}}]},{path:"feed",name:je.feed,component:Fg,props:!0},{path:"mapping",name:je.mapping,component:Ahe,props:!0}]}],Mhe={class:"ao-templates"},Rg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Hn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{In(u,d)});const s=()=>{var h,m;const u=(h=o.templates)==null?void 0:h.at(-1),d=u?it.LexoRank.parse(u.rank).genNext():it.LexoRank.middle(),f=((m=o.templates)==null?void 0:m.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:$e.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:$e.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:$e.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",Mhe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(he,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(mo),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(P_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(a_)(f.phases):0,activities:f.phases?i.unref(l_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:h=>a(f.id,h),onClick:h=>u.$router.push({name:i.unref(Po).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(h,m)=>l(h,m))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const Bhe={class:"ao-field__label"},Vg=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",Bhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),$he=["type","value","disabled","readonly"],Ohe=i.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(Vg,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,$he)]),_:1},8,["label"]))}}),Lhe={class:"ao-field"},Ihe={class:"ao-field__label"},Phe=["checked","disabled"],Fhe=i.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",Lhe,[i.createElementVNode("span",Ihe,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,Phe)]))}});exports.AoAvatar=Un;exports.AoCardFeed=ad;exports.AoCheckboxField=Fhe;exports.AoColorPicker=dl;exports.AoFeed=Fg;exports.AoField=Vg;exports.AoInputField=Ohe;exports.AoMultiselect=Dt;exports.AoProjectPhases=sd;exports.AoTabBar=fs;exports.AoTemplateDetails=Lg;exports.AoTemplates=Gg;exports.AoTemplatesList=Rg;exports.EstimationUnit=gp;exports.TemplateItemTypeEnum=mp;exports.activityFeedStatus=_y;exports.durationTypes=yy;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=Dhe;exports.getTemplateRoutes=Nhe;exports.listUpdateTypes=Cy;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=fp;exports.ruleDurationUnits=hp;exports.ruleTriggerTypes=pp;exports.templateItemType=$e;exports.templateRouteNames=Po;