@26lights/orcha 0.42.87 → 0.42.88

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 V0=oe(I0,[["render",F0]]),R0={},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(R0,[["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={},V2={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",V2,[...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",R2]]),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:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),i.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",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:"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 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:"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 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:"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 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:"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 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:"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 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:"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 _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:"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 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:"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 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:"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 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:"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 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:"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 Vv=oe(Iv,[["render",Fv]]),Rv={},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:"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 qv=oe(Rv,[["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:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Zv=oe(Hv,[["render",Wv]]),Kv={},Gv={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",Gv,[...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 Jv=oe(Kv,[["render",Yv]]),Xv=i.defineComponent({name:"LoadingIcon"});const Qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Qv,[...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 t3=oe(Xv,[["render",e3],["__scopeId","data-v-ad6da4a9"]]),n3={},o3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function r3(t,e){return i.openBlock(),i.createElementBlock("svg",o3,[...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 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:"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 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:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",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:"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 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:"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 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:"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 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:"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 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:"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 $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:"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 P3=oe(O3,[["render",I3]]),F3={},V3={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",V3,[...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 z3=oe(F3,[["render",R3]]),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 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 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:"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 G3=oe(W3,[["render",K3]]),Y3={},J3={width:"24",height:"24",viewBox:"0 0 24 24",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.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 Q3=oe(Y3,[["render",X3]]),e5={},t5={width:"26",height:"29",viewBox:"0 0 26 29",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.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 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:"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 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:"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 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:"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 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:"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 _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:"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 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:"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 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:"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 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:"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 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 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 V5=oe(I5,[["render",F5]]),R5={},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:"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 q5=oe(R5,[["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:"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 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.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 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:"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 ty=oe(X5,[["render",ey]]),ny={},oy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ry(t,e){return i.openBlock(),i.createElementBlock("svg",oy,[...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 iy=oe(ny,[["render",ry]]),sy=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:V0,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,DownloadRounded:G2,DragIndicator:Q2,EditDocumentRounded:ov,EditOutline:av,ErrorOutlineRounded:dv,FilterListRounded:mv,FlagRounded:_v,FlowsheetOutlineRounded:wv,GifBox:Tv,GroupsOutline:Mv,HomeOutlineRounded:Lv,ImageRounded:Vv,Info:qv,KeyboardArrowDown:Zv,KeyboardArrowUp:Jv,Loading:t3,Lock:i3,LogoutRounded:c3,Menu:p3,MoreHoriz:v3,MoreTimeRounded:b3,MoreVert:x3,MountainFlagOutlineRounded:N3,PersonAddOutlineRounded:$3,PictureAsPdfRounded:P3,RadioButtonChecked:z3,RadioButtonCheckedOutline:j3,RadioButtonUnchecked:G3,RemoveRounded:Q3,SearchRounded:o5,SelectCheckBox:a5,SendRounded:d5,Settings:m5,SlideshowRounded:_5,Target:w5,TaskOutlineRounded:T5,TextSnippetRounded:M5,TimerOutline:L5,ViewComfyAltRounded:V5,ViewCompactAltRounded:q5,ViewTimelineRounded:Z5,WarningOutlineRounded:J5,WarningRounded:ty,WaterfallChartRounded:iy},Symbol.toStringTag,{value:"Module"})),ay={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"},ly={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Wc,...ly});const up={ROUND:"round",ROUNDED:"rounded"},cy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},be=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:wa.MD}},setup(t){const e=t,n=i.computed(()=>sy[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 uy=["type"],dy={key:0,class:"ao-button__label"},me=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ay.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",dy,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,uy))}});function fy(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}=fy(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 py={key:0,class:"ao-card-horiz__drag ao-card__drag"},hy={class:"ao-card-horiz__header"},my={key:0,class:"ao-card-horiz__avatar"},gy={class:"ao-card-horiz__title-group"},vy={key:0,class:"ao-card-horiz__subtitle"},yy={key:1,class:"ao-card-horiz__header"},_y={key:1,class:"ao-card-horiz__body"},Cy={key:2,class:"ao-card-horiz__footer"},by={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",py,[i.createVNode(be,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",hy,[t.icon?(i.openBlock(),i.createElementBlock("div",my,[i.createVNode(be,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",gy,[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",vy,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",yy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",_y,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",by,[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(cy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(be,{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(be,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},ky={months:"months",weeks:"weeks",days:"days"},wy={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 Ey={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 qe(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function dt(t){qe(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 xy(t,e){qe(2,arguments);var n=dt(t).getTime(),o=Pn(e);return new Date(n+o)}var Sy={};function Gi(){return Sy}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){qe(1,arguments);var e=dt(t);return e.setHours(0,0,0,0),e}var Ty=864e5;function Ay(t,e){qe(2,arguments);var n=md(t),o=md(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/Ty)}function Ny(t,e){qe(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 Dy(t){return qe(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _p(t){if(qe(1,arguments),!Dy(t)&&typeof t!="number")return!1;var e=dt(t);return!isNaN(Number(e))}function sc(t,e){qe(2,arguments);var n=Pn(e);return xy(t,-n)}var My=864e5;function By(t){qe(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/My)+1}function Ks(t){qe(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){qe(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 $y(t){qe(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 Oy=6048e5;function Ly(t){qe(1,arguments);var e=dt(t),n=Ks(e).getTime()-$y(e).getTime();return Math.round(n/Oy)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;qe(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;qe(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 Iy(t,e){var n,o,r,s,a,l,c,u;qe(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 Py=6048e5;function Fy(t,e){qe(1,arguments);var n=dt(t),o=Gs(n,e).getTime()-Iy(n,e).getTime();return Math.round(o/Py)+1}function Te(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Vy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Te(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Te(o+1,2)},d:function(e,n){return Te(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 Te(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Te(e.getUTCHours(),n.length)},m:function(e,n){return Te(e.getUTCMinutes(),n.length)},s:function(e,n){return Te(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 Te(s,n.length)}};const Xn=Vy;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ry={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 Te(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Te(a,n.length)},R:function(e,n){var o=Cp(e);return Te(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Te(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 Te(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 Te(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 Te(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=Fy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Te(s,n.length)},I:function(e,n,o){var r=Ly(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Te(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=By(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Te(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 Te(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 Te(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 Te(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"}):Te(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Te(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 Te(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Te(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+Te(s,2)}function vd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Te(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Te(Math.floor(r/60),2),a=Te(r%60,2);return o+s+n+a}const zy=Ry;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"})}},Uy=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))},qy={p:kp,P:Uy};const Hy=qy;var jy=["D","DD"],Wy=["YY","YYYY"];function Zy(t){return jy.indexOf(t)!==-1}function Ky(t){return Wy.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 Gy={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"}},Yy=function(e,n,o){var r,s=Gy[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 Jy=Yy;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 Xy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},e7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t7={date:vl({formats:Xy,defaultWidth:"full"}),time:vl({formats:Qy,defaultWidth:"full"}),dateTime:vl({formats:e7,defaultWidth:"full"})};const n7=t7;var o7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r7=function(e,n,o,r){return o7[e]};const i7=r7;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 s7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},l7={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"]},c7={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"]},u7={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"}},d7={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"}},f7=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"},p7={ordinalNumber:f7,era:ai({values:s7,defaultWidth:"wide"}),quarter:ai({values:a7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:l7,defaultWidth:"wide"}),day:ai({values:c7,defaultWidth:"wide"}),dayPeriod:ai({values:u7,defaultWidth:"wide",formattingValues:d7,defaultFormattingWidth:"wide"})};const h7=p7;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)?g7(l,function(f){return f.test(a)}):m7(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 m7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function g7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function v7(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 y7=/^(\d+)(th|st|nd|rd)?/i,_7=/\d+/i,C7={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},b7={any:[/^b/i,/^(a|c)/i]},k7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w7={any:[/1/i,/2/i,/3/i,/4/i]},E7={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},x7={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]},S7={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},T7={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]},A7={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},N7={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}},D7={ordinalNumber:v7({matchPattern:y7,parsePattern:_7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:C7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),quarter:li({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:x7,defaultParseWidth:"any"}),day:li({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:A7,defaultMatchWidth:"any",parsePatterns:N7,defaultParseWidth:"any"})};const M7=D7;var B7={code:"en-US",formatDistance:Jy,formatLong:n7,formatRelative:i7,localize:h7,match:M7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wp=B7;var $7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L7=/^'([^]*?)'?$/,I7=/''/g,P7=/[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;qe(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 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(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var A=dt(t);if(!_p(A))throw new RangeError("Invalid time value");var N=Oi(A),D=sc(A,N),$={firstWeekContainsDate:S,weekStartsOn:T,locale:x,_originalDate:A},O=k.match(O7).map(function(P){var F=P[0];if(F==="p"||F==="P"){var Z=Hy[F];return Z(P,x.formatLong)}return P}).join("").match($7).map(function(P){if(P==="''")return"'";var F=P[0];if(F==="'")return F7(P);var Z=zy[F];if(Z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ky(P)&&_d(P,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Zy(P)&&_d(P,e,String(t)),Z(D,P,x.localize,$);if(F.match(P7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return P}).join("");return O}function F7(t){var e=t.match(L7);return e?e[1].replace(I7,"'"):t}function V7(t,e,n){var o,r,s,a,l,c,u,d,f,p;qe(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=Ay(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;qe(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=q7(t),s;if(r.date){var a=H7(r.date,o);s=j7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=W7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=Z7(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+-].*)$/},R7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,z7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,U7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function q7(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 H7(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 j7(t,e){if(e===null)return new Date(NaN);var n=t.match(R7);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 X7(e,l,c)?K7(e,l,c):new Date(NaN);var u=new Date(0);return!Y7(e,s,a)||!J7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function W7(t){var e=t.match(z7);if(!e)return NaN;var n=yl(e[1]),o=yl(e[2]),r=yl(e[3]);return Q7(n,o,r)?n*yp+o*vp+r*1e3:NaN}function yl(t){return t&&parseFloat(t.replace(",","."))||0}function Z7(t){if(t==="Z")return 0;var e=t.match(U7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return e_(o,r)?n*(o*yp+r*vp):NaN}function K7(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 G7=[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 Y7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(G7[e]||(xp(t)?29:28))}function J7(t,e){return e>=1&&e<=(xp(t)?366:365)}function X7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Q7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function e_(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 t_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n_(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={},Rr={},Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.lexoHelper=void 0;Ea.lexoHelper={arrayCopy:o_};function o_(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 r_{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=r_;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.LexoInteger=void 0;const ws=Ea,i_=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 i_.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")}}Rr.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=Rr,s_=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 s_.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=Rr,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 a_{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=a_;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem36=void 0;class l_{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=l_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem64=void 0;class c_{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=c_;(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(Rr,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,u_=8,kd=_i*u_;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 d_(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 f_(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 p_(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 h_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Kc(n,e))}function m_(t,e){return{...t,status:h_(t,e)?$i.done:$i.todo}}const Mp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function g_(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 v_(t,e=.15){var n;if(t.startsWith("#"))return g_(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 y_=["title"],__={key:0,className:"ao-avatar__initials"},C_=["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=p_(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",__,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,C_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(me,{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,y_))}});const b_={class:"ao-card-template__subitems"},k_={class:"ao-card-template__subitem"},w_={class:"ao-card-template__subitem-number"},E_={class:"ao-card-template__subitem"},x_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__body"},T_={class:"ao-card-template__col ao-card-template__col--phases"},A_={class:"ao-card-template__col-title"},N_={class:"ao-card-template__col-label"},D_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},M_={class:"ao-card-template__footer"},B_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},$_={class:"ao-card-template__col-title"},O_={class:"ao-card-template__col-label"},L_={class:"ao-card-template__col-body"},I_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},P_={class:"ao-card-template__col-title"},F_={class:"ao-card-template__col-label"},V_={class:"ao-card-template__col-body"},R_={class:"ao-card-template-item__secondary"},_l=5,z_=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",b_,[i.createElementVNode("li",k_,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",w_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",E_,[i.createVNode(be,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",x_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",S_,[i.createElementVNode("div",T_,[i.createElementVNode("div",A_,[i.createVNode(be,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",N_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",D_,[(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",R_,[i.createVNode(me,{"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",M_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",B_,[i.createElementVNode("div",$_,[i.createElementVNode("span",O_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",L_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",I_,[i.createElementVNode("div",P_,[i.createElementVNode("span",F_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",V_,[i.createVNode(Un,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const U_={class:"ao-page-header"},q_={class:"ao-page-header-main"},H_={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",U_,[i.createElementVNode("div",q_,[t.canGoBack?(i.openBlock(),i.createBlock(me,{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",H_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const j_=["type"],W_={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",W_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,j_))}});const Z_={class:"ao-card-template-item__footer"},K_={key:0,class:"ao-card-template-item__subitem"},G_={class:"ao-card-template-item__subitem-number"},Y_={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",Z_,[(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",K_,[i.createVNode(be,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",G_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",Y_,[i.createVNode(me,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const J_=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"]))}}),X_=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"]))}}),Q_={class:"ao-list__footer"},eC=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(X_,{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",Q_,[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)}}),tC=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"]))}}),nC={class:"ao-list__footer"},oC=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(tC,{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",nC,[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)}}),rC={class:"ao-modal"},iC={key:0,class:"ao-modal__header"},sC={class:"ao-modal__header-meta"},aC={class:"ao-modal__title-group"},lC={class:"ao-modal__body"},cC={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",rC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",iC,[i.createElementVNode("div",sC,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",aC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",lC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",cC,[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}),uC={left:"right",right:"left",bottom:"top",top:"bottom"},dC={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 fC(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 fC(Jc(t))}function pC(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 hC(t){const e=Js(t);return[ac(t),e,ac(e)]}function ac(t){return t.replace(/start|end/g,e=>dC[e])}function mC(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 gC(t,e,n,o){const r=Ma(t);let s=mC(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=>uC[e])}function vC(t){return{top:0,right:0,bottom:0,left:0,...t}}function yC(t){return typeof t!="number"?vC(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 _C=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=yC(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 CC=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)]:hC(l));!p&&m!=="none"&&w.push(...gC(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 D=pC(r,a,v);x.push(b[D[0]],b[D[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every(D=>D<=0)){var T,A;const D=(((T=s.flip)==null?void 0:T.index)||0)+1,$=k[D];if($)return{data:{index:D,overflows:S},reset:{placement:$}};let O=(A=S.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!O)switch(h){case"bestFit":{var N;const P=(N=S.map(F=>[F.placement,F.overflows.filter(Z=>Z>0).reduce((Z,V)=>Z+V,0)]).sort((F,Z)=>F[1]-Z[1])[0])==null?void 0:N[0];P&&(O=P);break}case"initialPlacement":O=l;break}if(r!==O)return{reset:{placement:O}}}return{}}}},bC=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),T=Ft(c.bottom,0);f?w=p-2*(b!==0||x!==0?b+x: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 kC(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 wC(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 EC=co(0);function Vp(t){const e=Bt(t);return!Qc()||!e.visualViewport?EC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xC(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=xC(s,n,o)?Vp(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 SC(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 TC(t){return Array.from(t.getClientRects())}function Rp(t){return qo(qn(t)).left+$a(t).scrollLeft}function AC(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+Rp(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 NC(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 DC(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=NC(t,n);else if(e==="document")o=AC(qn(t));else if(Fn(e))o=DC(e,n);else{const r=Vp(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 MC(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 BC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?MC(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 $C(t){return Fp(t)}function OC(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=Rp(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&&kC(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||wC(t)||n}const LC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Up,s=this.getDimensions;return{reference:OC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function IC(t){return Ht(t).direction==="rtl"}const PC={convertOffsetParentRelativeRectToViewportRelativeRect:SC,getDocumentElement:qn,getClippingRect:BC,getOffsetParent:Up,getElementRects:LC,getClientRects:TC,getDimensions:$C,getScale:br,isElement:Fn,isRTL:IC};function FC(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 VC(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?FC(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 RC=(t,e,n)=>{const o=new Map,r={platform:PC,...n},s={...r.platform,_c:o};return _C(t,e,{...r,platform:s})},zC=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=VC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||RC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[CC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),bC({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 UC(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 qC(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 HC(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 jC(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 WC(t){return Object.prototype.toString.call(t)==="[object Object]"}function ZC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function KC(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:T,max:A,strict:N,closeOnSelect:D,closeOnDeselect:$,groups:O,reverse:P,infinite:F,groupOptions:Z,groupHideEmpty:V,groupSelect:M,onCreate:G,disabledProp:z,searchStart:H,searchFilter:ue}=i.toRefs(t),Q=i.getCurrentInstance().proxy,ie=n.iv,U=n.ev,ne=n.search,ge=n.clearSearch,I=n.update,ee=n.pointer,ve=n.setPointer,he=n.clearPointer,Ve=n.focus,le=n.deactivate,ft=n.close,xe=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(O.value){let B=Zt.value||[],Y=[];return B.forEach(ye=>{ti(ye[Z.value]).forEach(Me=>{Y.push(Object.assign({},Me,ye[z.value]?{[z.value]:!0}:{}))})}),Y}else{let B=ti(bt.value||[]);return pt.value.length&&(B=B.concat(pt.value)),B}}),mt=i.computed(()=>{let B=Fe.value;return P.value&&(B=B.reverse()),Sn.value.length&&(B=Sn.value.concat(B)),ei(B)}),ot=i.computed(()=>{let B=mt.value;return kt.value>0&&(B=B.slice(0,kt.value)),B}),Zt=i.computed(()=>{if(!O.value)return[];let B=[],Y=bt.value||[];return pt.value.length&&B.push({[S.value]:" ",[Z.value]:[...pt.value],__CREATE__:!0}),B.concat(Y)}),xn=i.computed(()=>{let B=[...Zt.value].map(Y=>({...Y}));return Sn.value.length&&(B[0]&&B[0].__CREATE__?B[0][Z.value]=[...Sn.value,...B[0][Z.value]]:B=[{[S.value]:" ",[Z.value]:[...Sn.value],__CREATE__:!0}].concat(B)),B}),Zn=i.computed(()=>{if(!O.value)return[];let B=xn.value;return Eo((B||[]).map((Y,ye)=>{const Me=ti(Y[Z.value]);return{...Y,index:ye,group:!0,[Z.value]:ei(Me,!1).map(Tn=>Object.assign({},Tn,Y[z.value]?{[z.value]:!0}:{})),__VISIBLE__:ei(Me).map(Tn=>Object.assign({},Tn,Y[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,Q):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&&O.value||!O.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=B=>{switch(typeof B!="object"&&(B=Tt(B)),r.value){case"single":I(B);break;case"multiple":case"tags":I(ie.value.concat(B));break}e.emit("select",Et(B),B,Q)},wt=B=>{switch(typeof B!="object"&&(B=Tt(B)),r.value){case"single":Jr();break;case"tags":case"multiple":I(Array.isArray(B)?ie.value.filter(Y=>B.map(ye=>ye[b.value]).indexOf(Y[b.value])===-1):ie.value.filter(Y=>Y[b.value]!=B[b.value]));break}e.emit("deselect",Et(B),B,Q)},Et=B=>m.value?B:B[b.value],ar=B=>{wt(B)},hs=(B,Y)=>{if(Y.button!==0){Y.preventDefault();return}ar(B)},Jr=()=>{I(ps.value),e.emit("clear",Q)},xt=B=>{if(B.group!==void 0)return r.value==="single"?!1:ms(B[Z.value])&&B[Z.value].length;switch(r.value){case"single":return!dn(ie.value)&&ie.value[b.value]==B[b.value];case"tags":case"multiple":return!dn(ie.value)&&ie.value.map(Y=>Y[b.value]).indexOf(B[b.value])!==-1}},lr=B=>B[z.value]===!0,Gn=()=>A===void 0||A.value===-1||!ko.value&&A.value>0?!1:ie.value.length>=A.value,cr=B=>{if(!lr(B)){if(G&&G.value&&!xt(B)&&B.__CREATE__&&(B={...B},delete B.__CREATE__,B=G.value(B,Q),B instanceof Promise)){Pe.value=!0,B.then(Y=>{Pe.value=!1,St(Y)});return}St(B)}},St=B=>{switch(B.__CREATE__&&(B={...B},delete B.__CREATE__),r.value){case"single":if(B&&xt(B)){T.value&&wt(B),$.value&&(he(),ft());return}B&&wo(B),k.value&&ge(),D.value&&(he(),ft()),B&&Kt(B);break;case"multiple":if(B&&xt(B)){wt(B),$.value&&(he(),ft());return}if(Gn()){e.emit("max",Q);return}B&&(wo(B),Kt(B)),k.value&&ge(),l.value&&he(),D.value&&ft();break;case"tags":if(B&&xt(B)){wt(B),$.value&&(he(),ft());return}if(Gn()){e.emit("max",Q);return}B&&wo(B),k.value&&ge(),B&&Kt(B),l.value&&he(),D.value&&ft();break}D.value||Ve()},Yn=B=>{if(!(lr(B)||r.value==="single"||!M.value)){switch(r.value){case"multiple":case"tags":fl(B[Z.value])?wt(B[Z.value]):Kt(B[Z.value].filter(Y=>ie.value.map(ye=>ye[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[z.value]).filter((Y,ye)=>ie.value.length+1+ye<=A.value||A.value===-1)),l.value&&ee.value&&ve(Zn.value.filter(Y=>!Y[z.value])[ee.value.index]);break}D.value&&le()}},wo=B=>{Tt(B[b.value])===void 0&&Wn.value&&(e.emit("tag",B[b.value],Q),e.emit("option",B[b.value],Q),e.emit("create",B[b.value],Q),bo.value&&pl(B),ge())},Xr=()=>{r.value!=="single"&&Kt(ot.value.filter(B=>!B.disabled&&!xt(B)))},fl=B=>B.find(Y=>!xt(Y)&&!Y[z.value])===void 0,ms=B=>B.find(Y=>!xt(Y))===void 0,Tt=B=>Fe.value[Fe.value.map(Y=>String(Y[b.value])).indexOf(String(B))],gs=B=>Fe.value.findIndex(Y=>cn.value.some(ye=>(parseInt(Y[ye])==Y[ye]?parseInt(Y[ye]):Y[ye])===(parseInt(B)==B?parseInt(B):B))),Qr=B=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&xt(B),pl=B=>{pt.value.push(B)},Eo=B=>V.value?B.filter(Y=>ne.value?Y.__VISIBLE__.length:Y[Z.value].length):B.filter(Y=>ne.value?Y.__VISIBLE__.length:!0),ei=(B,Y=!0)=>{let ye=B;if(ne.value&&v.value){let Me=ue.value;Me||(Me=(Tn,Yt,ri)=>cn.value.some(An=>{let ys=Cl(xe(Tn[An]),N.value);return H.value?ys.startsWith(Cl(Yt,N.value)):ys.indexOf(Cl(Yt,N.value))!==-1})),ye=ye.filter(Tn=>Me(Tn,ne.value,Q))}return l.value&&Y&&(ye=ye.filter(Me=>!Qr(Me))),ye},ti=B=>{let Y=B;return WC(Y)&&(Y=Object.keys(Y).map(ye=>{let Me=Y[ye];return{[b.value]:ye,[cn.value[0]]:Me,[d.value]:Me}})),Y=Y.map(ye=>typeof ye=="object"?ye:{[b.value]:ye,[cn.value[0]]:ye,[d.value]:ye}),Y},Ae=()=>{dn(U.value)||(ie.value=Jn(U.value))},Gt=B=>(Pe.value=!0,new Promise((Y,ye)=>{o.value(ne.value,Q).then(Me=>{bt.value=Me||[],typeof B=="function"&&B(Me),Pe.value=!1}).catch(Me=>{console.error(Me),bt.value=[],Pe.value=!1}).finally(()=>{Y()})})),ni=()=>{if(ko.value)if(r.value==="single"){let B=Tt(ie.value[b.value]);if(B!==void 0){let Y=B[d.value];ie.value[d.value]=Y,m.value&&(U.value[d.value]=Y)}}else ie.value.forEach((B,Y)=>{let ye=Tt(ie.value[Y][b.value]);if(ye!==void 0){let Me=ye[d.value];ie.value[Y][d.value]=Me,m.value&&(U.value[Y][d.value]=Me)}})},vs=B=>{Gt(B)},Jn=B=>dn(B)?r.value==="single"?{}:[]:m.value?B:r.value==="single"?Tt(B)||(x.value?{[d.value]:B,[b.value]:B,[cn.value[0]]:B}:{}):B.filter(Y=>!!Tt(Y)||x.value).map(Y=>Tt(Y)||{[d.value]:Y,[b.value]:Y,[cn.value[0]]:Y}),oi=()=>{ht.value=i.watch(ne,B=>{B.length<y.value||!B&&y.value!==0||(Pe.value=!0,w.value&&(bt.value=[]),setTimeout(()=>{B==ne.value&&o.value(ne.value,Q).then(Y=>{(B==ne.value||!ne.value)&&(bt.value=Y,ee.value=ot.value.filter(ye=>ye[z.value]!==!0)[0]||null,Pe.value=!1)}).catch(Y=>{console.error(Y)})},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(Ae):m.value==!0&&Ae():(bt.value=o.value,Ae()),C.value>-1&&oi(),i.watch(C,(B,Y)=>{ht.value&&ht.value(),B>=0&&oi()}),i.watch(U,B=>{if(dn(B)){I(Jn(B),!1);return}switch(r.value){case"single":(m.value?B[b.value]!=ie.value[b.value]:B!=ie.value[b.value])&&I(Jn(B),!1);break;case"multiple":case"tags":ZC(m.value?B.map(Y=>Y[b.value]):B,ie.value.map(Y=>Y[b.value]))||I(Jn(B),!1);break}},{deep:!0}),i.watch(o,(B,Y)=>{typeof t.options=="function"?_.value&&(!Y||B&&B.toString()!==Y.toString())&&Gt():(bt.value=t.options,Object.keys(ie.value).length||Ae(),ni())}),i.watch(d,ni),i.watch(a,(B,Y)=>{kt.value=F.value&&B===-1?10:B}),{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 GC(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),T=i.computed(()=>_.value&&_.value.group),A=i.computed(()=>Q(_.value)),N=i.computed(()=>{const U=T.value?_.value:Q(_.value),ne=x.value.map(I=>I[a.value]).indexOf(U[a.value]);let ge=x.value[ne-1];return ge===void 0&&(ge=$.value),ge}),D=i.computed(()=>{let U=x.value.map(ne=>ne.label).indexOf(T.value?_.value[a.value]:Q(_.value)[a.value])+1;return x.value.length<=U&&(U=0),x.value[U]}),$=i.computed(()=>[...x.value].slice(-1)[0]),O=i.computed(()=>_.value.__VISIBLE__.filter(U=>!U[d.value])[0]),P=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=Q(_.value).__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1]}),Z=i.computed(()=>[...N.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),V=i.computed(()=>[...$.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),M=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||(T.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=T.value?O.value:F.value;U===void 0&&(U=D.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()})},ue=()=>{if(_.value===null){let U=b.value[b.value.length-1];l.value&&S.value&&(U=V.value,U===void 0&&(U=$.value)),y(U||null)}else if(l.value&&S.value){let U=T.value?Z.value:P.value;U===void 0&&(U=T.value?N.value:A.value,U.__CREATE__&&(U=Z.value,U===void 0&&(U=N.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()})},Q=U=>x.value.find(ne=>ne.__VISIBLE__.map(ge=>ge[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 ge=ne.parentElement.parentElement;i.nextTick(()=>{ge.scrollTop>0||(ge.scrollTop=ne.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:M,setPointerFirst:G,selectPointer:z,forwardPointer:H,backwardPointer:ue}}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 YC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function JC(t){return t===$t(t)||!Ut(t)?nu(t):YC(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 Vn(t){return $t(t).getComputedStyle(t)}function ru(t){var e=Vn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function XC(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 QC(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&XC(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=JC(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 eb(t){return["table","td","th"].indexOf(Cn(t))>=0}function Ad(t){return!Ut(t)||Vn(t).position==="fixed"?null:t.offsetParent}function tb(t){var e=/firefox/i.test(lc()),n=/Trident/i.test(lc());if(n&&Ut(t)){var o=Vn(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=Vn(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&&eb(n)&&Vn(n).position==="static";)n=Ad(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&Vn(n).position==="static")?e:n||tb(t)||e}var Qt="top",bn="bottom",fo="right",Ln="left",iu="auto",Ia=[Qt,bn,fo,Ln],$r="start",Fi="end",nb="clippingParents",Wp="viewport",fi="popper",ob="reference",Nd=Ia.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),rb=[].concat(Ia,[iu]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),ib="beforeRead",sb="read",ab="afterRead",lb="beforeMain",cb="main",ub="afterMain",db="beforeWrite",fb="write",pb="afterWrite",hb=[ib,sb,ab,lb,cb,ub,db,fb,pb];function mb(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 gb(t){var e=mb(t);return hb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function vb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function yb(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 _b(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 Cb(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 Vn(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function bb(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 kb(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(_b(t,n)):Ho(e)?kb(e,n):cc(Cb(vo(t)))}function wb(t){var e=Ei(Oa(t)),n=["absolute","fixed"].indexOf(Vn(t).position)>=0,o=n&&Ut(t)?La(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&bb(r,o)&&Cn(r)!=="body"}):[]}function Eb(t,e,n,o){var r=e==="clippingParents"?wb(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 xb(t){return Object.assign({},Gp(),t)}function Sb(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?nb: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,_=xb(typeof C!="number"?C:Sb(C,Ia)),y=p===fi?ob:fi,v=t.rects.popper,w=t.elements[m?y:p],k=Eb(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)),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},N=t.modifiersData.offset;if(p===fi&&N){var D=N[r];Object.keys(A).forEach(function($){var O=[fo,bn].indexOf($)>=0?1:-1,P=[Qt,bn].indexOf($)>=0?"y":"x";A[$]+=D[P]*O})}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 Tb(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=gb(yb([].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:QC(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,x=k.options,S=x===void 0?{}:x,T=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:T,instance:h})||d)}}}},update:vb(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 Ab(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 Nb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ab,data:{}};function Db(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 Mb={name:"popperOffsets",enabled:!0,phase:"read",fn:Db,data:{}},Bb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $b(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),Vn(b).position!=="static"&&l==="absolute"&&(x="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[x];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 N=Object.assign({position:l},u&&Bb),D=d===!0?$b({x:h,y:g},$t(n)):{x:h,y:g};if(h=D.x,g=D.y,c){var $;return Object.assign({},N,($={},$[w]=y?"0":"",$[v]=_?"0":"",$.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",$))}return Object.assign({},N,(e={},e[w]=y?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function Ob(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 Lb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ob,data:{}};function Ib(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 Pb(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 Fb={name:"applyStyles",enabled:!0,phase:"write",fn:Ib,effect:Pb,requires:["computeStyles"]},Vb=[Nb,Mb,Lb,Fb],Rb=Tb({defaultModifiers:Vb});function zb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Fo(t,Qs(e,n))}function Ub(t,e,n){var o=zs(t,e,n);return o>n?n:o}function qb(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=zb(w),b=e.modifiersData.popperOffsets,x=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),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(b){if(s){var $,O=w==="y"?Qt:Ln,P=w==="y"?bn:fo,F=w==="y"?"height":"width",Z=b[w],V=Z+C[O],M=Z-C[P],G=h?-S[F]/2:0,z=y===$r?x[F]:S[F],H=y===$r?-S[F]:-x[F],ue=e.elements.arrow,Q=h&&ue?Hp(ue):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gp(),U=ie[O],ne=ie[P],ge=zs(0,x[F],Q[F]),I=v?x[F]/2-G-ge-U-A.mainAxis:z-ge-U-A.mainAxis,ee=v?-x[F]/2+G+ge+ne+A.mainAxis:H+ge+ne+A.mainAxis,ve=e.elements.arrow&&La(e.elements.arrow),he=ve?w==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ve=($=N==null?void 0:N[w])!=null?$:0,le=Z+I-Ve-he,ft=Z+ee-Ve,xe=zs(h?Qs(V,le):V,Z,h?Fo(M,ft):M);b[w]=xe,D[w]=xe-Z}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=N==null?void 0:N[k])!=null?pt:0,ot=Fe?Wn:ht-x[kt]-S[kt]-mt+A.altAxis,Zt=Fe?ht+x[kt]+S[kt]-mt-A.altAxis:bo,xn=h&&Fe?Ub(ot,ht,Zt):zs(h?ot:Wn,ht,h?Zt:bo);b[k]=xn,D[k]=xn-ht}e.modifiersData[o]=D}}var Hb={name:"preventOverflow",enabled:!0,phase:"main",fn:qb,requiresIfExists:["offset"]},jb={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return jb[e]})}var Wb={start:"end",end:"start"};function Od(t){return t.replace(/start|end/g,function(e){return Wb[e]})}function Zb(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?rb: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 Kb(t){if(io(t)===iu)return[];var e=Us(t);return[Od(t),e,Od(e)]}function Gb(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)]:Kb(C)),w=[C].concat(v).reduce(function(Q,ie){return Q.concat(io(ie)===iu?Zb(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,T=w[0],A=0;A<w.length;A++){var N=w[A],D=io(N),$=Or(N)===$r,O=[Qt,bn].indexOf(D)>=0,P=O?"width":"height",F=su(e,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),Z=O?$?fo:Ln:$?bn:Qt;k[P]>b[P]&&(Z=Us(Z));var V=Us(Z),M=[];if(s&&M.push(F[D]<=0),l&&M.push(F[Z]<=0,F[V]<=0),M.every(function(Q){return Q})){T=N,S=!1;break}x.set(N,M)}if(S)for(var G=m?3:1,z=function(ie){var U=w.find(function(ne){var ge=x.get(ne);if(ge)return ge.slice(0,ie).every(function(I){return I})});if(U)return T=U,"break"},H=G;H>0;H--){var ue=z(H);if(ue==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var Yb={name:"flip",enabled:!0,phase:"main",fn:Gb,requiresIfExists:["offset"],data:{_skip:!1}};function Jb(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=Rb(c.value,u.value,{strategy:y(c.value)?"fixed":void 0,placement:a.value,modifiers:[Hb,Yb,{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 Xb(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 Qb(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,T=n.tags,A=n.isOpen,N=n.open,D=n.blur,$=n.fo,O=i.computed(()=>f.value||p.value||!1),P=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),F=()=>{o.value==="tags"&&!l.value&&O.value&&a.value&&!u.value&&v($.value[$.value.map(M=>M[c.value]).indexOf(y.value)])};return{handleKeydown:M=>{e.emit("keydown",M,m);let G,z;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(M.key)!==-1&&o.value==="tags"&&(G=[...x.value.querySelectorAll("[data-tags] > *")].filter(H=>H!==T.value),z=G.findIndex(H=>H===document.activeElement)),M.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(y.value)===-1||g.value.length===0)return;let H=g.value.filter(ue=>!ue.disabled&&ue.remove!==!1);H.length&&_(H[H.length-1]);break;case"Enter":if(M.preventDefault(),M.keyCode===229)return;if(z!==-1&&z!==void 0){C([...g.value].filter((ue,Q)=>Q!==z)),z===G.length-1&&(G.length-1?G[G.length-2].focus():a.value?T.value.querySelector("input").focus():S.value.focus());return}if(P.value.indexOf("enter")===-1&&O.value)return;F(),w();break;case" ":if(!O.value&&!a.value){M.preventDefault(),F(),w();return}if(!O.value)return!1;if(P.value.indexOf("space")===-1&&O.value)return;M.preventDefault(),F(),w();break;case"Tab":case";":case",":if(P.value.indexOf(M.key.toLowerCase())===-1||!O.value)return;F(),w(),M.preventDefault();break;case"Escape":D();break;case"ArrowUp":if(M.preventDefault(),!l.value)return;A.value||N(),k();break;case"ArrowDown":if(M.preventDefault(),!l.value)return;A.value||N(),b();break;case"ArrowLeft":if(a.value&&T.value&&T.value.querySelector("input").selectionStart||M.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;M.preventDefault(),z===-1?G[G.length-1].focus():z>0&&G[z-1].focus();break;case"ArrowRight":if(z===-1||M.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;M.preventDefault(),G.length>z+1?G[z+1].focus():a.value?T.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:M=>{e.emit("keyup",M,m)},preparePointer:F}}function e9(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 t9(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 n9(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 D=[];return r&&r.value&&D.push(r.value),D.push("assist"),D.join("-")}),_=i.computed(()=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-options"),D.join("-")}),y=i.computed(()=>{let D=[];if(r&&r.value&&D.push(r.value),f.value)return D.push(f.value.group?"multiselect-group":"multiselect-option"),D.push(f.value.group?f.value.index:f.value[s.value]),D.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let D="";return l.value==="single"&&h.value&&(D+=p.value[a.value]),l.value==="multiple"&&h.value&&(D+=m.value),l.value==="tags"&&h.value&&(D+=p.value.map($=>$[a.value]).join(", ")),D}),b=i.computed(()=>{let D={...u.value};return d.value&&(D["aria-labelledby"]=D["aria-labelledby"]?`${C.value} ${D["aria-labelledby"]}`:C.value,k.value&&D["aria-label"]&&(D["aria-label"]=`${k.value}, ${D["aria-label"]}`)),D}),x=D=>{let $=[];return r&&r.value&&$.push(r.value),$.push("multiselect-option"),$.push(D[s.value]),$.join("-")},S=D=>{let $=[];return r&&r.value&&$.push(r.value),$.push("multiselect-group"),$.push(D.index),$.join("-")},T=D=>{let $=[];return $.push(D),$.join(" ")},A=D=>{let $=[];return $.push(D),$.join(" ")},N=D=>`${D} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let D=document.querySelector(`[for="${r.value}"]`);g.value=D?D.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:C,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:y,ariaOptionId:x,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:N}}function o9(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 r9(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 i9(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 i9(t,e,[r9,o9,qC,jC,Jb,HC,UC,Xb,KC,t9,GC,Qb,e9,n9])},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 s9=["id","dir"],a9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],l9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],c9=["onKeyup","aria-label"],u9=["onClick"],d9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],f9=["innerHTML"],p9=["id"],h9=["id"],m9=["id","aria-label","aria-selected"],g9=["data-pointed","onMouseenter","onMousedown"],v9=["innerHTML"],y9=["aria-label"],_9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],C9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],b9=["innerHTML"],k9=["innerHTML"],w9=["value"],E9=["name","value"],x9=["name","value"],S9=["id"];function T9(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,l9)):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,u9)):i.createCommentVNode("v-if",!0)],42,c9))])),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,d9)):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,f9)]):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,a9),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,v9)])],42,g9)),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,_9))),128))],10,y9)],10,m9))),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,C9))),128))],10,h9),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,b9)]):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,k9)]):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,p9)],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,w9)):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,E9)):(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,x9))),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,S9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,s9)}to.render=T9;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&&zC({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=A9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function A9(){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 N9={class:"ao-tasks"},D9={class:"ao-tasks__list"},M9=["id","value","readonly","onChange"],B9={class:"ao-tasks__list-footer"},$9=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",N9,[i.createElementVNode("ul",D9,[(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(me,{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,M9),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(me,{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",B9,[t.isEditable?(i.openBlock(),i.createBlock(me,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const O9={class:"ao-files__placeholder"},L9={key:0,class:"ao-files__list"},I9=["onClick"],P9={class:"ao-file__title"},F9={class:"ao-file__actions"},V9={key:0},R9={class:"ao-files__input"},z9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},U9={class:"ao-button__label"},q9={class:"ao-files__dropzone"},H9={class:"ao-files__dropzone-label"},j9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,r=i.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(h){n("remove",h)}function l(h){if(!h.url)return;const m=document.createElement("a");m.href=h.url,m.download=h.name,m.target="_blank",m.rel="noopener noreferrer",document.body.appendChild(m),m.click(),m.remove()}function c(h){const m=h.target,g=Array.from(m.files??[]);g.length&&n("add",g),m.value=""}function u(h){h.preventDefault()}i.onMounted(()=>{s.forEach(h=>{document.body.addEventListener(h,u)})}),i.onUnmounted(()=>{s.forEach(h=>{document.body.removeEventListener(h,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,h=>{n("toggleIsDropActive",h)});function p(h){var g;if(f(),!o.isEditable)return;const m=Array.from(((g=h.dataTransfer)==null?void 0:g.files)??[]);m.length&&n("add",m)}return(h,m)=>{var g;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":r.value}]),onDrop:i.withModifiers(p,["prevent"]),onDragenter:i.withModifiers(d,["prevent"]),onDragover:i.withModifiers(d,["prevent"]),onDragleave:i.withModifiers(f,["prevent"])},[i.renderSlot(h.$slots,"default",{},()=>[i.createElementVNode("span",O9,i.toDisplayString(h.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",L9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(C,_)=>(i.openBlock(),i.createElementBlock("li",{key:C.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:y=>n("preview",_)},[i.createVNode(be,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",P9,i.toDisplayString(C.name),1)],8,I9),i.createElementVNode("div",F9,[i.createVNode(me,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(y=>l(C),["stop"])},null,8,["onClick"]),t.isEditable?(i.openBlock(),i.createBlock(me,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:i.withModifiers(y=>a(C),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",V9,[i.createElementVNode("label",R9,[i.createElementVNode("div",z9,[i.createVNode(be,{name:"Add",size:"sm"}),i.createElementVNode("span",U9,i.toDisplayString(h.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",q9,[i.createElementVNode("span",H9,i.toDisplayString(h.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ee={};const 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="∟",V4="⊾",R4="⦝",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="϶",V8="ℬ",R8="ℬ",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="┬",Vk="╤",Rk="╥",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="⩄",V6="⩉",R6="⩋",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="⨐",Vw="⫯",Rw="⧂",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="⩊",VE="⊍",RE="⩅",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="˜",Vx="⋄",Rx="⋄",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="⥐",VS="⥞",RS="⥖",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="⏧",VT="ℓ",RT="⪕",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="€",VA="!",RA="∃",zA="∃",UA="ℰ",qA="ⅇ",HA="ⅇ",jA="≒",WA="Ф",ZA="ф",KA="♀",GA="ffi",YA="ff",JA="ffl",XA="𝔉",QA="𝔣",eN="fi",tN="◼",nN="▪",oN="fj",rN="♭",iN="fl",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="Ϝ",VN="ϝ",RN="⪆",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="≳",VD="𝒢",RD="ℊ",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="𝒽",VM="ℋ",RM="ℏ",zM="Ħ",UM="ħ",qM="≎",HM="≏",jM="⁃",WM="‐",ZM="Í",KM="í",GM="⁣",YM="Î",JM="î",XM="И",QM="и",eB="İ",tB="Е",nB="е",oB="¡",rB="⇔",iB="𝔦",sB="ℑ",aB="Ì",lB="ì",cB="ⅈ",uB="⨌",dB="∭",fB="⧜",pB="℩",hB="IJ",mB="ij",gB="Ī",vB="ī",yB="ℑ",_B="ⅈ",CB="ℐ",bB="ℑ",kB="ı",wB="ℑ",EB="⊷",xB="Ƶ",SB="⇒",TB="℅",AB="∞",NB="⧝",DB="ı",MB="⊺",BB="∫",$B="∬",OB="ℤ",LB="∫",IB="⊺",PB="⋂",FB="⨗",VB="⨼",RB="⁣",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$="Х",V$="х",R$="Ќ",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="⤶",VO="“",RO="„",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="⋚︀",VL="⪓",RL="⪅",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="⟼",VI="⟶",RI="⟶",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="⥦",VP="≨︀",RP="≨︀",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="ń",LF="∠⃒",IF="≉",PF="⩰̸",FF="≋̸",VF="ʼn",RF="≉",zF="♮",UF="ℕ",qF="♮",HF=" ",jF="≎̸",WF="≏̸",ZF="⩃",KF="Ň",GF="ň",YF="Ņ",JF="ņ",XF="≇",QF="⩭̸",eV="⩂",tV="Н",nV="н",oV="–",rV="⤤",iV="↗",sV="⇗",aV="↗",lV="≠",cV="≐̸",uV="​",dV="​",fV="​",pV="​",hV="≢",mV="⤨",gV="≂̸",vV="≫",yV="≪",_V=`
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 V0=oe(I0,[["render",F0]]),R0={},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(R0,[["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={},V2={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",V2,[...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",R2]]),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:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),i.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",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:"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 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:"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 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:"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 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:"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 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:"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 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:"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 _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:"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 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:"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 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:"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 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:"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 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:"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 Vv=oe(Iv,[["render",Fv]]),Rv={},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:"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 qv=oe(Rv,[["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:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Zv=oe(Hv,[["render",Wv]]),Kv={},Gv={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",Gv,[...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 Jv=oe(Kv,[["render",Yv]]),Xv=i.defineComponent({name:"LoadingIcon"});const Qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Qv,[...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 t3=oe(Xv,[["render",e3],["__scopeId","data-v-ad6da4a9"]]),n3={},o3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function r3(t,e){return i.openBlock(),i.createElementBlock("svg",o3,[...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 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:"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 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:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",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:"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 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:"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 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:"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 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:"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 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:"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 $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:"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 P3=oe(O3,[["render",I3]]),F3={},V3={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",V3,[...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 z3=oe(F3,[["render",R3]]),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 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 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:"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 G3=oe(W3,[["render",K3]]),Y3={},J3={width:"24",height:"24",viewBox:"0 0 24 24",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.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 Q3=oe(Y3,[["render",X3]]),e5={},t5={width:"26",height:"29",viewBox:"0 0 26 29",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.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 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:"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 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:"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 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:"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 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:"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 _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:"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 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:"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 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:"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 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:"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 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 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 V5=oe(I5,[["render",F5]]),R5={},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:"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 q5=oe(R5,[["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:"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 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.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 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:"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 ty=oe(X5,[["render",ey]]),ny={},oy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ry(t,e){return i.openBlock(),i.createElementBlock("svg",oy,[...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 iy=oe(ny,[["render",ry]]),sy=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:V0,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,DownloadRounded:G2,DragIndicator:Q2,EditDocumentRounded:ov,EditOutline:av,ErrorOutlineRounded:dv,FilterListRounded:mv,FlagRounded:_v,FlowsheetOutlineRounded:wv,GifBox:Tv,GroupsOutline:Mv,HomeOutlineRounded:Lv,ImageRounded:Vv,Info:qv,KeyboardArrowDown:Zv,KeyboardArrowUp:Jv,Loading:t3,Lock:i3,LogoutRounded:c3,Menu:p3,MoreHoriz:v3,MoreTimeRounded:b3,MoreVert:x3,MountainFlagOutlineRounded:N3,PersonAddOutlineRounded:$3,PictureAsPdfRounded:P3,RadioButtonChecked:z3,RadioButtonCheckedOutline:j3,RadioButtonUnchecked:G3,RemoveRounded:Q3,SearchRounded:o5,SelectCheckBox:a5,SendRounded:d5,Settings:m5,SlideshowRounded:_5,Target:w5,TaskOutlineRounded:T5,TextSnippetRounded:M5,TimerOutline:L5,ViewComfyAltRounded:V5,ViewCompactAltRounded:q5,ViewTimelineRounded:Z5,WarningOutlineRounded:J5,WarningRounded:ty,WaterfallChartRounded:iy},Symbol.toStringTag,{value:"Module"})),ay={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"},ly={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Wc,...ly});const up={ROUND:"round",ROUNDED:"rounded"},cy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},be=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:wa.MD}},setup(t){const e=t,n=i.computed(()=>sy[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 uy=["type"],dy={key:0,class:"ao-button__label"},me=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ay.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",dy,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,uy))}});function fy(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}=fy(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 py={key:0,class:"ao-card-horiz__drag ao-card__drag"},hy={class:"ao-card-horiz__header"},my={key:0,class:"ao-card-horiz__avatar"},gy={class:"ao-card-horiz__title-group"},vy={key:0,class:"ao-card-horiz__subtitle"},yy={key:1,class:"ao-card-horiz__header"},_y={key:1,class:"ao-card-horiz__body"},Cy={key:2,class:"ao-card-horiz__footer"},by={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",py,[i.createVNode(be,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",hy,[t.icon?(i.openBlock(),i.createElementBlock("div",my,[i.createVNode(be,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",gy,[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",vy,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",yy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",_y,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",by,[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(cy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(be,{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(be,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},ky={months:"months",weeks:"weeks",days:"days"},wy={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 Ey={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 qe(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function dt(t){qe(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 xy(t,e){qe(2,arguments);var n=dt(t).getTime(),o=Pn(e);return new Date(n+o)}var Sy={};function Gi(){return Sy}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){qe(1,arguments);var e=dt(t);return e.setHours(0,0,0,0),e}var Ty=864e5;function Ay(t,e){qe(2,arguments);var n=md(t),o=md(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/Ty)}function Ny(t,e){qe(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 Dy(t){return qe(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function _p(t){if(qe(1,arguments),!Dy(t)&&typeof t!="number")return!1;var e=dt(t);return!isNaN(Number(e))}function sc(t,e){qe(2,arguments);var n=Pn(e);return xy(t,-n)}var My=864e5;function By(t){qe(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/My)+1}function Ks(t){qe(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){qe(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 $y(t){qe(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 Oy=6048e5;function Ly(t){qe(1,arguments);var e=dt(t),n=Ks(e).getTime()-$y(e).getTime();return Math.round(n/Oy)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;qe(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;qe(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 Iy(t,e){var n,o,r,s,a,l,c,u;qe(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 Py=6048e5;function Fy(t,e){qe(1,arguments);var n=dt(t),o=Gs(n,e).getTime()-Iy(n,e).getTime();return Math.round(o/Py)+1}function Te(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Vy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Te(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Te(o+1,2)},d:function(e,n){return Te(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 Te(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Te(e.getUTCHours(),n.length)},m:function(e,n){return Te(e.getUTCMinutes(),n.length)},s:function(e,n){return Te(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 Te(s,n.length)}};const Xn=Vy;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ry={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 Te(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Te(a,n.length)},R:function(e,n){var o=Cp(e);return Te(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Te(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 Te(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 Te(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 Te(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=Fy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Te(s,n.length)},I:function(e,n,o){var r=Ly(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Te(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=By(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Te(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 Te(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 Te(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 Te(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"}):Te(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Te(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 Te(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Te(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+Te(s,2)}function vd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Te(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Te(Math.floor(r/60),2),a=Te(r%60,2);return o+s+n+a}const zy=Ry;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"})}},Uy=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))},qy={p:kp,P:Uy};const Hy=qy;var jy=["D","DD"],Wy=["YY","YYYY"];function Zy(t){return jy.indexOf(t)!==-1}function Ky(t){return Wy.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 Gy={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"}},Yy=function(e,n,o){var r,s=Gy[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 Jy=Yy;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 Xy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},e7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},t7={date:vl({formats:Xy,defaultWidth:"full"}),time:vl({formats:Qy,defaultWidth:"full"}),dateTime:vl({formats:e7,defaultWidth:"full"})};const n7=t7;var o7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r7=function(e,n,o,r){return o7[e]};const i7=r7;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 s7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},l7={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"]},c7={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"]},u7={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"}},d7={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"}},f7=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"},p7={ordinalNumber:f7,era:ai({values:s7,defaultWidth:"wide"}),quarter:ai({values:a7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:l7,defaultWidth:"wide"}),day:ai({values:c7,defaultWidth:"wide"}),dayPeriod:ai({values:u7,defaultWidth:"wide",formattingValues:d7,defaultFormattingWidth:"wide"})};const h7=p7;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)?g7(l,function(f){return f.test(a)}):m7(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 m7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function g7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function v7(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 y7=/^(\d+)(th|st|nd|rd)?/i,_7=/\d+/i,C7={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},b7={any:[/^b/i,/^(a|c)/i]},k7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w7={any:[/1/i,/2/i,/3/i,/4/i]},E7={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},x7={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]},S7={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},T7={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]},A7={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},N7={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}},D7={ordinalNumber:v7({matchPattern:y7,parsePattern:_7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:C7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),quarter:li({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:x7,defaultParseWidth:"any"}),day:li({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:A7,defaultMatchWidth:"any",parsePatterns:N7,defaultParseWidth:"any"})};const M7=D7;var B7={code:"en-US",formatDistance:Jy,formatLong:n7,formatRelative:i7,localize:h7,match:M7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wp=B7;var $7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L7=/^'([^]*?)'?$/,I7=/''/g,P7=/[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;qe(2,arguments);var k=String(e),b=Gi(),S=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:wp,T=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(!(T>=1&&T<=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(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var x=dt(t);if(!_p(x))throw new RangeError("Invalid time value");var M=Oi(x),B=sc(x,M),$={firstWeekContainsDate:T,weekStartsOn:A,locale:S,_originalDate:x},O=k.match(O7).map(function(P){var F=P[0];if(F==="p"||F==="P"){var K=Hy[F];return K(P,S.formatLong)}return P}).join("").match($7).map(function(P){if(P==="''")return"'";var F=P[0];if(F==="'")return F7(P);var K=zy[F];if(K)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ky(P)&&_d(P,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Zy(P)&&_d(P,e,String(t)),K(B,P,S.localize,$);if(F.match(P7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return P}).join("");return O}function F7(t){var e=t.match(L7);return e?e[1].replace(I7,"'"):t}function V7(t,e,n){var o,r,s,a,l,c,u,d,f,p;qe(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=Ay(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;qe(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=q7(t),s;if(r.date){var a=H7(r.date,o);s=j7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=W7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=Z7(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+-].*)$/},R7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,z7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,U7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function q7(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 H7(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 j7(t,e){if(e===null)return new Date(NaN);var n=t.match(R7);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 X7(e,l,c)?K7(e,l,c):new Date(NaN);var u=new Date(0);return!Y7(e,s,a)||!J7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function W7(t){var e=t.match(z7);if(!e)return NaN;var n=yl(e[1]),o=yl(e[2]),r=yl(e[3]);return Q7(n,o,r)?n*yp+o*vp+r*1e3:NaN}function yl(t){return t&&parseFloat(t.replace(",","."))||0}function Z7(t){if(t==="Z")return 0;var e=t.match(U7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return e_(o,r)?n*(o*yp+r*vp):NaN}function K7(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 G7=[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 Y7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(G7[e]||(xp(t)?29:28))}function J7(t,e){return e>=1&&e<=(xp(t)?366:365)}function X7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Q7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function e_(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 t_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n_(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={},Rr={},Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.lexoHelper=void 0;Ea.lexoHelper={arrayCopy:o_};function o_(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 r_{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=r_;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.LexoInteger=void 0;const ws=Ea,i_=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 i_.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")}}Rr.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=Rr,s_=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 s_.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=Rr,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 a_{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=a_;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem36=void 0;class l_{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=l_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem64=void 0;class c_{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=c_;(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(Rr,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,u_=8,kd=_i*u_;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 d_(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 f_(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 p_(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 h_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Kc(n,e))}function m_(t,e){return{...t,status:h_(t,e)?$i.done:$i.todo}}const Mp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function g_(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 v_(t,e=.15){var n;if(t.startsWith("#"))return g_(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 y_=["title"],__={key:0,className:"ao-avatar__initials"},C_=["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=p_(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",__,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,C_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(me,{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,y_))}});const b_={class:"ao-card-template__subitems"},k_={class:"ao-card-template__subitem"},w_={class:"ao-card-template__subitem-number"},E_={class:"ao-card-template__subitem"},x_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__body"},T_={class:"ao-card-template__col ao-card-template__col--phases"},A_={class:"ao-card-template__col-title"},N_={class:"ao-card-template__col-label"},D_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},M_={class:"ao-card-template__footer"},B_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},$_={class:"ao-card-template__col-title"},O_={class:"ao-card-template__col-label"},L_={class:"ao-card-template__col-body"},I_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},P_={class:"ao-card-template__col-title"},F_={class:"ao-card-template__col-label"},V_={class:"ao-card-template__col-body"},R_={class:"ao-card-template-item__secondary"},_l=5,z_=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",b_,[i.createElementVNode("li",k_,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",w_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",E_,[i.createVNode(be,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",x_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",S_,[i.createElementVNode("div",T_,[i.createElementVNode("div",A_,[i.createVNode(be,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",N_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",D_,[(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",R_,[i.createVNode(me,{"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",M_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",B_,[i.createElementVNode("div",$_,[i.createElementVNode("span",O_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",L_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",I_,[i.createElementVNode("div",P_,[i.createElementVNode("span",F_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",V_,[i.createVNode(Un,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const U_={class:"ao-page-header"},q_={class:"ao-page-header-main"},H_={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",U_,[i.createElementVNode("div",q_,[t.canGoBack?(i.openBlock(),i.createBlock(me,{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",H_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const j_=["type"],W_={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",W_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(be,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,j_))}});const Z_={class:"ao-card-template-item__footer"},K_={key:0,class:"ao-card-template-item__subitem"},G_={class:"ao-card-template-item__subitem-number"},Y_={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",Z_,[(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",K_,[i.createVNode(be,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",G_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",Y_,[i.createVNode(me,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const J_=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"]))}}),X_=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"]))}}),Q_={class:"ao-list__footer"},eC=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(X_,{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",Q_,[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)}}),tC=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"]))}}),nC={class:"ao-list__footer"},oC=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(tC,{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",nC,[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)}}),rC={class:"ao-modal"},iC={key:0,class:"ao-modal__header"},sC={class:"ao-modal__header-meta"},aC={class:"ao-modal__title-group"},lC={class:"ao-modal__body"},cC={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",rC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",iC,[i.createElementVNode("div",sC,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",aC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",lC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",cC,[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}),uC={left:"right",right:"left",bottom:"top",top:"bottom"},dC={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 fC(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 fC(Jc(t))}function pC(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 hC(t){const e=Js(t);return[ac(t),e,ac(e)]}function ac(t){return t.replace(/start|end/g,e=>dC[e])}function mC(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 gC(t,e,n,o){const r=Ma(t);let s=mC(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=>uC[e])}function vC(t){return{top:0,right:0,bottom:0,left:0,...t}}function yC(t){return typeof t!="number"?vC(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 _C=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=yC(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 CC=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)]:hC(l));!p&&m!=="none"&&w.push(...gC(l,g,m,v));const k=[l,...w],b=await Lp(e,C),S=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&S.push(b[_]),f){const B=pC(r,a,v);S.push(b[B[0]],b[B[1]])}if(T=[...T,{placement:r,overflows:S}],!S.every(B=>B<=0)){var A,x;const B=(((A=s.flip)==null?void 0:A.index)||0)+1,$=k[B];if($)return{data:{index:B,overflows:T},reset:{placement:$}};let O=(x=T.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:x.placement;if(!O)switch(h){case"bestFit":{var M;const P=(M=T.map(F=>[F.placement,F.overflows.filter(K=>K>0).reduce((K,V)=>K+V,0)]).sort((F,K)=>F[1]-K[1])[0])==null?void 0:M[0];P&&(O=P);break}case"initialPlacement":O=l;break}if(r!==O)return{reset:{placement:O}}}return{}}}},bC=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),S=Ft(c.right,0),T=Ft(c.top,0),A=Ft(c.bottom,0);f?w=p-2*(b!==0||S!==0?b+S:Ft(c.left,c.right)):v=h-2*(T!==0||A!==0?T+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 kC(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 wC(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 EC=co(0);function Vp(t){const e=Bt(t);return!Qc()||!e.visualViewport?EC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xC(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=xC(s,n,o)?Vp(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 SC(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 TC(t){return Array.from(t.getClientRects())}function Rp(t){return qo(qn(t)).left+$a(t).scrollLeft}function AC(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+Rp(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 NC(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 DC(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=NC(t,n);else if(e==="document")o=AC(qn(t));else if(Fn(e))o=DC(e,n);else{const r=Vp(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 MC(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 BC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?MC(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 $C(t){return Fp(t)}function OC(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=Rp(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&&kC(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||wC(t)||n}const LC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Up,s=this.getDimensions;return{reference:OC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function IC(t){return Ht(t).direction==="rtl"}const PC={convertOffsetParentRelativeRectToViewportRelativeRect:SC,getDocumentElement:qn,getClippingRect:BC,getOffsetParent:Up,getElementRects:LC,getClientRects:TC,getDimensions:$C,getScale:br,isElement:Fn,isRTL:IC};function FC(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 VC(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?FC(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 RC=(t,e,n)=>{const o=new Map,r={platform:PC,...n},s={...r.platform,_c:o};return _C(t,e,{...r,platform:s})},zC=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=VC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||RC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[CC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),bC({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 UC(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 qC(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 HC(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 jC(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 WC(t){return Object.prototype.toString.call(t)==="[object Object]"}function ZC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function KC(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:S,groupLabel:T,canDeselect:A,max:x,strict:M,closeOnSelect:B,closeOnDeselect:$,groups:O,reverse:P,infinite:F,groupOptions:K,groupHideEmpty:V,groupSelect:N,onCreate:G,disabledProp:z,searchStart:H,searchFilter:ue}=i.toRefs(t),Q=i.getCurrentInstance().proxy,ie=n.iv,U=n.ev,ne=n.search,ge=n.clearSearch,I=n.update,ee=n.pointer,ve=n.setPointer,he=n.clearPointer,Ve=n.focus,le=n.deactivate,ft=n.close,xe=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(O.value){let D=Zt.value||[],Y=[];return D.forEach(ye=>{ti(ye[K.value]).forEach(Me=>{Y.push(Object.assign({},Me,ye[z.value]?{[z.value]:!0}:{}))})}),Y}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(!O.value)return[];let D=[],Y=bt.value||[];return pt.value.length&&D.push({[T.value]:" ",[K.value]:[...pt.value],__CREATE__:!0}),D.concat(Y)}),xn=i.computed(()=>{let D=[...Zt.value].map(Y=>({...Y}));return Sn.value.length&&(D[0]&&D[0].__CREATE__?D[0][K.value]=[...Sn.value,...D[0][K.value]]:D=[{[T.value]:" ",[K.value]:[...Sn.value],__CREATE__:!0}].concat(D)),D}),Zn=i.computed(()=>{if(!O.value)return[];let D=xn.value;return Eo((D||[]).map((Y,ye)=>{const Me=ti(Y[K.value]);return{...Y,index:ye,group:!0,[K.value]:ei(Me,!1).map(Tn=>Object.assign({},Tn,Y[z.value]?{[z.value]:!0}:{})),__VISIBLE__:ei(Me).map(Tn=>Object.assign({},Tn,Y[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,Q):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&&O.value||!O.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":I(D);break;case"multiple":case"tags":I(ie.value.concat(D));break}e.emit("select",Et(D),D,Q)},wt=D=>{switch(typeof D!="object"&&(D=Tt(D)),r.value){case"single":Jr();break;case"tags":case"multiple":I(Array.isArray(D)?ie.value.filter(Y=>D.map(ye=>ye[b.value]).indexOf(Y[b.value])===-1):ie.value.filter(Y=>Y[b.value]!=D[b.value]));break}e.emit("deselect",Et(D),D,Q)},Et=D=>m.value?D:D[b.value],ar=D=>{wt(D)},hs=(D,Y)=>{if(Y.button!==0){Y.preventDefault();return}ar(D)},Jr=()=>{I(ps.value),e.emit("clear",Q)},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(Y=>Y[b.value]).indexOf(D[b.value])!==-1}},lr=D=>D[z.value]===!0,Gn=()=>x===void 0||x.value===-1||!ko.value&&x.value>0?!1:ie.value.length>=x.value,cr=D=>{if(!lr(D)){if(G&&G.value&&!xt(D)&&D.__CREATE__&&(D={...D},delete D.__CREATE__,D=G.value(D,Q),D instanceof Promise)){Pe.value=!0,D.then(Y=>{Pe.value=!1,St(Y)});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),$.value&&(he(),ft());return}D&&wo(D),k.value&&ge(),B.value&&(he(),ft()),D&&Kt(D);break;case"multiple":if(D&&xt(D)){wt(D),$.value&&(he(),ft());return}if(Gn()){e.emit("max",Q);return}D&&(wo(D),Kt(D)),k.value&&ge(),l.value&&he(),B.value&&ft();break;case"tags":if(D&&xt(D)){wt(D),$.value&&(he(),ft());return}if(Gn()){e.emit("max",Q);return}D&&wo(D),k.value&&ge(),D&&Kt(D),l.value&&he(),B.value&&ft();break}B.value||Ve()},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(Y=>ie.value.map(ye=>ye[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[z.value]).filter((Y,ye)=>ie.value.length+1+ye<=x.value||x.value===-1)),l.value&&ee.value&&ve(Zn.value.filter(Y=>!Y[z.value])[ee.value.index]);break}B.value&&le()}},wo=D=>{Tt(D[b.value])===void 0&&Wn.value&&(e.emit("tag",D[b.value],Q),e.emit("option",D[b.value],Q),e.emit("create",D[b.value],Q),bo.value&&pl(D),ge())},Xr=()=>{r.value!=="single"&&Kt(ot.value.filter(D=>!D.disabled&&!xt(D)))},fl=D=>D.find(Y=>!xt(Y)&&!Y[z.value])===void 0,ms=D=>D.find(Y=>!xt(Y))===void 0,Tt=D=>Fe.value[Fe.value.map(Y=>String(Y[b.value])).indexOf(String(D))],gs=D=>Fe.value.findIndex(Y=>cn.value.some(ye=>(parseInt(Y[ye])==Y[ye]?parseInt(Y[ye]):Y[ye])===(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=>V.value?D.filter(Y=>ne.value?Y.__VISIBLE__.length:Y[K.value].length):D.filter(Y=>ne.value?Y.__VISIBLE__.length:!0),ei=(D,Y=!0)=>{let ye=D;if(ne.value&&v.value){let Me=ue.value;Me||(Me=(Tn,Yt,ri)=>cn.value.some(An=>{let ys=Cl(xe(Tn[An]),M.value);return H.value?ys.startsWith(Cl(Yt,M.value)):ys.indexOf(Cl(Yt,M.value))!==-1})),ye=ye.filter(Tn=>Me(Tn,ne.value,Q))}return l.value&&Y&&(ye=ye.filter(Me=>!Qr(Me))),ye},ti=D=>{let Y=D;return WC(Y)&&(Y=Object.keys(Y).map(ye=>{let Me=Y[ye];return{[b.value]:ye,[cn.value[0]]:Me,[d.value]:Me}})),Y=Y.map(ye=>typeof ye=="object"?ye:{[b.value]:ye,[cn.value[0]]:ye,[d.value]:ye}),Y},Ae=()=>{dn(U.value)||(ie.value=Jn(U.value))},Gt=D=>(Pe.value=!0,new Promise((Y,ye)=>{o.value(ne.value,Q).then(Me=>{bt.value=Me||[],typeof D=="function"&&D(Me),Pe.value=!1}).catch(Me=>{console.error(Me),bt.value=[],Pe.value=!1}).finally(()=>{Y()})})),ni=()=>{if(ko.value)if(r.value==="single"){let D=Tt(ie.value[b.value]);if(D!==void 0){let Y=D[d.value];ie.value[d.value]=Y,m.value&&(U.value[d.value]=Y)}}else ie.value.forEach((D,Y)=>{let ye=Tt(ie.value[Y][b.value]);if(ye!==void 0){let Me=ye[d.value];ie.value[Y][d.value]=Me,m.value&&(U.value[Y][d.value]=Me)}})},vs=D=>{Gt(D)},Jn=D=>dn(D)?r.value==="single"?{}:[]:m.value?D:r.value==="single"?Tt(D)||(S.value?{[d.value]:D,[b.value]:D,[cn.value[0]]:D}:{}):D.filter(Y=>!!Tt(Y)||S.value).map(Y=>Tt(Y)||{[d.value]:Y,[b.value]:Y,[cn.value[0]]:Y}),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,Q).then(Y=>{(D==ne.value||!ne.value)&&(bt.value=Y,ee.value=ot.value.filter(ye=>ye[z.value]!==!0)[0]||null,Pe.value=!1)}).catch(Y=>{console.error(Y)})},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(Ae):m.value==!0&&Ae():(bt.value=o.value,Ae()),C.value>-1&&oi(),i.watch(C,(D,Y)=>{ht.value&&ht.value(),D>=0&&oi()}),i.watch(U,D=>{if(dn(D)){I(Jn(D),!1);return}switch(r.value){case"single":(m.value?D[b.value]!=ie.value[b.value]:D!=ie.value[b.value])&&I(Jn(D),!1);break;case"multiple":case"tags":ZC(m.value?D.map(Y=>Y[b.value]):D,ie.value.map(Y=>Y[b.value]))||I(Jn(D),!1);break}},{deep:!0}),i.watch(o,(D,Y)=>{typeof t.options=="function"?_.value&&(!Y||D&&D.toString()!==Y.toString())&&Gt():(bt.value=t.options,Object.keys(ie.value).length||Ae(),ni())}),i.watch(d,ni),i.watch(a,(D,Y)=>{kt.value=F.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 GC(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])),S=i.computed(()=>h.value.filter(U=>!U[d.value])),T=i.computed(()=>c.value!=="single"&&u.value),A=i.computed(()=>_.value&&_.value.group),x=i.computed(()=>Q(_.value)),M=i.computed(()=>{const U=A.value?_.value:Q(_.value),ne=S.value.map(I=>I[a.value]).indexOf(U[a.value]);let ge=S.value[ne-1];return ge===void 0&&(ge=$.value),ge}),B=i.computed(()=>{let U=S.value.map(ne=>ne.label).indexOf(A.value?_.value[a.value]:Q(_.value)[a.value])+1;return S.value.length<=U&&(U=0),S.value[U]}),$=i.computed(()=>[...S.value].slice(-1)[0]),O=i.computed(()=>_.value.__VISIBLE__.filter(U=>!U[d.value])[0]),P=i.computed(()=>{const U=x.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=Q(_.value).__VISIBLE__.filter(ne=>!ne[d.value]);return U[U.map(ne=>ne[o.value]).indexOf(_.value[o.value])+1]}),K=i.computed(()=>[...M.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),V=i.computed(()=>[...$.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&&T.value?S.value[0].__CREATE__?b.value[0]:S.value[0]:b.value[0])||null);else if(l.value&&T.value){let U=A.value?O.value:F.value;U===void 0&&(U=B.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()})},ue=()=>{if(_.value===null){let U=b.value[b.value.length-1];l.value&&T.value&&(U=V.value,U===void 0&&(U=$.value)),y(U||null)}else if(l.value&&T.value){let U=A.value?K.value:P.value;U===void 0&&(U=A.value?M.value:x.value,U.__CREATE__&&(U=K.value,U===void 0&&(U=M.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()})},Q=U=>S.value.find(ne=>ne.__VISIBLE__.map(ge=>ge[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 ge=ne.parentElement.parentElement;i.nextTick(()=>{ge.scrollTop>0||(ge.scrollTop=ne.offsetTop)})}}),{pointer:_,canPointGroups:T,isPointed:N,setPointerFirst:G,selectPointer:z,forwardPointer:H,backwardPointer:ue}}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 YC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function JC(t){return t===$t(t)||!Ut(t)?nu(t):YC(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 Vn(t){return $t(t).getComputedStyle(t)}function ru(t){var e=Vn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function XC(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 QC(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&XC(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=JC(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 eb(t){return["table","td","th"].indexOf(Cn(t))>=0}function Ad(t){return!Ut(t)||Vn(t).position==="fixed"?null:t.offsetParent}function tb(t){var e=/firefox/i.test(lc()),n=/Trident/i.test(lc());if(n&&Ut(t)){var o=Vn(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=Vn(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&&eb(n)&&Vn(n).position==="static";)n=Ad(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&Vn(n).position==="static")?e:n||tb(t)||e}var Qt="top",bn="bottom",fo="right",Ln="left",iu="auto",Ia=[Qt,bn,fo,Ln],$r="start",Fi="end",nb="clippingParents",Wp="viewport",fi="popper",ob="reference",Nd=Ia.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),rb=[].concat(Ia,[iu]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),ib="beforeRead",sb="read",ab="afterRead",lb="beforeMain",cb="main",ub="afterMain",db="beforeWrite",fb="write",pb="afterWrite",hb=[ib,sb,ab,lb,cb,ub,db,fb,pb];function mb(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 gb(t){var e=mb(t);return hb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function vb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function yb(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 _b(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 Cb(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 Vn(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function bb(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 kb(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(_b(t,n)):Ho(e)?kb(e,n):cc(Cb(vo(t)))}function wb(t){var e=Ei(Oa(t)),n=["absolute","fixed"].indexOf(Vn(t).position)>=0,o=n&&Ut(t)?La(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&bb(r,o)&&Cn(r)!=="body"}):[]}function Eb(t,e,n,o){var r=e==="clippingParents"?wb(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 xb(t){return Object.assign({},Gp(),t)}function Sb(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?nb: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,_=xb(typeof C!="number"?C:Sb(C,Ia)),y=p===fi?ob:fi,v=t.rects.popper,w=t.elements[m?y:p],k=Eb(Ho(w)?w:w.contextElement||vo(t.elements.popper),c,d,a),b=Br(t.elements.reference),S=Kp({reference:b,element:v,strategy:"absolute",placement:r}),T=cc(Object.assign({},v,S)),A=p===fi?T:b,x={top:k.top-A.top+_.top,bottom:A.bottom-k.bottom+_.bottom,left:k.left-A.left+_.left,right:A.right-k.right+_.right},M=t.modifiersData.offset;if(p===fi&&M){var B=M[r];Object.keys(x).forEach(function($){var O=[fo,bn].indexOf($)>=0?1:-1,P=[Qt,bn].indexOf($)>=0?"y":"x";x[$]+=B[P]*O})}return x}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 Tb(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=gb(yb([].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:QC(y,La(v),d.options.strategy==="fixed"),popper:Hp(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(x){return d.modifiersData[x.name]=Object.assign({},x.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,S=k.options,T=S===void 0?{}:S,A=k.name;typeof b=="function"&&(d=b({state:d,options:T,name:A,instance:h})||d)}}}},update:vb(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 Ab(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 Nb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ab,data:{}};function Db(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 Mb={name:"popperOffsets",enabled:!0,phase:"read",fn:Db,data:{}},Bb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $b(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),S="clientHeight",T="clientWidth";if(b===$t(n)&&(b=vo(n),Vn(b).position!=="static"&&l==="absolute"&&(S="scrollHeight",T="scrollWidth")),b=b,r===Qt||(r===Ln||r===fo)&&s===Fi){w=bn;var A=f&&b===k&&k.visualViewport?k.visualViewport.height:b[S];g-=A-o.height,g*=c?1:-1}if(r===Ln||(r===Qt||r===bn)&&s===Fi){v=fo;var x=f&&b===k&&k.visualViewport?k.visualViewport.width:b[T];h-=x-o.width,h*=c?1:-1}}var M=Object.assign({position:l},u&&Bb),B=d===!0?$b({x:h,y:g},$t(n)):{x:h,y:g};if(h=B.x,g=B.y,c){var $;return Object.assign({},M,($={},$[w]=y?"0":"",$[v]=_?"0":"",$.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",$))}return Object.assign({},M,(e={},e[w]=y?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function Ob(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 Lb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ob,data:{}};function Ib(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 Pb(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 Fb={name:"applyStyles",enabled:!0,phase:"write",fn:Ib,effect:Pb,requires:["computeStyles"]},Vb=[Nb,Mb,Lb,Fb],Rb=Tb({defaultModifiers:Vb});function zb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Fo(t,Qs(e,n))}function Ub(t,e,n){var o=zs(t,e,n);return o>n?n:o}function qb(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=zb(w),b=e.modifiersData.popperOffsets,S=e.rects.reference,T=e.rects.popper,A=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,x=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(b){if(s){var $,O=w==="y"?Qt:Ln,P=w==="y"?bn:fo,F=w==="y"?"height":"width",K=b[w],V=K+C[O],N=K-C[P],G=h?-T[F]/2:0,z=y===$r?S[F]:T[F],H=y===$r?-T[F]:-S[F],ue=e.elements.arrow,Q=h&&ue?Hp(ue):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gp(),U=ie[O],ne=ie[P],ge=zs(0,S[F],Q[F]),I=v?S[F]/2-G-ge-U-x.mainAxis:z-ge-U-x.mainAxis,ee=v?-S[F]/2+G+ge+ne+x.mainAxis:H+ge+ne+x.mainAxis,ve=e.elements.arrow&&La(e.elements.arrow),he=ve?w==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ve=($=M==null?void 0:M[w])!=null?$:0,le=K+I-Ve-he,ft=K+ee-Ve,xe=zs(h?Qs(V,le):V,K,h?Fo(N,ft):N);b[w]=xe,B[w]=xe-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=M==null?void 0:M[k])!=null?pt:0,ot=Fe?Wn:ht-S[kt]-T[kt]-mt+x.altAxis,Zt=Fe?ht+S[kt]+T[kt]-mt-x.altAxis:bo,xn=h&&Fe?Ub(ot,ht,Zt):zs(h?ot:Wn,ht,h?Zt:bo);b[k]=xn,B[k]=xn-ht}e.modifiersData[o]=B}}var Hb={name:"preventOverflow",enabled:!0,phase:"main",fn:qb,requiresIfExists:["offset"]},jb={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return jb[e]})}var Wb={start:"end",end:"start"};function Od(t){return t.replace(/start|end/g,function(e){return Wb[e]})}function Zb(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?rb: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 Kb(t){if(io(t)===iu)return[];var e=Us(t);return[Od(t),e,Od(e)]}function Gb(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)]:Kb(C)),w=[C].concat(v).reduce(function(Q,ie){return Q.concat(io(ie)===iu?Zb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):ie)},[]),k=e.rects.reference,b=e.rects.popper,S=new Map,T=!0,A=w[0],x=0;x<w.length;x++){var M=w[x],B=io(M),$=Or(M)===$r,O=[Qt,bn].indexOf(B)>=0,P=O?"width":"height",F=su(e,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=O?$?fo:Ln:$?bn:Qt;k[P]>b[P]&&(K=Us(K));var V=Us(K),N=[];if(s&&N.push(F[B]<=0),l&&N.push(F[K]<=0,F[V]<=0),N.every(function(Q){return Q})){A=M,T=!1;break}S.set(M,N)}if(T)for(var G=m?3:1,z=function(ie){var U=w.find(function(ne){var ge=S.get(ne);if(ge)return ge.slice(0,ie).every(function(I){return I})});if(U)return A=U,"break"},H=G;H>0;H--){var ue=z(H);if(ue==="break")break}e.placement!==A&&(e.modifiersData[o]._skip=!0,e.placement=A,e.reset=!0)}}var Yb={name:"flip",enabled:!0,phase:"main",fn:Gb,requiresIfExists:["offset"],data:{_skip:!1}};function Jb(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=Rb(c.value,u.value,{strategy:y(c.value)?"fixed":void 0,placement:a.value,modifiers:[Hb,Yb,{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 Xb(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=(T=!0)=>{r.value||(h.value=!0,T&&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:T=>{T.target.closest("[data-tags]")&&T.target.nodeName!=="INPUT"||T.target.closest("[data-clear]")||y(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),C()},handleMousedown:T=>{m.value=!0,d.value&&(T.target.isEqualNode(f.value)||T.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 Qb(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,S=n.multiselect,T=n.wrapper,A=n.tags,x=n.isOpen,M=n.open,B=n.blur,$=n.fo,O=i.computed(()=>f.value||p.value||!1),P=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),F=()=>{o.value==="tags"&&!l.value&&O.value&&a.value&&!u.value&&v($.value[$.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=[...S.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(ue=>!ue.disabled&&ue.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((ue,Q)=>Q!==z)),z===G.length-1&&(G.length-1?G[G.length-2].focus():a.value?A.value.querySelector("input").focus():T.value.focus());return}if(P.value.indexOf("enter")===-1&&O.value)return;F(),w();break;case" ":if(!O.value&&!a.value){N.preventDefault(),F(),w();return}if(!O.value)return!1;if(P.value.indexOf("space")===-1&&O.value)return;N.preventDefault(),F(),w();break;case"Tab":case";":case",":if(P.value.indexOf(N.key.toLowerCase())===-1||!O.value)return;F(),w(),N.preventDefault();break;case"Escape":B();break;case"ArrowUp":if(N.preventDefault(),!l.value)return;x.value||M(),k();break;case"ArrowDown":if(N.preventDefault(),!l.value)return;x.value||M(),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||T.value.focus();break}},handleKeyup:N=>{e.emit("keyup",N,m)},preparePointer:F}}function e9(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 t9(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 n9(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 B=[];return r&&r.value&&B.push(r.value),B.push("assist"),B.join("-")}),_=i.computed(()=>{let B=[];return r&&r.value&&B.push(r.value),B.push("multiselect-options"),B.join("-")}),y=i.computed(()=>{let B=[];if(r&&r.value&&B.push(r.value),f.value)return B.push(f.value.group?"multiselect-group":"multiselect-option"),B.push(f.value.group?f.value.index:f.value[s.value]),B.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let B="";return l.value==="single"&&h.value&&(B+=p.value[a.value]),l.value==="multiple"&&h.value&&(B+=m.value),l.value==="tags"&&h.value&&(B+=p.value.map($=>$[a.value]).join(", ")),B}),b=i.computed(()=>{let B={...u.value};return d.value&&(B["aria-labelledby"]=B["aria-labelledby"]?`${C.value} ${B["aria-labelledby"]}`:C.value,k.value&&B["aria-label"]&&(B["aria-label"]=`${k.value}, ${B["aria-label"]}`)),B}),S=B=>{let $=[];return r&&r.value&&$.push(r.value),$.push("multiselect-option"),$.push(B[s.value]),$.join("-")},T=B=>{let $=[];return r&&r.value&&$.push(r.value),$.push("multiselect-group"),$.push(B.index),$.join("-")},A=B=>{let $=[];return $.push(B),$.join(" ")},x=B=>{let $=[];return $.push(B),$.join(" ")},M=B=>`${B} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let B=document.querySelector(`[for="${r.value}"]`);g.value=B?B.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:C,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:y,ariaOptionId:S,ariaOptionLabel:A,ariaGroupId:T,ariaGroupLabel:x,ariaTagLabel:M}}function o9(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 r9(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 i9(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 i9(t,e,[r9,o9,qC,jC,Jb,HC,UC,Xb,KC,t9,GC,Qb,e9,n9])},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 s9=["id","dir"],a9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],l9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],c9=["onKeyup","aria-label"],u9=["onClick"],d9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],f9=["innerHTML"],p9=["id"],h9=["id"],m9=["id","aria-label","aria-selected"],g9=["data-pointed","onMouseenter","onMousedown"],v9=["innerHTML"],y9=["aria-label"],_9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],C9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],b9=["innerHTML"],k9=["innerHTML"],w9=["value"],E9=["name","value"],x9=["name","value"],S9=["id"];function T9(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,l9)):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,u9)):i.createCommentVNode("v-if",!0)],42,c9))])),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,d9)):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,f9)]):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,a9),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,v9)])],42,g9)),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,_9))),128))],10,y9)],10,m9))),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,C9))),128))],10,h9),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,b9)]):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,k9)]):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,p9)],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,w9)):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,E9)):(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,x9))),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,S9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,s9)}to.render=T9;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&&zC({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=A9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function A9(){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 N9={class:"ao-tasks"},D9={class:"ao-tasks__list"},M9=["id","value","readonly","onChange"],B9={class:"ao-tasks__list-footer"},$9=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",N9,[i.createElementVNode("ul",D9,[(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(me,{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,M9),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(me,{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",B9,[t.isEditable?(i.openBlock(),i.createBlock(me,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const O9={class:"ao-files__placeholder"},L9={key:0,class:"ao-files__list"},I9=["onClick"],P9={class:"ao-file__title"},F9={class:"ao-file__actions"},V9={key:0},R9={class:"ao-files__input"},z9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},U9={class:"ao-button__label"},q9={class:"ao-files__dropzone"},H9={class:"ao-files__dropzone-label"},j9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,r=i.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(h){n("remove",h)}function l(h){if(!h.url)return;const m=document.createElement("a");m.href=h.url,m.download=h.name,m.target="_blank",m.rel="noopener noreferrer",document.body.appendChild(m),m.click(),m.remove()}function c(h){const m=h.target,g=Array.from(m.files??[]);g.length&&n("add",g),m.value=""}function u(h){h.preventDefault()}i.onMounted(()=>{s.forEach(h=>{document.body.addEventListener(h,u)})}),i.onUnmounted(()=>{s.forEach(h=>{document.body.removeEventListener(h,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,h=>{n("toggleIsDropActive",h)});function p(h){var g;if(f(),!o.isEditable)return;const m=Array.from(((g=h.dataTransfer)==null?void 0:g.files)??[]);m.length&&n("add",m)}return(h,m)=>{var g;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":r.value}]),onDrop:i.withModifiers(p,["prevent"]),onDragenter:i.withModifiers(d,["prevent"]),onDragover:i.withModifiers(d,["prevent"]),onDragleave:i.withModifiers(f,["prevent"])},[i.renderSlot(h.$slots,"default",{},()=>[i.createElementVNode("span",O9,i.toDisplayString(h.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",L9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(C,_)=>(i.openBlock(),i.createElementBlock("li",{key:C.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:y=>n("preview",_)},[i.createVNode(be,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",P9,i.toDisplayString(C.name),1)],8,I9),i.createElementVNode("div",F9,[i.createVNode(me,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(y=>l(C),["stop"])},null,8,["onClick"]),t.isEditable?(i.openBlock(),i.createBlock(me,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:i.withModifiers(y=>a(C),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",V9,[i.createElementVNode("label",R9,[i.createElementVNode("div",z9,[i.createVNode(be,{name:"Add",size:"sm"}),i.createElementVNode("span",U9,i.toDisplayString(h.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",q9,[i.createElementVNode("span",H9,i.toDisplayString(h.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ee={};const 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="∟",V4="⊾",R4="⦝",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="϶",V8="ℬ",R8="ℬ",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="┬",Vk="╤",Rk="╥",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="⩄",V6="⩉",R6="⩋",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="⨐",Vw="⫯",Rw="⧂",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="⩊",VE="⊍",RE="⩅",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="˜",Vx="⋄",Rx="⋄",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="⥐",VS="⥞",RS="⥖",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="⏧",VT="ℓ",RT="⪕",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="€",VA="!",RA="∃",zA="∃",UA="ℰ",qA="ⅇ",HA="ⅇ",jA="≒",WA="Ф",ZA="ф",KA="♀",GA="ffi",YA="ff",JA="ffl",XA="𝔉",QA="𝔣",eN="fi",tN="◼",nN="▪",oN="fj",rN="♭",iN="fl",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="Ϝ",VN="ϝ",RN="⪆",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="≳",VD="𝒢",RD="ℊ",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="𝒽",VM="ℋ",RM="ℏ",zM="Ħ",UM="ħ",qM="≎",HM="≏",jM="⁃",WM="‐",ZM="Í",KM="í",GM="⁣",YM="Î",JM="î",XM="И",QM="и",eB="İ",tB="Е",nB="е",oB="¡",rB="⇔",iB="𝔦",sB="ℑ",aB="Ì",lB="ì",cB="ⅈ",uB="⨌",dB="∭",fB="⧜",pB="℩",hB="IJ",mB="ij",gB="Ī",vB="ī",yB="ℑ",_B="ⅈ",CB="ℐ",bB="ℑ",kB="ı",wB="ℑ",EB="⊷",xB="Ƶ",SB="⇒",TB="℅",AB="∞",NB="⧝",DB="ı",MB="⊺",BB="∫",$B="∬",OB="ℤ",LB="∫",IB="⊺",PB="⋂",FB="⨗",VB="⨼",RB="⁣",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$="Х",V$="х",R$="Ќ",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="⤶",VO="“",RO="„",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="⋚︀",VL="⪓",RL="⪅",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="⟼",VI="⟶",RI="⟶",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="⥦",VP="≨︀",RP="≨︀",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="ń",LF="∠⃒",IF="≉",PF="⩰̸",FF="≋̸",VF="ʼn",RF="≉",zF="♮",UF="ℕ",qF="♮",HF=" ",jF="≎̸",WF="≏̸",ZF="⩃",KF="Ň",GF="ň",YF="Ņ",JF="ņ",XF="≇",QF="⩭̸",eV="⩂",tV="Н",nV="н",oV="–",rV="⤤",iV="↗",sV="⇗",aV="↗",lV="≠",cV="≐̸",uV="​",dV="​",fV="​",pV="​",hV="≢",mV="⤨",gV="≂̸",vV="≫",yV="≪",_V=`
2
2
  `,CV="∄",bV="∄",kV="𝔑",wV="𝔫",EV="≧̸",xV="≱",SV="≱",TV="≧̸",AV="⩾̸",NV="⩾̸",DV="⋙̸",MV="≵",BV="≫⃒",$V="≯",OV="≯",LV="≫̸",IV="↮",PV="⇎",FV="⫲",VV="∋",RV="⋼",zV="⋺",UV="∋",qV="Њ",HV="њ",jV="↚",WV="⇍",ZV="‥",KV="≦̸",GV="≰",YV="↚",JV="⇍",XV="↮",QV="⇎",eR="≰",tR="≦̸",nR="⩽̸",oR="⩽̸",rR="≮",iR="⋘̸",sR="≴",aR="≪⃒",lR="≮",cR="⋪",uR="⋬",dR="≪̸",fR="∤",pR="⁠",hR=" ",mR="𝕟",gR="ℕ",vR="⫬",yR="¬",_R="≢",CR="≭",bR="∦",kR="∉",wR="≠",ER="≂̸",xR="∄",SR="≯",TR="≱",AR="≧̸",NR="≫̸",DR="≹",MR="⩾̸",BR="≵",$R="≎̸",OR="≏̸",LR="∉",IR="⋵̸",PR="⋹̸",FR="∉",VR="⋷",RR="⋶",zR="⧏̸",UR="⋪",qR="⋬",HR="≮",jR="≰",WR="≸",ZR="≪̸",KR="⩽̸",GR="≴",YR="⪢̸",JR="⪡̸",XR="∌",QR="∌",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="⇏",Vz="↝̸",Rz="↛",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="⤄",VU="⧞",RU="⤂",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="𝕠",Vq="⦷",Rq="“",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="ϕ",VH="ℳ",RH="☎",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="⌒",Vj="⌓",Rj="∝",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="⤚",VW="⤜",RW="∶",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="↣",VZ="⌉",RZ="⟧",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="’",VK="’",RK="⋌",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="↓",VG="←",RG="∣",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="⊒",VY="□",RY="□",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="⪶",VJ="⋩",RJ="≿",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="𝔗",VX="𝔱",RX="∴",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="𝒯",VQ="𝓉",RQ="Ц",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="𝕦",Vee="⤒",Ree="↑",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="⫌︀",Vte="ϑ",Rte="⊲",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="𝕎",Vne="𝕨",Rne="℘",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="ÿ",Voe="Ÿ",Roe="Ź",zoe="ź",Uoe="Ž",qoe="ž",Hoe="З",joe="з",Woe="Ż",Zoe="ż",Koe="ℨ",Goe="​",Yoe="Ζ",Joe="ζ",Xoe="𝔷",Qoe="ℨ",ere="Ж",tre="ж",nre="⇝",ore="𝕫",rre="ℤ",ire="𝒵",sre="𝓏",are="‍",lre="‌",cre={Aacute:W9,aacute:Z9,Abreve:K9,abreve:G9,ac:Y9,acd:J9,acE:X9,Acirc:Q9,acirc:e4,acute:t4,Acy:n4,acy:o4,AElig:r4,aelig:i4,af:s4,Afr:a4,afr:l4,Agrave:c4,agrave:u4,alefsym:d4,aleph:f4,Alpha:p4,alpha:h4,Amacr:m4,amacr:g4,amalg:v4,amp:y4,AMP:_4,andand:C4,And:b4,and:k4,andd:w4,andslope:E4,andv:x4,ang:S4,ange:T4,angle:A4,angmsdaa:N4,angmsdab:D4,angmsdac:M4,angmsdad:B4,angmsdae:$4,angmsdaf:O4,angmsdag:L4,angmsdah:I4,angmsd:P4,angrt:F4,angrtvb:V4,angrtvbd:R4,angsph:z4,angst:U4,angzarr:q4,Aogon:H4,aogon:j4,Aopf:W4,aopf:Z4,apacir:K4,ap:G4,apE:Y4,ape:J4,apid:X4,apos:Q4,ApplyFunction:e8,approx:t8,approxeq:n8,Aring:o8,aring:r8,Ascr:i8,ascr:s8,Assign:a8,ast:l8,asymp:c8,asympeq:u8,Atilde:d8,atilde:f8,Auml:p8,auml:h8,awconint:m8,awint:g8,backcong:v8,backepsilon:y8,backprime:_8,backsim:C8,backsimeq:b8,Backslash:k8,Barv:w8,barvee:E8,barwed:x8,Barwed:S8,barwedge:T8,bbrk:A8,bbrktbrk:N8,bcong:D8,Bcy:M8,bcy:B8,bdquo:$8,becaus:O8,because:L8,Because:I8,bemptyv:P8,bepsi:F8,bernou:V8,Bernoullis:R8,Beta:z8,beta:U8,beth:q8,between:H8,Bfr:j8,bfr:W8,bigcap:Z8,bigcirc:K8,bigcup:G8,bigodot:Y8,bigoplus:J8,bigotimes:X8,bigsqcup:Q8,bigstar:ek,bigtriangledown:tk,bigtriangleup:nk,biguplus:ok,bigvee:rk,bigwedge:ik,bkarow:sk,blacklozenge:ak,blacksquare:lk,blacktriangle:ck,blacktriangledown:uk,blacktriangleleft:dk,blacktriangleright:fk,blank:pk,blk12:hk,blk14:mk,blk34:gk,block:vk,bne:yk,bnequiv:_k,bNot:Ck,bnot:bk,Bopf:kk,bopf:wk,bot:Ek,bottom:xk,bowtie:Sk,boxbox:Tk,boxdl:Ak,boxdL:Nk,boxDl:Dk,boxDL:Mk,boxdr:Bk,boxdR:$k,boxDr:Ok,boxDR:Lk,boxh:Ik,boxH:Pk,boxhd:Fk,boxHd:Vk,boxhD:Rk,boxHD:zk,boxhu:Uk,boxHu:qk,boxhU:Hk,boxHU:jk,boxminus:Wk,boxplus:Zk,boxtimes:Kk,boxul:Gk,boxuL:Yk,boxUl:Jk,boxUL:Xk,boxur:Qk,boxuR:e6,boxUr:t6,boxUR:n6,boxv:o6,boxV:r6,boxvh:i6,boxvH:s6,boxVh:a6,boxVH:l6,boxvl:c6,boxvL:u6,boxVl:d6,boxVL:f6,boxvr:p6,boxvR:h6,boxVr:m6,boxVR:g6,bprime:v6,breve:y6,Breve:_6,brvbar:C6,bscr:b6,Bscr:k6,bsemi:w6,bsim:E6,bsime:x6,bsolb:S6,bsol:T6,bsolhsub:A6,bull:N6,bullet:D6,bump:M6,bumpE:B6,bumpe:$6,Bumpeq:O6,bumpeq:L6,Cacute:I6,cacute:P6,capand:F6,capbrcup:V6,capcap:R6,cap:z6,Cap:U6,capcup:q6,capdot:H6,CapitalDifferentialD:j6,caps:W6,caret:Z6,caron:K6,Cayleys:G6,ccaps:Y6,Ccaron:J6,ccaron:X6,Ccedil:Q6,ccedil:ew,Ccirc:tw,ccirc:nw,Cconint:ow,ccups:rw,ccupssm:iw,Cdot:sw,cdot:aw,cedil:lw,Cedilla:cw,cemptyv:uw,cent:dw,centerdot:fw,CenterDot:pw,cfr:hw,Cfr:mw,CHcy:gw,chcy:vw,check:yw,checkmark:_w,Chi:Cw,chi:bw,circ:kw,circeq:ww,circlearrowleft:Ew,circlearrowright:xw,circledast:Sw,circledcirc:Tw,circleddash:Aw,CircleDot:Nw,circledR:Dw,circledS:Mw,CircleMinus:Bw,CirclePlus:$w,CircleTimes:Ow,cir:Lw,cirE:Iw,cire:Pw,cirfnint:Fw,cirmid:Vw,cirscir:Rw,ClockwiseContourIntegral:zw,CloseCurlyDoubleQuote:Uw,CloseCurlyQuote:qw,clubs:Hw,clubsuit:jw,colon:Ww,Colon:Zw,Colone:Kw,colone:Gw,coloneq:Yw,comma:Jw,commat:Xw,comp:Qw,compfn:eE,complement:tE,complexes:nE,cong:oE,congdot:rE,Congruent:iE,conint:sE,Conint:aE,ContourIntegral:lE,copf:cE,Copf:uE,coprod:dE,Coproduct:fE,copy:pE,COPY:hE,copysr:mE,CounterClockwiseContourIntegral:gE,crarr:vE,cross:yE,Cross:_E,Cscr:CE,cscr:bE,csub:kE,csube:wE,csup:EE,csupe:xE,ctdot:SE,cudarrl:TE,cudarrr:AE,cuepr:NE,cuesc:DE,cularr:ME,cularrp:BE,cupbrcap:$E,cupcap:OE,CupCap:LE,cup:IE,Cup:PE,cupcup:FE,cupdot:VE,cupor:RE,cups:zE,curarr:UE,curarrm:qE,curlyeqprec:HE,curlyeqsucc:jE,curlyvee:WE,curlywedge:ZE,curren:KE,curvearrowleft:GE,curvearrowright:YE,cuvee:JE,cuwed:XE,cwconint:QE,cwint:ex,cylcty:tx,dagger:nx,Dagger:ox,daleth:rx,darr:ix,Darr:sx,dArr:ax,dash:lx,Dashv:cx,dashv:ux,dbkarow:dx,dblac:fx,Dcaron:px,dcaron:hx,Dcy:mx,dcy:gx,ddagger:vx,ddarr:yx,DD:_x,dd:Cx,DDotrahd:bx,ddotseq:kx,deg:wx,Del:Ex,Delta:xx,delta:Sx,demptyv:Tx,dfisht:Ax,Dfr:Nx,dfr:Dx,dHar:Mx,dharl:Bx,dharr:$x,DiacriticalAcute:Ox,DiacriticalDot:Lx,DiacriticalDoubleAcute:Ix,DiacriticalGrave:Px,DiacriticalTilde:Fx,diam:Vx,diamond:Rx,Diamond:zx,diamondsuit:Ux,diams:qx,die:Hx,DifferentialD:jx,digamma:Wx,disin:Zx,div:Kx,divide:Gx,divideontimes:Yx,divonx:Jx,DJcy:Xx,djcy:Qx,dlcorn:eS,dlcrop:tS,dollar:nS,Dopf:oS,dopf:rS,Dot:iS,dot:sS,DotDot:aS,doteq:lS,doteqdot:cS,DotEqual:uS,dotminus:dS,dotplus:fS,dotsquare:pS,doublebarwedge:hS,DoubleContourIntegral:mS,DoubleDot:gS,DoubleDownArrow:vS,DoubleLeftArrow:yS,DoubleLeftRightArrow:_S,DoubleLeftTee:CS,DoubleLongLeftArrow:bS,DoubleLongLeftRightArrow:kS,DoubleLongRightArrow:wS,DoubleRightArrow:ES,DoubleRightTee:xS,DoubleUpArrow:SS,DoubleUpDownArrow:TS,DoubleVerticalBar:AS,DownArrowBar:NS,downarrow:DS,DownArrow:MS,Downarrow:BS,DownArrowUpArrow:$S,DownBreve:OS,downdownarrows:LS,downharpoonleft:IS,downharpoonright:PS,DownLeftRightVector:FS,DownLeftTeeVector:VS,DownLeftVectorBar:RS,DownLeftVector:zS,DownRightTeeVector:US,DownRightVectorBar:qS,DownRightVector:HS,DownTeeArrow:jS,DownTee:WS,drbkarow:ZS,drcorn:KS,drcrop:GS,Dscr:YS,dscr:JS,DScy:XS,dscy:QS,dsol:eT,Dstrok:tT,dstrok:nT,dtdot:oT,dtri:rT,dtrif:iT,duarr:sT,duhar:aT,dwangle:lT,DZcy:cT,dzcy:uT,dzigrarr:dT,Eacute:fT,eacute:pT,easter:hT,Ecaron:mT,ecaron:gT,Ecirc:vT,ecirc:yT,ecir:_T,ecolon:CT,Ecy:bT,ecy:kT,eDDot:wT,Edot:ET,edot:xT,eDot:ST,ee:TT,efDot:AT,Efr:NT,efr:DT,eg:MT,Egrave:BT,egrave:$T,egs:OT,egsdot:LT,el:IT,Element:PT,elinters:FT,ell:VT,els:RT,elsdot:zT,Emacr:UT,emacr:qT,empty:HT,emptyset:jT,EmptySmallSquare:WT,emptyv:ZT,EmptyVerySmallSquare:KT,emsp13:GT,emsp14:YT,emsp:JT,ENG:XT,eng:QT,ensp:eA,Eogon:tA,eogon:nA,Eopf:oA,eopf:rA,epar:iA,eparsl:sA,eplus:aA,epsi:lA,Epsilon:cA,epsilon:uA,epsiv:dA,eqcirc:fA,eqcolon:pA,eqsim:hA,eqslantgtr:mA,eqslantless:gA,Equal:vA,equals:yA,EqualTilde:_A,equest:CA,Equilibrium:bA,equiv:kA,equivDD:wA,eqvparsl:EA,erarr:xA,erDot:SA,escr:TA,Escr:AA,esdot:NA,Esim:DA,esim:MA,Eta:BA,eta:$A,ETH:OA,eth:LA,Euml:IA,euml:PA,euro:FA,excl:VA,exist:RA,Exists:zA,expectation:UA,exponentiale:qA,ExponentialE:HA,fallingdotseq:jA,Fcy:WA,fcy:ZA,female:KA,ffilig:GA,fflig:YA,ffllig:JA,Ffr:XA,ffr:QA,filig:eN,FilledSmallSquare:tN,FilledVerySmallSquare:nN,fjlig:oN,flat:rN,fllig:iN,fltns:sN,fnof:aN,Fopf:lN,fopf:cN,forall:uN,ForAll:dN,fork:fN,forkv:pN,Fouriertrf:hN,fpartint:mN,frac12:gN,frac13:vN,frac14:yN,frac15:_N,frac16:CN,frac18:bN,frac23:kN,frac25:wN,frac34:EN,frac35:xN,frac38:SN,frac45:TN,frac56:AN,frac58:NN,frac78:DN,frasl:MN,frown:BN,fscr:$N,Fscr:ON,gacute:LN,Gamma:IN,gamma:PN,Gammad:FN,gammad:VN,gap:RN,Gbreve:zN,gbreve:UN,Gcedil:qN,Gcirc:HN,gcirc:jN,Gcy:WN,gcy:ZN,Gdot:KN,gdot:GN,ge:YN,gE:JN,gEl:XN,gel:QN,geq:eD,geqq:tD,geqslant:nD,gescc:oD,ges:rD,gesdot:iD,gesdoto:sD,gesdotol:aD,gesl:lD,gesles:cD,Gfr:uD,gfr:dD,gg:fD,Gg:pD,ggg:hD,gimel:mD,GJcy:gD,gjcy:vD,gla:yD,gl:_D,glE:CD,glj:bD,gnap:kD,gnapprox:wD,gne:ED,gnE:xD,gneq:SD,gneqq:TD,gnsim:AD,Gopf:ND,gopf:DD,grave:MD,GreaterEqual:BD,GreaterEqualLess:$D,GreaterFullEqual:OD,GreaterGreater:LD,GreaterLess:ID,GreaterSlantEqual:PD,GreaterTilde:FD,Gscr:VD,gscr:RD,gsim:zD,gsime:UD,gsiml:qD,gtcc:HD,gtcir:jD,gt:WD,GT:ZD,Gt:KD,gtdot:GD,gtlPar:YD,gtquest:JD,gtrapprox:XD,gtrarr:QD,gtrdot:eM,gtreqless:tM,gtreqqless:nM,gtrless:oM,gtrsim:rM,gvertneqq:iM,gvnE:sM,Hacek:aM,hairsp:lM,half:cM,hamilt:uM,HARDcy:dM,hardcy:fM,harrcir:pM,harr:hM,hArr:mM,harrw:gM,Hat:vM,hbar:yM,Hcirc:_M,hcirc:CM,hearts:bM,heartsuit:kM,hellip:wM,hercon:EM,hfr:xM,Hfr:SM,HilbertSpace:TM,hksearow:AM,hkswarow:NM,hoarr:DM,homtht:MM,hookleftarrow:BM,hookrightarrow:$M,hopf:OM,Hopf:LM,horbar:IM,HorizontalLine:PM,hscr:FM,Hscr:VM,hslash:RM,Hstrok:zM,hstrok:UM,HumpDownHump:qM,HumpEqual:HM,hybull:jM,hyphen:WM,Iacute:ZM,iacute:KM,ic:GM,Icirc:YM,icirc:JM,Icy:XM,icy:QM,Idot:eB,IEcy:tB,iecy:nB,iexcl:oB,iff:rB,ifr:iB,Ifr:sB,Igrave:aB,igrave:lB,ii:cB,iiiint:uB,iiint:dB,iinfin:fB,iiota:pB,IJlig:hB,ijlig:mB,Imacr:gB,imacr:vB,image:yB,ImaginaryI:_B,imagline:CB,imagpart:bB,imath:kB,Im:wB,imof:EB,imped:xB,Implies:SB,incare:TB,in:"∈",infin:AB,infintie:NB,inodot:DB,intcal:MB,int:BB,Int:$B,integers:OB,Integral:LB,intercal:IB,Intersection:PB,intlarhk:FB,intprod:VB,InvisibleComma:RB,InvisibleTimes:zB,IOcy:UB,iocy:qB,Iogon:HB,iogon:jB,Iopf:WB,iopf:ZB,Iota:KB,iota:GB,iprod:YB,iquest:JB,iscr:XB,Iscr:QB,isin:e$,isindot:t$,isinE:n$,isins:o$,isinsv:r$,isinv:i$,it:s$,Itilde:a$,itilde:l$,Iukcy:c$,iukcy:u$,Iuml:d$,iuml:f$,Jcirc:p$,jcirc:h$,Jcy:m$,jcy:g$,Jfr:v$,jfr:y$,jmath:_$,Jopf:C$,jopf:b$,Jscr:k$,jscr:w$,Jsercy:E$,jsercy:x$,Jukcy:S$,jukcy:T$,Kappa:A$,kappa:N$,kappav:D$,Kcedil:M$,kcedil:B$,Kcy:$$,kcy:O$,Kfr:L$,kfr:I$,kgreen:P$,KHcy:F$,khcy:V$,KJcy:R$,kjcy:z$,Kopf:U$,kopf:q$,Kscr:H$,kscr:j$,lAarr:W$,Lacute:Z$,lacute:K$,laemptyv:G$,lagran:Y$,Lambda:J$,lambda:X$,lang:Q$,Lang:eO,langd:tO,langle:nO,lap:oO,Laplacetrf:rO,laquo:iO,larrb:sO,larrbfs:aO,larr:lO,Larr:cO,lArr:uO,larrfs:dO,larrhk:fO,larrlp:pO,larrpl:hO,larrsim:mO,larrtl:gO,latail:vO,lAtail:yO,lat:_O,late:CO,lates:bO,lbarr:kO,lBarr:wO,lbbrk:EO,lbrace:xO,lbrack:SO,lbrke:TO,lbrksld:AO,lbrkslu:NO,Lcaron:DO,lcaron:MO,Lcedil:BO,lcedil:$O,lceil:OO,lcub:LO,Lcy:IO,lcy:PO,ldca:FO,ldquo:VO,ldquor:RO,ldrdhar:zO,ldrushar:UO,ldsh:qO,le:HO,lE:jO,LeftAngleBracket:WO,LeftArrowBar:ZO,leftarrow:KO,LeftArrow:GO,Leftarrow:YO,LeftArrowRightArrow:JO,leftarrowtail:XO,LeftCeiling:QO,LeftDoubleBracket:eL,LeftDownTeeVector:tL,LeftDownVectorBar:nL,LeftDownVector:oL,LeftFloor:rL,leftharpoondown:iL,leftharpoonup:sL,leftleftarrows:aL,leftrightarrow:lL,LeftRightArrow:cL,Leftrightarrow:uL,leftrightarrows:dL,leftrightharpoons:fL,leftrightsquigarrow:pL,LeftRightVector:hL,LeftTeeArrow:mL,LeftTee:gL,LeftTeeVector:vL,leftthreetimes:yL,LeftTriangleBar:_L,LeftTriangle:CL,LeftTriangleEqual:bL,LeftUpDownVector:kL,LeftUpTeeVector:wL,LeftUpVectorBar:EL,LeftUpVector:xL,LeftVectorBar:SL,LeftVector:TL,lEg:AL,leg:NL,leq:DL,leqq:ML,leqslant:BL,lescc:$L,les:OL,lesdot:LL,lesdoto:IL,lesdotor:PL,lesg:FL,lesges:VL,lessapprox:RL,lessdot:zL,lesseqgtr:UL,lesseqqgtr:qL,LessEqualGreater:HL,LessFullEqual:jL,LessGreater:WL,lessgtr:ZL,LessLess:KL,lesssim:GL,LessSlantEqual:YL,LessTilde:JL,lfisht:XL,lfloor:QL,Lfr:eI,lfr:tI,lg:nI,lgE:oI,lHar:rI,lhard:iI,lharu:sI,lharul:aI,lhblk:lI,LJcy:cI,ljcy:uI,llarr:dI,ll:fI,Ll:pI,llcorner:hI,Lleftarrow:mI,llhard:gI,lltri:vI,Lmidot:yI,lmidot:_I,lmoustache:CI,lmoust:bI,lnap:kI,lnapprox:wI,lne:EI,lnE:xI,lneq:SI,lneqq:TI,lnsim:AI,loang:NI,loarr:DI,lobrk:MI,longleftarrow:BI,LongLeftArrow:$I,Longleftarrow:OI,longleftrightarrow:LI,LongLeftRightArrow:II,Longleftrightarrow:PI,longmapsto:FI,longrightarrow:VI,LongRightArrow:RI,Longrightarrow:zI,looparrowleft:UI,looparrowright:qI,lopar:HI,Lopf:jI,lopf:WI,loplus:ZI,lotimes:KI,lowast:GI,lowbar:YI,LowerLeftArrow:JI,LowerRightArrow:XI,loz:QI,lozenge:eP,lozf:tP,lpar:nP,lparlt:oP,lrarr:rP,lrcorner:iP,lrhar:sP,lrhard:aP,lrm:lP,lrtri:cP,lsaquo:uP,lscr:dP,Lscr:fP,lsh:pP,Lsh:hP,lsim:mP,lsime:gP,lsimg:vP,lsqb:yP,lsquo:_P,lsquor:CP,Lstrok:bP,lstrok:kP,ltcc:wP,ltcir:EP,lt:xP,LT:SP,Lt:TP,ltdot:AP,lthree:NP,ltimes:DP,ltlarr:MP,ltquest:BP,ltri:$P,ltrie:OP,ltrif:LP,ltrPar:IP,lurdshar:PP,luruhar:FP,lvertneqq:VP,lvnE:RP,macr:zP,male:UP,malt:qP,maltese:HP,Map:"⤅",map:jP,mapsto:WP,mapstodown:ZP,mapstoleft:KP,mapstoup:GP,marker:YP,mcomma:JP,Mcy:XP,mcy:QP,mdash:eF,mDDot:tF,measuredangle:nF,MediumSpace:oF,Mellintrf:rF,Mfr:iF,mfr:sF,mho:aF,micro:lF,midast:cF,midcir:uF,mid:dF,middot:fF,minusb:pF,minus:hF,minusd:mF,minusdu:gF,MinusPlus:vF,mlcp:yF,mldr:_F,mnplus:CF,models:bF,Mopf:kF,mopf:wF,mp:EF,mscr:xF,Mscr:SF,mstpos:TF,Mu:AF,mu:NF,multimap:DF,mumap:MF,nabla:BF,Nacute:$F,nacute:OF,nang:LF,nap:IF,napE:PF,napid:FF,napos:VF,napprox:RF,natural:zF,naturals:UF,natur:qF,nbsp:HF,nbump:jF,nbumpe:WF,ncap:ZF,Ncaron:KF,ncaron:GF,Ncedil:YF,ncedil:JF,ncong:XF,ncongdot:QF,ncup:eV,Ncy:tV,ncy:nV,ndash:oV,nearhk:rV,nearr:iV,neArr:sV,nearrow:aV,ne:lV,nedot:cV,NegativeMediumSpace:uV,NegativeThickSpace:dV,NegativeThinSpace:fV,NegativeVeryThinSpace:pV,nequiv:hV,nesear:mV,nesim:gV,NestedGreaterGreater:vV,NestedLessLess:yV,NewLine:_V,nexist:CV,nexists:bV,Nfr:kV,nfr:wV,ngE:EV,nge:xV,ngeq:SV,ngeqq:TV,ngeqslant:AV,nges:NV,nGg:DV,ngsim:MV,nGt:BV,ngt:$V,ngtr:OV,nGtv:LV,nharr:IV,nhArr:PV,nhpar:FV,ni:VV,nis:RV,nisd:zV,niv:UV,NJcy:qV,njcy:HV,nlarr:jV,nlArr:WV,nldr:ZV,nlE:KV,nle:GV,nleftarrow:YV,nLeftarrow:JV,nleftrightarrow:XV,nLeftrightarrow:QV,nleq:eR,nleqq:tR,nleqslant:nR,nles:oR,nless:rR,nLl:iR,nlsim:sR,nLt:aR,nlt:lR,nltri:cR,nltrie:uR,nLtv:dR,nmid:fR,NoBreak:pR,NonBreakingSpace:hR,nopf:mR,Nopf:gR,Not:vR,not:yR,NotCongruent:_R,NotCupCap:CR,NotDoubleVerticalBar:bR,NotElement:kR,NotEqual:wR,NotEqualTilde:ER,NotExists:xR,NotGreater:SR,NotGreaterEqual:TR,NotGreaterFullEqual:AR,NotGreaterGreater:NR,NotGreaterLess:DR,NotGreaterSlantEqual:MR,NotGreaterTilde:BR,NotHumpDownHump:$R,NotHumpEqual:OR,notin:LR,notindot:IR,notinE:PR,notinva:FR,notinvb:VR,notinvc:RR,NotLeftTriangleBar:zR,NotLeftTriangle:UR,NotLeftTriangleEqual:qR,NotLess:HR,NotLessEqual:jR,NotLessGreater:WR,NotLessLess:ZR,NotLessSlantEqual:KR,NotLessTilde:GR,NotNestedGreaterGreater:YR,NotNestedLessLess:JR,notni:XR,notniva:QR,notnivb:ez,notnivc:tz,NotPrecedes:nz,NotPrecedesEqual:oz,NotPrecedesSlantEqual:rz,NotReverseElement:iz,NotRightTriangleBar:sz,NotRightTriangle:az,NotRightTriangleEqual:lz,NotSquareSubset:cz,NotSquareSubsetEqual:uz,NotSquareSuperset:dz,NotSquareSupersetEqual:fz,NotSubset:pz,NotSubsetEqual:hz,NotSucceeds:mz,NotSucceedsEqual:gz,NotSucceedsSlantEqual:vz,NotSucceedsTilde:yz,NotSuperset:_z,NotSupersetEqual:Cz,NotTilde:bz,NotTildeEqual:kz,NotTildeFullEqual:wz,NotTildeTilde:Ez,NotVerticalBar:xz,nparallel:Sz,npar:Tz,nparsl:Az,npart:Nz,npolint:Dz,npr:Mz,nprcue:Bz,nprec:$z,npreceq:Oz,npre:Lz,nrarrc:Iz,nrarr:Pz,nrArr:Fz,nrarrw:Vz,nrightarrow:Rz,nRightarrow:zz,nrtri:Uz,nrtrie:qz,nsc:Hz,nsccue:jz,nsce:Wz,Nscr:Zz,nscr:Kz,nshortmid:Gz,nshortparallel:Yz,nsim:Jz,nsime:Xz,nsimeq:Qz,nsmid:eU,nspar:tU,nsqsube:nU,nsqsupe:oU,nsub:rU,nsubE:iU,nsube:sU,nsubset:aU,nsubseteq:lU,nsubseteqq:cU,nsucc:uU,nsucceq:dU,nsup:fU,nsupE:pU,nsupe:hU,nsupset:mU,nsupseteq:gU,nsupseteqq:vU,ntgl:yU,Ntilde:_U,ntilde:CU,ntlg:bU,ntriangleleft:kU,ntrianglelefteq:wU,ntriangleright:EU,ntrianglerighteq:xU,Nu:SU,nu:TU,num:AU,numero:NU,numsp:DU,nvap:MU,nvdash:BU,nvDash:$U,nVdash:OU,nVDash:LU,nvge:IU,nvgt:PU,nvHarr:FU,nvinfin:VU,nvlArr:RU,nvle:zU,nvlt:UU,nvltrie:qU,nvrArr:HU,nvrtrie:jU,nvsim:WU,nwarhk:ZU,nwarr:KU,nwArr:GU,nwarrow:YU,nwnear:JU,Oacute:XU,oacute:QU,oast:eq,Ocirc:tq,ocirc:nq,ocir:oq,Ocy:rq,ocy:iq,odash:sq,Odblac:aq,odblac:lq,odiv:cq,odot:uq,odsold:dq,OElig:fq,oelig:pq,ofcir:hq,Ofr:mq,ofr:gq,ogon:vq,Ograve:yq,ograve:_q,ogt:Cq,ohbar:bq,ohm:kq,oint:wq,olarr:Eq,olcir:xq,olcross:Sq,oline:Tq,olt:Aq,Omacr:Nq,omacr:Dq,Omega:Mq,omega:Bq,Omicron:$q,omicron:Oq,omid:Lq,ominus:Iq,Oopf:Pq,oopf:Fq,opar:Vq,OpenCurlyDoubleQuote:Rq,OpenCurlyQuote:zq,operp:Uq,oplus:qq,orarr:Hq,Or:jq,or:Wq,ord:Zq,order:Kq,orderof:Gq,ordf:Yq,ordm:Jq,origof:Xq,oror:Qq,orslope:eH,orv:tH,oS:nH,Oscr:oH,oscr:rH,Oslash:iH,oslash:sH,osol:aH,Otilde:lH,otilde:cH,otimesas:uH,Otimes:dH,otimes:fH,Ouml:pH,ouml:hH,ovbar:mH,OverBar:gH,OverBrace:vH,OverBracket:yH,OverParenthesis:_H,para:CH,parallel:bH,par:kH,parsim:wH,parsl:EH,part:xH,PartialD:SH,Pcy:TH,pcy:AH,percnt:NH,period:DH,permil:MH,perp:BH,pertenk:$H,Pfr:OH,pfr:LH,Phi:IH,phi:PH,phiv:FH,phmmat:VH,phone:RH,Pi:zH,pi:UH,pitchfork:qH,piv:HH,planck:jH,planckh:WH,plankv:ZH,plusacir:KH,plusb:GH,pluscir:YH,plus:JH,plusdo:XH,plusdu:QH,pluse:ej,PlusMinus:tj,plusmn:nj,plussim:oj,plustwo:rj,pm:ij,Poincareplane:sj,pointint:aj,popf:lj,Popf:cj,pound:uj,prap:dj,Pr:fj,pr:pj,prcue:hj,precapprox:mj,prec:gj,preccurlyeq:vj,Precedes:yj,PrecedesEqual:_j,PrecedesSlantEqual:Cj,PrecedesTilde:bj,preceq:kj,precnapprox:wj,precneqq:Ej,precnsim:xj,pre:Sj,prE:Tj,precsim:Aj,prime:Nj,Prime:Dj,primes:Mj,prnap:Bj,prnE:$j,prnsim:Oj,prod:Lj,Product:Ij,profalar:Pj,profline:Fj,profsurf:Vj,prop:Rj,Proportional:zj,Proportion:Uj,propto:qj,prsim:Hj,prurel:jj,Pscr:Wj,pscr:Zj,Psi:Kj,psi:Gj,puncsp:Yj,Qfr:Jj,qfr:Xj,qint:Qj,qopf:eW,Qopf:tW,qprime:nW,Qscr:oW,qscr:rW,quaternions:iW,quatint:sW,quest:aW,questeq:lW,quot:cW,QUOT:uW,rAarr:dW,race:fW,Racute:pW,racute:hW,radic:mW,raemptyv:gW,rang:vW,Rang:yW,rangd:_W,range:CW,rangle:bW,raquo:kW,rarrap:wW,rarrb:EW,rarrbfs:xW,rarrc:SW,rarr:TW,Rarr:AW,rArr:NW,rarrfs:DW,rarrhk:MW,rarrlp:BW,rarrpl:$W,rarrsim:OW,Rarrtl:LW,rarrtl:IW,rarrw:PW,ratail:FW,rAtail:VW,ratio:RW,rationals:zW,rbarr:UW,rBarr:qW,RBarr:HW,rbbrk:jW,rbrace:WW,rbrack:ZW,rbrke:KW,rbrksld:GW,rbrkslu:YW,Rcaron:JW,rcaron:XW,Rcedil:QW,rcedil:eZ,rceil:tZ,rcub:nZ,Rcy:oZ,rcy:rZ,rdca:iZ,rdldhar:sZ,rdquo:aZ,rdquor:lZ,rdsh:cZ,real:uZ,realine:dZ,realpart:fZ,reals:pZ,Re:hZ,rect:mZ,reg:gZ,REG:vZ,ReverseElement:yZ,ReverseEquilibrium:_Z,ReverseUpEquilibrium:CZ,rfisht:bZ,rfloor:kZ,rfr:wZ,Rfr:EZ,rHar:xZ,rhard:SZ,rharu:TZ,rharul:AZ,Rho:NZ,rho:DZ,rhov:MZ,RightAngleBracket:BZ,RightArrowBar:$Z,rightarrow:OZ,RightArrow:LZ,Rightarrow:IZ,RightArrowLeftArrow:PZ,rightarrowtail:FZ,RightCeiling:VZ,RightDoubleBracket:RZ,RightDownTeeVector:zZ,RightDownVectorBar:UZ,RightDownVector:qZ,RightFloor:HZ,rightharpoondown:jZ,rightharpoonup:WZ,rightleftarrows:ZZ,rightleftharpoons:KZ,rightrightarrows:GZ,rightsquigarrow:YZ,RightTeeArrow:JZ,RightTee:XZ,RightTeeVector:QZ,rightthreetimes:eK,RightTriangleBar:tK,RightTriangle:nK,RightTriangleEqual:oK,RightUpDownVector:rK,RightUpTeeVector:iK,RightUpVectorBar:sK,RightUpVector:aK,RightVectorBar:lK,RightVector:cK,ring:uK,risingdotseq:dK,rlarr:fK,rlhar:pK,rlm:hK,rmoustache:mK,rmoust:gK,rnmid:vK,roang:yK,roarr:_K,robrk:CK,ropar:bK,ropf:kK,Ropf:wK,roplus:EK,rotimes:xK,RoundImplies:SK,rpar:TK,rpargt:AK,rppolint:NK,rrarr:DK,Rrightarrow:MK,rsaquo:BK,rscr:$K,Rscr:OK,rsh:LK,Rsh:IK,rsqb:PK,rsquo:FK,rsquor:VK,rthree:RK,rtimes:zK,rtri:UK,rtrie:qK,rtrif:HK,rtriltri:jK,RuleDelayed:WK,ruluhar:ZK,rx:KK,Sacute:GK,sacute:YK,sbquo:JK,scap:XK,Scaron:QK,scaron:eG,Sc:tG,sc:nG,sccue:oG,sce:rG,scE:iG,Scedil:sG,scedil:aG,Scirc:lG,scirc:cG,scnap:uG,scnE:dG,scnsim:fG,scpolint:pG,scsim:hG,Scy:mG,scy:gG,sdotb:vG,sdot:yG,sdote:_G,searhk:CG,searr:bG,seArr:kG,searrow:wG,sect:EG,semi:xG,seswar:SG,setminus:TG,setmn:AG,sext:NG,Sfr:DG,sfr:MG,sfrown:BG,sharp:$G,SHCHcy:OG,shchcy:LG,SHcy:IG,shcy:PG,ShortDownArrow:FG,ShortLeftArrow:VG,shortmid:RG,shortparallel:zG,ShortRightArrow:UG,ShortUpArrow:qG,shy:HG,Sigma:jG,sigma:WG,sigmaf:ZG,sigmav:KG,sim:GG,simdot:YG,sime:JG,simeq:XG,simg:QG,simgE:eY,siml:tY,simlE:nY,simne:oY,simplus:rY,simrarr:iY,slarr:sY,SmallCircle:aY,smallsetminus:lY,smashp:cY,smeparsl:uY,smid:dY,smile:fY,smt:pY,smte:hY,smtes:mY,SOFTcy:gY,softcy:vY,solbar:yY,solb:_Y,sol:CY,Sopf:bY,sopf:kY,spades:wY,spadesuit:EY,spar:xY,sqcap:SY,sqcaps:TY,sqcup:AY,sqcups:NY,Sqrt:DY,sqsub:MY,sqsube:BY,sqsubset:$Y,sqsubseteq:OY,sqsup:LY,sqsupe:IY,sqsupset:PY,sqsupseteq:FY,square:VY,Square:RY,SquareIntersection:zY,SquareSubset:UY,SquareSubsetEqual:qY,SquareSuperset:HY,SquareSupersetEqual:jY,SquareUnion:WY,squarf:ZY,squ:KY,squf:GY,srarr:YY,Sscr:JY,sscr:XY,ssetmn:QY,ssmile:eJ,sstarf:tJ,Star:nJ,star:oJ,starf:rJ,straightepsilon:iJ,straightphi:sJ,strns:aJ,sub:lJ,Sub:cJ,subdot:uJ,subE:dJ,sube:fJ,subedot:pJ,submult:hJ,subnE:mJ,subne:gJ,subplus:vJ,subrarr:yJ,subset:_J,Subset:CJ,subseteq:bJ,subseteqq:kJ,SubsetEqual:wJ,subsetneq:EJ,subsetneqq:xJ,subsim:SJ,subsub:TJ,subsup:AJ,succapprox:NJ,succ:DJ,succcurlyeq:MJ,Succeeds:BJ,SucceedsEqual:$J,SucceedsSlantEqual:OJ,SucceedsTilde:LJ,succeq:IJ,succnapprox:PJ,succneqq:FJ,succnsim:VJ,succsim:RJ,SuchThat:zJ,sum:UJ,Sum:qJ,sung:HJ,sup1:jJ,sup2:WJ,sup3:ZJ,sup:KJ,Sup:GJ,supdot:YJ,supdsub:JJ,supE:XJ,supe:QJ,supedot:eX,Superset:tX,SupersetEqual:nX,suphsol:oX,suphsub:rX,suplarr:iX,supmult:sX,supnE:aX,supne:lX,supplus:cX,supset:uX,Supset:dX,supseteq:fX,supseteqq:pX,supsetneq:hX,supsetneqq:mX,supsim:gX,supsub:vX,supsup:yX,swarhk:_X,swarr:CX,swArr:bX,swarrow:kX,swnwar:wX,szlig:EX,Tab:xX,target:SX,Tau:TX,tau:AX,tbrk:NX,Tcaron:DX,tcaron:MX,Tcedil:BX,tcedil:$X,Tcy:OX,tcy:LX,tdot:IX,telrec:PX,Tfr:FX,tfr:VX,there4:RX,therefore:zX,Therefore:UX,Theta:qX,theta:HX,thetasym:jX,thetav:WX,thickapprox:ZX,thicksim:KX,ThickSpace:GX,ThinSpace:YX,thinsp:JX,thkap:XX,thksim:QX,THORN:eQ,thorn:tQ,tilde:nQ,Tilde:oQ,TildeEqual:rQ,TildeFullEqual:iQ,TildeTilde:sQ,timesbar:aQ,timesb:lQ,times:cQ,timesd:uQ,tint:dQ,toea:fQ,topbot:pQ,topcir:hQ,top:mQ,Topf:gQ,topf:vQ,topfork:yQ,tosa:_Q,tprime:CQ,trade:bQ,TRADE:kQ,triangle:wQ,triangledown:EQ,triangleleft:xQ,trianglelefteq:SQ,triangleq:TQ,triangleright:AQ,trianglerighteq:NQ,tridot:DQ,trie:MQ,triminus:BQ,TripleDot:$Q,triplus:OQ,trisb:LQ,tritime:IQ,trpezium:PQ,Tscr:FQ,tscr:VQ,TScy:RQ,tscy:zQ,TSHcy:UQ,tshcy:qQ,Tstrok:HQ,tstrok:jQ,twixt:WQ,twoheadleftarrow:ZQ,twoheadrightarrow:KQ,Uacute:GQ,uacute:YQ,uarr:JQ,Uarr:XQ,uArr:QQ,Uarrocir:eee,Ubrcy:tee,ubrcy:nee,Ubreve:oee,ubreve:ree,Ucirc:iee,ucirc:see,Ucy:aee,ucy:lee,udarr:cee,Udblac:uee,udblac:dee,udhar:fee,ufisht:pee,Ufr:hee,ufr:mee,Ugrave:gee,ugrave:vee,uHar:yee,uharl:_ee,uharr:Cee,uhblk:bee,ulcorn:kee,ulcorner:wee,ulcrop:Eee,ultri:xee,Umacr:See,umacr:Tee,uml:Aee,UnderBar:Nee,UnderBrace:Dee,UnderBracket:Mee,UnderParenthesis:Bee,Union:$ee,UnionPlus:Oee,Uogon:Lee,uogon:Iee,Uopf:Pee,uopf:Fee,UpArrowBar:Vee,uparrow:Ree,UpArrow:zee,Uparrow:Uee,UpArrowDownArrow:qee,updownarrow:Hee,UpDownArrow:jee,Updownarrow:Wee,UpEquilibrium:Zee,upharpoonleft:Kee,upharpoonright:Gee,uplus:Yee,UpperLeftArrow:Jee,UpperRightArrow:Xee,upsi:Qee,Upsi:ete,upsih:tte,Upsilon:nte,upsilon:ote,UpTeeArrow:rte,UpTee:ite,upuparrows:ste,urcorn:ate,urcorner:lte,urcrop:cte,Uring:ute,uring:dte,urtri:fte,Uscr:pte,uscr:hte,utdot:mte,Utilde:gte,utilde:vte,utri:yte,utrif:_te,uuarr:Cte,Uuml:bte,uuml:kte,uwangle:wte,vangrt:Ete,varepsilon:xte,varkappa:Ste,varnothing:Tte,varphi:Ate,varpi:Nte,varpropto:Dte,varr:Mte,vArr:Bte,varrho:$te,varsigma:Ote,varsubsetneq:Lte,varsubsetneqq:Ite,varsupsetneq:Pte,varsupsetneqq:Fte,vartheta:Vte,vartriangleleft:Rte,vartriangleright:zte,vBar:Ute,Vbar:qte,vBarv:Hte,Vcy:jte,vcy:Wte,vdash:Zte,vDash:Kte,Vdash:Gte,VDash:Yte,Vdashl:Jte,veebar:Xte,vee:Qte,Vee:ene,veeeq:tne,vellip:nne,verbar:one,Verbar:rne,vert:ine,Vert:sne,VerticalBar:ane,VerticalLine:lne,VerticalSeparator:cne,VerticalTilde:une,VeryThinSpace:dne,Vfr:fne,vfr:pne,vltri:hne,vnsub:mne,vnsup:gne,Vopf:vne,vopf:yne,vprop:_ne,vrtri:Cne,Vscr:bne,vscr:kne,vsubnE:wne,vsubne:Ene,vsupnE:xne,vsupne:Sne,Vvdash:Tne,vzigzag:Ane,Wcirc:Nne,wcirc:Dne,wedbar:Mne,wedge:Bne,Wedge:$ne,wedgeq:One,weierp:Lne,Wfr:Ine,wfr:Pne,Wopf:Fne,wopf:Vne,wp:Rne,wr:zne,wreath:Une,Wscr:qne,wscr:Hne,xcap:jne,xcirc:Wne,xcup:Zne,xdtri:Kne,Xfr:Gne,xfr:Yne,xharr:Jne,xhArr:Xne,Xi:Qne,xi:eoe,xlarr:toe,xlArr:noe,xmap:ooe,xnis:roe,xodot:ioe,Xopf:soe,xopf:aoe,xoplus:loe,xotime:coe,xrarr:uoe,xrArr:doe,Xscr:foe,xscr:poe,xsqcup:hoe,xuplus:moe,xutri:goe,xvee:voe,xwedge:yoe,Yacute:_oe,yacute:Coe,YAcy:boe,yacy:koe,Ycirc:woe,ycirc:Eoe,Ycy:xoe,ycy:Soe,yen:Toe,Yfr:Aoe,yfr:Noe,YIcy:Doe,yicy:Moe,Yopf:Boe,yopf:$oe,Yscr:Ooe,yscr:Loe,YUcy:Ioe,yucy:Poe,yuml:Foe,Yuml:Voe,Zacute:Roe,zacute:zoe,Zcaron:Uoe,zcaron:qoe,Zcy:Hoe,zcy:joe,Zdot:Woe,zdot:Zoe,zeetrf:Koe,ZeroWidthSpace:Goe,Zeta:Yoe,zeta:Joe,zfr:Xoe,Zfr:Qoe,ZHcy:ere,zhcy:tre,zigrarr:nre,zopf:ore,Zopf:rre,Zscr:ire,zscr:sre,zwj:are,zwnj:lre};var Yp=cre,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 ure(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=ure(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 dre=Pa,Pd={};function fre(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=fre(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 pre=Fa,hre=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 mre=/^([a-z0-9.+-]+:)/i,gre=/:[0-9]*$/,vre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yre=["<",">",'"',"`"," ","\r",`
3
- `," "],_re=["{","}","|","\\","^","`"].concat(yre),Cre=["'"].concat(_re),Fd=["%","/","?",";","#"].concat(Cre),Vd=["/","?","#"],bre=255,Rd=/^[+a-z0-9A-Z_-]{0,63}$/,kre=/^([+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 wre(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=vre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=mre.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<Vd.length;n++)s=l.indexOf(Vd[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(Rd)){for(var _="",y=0,v=C.length;y<v;y++)C.charCodeAt(y)>127?_+="x":_+=C[y];if(!_.match(Rd)){var w=g.slice(0,n),k=g.slice(n+1),b=C.match(kre);b&&(w.push(b[1]),k.unshift(b[2])),k.length&&(l=k.join(".")+l),this.hostname=w.join(".");break}}}}this.hostname.length>bre&&(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=gre.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 Ere=wre;zr.encode=dre;zr.decode=pre;zr.format=hre;zr.parse=Ere;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 xre(){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 Sre(){return Zd||(Zd=1,xo.Any=Jp(),xo.Cc=Xp(),xo.Cf=xre(),xo.P=au,xo.Z=Qp()),xo}(function(t){function e(O){return Object.prototype.toString.call(O)}function n(O){return e(O)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(O,P){return o.call(O,P)}function s(O){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(F){if(F){if(typeof F!="object")throw new TypeError(F+"must be object");Object.keys(F).forEach(function(Z){O[Z]=F[Z]})}}),O}function a(O,P,F){return[].concat(O.slice(0,P),F,O.slice(P+1))}function l(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function c(O){if(O>65535){O-=65536;var P=55296+(O>>10),F=56320+(O&1023);return String.fromCharCode(P,F)}return String.fromCharCode(O)}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(O,P){var F;return r(h,P)?h[P]:P.charCodeAt(0)===35&&p.test(P)&&(F=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),l(F))?c(F):O}function g(O){return O.indexOf("\\")<0?O:O.replace(u,"$1")}function C(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(f,function(P,F,Z){return F||m(P,Z)})}var _=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function w(O){return v[O]}function k(O){return _.test(O)?O.replace(y,w):O}var b=/[.?*+^$[\]\\(){}|-]/g;function x(O){return O.replace(b,"\\$&")}function S(O){switch(O){case 9:case 32:return!0}return!1}function T(O){if(O>=8192&&O<=8202)return!0;switch(O){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 N(O){return A.test(O)}function D(O){switch(O){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 $(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=Sre(),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=D,t.isPunctChar=N,t.escapeRE=x,t.normalizeReference=$})(Ee);var Va={},Tre=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=Ee.unescapeAll,Are=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},Nre=Ee.unescapeAll,Dre=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=Nre(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};Va.parseLinkLabel=Tre;Va.parseLinkDestination=Are;Va.parseLinkTitle=Dre;var Mre=Ee.assign,Bre=Ee.unescapeAll,jo=Ee.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
+ `," "],_re=["{","}","|","\\","^","`"].concat(yre),Cre=["'"].concat(_re),Fd=["%","/","?",";","#"].concat(Cre),Vd=["/","?","#"],bre=255,Rd=/^[+a-z0-9A-Z_-]{0,63}$/,kre=/^([+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 wre(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=vre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=mre.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<Vd.length;n++)s=l.indexOf(Vd[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(Rd)){for(var _="",y=0,v=C.length;y<v;y++)C.charCodeAt(y)>127?_+="x":_+=C[y];if(!_.match(Rd)){var w=g.slice(0,n),k=g.slice(n+1),b=C.match(kre);b&&(w.push(b[1]),k.unshift(b[2])),k.length&&(l=k.join(".")+l),this.hostname=w.join(".");break}}}}this.hostname.length>bre&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var S=l.indexOf("#");S!==-1&&(this.hash=l.substr(S),l=l.slice(0,S));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),Ud[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ea.prototype.parseHost=function(t){var e=gre.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 Ere=wre;zr.encode=dre;zr.decode=pre;zr.format=hre;zr.parse=Ere;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 xre(){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 Sre(){return Zd||(Zd=1,xo.Any=Jp(),xo.Cc=Xp(),xo.Cf=xre(),xo.P=au,xo.Z=Qp()),xo}(function(t){function e(O){return Object.prototype.toString.call(O)}function n(O){return e(O)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(O,P){return o.call(O,P)}function s(O){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(F){if(F){if(typeof F!="object")throw new TypeError(F+"must be object");Object.keys(F).forEach(function(K){O[K]=F[K]})}}),O}function a(O,P,F){return[].concat(O.slice(0,P),F,O.slice(P+1))}function l(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function c(O){if(O>65535){O-=65536;var P=55296+(O>>10),F=56320+(O&1023);return String.fromCharCode(P,F)}return String.fromCharCode(O)}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(O,P){var F;return r(h,P)?h[P]:P.charCodeAt(0)===35&&p.test(P)&&(F=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),l(F))?c(F):O}function g(O){return O.indexOf("\\")<0?O:O.replace(u,"$1")}function C(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(f,function(P,F,K){return F||m(P,K)})}var _=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function w(O){return v[O]}function k(O){return _.test(O)?O.replace(y,w):O}var b=/[.?*+^$[\]\\(){}|-]/g;function S(O){return O.replace(b,"\\$&")}function T(O){switch(O){case 9:case 32:return!0}return!1}function A(O){if(O>=8192&&O<=8202)return!0;switch(O){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 x=au;function M(O){return x.test(O)}function B(O){switch(O){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 $(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=Sre(),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=T,t.isWhiteSpace=A,t.isMdAsciiPunct=B,t.isPunctChar=M,t.escapeRE=S,t.normalizeReference=$})(Ee);var Va={},Tre=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=Ee.unescapeAll,Are=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},Nre=Ee.unescapeAll,Dre=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=Nre(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};Va.parseLinkLabel=Tre;Va.parseLinkDestination=Are;Va.parseLinkTitle=Dre;var Mre=Ee.assign,Bre=Ee.unescapeAll,jo=Ee.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?Bre(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,19 +14,19 @@
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 $re=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,Ore=/\r\n?|\n/g,Lre=/\0/g,Ire=function(e){var n;n=e.src.replace(Ore,`
16
16
  `),n=n.replace(Lre,"�"),e.src=n},Pre=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)},Fre=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)},Vre=Ee.arrayReplaceAt;function Rre(t){return/^<a[>\s]/i.test(t)}function zre(t){return/^<\/a\s*>/i.test(t)}var Ure=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"&&(Rre(l.content)&&m>0&&m--,zre(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=Vre(s,n,c)}}}},eh=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,qre=/\((c|tm|r)\)/i,Hre=/\((c|tm|r)\)/ig,jre={c:"©",r:"®",tm:"™"};function Wre(t,e){return jre[e.toLowerCase()]}function Zre(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(Hre,Wre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Kre(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 Gre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(qre.test(e.tokens[n].content)&&Zre(e.tokens[n].children),eh.test(e.tokens[n].content)&&Kre(e.tokens[n].children))},Gd=Ee.isWhiteSpace,Yd=Ee.isPunctChar,Jd=Ee.isMdAsciiPunct,Yre=/['"]/,Xd=/['"]/g,Qd="’";function Ts(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Jre(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 Xre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Yre.test(e.tokens[n].content)||Jre(e.tokens[n].children,e)},Qre=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,eie=cu;function th(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}th.prototype.Token=eie;var tie=th,nie=lu,xl=[["normalize",Ire],["block",Pre],["inline",Fre],["linkify",Ure],["replacements",Gre],["smartquotes",Xre],["text_join",Qre]];function uu(){this.ruler=new nie;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=tie;var oie=uu,Sl=Ee.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 rie=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},iie=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},sie=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},aie=Ee.isSpace,lie=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,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],N=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],N=e.eMarks[p],!(A>=N));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<N&&(a=e.src.charCodeAt(A),aie(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;A++}d=A>=N,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,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=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},cie=Ee.isSpace,uie=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&&!cie(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=Ee.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 die(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 fie=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,T,A,N,D,$,O,P,F=n,Z=!1,V=!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&&(Z=!0),(A=n1(e,F))>=0){if(f=!0,D=e.bMarks[F]+e.tShift[F],_=Number(e.src.slice(D,A-1)),Z&&_!==1)return!1}else if((A=t1(e,F))>=0)f=!1;else return!1;if(Z&&e.skipSpaces(A)>=e.eMarks[F])return!1;if(r)return!0;for(C=e.src.charCodeAt(A-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=[F,0],P.markup=String.fromCharCode(C),N=!1,O=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,P=e.push("list_item_open","li",1),P.markup=String.fromCharCode(C),P.map=p=[F,0],f&&(P.info=e.src.slice(D,A-1)),S=e.tight,x=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||N)&&(V=!1),N=e.line-F>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[F]=x,e.sCount[F]=b,e.tight=S,P=e.push("list_item_close","li",-1),P.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($=!1,l=0,h=O.length;l<h;l++)if(O[l](e,F,o,!0)){$=!0;break}if($)break;if(f){if(A=n1(e,F),A<0)break;D=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?P=e.push("ordered_list_close","ol",-1):P=e.push("bullet_list_close","ul",-1),P.markup=String.fromCharCode(C),m[1]=F,e.line=F,e.parentType=k,V&&die(e,g),!0},pie=Ee.normalizeReference,As=Ee.isSpace,hie=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=pie(_.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)},mie=["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"],Ra={},gie="[a-zA-Z_:][a-zA-Z0-9:._-]*",vie="[^\"'=<>`\\x00-\\x20]+",yie="'[^']*'",_ie='"[^"]*"',Cie="(?:"+vie+"|"+yie+"|"+_ie+")",bie="(?:\\s+"+gie+"(?:\\s*=\\s*"+Cie+")?)",oh="<[A-Za-z][A-Za-z0-9\\-]*"+bie+"*\\s*\\/?>",rh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",wie="<[?][\\s\\S]*?[?]>",Eie="<![A-Z]+\\s+[^>]*>",xie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sie=new RegExp("^(?:"+oh+"|"+rh+"|"+kie+"|"+wie+"|"+Eie+"|"+xie+")"),Tie=new RegExp("^(?:"+oh+"|"+rh+")");Ra.HTML_TAG_RE=Sie;Ra.HTML_OPEN_CLOSE_TAG_RE=Tie;var Aie=mie,Nie=Ra.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("^</?("+Aie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nie.source+"\\s*$"),/^$/,!1]],Die=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=Ee.isSpace,Mie=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)},Bie=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},$ie=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=Ee.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 Oie=En,Lie=lu,Ns=[["table",rie,["paragraph","reference"]],["code",iie],["fence",sie,["paragraph","reference","blockquote","list"]],["blockquote",lie,["paragraph","reference","blockquote","list"]],["hr",uie,["paragraph","reference","blockquote","list"]],["list",fie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Die,["paragraph","reference","blockquote"]],["heading",Mie,["paragraph","reference","blockquote"]],["lheading",Bie],["paragraph",$ie]];function Ua(){this.ruler=new Lie;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=Oie;var Iie=Ua;function Pie(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 Fie=function(e,n){for(var o=e.pos;o<e.posMax&&!Pie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Vie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Rie=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(Vie),!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)},zie=Ee.isSpace,Uie=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&&zie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},qie=Ee.isSpace,du=[];for(var r1=0;r1<256;r1++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){du[t.charCodeAt(0)]=1});var Hie=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),!!qie(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},jie=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 Wie=Ee.normalizeReference,Al=Ee.isSpace,Zie=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[Wie(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},Kie=Ee.normalizeReference,Nl=Ee.isSpace,Gie=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[Kie(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},Yie=/^([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])?)*)$/,Jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Xie=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),Jie.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):Yie.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},Qie=Ra.HTML_TAG_RE;function ese(t){return/^<a[>\s]/i.test(t)}function tse(t){return/^<\/a\s*>/i.test(t)}function nse(t){var e=t|32;return e>=97&&e<=122}var ose=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&&!nse(o))||(r=e.src.slice(l).match(Qie),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],ese(a.content)&&e.linkLevel++,tse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},a1=Yp,rse=Ee.has,ise=Ee.isValidEntityCode,l1=Ee.fromCodePoint,sse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ase=/^&([a-z][a-z0-9]{1,31});/i,lse=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(sse),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=ise(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(ase),s&&rse(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 cse=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)},use=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=Ee.isWhiteSpace,d1=Ee.isPunctChar,f1=Ee.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 dse=ts,p1=lu,Dl=[["text",Fie],["linkify",Rie],["newline",Uie],["escape",Hie],["backticks",jie],["strikethrough",qa.tokenize],["emphasis",Ha.tokenize],["link",Zie],["image",Gie],["autolink",Xie],["html_inline",ose],["entity",lse]],Ml=[["balance_pairs",cse],["strikethrough",qa.postProcess],["emphasis",Ha.postProcess],["fragments_join",use]];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=dse;var fse=ns,Bl,h1;function pse(){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 hse(t){return ja(t)==="[object String]"}function mse(t){return ja(t)==="[object Object]"}function gse(t){return ja(t)==="[object RegExp]"}function m1(t){return ja(t)==="[object Function]"}function vse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var sh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function yse(t){return Object.keys(t||{}).reduce(function(e,n){return e||sh.hasOwnProperty(n)},!1)}var _se={"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}}},Cse="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]",bse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function kse(t){t.__index__=-1,t.__text_cache__=""}function wse(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=pse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Cse),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,mse(c)){gse(c.validate)?u.validate=wse(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(hse(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(vse).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"),kse(t)}function Ese(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 Ese(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||yse(t)&&(e=t,t={}),this.__opts__=uc({},sh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=uc({},_se,t),this.__compiled__={},this.__tlds__=bse,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 xse=Ot;const kr=2147483647,mn=36,pu=1,Vi=26,Sse=38,Tse=700,ah=72,lh=128,ch="-",Ase=/^xn--/,Nse=/[^\0-\x7F]/,Dse=/[\x2E\u3002\uFF0E\uFF61]/g,Mse={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(Mse[t])}function Bse(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(Dse,".");const r=t.split("."),s=Bse(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),$se=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/Tse):t>>1,t+=gn(t/e);t>$l*Vi>>1;o+=mn)t=gn(t/$l);return gn(o+($l+1)*t/(t+Sse))},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=$se(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+Vi?Vi: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+Vi?Vi: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 Ase.test(e)?mu(e.slice(4).toLowerCase()):e})},hh=function(t){return uh(t,function(e){return Nse.test(e)?"xn--"+gu(e):e})},Ose={version:"2.1.0",ucs2:{decode:hu,encode:dh},decode:mu,encode:gu,toASCII:hh,toUnicode:ph},Lse=Object.freeze(Object.defineProperty({__proto__:null,decode:mu,default:Ose,encode:gu,toASCII:hh,toUnicode:ph,ucs2decode:hu,ucs2encode:dh},Symbol.toStringTag,{value:"Module"})),Ise=n_(Lse);var Pse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Fse={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"]}}},Vse={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=Ee,Rse=Va,zse=$re,Use=oie,qse=Iie,Hse=fse,jse=xse,Oo=zr,mh=Ise,Wse={default:Pse,zero:Fse,commonmark:Vse},Zse=/^(vbscript|javascript|file|data):/,Kse=/^data:image\/(gif|png|jpeg|webp);/;function Gse(t){var e=t.trim().toLowerCase();return Zse.test(e)?!!Kse.test(e):!0}var gh=["http:","https:","mailto:"];function Yse(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 Jse(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 Hse,this.block=new qse,this.core=new Use,this.renderer=new zse,this.linkify=new jse,this.validateLink=Gse,this.normalizeLink=Yse,this.normalizeLinkText=Jse,this.utils=xi,this.helpers=xi.assign({},Rse),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=Wse[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 Xse=jt,Qse=Xse;const eae=t_(Qse);/*! @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 tae(t){if(Array.isArray(t))return t}function nae(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 oae(){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 rae(t,e){return tae(t)||nae(t,e)||iae(t,e)||oae()}function iae(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,sae=Object.isFrozen,aae=Object.getPrototypeOf,lae=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=ze(Array.prototype.forEach),cae=ze(Array.prototype.lastIndexOf),C1=ze(Array.prototype.pop),hr=ze(Array.prototype.push),uae=ze(Array.prototype.splice),no=Array.isArray,Ci=ze(String.prototype.toLowerCase),Ll=ze(String.prototype.toString),b1=ze(String.prototype.match),pi=ze(String.prototype.replace),k1=ze(String.prototype.indexOf),dae=ze(String.prototype.trim),fae=ze(Number.prototype.toString),pae=ze(Boolean.prototype.toString),w1=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),E1=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Ke=ze(Object.prototype.hasOwnProperty),hi=ze(Object.prototype.toString),Ze=ze(RegExp.prototype.test),So=hae(TypeError);function ze(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 hae(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 _e(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&&(sae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function mae(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=rae(o,2);const r=n[0],s=n[1];Ke(t,r)&&(no(s)?e[r]=mae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=rt(s):e[r]=s)}return e}function gae(t){switch(typeof t){case"string":return t;case"number":return fae(t);case"boolean":return pae(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=lae(t,e);if(o){if(o.get)return ze(o.get);if(typeof o.value=="function")return ze(o.value)}t=aae(t)}function n(){return null}return n}function vae(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"]),yae=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"]),_ae=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"]),Vl=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"]),Cae=tt(/{{[\w\W]*|^[\w\W]*}}/g),bae=tt(/<%[\w\W]*|^[\w\W]*%>/g),kae=tt(/\${[\w\W]*/g),wae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eae=tt(/^aria-[\-\w]+$/),N1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xae=tt(/^(?:\w+script|data):/i),Sae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tae=tt(/^html$/i),Aae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),D1=tt(/<[/\w!]/g),M1=tt(/<[/\w]/g),Nae=tt(/<\/no(script|embed|frames)/i),Dae=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},Mae=function(){return typeof window>"u"?null:window},Bae=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])?_e(r.base?rt(r.base):{},e[n],r.transform):o};function _h(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mae();const e=J=>_h(J);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 J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let x,S="",T,A=!1,N=0;const D=function(){if(N>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.')},$=function(E){D(),N++;try{return x.createHTML(E)}finally{N--}},O=function(E){D(),N++;try{return x.createScriptURL(E)}finally{N--}},P=function(){return A||(T=Bae(f,r),A=!0),T},F=n,Z=F.implementation,V=F.createNodeIterator,M=F.createDocumentFragment,G=F.getElementsByTagName,z=o.importNode;let H=B1();e.isSupported=typeof vh=="function"&&typeof _=="function"&&Z&&Z.createHTMLDocument!==void 0;const ue=Cae,Q=bae,ie=kae,U=wae,ne=Eae,ge=xae,I=Sae,ee=Aae;let ve=N1,he=null;const Ve=_e({},[...x1,...Il,...Pl,...Fl,...S1]);let le=null;const ft=_e({},[...T1,...Vl,...A1,...Ds]);let xe=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=_e({},["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=_e({},["audio","video","img","source","image","track"]);let xt=null;const lr=_e({},["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=_e({},[Gn,cr,St],Ll),ms=Qe(["mi","mo","mn","ms","mtext"]);let Tt=_e({},ms);const gs=Qe(["annotation-xml"]);let Qr=_e({},gs);const pl=_e({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Ae=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,Ae=Eo==="application/xhtml+xml"?Ll:Ci,he=Qn(E,"ALLOWED_TAGS",Ve,{transform:Ae}),le=Qn(E,"ALLOWED_ATTR",ft,{transform:Ae}),Xr=Qn(E,"ALLOWED_NAMESPACES",fl,{transform:Ll}),xt=Qn(E,"ADD_URI_SAFE_ATTR",lr,{transform:Ae,base:lr}),hs=Qn(E,"ADD_DATA_URI_TAGS",Jr,{transform:Ae,base:Jr}),Et=Qn(E,"FORBID_CONTENTS",ar,{transform:Ae}),pt=Qn(E,"FORBID_TAGS",rt({}),{transform:Ae}),bt=Qn(E,"FORBID_ATTR",rt({}),{transform:Ae}),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,ve=vae(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):_e({},ms),Qr=Ke(E,"HTML_INTEGRATION_POINTS")&&E.HTML_INTEGRATION_POINTS&&typeof E.HTML_INTEGRATION_POINTS=="object"?rt(E.HTML_INTEGRATION_POINTS):_e({},gs);const L=Ke(E,"CUSTOM_ELEMENT_HANDLING")&&E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING=="object"?rt(E.CUSTOM_ELEMENT_HANDLING):vr(null);if(xe=vr(null),Ke(L,"tagNameCheck")&&vs(L.tagNameCheck)&&(xe.tagNameCheck=L.tagNameCheck),Ke(L,"attributeNameCheck")&&vs(L.attributeNameCheck)&&(xe.attributeNameCheck=L.attributeNameCheck),Ke(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),tt(xe),Fe&&(kt=!1),ir&&(Kn=!0),wt&&(he=_e({},S1),le=vr(null),wt.html===!0&&(_e(he,x1),_e(le,T1)),wt.svg===!0&&(_e(he,Il),_e(le,Vl),_e(le,Ds)),wt.svgFilters===!0&&(_e(he,Pl),_e(le,Vl),_e(le,Ds)),wt.mathMl===!0&&(_e(he,Fl),_e(le,A1),_e(le,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)&&(he===Ve&&(he=rt(he)),_e(he,E.ADD_TAGS,Ae))),Ke(E,"ADD_ATTR")&&(typeof E.ADD_ATTR=="function"?Pe.attributeCheck=E.ADD_ATTR:no(E.ADD_ATTR)&&(le===ft&&(le=rt(le)),_e(le,E.ADD_ATTR,Ae))),Ke(E,"ADD_URI_SAFE_ATTR")&&no(E.ADD_URI_SAFE_ATTR)&&_e(xt,E.ADD_URI_SAFE_ATTR,Ae),Ke(E,"FORBID_CONTENTS")&&no(E.FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),_e(Et,E.FORBID_CONTENTS,Ae)),Ke(E,"ADD_FORBID_CONTENTS")&&no(E.ADD_FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),_e(Et,E.ADD_FORBID_CONTENTS,Ae)),Yr&&(he["#text"]=!0),ot&&_e(he,["html","head","body"]),he.table&&(_e(he,["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=$("")}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=$("")));Qe&&Qe(E),Gt=E},oi=_e({},[...Il,...Pl,...yae]),B=_e({},[...Fl,..._ae]),Y=function(E,L,j){return L.namespaceURI===St?E==="svg":L.namespaceURI===Gn?E==="svg"&&(j==="annotation-xml"||Tt[j]):!!oi[E]},ye=function(E,L,j){return L.namespaceURI===St?E==="math":L.namespaceURI===cr?E==="math"&&Qr[j]:!!B[E]},Me=function(E,L,j){return L.namespaceURI===cr&&!Qr[j]||L.namespaceURI===Gn&&!Tt[j]?!1:!B[E]&&(pl[E]||!oi[E])},Tn=function(E){let L=_(E);(!L||!L.tagName)&&(L={namespaceURI:Yn,tagName:"template"});const j=Ci(E.tagName),se=Ci(L.tagName);return Xr[E.namespaceURI]?E.namespaceURI===cr?Y(j,L,se):E.namespaceURI===Gn?ye(j,L,se):E.namespaceURI===St?Me(j,L,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 L=C(E);if(L){const se=[];pr(L,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,L){try{hr(e.removed,{attribute:L.getAttributeNode(E),from:L})}catch{hr(e.removed,{attribute:null,from:L})}if(L.removeAttribute(E),E==="is")if(Kn||ir)try{Yt(L)}catch{}else try{L.setAttribute(E,"")}catch{}},ys=function(E){const L=v(E);if(L)for(let j=L.length-1;j>=0;--j){const se=L[j],ae=se&&se.name;if(!(typeof ae!="string"||le[Ae(ae)]))try{E.removeAttribute(ae)}catch{}}},ii=function(E){const L=[E];for(;L.length>0;){const j=L.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)L.push(ae[pe])}},zg=function(E){if(!mt)return;const L=[E];for(;L.length>0;){const j=L.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,Ne=Ae(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Ne!=="label"&&Ne!=="output"&&pe.removeAttribute("for")}catch{}}const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)L.push(ae[pe])}},ld=function(E){let L=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?$(E):E;if(Yn===St)try{L=new d().parseFromString(se,Eo)}catch{}if(!L||!L.documentElement){L=Z.createDocument(Yn,"template",null);try{L.documentElement.innerHTML=wo?S:se}catch{}}const ae=L.body||L.documentElement;return E&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Yn===St?G.call(L,ot?"html":"body")[0]:ot?L.documentElement:ae},cd=function(E){const L=b?b(E):E.ownerDocument;return V.call(L||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,ue," "),E=pi(E,Q," "),E=pi(E,ie," "),E},hl=function(E){var L;E.normalize();const j=b?b(E):E.ownerDocument,se=V.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=(L=E.querySelectorAll)===null||L===void 0?void 0:L.call(E,"template");pe&&pr(pe,Ne=>{ur(Ne.content)&&hl(Ne.content)})},Cs=function(E){const L=k?k(E):null;return typeof L!="string"||Ae(L)!=="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(J,E,L){J.length!==0&&pr(J,j=>{j.call(e,E,L,Gt)})}const Ug=function(E,L){return!!(mt&&E.hasChildNodes()&&!si(E.firstElementChild)&&Ze(D1,E.textContent)&&Ze(D1,E.innerHTML)||mt&&E.namespaceURI===St&&L==="style"&&si(E.firstElementChild)||E.nodeType===At.processingInstruction||mt&&E.nodeType===At.comment&&Ze(M1,E.data))},qg=function(E,L,j){if(!pt[L]&&pd(L)&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,L)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(L)))return!1;if(Yr&&!Et[L]){const se=_(E),ae=C(E);if(ae&&se){const pe=ae.length;for(let Ne=pe-1;Ne>=0;--Ne){const Be=E===j?h(ae[Ne],!0):ae[Ne];se.insertBefore(Be,g(E))}}}return Yt(E),!0},ud=function(E,L,j,se){return E.length===0?L:L===j||L===se?rt(L):L},dd=function(E,L){if(un(H.beforeSanitizeElements,E,null),E!==L&&_(E)===null)return Kt&&ii(E),!0;if(Cs(E))return Yt(E),!0;const j=Ae(k?k(E):E.nodeName);if(he=ud(H.uponSanitizeElement,he,Ve,xn),un(H.uponSanitizeElement,E,{tagName:j,allowedTags:he}),E!==L&&_(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))&&!he[j]){const ae=qg(E,j,L);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(Nae,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,L,j){if(bt[L]||mt&&L==="patchsrc"||mt&&L==="for"&&E!=="label"&&E!=="output"||Sn&&(L==="id"||L==="name")&&(j in n||j in ni))return!1;const se=le[L]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(L,E);if(!(kt&&Ze(U,L))){if(!(ht&&Ze(ne,L))){if(se){if(!xt[L]){if(!Ze(ve,pi(j,I,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&E!=="script"&&k1(j,"data:")===0&&hs[E])){if(!(Wn&&!Ze(ge,pi(j,I,"")))){if(j)return!1}}}}}else if(!(pd(E)&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,E)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(E))&&(xe.attributeNameCheck instanceof RegExp&&Ze(xe.attributeNameCheck,L)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(L,E))||L==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,j)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(j))))return!1}}return!0},Hg=_e({},["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(ee,E)},jg=function(E,L,j,se){if(x&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(E,L)){case"TrustedHTML":return $(se);case"TrustedScriptURL":return O(se)}return se},Wg=function(E,L,j,se){try{j?E.setAttributeNS(j,L,se):E.setAttribute(L,se),Cs(E)?Yt(E):C1(e.removed)}catch{An(L,E)}},hd=function(E){un(H.beforeSanitizeAttributes,E,null);const L=E.attributes;if(!L||Cs(E))return;le=ud(H.uponSanitizeAttribute,le,ft,Zn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let se=L.length;const ae=Ae(E.nodeName);for(;se--;){const pe=L[se],Ne=pe.name,Be=pe.namespaceURI,gt=pe.value,vt=Ae(Ne),gl=gt;let lt=Ne==="value"?gl:dae(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(Ne,E),lt=ps+lt),mt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,lt)){An(Ne,E);continue}if(vt==="attributename"&&b1(lt,"href")){An(Ne,E);continue}if(!j.forceKeepAttr){if(!j.keepAttr){An(Ne,E);continue}if(!bo&&Ze(Dae,lt)){An(Ne,E);continue}if(Fe&&(lt=_s(lt)),!fd(ae,vt,lt)){An(Ne,E);continue}lt=jg(ae,vt,Be,lt),lt!==gl&&Wg(E,Ne,Be,lt)}}un(H.afterSanitizeAttributes,E,null)},bs=function(E){let L=null;const j=cd(E);for(un(H.beforeSanitizeShadowDOM,E,null);L=j.nextNode();)if(un(H.uponSanitizeShadowNode,L,null),dd(L,E),hd(L),ur(L.content)&&bs(L.content),(w?w(L):L.nodeType)===At.element){const ae=y(L);ur(ae)&&(ml(ae),bs(ae))}un(H.afterSanitizeShadowDOM,E,null)},ml=function(E){const L=[{node:E,shadow:null}];for(;L.length>0;){const j=L.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===At.element,Ne=C(se);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)L.push({node:Ne[Be],shadow:null});if(pe){const Be=k?k(se):null;if(typeof Be=="string"&&Ae(Be)==="template"){const gt=se.content;ur(gt)&&L.push({node:gt,shadow:null})}}if(pe){const Be=y(se);ur(Be)&&L.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return e.sanitize=function(J){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,j=null,se=null,ae=null;if(wo=!J,wo&&(J="<!-->"),typeof J!="string"&&!si(J)&&(J=gae(J),typeof J!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return J;Zt?(he=xn,le=Zn):Jn(E),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(he=rt(he)),H.uponSanitizeAttribute.length>0&&(le=rt(le)),e.removed=[];const pe=Kt&&typeof J!="string"&&si(J);if(pe){zg(J);const gt=k?k(J):J.nodeName;if(typeof gt=="string"){const vt=Ae(gt);if(!he[vt]||pt[vt])throw ri(J),So("root node is forbidden and cannot be sanitized in-place")}if(Cs(J))throw ri(J),So("root node is clobbered and cannot be sanitized in-place");try{ml(J)}catch(vt){throw ri(J),vt}}else if(si(J))L=ld("<!---->"),j=L.ownerDocument.importNode(J,!0),j.nodeType===At.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?L=j:L.appendChild(j),ml(j);else{if(!Kn&&!Fe&&!ot&&J.indexOf("<")===-1)return x&&sr?$(J):J;if(L=ld(J),!L)return Kn?null:sr?S:""}L&&ko&&Yt(L.firstChild);const Ne=pe?J:L;try{const gt=cd(Ne);for(;se=gt.nextNode();)dd(se,Ne),hd(se),ur(se.content)&&bs(se.content)}catch(gt){throw pe&&(ri(J),pr(e.removed,vt=>{vt.element&&ii(vt.element)})),gt}if(pe)return pr(e.removed,gt=>{gt.element&&ii(gt.element)}),Fe&&hl(J),J;if(Kn){if(Fe&&hl(L),ir)for(ae=M.call(L.ownerDocument);L.firstChild;)ae.appendChild(L.firstChild);else ae=L;return(le.shadowroot||le.shadowrootmode)&&(ae=z.call(o,ae,!0)),ae}let Be=ot?L.outerHTML:L.innerHTML;return ot&&he["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Ze(Tae,L.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
19
- `+Be),Fe&&(Be=_s(Be)),x&&sr?$(Be):Be},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jn(J),Zt=!0,xn=he,Zn=le},e.clearConfig=function(){Gt=null,Zt=!1,xn=null,Zn=null,x=T,S=""},e.isValidAttribute=function(J,E,L){Gt||Jn({});const j=Ae(J),se=Ae(E);return fd(j,se,L)},e.addHook=function(J,E){typeof E=="function"&&Ke(H,J)&&hr(H[J],E)},e.removeHook=function(J,E){if(Ke(H,J)){if(E!==void 0){const L=cae(H[J],E);return L===-1?void 0:uae(H[J],L,1)[0]}return C1(H[J])}},e.removeHooks=function(J){Ke(H,J)&&(H[J]=[])},e.removeAllHooks=function(){H=B1()},e}var $ae=_h();const Oae=["innerHTML"],Lae={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 eae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?$ae.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,Oae)):(i.openBlock(),i.createElementBlock("div",Lae,i.toDisplayString(t.placeholder),1))}});function K(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,Iae=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)||Iae)&&"getTargetRanges"in new window.InputEvent("input"),Ri=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Pae=an&&/Android/.test(navigator.userAgent),kh=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$1=an&&Pae&&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 Fae=0,Vae=1,Rae=2,Eh=128,zae=1,Uae=2,qae=3,Hae=4,jae=5,Wae=6,Wa=Ri||Lr||zi?" ":"​",po=`
17
+ `,a.map=[n,e.line],!0},sie=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},aie=Ee.isSpace,lie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,S,T,A=e.lineMax,x=e.bMarks[n]+e.tShift[n],M=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==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&&(T=e.sCount[p]<e.blkIndent,x=e.bMarks[p]+e.tShift[p],M=e.eMarks[p],!(x>=M));p++){if(e.src.charCodeAt(x++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(x)===32?(x++,c++,s=!1,w=!0):e.src.charCodeAt(x)===9?(w=!0,(e.bsCount[p]+c)%4===3?(x++,c++,s=!1):s=!0):w=!1,h=c,m.push(e.bMarks[p]),e.bMarks[p]=x;x<M&&(a=e.src.charCodeAt(x),aie(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;x++}d=x>=M,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]=x-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,S=e.push("blockquote_open","blockquote",1),S.markup=">",S.map=f=[n,0],e.md.block.tokenize(e,n,p),S=e.push("blockquote_close","blockquote",-1),S.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},cie=Ee.isSpace,uie=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&&!cie(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=Ee.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 die(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 fie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,C,_,y,v,w,k,b,S,T,A,x,M,B,$,O,P,F=n,K=!1,V=!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),(x=n1(e,F))>=0){if(f=!0,B=e.bMarks[F]+e.tShift[F],_=Number(e.src.slice(B,x-1)),K&&_!==1)return!1}else if((x=t1(e,F))>=0)f=!1;else return!1;if(K&&e.skipSpaces(x)>=e.eMarks[F])return!1;if(r)return!0;for(C=e.src.charCodeAt(x-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=[F,0],P.markup=String.fromCharCode(C),M=!1,O=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";F<o;){for(A=x,y=e.eMarks[F],d=v=e.sCount[F]+x-(e.bMarks[F]+e.tShift[F]);A<y;){if(s=e.src.charCodeAt(A),s===9)v+=4-(v+e.bsCount[F])%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=[F,0],f&&(P.info=e.src.slice(B,x-1)),T=e.tight,S=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||M)&&(V=!1),M=e.line-F>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[F]=S,e.sCount[F]=b,e.tight=T,P=e.push("list_item_close","li",-1),P.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($=!1,l=0,h=O.length;l<h;l++)if(O[l](e,F,o,!0)){$=!0;break}if($)break;if(f){if(x=n1(e,F),x<0)break;B=e.bMarks[F]+e.tShift[F]}else if(x=t1(e,F),x<0)break;if(C!==e.src.charCodeAt(x-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]=F,e.line=F,e.parentType=k,V&&die(e,g),!0},pie=Ee.normalizeReference,As=Ee.isSpace,hie=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],S=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<S;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===S||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";T<c&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(y=!1,d=0,f=v.length;d<f;d++)if(v[d](e,T,c,!0)){y=!0;break}if(y)break}for(_=e.getLines(n,T,e.blkIndent,!1).trim(),S=_.length,b=1;b<S;b++){if(s=_.charCodeAt(b),s===91)return!1;if(s===93){h=b;break}else s===10?k++:s===92&&(b++,b<S&&_.charCodeAt(b)===10&&k++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(b=h+2;b<S;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;if(g=e.md.helpers.parseLinkDestination(_,b,S),!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<S;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;for(g=e.md.helpers.parseLinkTitle(_,b,S),b<S&&C!==b&&g.ok?(w=g.str,b=g.pos,k+=g.lines):(w="",b=a,k=l);b<S&&(s=_.charCodeAt(b),!!As(s));)b++;if(b<S&&_.charCodeAt(b)!==10&&w)for(w="",b=a,k=l;b<S&&(s=_.charCodeAt(b),!!As(s));)b++;return b<S&&_.charCodeAt(b)!==10||(p=pie(_.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)},mie=["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"],Ra={},gie="[a-zA-Z_:][a-zA-Z0-9:._-]*",vie="[^\"'=<>`\\x00-\\x20]+",yie="'[^']*'",_ie='"[^"]*"',Cie="(?:"+vie+"|"+yie+"|"+_ie+")",bie="(?:\\s+"+gie+"(?:\\s*=\\s*"+Cie+")?)",oh="<[A-Za-z][A-Za-z0-9\\-]*"+bie+"*\\s*\\/?>",rh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",wie="<[?][\\s\\S]*?[?]>",Eie="<![A-Z]+\\s+[^>]*>",xie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sie=new RegExp("^(?:"+oh+"|"+rh+"|"+kie+"|"+wie+"|"+Eie+"|"+xie+")"),Tie=new RegExp("^(?:"+oh+"|"+rh+")");Ra.HTML_TAG_RE=Sie;Ra.HTML_OPEN_CLOSE_TAG_RE=Tie;var Aie=mie,Nie=Ra.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("^</?("+Aie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nie.source+"\\s*$"),/^$/,!1]],Die=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=Ee.isSpace,Mie=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)},Bie=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},$ie=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=Ee.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 Oie=En,Lie=lu,Ns=[["table",rie,["paragraph","reference"]],["code",iie],["fence",sie,["paragraph","reference","blockquote","list"]],["blockquote",lie,["paragraph","reference","blockquote","list"]],["hr",uie,["paragraph","reference","blockquote","list"]],["list",fie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Die,["paragraph","reference","blockquote"]],["heading",Mie,["paragraph","reference","blockquote"]],["lheading",Bie],["paragraph",$ie]];function Ua(){this.ruler=new Lie;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=Oie;var Iie=Ua;function Pie(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 Fie=function(e,n){for(var o=e.pos;o<e.posMax&&!Pie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Vie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Rie=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(Vie),!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)},zie=Ee.isSpace,Uie=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&&zie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},qie=Ee.isSpace,du=[];for(var r1=0;r1<256;r1++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){du[t.charCodeAt(0)]=1});var Hie=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),!!qie(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},jie=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 Wie=Ee.normalizeReference,Al=Ee.isSpace,Zie=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[Wie(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},Kie=Ee.normalizeReference,Nl=Ee.isSpace,Gie=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[Kie(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},Yie=/^([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])?)*)$/,Jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Xie=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),Jie.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):Yie.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},Qie=Ra.HTML_TAG_RE;function ese(t){return/^<a[>\s]/i.test(t)}function tse(t){return/^<\/a\s*>/i.test(t)}function nse(t){var e=t|32;return e>=97&&e<=122}var ose=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&&!nse(o))||(r=e.src.slice(l).match(Qie),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],ese(a.content)&&e.linkLevel++,tse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},a1=Yp,rse=Ee.has,ise=Ee.isValidEntityCode,l1=Ee.fromCodePoint,sse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ase=/^&([a-z][a-z0-9]{1,31});/i,lse=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(sse),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=ise(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(ase),s&&rse(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 cse=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)},use=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=Ee.isWhiteSpace,d1=Ee.isPunctChar,f1=Ee.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 dse=ts,p1=lu,Dl=[["text",Fie],["linkify",Rie],["newline",Uie],["escape",Hie],["backticks",jie],["strikethrough",qa.tokenize],["emphasis",Ha.tokenize],["link",Zie],["image",Gie],["autolink",Xie],["html_inline",ose],["entity",lse]],Ml=[["balance_pairs",cse],["strikethrough",qa.postProcess],["emphasis",Ha.postProcess],["fragments_join",use]];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=dse;var fse=ns,Bl,h1;function pse(){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 hse(t){return ja(t)==="[object String]"}function mse(t){return ja(t)==="[object Object]"}function gse(t){return ja(t)==="[object RegExp]"}function m1(t){return ja(t)==="[object Function]"}function vse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var sh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function yse(t){return Object.keys(t||{}).reduce(function(e,n){return e||sh.hasOwnProperty(n)},!1)}var _se={"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}}},Cse="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]",bse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function kse(t){t.__index__=-1,t.__text_cache__=""}function wse(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=pse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Cse),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,mse(c)){gse(c.validate)?u.validate=wse(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(hse(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(vse).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"),kse(t)}function Ese(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 Ese(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||yse(t)&&(e=t,t={}),this.__opts__=uc({},sh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=uc({},_se,t),this.__compiled__={},this.__tlds__=bse,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 xse=Ot;const kr=2147483647,mn=36,pu=1,Vi=26,Sse=38,Tse=700,ah=72,lh=128,ch="-",Ase=/^xn--/,Nse=/[^\0-\x7F]/,Dse=/[\x2E\u3002\uFF0E\uFF61]/g,Mse={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(Mse[t])}function Bse(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(Dse,".");const r=t.split("."),s=Bse(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),$se=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/Tse):t>>1,t+=gn(t/e);t>$l*Vi>>1;o+=mn)t=gn(t/$l);return gn(o+($l+1)*t/(t+Sse))},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=$se(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+Vi?Vi: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+Vi?Vi: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 Ase.test(e)?mu(e.slice(4).toLowerCase()):e})},hh=function(t){return uh(t,function(e){return Nse.test(e)?"xn--"+gu(e):e})},Ose={version:"2.1.0",ucs2:{decode:hu,encode:dh},decode:mu,encode:gu,toASCII:hh,toUnicode:ph},Lse=Object.freeze(Object.defineProperty({__proto__:null,decode:mu,default:Ose,encode:gu,toASCII:hh,toUnicode:ph,ucs2decode:hu,ucs2encode:dh},Symbol.toStringTag,{value:"Module"})),Ise=n_(Lse);var Pse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Fse={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"]}}},Vse={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=Ee,Rse=Va,zse=$re,Use=oie,qse=Iie,Hse=fse,jse=xse,Oo=zr,mh=Ise,Wse={default:Pse,zero:Fse,commonmark:Vse},Zse=/^(vbscript|javascript|file|data):/,Kse=/^data:image\/(gif|png|jpeg|webp);/;function Gse(t){var e=t.trim().toLowerCase();return Zse.test(e)?!!Kse.test(e):!0}var gh=["http:","https:","mailto:"];function Yse(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 Jse(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 Hse,this.block=new qse,this.core=new Use,this.renderer=new zse,this.linkify=new jse,this.validateLink=Gse,this.normalizeLink=Yse,this.normalizeLinkText=Jse,this.utils=xi,this.helpers=xi.assign({},Rse),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=Wse[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 Xse=jt,Qse=Xse;const eae=t_(Qse);/*! @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 tae(t){if(Array.isArray(t))return t}function nae(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 oae(){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 rae(t,e){return tae(t)||nae(t,e)||iae(t,e)||oae()}function iae(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,sae=Object.isFrozen,aae=Object.getPrototypeOf,lae=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=ze(Array.prototype.forEach),cae=ze(Array.prototype.lastIndexOf),C1=ze(Array.prototype.pop),hr=ze(Array.prototype.push),uae=ze(Array.prototype.splice),no=Array.isArray,Ci=ze(String.prototype.toLowerCase),Ll=ze(String.prototype.toString),b1=ze(String.prototype.match),pi=ze(String.prototype.replace),k1=ze(String.prototype.indexOf),dae=ze(String.prototype.trim),fae=ze(Number.prototype.toString),pae=ze(Boolean.prototype.toString),w1=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),E1=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Ke=ze(Object.prototype.hasOwnProperty),hi=ze(Object.prototype.toString),Ze=ze(RegExp.prototype.test),So=hae(TypeError);function ze(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 hae(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 _e(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&&(sae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function mae(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=rae(o,2);const r=n[0],s=n[1];Ke(t,r)&&(no(s)?e[r]=mae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=rt(s):e[r]=s)}return e}function gae(t){switch(typeof t){case"string":return t;case"number":return fae(t);case"boolean":return pae(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=lae(t,e);if(o){if(o.get)return ze(o.get);if(typeof o.value=="function")return ze(o.value)}t=aae(t)}function n(){return null}return n}function vae(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"]),yae=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"]),_ae=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"]),Vl=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"]),Cae=tt(/{{[\w\W]*|^[\w\W]*}}/g),bae=tt(/<%[\w\W]*|^[\w\W]*%>/g),kae=tt(/\${[\w\W]*/g),wae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eae=tt(/^aria-[\-\w]+$/),N1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xae=tt(/^(?:\w+script|data):/i),Sae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tae=tt(/^html$/i),Aae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),D1=tt(/<[/\w!]/g),M1=tt(/<[/\w]/g),Nae=tt(/<\/no(script|embed|frames)/i),Dae=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},Mae=function(){return typeof window>"u"?null:window},Bae=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])?_e(r.base?rt(r.base):{},e[n],r.transform):o};function _h(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mae();const e=J=>_h(J);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 J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let S,T="",A,x=!1,M=0;const B=function(){if(M>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.')},$=function(E){B(),M++;try{return S.createHTML(E)}finally{M--}},O=function(E){B(),M++;try{return S.createScriptURL(E)}finally{M--}},P=function(){return x||(A=Bae(f,r),x=!0),A},F=n,K=F.implementation,V=F.createNodeIterator,N=F.createDocumentFragment,G=F.getElementsByTagName,z=o.importNode;let H=B1();e.isSupported=typeof vh=="function"&&typeof _=="function"&&K&&K.createHTMLDocument!==void 0;const ue=Cae,Q=bae,ie=kae,U=wae,ne=Eae,ge=xae,I=Sae,ee=Aae;let ve=N1,he=null;const Ve=_e({},[...x1,...Il,...Pl,...Fl,...S1]);let le=null;const ft=_e({},[...T1,...Vl,...A1,...Ds]);let xe=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=_e({},["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=_e({},["audio","video","img","source","image","track"]);let xt=null;const lr=_e({},["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=_e({},[Gn,cr,St],Ll),ms=Qe(["mi","mo","mn","ms","mtext"]);let Tt=_e({},ms);const gs=Qe(["annotation-xml"]);let Qr=_e({},gs);const pl=_e({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Ae=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,Ae=Eo==="application/xhtml+xml"?Ll:Ci,he=Qn(E,"ALLOWED_TAGS",Ve,{transform:Ae}),le=Qn(E,"ALLOWED_ATTR",ft,{transform:Ae}),Xr=Qn(E,"ALLOWED_NAMESPACES",fl,{transform:Ll}),xt=Qn(E,"ADD_URI_SAFE_ATTR",lr,{transform:Ae,base:lr}),hs=Qn(E,"ADD_DATA_URI_TAGS",Jr,{transform:Ae,base:Jr}),Et=Qn(E,"FORBID_CONTENTS",ar,{transform:Ae}),pt=Qn(E,"FORBID_TAGS",rt({}),{transform:Ae}),bt=Qn(E,"FORBID_ATTR",rt({}),{transform:Ae}),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,ve=vae(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):_e({},ms),Qr=Ke(E,"HTML_INTEGRATION_POINTS")&&E.HTML_INTEGRATION_POINTS&&typeof E.HTML_INTEGRATION_POINTS=="object"?rt(E.HTML_INTEGRATION_POINTS):_e({},gs);const L=Ke(E,"CUSTOM_ELEMENT_HANDLING")&&E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING=="object"?rt(E.CUSTOM_ELEMENT_HANDLING):vr(null);if(xe=vr(null),Ke(L,"tagNameCheck")&&vs(L.tagNameCheck)&&(xe.tagNameCheck=L.tagNameCheck),Ke(L,"attributeNameCheck")&&vs(L.attributeNameCheck)&&(xe.attributeNameCheck=L.attributeNameCheck),Ke(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),tt(xe),Fe&&(kt=!1),ir&&(Kn=!0),wt&&(he=_e({},S1),le=vr(null),wt.html===!0&&(_e(he,x1),_e(le,T1)),wt.svg===!0&&(_e(he,Il),_e(le,Vl),_e(le,Ds)),wt.svgFilters===!0&&(_e(he,Pl),_e(le,Vl),_e(le,Ds)),wt.mathMl===!0&&(_e(he,Fl),_e(le,A1),_e(le,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)&&(he===Ve&&(he=rt(he)),_e(he,E.ADD_TAGS,Ae))),Ke(E,"ADD_ATTR")&&(typeof E.ADD_ATTR=="function"?Pe.attributeCheck=E.ADD_ATTR:no(E.ADD_ATTR)&&(le===ft&&(le=rt(le)),_e(le,E.ADD_ATTR,Ae))),Ke(E,"ADD_URI_SAFE_ATTR")&&no(E.ADD_URI_SAFE_ATTR)&&_e(xt,E.ADD_URI_SAFE_ATTR,Ae),Ke(E,"FORBID_CONTENTS")&&no(E.FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),_e(Et,E.FORBID_CONTENTS,Ae)),Ke(E,"ADD_FORBID_CONTENTS")&&no(E.ADD_FORBID_CONTENTS)&&(Et===ar&&(Et=rt(Et)),_e(Et,E.ADD_FORBID_CONTENTS,Ae)),Yr&&(he["#text"]=!0),ot&&_e(he,["html","head","body"]),he.table&&(_e(he,["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=S;S=E.TRUSTED_TYPES_POLICY;try{T=$("")}catch(se){throw S=j,se}}else E.TRUSTED_TYPES_POLICY===null?(S=void 0,T=""):(S===void 0&&(S=P()),S&&typeof T=="string"&&(T=$("")));Qe&&Qe(E),Gt=E},oi=_e({},[...Il,...Pl,...yae]),D=_e({},[...Fl,..._ae]),Y=function(E,L,j){return L.namespaceURI===St?E==="svg":L.namespaceURI===Gn?E==="svg"&&(j==="annotation-xml"||Tt[j]):!!oi[E]},ye=function(E,L,j){return L.namespaceURI===St?E==="math":L.namespaceURI===cr?E==="math"&&Qr[j]:!!D[E]},Me=function(E,L,j){return L.namespaceURI===cr&&!Qr[j]||L.namespaceURI===Gn&&!Tt[j]?!1:!D[E]&&(pl[E]||!oi[E])},Tn=function(E){let L=_(E);(!L||!L.tagName)&&(L={namespaceURI:Yn,tagName:"template"});const j=Ci(E.tagName),se=Ci(L.tagName);return Xr[E.namespaceURI]?E.namespaceURI===cr?Y(j,L,se):E.namespaceURI===Gn?ye(j,L,se):E.namespaceURI===St?Me(j,L,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 L=C(E);if(L){const se=[];pr(L,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,L){try{hr(e.removed,{attribute:L.getAttributeNode(E),from:L})}catch{hr(e.removed,{attribute:null,from:L})}if(L.removeAttribute(E),E==="is")if(Kn||ir)try{Yt(L)}catch{}else try{L.setAttribute(E,"")}catch{}},ys=function(E){const L=v(E);if(L)for(let j=L.length-1;j>=0;--j){const se=L[j],ae=se&&se.name;if(!(typeof ae!="string"||le[Ae(ae)]))try{E.removeAttribute(ae)}catch{}}},ii=function(E){const L=[E];for(;L.length>0;){const j=L.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)L.push(ae[pe])}},zg=function(E){if(!mt)return;const L=[E];for(;L.length>0;){const j=L.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,Ne=Ae(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Ne!=="label"&&Ne!=="output"&&pe.removeAttribute("for")}catch{}}const ae=C(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)L.push(ae[pe])}},ld=function(E){let L=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=S?$(E):E;if(Yn===St)try{L=new d().parseFromString(se,Eo)}catch{}if(!L||!L.documentElement){L=K.createDocument(Yn,"template",null);try{L.documentElement.innerHTML=wo?T:se}catch{}}const ae=L.body||L.documentElement;return E&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Yn===St?G.call(L,ot?"html":"body")[0]:ot?L.documentElement:ae},cd=function(E){const L=b?b(E):E.ownerDocument;return V.call(L||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,ue," "),E=pi(E,Q," "),E=pi(E,ie," "),E},hl=function(E){var L;E.normalize();const j=b?b(E):E.ownerDocument,se=V.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=(L=E.querySelectorAll)===null||L===void 0?void 0:L.call(E,"template");pe&&pr(pe,Ne=>{ur(Ne.content)&&hl(Ne.content)})},Cs=function(E){const L=k?k(E):null;return typeof L!="string"||Ae(L)!=="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(J,E,L){J.length!==0&&pr(J,j=>{j.call(e,E,L,Gt)})}const Ug=function(E,L){return!!(mt&&E.hasChildNodes()&&!si(E.firstElementChild)&&Ze(D1,E.textContent)&&Ze(D1,E.innerHTML)||mt&&E.namespaceURI===St&&L==="style"&&si(E.firstElementChild)||E.nodeType===At.processingInstruction||mt&&E.nodeType===At.comment&&Ze(M1,E.data))},qg=function(E,L,j){if(!pt[L]&&pd(L)&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,L)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(L)))return!1;if(Yr&&!Et[L]){const se=_(E),ae=C(E);if(ae&&se){const pe=ae.length;for(let Ne=pe-1;Ne>=0;--Ne){const Be=E===j?h(ae[Ne],!0):ae[Ne];se.insertBefore(Be,g(E))}}}return Yt(E),!0},ud=function(E,L,j,se){return E.length===0?L:L===j||L===se?rt(L):L},dd=function(E,L){if(un(H.beforeSanitizeElements,E,null),E!==L&&_(E)===null)return Kt&&ii(E),!0;if(Cs(E))return Yt(E),!0;const j=Ae(k?k(E):E.nodeName);if(he=ud(H.uponSanitizeElement,he,Ve,xn),un(H.uponSanitizeElement,E,{tagName:j,allowedTags:he}),E!==L&&_(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))&&!he[j]){const ae=qg(E,j,L);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(Nae,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,L,j){if(bt[L]||mt&&L==="patchsrc"||mt&&L==="for"&&E!=="label"&&E!=="output"||Sn&&(L==="id"||L==="name")&&(j in n||j in ni))return!1;const se=le[L]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(L,E);if(!(kt&&Ze(U,L))){if(!(ht&&Ze(ne,L))){if(se){if(!xt[L]){if(!Ze(ve,pi(j,I,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&E!=="script"&&k1(j,"data:")===0&&hs[E])){if(!(Wn&&!Ze(ge,pi(j,I,"")))){if(j)return!1}}}}}else if(!(pd(E)&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,E)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(E))&&(xe.attributeNameCheck instanceof RegExp&&Ze(xe.attributeNameCheck,L)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(L,E))||L==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&Ze(xe.tagNameCheck,j)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(j))))return!1}}return!0},Hg=_e({},["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(ee,E)},jg=function(E,L,j,se){if(S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(E,L)){case"TrustedHTML":return $(se);case"TrustedScriptURL":return O(se)}return se},Wg=function(E,L,j,se){try{j?E.setAttributeNS(j,L,se):E.setAttribute(L,se),Cs(E)?Yt(E):C1(e.removed)}catch{An(L,E)}},hd=function(E){un(H.beforeSanitizeAttributes,E,null);const L=E.attributes;if(!L||Cs(E))return;le=ud(H.uponSanitizeAttribute,le,ft,Zn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le,forceKeepAttr:void 0};let se=L.length;const ae=Ae(E.nodeName);for(;se--;){const pe=L[se],Ne=pe.name,Be=pe.namespaceURI,gt=pe.value,vt=Ae(Ne),gl=gt;let lt=Ne==="value"?gl:dae(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(Ne,E),lt=ps+lt),mt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,lt)){An(Ne,E);continue}if(vt==="attributename"&&b1(lt,"href")){An(Ne,E);continue}if(!j.forceKeepAttr){if(!j.keepAttr){An(Ne,E);continue}if(!bo&&Ze(Dae,lt)){An(Ne,E);continue}if(Fe&&(lt=_s(lt)),!fd(ae,vt,lt)){An(Ne,E);continue}lt=jg(ae,vt,Be,lt),lt!==gl&&Wg(E,Ne,Be,lt)}}un(H.afterSanitizeAttributes,E,null)},bs=function(E){let L=null;const j=cd(E);for(un(H.beforeSanitizeShadowDOM,E,null);L=j.nextNode();)if(un(H.uponSanitizeShadowNode,L,null),dd(L,E),hd(L),ur(L.content)&&bs(L.content),(w?w(L):L.nodeType)===At.element){const ae=y(L);ur(ae)&&(ml(ae),bs(ae))}un(H.afterSanitizeShadowDOM,E,null)},ml=function(E){const L=[{node:E,shadow:null}];for(;L.length>0;){const j=L.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===At.element,Ne=C(se);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)L.push({node:Ne[Be],shadow:null});if(pe){const Be=k?k(se):null;if(typeof Be=="string"&&Ae(Be)==="template"){const gt=se.content;ur(gt)&&L.push({node:gt,shadow:null})}}if(pe){const Be=y(se);ur(Be)&&L.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return e.sanitize=function(J){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,j=null,se=null,ae=null;if(wo=!J,wo&&(J="<!-->"),typeof J!="string"&&!si(J)&&(J=gae(J),typeof J!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return J;Zt?(he=xn,le=Zn):Jn(E),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(he=rt(he)),H.uponSanitizeAttribute.length>0&&(le=rt(le)),e.removed=[];const pe=Kt&&typeof J!="string"&&si(J);if(pe){zg(J);const gt=k?k(J):J.nodeName;if(typeof gt=="string"){const vt=Ae(gt);if(!he[vt]||pt[vt])throw ri(J),So("root node is forbidden and cannot be sanitized in-place")}if(Cs(J))throw ri(J),So("root node is clobbered and cannot be sanitized in-place");try{ml(J)}catch(vt){throw ri(J),vt}}else if(si(J))L=ld("<!---->"),j=L.ownerDocument.importNode(J,!0),j.nodeType===At.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?L=j:L.appendChild(j),ml(j);else{if(!Kn&&!Fe&&!ot&&J.indexOf("<")===-1)return S&&sr?$(J):J;if(L=ld(J),!L)return Kn?null:sr?T:""}L&&ko&&Yt(L.firstChild);const Ne=pe?J:L;try{const gt=cd(Ne);for(;se=gt.nextNode();)dd(se,Ne),hd(se),ur(se.content)&&bs(se.content)}catch(gt){throw pe&&(ri(J),pr(e.removed,vt=>{vt.element&&ii(vt.element)})),gt}if(pe)return pr(e.removed,gt=>{gt.element&&ii(gt.element)}),Fe&&hl(J),J;if(Kn){if(Fe&&hl(L),ir)for(ae=N.call(L.ownerDocument);L.firstChild;)ae.appendChild(L.firstChild);else ae=L;return(le.shadowroot||le.shadowrootmode)&&(ae=z.call(o,ae,!0)),ae}let Be=ot?L.outerHTML:L.innerHTML;return ot&&he["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Ze(Tae,L.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
19
+ `+Be),Fe&&(Be=_s(Be)),S&&sr?$(Be):Be},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jn(J),Zt=!0,xn=he,Zn=le},e.clearConfig=function(){Gt=null,Zt=!1,xn=null,Zn=null,S=A,T=""},e.isValidAttribute=function(J,E,L){Gt||Jn({});const j=Ae(J),se=Ae(E);return fd(j,se,L)},e.addHook=function(J,E){typeof E=="function"&&Ke(H,J)&&hr(H[J],E)},e.removeHook=function(J,E){if(Ke(H,J)){if(E!==void 0){const L=cae(H[J],E);return L===-1?void 0:uae(H[J],L,1)[0]}return C1(H[J])}},e.removeHooks=function(J){Ke(H,J)&&(H[J]=[])},e.removeAllHooks=function(){H=B1()},e}var $ae=_h();const Oae=["innerHTML"],Lae={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 eae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?$ae.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,Oae)):(i.openBlock(),i.createElementBlock("div",Lae,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,Iae=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)||Iae)&&"getTargetRanges"in new window.InputEvent("input"),Ri=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Pae=an&&/Android/.test(navigator.userAgent),kh=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$1=an&&Pae&&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 Fae=0,Vae=1,Rae=2,Eh=128,zae=1,Uae=2,qae=3,Hae=4,jae=5,Wae=6,Wa=Ri||Lr||zi?" ":"​",po=`
20
20
 
21
- `,Zae=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},Kae={directionless:1,unmergeable:2},O1={center:2,end:6,justify:4,left:1,right:3,start:5},Gae={[Uae]:"center",[Wae]:"end",[Hae]:"justify",[zae]:"left",[qae]:"right",[jae]:"start"},Yae={normal:0,segmented:2,token:1},Jae={[Fae]:"normal",[Rae]:"segmented",[Vae]:"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 Xae(t){vu=t.timeStamp}function Rl(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 Qae(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 ele(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 tle(t,e,n,o){for(let r=t;r&&!rce(r);r=us(r)){const s=tl(r,e);if(s!==void 0){const a=We(s,n);if(a)return ke(a)||!Ue(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=tle(g,t,l,a);if(!C)continue;const[_,y]=C;if(m==="characterData")o&&X(y)&&jn(g)&&ele(r,g,y)&&Qae(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),T=x.parentNode;if(T!=null&&x!==c&&S===null&&!Rl(x,T,t)){if(Wo){const A=(Ue(x)?x.innerText:null)||x.nodeValue;A&&(d+=A)}T.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];(Rl(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"||Rl(_,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",Xae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Sh(t,e,n)})}let nle=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||sle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function ole(t,e){return new nle(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 rle(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 ile=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 ile(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 sle(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 V1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function R1(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&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(R1(e,o)){o=z1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(R1(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),X(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,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),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 ale="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")||ale;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&&K(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),X(n)?o.setAttribute("data-lexical-text","true"):ke(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(ke(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&&X(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":ke(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 lle(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);X(h)&&(fn===null&&(fn=h.getFormat()),pn===""&&(pn=h.getStyle()))}else{const f=aa(r,Ko),p=aa(s,en);if(f.length!==c&&K(227),p.length!==u&&K(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,T=0;for(;S<=v&&T<=w;){const D=m[S],$=g[T];if(D===$)x=Ul(bi($,y.element)),S++,T++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const P=b.has(D),F=k.has($);if(P)if(F){const Z=Yo(st,$);Z===x?x=Ul(bi($,y.element)):(y.withBefore(x).insertChild(Z),bi($,y.element)),S++,T++}else sa($,y.withBefore(x)),T++;else x=Ul(bc(D)),ia(D,y.element),S++}const O=en.get($);O!==null&&X(O)&&(fn===null&&(fn=O.getFormat()),pn===""&&(pn=O.getStyle()))}const A=S>v,N=T>w;if(A&&!N){const D=g[w+1],$=D===void 0?null:st.getElementByKey(D);Cc(g,h,T,w,y.withBefore($))}else N&&!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&&K(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||K(61);const r=yr||gc.has(t)||mc.has(t),s=Yo(st,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&&K(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&&(lle(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(st,c.getKey()),c)}else{const a=o.getTextContent();if(ke(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 cle(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&&K(75,t),e}function ce(t){return{type:t}}const Ph=ce("SELECTION_CHANGE_COMMAND"),ule=ce("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fh=ce("CLICK_COMMAND"),Vo=ce("DELETE_CHARACTER_COMMAND"),wr=ce("INSERT_LINE_BREAK_COMMAND"),Hi=ce("INSERT_PARAGRAPH_COMMAND"),Er=ce("CONTROLLED_TEXT_INSERTION_COMMAND"),yu=ce("PASTE_COMMAND"),kc=ce("REMOVE_TEXT_COMMAND"),ji=ce("DELETE_WORD_COMMAND"),Wi=ce("DELETE_LINE_COMMAND"),Rt=ce("FORMAT_TEXT_COMMAND"),_u=ce("UNDO_COMMAND"),Cu=ce("REDO_COMMAND"),dle=ce("KEYDOWN_COMMAND"),Vh=ce("KEY_ARROW_RIGHT_COMMAND"),fle=ce("MOVE_TO_END"),Rh=ce("KEY_ARROW_LEFT_COMMAND"),ple=ce("MOVE_TO_START"),zh=ce("KEY_ARROW_UP_COMMAND"),Uh=ce("KEY_ARROW_DOWN_COMMAND"),la=ce("KEY_ENTER_COMMAND"),qh=ce("KEY_SPACE_COMMAND"),Hh=ce("KEY_BACKSPACE_COMMAND"),jh=ce("KEY_ESCAPE_COMMAND"),Wh=ce("KEY_DELETE_COMMAND"),Zh=ce("KEY_TAB_COMMAND"),hle=ce("INSERT_TAB_COMMAND"),mle=ce("INDENT_CONTENT_COMMAND"),j1=ce("OUTDENT_CONTENT_COMMAND"),Kh=ce("DROP_COMMAND"),gle=ce("FORMAT_ELEMENT_COMMAND"),Gh=ce("DRAGSTART_COMMAND"),Yh=ce("DRAGOVER_COMMAND"),vle=ce("DRAGEND_COMMAND"),Ka=ce("COPY_COMMAND"),bu=ce("CUT_COMMAND"),wc=ce("SELECT_ALL_COMMAND"),yle=ce("CLEAR_EDITOR_COMMAND"),_le=ce("CLEAR_HISTORY_COMMAND"),Ms=ce("CAN_REDO_COMMAND"),Bs=ce("CAN_UNDO_COMMAND"),Cle=ce("FOCUS_COMMAND"),ble=ce("BLUR_COMMAND"),kle=ce("KEY_MODIFIER_COMMAND"),Nn=Object.freeze({}),Ec=[["keydown",function(t,e){if(Si=t.timeStamp,Jh=t.key,!e.isComposing()&&!re(e,dle,t)&&t.key!=null){if(ql&&bf(t))return Mt(e,()=>{$s(e,Hl)}),ql=!1,void(Hl="");if(function(n){return Se(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Vh,t);else if(function(n){return Se(n,"ArrowRight",Mn)}(t))re(e,fle,t);else if(function(n){return Se(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,Rh,t);else if(function(n){return Se(n,"ArrowLeft",Mn)}(t))re(e,ple,t);else if(function(n){return Se(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,zh,t);else if(function(n){return Se(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,Uh,t);else if(function(n){return Se(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&&Se(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,re(e,wr,!0);else if(function(n){return Se(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,re(e,la,t);else if(function(n){return Se(n,"Backspace",{shiftKey:"any"})||Xt&&Se(n,"h",{ctrlKey:!0})}(t))bf(t)?re(e,Hh,t):(t.preventDefault(),re(e,Vo,!0));else if(function(n){return n.key==="Escape"}(t))re(e,jh,t);else if(function(n){return Se(n,"Delete",{})||Xt&&Se(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Wh,t):(t.preventDefault(),re(e,Vo,!1));else if(function(n){return Se(n,"Backspace",Cf)}(t))t.preventDefault(),re(e,ji,!0);else if(function(n){return Se(n,"Delete",Cf)}(t))t.preventDefault(),re(e,ji,!1);else if(function(n){return Xt&&Se(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Wi,!0);else if(function(n){return Xt&&(Se(n,"Delete",{metaKey:!0})||Se(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Wi,!1);else if(function(n){return Se(n,"b",Mn)}(t))t.preventDefault(),re(e,Rt,"bold");else if(function(n){return Se(n,"u",Mn)}(t))t.preventDefault(),re(e,Rt,"underline");else if(function(n){return Se(n,"i",Mn)}(t))t.preventDefault(),re(e,Rt,"italic");else if(function(n){return Se(n,"Tab",{shiftKey:"any"})}(t))re(e,Zh,t);else if(function(n){return Se(n,"z",Mn)}(t))t.preventDefault(),re(e,_u,void 0);else if(function(n){return Xt?Se(n,"z",{metaKey:!0,shiftKey:!0}):Se(n,"y",{ctrlKey:!0})||Se(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 Se(o,"c",Mn)}(t)?(t.preventDefault(),re(e,Ka,t)):function(o){return Se(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,kle,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||X(r)&&r.getStyle()!==n.style)&&re(e,Er,Zae)}})}],["compositionend",function(t,e){Wo?mi=!0:Lr||!Ri&&!zi?Mt(e,()=>{$s(e,t.data)}):(ql=!0,Hl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(Ue(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()&&X(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),Ri||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;(Ue(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(),X(m)||K(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=!ke(Bc(a.anchor,!0))),!y){re(o,Vo,!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)||!Ro(h)||!Ro(m)})(f,p)&&re(o,kc,n);break;case"deleteByDrag":case"deleteByCut":re(o,kc,n);break;case"deleteContent":re(o,Vo,!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,Rt,"strikethrough");break;case"formatBold":re(o,Rt,"bold");break;case"formatItalic":re(o,Rt,"italic");break;case"formatUnderline":re(o,Rt,"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||!X(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=Ro(g);return C===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||y||function(v){const w=v.getPreviousSibling();return(X(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 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")X(u)||K(141),tm(l,u);else if(c.type==="element"&&!y){R(u)||K(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(X(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&&X(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=tce(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;(Ue(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 wle(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||K(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&&K(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}),Kle(this,e)}static getType(){const{ownNodeType:e}=rl(this);return e===void 0&&K(64,this.name),e}static clone(e){K(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(){K(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(X(this))return o;if(W(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(ke(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&&K(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ut(n))return R(e)||e===this&&ke(e)||K(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&K(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"&&K(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&&K(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&&K(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){K(70)}updateDOM(e,n,o){K(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){K(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)||K(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(R(o))return o.select();if(!X(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(!X(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",Ele="history-push",Ai="history-merge",xle="paste",sm="collaboration",Sle="skip-scroll-into-view",Tle="skip-dom-selection",Ale="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:Nle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Nle(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 Jae[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&&K(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&&K(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:$le,priority:0}),b:()=>({conversion:Mle,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:Dle,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 Ue(o)||K(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"?Kae[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=Yae[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 N=n[A];N>T&&(c.push(r.slice(T,N)),T=N)}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=V1(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=V1(o,A);const N=A.__key;a===s&&Xe(N),k.push(A)}const b=y?y.offset:null,x=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&&x!==null&&x<=A&&x>=S){v.set(T.getKey(),x-S,"text");break}S=A}if(p!==null){(function(N){const D=N.getPreviousSibling(),$=N.getNextSibling();D!==null&&ma(D),$!==null&&ma($)})(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()||K(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 Dle(t){return{forChild:ku(t.style),node:null}}function Mle(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 Ble(t){if(!Ue(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function $le(t){const e=t;t.parentElement===null&&K(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&&!Ble(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
+ `,Zae=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},Kae={directionless:1,unmergeable:2},O1={center:2,end:6,justify:4,left:1,right:3,start:5},Gae={[Uae]:"center",[Wae]:"end",[Hae]:"justify",[zae]:"left",[qae]:"right",[jae]:"start"},Yae={normal:0,segmented:2,token:1},Jae={[Fae]:"normal",[Rae]:"segmented",[Vae]:"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 Xae(t){vu=t.timeStamp}function Rl(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 Qae(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 ele(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 tle(t,e,n,o){for(let r=t;r&&!rce(r);r=us(r)){const s=tl(r,e);if(s!==void 0){const a=We(s,n);if(a)return ke(a)||!Ue(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=tle(g,t,l,a);if(!C)continue;const[_,y]=C;if(m==="characterData")o&&X(y)&&jn(g)&&ele(r,g,y)&&Qae(g,y,t);else if(m==="childList"){u=!0;const v=h.addedNodes;for(let b=0;b<v.length;b++){const S=v[b],T=xm(S),A=S.parentNode;if(A!=null&&S!==c&&T===null&&!Rl(S,A,t)){if(Wo){const x=(Ue(S)?S.innerText:null)||S.nodeValue;x&&(d+=x)}A.removeChild(S)}}const w=h.removedNodes,k=w.length;if(k>0){let b=0;for(let S=0;S<k;S++){const T=w[S];(Rl(T,g,t)||c===T)&&(g.appendChild(T),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"||Rl(_,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",Xae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Sh(t,e,n)})}let nle=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||sle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function ole(t,e){return new nle(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 rle(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 ile=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 ile(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 sle(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 V1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function R1(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&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(R1(e,o)){o=z1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(R1(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),X(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,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),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 ale="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")||ale;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),X(n)?o.setAttribute("data-lexical-text","true"):ke(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(ke(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&&X(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":ke(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 lle(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);X(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,S=y.getFirstChild(),T=0,A=0;for(;T<=v&&A<=w;){const B=m[T],$=g[A];if(B===$)S=Ul(bi($,y.element)),T++,A++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const P=b.has(B),F=k.has($);if(P)if(F){const K=Yo(st,$);K===S?S=Ul(bi($,y.element)):(y.withBefore(S).insertChild(K),bi($,y.element)),T++,A++}else sa($,y.withBefore(S)),A++;else S=Ul(bc(B)),ia(B,y.element),T++}const O=en.get($);O!==null&&X(O)&&(fn===null&&(fn=O.getFormat()),pn===""&&(pn=O.getStyle()))}const x=T>v,M=A>w;if(x&&!M){const B=g[w+1],$=B===void 0?null:st.getElementByKey(B);Cc(g,h,A,w,y.withBefore($))}else M&&!x&&yc(m,T,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(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&&(lle(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(st,c.getKey()),c)}else{const a=o.getTextContent();if(ke(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 cle(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 ce(t){return{type:t}}const Ph=ce("SELECTION_CHANGE_COMMAND"),ule=ce("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fh=ce("CLICK_COMMAND"),Vo=ce("DELETE_CHARACTER_COMMAND"),wr=ce("INSERT_LINE_BREAK_COMMAND"),Hi=ce("INSERT_PARAGRAPH_COMMAND"),Er=ce("CONTROLLED_TEXT_INSERTION_COMMAND"),yu=ce("PASTE_COMMAND"),kc=ce("REMOVE_TEXT_COMMAND"),ji=ce("DELETE_WORD_COMMAND"),Wi=ce("DELETE_LINE_COMMAND"),Rt=ce("FORMAT_TEXT_COMMAND"),_u=ce("UNDO_COMMAND"),Cu=ce("REDO_COMMAND"),dle=ce("KEYDOWN_COMMAND"),Vh=ce("KEY_ARROW_RIGHT_COMMAND"),fle=ce("MOVE_TO_END"),Rh=ce("KEY_ARROW_LEFT_COMMAND"),ple=ce("MOVE_TO_START"),zh=ce("KEY_ARROW_UP_COMMAND"),Uh=ce("KEY_ARROW_DOWN_COMMAND"),la=ce("KEY_ENTER_COMMAND"),qh=ce("KEY_SPACE_COMMAND"),Hh=ce("KEY_BACKSPACE_COMMAND"),jh=ce("KEY_ESCAPE_COMMAND"),Wh=ce("KEY_DELETE_COMMAND"),Zh=ce("KEY_TAB_COMMAND"),hle=ce("INSERT_TAB_COMMAND"),mle=ce("INDENT_CONTENT_COMMAND"),j1=ce("OUTDENT_CONTENT_COMMAND"),Kh=ce("DROP_COMMAND"),gle=ce("FORMAT_ELEMENT_COMMAND"),Gh=ce("DRAGSTART_COMMAND"),Yh=ce("DRAGOVER_COMMAND"),vle=ce("DRAGEND_COMMAND"),Ka=ce("COPY_COMMAND"),bu=ce("CUT_COMMAND"),wc=ce("SELECT_ALL_COMMAND"),yle=ce("CLEAR_EDITOR_COMMAND"),_le=ce("CLEAR_HISTORY_COMMAND"),Ms=ce("CAN_REDO_COMMAND"),Bs=ce("CAN_UNDO_COMMAND"),Cle=ce("FOCUS_COMMAND"),ble=ce("BLUR_COMMAND"),kle=ce("KEY_MODIFIER_COMMAND"),Nn=Object.freeze({}),Ec=[["keydown",function(t,e){if(Si=t.timeStamp,Jh=t.key,!e.isComposing()&&!re(e,dle,t)&&t.key!=null){if(ql&&bf(t))return Mt(e,()=>{$s(e,Hl)}),ql=!1,void(Hl="");if(function(n){return Se(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Vh,t);else if(function(n){return Se(n,"ArrowRight",Mn)}(t))re(e,fle,t);else if(function(n){return Se(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,Rh,t);else if(function(n){return Se(n,"ArrowLeft",Mn)}(t))re(e,ple,t);else if(function(n){return Se(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,zh,t);else if(function(n){return Se(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,Uh,t);else if(function(n){return Se(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&&Se(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,re(e,wr,!0);else if(function(n){return Se(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,re(e,la,t);else if(function(n){return Se(n,"Backspace",{shiftKey:"any"})||Xt&&Se(n,"h",{ctrlKey:!0})}(t))bf(t)?re(e,Hh,t):(t.preventDefault(),re(e,Vo,!0));else if(function(n){return n.key==="Escape"}(t))re(e,jh,t);else if(function(n){return Se(n,"Delete",{})||Xt&&Se(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Wh,t):(t.preventDefault(),re(e,Vo,!1));else if(function(n){return Se(n,"Backspace",Cf)}(t))t.preventDefault(),re(e,ji,!0);else if(function(n){return Se(n,"Delete",Cf)}(t))t.preventDefault(),re(e,ji,!1);else if(function(n){return Xt&&Se(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Wi,!0);else if(function(n){return Xt&&(Se(n,"Delete",{metaKey:!0})||Se(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Wi,!1);else if(function(n){return Se(n,"b",Mn)}(t))t.preventDefault(),re(e,Rt,"bold");else if(function(n){return Se(n,"u",Mn)}(t))t.preventDefault(),re(e,Rt,"underline");else if(function(n){return Se(n,"i",Mn)}(t))t.preventDefault(),re(e,Rt,"italic");else if(function(n){return Se(n,"Tab",{shiftKey:"any"})}(t))re(e,Zh,t);else if(function(n){return Se(n,"z",Mn)}(t))t.preventDefault(),re(e,_u,void 0);else if(function(n){return Xt?Se(n,"z",{metaKey:!0,shiftKey:!0}):Se(n,"y",{ctrlKey:!0})||Se(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 Se(o,"c",Mn)}(t)?(t.preventDefault(),re(e,Ka,t)):function(o){return Se(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,kle,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||X(r)&&r.getStyle()!==n.style)&&re(e,Er,Zae)}})}],["compositionend",function(t,e){Wo?mi=!0:Lr||!Ri&&!zi?Mt(e,()=>{$s(e,t.data)}):(ql=!0,Hl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(Ue(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()&&X(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),Ri||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;(Ue(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(),X(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=!ke(Bc(a.anchor,!0))),!y){re(o,Vo,!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)||!Ro(h)||!Ro(m)})(f,p)&&re(o,kc,n);break;case"deleteByDrag":case"deleteByCut":re(o,kc,n);break;case"deleteContent":re(o,Vo,!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,Rt,"strikethrough");break;case"formatBold":re(o,Rt,"bold");break;case"formatItalic":re(o,Rt,"italic");break;case"formatUnderline":re(o,Rt,"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||!X(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=Ro(g);return C===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||y||function(v){const w=v.getPreviousSibling();return(X(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 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")X(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(),S=k.getTextStyle();qs(w,b,S)}(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],S=b.getTextContentSize();if(X(b)&&S!==0&&!(k===0&&b.__key===_&&g===S||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&&X(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=tce(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;(Ue(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 wle(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}),Kle(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(X(this))return o;if(W(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(ke(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&&ke(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)){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(R(o))return o.select();if(!X(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(!X(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",Ele="history-push",Ai="history-merge",xle="paste",sm="collaboration",Sle="skip-scroll-into-view",Tle="skip-dom-selection",Ale="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:Nle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Nle(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 Jae[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:$le,priority:0}),b:()=>({conversion:Mle,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:Dle,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 Ue(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"?Kae[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=Yae[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,x)=>A-x),n.push(l);const c=[],u=n.length;for(let A=0,x=0;A<l&&x<=u;x++){const M=n[x];M>A&&(c.push(r.slice(A,M)),A=M)}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,x]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];A.type==="text"&&A.key===s&&(y=A),x.type==="text"&&x.key===s&&(v=x)}o.isSegmented()?(h=Ie(f),h.__format=m,h.__style=g,h.__detail=C,h.__state=V1(o,h),_=!0):h=o.setTextContent(f);const k=[h];for(let A=1;A<d;A++){const x=Ie(c[A]);x.__format=m,x.__style=g,x.__detail=C,x.__state=V1(o,x);const M=x.__key;a===s&&Xe(M),k.push(x)}const b=y?y.offset:null,S=v?v.offset:null;let T=0;for(const A of k){if(!y&&!v)break;const x=T+A.getTextContentSize();if(y!==null&&b!==null&&b<=x&&b>=T&&(y.set(A.getKey(),b-T,"text"),b<x&&(y=null)),v!==null&&S!==null&&S<=x&&S>=T){v.set(A.getKey(),S-T,"text");break}T=x}if(p!==null){(function(M){const B=M.getPreviousSibling(),$=M.getNextSibling();B!==null&&ma(B),$!==null&&ma($)})(this);const A=p.getWritable(),x=this.getIndexWithinParent();_?(A.splice(x,0,k),this.remove()):A.splice(x,1,k),W(w)&&fa(w,p,x,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 Dle(t){return{forChild:ku(t.style),node:null}}function Mle(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 Ble(t){if(!Ue(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function $le(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&&!Ble(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,Ue(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 Ole={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Dn(t){const e=Ole[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 X(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=>(X(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||K(286),this}setDetail(e){return e!==2&&K(127),this}setMode(e){return e!=="normal"&&K(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return ln(new rs)}function Ga(t){return t instanceof rs}class Lle{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(Rn(this,"next")),zt(Rn(e,"next")))<0}getNode(){const e=We(this.key);return e===null&&K(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 Lle(t,e,n)}function Zl(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(X(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)||X(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(X(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");hce(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=Vu(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}(Vm(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,Ue(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 Ole={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Dn(t){const e=Ole[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 X(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=>(X(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 Lle{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(Rn(this,"next")),zt(Rn(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 Lle(t,e,n)}function Zl(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(X(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)||X(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(X(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");hce(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=Vu(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}(Vm(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+=`
27
27
  `),d=!p.isEmpty();else if(d=!1,X(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!ke(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 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(Rn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||K(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(X(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(X(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(Ro(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(X(g)&&!Ro(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 T=w[S];if(T.is(p)||R(T)&&T.isParentOf(p))break;T.isAttached()&&(!k.has(T)||T.is(v)?b||x.insertAfter(T,!1):T.remove())}if(!b){let S=y,T=null;for(;S!==null;){const A=S.getChildren(),N=A.length;(N===0||A[N-1].is(T))&&(C.delete(S.__key),T=S),S=S.getParent()}}if(Ro(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,mce(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)X(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)||K(134),m.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Vt),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)||ke(m))&&!m.isInline())){R(o)||K(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||ke(y)&&y.isInline()||R(y)&&y.isInline()||X(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)&&Vt(f)&&!f.isEmpty()&&R(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(R(o)||K(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&K(212,n.constructor.name,n.getType()),function(m,g){const C=g.getParentOrThrow().getLastChild();let _=g;const y=[g];for(;_!==C;)_.getNextSibling()||K(140),_=_.getNextSibling(),y.push(_);let v=m;for(const w of y)v=v.insertAfter(w)}(o,d));const p=qt(a,Vt);c&&R(p)&&(c.canMergeWhenEmpty()||Vt(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(),Vt);R(n)||K(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(X(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(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(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:Qle(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(Rn(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(ke(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()),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)||Ile(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 Ile=(()=>{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(Ue(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),X(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&&K(214),[p,s]=p.getDOMSlot(h).resolveChildIndex(p,h,t,e),R(p)||K(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}X(g)?(r=g,p=null,s=lo(g,a?"next":"previous")):g!==p&&a&&!f&&(R(p)||K(216),s=Math.min(p.getChildrenSize(),s+1))}else{const h=p.getIndexWithinParent();s=e===0&&ke(p)&&Cr(t)===p?h:h+1,p=p.getParentOrThrow()}if(R(p))return kn(p.__key,s,"element")}}else r=Cr(t);return X(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();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(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();X(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(ke(c)&&ke(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(X(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(X(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(X(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,X(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(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 Ple(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=_,T=!1;if(p.type==="text"){x=Ir(C);const P=p.getNode();T=P.getFormat()!==w||P.getStyle()!==k}else W(t)&&t.anchor.type==="text"&&(T=!0);var A,N,D,$,O;if(h.type==="text"&&(S=Ir(_)),x!==null&&S!==null&&(b&&(t===null||T||W(t)&&(t.format!==w||t.style!==k))&&(A=w,N=k,D=y,$=m,O=performance.now(),Qh=[A,N,D,$,O]),u!==y||d!==v||l!==x||c!==S||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Ale)||s.focus({preventScroll:!0}),p.type==="element"))){if(pm(o,x,y,S,v),!r.has(Sle)&&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 F;if(P instanceof Text){const Z=document.createRange();Z.selectNode(P),F=Z.getBoundingClientRect()}else F=P.getBoundingClientRect();(function(Z,V,M){const G=Bm(M),z=Lu(G);if(G===null||z===null)return;let{top:H,bottom:ue}=V,Q=0,ie=0,U=M;for(;U!==null;){const ne=U===G.body;if(ne)Q=0,ie=Wt(Z).innerHeight;else{const I=U.getBoundingClientRect();Q=I.top,ie=I.bottom}let ge=0;if(H<Q?ge=-(Q-H):ue>ie&&(ge=ue-ie),ge!==0)if(ne)z.scrollBy(0,ge);else{const I=U.scrollTop;U.scrollTop+=ge;const ee=U.scrollTop-I;H-=ee,ue-=ee}if(ne)break;U=us(U)}})(n,F,s)}}Sc=!0}}function Fle(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)||K(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Vt(r);){const a=r;if([r,s]=Vle(r,s),a.is(r))break}return s}function Vle(t,e){const n=t.getParent();if(!n){const r=De();return Le().append(r),r.select(),[Le(),0]}if(X(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=Rn(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(!ke(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;ke(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&ke(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&&K(13)}function hm(){Hs>99&&K(14)}function _o(){return Ye===null&&K(195,mm()),Ye}function Oe(){return Je===null&&K(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 Rle(){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 zle(t){return Eu(t,Oe()._nodes)}function Eu(t,e){const n=t.type,o=e.get(n);o===void 0&&K(17,n);const r=o.klass;t.type!==r.getType()&&K(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,x=t._dirtyElements,S=t._dirtyLeaves;h.disconnect(),m=cle(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 T=b._pendingDecorators||S;const A=x._nodeMap;let N;for(N in T)A.has(N)||(T===S&&(T=Sm(b)),delete T[N])}(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(Tle)){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),Ple(a,l,t,w,y,o)}(function(b,x,S){let T=b._blockCursorElement;if(W(S)&&S.isCollapsed()&&S.anchor.type==="element"&&x.contains(document.activeElement)){const A=S.anchor,N=A.getNode(),D=A.offset;let $=!1,O=null;if(D===N.getChildrenSize())Jl(N.getChildAtIndex(D-1))&&($=!0);else{const P=N.getChildAtIndex(D);if(P!==null&&Jl(P)){const F=P.getPreviousSibling();(F===null||Jl(F))&&($=!0,O=b.getElementByKey(P.__key))}}if($){const P=b.getElementByKey(N.__key);return T===null&&(b._blockCursorElement=T=function(F){const Z=F.theme,V=document.createElement("div");V.contentEditable="false",V.setAttribute("data-lexical-cursor","true");let M=Z.blockCursor;if(M!==void 0){if(typeof M=="string"){const G=wh(M);M=Z.blockCursor=G}M!==void 0&&V.classList.add(...M)}return V}(b._config)),x.style.caretColor="transparent",void(O===null?P.appendChild(T):P.insertBefore(T,O))}}T!==null&&Oc(T,b,x)})(t,o,l)}finally{h!==null&&h.observe(o,uf),Je=f,Ye=u}}m!==null&&function(b,x,S,T,A){const N=Array.from(b._listeners.mutation),D=N.length;for(let $=0;$<D;$++){const[O,P]=N[$];for(const F of P){const Z=x.get(F);Z!==void 0&&O(Z,{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,x,S){const T=yf(x),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,x){if(b._deferred=[],x.length!==0){const S=b._updating;b._updating=!0;try{for(let T=0;T<x.length;T++)x[T]()}finally{b._updating=S}}}(t,v),function(b){const x=b._updates;if(x.length!==0){const S=x.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&&K(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 T=x.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 x=k.get(b);X(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 T=w,A=T.size,N=k,D=N.size;for(;A>0||D>0;){if(A>0){v._dirtyLeaves=new Set;for(const $ of T){const O=b.get($);X(O)&&O.isAttached()&&O.isSimpleText()&&!O.isUnmergeable()&&U1(O),O!==void 0&&ff(O,x)&&df(v,O,S),w.add($)}if(T=v._dirtyLeaves,A=T.size,A>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,N.delete("root")&&N.set("root",!0);for(const $ of N){const O=$[0],P=$[1];if(k.set(O,P),!P)continue;const F=b.get(O);F!==void 0&&ff(F,x)&&df(v,F,S)}T=v._dirtyLeaves,A=T.size,N=v._dirtyElements,D=N.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[T]of k){const A=x.get(T);A!==void 0&&(A.isAttached()||(R(A)&&xh(A,T,b,x,S,k),b.has(T)||k.delete(T),S.push(T)))}for(const T of S)x.delete(T);for(const T of w){const A=x.get(T);A===void 0||A.isAttached()||(b.has(T)||w.delete(T),x.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||K(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&&Zle(()=>{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&&K(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&K(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&K(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||Ri);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&&K(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 Gae[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(X(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&&K(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&K(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(X(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(X(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)&&K(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||K(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&&K(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&&K(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(Ue(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 ke(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(){K(51)}getTextContent(){const n=this.__cachedText;return!is()&&Oe()._dirtyType!==0||n===null?super.getTextContent():n}remove(){K(52)}replace(n){K(53)}insertBefore(n){K(54)}insertAfter(n){K(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)R(s)||ke(s)||K(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()&&K(130,n.name),R(t)){const o=e.children;Array.isArray(o)||K(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:Ule,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ue(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||X(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 Ule(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 Ce=0,gi=1,qle=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 Hle(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 jle(t){const e=t||{},n=Rle(),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=Hle(C);h.set(v,{exportDOM:f&&f.export?f.export.get(C):void 0,klass:C,replace:_,replaceWithKlass:y,sharedNodeState:rle(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&&K(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&&K(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&&K(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||wle(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,vle,C);case"focus":return _&&re(c,Cle,C);case"blur":return _&&re(c,ble,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()&&K(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()),Jle("focus"),Xle(()=>{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 Wle=1;function bm(t,e){const n=Au(t,e);return n===void 0&&K(30,e),n}function Au(t,e){return t._nodes.get(e)}const Zle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function vf(t){return ke(Pr(t))}function Nu(t){const e=document.activeElement;if(!Ue(e))return!1;const n=e.nodeName;return ke(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 Ro(t){return Ga(t)||t.isToken()}function Bn(t){return Ro(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 X(t)||so(t)||ke(t)}function Kle(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=""+Wle++;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)&&K(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 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&&X(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),Ri||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 Gle(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Se(t,e,n){return Gle(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 Se(t,"a",Mn)}function Yle(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&&K(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&&K(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:Ue(t)?t.ownerDocument:null}function Jle(t){Ge(),Oe()._updateTags.add(t)}function Xle(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&&K(78),e}function Qle(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&&K(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||K(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||K(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&K(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Yl(t,e){!Re(t.getParent())||R(e)||ke(e)||K(99)}function ece(t){const e=We(t);return e===null&&K(63,t),e}function Jl(t){return(ke(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 tce(t){const e=Lu(t);return e?e.getSelection():null}function $m(t){return Ue(t)&&t.tagName==="A"}function Ue(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 Vt(t){if(ke(t)&&!t.isInline())return!0;if(!R(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ol(){return Oe()}const Ef=new WeakMap,nce=new Map;function xf(t){if(!t._readOnly&&t.isEmpty())return nce;t._readOnly||K(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 oce(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 rce(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{}K(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 ice(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},sce={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&&K(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 ace={root:Re,shadowRoot:ut};function Zr(t){return sce[t]}function Fu(t,e="root"){return ace[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 lce={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}}},cce={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}}},uce={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 cce[e](t):null}function Qo(t,e,n){return t?new lce[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 fce(t,e)}function rn(t,e){return R(t)?new uce[e](t):null}function dce(t){return t&&t.getChildCaret()||t}function Vu(t){return t&&dce(t.getAdjacentCaret())}class Ru{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 Ru(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:Vu(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 fce{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 pce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&K(265),new Ru(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&&K(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)||K(276),{commonAncestor:o,type:"ancestor"}):r===null?(Ps(e,o)||K(277),{commonAncestor:o,type:"descendant"}):((R(s)||Ps(t,s))&&(R(r)||Ps(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||K(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Rn(t,e){const{type:n,key:o,offset:r}=t,s=ece(t.key);return n==="text"?(X(s)||K(266,s.getType(),o),Qo(s,e,r)):(R(s)||K(267,s.getType(),o),gce(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)?X(n)?t.set(n.getKey(),lo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(yn(e)&&R(n)||K(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function hce(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=Rn(e,"next"),r=Rn(n,"next"),s=Im(o,r)<=0?"next":"previous";return ho(Vr(o,s),Vr(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 mce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Vm(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 x=(A,N)=>{let D;for(let $=b;$<A.length;$++){const O=A[$];if(ut(O))return;!D&&N(O)&&(D=O)}return D},S=x(v,Vt),T=S&&x(w,A=>C.has(A.getKey())&&Vt(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 pce(Vr(zt(h),t.direction));K(269,JSON.stringify(a.map(m=>m.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;yn(s);){const a=Vu(s);if(!yn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return ao(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&X(o.origin)?Qo(o.origin,n,Zr(n)):e}function Fm(t){return ao(t)&&t.offset!==lo(t.origin,t.direction)}function Vr(t,e){return t.direction===e?t:t.getFlipped()}function Vm(t,e){return t.direction===e?t:ho(Vr(t.focus,e),Vr(t.anchor,e))}function gce(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 Vr(o,n)}const Pc=new Map;function Rm(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=Rm(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=oce(e)),e.__text=y)}}return e}function vce(t){const e=t.getStyle(),n=Rm(e);Pc.set(e,n)}function yce(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=yce){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(),Vt),u=qt(l.getNode(),Vt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Vt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Vt);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())&&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 R(e)?zm(e):Um(e)}function Bf(t,e){let n=Hm(t)?!e:e;Wm(t)&&(n=!n);const o=Rn(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(ke(r.origin))return!0;break}}return!1}function _ce(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,_ce(t,e,r,"character")}function Cce(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,bce=qu&&"documentMode"in document?document.documentMode:null;!(!qu||!("InputEvent"in window)||bce)&&"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 kce=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 wce(t){return t?t.getAdjacentCaret():null}function Ece(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function xce(t){const e=qt(t,n=>R(n)&&!n.isInline());return R(e)||Cce(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(we(n)){const o=n.getParent();if(de(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function Vc(t){let e=t.getParent();de(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),de(n)&&(e=n);return e}function Km(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();de(s)?e=e.concat(Km(s)):e.push(r)}return e}function hn(t){return we(t)&&de(t.getFirstChild())}function Of(t){return It().append(t)}function Gm(t,e){return we(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(we(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()&&!we(s)&&!o.has(s.getKey())){If(s,t);continue}let a=Em(s)?s.getParent():we(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(de(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(de(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),de(n)&&e===n.getListType())n.append(r),de(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(de(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 Sce(){const t=te();if(W(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Gm(o,n))e.add(Vc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Em(s)){const a=Ece(s,Co);a!=null&&e.add(Vc(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())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),de(o.getFirstChild())||n++)}function Tce(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(de(s)){s.append(t);const a=o.getFirstChild();de(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(de(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();de(s)&&s.append(t)}else if(de(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 Ace(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(de(n?n.getParent():void 0)&&we(n)&&de(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 Nce(){const t=te();if(!W(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Vc(e),o=e.getParent();de(o)||ro(40);const r=o.getParent();let s;if(ut(r))s=De(),n.insertAfter(s);else{if(!we(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(we(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||!we(u)&&!de(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();de(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Dce,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();!de(d)||d.getListType()!=="check"||de(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=de(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=>de(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(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!de(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(de(r)||ro(39),we(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=we(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 de(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(;we(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?(Tce(this),o++):(Ace(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(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 Dce(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 we(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=Bce[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();de(r)&&o.getListType()===r.getListType()&&ju(o,r)})(n),Ym(n)},extends:Lt,importDOM:{ol:()=>({conversion:Vf,priority:0}),ul:()=>({conversion:Vf,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 Ue(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];we(l)||(s===r&&(s=[...r]),s[a]=It().append(!R(l)||de(l)||l.isInline()?l:Ie(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return we(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 Mce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{de(s)&&e.push(Of(s))})}else e.push(Of(o))}return e}function Vf(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(Ue(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Ct("check"):Ct("bullet")),{after:Mce,node:n}}const Bce={ol:"number",ul:"bullet"};function Ct(t="number",e=1){return ln(new or(t,e))}function de(t){return t instanceof or}const $ce=ce("UPDATE_LIST_START_COMMAND"),Jm=ce("INSERT_UNORDERED_LIST_COMMAND"),Xm=ce("INSERT_ORDERED_LIST_COMMAND"),Oce=ce("REMOVE_LIST_COMMAND");function Lce(t){return ds(t.registerCommand(Xm,()=>(Lf("number"),!0),gi),t.registerCommand($ce,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!de(r)&&(r.getListType()==="number"&&(r.setStart(o),Ym(r)),!0)},gi),t.registerCommand(Jm,()=>(Lf("bullet"),!0),gi),t.registerCommand(Oce,()=>(Sce(),!0),gi),t.registerCommand(Hi,()=>Nce(),gi),t.registerNodeTransform(Co,e=>{const n=e.getFirstChild();if(n){if(X(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(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Ice(t){const e=n=>{const o=n.getParent();if(de(n.getFirstChild())||!de(o))return;const r=qt(n,s=>we(s)&&de(s.getParent())&&we(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const s=r.getPreviousSibling();if(we(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;de(d);){const f=d.getLastChild();if(!we(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(de(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(de(r)){for(const s of r.getChildren())if(we(s)){e(s);const a=s.getFirstChild();de(a)&&o.push(a)}}}})}function Pce(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 Fce(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&&X(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((Ue(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=Vce(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 Vce(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 Rce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?"":Fce(t,e)}function zce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Uce(t,e))}function Rf(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,qce(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,Pce(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 S=Re(w)?De().append(b):b;k===null?w.append(S):k.insertBefore(S)}C.is(_)&&_.set(b.__key,0,"text"),C.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&er(l,zt(Rn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(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(X(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(X(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(Ro(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(X(g)&&!Ro(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ie(g.getTextContent());g.replace(T),g=T}Re(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),C.add(g.__key)}else{const T=g.getParentOrThrow();T.canBeEmpty()||T.getChildrenSize()!==1?g.remove():T.remove()}else C.add(g.__key);const w=y.getChildren(),k=new Set(d),b=_.is(y),S=_.isInline()&&p.getNextSibling()===null?_:p;for(let T=w.length-1;T>=0;T--){const A=w[T];if(A.is(p)||R(A)&&A.isParentOf(p))break;A.isAttached()&&(!k.has(A)||A.is(v)?b||S.insertAfter(A,!1):A.remove())}if(!b){let T=y,A=null;for(;T!==null;){const x=T.getChildren(),M=x.length;(M===0||x[M-1].is(A))&&(C.delete(T.__key),A=T),T=T.getParent()}}if(Ro(p))if(c===h)p.select();else{const T=Ie(e);T.select(),p.replace(T)}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 T=1;T<f;T++){const A=d[T],x=A.__key;C.has(x)||A.remove()}}}removeText(){const e=te()===this;Ws(this,mce(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)X(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,Vt),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)||ke(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||ke(y)&&y.isInline()||R(y)&&y.isInline()||X(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)&&Vt(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,Vt);c&&R(p)&&(c.canMergeWhenEmpty()||Vt(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(),Vt);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(X(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(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(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:Qle(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(Rn(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(ke(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()),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)||Ile(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 Ile=(()=>{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(Ue(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),X(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}X(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&&ke(p)&&Cr(t)===p?h:h+1,p=p.getParentOrThrow()}if(R(p))return kn(p.__key,s,"element")}}else r=Cr(t);return X(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();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(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();X(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(ke(c)&&ke(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(X(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(X(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(X(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,X(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(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 Ple(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 S=C,T=_,A=!1;if(p.type==="text"){S=Ir(C);const P=p.getNode();A=P.getFormat()!==w||P.getStyle()!==k}else W(t)&&t.anchor.type==="text"&&(A=!0);var x,M,B,$,O;if(h.type==="text"&&(T=Ir(_)),S!==null&&T!==null&&(b&&(t===null||A||W(t)&&(t.format!==w||t.style!==k))&&(x=w,M=k,B=y,$=m,O=performance.now(),Qh=[x,M,B,$,O]),u!==y||d!==v||l!==S||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Ale)||s.focus({preventScroll:!0}),p.type==="element"))){if(pm(o,S,y,T,v),!r.has(Sle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const P=W(e)&&e.anchor.type==="element"?S.childNodes[y]||null:o.rangeCount>0?o.getRangeAt(0):null;if(P!==null){let F;if(P instanceof Text){const K=document.createRange();K.selectNode(P),F=K.getBoundingClientRect()}else F=P.getBoundingClientRect();(function(K,V,N){const G=Bm(N),z=Lu(G);if(G===null||z===null)return;let{top:H,bottom:ue}=V,Q=0,ie=0,U=N;for(;U!==null;){const ne=U===G.body;if(ne)Q=0,ie=Wt(K).innerHeight;else{const I=U.getBoundingClientRect();Q=I.top,ie=I.bottom}let ge=0;if(H<Q?ge=-(Q-H):ue>ie&&(ge=ue-ie),ge!==0)if(ne)z.scrollBy(0,ge);else{const I=U.scrollTop;U.scrollTop+=ge;const ee=U.scrollTop-I;H-=ee,ue-=ee}if(ne)break;U=us(U)}})(n,F,s)}}Sc=!0}}function Fle(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(;!Vt(r);){const a=r;if([r,s]=Vle(r,s),a.is(r))break}return s}function Vle(t,e){const n=t.getParent();if(!n){const r=De();return Le().append(r),r.select(),[Le(),0]}if(X(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=Rn(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(!ke(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;ke(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&ke(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 Rle(){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 zle(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,S=t._dirtyElements,T=t._dirtyLeaves;h.disconnect(),m=cle(s,n,t,b,S,T)}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,S){const T=b._decorators;let A=b._pendingDecorators||T;const x=S._nodeMap;let M;for(M in A)x.has(M)||(A===T&&(A=Sm(b)),delete A[M])}(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(Tle)){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),Ple(a,l,t,w,y,o)}(function(b,S,T){let A=b._blockCursorElement;if(W(T)&&T.isCollapsed()&&T.anchor.type==="element"&&S.contains(document.activeElement)){const x=T.anchor,M=x.getNode(),B=x.offset;let $=!1,O=null;if(B===M.getChildrenSize())Jl(M.getChildAtIndex(B-1))&&($=!0);else{const P=M.getChildAtIndex(B);if(P!==null&&Jl(P)){const F=P.getPreviousSibling();(F===null||Jl(F))&&($=!0,O=b.getElementByKey(P.__key))}}if($){const P=b.getElementByKey(M.__key);return A===null&&(b._blockCursorElement=A=function(F){const K=F.theme,V=document.createElement("div");V.contentEditable="false",V.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&&V.classList.add(...N)}return V}(b._config)),S.style.caretColor="transparent",void(O===null?P.appendChild(A):P.insertBefore(A,O))}}A!==null&&Oc(A,b,S)})(t,o,l)}finally{h!==null&&h.observe(o,uf),Je=f,Ye=u}}m!==null&&function(b,S,T,A,x){const M=Array.from(b._listeners.mutation),B=M.length;for(let $=0;$<B;$++){const[O,P]=M[$];for(const F of P){const K=S.get(F);K!==void 0&&O(K,{dirtyLeaves:A,prevEditorState:x,updateTags:T})}}}(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,S,T){const A=yf(S),x=yf(T);A!==x&&Ni("textcontent",b,!0,x)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:C,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:e||s,tags:y}),function(b,S){if(b._deferred=[],S.length!==0){const T=b._updating;b._updating=!0;try{for(let A=0;A<S.length;A++)S[A]()}finally{b._updating=T}}}(t,v),function(b){const S=b._updates;if(S.length!==0){const T=S.shift();if(T){const[A,x]=T;Xa(b,A,x)}}}(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,S=k.focus;let T;if(b.type==="text"&&(T=b.getNode(),T.selectionTransform(w,k)),S.type==="text"){const A=S.getNode();T!==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 S=k.get(b);X(S)&&S.isAttached()&&S.isSimpleText()&&!S.isUnmergeable()&&U1(S)}}(c,t):function(y,v){const w=v._dirtyLeaves,k=v._dirtyElements,b=y._nodeMap,S=oo(),T=new Map;let A=w,x=A.size,M=k,B=M.size;for(;x>0||B>0;){if(x>0){v._dirtyLeaves=new Set;for(const $ of A){const O=b.get($);X(O)&&O.isAttached()&&O.isSimpleText()&&!O.isUnmergeable()&&U1(O),O!==void 0&&ff(O,S)&&df(v,O,T),w.add($)}if(A=v._dirtyLeaves,x=A.size,x>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,M.delete("root")&&M.set("root",!0);for(const $ of M){const O=$[0],P=$[1];if(k.set(O,P),!P)continue;const F=b.get(O);F!==void 0&&ff(F,S)&&df(v,F,T)}A=v._dirtyLeaves,x=A.size,M=v._dirtyElements,B=M.size,Hs++}v._dirtyLeaves=w,v._dirtyElements=k}(c,t),hf(t),function(y,v,w,k){const b=y._nodeMap,S=v._nodeMap,T=[];for(const[A]of k){const x=S.get(A);x!==void 0&&(x.isAttached()||(R(x)&&xh(x,A,b,S,T,k),b.has(A)||k.delete(A),T.push(A)))}for(const A of T)S.delete(A);for(const A of w){const x=S.get(A);x===void 0||x.isAttached()||(b.has(A)||w.delete(A),S.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&&Zle(()=>{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||Ri);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 Gae[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(X(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(X(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(X(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(Ue(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 ke(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)||ke(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:Ule,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ue(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||X(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 Ule(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 Ce=0,gi=1,qle=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 Hle(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 jle(t){const e=t||{},n=Rle(),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=Hle(C);h.set(v,{exportDOM:f&&f.export?f.export.get(C):void 0,klass:C,replace:_,replaceWithKlass:y,sharedNodeState:rle(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||wle(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,vle,C);case"focus":return _&&re(c,Cle,C);case"blur":return _&&re(c,ble,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()),Jle("focus"),Xle(()=>{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 Wle=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 Zle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function vf(t){return ke(Pr(t))}function Nu(t){const e=document.activeElement;if(!Ue(e))return!1;const n=e.nodeName;return ke(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 Ro(t){return Ga(t)||t.isToken()}function Bn(t){return Ro(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 X(t)||so(t)||ke(t)}function Kle(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=""+Wle++;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 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&&X(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),Ri||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 Gle(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Se(t,e,n){return Gle(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 Se(t,"a",Mn)}function Yle(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:Ue(t)?t.ownerDocument:null}function Jle(t){Ge(),Oe()._updateTags.add(t)}function Xle(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 Qle(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)||ke(e)||Z(99)}function ece(t){const e=We(t);return e===null&&Z(63,t),e}function Jl(t){return(ke(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 tce(t){const e=Lu(t);return e?e.getSelection():null}function $m(t){return Ue(t)&&t.tagName==="A"}function Ue(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 Vt(t){if(ke(t)&&!t.isInline())return!0;if(!R(t)||ut(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ol(){return Oe()}const Ef=new WeakMap,nce=new Map;function xf(t){if(!t._readOnly&&t.isEmpty())return nce;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 oce(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 rce(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 ice(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},sce={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 ace={root:Re,shadowRoot:ut};function Zr(t){return sce[t]}function Fu(t,e="root"){return ace[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 lce={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}}},cce={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}}},uce={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 cce[e](t):null}function Qo(t,e,n){return t?new lce[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 fce(t,e)}function rn(t,e){return R(t)?new uce[e](t):null}function dce(t){return t&&t.getChildCaret()||t}function Vu(t){return t&&dce(t.getAdjacentCaret())}class Ru{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 Ru(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:Vu(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 fce{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 pce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&Z(265),new Ru(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 Rn(t,e){const{type:n,key:o,offset:r}=t,s=ece(t.key);return n==="text"?(X(s)||Z(266,s.getType(),o),Qo(s,e,r)):(R(s)||Z(267,s.getType(),o),gce(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)?X(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 hce(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=Rn(e,"next"),r=Rn(n,"next"),s=Im(o,r)<=0?"next":"previous";return ho(Vr(o,s),Vr(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 mce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Vm(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 S=(x,M)=>{let B;for(let $=b;$<x.length;$++){const O=x[$];if(ut(O))return;!B&&M(O)&&(B=O)}return B},T=S(v,Vt),A=T&&S(w,x=>C.has(x.getKey())&&Vt(x));return T&&A?[T,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 pce(Vr(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=Vu(s);if(!yn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return ao(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&X(o.origin)?Qo(o.origin,n,Zr(n)):e}function Fm(t){return ao(t)&&t.offset!==lo(t.origin,t.direction)}function Vr(t,e){return t.direction===e?t:t.getFlipped()}function Vm(t,e){return t.direction===e?t:ho(Vr(t.focus,e),Vr(t.anchor,e))}function gce(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 Vr(o,n)}const Pc=new Map;function Rm(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=Rm(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=oce(e)),e.__text=y)}}return e}function vce(t){const e=t.getStyle(),n=Rm(e);Pc.set(e,n)}function yce(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=yce){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(),Vt),u=qt(l.getNode(),Vt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Vt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Vt);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())&&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 R(e)?zm(e):Um(e)}function Bf(t,e){let n=Hm(t)?!e:e;Wm(t)&&(n=!n);const o=Rn(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(ke(r.origin))return!0;break}}return!1}function _ce(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,_ce(t,e,r,"character")}function Cce(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,bce=qu&&"documentMode"in document?document.documentMode:null;!(!qu||!("InputEvent"in window)||bce)&&"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 kce=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 wce(t){return t?t.getAdjacentCaret():null}function Ece(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function xce(t){const e=qt(t,n=>R(n)&&!n.isInline());return R(e)||Cce(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(we(n)){const o=n.getParent();if(de(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function Vc(t){let e=t.getParent();de(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),de(n)&&(e=n);return e}function Km(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();de(s)?e=e.concat(Km(s)):e.push(r)}return e}function hn(t){return we(t)&&de(t.getFirstChild())}function Of(t){return It().append(t)}function Gm(t,e){return we(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(we(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()&&!we(s)&&!o.has(s.getKey())){If(s,t);continue}let a=Em(s)?s.getParent():we(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(de(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(de(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),de(n)&&e===n.getListType())n.append(r),de(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(de(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 Sce(){const t=te();if(W(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Gm(o,n))e.add(Vc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Em(s)){const a=Ece(s,Co);a!=null&&e.add(Vc(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())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),de(o.getFirstChild())||n++)}function Tce(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(de(s)){s.append(t);const a=o.getFirstChild();de(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(de(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();de(s)&&s.append(t)}else if(de(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 Ace(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(de(n?n.getParent():void 0)&&we(n)&&de(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 Nce(){const t=te();if(!W(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Vc(e),o=e.getParent();de(o)||ro(40);const r=o.getParent();let s;if(ut(r))s=De(),n.insertAfter(s);else{if(!we(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(we(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||!we(u)&&!de(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();de(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Dce,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();!de(d)||d.getListType()!=="check"||de(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=de(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=>de(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(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!de(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(de(r)||ro(39),we(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=we(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 de(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(;we(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?(Tce(this),o++):(Ace(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(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 Dce(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 we(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=Bce[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();de(r)&&o.getListType()===r.getListType()&&ju(o,r)})(n),Ym(n)},extends:Lt,importDOM:{ol:()=>({conversion:Vf,priority:0}),ul:()=>({conversion:Vf,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 Ue(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];we(l)||(s===r&&(s=[...r]),s[a]=It().append(!R(l)||de(l)||l.isInline()?l:Ie(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return we(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 Mce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{de(s)&&e.push(Of(s))})}else e.push(Of(o))}return e}function Vf(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(Ue(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Ct("check"):Ct("bullet")),{after:Mce,node:n}}const Bce={ol:"number",ul:"bullet"};function Ct(t="number",e=1){return ln(new or(t,e))}function de(t){return t instanceof or}const $ce=ce("UPDATE_LIST_START_COMMAND"),Jm=ce("INSERT_UNORDERED_LIST_COMMAND"),Xm=ce("INSERT_ORDERED_LIST_COMMAND"),Oce=ce("REMOVE_LIST_COMMAND");function Lce(t){return ds(t.registerCommand(Xm,()=>(Lf("number"),!0),gi),t.registerCommand($ce,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!de(r)&&(r.getListType()==="number"&&(r.setStart(o),Ym(r)),!0)},gi),t.registerCommand(Jm,()=>(Lf("bullet"),!0),gi),t.registerCommand(Oce,()=>(Sce(),!0),gi),t.registerCommand(Hi,()=>Nce(),gi),t.registerNodeTransform(Co,e=>{const n=e.getFirstChild();if(n){if(X(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(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Ice(t){const e=n=>{const o=n.getParent();if(de(n.getFirstChild())||!de(o))return;const r=qt(n,s=>we(s)&&de(s.getParent())&&we(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const s=r.getPreviousSibling();if(we(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;de(d);){const f=d.getLastChild();if(!we(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(de(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(de(r)){for(const s of r.getChildren())if(we(s)){e(s);const a=s.getFirstChild();de(a)&&o.push(a)}}}})}function Pce(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 Fce(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&&X(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((Ue(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=Vce(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 Vce(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 Rce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?"":Fce(t,e)}function zce(t,e=te()){return e==null&&ya(166),W(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Uce(t,e))}function Rf(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,qce(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,Pce(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
31
  `?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function zf(t,e,n){t.dispatchCommand(ule,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(W(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Rn(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(X(c.origin)){s=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(s&&X(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&&X(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);X(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 Uce(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 qce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=zle(o);X(r)&&vce(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),qle);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=Hce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(jce(o,n),!0)}const og=[["text/html",Rce],["application/x-lexical-editor",zce]];function Hce(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 jce(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 Wce(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(X(C)&&u>=0&&d>=0&&(_=u,y=u+d,m.setTextNodeRange(C,_,C,y)),_===y&&f===""||(m.insertRawText(f),C=g.getNode()),X(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,Zce=rr&&"documentMode"in document?document.documentMode:null,Kce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Gce=!(!rr||!("InputEvent"in window)||Zce)&&"getTargetRanges"in new window.InputEvent("input"),Yce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Xce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Kce&&!Jce,Wf=ce("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:Qce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ue(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 Rc(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(Ue(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 Qce(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 ke(e)}function ec(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function eue(t){return ds(t.registerCommand(Fh,e=>{const n=te();return!!Nt(n)&&(n.clear(),!0)},Ce),t.registerCommand(Vo,e=>{const n=te();return W(n)?(n.deleteCharacter(e),!0):!!Nt(n)&&(n.deleteNodes(),!0)},Ce),t.registerCommand(ji,e=>{const n=te();return!!W(n)&&(n.deleteWord(e),!0)},Ce),t.registerCommand(Wi,e=>{const n=te();return!!W(n)&&(n.deleteLine(e),!0)},Ce),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)Rf(o,n,t);else if(W(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},Ce),t.registerCommand(kc,()=>{const e=te();return!!W(e)&&(e.removeText(),!0)},Ce),t.registerCommand(Rt,e=>{const n=te();return!!W(n)&&(n.formatText(e),!0)},Ce),t.registerCommand(gle,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},Ce),t.registerCommand(wr,e=>{const n=te();return!!W(n)&&(n.insertLineBreak(e),!0)},Ce),t.registerCommand(Hi,()=>{const e=te();return!!W(e)&&(e.insertParagraph(),!0)},Ce),t.registerCommand(hle,()=>(Fle([Hr()]),!0),Ce),t.registerCommand(mle,()=>Kf(e=>{const n=e.getIndent();e.setIndent(n+1)}),Ce),t.registerCommand(j1,()=>Kf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),Ce),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&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},Ce),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&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},Ce),t.registerCommand(Rh,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},Ce),t.registerCommand(Vh,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)},Ce),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=xce(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(Vo,!0)},Ce),t.registerCommand(Wh,e=>{if(Gf(e.target))return!1;const n=te();return!(!W(n)&&!Nt(n))&&(e.preventDefault(),t.dispatchCommand(Vo,!1))},Ce),t.registerCommand(la,e=>{const n=te();if(!W(n))return!1;if(ec(n),e!==null){if((jf||Yce||Xce)&&Gce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},Ce),t.registerCommand(jh,()=>{const e=te();return!!W(e)&&(t.blur(),!0)},Ce),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(X(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)},Ce),t.registerCommand(Gh,e=>{const[n]=Fs(e),o=te();return!(n&&!W(o))},Ce),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);ke(s)&&e.preventDefault()}return!0},Ce),t.registerCommand(wc,()=>(Yle(),!0),Ce),t.registerCommand(Ka,e=>(Uf(t,Lo(e,ClipboardEvent)?e:null),!0),Ce),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),Ce),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&&Rf(l,a,s)},{tag:xle})}(e,t),!0)},Ce),t.registerCommand(qh,e=>{const n=te();return W(n)&&ec(n),!1},Ce),t.registerCommand(Zh,e=>{const n=te();return W(n)&&ec(n),!1},Ce))}var tue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
@@ -35,8 +35,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
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 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,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],x={};for(var S in b)if(b.hasOwnProperty(S)){if(S==v)for(var T in w)w.hasOwnProperty(T)&&(x[T]=w[T]);w.hasOwnProperty(S)||(x[S]=b[S])}var A=k[y];return k[y]=x,l.languages.DFS(l.languages,function(N,D){D===A&&N!=y&&(this[N]=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 T=v[S],A=l.util.type(T);A==="Object"&&!b[x(T)]?(b[x(T)]=!0,y(T,w,null,b)):A==="Array"&&!b[x(T)]&&(b[x(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,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,T={element:y,language:k,grammar:b,code:S};function A(D){T.highlightedCode=D,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),x=T.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.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 N=new Worker(l.filename);N.onmessage=function(D){A(D.data)},N.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},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 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 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 T=w[S];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(x&&x.cause==S+","+A)return;var N=T[A],D=N.inside,$=!!N.lookbehind,O=!!N.greedy,P=N.alias;if(O&&!N.pattern.global){var F=N.pattern.toString().match(/[imsuy]*$/)[0];N.pattern=RegExp(N.pattern.source,F+"g")}for(var Z=N.pattern||N,V=k.next,M=b;V!==v.tail&&!(x&&M>=x.reach);M+=V.value.length,V=V.next){var G=V.value;if(v.length>y.length)return;if(!(G instanceof c)){var z=1,H;if(O){if(H=u(Z,M,y,$),!H||H.index>=y.length)break;var U=H.index,ue=H.index+H[0].length,Q=M;for(Q+=V.value.length;U>=Q;)V=V.next,Q+=V.value.length;if(Q-=V.value.length,M=Q,V.value instanceof c)continue;for(var ie=V;ie!==v.tail&&(Q<ue||typeof ie.value=="string");ie=ie.next)z++,Q+=ie.value.length;z--,G=y.slice(M,Q),H.index-=M}else if(H=u(Z,0,G,$),!H)continue;var U=H.index,ne=H[0],ge=G.slice(0,U),I=G.slice(U+ne.length),ee=M+G.length;x&&ee>x.reach&&(x.reach=ee);var ve=V.prev;ge&&(ve=p(v,ve,ge),M+=ge.length),h(v,ve,z);var he=new c(S,D?l.tokenize(ne,D):ne,P,ne);if(V=p(v,ve,he),I&&p(v,V,I),z>1){var Ve={cause:S+","+A,reach:ee};d(y,v,w,V.prev,M,Ve),x&&Ve.reach>x.reach&&(x.reach=Ve.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),T=x[0],A=x[1]==null?S.length:x[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)}}()})(tue);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(Ue(n)&&n.tagName===e)return!0;ag(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Vs="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(Vs,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(Vs,c):u&&o.removeAttribute(Vs);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(Vs,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:nue,priority:1}),pre:()=>({conversion:Yf,priority:0}),table:n=>tc(n)?{conversion:oue,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 S in v)v.hasOwnProperty(S)&&(k[S]=y(v[S],w));return k;case"Array":return b=l.util.objId(v),w[b]?w[b]:(k=[],w[b]=k,v.forEach(function(T,A){k[A]=y(T,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],S={};for(var T in b)if(b.hasOwnProperty(T)){if(T==v)for(var A in w)w.hasOwnProperty(A)&&(S[A]=w[A]);w.hasOwnProperty(T)||(S[T]=b[T])}var x=k[y];return k[y]=S,l.languages.DFS(l.languages,function(M,B){B===x&&M!=y&&(this[M]=S)}),S},DFS:function y(v,w,k,b){b=b||{};var S=l.util.objId;for(var T in v)if(v.hasOwnProperty(T)){w.call(v,T,v[T],k||T);var A=v[T],x=l.util.type(A);x==="Object"&&!b[S(A)]?(b[S(A)]=!0,y(A,w,null,b)):x==="Array"&&!b[S(A)]&&(b[S(A)]=!0,y(A,w,T,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,S;S=k.elements[b++];)l.highlightElement(S,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 S=y.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(S,k);var T=y.textContent,A={element:y,language:k,grammar:b,code:T};function x(B){A.highlightedCode=B,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),S=A.element.parentElement,S&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.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){x(l.util.encode(A.code));return}if(v&&o.Worker){var M=new Worker(l.filename);M.onmessage=function(B){x(B.data)},M.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else x(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(x){k+=y(x,w)}),k}var b={type:v.type,content:y(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},S=v.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(b.classes,S):b.classes.push(S)),l.hooks.run("wrap",b);var T="";for(var A in b.attributes)T+=" "+A+'="'+(b.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+T+">"+b.content+"</"+b.tag+">"};function u(y,v,w,k){y.lastIndex=v;var b=y.exec(w);if(b&&k&&b[1]){var S=b[1].length;b.index+=S,b[0]=b[0].slice(S)}return b}function d(y,v,w,k,b,S){for(var T in w)if(!(!w.hasOwnProperty(T)||!w[T])){var A=w[T];A=Array.isArray(A)?A:[A];for(var x=0;x<A.length;++x){if(S&&S.cause==T+","+x)return;var M=A[x],B=M.inside,$=!!M.lookbehind,O=!!M.greedy,P=M.alias;if(O&&!M.pattern.global){var F=M.pattern.toString().match(/[imsuy]*$/)[0];M.pattern=RegExp(M.pattern.source,F+"g")}for(var K=M.pattern||M,V=k.next,N=b;V!==v.tail&&!(S&&N>=S.reach);N+=V.value.length,V=V.next){var G=V.value;if(v.length>y.length)return;if(!(G instanceof c)){var z=1,H;if(O){if(H=u(K,N,y,$),!H||H.index>=y.length)break;var U=H.index,ue=H.index+H[0].length,Q=N;for(Q+=V.value.length;U>=Q;)V=V.next,Q+=V.value.length;if(Q-=V.value.length,N=Q,V.value instanceof c)continue;for(var ie=V;ie!==v.tail&&(Q<ue||typeof ie.value=="string");ie=ie.next)z++,Q+=ie.value.length;z--,G=y.slice(N,Q),H.index-=N}else if(H=u(K,0,G,$),!H)continue;var U=H.index,ne=H[0],ge=G.slice(0,U),I=G.slice(U+ne.length),ee=N+G.length;S&&ee>S.reach&&(S.reach=ee);var ve=V.prev;ge&&(ve=p(v,ve,ge),N+=ge.length),h(v,ve,z);var he=new c(T,B?l.tokenize(ne,B):ne,P,ne);if(V=p(v,ve,he),I&&p(v,V,I),z>1){var Ve={cause:T+","+x,reach:ee};d(y,v,w,V.prev,N,Ve),S&&Ve.reach>S.reach&&(S.reach=Ve.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 S=h(C.getAttribute("data-range"));if(S){var T=b.split(/\r\n?|\n/g),A=S[0],x=S[1]==null?T.length:S[1];A<0&&(A+=T.length),A=Math.max(0,Math.min(A-1,T.length)),x<0&&(x+=T.length),x=Math.max(0,Math.min(x,T.length)),b=T.slice(A,x).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)}}()})(tue);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(Ue(n)&&n.tagName===e)return!0;ag(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Vs="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(Vs,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(Vs,c):u&&o.removeAttribute(Vs);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(Vs,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:nue,priority:1}),pre:()=>({conversion:Yf,priority:0}),table:n=>tc(n)?{conversion:oue,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(X(c)){let u=iue(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 ice(sl).setLanguage(t).setTheme(e)}function al(t){return t instanceof sl}function Yf(t){return{node:vn(t.getAttribute(ki))}}function nue(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 oue(){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 rue(t,e){let n=t;for(let o=et(t,e);o&&(fg(o.origin)||Ga(o.origin));o=wce(o))n=o.origin;return n}function iue(t){return rue(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
  ?|
@@ -47,12 +47,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
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(Rc(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)=>de(t)?Gu(t,e,0):null,regExp:hg,replace:yg("bullet"),type:"element"},kg={dependencies:[or,Co],export:(t,e)=>de(t)?Gu(t,e,0):null,regExp:pg,replace:yg("number"),type:"element"},wg={format:["code"],tag:"`",type:"text-format"},wue={format:["highlight"],tag:"==",type:"text-format"},Eg={format:["bold","italic"],tag:"***",type:"text-format"},Eue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},xg={format:["bold"],tag:"**",type:"text-format"},xue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Sg={format:["strikethrough"],tag:"~~",type:"text-format"},Tg={format:["italic"],tag:"*",type:"text-format"},Sue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Tue={dependencies:[Kr],export:(t,e,n)=>{if(!lue(t)||cue(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"},Aue=[_g,kue,bg,kg],Nue=[Cg],Due=[wg,Eg,Eue,xg,xue,wue,Tg,Sue,Sg],Mue=[Tue],Yu=[...Aue,...Nue,...Due,...Mue];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 Bue(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)||vue(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(X(S)){if(S.hasFormat("code"))continue;const Z=S.getTextContent();b=S,x=sp(Z,Z.length,_)}if(x<0||b===k&&x+y===v)continue;const T=b.getTextContent();if(x>0&&T[x-1]===m)continue;const A=T[x-1];if(C.intraword===!1&&A&&!Ca.test(A))continue;const N=k.getTextContent(),D=N.slice(0,v)+N.slice(h+1);k.setTextContent(D);const $=b===k?D:T;b.setTextContent($.slice(0,x)+$.slice(x+y));const O=te(),P=Ja();nt(P);const F=h-y*(b===k?2:1)+1;P.anchor.set(b.__key,x,"text"),P.focus.set(k.__key,F,"text");for(const Z of C.format)P.hasFormat(Z)||P.formatText(Z);P.anchor.set(P.focus.key,P.focus.offset,P.focus.type);for(const Z of C.format)P.hasFormat(Z)&&P.toggleFormat(Z);return W(O)&&(P.format=O.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);!X(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 $ue(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)=>de(t)?Gu(t,e,0):null,regExp:hg,replace:yg("bullet"),type:"element"},kg={dependencies:[or,Co],export:(t,e)=>de(t)?Gu(t,e,0):null,regExp:pg,replace:yg("number"),type:"element"},wg={format:["code"],tag:"`",type:"text-format"},wue={format:["highlight"],tag:"==",type:"text-format"},Eg={format:["bold","italic"],tag:"***",type:"text-format"},Eue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},xg={format:["bold"],tag:"**",type:"text-format"},xue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Sg={format:["strikethrough"],tag:"~~",type:"text-format"},Tg={format:["italic"],tag:"*",type:"text-format"},Sue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Tue={dependencies:[Kr],export:(t,e,n)=>{if(!lue(t)||cue(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"},Aue=[_g,kue,bg,kg],Nue=[Cg],Due=[wg,Eg,Eue,xg,xue,wue,Tg,Sue,Sg],Mue=[Tue],Yu=[...Aue,...Nue,...Due,...Mue];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 Bue(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)||vue(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,S=sp(p,v,_),T=b;for(;S<0&&(T=T.getPreviousSibling())&&!so(T);)if(X(T)){if(T.hasFormat("code"))continue;const K=T.getTextContent();b=T,S=sp(K,K.length,_)}if(S<0||b===k&&S+y===v)continue;const A=b.getTextContent();if(S>0&&A[S-1]===m)continue;const x=A[S-1];if(C.intraword===!1&&x&&!Ca.test(x))continue;const M=k.getTextContent(),B=M.slice(0,v)+M.slice(h+1);k.setTextContent(B);const $=b===k?B:A;b.setTextContent($.slice(0,S)+$.slice(S+y));const O=te(),P=Ja();nt(P);const F=h-y*(b===k?2:1)+1;P.anchor.set(b.__key,S,"text"),P.focus.set(k.__key,F,"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(O)&&(P.format=O.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);!X(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 $ue(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];_ue.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)||yue.test(p)||Cue.test(p)||bue.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 hue(e,o)(s,n)}function Oue(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=fue(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 Lue=process.env.NODE_ENV==="production",oc="Invariant failed";function Iue(t,e){if(!t){if(Lue)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"),Pue=(()=>{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=jle({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=kce?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||Iue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Fue(t,e){if(t==null)return{};var n=Vue(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 Vue(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 Rue=(()=>{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(()=>Fue(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 zue(){return Le().getTextContent()}function Uue(t,e=!0){if(t)return!1;let n=zue();return e&&(n=n.trim()),n===""}function que(t){if(!Uue(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(ke(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(!X(c))return!1}}}return!0}function Dg(t){return()=>que(t)}function Hue(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=Hue(t);n.value=r}return i.onMounted(()=>{const r=ds(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function jue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wue(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){jue(t,r,n[r])})}return t}function Zue(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 Kue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Zue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Gue=(()=>{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(Rue),i.mergeProps({editor:i.unref(s)},Kue(Wue({},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 Yue(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)&&X(y)&&y.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(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 Jue(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=Yue(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(Ele);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"||!X(w)||!X(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 Xue(t,e,n){const o=Jue(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),Ce),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),Ce),t.registerCommand(yle,()=>(ap(e),!1),Ce),t.registerCommand(_le,()=>(ap(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),Ce),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 Que(){return{current:null,redoStack:[],undoStack:[]}}function ede(t,e,n){const o=i.computed(()=>i.toValue(e)||Que());i.watchEffect(r=>{const s=Xue(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const tde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return ede(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function nde(t){i.onMounted(()=>{const e=Lce(t);i.onUnmounted(()=>{e()})})}const ode=(()=>{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=Ice(s);a(l)}),nde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function rde(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 ide=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=rde(t);return()=>e.value}});function sde(t){i.onMounted(()=>{const e=ds(eue(t),Wce(t));i.onUnmounted(e)})}const ade=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Mg(r);return sde(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(ide))],64))}});return t.__vue_vine=!0,t})(),rc=[_g,Cg,bg,kg,Eg,xg,Tg,Sg,wg],lde={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");console.log("[AoLexicalEditor] setup");const 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:()=>{$ue(o.initialMarkdown||"",rc)},onError(N){console.error("Lexical error:",N)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:N=>!0,blockStyleChange:N=>!0,selectionChange:N=>!0},setup(N,{emit:D}){const $=Gr();let O=null,P=null;function F(){console.count("[AoLexicalEditor] updateSelectionState"),$.getEditorState().read(()=>{const Z=te();if(!W(Z))return;D("selectionChange",Z.clone());const V=Z.anchor.getNode(),M=V.getKey()==="root"?V:V.getTopLevelElementOrThrow();if(sg(M)){const G=M.getTag();if(G==="h1"||G==="h2"||G==="h3"){D("blockStyleChange",G);return}}if(al(M)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{console.log("[AoLexicalEditor] EditorBridge mounted"),D("ready",$),F(),P=Bue($,rc),O=$.registerUpdateListener(({dirtyElements:Z,dirtyLeaves:V})=>{console.count("[AoLexicalEditor] registerUpdateListener"),console.log("[AoLexicalEditor] update",{dirtyElements:Z.size,dirtyLeaves:V.size}),F()})}),i.onUnmounted(()=>{console.log("[AoLexicalEditor] EditorBridge unmounted"),P==null||P(),O==null||O()}),()=>null}});function f(N){console.count("[AoLexicalEditor] ready"),s.value=N,r("ready",N)}function p(N){console.count("[AoLexicalEditor] selectionChange"),a.value=N}function h(N){console.count("[AoLexicalEditor] blockStyleChange"),l.value=N}function m(N){r("keydown",N)}function g(){a.value&&nt(a.value.clone())}function C(N){const D=s.value;D&&(D.update(()=>{g(),N()}),D.focus())}function _(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Rt,"bold"),N.focus())}function y(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Rt,"italic"),N.focus())}function v(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Rt,"strikethrough"),N.focus())}function w(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Rt,"code"),N.focus())}function k(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Jm,void 0),N.focus())}function b(){const N=s.value;N&&(N.update(()=>{g()}),N.dispatchCommand(Xm,void 0),N.focus())}function x(N){C(()=>{const D=te();if(W(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),N==="paragraph"){Ql(D,()=>De());return}if(N==="code"){Ql(D,()=>vn());return}Ql(D,()=>Io(N))}}),l.value=N}function S(){const N=s.value;return N?N.getEditorState().read(()=>Oue(rc)):""}function T(){const N=s.value;N&&N.update(()=>{const D=Le();D.clear(),D.append(De())})}function A(){var N;(N=s.value)==null||N.focus()}return e({toggleBold:_,toggleItalic:y,toggleStrikethrough:v,toggleInlineCode:w,insertBulletList:k,insertNumberedList:b,setBlockStyle:x,getMarkdown:S,clear:T,focus:A,blockStyle:l}),(N,D)=>(i.openBlock(),i.createBlock(i.unref(Pue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(N.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(ade),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Gue),{class:"ao-lexical-editor__content",onKeydown:m},{placeholder:i.withCtx(()=>[i.createElementVNode("div",lde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(tde)),i.createVNode(i.unref(ode)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:h,onSelectionChange:p})]),_:3}))}});function cde(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(!X(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(!X(_))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 T=b+x.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 ude={key:0,class:"ao-comment-editor__toolbar"},dde=["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}=cde(a,c);let _,y;const v=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{_==null||_(),y!==void 0&&window.clearTimeout(y)});function w(D){a.value=D,_==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 O;y=void 0;const D=(O=a.value)==null?void 0:O.getRootElement(),$=document.activeElement;D&&$ instanceof Node&&D.contains($)||l.value&&(l.value=!1,r("blur"))},100)}function x(D){if(!m(D)){if(D.key==="Enter"&&(D.ctrlKey||D.metaKey)){D.preventDefault(),S();return}if(D.key==="Escape"){if(u.value){g();return}D.preventDefault(),T()}}}function S(){const D=s.value;if(!D)return;const $=D.getMarkdown();$.trim()&&r("submit",$)}function T(){g(),r("cancel")}function A(){var D;(D=s.value)==null||D.clear(),g()}function N(){var D;(D=s.value)==null||D.focus()}return e({submit:S,cancel:T,reset:A,focus:N}),(D,$)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[v.value?(i.openBlock(),i.createElementBlock("div",ude,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=i.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=O=>{var P;return(P=s.value)==null?void 0:P.toggleBold()})},[...$[14]||($[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=i.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=O=>{var P;return(P=s.value)==null?void 0:P.toggleItalic()})},[...$[15]||($[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=i.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=O=>{var P;return(P=s.value)==null?void 0:P.toggleStrikethrough()})},[...$[16]||($[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=i.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=O=>{var P;return(P=s.value)==null?void 0:P.toggleInlineCode()})},[...$[17]||($[17]=[i.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[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:$[8]||($[8]=i.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=O=>{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:$[10]||($[10]=i.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=O=>{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),(O,P)=>(i.openBlock(),i.createElementBlock("li",{key:O.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":P===i.unref(p)}),onMousedown:$[12]||($[12]=i.withModifiers(()=>{},["prevent"])),onClick:F=>i.unref(h)(O.name)}," @"+i.toDisplayString(O.name),43,dde))),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:$[13]||($[13]=i.withModifiers(()=>{},["prevent"])),onClick:S},[i.createVNode(be,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const fde={class:"ao-comment"},pde={class:"ao-comment__created-at"},hde={class:"ao-comment__body"},mde={class:"ao-comment__content-wrapper"},gde={key:0,class:"ao-comment__footer"},vde=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 _&&V7(_,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",fde,[i.createElementVNode("span",pde,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",hde,[i.createElementVNode("div",mde,[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",gde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(me,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(me,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(me,{label:m.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(me,{label:m.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const yde={class:"ao-comments__new"},_de={key:0,class:"ao-comments__list"},Cde=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)=>Ny(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",yde,[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",_de,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,h=>(i.openBlock(),i.createBlock(vde,{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 bde=["aria-label"],kde={class:"ao-file-preview__actions"},wde=["aria-label"],Ede={key:0,class:"ao-file-preview__loading"},xde=["src","alt"],Sde=["src","title"],Tde={key:3,class:"ao-file-preview__fallback"},Ade={class:"ao-file-preview__fallback-title"},Nde={class:"ao-file-preview__fallback-filename"},Dde=["aria-label"],Mde={key:2,class:"ao-file-preview__info"},Bde=["title"],$de={key:0,class:"ao-file-preview__info-counter"},Ode={key:3,class:"ao-file-preview__info"},Lde={class:"ao-file-preview__info-counter"},Ide=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(null),s=i.ref(!1),a=i.ref(!1);let l=0;const c=i.computed(()=>n.attachments[n.currentIndex]),u=i.computed(()=>n.currentIndex===0),d=i.computed(()=>n.currentIndex===n.attachments.length-1),f=i.computed(()=>{var A,N;return((N=(A=c.value)==null?void 0:A.mimeType)==null?void 0:N.toLowerCase())??""}),p=i.computed(()=>{var A;return((A=c.value)==null?void 0:A.name)??""}),h=i.computed(()=>{var A;return((A=p.value.split(".").pop())==null?void 0:A.toLowerCase())??""}),m=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(h.value)),g=i.computed(()=>f.value==="application/pdf"||h.value==="pdf"),C=i.computed(()=>m.value||g.value),_=i.computed(()=>m.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function y(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function v(){const A=c.value,N=++l;if(y(),a.value=!1,s.value=!1,!A||!C.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const D=await n.loadPreview(A);if(N!==l)return;if(!D.size)throw new Error("Empty file received");r.value=URL.createObjectURL(D)}catch(D){if(N!==l)return;console.error("Failed to load attachment preview:",D),a.value=!0}finally{N===l&&(s.value=!1)}}function w(){u.value||o("update:currentIndex",n.currentIndex-1)}function k(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const A=c.value;if(!(A!=null&&A.url))return;const N=document.createElement("a");N.href=A.url,N.download=A.name,N.target="_blank",N.rel="noopener noreferrer",document.body.appendChild(N),N.click(),N.remove()}function x(){y(),a.value=!0}function S(){++l,y(),o("close")}function T(A){switch(A.key){case"Escape":S();break;case"ArrowLeft":w();break;case"ArrowRight":k();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){S();return}v()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",T)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",T),y()}),(A,N)=>{var D,$,O,P,F,Z;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(D=c.value)==null?void 0:D.name},[i.createElementVNode("div",kde,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(be,{name:"DownloadRounded",size:"sm"}),N[2]||(N[2]=i.createElementVNode("span",null,"Download",-1))]),i.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:i.withModifiers(S,["stop"])},[i.createVNode(be,{name:"CloseRounded",size:"sm"})])]),i.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:S}),u.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":A.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(be,{name:"ArrowBackRounded",size:"lg"})],8,wde)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:N[1]||(N[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",Ede,[...N[3]||(N[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):m.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:x},null,40,xde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:N[0]||(N[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(O=c.value)==null?void 0:O.name,class:"ao-file-preview__pdf"},null,8,Sde)])):(i.openBlock(),i.createElementBlock("div",Tde,[i.createVNode(be,{name:_.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Ade,i.toDisplayString(A.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Nde,i.toDisplayString((P=c.value)==null?void 0:P.name),1),i.createVNode(me,{variant:"solid",color:"primary",size:"sm",label:A.$t("activity.attachment.preview.download"),onClick:b},null,8,["label"])]))]),d.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":A.$t("activity.attachment.preview.next"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(be,{name:"ArrowForwardRounded",size:"lg"})],8,Dde)),m.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Mde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(F=c.value)==null?void 0:F.name},i.toDisplayString((Z=c.value)==null?void 0:Z.name),9,Bde),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",$de,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Ode,[i.createElementVNode("span",Lde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,bde)])}}});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(me,{color:t.modelValue?t.color:i.unref(Wc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Pde=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 Fde=["onClick"],Vde={class:"tab-button__label"},Rde={key:0,class:"tab-button__badge"};function zde(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",Vde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",Rde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Fde))),128))],2)}const fs=oe(Pde,[["render",zde],["__scopeId","data-v-3d268d7b"]]),Ude={class:"ao-rich-text-editor"},qde={class:"ao-rich-text-editor__toolbar"},Hde=["value"],jde={class:"ao-rich-text-editor__actions"},Wde=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",Ude,[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:i.withCtx(()=>{var u;return[i.createElementVNode("div",qde,[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,Hde),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",jde,[i.createVNode(me,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(me,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Zde={class:"ao-activity-details"},Kde={class:"ao-activity-details__main"},Gde={class:"ao-activity-details__header"},Yde={key:1,class:"ao-activity__category"},Jde={class:"ao-feed__activity-details__header"},Xde={key:0,class:"ao-field ao-feed__activity-details__project"},Qde={class:"ao-field__label"},e1e={key:1,class:"ao-field ao-feed__activity-details__project"},t1e={class:"ao-field__label"},n1e={class:"ao-activity-details__content"},o1e={class:"ao-activity-details__tab-content"},r1e={class:"ao-fieldset"},i1e={class:"ao-field__row"},s1e={class:"ao-activity-details__tab-content"},a1e={class:"ao-fieldset"},l1e={class:"ao-fieldset__body"},c1e={class:"ao-activity-details__tab-content"},u1e={key:0,class:"ao-fieldset"},d1e={class:"ao-activity-details__aside"},f1e={class:"ao-activity-details__close-button"},p1e={key:0,class:"ao-activity-details__aside-section"},h1e={class:"ao-field"},m1e={class:"ao-field__label"},g1e={class:"ao-activity-details__aside-section"},v1e={class:"ao-field ao-field--multiselect"},y1e={class:"assignee-inline"},_1e={class:"ao-field__label"},C1e={class:"ao-activity-details__aside-section"},b1e={key:0,class:"ao-field__row"},k1e={class:"ao-field"},w1e={class:"ao-field__label"},E1e=["readonly"],x1e={class:"ao-activity-details__aside-section"},S1e={class:"ao-field__row"},T1e={class:"ao-field ao-field--inline"},A1e={class:"ao-field__label"},N1e=["readonly"],D1e={class:"ao-field__row"},M1e={class:"ao-field ao-field--inline"},B1e={class:"ao-field__label"},$1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},O1e={class:"ao-activity-details__aside-section"},L1e={class:"ao-fieldset ao-activity-details__aside-section"},I1e={class:"ao-fieldset__title"},P1e={class:"ao-fieldset__body"},F1e={class:"ao-field__row"},V1e={class:"ao-field ao-field--multiselect"},R1e={class:"ao-field__label"},z1e={class:"ao-field__row"},U1e={class:"ao-field ao-field--multiselect"},q1e={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:{},loadAttachmentPreview:{}},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 I,ee;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((I=n.activity.tasks)==null?void 0:I.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((ee=n.activity.comments)==null?void 0:ee.length)??0}]}),l=i.computed(()=>{var I;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((I=n.activity.assignee)==null?void 0:I.id):!1}),c=i.ref(!1),u=i.ref(null),d=I=>{o("update:activity",{id:n.activity.id,name:I})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},h=I=>{o("update:activity",{id:n.activity.id,description:I}),c.value=!1},m=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set(I){o("update:activity",{id:n.activity.id,estimation:I})}}),C=i.computed({get(){var ee;const I=(ee=n.timeTrackingData)==null?void 0:ee[n.activity.id];return(I==null?void 0:I.timeSpent)??0},set(){}}),_=i.computed(()=>{var ee;return((ee=n.activity.project)==null?void 0:ee.estimationUnit)==="days"?"d":"h"}),y=i.computed(()=>{var ee;const I=(ee=n.activity.project)==null?void 0:ee.estimationUnit;return Aa(C.value,I)}),v=i.computed({get(){return n.activity.important??!1},set(I){o("update:activity",{id:n.activity.id,important:I})}});i.computed({get(){return n.activity.private??!1},set(I){o("update:activity",{id:n.activity.id,private:I})}});const w=i.computed({get(){return n.activity.deadline},set(I){o("update:activity",{id:n.activity.id,deadline:I})}});i.computed(()=>{var I;return(I=n.activityTypes)==null?void 0:I.map(ee=>({label:ee.name,value:ee.id}))}),i.computed({get(){var I;return(I=n.activity.type)==null?void 0:I.id},set(I){o("update:activity",{id:n.activity.id,typeId:I})}});const k=i.computed(()=>n.templateActivities.filter(I=>I.id!==n.activity.id).map(I=>({label:I.name,value:I.id}))),b=i.computed({get(){var I;return(I=n.activity.dependingOn)==null?void 0:I.map(ee=>ee.id)},set(I){I&&o("update:activity",{id:n.activity.id,dependingOn:I})}}),x=i.computed(()=>k.value.map(I=>{var ee;return{...I,disabled:(ee=n.activity.blocking)==null?void 0:ee.some(ve=>ve.id===I.value)}})),S=i.computed({get(){var I;return(I=n.activity.blocking)==null?void 0:I.map(ee=>ee.id)},set(I){I&&o("update:activity",{id:n.activity.id,blocking:I})}}),T=i.computed(()=>k.value.map(I=>{var ee;return{...I,disabled:(ee=n.activity.dependingOn)==null?void 0:ee.some(ve=>ve.id===I.value)}})),A=I=>{o("addSubtask",I)},N=I=>{o("updateSubtask",I)},D=I=>{o("deleteSubtask",I)};function $(){n.userId?F.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function O(I){F.value=[I]}const P=i.computed(()=>{var ee;const I=new Map;return(ee=n.users)==null||ee.forEach(ve=>{I.has(ve.id)||I.set(ve.id,ve)}),Array.from(I.values()).map(ve=>({label:`${ve.firstName} ${ve.lastName}`,value:ve.id,avatar:ve.avatarUrl}))}),F=i.computed({get(){var I,ee;return(I=n.activity.assignee)!=null&&I.id?[(ee=n.activity.assignee)==null?void 0:ee.id]:[]},set(I){o("update:activity",{id:n.activity.id,assigneeId:I[0]??null})}}),Z=I=>{o("addFiles",{activityId:n.activity.id,files:I})},V=I=>{o("removeFile",{activityId:n.activity.id,file:I})},M=i.computed(()=>n.projects.map(I=>({value:I.id,label:I.name}))),G=i.computed(()=>{var ee,ve,he;const I=(he=(ve=(ee=n.activity)==null?void 0:ee.project)==null?void 0:ve.phases)==null?void 0:he.reduce((Ve,le)=>[...Ve,...le.milestones],[]);return I==null?void 0:I.map(Ve=>({value:Ve.id,label:Ve.name}))}),z=I=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:I})},H=I=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:I})},ue=i.computed(()=>{var I;return(I=n.statuses)==null?void 0:I.map(ee=>({value:ee.id,label:ee.name}))}),Q=I=>{o("update:activity",{id:n.activity.id,statusId:I})},ie=I=>{o("addComment",{...I,activityId:n.activity.id})},U=I=>{o("updateComment",I)},ne=I=>{o("removeComment",I)};i.computed(()=>{var I,ee;return((I=n.activity.createdBy)==null?void 0:I.firstName)&&((ee=n.activity.createdBy)==null?void 0:ee.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ge(){const I=window.location.origin,ee=n.activity.slug,ve=`${I}/activity-feed/slug/${ee}`;navigator.clipboard.writeText(ve).then(()=>{console.log(`Link copied to clipboard: ${ve}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(I,ee)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Da,{onClose:ee[9]||(ee[9]=ve=>I.$emit("close"))},{default:i.withCtx(()=>{var ve,he,Ve;return[i.createElementVNode("div",Zde,[i.createElementVNode("div",Kde,[i.createElementVNode("div",Gde,[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:ge},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",Yde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(at,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),i.createElementVNode("div",Jde,[M.value?(i.openBlock(),i.createElementBlock("label",Xde,[i.createElementVNode("span",Qde,i.toDisplayString(I.$t("activity.project.label")),1),i.createVNode(Dt,{options:M.value,value:(ve=t.activity.project)==null?void 0:ve.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:z},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),G.value?(i.openBlock(),i.createElementBlock("label",e1e,[i.createElementVNode("span",t1e,i.toDisplayString(I.$t("activity.milestone.label")),1),i.createVNode(Dt,{options:G.value,value:(he=t.activity.milestone)==null?void 0:he.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:H},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(I.$slots,"header")]),i.createElementVNode("div",n1e,[i.createVNode(fs,{modelValue:s.value,"onUpdate:modelValue":ee[0]||(ee[0]=le=>s.value=le),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",o1e,[i.createElementVNode("fieldset",r1e,[i.createElementVNode("div",i1e,[i.createVNode(j9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:Z,onRemove:V,onPreview:ee[1]||(ee[1]=le=>u.value=le)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Wde,{key:1,"initial-markdown":f.value,onSave:h,onCancel:m},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:p},[i.createVNode(Ch,{content:f.value},null,8,["content"]),i.createElementVNode("div",null,i.toDisplayString(f.value),1)],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",s1e,[i.createElementVNode("fieldset",a1e,[i.createElementVNode("div",l1e,[i.createVNode($9,{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:N,onDelete:D},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",c1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",u1e,[i.createVNode(Cde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ie,onUpdateComment:U,onRemoveComment:ne},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",d1e,[i.createElementVNode("div",f1e,[i.createVNode(be,{name:"CloseRounded",onClick:ee[2]||(ee[2]=le=>I.$emit("close"))})]),ue.value?(i.openBlock(),i.createElementBlock("div",p1e,[i.createElementVNode("label",h1e,[i.createElementVNode("span",m1e,i.toDisplayString(I.$t("activity.status.label")),1),i.createVNode(Dt,{class:"ao-activity-details__multiselect",options:ue.value,value:(Ve=t.activity.status)==null?void 0:Ve.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Q},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",g1e,[i.createElementVNode("div",v1e,[i.createElementVNode("div",y1e,[i.createElementVNode("span",_1e,i.toDisplayString(I.$t("activity.assignee.label")),1),i.createVNode(me,{label:I.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:$},null,8,["label"])]),i.createVNode(Dt,{modelValue:F.value,"onUpdate:modelValue":ee[3]||(ee[3]=le=>F.value=le),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:P.value,"close-on-select":!0,searchable:!0,placeholder:I.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:O},{tag:i.withCtx(({option:le,handleTagRemove:ft})=>[i.createVNode(Un,{"user-name":le.label,"avatar-url":le.avatar,"is-closable":!0,onClose:xe=>ft(le,xe)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",C1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",b1e,[i.createElementVNode("label",k1e,[i.createElementVNode("span",w1e,i.toDisplayString(I.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[4]||(ee[4]=le=>w.value=le),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,E1e),[[i.vModelText,w.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",x1e,[i.createElementVNode("div",S1e,[i.createElementVNode("label",T1e,[i.createElementVNode("span",A1e,i.toDisplayString(I.$t("activity.estimation.label"))+" ("+i.toDisplayString(_.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[5]||(ee[5]=le=>g.value=le),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,N1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",D1e,[i.createElementVNode("label",M1e,[i.createElementVNode("span",B1e,i.toDisplayString(I.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(_.value)+")",1),i.createElementVNode("span",$1e,i.toDisplayString(y.value),1)])])]),i.createElementVNode("div",O1e,[i.createVNode(Og,{modelValue:v.value,"onUpdate:modelValue":ee[6]||(ee[6]=le=>v.value=le),modelModifiers:{lazy:!0},label:I.$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",L1e,[i.createElementVNode("div",I1e,[i.createVNode(be,{name:"FlowsheetOutlineRounded"}),i.createVNode(at,{level:4,title:I.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",P1e,[i.createElementVNode("div",F1e,[i.createElementVNode("label",V1e,[i.createElementVNode("span",R1e,i.toDisplayString(I.$t("activity.dependingOn.label")),1),i.createVNode(Dt,{modelValue:b.value,"onUpdate:modelValue":ee[7]||(ee[7]=le=>b.value=le),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:x.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",z1e,[i.createElementVNode("label",U1e,[i.createElementVNode("span",q1e,i.toDisplayString(I.$t("activity.blocking.label")),1),i.createVNode(Dt,{modelValue:S.value,"onUpdate:modelValue":ee[8]||(ee[8]=le=>S.value=le),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:T.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(I.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Ide,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":ee[10]||(ee[10]=ve=>u.value=ve),onClose:ee[11]||(ee[11]=ve=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const H1e=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(me,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>y.$emit("close"))})]),_:1}))}});const j1e={class:"ao-template-rules__body"},W1e={class:"ao-template-rules__list"},Z1e=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",j1e,[i.createElementVNode("ul",W1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(H1e,{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 K1e={key:0,class:"ao-template-details"},G1e={class:"ao-template-details__body"},Y1e={class:"ao-template-details__cols"},J1e={class:"ao-template-details__col"},X1e={class:"ao-list__footer"},Q1e={class:"ao-template-details__col"},efe={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 V;return(V=o.templates)==null?void 0:V.find(M=>M.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var V;return(V=s.value)==null?void 0:V.phases},(V,M)=>{a.value&&In(V,M)});const l=i.computed(()=>{var V,M;return(M=(V=s==null?void 0:s.value)==null?void 0:V.phases)==null?void 0:M.find(G=>G.id===o.phaseId)});i.watch(()=>{var V;return(V=l.value)==null?void 0:V.milestones},(V,M)=>{a.value&&In(V,M)});const c=i.computed(()=>{var V,M;return(M=(V=l.value)==null?void 0:V.milestones)==null?void 0:M.find(G=>G.id===o.milestoneId)});i.watch(()=>{var V;return(V=c.value)==null?void 0:V.activities},(V,M)=>{a.value&&In(V,M)});const u=i.computed(()=>{var V,M;return((M=(V=s.value)==null?void 0:V.phases)==null?void 0:M.reduce((G,z)=>{const H=z.milestones||[];return[...G,...H]},[]))||[]}),d=i.computed(()=>{var V,M;return((M=(V=s.value)==null?void 0:V.phases)==null?void 0:M.reduce((G,z)=>{const ue=(z.milestones||[]).reduce((Q,ie)=>ie.activities?[...Q,...ie.activities]:Q,[]);return[...G,...ue]},[]))||[]}),f=i.computed(()=>{var V,M;return(M=(V=c.value)==null?void 0:V.activities)==null?void 0:M.find(G=>G.id===o.activityId)}),p=i.computed(()=>{var V;return((V=s.value)==null?void 0:V.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:V,rank:M}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:$e.PHASES,templateId:o.templateId,item:{name:V,rank:M}})},m=V=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:$e.TEMPLATES,data:{name:V}})},g=V=>{r("removeItem",{itemType:$e.PHASES,templateId:o.templateId,data:{id:V}})},C=(V,M)=>{r("updateItem",{templateId:o.templateId,id:V,itemType:$e.PHASES,data:{name:M}})},_=V=>{r("updateItem",V)},y=V=>{if(!l.value)return;const{name:M,rank:G}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:$e.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,item:{name:M,rank:G,phaseId:V.phaseId}})},v=V=>{r("removeItem",{itemType:$e.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,data:{id:V.id}})},w=V=>{const{id:M,...G}=V;r("updateItem",{itemType:$e.MILESTONES,id:M,templateId:o.templateId,data:G})},k=V=>{const{milestoneId:M}=V;if(!c.value)return;const{name:G,rank:z}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:$e.ACTIVITIES,milestoneId:M,templateId:o.templateId,item:{name:G,rank:z,milestoneId:M}})},b=V=>{var M,G;r("removeItem",{itemType:$e.ACTIVITIES,templateId:o.templateId,phaseId:(M=l.value)==null?void 0:M.id,milestoneId:(G=c.value)==null?void 0:G.id,data:{id:V.id}})},x=V=>{const{id:M,...G}=V;r("updateItem",{itemType:$e.ACTIVITIES,id:M,templateId:o.templateId,data:G})},S=i.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},N=V=>{r("removeRule",{id:V,templateId:o.templateId})},D=V=>{var M;if(V.moved){const G=Xi(V,((M=s.value)==null?void 0:M.phases)??[]);r("updateItem",{itemType:$e.PHASES,id:V.moved.element.id,templateId:o.templateId,data:{rank:G}})}},$=V=>{!l.value||!c.value||!f.value||r("addItem",{type:$e.TASKS,activityId:V.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:V})},O=V=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:$e.TASKS,id:V.id,templateId:o.templateId,data:V})},P=V=>{!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:V})},F=V=>{r("addFiles",V)},Z=V=>{r("removeFile",V)};return(V,M)=>{var G,z,H,ue,Q,ie;return s.value?(i.openBlock(),i.createElementBlock("div",K1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:M[1]||(M[1]=U=>V.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(at,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":M[0]||(M[0]=U=>{m(U)})},null,8,["title"])]),_:1}),i.createElementVNode("div",G1e,[i.createElementVNode("ol",Y1e,[i.createElementVNode("li",J1e,[i.createVNode(i.unref(mo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:D},{header:i.withCtx(()=>[i.createVNode(at,{title:V.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:U})=>{var ne;return[i.createVNode(J_,{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:ge=>V.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":ge=>{C(U.id,ge)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",X1e,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:V.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",Q1e,[l.value?(i.openBlock(),i.createBlock(eC,{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",efe,[l.value&&c.value?(i.openBlock(),i.createBlock(oC,{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} / ${(ue=l.value)==null?void 0:ue.name} / ${(Q=c.value)==null?void 0:Q.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,"attachment-enabled":!1,"onUpdate:activity":M[2]||(M[2]=U=>{f.value&&x(U)}),onClose:V.$router.back,onAddSubtask:$,onUpdateSubtask:O,onDeleteSubtask:P,onAddFiles:F,onRemoveFile:Z},{default:i.withCtx(U=>[i.renderSlot(V.$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(Z1e,{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:N},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const tfe={class:"ao-card__content"},nfe={key:0,class:"ao-card__header"},ofe={class:"ao-card__body"},rfe={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",tfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",nfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",ofe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",rfe,[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 Lue=process.env.NODE_ENV==="production",oc="Invariant failed";function Iue(t,e){if(!t){if(Lue)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"),Pue=(()=>{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=jle({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=kce?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||Iue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Fue(t,e){if(t==null)return{};var n=Vue(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 Vue(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 Rue=(()=>{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(()=>Fue(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 zue(){return Le().getTextContent()}function Uue(t,e=!0){if(t)return!1;let n=zue();return e&&(n=n.trim()),n===""}function que(t){if(!Uue(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(ke(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(!X(c))return!1}}}return!0}function Dg(t){return()=>que(t)}function Hue(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=Hue(t);n.value=r}return i.onMounted(()=>{const r=ds(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function jue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wue(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){jue(t,r,n[r])})}return t}function Zue(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 Kue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Zue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Gue=(()=>{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(Rue),i.mergeProps({editor:i.unref(s)},Kue(Wue({},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 Yue(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 S=w.get(b);S!==void 0&&k.push(S)}for(const[b,S]of v){if(!S)continue;const T=w.get(b);T===void 0||Re(T)||k.push(T)}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)&&X(y)&&y.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(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 Jue(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=Yue(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(Ele);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,S=v._selection;return!(W(b)&&W(S)&&b.anchor.type==="element"&&b.focus.type==="element"&&S.anchor.type==="text"&&S.focus.type==="text"||!X(w)||!X(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 Xue(t,e,n){const o=Jue(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),Ce),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),Ce),t.registerCommand(yle,()=>(ap(e),!1),Ce),t.registerCommand(_le,()=>(ap(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),Ce),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 Que(){return{current:null,redoStack:[],undoStack:[]}}function ede(t,e,n){const o=i.computed(()=>i.toValue(e)||Que());i.watchEffect(r=>{const s=Xue(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const tde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return ede(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function nde(t){i.onMounted(()=>{const e=Lce(t);i.onUnmounted(()=>{e()})})}const ode=(()=>{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=Ice(s);a(l)}),nde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function rde(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 ide=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=rde(t);return()=>e.value}});function sde(t){i.onMounted(()=>{const e=ds(eue(t),Wce(t));i.onUnmounted(e)})}const ade=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Mg(r);return sde(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(ide))],64))}});return t.__vue_vine=!0,t})(),rc=[_g,Cg,bg,kg,Eg,xg,Tg,Sg,wg],lde={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:()=>{$ue(o.initialMarkdown||"",rc)},onError(x){console.error("Lexical error:",x)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:x=>!0,blockStyleChange:x=>!0,selectionChange:x=>!0},setup(x,{emit:M}){const B=Gr();let $=null,O=null;function P(){B.getEditorState().read(()=>{const F=te();if(!W(F))return;M("selectionChange",F.clone());const K=F.anchor.getNode(),V=K.getKey()==="root"?K:K.getTopLevelElementOrThrow();if(sg(V)){const N=V.getTag();if(N==="h1"||N==="h2"||N==="h3"){M("blockStyleChange",N);return}}if(al(V)){M("blockStyleChange","code");return}M("blockStyleChange","paragraph")})}return i.onMounted(()=>{M("ready",B),P(),O=Bue(B,rc),$=B.registerUpdateListener(()=>{P()})}),i.onUnmounted(()=>{O==null||O(),$==null||$()}),()=>null}});function f(x){s.value=x,r("ready",x)}function p(x){a.value=x}function h(x){r("keydown",x)}function m(){a.value&&nt(a.value.clone())}function g(x){const M=s.value;M&&(M.update(()=>{m(),x()}),M.focus())}function C(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Rt,"bold"),x.focus())}function _(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Rt,"italic"),x.focus())}function y(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Rt,"strikethrough"),x.focus())}function v(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Rt,"code"),x.focus())}function w(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Jm,void 0),x.focus())}function k(){const x=s.value;x&&(x.update(()=>{m()}),x.dispatchCommand(Xm,void 0),x.focus())}function b(x){g(()=>{const M=te();if(W(M)){if(M.isCollapsed()||M.focus.set(M.anchor.key,M.anchor.offset,M.anchor.type),x==="paragraph"){Ql(M,()=>De());return}if(x==="code"){Ql(M,()=>vn());return}Ql(M,()=>Io(x))}}),l.value=x}function S(){const x=s.value;return x?x.getEditorState().read(()=>Oue(rc)):""}function T(){const x=s.value;x&&x.update(()=>{const M=Le();M.clear(),M.append(De())})}function A(){var x;(x=s.value)==null||x.focus()}return e({toggleBold:C,toggleItalic:_,toggleStrikethrough:y,toggleInlineCode:v,insertBulletList:w,insertNumberedList:k,setBlockStyle:b,getMarkdown:S,clear:T,focus:A,blockStyle:l}),(x,M)=>(i.openBlock(),i.createBlock(i.unref(Pue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(x.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(ade),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Gue),{class:"ao-lexical-editor__content",onKeydown:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",lde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(tde)),i.createVNode(i.unref(ode)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:M[0]||(M[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function cde(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(!X(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(!X(_))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,S=`@${m} `,T=y.slice(0,b)+S+y.slice(v);_.setTextContent(T);const A=b+S.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 ude={key:0,class:"ao-comment-editor__toolbar"},dde=["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}=cde(a,c);let _,y;const v=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{_==null||_(),y!==void 0&&window.clearTimeout(y)});function w(B){a.value=B,_==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 O;y=void 0;const B=(O=a.value)==null?void 0:O.getRootElement(),$=document.activeElement;B&&$ instanceof Node&&B.contains($)||l.value&&(l.value=!1,r("blur"))},100)}function S(B){if(!m(B)){if(B.key==="Enter"&&(B.ctrlKey||B.metaKey)){B.preventDefault(),T();return}if(B.key==="Escape"){if(u.value){g();return}B.preventDefault(),A()}}}function T(){const B=s.value;if(!B)return;const $=B.getMarkdown();$.trim()&&r("submit",$)}function A(){g(),r("cancel")}function x(){var B;(B=s.value)==null||B.clear(),g()}function M(){var B;(B=s.value)==null||B.focus()}return e({submit:T,cancel:A,reset:x,focus:M}),(B,$)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[v.value?(i.openBlock(),i.createElementBlock("div",ude,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=i.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=O=>{var P;return(P=s.value)==null?void 0:P.toggleBold()})},[...$[14]||($[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=i.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=O=>{var P;return(P=s.value)==null?void 0:P.toggleItalic()})},[...$[15]||($[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=i.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=O=>{var P;return(P=s.value)==null?void 0:P.toggleStrikethrough()})},[...$[16]||($[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=i.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=O=>{var P;return(P=s.value)==null?void 0:P.toggleInlineCode()})},[...$[17]||($[17]=[i.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[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:$[8]||($[8]=i.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=O=>{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:$[10]||($[10]=i.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=O=>{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:S},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),(O,P)=>(i.openBlock(),i.createElementBlock("li",{key:O.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":P===i.unref(p)}),onMousedown:$[12]||($[12]=i.withModifiers(()=>{},["prevent"])),onClick:F=>i.unref(h)(O.name)}," @"+i.toDisplayString(O.name),43,dde))),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:$[13]||($[13]=i.withModifiers(()=>{},["prevent"])),onClick:T},[i.createVNode(be,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const fde={class:"ao-comment"},pde={class:"ao-comment__created-at"},hde={class:"ao-comment__body"},mde={class:"ao-comment__content-wrapper"},gde={key:0,class:"ao-comment__footer"},vde=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 _&&V7(_,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",fde,[i.createElementVNode("span",pde,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",hde,[i.createElementVNode("div",mde,[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",gde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(me,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(me,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(me,{label:m.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(me,{label:m.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const yde={class:"ao-comments__new"},_de={key:0,class:"ao-comments__list"},Cde=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)=>Ny(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",yde,[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",_de,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,h=>(i.openBlock(),i.createBlock(vde,{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 bde=["aria-label"],kde={class:"ao-file-preview__actions"},wde=["aria-label"],Ede={key:0,class:"ao-file-preview__loading"},xde=["src","alt"],Sde=["src","title"],Tde={key:3,class:"ao-file-preview__fallback"},Ade={class:"ao-file-preview__fallback-title"},Nde={class:"ao-file-preview__fallback-filename"},Dde=["aria-label"],Mde={key:2,class:"ao-file-preview__info"},Bde=["title"],$de={key:0,class:"ao-file-preview__info-counter"},Ode={key:3,class:"ao-file-preview__info"},Lde={class:"ao-file-preview__info-counter"},Ide=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(null),s=i.ref(!1),a=i.ref(!1);let l=0;const c=i.computed(()=>n.attachments[n.currentIndex]),u=i.computed(()=>n.currentIndex===0),d=i.computed(()=>n.currentIndex===n.attachments.length-1),f=i.computed(()=>{var x,M;return((M=(x=c.value)==null?void 0:x.mimeType)==null?void 0:M.toLowerCase())??""}),p=i.computed(()=>{var x;return((x=c.value)==null?void 0:x.name)??""}),h=i.computed(()=>{var x;return((x=p.value.split(".").pop())==null?void 0:x.toLowerCase())??""}),m=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(h.value)),g=i.computed(()=>f.value==="application/pdf"||h.value==="pdf"),C=i.computed(()=>m.value||g.value),_=i.computed(()=>m.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function y(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function v(){const x=c.value,M=++l;if(y(),a.value=!1,s.value=!1,!x||!C.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const B=await n.loadPreview(x);if(M!==l)return;if(!B.size)throw new Error("Empty file received");r.value=URL.createObjectURL(B)}catch(B){if(M!==l)return;console.error("Failed to load attachment preview:",B),a.value=!0}finally{M===l&&(s.value=!1)}}function w(){u.value||o("update:currentIndex",n.currentIndex-1)}function k(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const x=c.value;if(!(x!=null&&x.url))return;const M=document.createElement("a");M.href=x.url,M.download=x.name,M.target="_blank",M.rel="noopener noreferrer",document.body.appendChild(M),M.click(),M.remove()}function S(){y(),a.value=!0}function T(){++l,y(),o("close")}function A(x){switch(x.key){case"Escape":T();break;case"ArrowLeft":w();break;case"ArrowRight":k();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}v()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",A)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",A),y()}),(x,M)=>{var B,$,O,P,F,K;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(B=c.value)==null?void 0:B.name},[i.createElementVNode("div",kde,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(be,{name:"DownloadRounded",size:"sm"}),M[2]||(M[2]=i.createElementVNode("span",null,"Download",-1))]),i.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:i.withModifiers(T,["stop"])},[i.createVNode(be,{name:"CloseRounded",size:"sm"})])]),i.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:T}),u.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":x.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(be,{name:"ArrowBackRounded",size:"lg"})],8,wde)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:M[1]||(M[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",Ede,[...M[3]||(M[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):m.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:S},null,40,xde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:M[0]||(M[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(O=c.value)==null?void 0:O.name,class:"ao-file-preview__pdf"},null,8,Sde)])):(i.openBlock(),i.createElementBlock("div",Tde,[i.createVNode(be,{name:_.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Ade,i.toDisplayString(x.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Nde,i.toDisplayString((P=c.value)==null?void 0:P.name),1),i.createVNode(me,{variant:"solid",color:"primary",size:"sm",label:x.$t("activity.attachment.preview.download"),onClick:b},null,8,["label"])]))]),d.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":x.$t("activity.attachment.preview.next"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(be,{name:"ArrowForwardRounded",size:"lg"})],8,Dde)),m.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Mde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(F=c.value)==null?void 0:F.name},i.toDisplayString((K=c.value)==null?void 0:K.name),9,Bde),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",$de,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Ode,[i.createElementVNode("span",Lde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,bde)])}}});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(me,{color:t.modelValue?t.color:i.unref(Wc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Pde=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 Fde=["onClick"],Vde={class:"tab-button__label"},Rde={key:0,class:"tab-button__badge"};function zde(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",Vde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",Rde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Fde))),128))],2)}const fs=oe(Pde,[["render",zde],["__scopeId","data-v-3d268d7b"]]),Ude={class:"ao-rich-text-editor"},qde={class:"ao-rich-text-editor__toolbar"},Hde=["value"],jde={class:"ao-rich-text-editor__actions"},Wde=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",Ude,[i.createVNode(Bg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder},{toolbar:i.withCtx(()=>{var u;return[i.createElementVNode("div",qde,[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,Hde),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",jde,[i.createVNode(me,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(me,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Zde={class:"ao-activity-details"},Kde={class:"ao-activity-details__main"},Gde={class:"ao-activity-details__header"},Yde={key:1,class:"ao-activity__category"},Jde={class:"ao-feed__activity-details__header"},Xde={key:0,class:"ao-field ao-feed__activity-details__project"},Qde={class:"ao-field__label"},e1e={key:1,class:"ao-field ao-feed__activity-details__project"},t1e={class:"ao-field__label"},n1e={class:"ao-activity-details__content"},o1e={class:"ao-activity-details__tab-content"},r1e={class:"ao-fieldset"},i1e={class:"ao-field__row"},s1e={class:"ao-activity-details__tab-content"},a1e={class:"ao-fieldset"},l1e={class:"ao-fieldset__body"},c1e={class:"ao-activity-details__tab-content"},u1e={key:0,class:"ao-fieldset"},d1e={class:"ao-activity-details__aside"},f1e={class:"ao-activity-details__close-button"},p1e={key:0,class:"ao-activity-details__aside-section"},h1e={class:"ao-field"},m1e={class:"ao-field__label"},g1e={class:"ao-activity-details__aside-section"},v1e={class:"ao-field ao-field--multiselect"},y1e={class:"assignee-inline"},_1e={class:"ao-field__label"},C1e={class:"ao-activity-details__aside-section"},b1e={key:0,class:"ao-field__row"},k1e={class:"ao-field"},w1e={class:"ao-field__label"},E1e=["readonly"],x1e={class:"ao-activity-details__aside-section"},S1e={class:"ao-field__row"},T1e={class:"ao-field ao-field--inline"},A1e={class:"ao-field__label"},N1e=["readonly"],D1e={class:"ao-field__row"},M1e={class:"ao-field ao-field--inline"},B1e={class:"ao-field__label"},$1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},O1e={class:"ao-activity-details__aside-section"},L1e={class:"ao-fieldset ao-activity-details__aside-section"},I1e={class:"ao-fieldset__title"},P1e={class:"ao-fieldset__body"},F1e={class:"ao-field__row"},V1e={class:"ao-field ao-field--multiselect"},R1e={class:"ao-field__label"},z1e={class:"ao-field__row"},U1e={class:"ao-field ao-field--multiselect"},q1e={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:{},loadAttachmentPreview:{}},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 I,ee;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((I=n.activity.tasks)==null?void 0:I.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((ee=n.activity.comments)==null?void 0:ee.length)??0}]}),l=i.computed(()=>{var I;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((I=n.activity.assignee)==null?void 0:I.id):!1}),c=i.ref(!1),u=i.ref(null),d=I=>{o("update:activity",{id:n.activity.id,name:I})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},h=I=>{o("update:activity",{id:n.activity.id,description:I}),c.value=!1},m=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set(I){o("update:activity",{id:n.activity.id,estimation:I})}}),C=i.computed({get(){var ee;const I=(ee=n.timeTrackingData)==null?void 0:ee[n.activity.id];return(I==null?void 0:I.timeSpent)??0},set(){}}),_=i.computed(()=>{var ee;return((ee=n.activity.project)==null?void 0:ee.estimationUnit)==="days"?"d":"h"}),y=i.computed(()=>{var ee;const I=(ee=n.activity.project)==null?void 0:ee.estimationUnit;return Aa(C.value,I)}),v=i.computed({get(){return n.activity.important??!1},set(I){o("update:activity",{id:n.activity.id,important:I})}});i.computed({get(){return n.activity.private??!1},set(I){o("update:activity",{id:n.activity.id,private:I})}});const w=i.computed({get(){return n.activity.deadline},set(I){o("update:activity",{id:n.activity.id,deadline:I})}});i.computed(()=>{var I;return(I=n.activityTypes)==null?void 0:I.map(ee=>({label:ee.name,value:ee.id}))}),i.computed({get(){var I;return(I=n.activity.type)==null?void 0:I.id},set(I){o("update:activity",{id:n.activity.id,typeId:I})}});const k=i.computed(()=>n.templateActivities.filter(I=>I.id!==n.activity.id).map(I=>({label:I.name,value:I.id}))),b=i.computed({get(){var I;return(I=n.activity.dependingOn)==null?void 0:I.map(ee=>ee.id)},set(I){I&&o("update:activity",{id:n.activity.id,dependingOn:I})}}),S=i.computed(()=>k.value.map(I=>{var ee;return{...I,disabled:(ee=n.activity.blocking)==null?void 0:ee.some(ve=>ve.id===I.value)}})),T=i.computed({get(){var I;return(I=n.activity.blocking)==null?void 0:I.map(ee=>ee.id)},set(I){I&&o("update:activity",{id:n.activity.id,blocking:I})}}),A=i.computed(()=>k.value.map(I=>{var ee;return{...I,disabled:(ee=n.activity.dependingOn)==null?void 0:ee.some(ve=>ve.id===I.value)}})),x=I=>{o("addSubtask",I)},M=I=>{o("updateSubtask",I)},B=I=>{o("deleteSubtask",I)};function $(){n.userId?F.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function O(I){F.value=[I]}const P=i.computed(()=>{var ee;const I=new Map;return(ee=n.users)==null||ee.forEach(ve=>{I.has(ve.id)||I.set(ve.id,ve)}),Array.from(I.values()).map(ve=>({label:`${ve.firstName} ${ve.lastName}`,value:ve.id,avatar:ve.avatarUrl}))}),F=i.computed({get(){var I,ee;return(I=n.activity.assignee)!=null&&I.id?[(ee=n.activity.assignee)==null?void 0:ee.id]:[]},set(I){o("update:activity",{id:n.activity.id,assigneeId:I[0]??null})}}),K=I=>{o("addFiles",{activityId:n.activity.id,files:I})},V=I=>{o("removeFile",{activityId:n.activity.id,file:I})},N=i.computed(()=>n.projects.map(I=>({value:I.id,label:I.name}))),G=i.computed(()=>{var ee,ve,he;const I=(he=(ve=(ee=n.activity)==null?void 0:ee.project)==null?void 0:ve.phases)==null?void 0:he.reduce((Ve,le)=>[...Ve,...le.milestones],[]);return I==null?void 0:I.map(Ve=>({value:Ve.id,label:Ve.name}))}),z=I=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:I})},H=I=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:I})},ue=i.computed(()=>{var I;return(I=n.statuses)==null?void 0:I.map(ee=>({value:ee.id,label:ee.name}))}),Q=I=>{o("update:activity",{id:n.activity.id,statusId:I})},ie=I=>{o("addComment",{...I,activityId:n.activity.id})},U=I=>{o("updateComment",I)},ne=I=>{o("removeComment",I)};i.computed(()=>{var I,ee;return((I=n.activity.createdBy)==null?void 0:I.firstName)&&((ee=n.activity.createdBy)==null?void 0:ee.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function ge(){const I=window.location.origin,ee=n.activity.slug,ve=`${I}/activity-feed/slug/${ee}`;navigator.clipboard.writeText(ve).then(()=>{console.log(`Link copied to clipboard: ${ve}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(I,ee)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Da,{onClose:ee[9]||(ee[9]=ve=>I.$emit("close"))},{default:i.withCtx(()=>{var ve,he,Ve;return[i.createElementVNode("div",Zde,[i.createElementVNode("div",Kde,[i.createElementVNode("div",Gde,[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:ge},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",Yde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(at,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),i.createElementVNode("div",Jde,[N.value?(i.openBlock(),i.createElementBlock("label",Xde,[i.createElementVNode("span",Qde,i.toDisplayString(I.$t("activity.project.label")),1),i.createVNode(Dt,{options:N.value,value:(ve=t.activity.project)==null?void 0:ve.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:z},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),G.value?(i.openBlock(),i.createElementBlock("label",e1e,[i.createElementVNode("span",t1e,i.toDisplayString(I.$t("activity.milestone.label")),1),i.createVNode(Dt,{options:G.value,value:(he=t.activity.milestone)==null?void 0:he.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:H},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(I.$slots,"header")]),i.createElementVNode("div",n1e,[i.createVNode(fs,{modelValue:s.value,"onUpdate:modelValue":ee[0]||(ee[0]=le=>s.value=le),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",o1e,[i.createElementVNode("fieldset",r1e,[i.createElementVNode("div",i1e,[i.createVNode(j9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:K,onRemove:V,onPreview:ee[1]||(ee[1]=le=>u.value=le)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Wde,{key:1,"initial-markdown":f.value,onSave:h,onCancel:m},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:p},[i.createVNode(Ch,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",s1e,[i.createElementVNode("fieldset",a1e,[i.createElementVNode("div",l1e,[i.createVNode($9,{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:x,onUpdate:M,onDelete:B},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",c1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",u1e,[i.createVNode(Cde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:ie,onUpdateComment:U,onRemoveComment:ne},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",d1e,[i.createElementVNode("div",f1e,[i.createVNode(be,{name:"CloseRounded",onClick:ee[2]||(ee[2]=le=>I.$emit("close"))})]),ue.value?(i.openBlock(),i.createElementBlock("div",p1e,[i.createElementVNode("label",h1e,[i.createElementVNode("span",m1e,i.toDisplayString(I.$t("activity.status.label")),1),i.createVNode(Dt,{class:"ao-activity-details__multiselect",options:ue.value,value:(Ve=t.activity.status)==null?void 0:Ve.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Q},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",g1e,[i.createElementVNode("div",v1e,[i.createElementVNode("div",y1e,[i.createElementVNode("span",_1e,i.toDisplayString(I.$t("activity.assignee.label")),1),i.createVNode(me,{label:I.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:$},null,8,["label"])]),i.createVNode(Dt,{modelValue:F.value,"onUpdate:modelValue":ee[3]||(ee[3]=le=>F.value=le),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:P.value,"close-on-select":!0,searchable:!0,placeholder:I.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:O},{tag:i.withCtx(({option:le,handleTagRemove:ft})=>[i.createVNode(Un,{"user-name":le.label,"avatar-url":le.avatar,"is-closable":!0,onClose:xe=>ft(le,xe)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",C1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",b1e,[i.createElementVNode("label",k1e,[i.createElementVNode("span",w1e,i.toDisplayString(I.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[4]||(ee[4]=le=>w.value=le),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,E1e),[[i.vModelText,w.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",x1e,[i.createElementVNode("div",S1e,[i.createElementVNode("label",T1e,[i.createElementVNode("span",A1e,i.toDisplayString(I.$t("activity.estimation.label"))+" ("+i.toDisplayString(_.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[5]||(ee[5]=le=>g.value=le),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,N1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",D1e,[i.createElementVNode("label",M1e,[i.createElementVNode("span",B1e,i.toDisplayString(I.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(_.value)+")",1),i.createElementVNode("span",$1e,i.toDisplayString(y.value),1)])])]),i.createElementVNode("div",O1e,[i.createVNode(Og,{modelValue:v.value,"onUpdate:modelValue":ee[6]||(ee[6]=le=>v.value=le),modelModifiers:{lazy:!0},label:I.$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",L1e,[i.createElementVNode("div",I1e,[i.createVNode(be,{name:"FlowsheetOutlineRounded"}),i.createVNode(at,{level:4,title:I.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",P1e,[i.createElementVNode("div",F1e,[i.createElementVNode("label",V1e,[i.createElementVNode("span",R1e,i.toDisplayString(I.$t("activity.dependingOn.label")),1),i.createVNode(Dt,{modelValue:b.value,"onUpdate:modelValue":ee[7]||(ee[7]=le=>b.value=le),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.createElementVNode("div",z1e,[i.createElementVNode("label",U1e,[i.createElementVNode("span",q1e,i.toDisplayString(I.$t("activity.blocking.label")),1),i.createVNode(Dt,{modelValue:T.value,"onUpdate:modelValue":ee[8]||(ee[8]=le=>T.value=le),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:A.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(I.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Ide,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":ee[10]||(ee[10]=ve=>u.value=ve),onClose:ee[11]||(ee[11]=ve=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const H1e=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(me,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>y.$emit("close"))})]),_:1}))}});const j1e={class:"ao-template-rules__body"},W1e={class:"ao-template-rules__list"},Z1e=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",j1e,[i.createElementVNode("ul",W1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(H1e,{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 K1e={key:0,class:"ao-template-details"},G1e={class:"ao-template-details__body"},Y1e={class:"ao-template-details__cols"},J1e={class:"ao-template-details__col"},X1e={class:"ao-list__footer"},Q1e={class:"ao-template-details__col"},efe={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 V;return(V=o.templates)==null?void 0:V.find(N=>N.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var V;return(V=s.value)==null?void 0:V.phases},(V,N)=>{a.value&&In(V,N)});const l=i.computed(()=>{var V,N;return(N=(V=s==null?void 0:s.value)==null?void 0:V.phases)==null?void 0:N.find(G=>G.id===o.phaseId)});i.watch(()=>{var V;return(V=l.value)==null?void 0:V.milestones},(V,N)=>{a.value&&In(V,N)});const c=i.computed(()=>{var V,N;return(N=(V=l.value)==null?void 0:V.milestones)==null?void 0:N.find(G=>G.id===o.milestoneId)});i.watch(()=>{var V;return(V=c.value)==null?void 0:V.activities},(V,N)=>{a.value&&In(V,N)});const u=i.computed(()=>{var V,N;return((N=(V=s.value)==null?void 0:V.phases)==null?void 0:N.reduce((G,z)=>{const H=z.milestones||[];return[...G,...H]},[]))||[]}),d=i.computed(()=>{var V,N;return((N=(V=s.value)==null?void 0:V.phases)==null?void 0:N.reduce((G,z)=>{const ue=(z.milestones||[]).reduce((Q,ie)=>ie.activities?[...Q,...ie.activities]:Q,[]);return[...G,...ue]},[]))||[]}),f=i.computed(()=>{var V,N;return(N=(V=c.value)==null?void 0:V.activities)==null?void 0:N.find(G=>G.id===o.activityId)}),p=i.computed(()=>{var V;return((V=s.value)==null?void 0:V.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:V,rank:N}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:$e.PHASES,templateId:o.templateId,item:{name:V,rank:N}})},m=V=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:$e.TEMPLATES,data:{name:V}})},g=V=>{r("removeItem",{itemType:$e.PHASES,templateId:o.templateId,data:{id:V}})},C=(V,N)=>{r("updateItem",{templateId:o.templateId,id:V,itemType:$e.PHASES,data:{name:N}})},_=V=>{r("updateItem",V)},y=V=>{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:V.phaseId,item:{name:N,rank:G,phaseId:V.phaseId}})},v=V=>{r("removeItem",{itemType:$e.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,data:{id:V.id}})},w=V=>{const{id:N,...G}=V;r("updateItem",{itemType:$e.MILESTONES,id:N,templateId:o.templateId,data:G})},k=V=>{const{milestoneId:N}=V;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=V=>{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:V.id}})},S=V=>{const{id:N,...G}=V;r("updateItem",{itemType:$e.ACTIVITIES,id:N,templateId:o.templateId,data:G})},T=i.ref(!1),A=()=>{T.value=!T.value},x=()=>{r("addRule",{templateId:o.templateId})},M=V=>{r("removeRule",{id:V,templateId:o.templateId})},B=V=>{var N;if(V.moved){const G=Xi(V,((N=s.value)==null?void 0:N.phases)??[]);r("updateItem",{itemType:$e.PHASES,id:V.moved.element.id,templateId:o.templateId,data:{rank:G}})}},$=V=>{!l.value||!c.value||!f.value||r("addItem",{type:$e.TASKS,activityId:V.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:V})},O=V=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:$e.TASKS,id:V.id,templateId:o.templateId,data:V})},P=V=>{!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:V})},F=V=>{r("addFiles",V)},K=V=>{r("removeFile",V)};return(V,N)=>{var G,z,H,ue,Q,ie;return s.value?(i.openBlock(),i.createElementBlock("div",K1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:N[1]||(N[1]=U=>V.$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",G1e,[i.createElementVNode("ol",Y1e,[i.createElementVNode("li",J1e,[i.createVNode(i.unref(mo),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:B},{header:i.withCtx(()=>[i.createVNode(at,{title:V.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:U})=>{var ne;return[i.createVNode(J_,{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:ge=>V.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":ge=>{C(U.id,ge)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",X1e,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:V.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",Q1e,[l.value?(i.openBlock(),i.createBlock(eC,{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",efe,[l.value&&c.value?(i.openBlock(),i.createBlock(oC,{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:S,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} / ${(ue=l.value)==null?void 0:ue.name} / ${(Q=c.value)==null?void 0:Q.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,"attachment-enabled":!1,"onUpdate:activity":N[2]||(N[2]=U=>{f.value&&S(U)}),onClose:V.$router.back,onAddSubtask:$,onUpdateSubtask:O,onDeleteSubtask:P,onAddFiles:F,onRemoveFile:K},{default:i.withCtx(U=>[i.renderSlot(V.$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"},[T.value?(i.openBlock(),i.createBlock(Z1e,{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:x,onRemoveRule:M},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const tfe={class:"ao-card__content"},nfe={key:0,class:"ao-card__header"},ofe={class:"ao-card__body"},rfe={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",tfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",nfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",ofe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",rfe,[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=sfe(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}=afe(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 ife({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 sfe(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 afe({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 lfe={ref:"canvasSaturation"};function cfe(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",lfe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Qu.render=cfe;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 ufe={ref:"canvasHue"};function dfe(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",ufe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ed.render=dfe;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 ffe={ref:"canvasAlpha"};function pfe(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",ffe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}td.render=pfe;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 hfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}nd.render=hfe;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 mfe=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),gfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},vfe=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 yfe(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))},[mfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",gfe,[vfe])):i.createCommentVNode("v-if",!0)])}od.render=yfe;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 _fe={class:"color-type"},Cfe={class:"name"};function bfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",_fe,[i.createVNode("span",Cfe,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=bfe;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 kfe={class:"colors"},wfe={key:0,class:"colors history"};function Efe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",kfe,[(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",wfe,[(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=Efe;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 ife(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 xfe={class:"color-set"};function Sfe(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",xfe,[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=Sfe;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Tfe={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",Tfe,[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"},Nfe={class:"ao-card-project-item__title-line"},Dfe={key:0,class:"ao-card-project-item-phase__estimation"},Mfe={class:"ao-card-project-phase__footer"},Bfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},$fe={class:"ao-card-project-phase__subitem"},Ofe={class:"ao-card-project-phase__subitem"},Lfe={key:0,class:"ao-card-project-phase__secondary"},Ife={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Pfe=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,"with-left-border":!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Nfe,[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",Dfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Mfe,[u.value?(i.openBlock(),i.createElementBlock("div",Bfe,[i.createElementVNode("div",$fe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Ofe,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",Lfe,[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",Ife,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Afe,[i.createVNode(me,{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 Ffe=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 Vfe={class:"ao-card-project-milestone__default"},Rfe={class:"ao-title-with-badge-wrapper"},zfe={class:"ao-card-project-item__title-line"},Ufe={key:0,class:"ao-card-project-item-milestone__estimation"},qfe={key:0,class:"ao-card-project-milestone__archive"},Hfe={class:"ao-card-project-milestone__activities"},jfe={class:"ao-card-project-milestone__activities-row"},Wfe={class:"ao-card-project-milestone__subitem"},Zfe={class:"ao-card-project-milestone__subitem"},Kfe={key:1,class:"ao-card-project-milestone__secondary"},Gfe={class:"ao-card-project-milestone__footer"},Yfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Jfe={class:"ao-field__label"},Xfe={key:2,class:"ao-card-project-milestone__assignee"},Qfe=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",Vfe,[i.createElementVNode("div",Rfe,[i.createVNode(Ffe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",zfe,[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",Ufe," ("+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",qfe,[i.createVNode(me,{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",Hfe,[i.createElementVNode("div",jfe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Wfe,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Zfe,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",Kfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",Gfe,[t.important?(i.openBlock(),i.createBlock(be,{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",Yfe,[i.createElementVNode("span",Jfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Xfe,[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 epe={class:"ao-mapping-card-project-phase__header"},tpe={class:"ao-card-project-item__title-line"},npe={key:0,class:"ao-card-project-item-phase__estimation"},ope={class:"ao-mapping-card-project-phase__footer"},rpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},ipe={class:"ao-mapping-card-project-phase__subitem"},spe={class:"ao-mapping-card-project-phase__subitem"},ape={key:0,class:"ao-mapping-card-project-phase__secondary"},lpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},cpe=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,"with-left-border":!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",tpe,[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",npe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ope,[u.value?(i.openBlock(),i.createElementBlock("div",rpe,[i.createElementVNode("div",ipe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",spe,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",ape,[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",lpe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",epe,[i.createVNode(me,{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 upe={class:"ao-project-phase"},dpe={key:0,class:"ao-project-phase__drag ao-card__drag"},fpe={key:1,class:"ao-project-phase__col-phase"},ppe={key:2,class:"ao-mapping-project-phase__col-phase"},hpe={key:0,class:"ao-project-phase__col-milestones"},mpe={class:"ao-project-phase__milestones-list-footer"},gpe=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=>m_(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:v_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",upe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(y.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",dpe,[i.createVNode(be,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",ppe,[i.createVNode(cpe,{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",fpe,[i.createVNode(Pfe,{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",hpe,[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(Qfe,{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",mpe,[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 vpe={class:"ao-project__phases"},ype={key:0,class:"ao-project-phase__phases-list-footer"},_pe={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",vpe,[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(gpe,{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",ype,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",_pe,[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 Cpe={class:"ao-add-template-modal__form-body"},bpe={class:"field__row"},kpe={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",Cpe,[i.createElementVNode("div",bpe,[i.createVNode(Dt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",kpe,[i.createVNode(me,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const wpe={class:"ao-save-template-modal__form-body"},Epe={class:"field__row"},xpe={class:"ao-field ao-field--inline"},Spe={class:"ao-field__label"},Tpe={class:"ao-save-template-modal__phases"},Ape={class:"ao-field__label"},Npe={class:"ao-save-template-modal__phases-list"},Dpe=["value"],Mpe={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",wpe,[i.createElementVNode("div",Epe,[i.createElementVNode("label",xpe,[i.createElementVNode("span",Spe,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",Tpe,[i.createElementVNode("div",Ape,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",Npe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,Dpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",Mpe,[i.createVNode(me,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const Bpe={class:"ao-project"},$pe={class:"ao-project__body"},Ope=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(M=>M.milestones)),a=()=>{const{name:M,rank:G}=Uo(o.phases,"phase",n);r("addPhase",{name:M,rank:G,projectId:o.project.id})},l=M=>{r("updatePhase",M)},c=M=>{r("archivePhase",M)},u=M=>{r("unarchivePhase",M)},d=M=>{r("copyPhaseToTemplate",M)},f=M=>{r("addMilestone",M)},p=M=>{r("updateMilestone",M)},h=M=>{r("archiveMilestone",M)},m=M=>{r("unarchiveMilestone",M)},g=M=>{r("addActivity",M)},C=M=>{r("update:activity",M)},_=M=>{r("archiveActivity",M)},y=M=>{r("unarchiveActivity",M)},v=M=>{r("addSubtask",M)},w=M=>{r("updateSubtask",M)},k=M=>{r("deleteSubtask",M)},b=i.computed(()=>s.value.flatMap(M=>M.activities)),x=M=>{r("addFiles",M)},S=M=>{r("removeFile",M)},T=M=>{r("addComment",M)},A=M=>{r("updateComment",M)},N=M=>{r("removeComment",M)},D=i.ref(!1),$=i.ref(!1),O=(M,G)=>{r("applyTemplate",{templateId:M,projectId:G}),D.value=!1},P=(M,G)=>{var ue;const z=(ue=o.templates)==null?void 0:ue.at(-1),H=z?it.LexoRank.parse(z.rank).genNext():it.LexoRank.middle();r("saveTemplate",{templateName:M,rank:H.format(),phaseIds:G}),$.value=!1},F=Ki.useRouter(),Z=i.ref("overview"),V=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(Z,M=>{M==="feed"?(F.push({name:je.feed}),console.log("Navigating to feed...")):M==="overview"?(F.push({name:je.project}),console.log("Navigating to feed...")):M==="mapping"&&(F.push({name:je.mapping}),console.log("Navigating to feed..."))}),(M,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"},M.$attrs),[i.createElementVNode("div",Bpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{modelValue:Z.value,"onUpdate:modelValue":G[0]||(G[0]=ue=>Z.value=ue),tabs:V},null,8,["modelValue"]),i.createVNode(me,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:M.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:G[1]||(G[1]=ue=>M.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:M.$t("project.template.save.label"),onClick:G[2]||(G[2]=ue=>$.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:1,class:"ao-project-overview__add-template",color:"primary",label:M.$t("project.template.apply.label"),onClick:G[3]||(G[3]=ue=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",$pe,[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]=ue=>M.$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:T,onUpdateComment:A,onRemoveComment:N},{default:i.withCtx(({Component:ue})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ue),null,{default:i.withCtx(Q=>[i.renderSlot(M.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_: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"},[$.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:G[5]||(G[5]=ue=>$.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:G[6]||(G[6]=ue=>D.value=!1),onApply:O},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Lpe={class:"ao-card-feed__header"},Ipe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Ppe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Fpe={class:"ao-card-feed__body"},Vpe={key:0,class:"ao-card-feed__breadcrumbs"},Rpe={class:i.normalizeClass(["ao-card-feed__title-group"])},zpe={class:"ao-card-feed__title-line"},Upe={key:0,class:"ao-card-feed__slug"},qpe={key:1,class:"ao-card-feed__deadline"},Hpe={class:"ao-card-feed__footer"},jpe={class:"ao-card-feed__footer-row"},Wpe={class:"ao-assignees"},Zpe={key:0,class:"ao-assignee"},Kpe={key:0,class:"ao-card-feed__subitems"},Gpe={key:0,class:"ao-card-feed__subitem"},Ype={class:"ao-card-feed__subitem"},Jpe={key:1,class:"ao-card-feed__subitem"},Xpe={class:"ao-card-feed__subitem"},Qpe={class:"ao-card-feed__timer-wrapper"},ehe={class:"ao-card-feed__footer-row"},the={key:0,class:"ao-card-feed__progress-wrapper"},nhe={class:"ao-card-feed__subitem"},ohe={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",Lpe,[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",Ipe,[t.isPrivate?(i.openBlock(),i.createBlock(be,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(be,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(be,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Ppe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Fpe,[l.value?(i.openBlock(),i.createElementBlock("span",Vpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Rpe,[i.createElementVNode("div",zpe,[t.slug?(i.openBlock(),i.createElementBlock("span",Upe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(at,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",qpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Hpe,[i.createElementVNode("div",jpe,[i.createElementVNode("ul",Wpe,[(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",Zpe,[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",Kpe,[t.comments?(i.openBlock(),i.createElementBlock("li",Gpe,[i.createVNode(be,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",Ype,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",Jpe,[i.createVNode(be,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Xpe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Qpe,[i.createVNode(be,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",ehe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",the,[i.createElementVNode("div",nhe,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",ohe,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 rhe={class:"ao-project-milestone"},ihe={class:"ao-project-milestone__header"},she={class:"ao-project-milestone__header_line"},ahe={class:"ao-project-milestone__header_line"},lhe={class:"ao-project-milestone__title"},che={key:0,class:"ao-fieldset ao-milestone__fieldset"},uhe={class:"ao-field__row ao-milestone__field-row"},dhe={class:"ao-field ao-field--inline"},fhe={class:"ao-field__row ao-milestone__field-row"},phe={class:"ao-field ao-milestone__field-multiselect"},hhe=["onClick"],mhe={class:"ao-project-milestone__body"},ghe={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",rhe,[i.createElementVNode("header",ihe,[i.createElementVNode("div",she,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",ahe,[i.createElementVNode("div",lhe,[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",che,[i.createElementVNode("div",uhe,[i.createElementVNode("label",dhe,[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",fhe,[i.createElementVNode("label",phe,[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,hhe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",mhe,[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,N,D,$;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":(N=c.value)==null?void 0:N.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(D=S.comments)==null?void 0:D.length,attachments:($=S.attachments)==null?void 0:$.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:O=>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(me,{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(me,{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",ghe,[i.createVNode(go,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const vhe=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)}}}),yhe={class:"ao-col-header"},_he=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",yhe,[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 Che(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function ka(t){return typeof t=="function"?t():i.unref(t)}const bhe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const khe=t=>t!=null,Mi=()=>{};function whe(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 Ehe(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 xhe(t,e=200,n={}){return whe(Ehe(e,n),t)}function ic(t){var e;const n=ka(t);return(e=n==null?void 0:n.$el)!=null?e:n}const She=bhe?window:void 0;function The(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function Ahe(t){const e=The();return i.computed(()=>(e.value,!!t()))}function Nhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=She,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(khe)});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 Che(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const Dhe={class:i.normalizeClass(["ao-list-kanban"])},Mhe={class:"ao-list-kanban__header"},Bhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},$he={key:1,class:"ao-list-kanban__end"},Ohe={key:0,class:"ao-list-kanban__no-more"},Lhe={key:1,class:"ao-list-kanban__divider"},Ihe={key:1,class:"ao-list-kanban__footer"},Phe=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);Nhe(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",Dhe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",Mhe,[t.title?(i.openBlock(),i.createBlock(_he,{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,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1)}),{item:i.withCtx(({element:h})=>{var m,g,C,_,y,v,w,k,b,x;return[i.createVNode(ad,{id:h.id,class:i.normalizeClass(a(h)?"ao-list-draggable":""),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(me,{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(me,{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,["id","class","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",Bhe,[i.createVNode(be,{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",$he,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Ohe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Lhe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",Ihe,[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 Fhe={class:"ao-field ao-search-field"},Vhe=["value","placeholder"],Rhe=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=xhe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",Fhe,[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,Vhe),i.createVNode(be,{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(me,{"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 zhe={class:"ao-feed"},Uhe={class:"ao-feed__filters"},qhe={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:{},loadAttachmentPreview:{}},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,ue,Q],[ie,U])=>{c.value=Object.fromEntries(z.map(ne=>[ne.id,H.filter(ge=>{var I;return((I=ge.status)==null?void 0:I.id)===ne.id})])),ue&&!u.value?(l(ue,null),u.value=!0):Q&&!u.value&&(l(null,Q),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),ue=H?it.LexoRank.parse(H.rank).genNext():it.LexoRank.middle(),Q=((ne=o.activities)==null?void 0:ne.length)??0,ie={name:n("activity.defaultName",{idx:Q+1}),rank:ue.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)},T=z=>{d.value=!1,r("clear:searchText",z)},A=z=>{o.selectedActivity&&r("addSubtask",z)},N=z=>{o.selectedActivity&&r("updateSubtask",z)},D=z=>{o.selectedActivity&&r("deleteSubtask",z)},$=z=>{r("addFiles",z)},O=z=>{r("removeFile",z)},P=z=>{o.selectedActivity&&r("addComment",{...z,activityId:o.selectedActivity.id})},F=z=>{const{id:H}=o.selectedActivity||{};H&&r("updateComment",z)},Z=z=>{const{id:H}=o.selectedActivity||{};H&&r("removeComment",z)},V=Ki.useRouter(),M=i.ref("feed"),G=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(M,z=>{z==="feed"?(V.push({name:je.feed}),console.log("Navigating to feed...")):z==="overview"?(V.push({name:je.project}),console.log("Navigating to feed...")):z==="mapping"&&(V.push({name:je.mapping}),console.log("Navigating to feed..."))}),(z,H)=>{var ue;return i.openBlock(),i.createElementBlock("div",zhe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",Uhe,[i.createVNode(fs,{modelValue:M.value,"onUpdate:modelValue":H[0]||(H[0]=Q=>M.value=Q),tabs:G},null,8,["modelValue"]),i.createVNode(Rhe,{"model-value":t.searchText,placeholder:z.$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:z.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":H[1]||(H[1]=Q=>m(i.unref(No).project,Q))},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]=Q=>m(i.unref(No).type,Q))},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]=Q=>m(i.unref(No).assignee,Q))},{tag:i.withCtx(({option:Q,handleTagRemove:ie})=>[i.createVNode(Un,{"user-name":Q.label,"avatar-url":Q.avatar,"is-closable":!0,onClose:U=>ie(Q,U)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(me,{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]=Q=>z.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(me,{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]=Q=>z.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(me,{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]=Q=>z.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",qhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,Q=>(i.openBlock(),i.createBlock(Phe,{key:Q.id,status:Q,list:c.value[Q.id],title:Q.name,"footer-label":z.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":f.value,onAdd:()=>h(Q),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","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":(ue=t.selectedActivity.milestone)==null?void 0:ue.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,"load-attachment-preview":o.loadAttachmentPreview,onClose:H[7]||(H[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:A,onUpdateSubtask:N,onDeleteSubtask:D,onAddFiles:$,onRemoveFile:O,onAddComment:P,onUpdateComment:F,onRemoveComment:Z,onToast:s},{default:i.withCtx(Q=>[i.renderSlot(z.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_: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","load-attachment-preview"])):i.createCommentVNode("",!0)]))])}}});const Hhe={class:"ao-project-mapping"},jhe={class:"ao-project-mapping-mapping__body"},Whe={class:"ao-project-mapping-mapping__phases"},Zhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},Khe=["src","alt"],Ghe=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",Hhe,[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(me,{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(me,{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(me,{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",jhe,[i.createElementVNode("div",Whe,[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",Zhe,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,Khe)])):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"},Yhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Vg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Lg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Jhe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:Ope,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:vhe}}]},{path:"feed",name:je.feed,component:Fg,props:!0},{path:"mapping",name:je.mapping,component:Ghe,props:!0}]}],Xhe={class:"ao-templates"},Vg=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",Xhe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(me,{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(z_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(d_)(f.phases):0,activities:f.phases?i.unref(f_)(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 Qhe={class:"ao-field__label"},Rg=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",Qhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),eme=["type","value","disabled","readonly"],tme=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(Rg,{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,eme)]),_:1},8,["label"]))}}),nme={class:"ao-field"},ome={class:"ao-field__label"},rme=["checked","disabled"],ime=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",nme,[i.createElementVNode("span",ome,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,rme)]))}});exports.AoAvatar=Un;exports.AoCardFeed=ad;exports.AoCheckboxField=ime;exports.AoColorPicker=dl;exports.AoFeed=Fg;exports.AoField=Rg;exports.AoInputField=tme;exports.AoMultiselect=Dt;exports.AoProjectPhases=sd;exports.AoTabBar=fs;exports.AoTemplateDetails=Lg;exports.AoTemplates=Gg;exports.AoTemplatesList=Vg;exports.EstimationUnit=gp;exports.TemplateItemTypeEnum=mp;exports.activityFeedStatus=wy;exports.durationTypes=ky;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=Jhe;exports.getTemplateRoutes=Yhe;exports.listUpdateTypes=Ey;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=sfe(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}=afe(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 ife({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 sfe(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 afe({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 lfe={ref:"canvasSaturation"};function cfe(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",lfe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Qu.render=cfe;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 ufe={ref:"canvasHue"};function dfe(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",ufe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ed.render=dfe;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 ffe={ref:"canvasAlpha"};function pfe(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",ffe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}td.render=pfe;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 hfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}nd.render=hfe;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 mfe=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),gfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},vfe=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 yfe(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))},[mfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",gfe,[vfe])):i.createCommentVNode("v-if",!0)])}od.render=yfe;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 _fe={class:"color-type"},Cfe={class:"name"};function bfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",_fe,[i.createVNode("span",Cfe,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=bfe;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 kfe={class:"colors"},wfe={key:0,class:"colors history"};function Efe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",kfe,[(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",wfe,[(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=Efe;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 ife(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 xfe={class:"color-set"};function Sfe(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",xfe,[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=Sfe;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Tfe={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",Tfe,[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"},Nfe={class:"ao-card-project-item__title-line"},Dfe={key:0,class:"ao-card-project-item-phase__estimation"},Mfe={class:"ao-card-project-phase__footer"},Bfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},$fe={class:"ao-card-project-phase__subitem"},Ofe={class:"ao-card-project-phase__subitem"},Lfe={key:0,class:"ao-card-project-phase__secondary"},Ife={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Pfe=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,"with-left-border":!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Nfe,[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",Dfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Mfe,[u.value?(i.openBlock(),i.createElementBlock("div",Bfe,[i.createElementVNode("div",$fe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Ofe,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",Lfe,[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",Ife,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Afe,[i.createVNode(me,{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 Ffe=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 Vfe={class:"ao-card-project-milestone__default"},Rfe={class:"ao-title-with-badge-wrapper"},zfe={class:"ao-card-project-item__title-line"},Ufe={key:0,class:"ao-card-project-item-milestone__estimation"},qfe={key:0,class:"ao-card-project-milestone__archive"},Hfe={class:"ao-card-project-milestone__activities"},jfe={class:"ao-card-project-milestone__activities-row"},Wfe={class:"ao-card-project-milestone__subitem"},Zfe={class:"ao-card-project-milestone__subitem"},Kfe={key:1,class:"ao-card-project-milestone__secondary"},Gfe={class:"ao-card-project-milestone__footer"},Yfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Jfe={class:"ao-field__label"},Xfe={key:2,class:"ao-card-project-milestone__assignee"},Qfe=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",Vfe,[i.createElementVNode("div",Rfe,[i.createVNode(Ffe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",zfe,[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",Ufe," ("+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",qfe,[i.createVNode(me,{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",Hfe,[i.createElementVNode("div",jfe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Wfe,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Zfe,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",Kfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",Gfe,[t.important?(i.openBlock(),i.createBlock(be,{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",Yfe,[i.createElementVNode("span",Jfe,i.toDisplayString(i.unref(Na)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Xfe,[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 epe={class:"ao-mapping-card-project-phase__header"},tpe={class:"ao-card-project-item__title-line"},npe={key:0,class:"ao-card-project-item-phase__estimation"},ope={class:"ao-mapping-card-project-phase__footer"},rpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},ipe={class:"ao-mapping-card-project-phase__subitem"},spe={class:"ao-mapping-card-project-phase__subitem"},ape={key:0,class:"ao-mapping-card-project-phase__secondary"},lpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},cpe=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,"with-left-border":!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",tpe,[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",npe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ope,[u.value?(i.openBlock(),i.createElementBlock("div",rpe,[i.createElementVNode("div",ipe,[i.createVNode(be,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",spe,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",ape,[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",lpe,i.toDisplayString(i.unref(Na)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",epe,[i.createVNode(me,{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 upe={class:"ao-project-phase"},dpe={key:0,class:"ao-project-phase__drag ao-card__drag"},fpe={key:1,class:"ao-project-phase__col-phase"},ppe={key:2,class:"ao-mapping-project-phase__col-phase"},hpe={key:0,class:"ao-project-phase__col-milestones"},mpe={class:"ao-project-phase__milestones-list-footer"},gpe=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=>m_(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:v_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",upe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(y.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",dpe,[i.createVNode(be,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",ppe,[i.createVNode(cpe,{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",fpe,[i.createVNode(Pfe,{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",hpe,[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(Qfe,{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:S=>!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",mpe,[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 vpe={class:"ao-project__phases"},ype={key:0,class:"ao-project-phase__phases-list-footer"},_pe={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",vpe,[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(gpe,{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",ype,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",_pe,[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 Cpe={class:"ao-add-template-modal__form-body"},bpe={class:"field__row"},kpe={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",Cpe,[i.createElementVNode("div",bpe,[i.createVNode(Dt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",kpe,[i.createVNode(me,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const wpe={class:"ao-save-template-modal__form-body"},Epe={class:"field__row"},xpe={class:"ao-field ao-field--inline"},Spe={class:"ao-field__label"},Tpe={class:"ao-save-template-modal__phases"},Ape={class:"ao-field__label"},Npe={class:"ao-save-template-modal__phases-list"},Dpe=["value"],Mpe={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",wpe,[i.createElementVNode("div",Epe,[i.createElementVNode("label",xpe,[i.createElementVNode("span",Spe,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",Tpe,[i.createElementVNode("div",Ape,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",Npe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,Dpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",Mpe,[i.createVNode(me,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const Bpe={class:"ao-project"},$pe={class:"ao-project__body"},Ope=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)),S=N=>{r("addFiles",N)},T=N=>{r("removeFile",N)},A=N=>{r("addComment",N)},x=N=>{r("updateComment",N)},M=N=>{r("removeComment",N)},B=i.ref(!1),$=i.ref(!1),O=(N,G)=>{r("applyTemplate",{templateId:N,projectId:G}),B.value=!1},P=(N,G)=>{var ue;const z=(ue=o.templates)==null?void 0:ue.at(-1),H=z?it.LexoRank.parse(z.rank).genNext():it.LexoRank.middle();r("saveTemplate",{templateName:N,rank:H.format(),phaseIds:G}),$.value=!1},F=Ki.useRouter(),K=i.ref("overview"),V=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(K,N=>{N==="feed"?(F.push({name:je.feed}),console.log("Navigating to feed...")):N==="overview"?(F.push({name:je.project}),console.log("Navigating to feed...")):N==="mapping"&&(F.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",Bpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(fs,{modelValue:K.value,"onUpdate:modelValue":G[0]||(G[0]=ue=>K.value=ue),tabs:V},null,8,["modelValue"]),i.createVNode(me,{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]=ue=>N.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:N.$t("project.template.save.label"),onClick:G[2]||(G[2]=ue=>$.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:1,class:"ao-project-overview__add-template",color:"primary",label:N.$t("project.template.apply.label"),onClick:G[3]||(G[3]=ue=>B.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",$pe,[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]=ue=>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:S,onRemoveFile:T,onAddComment:A,onUpdateComment:x,onRemoveComment:M},{default:i.withCtx(({Component:ue})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ue),null,{default:i.withCtx(Q=>[i.renderSlot(N.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_: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"},[$.value?(i.openBlock(),i.createBlock(Pg,{key:0,phases:t.phases,onClose:G[5]||(G[5]=ue=>$.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),B.value?(i.openBlock(),i.createBlock(Ig,{key:1,"project-id":t.project.id,templates:t.templates,onClose:G[6]||(G[6]=ue=>B.value=!1),onApply:O},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Lpe={class:"ao-card-feed__header"},Ipe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Ppe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Fpe={class:"ao-card-feed__body"},Vpe={key:0,class:"ao-card-feed__breadcrumbs"},Rpe={class:i.normalizeClass(["ao-card-feed__title-group"])},zpe={class:"ao-card-feed__title-line"},Upe={key:0,class:"ao-card-feed__slug"},qpe={key:1,class:"ao-card-feed__deadline"},Hpe={class:"ao-card-feed__footer"},jpe={class:"ao-card-feed__footer-row"},Wpe={class:"ao-assignees"},Zpe={key:0,class:"ao-assignee"},Kpe={key:0,class:"ao-card-feed__subitems"},Gpe={key:0,class:"ao-card-feed__subitem"},Ype={class:"ao-card-feed__subitem"},Jpe={key:1,class:"ao-card-feed__subitem"},Xpe={class:"ao-card-feed__subitem"},Qpe={class:"ao-card-feed__timer-wrapper"},ehe={class:"ao-card-feed__footer-row"},the={key:0,class:"ao-card-feed__progress-wrapper"},nhe={class:"ao-card-feed__subitem"},ohe={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",Lpe,[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",Ipe,[t.isPrivate?(i.openBlock(),i.createBlock(be,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(be,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(be,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Ppe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Fpe,[l.value?(i.openBlock(),i.createElementBlock("span",Vpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Rpe,[i.createElementVNode("div",zpe,[t.slug?(i.openBlock(),i.createElementBlock("span",Upe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(at,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",qpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Hpe,[i.createElementVNode("div",jpe,[i.createElementVNode("ul",Wpe,[(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",Zpe,[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",Kpe,[t.comments?(i.openBlock(),i.createElementBlock("li",Gpe,[i.createVNode(be,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",Ype,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",Jpe,[i.createVNode(be,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Xpe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Qpe,[i.createVNode(be,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",ehe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",the,[i.createElementVNode("div",nhe,[i.createVNode(be,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",ohe,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 rhe={class:"ao-project-milestone"},ihe={class:"ao-project-milestone__header"},she={class:"ao-project-milestone__header_line"},ahe={class:"ao-project-milestone__header_line"},lhe={class:"ao-project-milestone__title"},che={key:0,class:"ao-fieldset ao-milestone__fieldset"},uhe={class:"ao-field__row ao-milestone__field-row"},dhe={class:"ao-field ao-field--inline"},fhe={class:"ao-field__row ao-milestone__field-row"},phe={class:"ao-field ao-milestone__field-multiselect"},hhe=["onClick"],mhe={class:"ao-project-milestone__body"},ghe={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 S=k.currentTarget;S instanceof HTMLElement&&b(S)};return(k,b)=>{var S;return i.openBlock(),i.createElementBlock("div",rhe,[i.createElementVNode("header",ihe,[i.createElementVNode("div",she,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",ahe,[i.createElementVNode("div",lhe,[i.createVNode(at,{title:((S=c.value)==null?void 0:S.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Og,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=T=>v.value=T),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",che,[i.createElementVNode("div",uhe,[i.createElementVNode("label",dhe,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=T=>g.value=T),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,g.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",fhe,[i.createElementVNode("label",phe,[i.createVNode(Dt,{modelValue:y.value,"onUpdate:modelValue":b[2]||(b[2]=T=>y.value=T),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:T,handleTagRemove:A})=>[i.createVNode(Un,{"user-name":T.label,"avatar-url":T.avatar,"is-closable":!0,onClose:x=>A(T,x)},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]=T=>m.value=T)},{clickable:i.withCtx(({openPicker:T,bgColor:A})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:A}),class:"color-button",onClick:x=>w(x,T)},null,12,hhe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",mhe,[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:T})=>{var A,x,M,B,$;return[i.createVNode(ad,{id:T.id,name:T.name||T.id,"project-id":t.projectId,"phase-name":(A=a.value)==null?void 0:A.name,"milestone-name":(x=c.value)==null?void 0:x.name,"milestone-color":(M=c.value)==null?void 0:M.color,deadline:T.deadline,important:T.important,users:t.users,assignee:T.assignee,slug:T.slug,comments:(B=T.comments)==null?void 0:B.length,attachments:($=T.attachments)==null?void 0:$.length,tasks:T.tasks,"is-editable":t.isEditable,"is-private":T.private,"is-closed":C(T),onClick:O=>k.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:T.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:T.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&T.active?(i.openBlock(),i.createBlock(me,{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:T.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!T.active?(i.openBlock(),i.createBlock(me,{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:T.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",ghe,[i.createVNode(go,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const vhe=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:{},loadAttachmentPreview:{type:Function}},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,"load-attachment-preview":n.loadAttachmentPreview,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","load-attachment-preview","onClose"])):i.createCommentVNode("",!0)}}}),yhe={class:"ao-col-header"},_he=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",yhe,[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 Che(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function ka(t){return typeof t=="function"?t():i.unref(t)}const bhe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const khe=t=>t!=null,Mi=()=>{};function whe(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 Ehe(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 xhe(t,e=200,n={}){return whe(Ehe(e,n),t)}function ic(t){var e;const n=ka(t);return(e=n==null?void 0:n.$el)!=null?e:n}const She=bhe?window:void 0;function The(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function Ahe(t){const e=The();return i.computed(()=>(e.value,!!t()))}function Nhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=She,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(khe)});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 Che(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const Dhe={class:i.normalizeClass(["ao-list-kanban"])},Mhe={class:"ao-list-kanban__header"},Bhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},$he={key:1,class:"ao-list-kanban__end"},Ohe={key:0,class:"ao-list-kanban__no-more"},Lhe={key:1,class:"ao-list-kanban__divider"},Ihe={key:1,class:"ao-list-kanban__footer"},Phe=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);Nhe(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",Dhe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",Mhe,[t.title?(i.openBlock(),i.createBlock(_he,{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,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1)}),{item:i.withCtx(({element:h})=>{var m,g,C,_,y,v,w,k,b,S;return[i.createVNode(ad,{id:h.id,class:i.normalizeClass(a(h)?"ao-list-draggable":""),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:(S=h.attachments)==null?void 0:S.length,users:t.users,assignee:h.assignee,slug:h.slug,"is-editable":a(h),"is-private":h.private,"tag-type":t.tagType,onUpdateActivity:[T=>a(h)&&c(T),()=>a(h)&&c],onClick:()=>l(h.id),onRemoveAssignee:()=>a(h)&&c({id:h.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=T=>f.$emit("startTimer",T))},{secondary:i.withCtx(()=>[a(h)&&h.active?(i.openBlock(),i.createBlock(me,{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(me,{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,["id","class","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",Bhe,[i.createVNode(be,{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",$he,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Ohe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Lhe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",Ihe,[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 Fhe={class:"ao-field ao-search-field"},Vhe=["value","placeholder"],Rhe=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=xhe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",Fhe,[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,Vhe),i.createVNode(be,{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(me,{"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 zhe={class:"ao-feed"},Uhe={class:"ao-feed__filters"},qhe={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:{},loadAttachmentPreview:{}},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,ue,Q],[ie,U])=>{c.value=Object.fromEntries(z.map(ne=>[ne.id,H.filter(ge=>{var I;return((I=ge.status)==null?void 0:I.id)===ne.id})])),ue&&!u.value?(l(ue,null),u.value=!0):Q&&!u.value&&(l(null,Q),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),ue=H?it.LexoRank.parse(H.rank).genNext():it.LexoRank.middle(),Q=((ne=o.activities)==null?void 0:ne.length)??0,ie={name:n("activity.defaultName",{idx:Q+1}),rank:ue.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)},S=z=>{var H;r("startTimer",z),(H=window.parent)==null||H.postMessage({type:"startTimer",data:z},"*")},T=z=>{d.value=!1,r("update:searchText",z)},A=z=>{d.value=!1,r("clear:searchText",z)},x=z=>{o.selectedActivity&&r("addSubtask",z)},M=z=>{o.selectedActivity&&r("updateSubtask",z)},B=z=>{o.selectedActivity&&r("deleteSubtask",z)},$=z=>{r("addFiles",z)},O=z=>{r("removeFile",z)},P=z=>{o.selectedActivity&&r("addComment",{...z,activityId:o.selectedActivity.id})},F=z=>{const{id:H}=o.selectedActivity||{};H&&r("updateComment",z)},K=z=>{const{id:H}=o.selectedActivity||{};H&&r("removeComment",z)},V=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"?(V.push({name:je.feed}),console.log("Navigating to feed...")):z==="overview"?(V.push({name:je.project}),console.log("Navigating to feed...")):z==="mapping"&&(V.push({name:je.mapping}),console.log("Navigating to feed..."))}),(z,H)=>{var ue;return i.openBlock(),i.createElementBlock("div",zhe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",Uhe,[i.createVNode(fs,{modelValue:N.value,"onUpdate:modelValue":H[0]||(H[0]=Q=>N.value=Q),tabs:G},null,8,["modelValue"]),i.createVNode(Rhe,{"model-value":t.searchText,placeholder:z.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":T,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]=Q=>m(i.unref(No).project,Q))},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]=Q=>m(i.unref(No).type,Q))},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]=Q=>m(i.unref(No).assignee,Q))},{tag:i.withCtx(({option:Q,handleTagRemove:ie})=>[i.createVNode(Un,{"user-name":Q.label,"avatar-url":Q.avatar,"is-closable":!0,onClose:U=>ie(Q,U)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(me,{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]=Q=>z.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(me,{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]=Q=>z.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(me,{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]=Q=>z.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",qhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,Q=>(i.openBlock(),i.createBlock(Phe,{key:Q.id,status:Q,list:c.value[Q.id],title:Q.name,"footer-label":z.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":f.value,onAdd:()=>h(Q),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:S},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","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":(ue=t.selectedActivity.milestone)==null?void 0:ue.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,"load-attachment-preview":o.loadAttachmentPreview,onClose:H[7]||(H[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:x,onUpdateSubtask:M,onDeleteSubtask:B,onAddFiles:$,onRemoveFile:O,onAddComment:P,onUpdateComment:F,onRemoveComment:K,onToast:s},{default:i.withCtx(Q=>[i.renderSlot(z.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_: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","load-attachment-preview"])):i.createCommentVNode("",!0)]))])}}});const Hhe={class:"ao-project-mapping"},jhe={class:"ao-project-mapping-mapping__body"},Whe={class:"ao-project-mapping-mapping__phases"},Zhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},Khe=["src","alt"],Ghe=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",Hhe,[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(me,{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(me,{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(me,{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",jhe,[i.createElementVNode("div",Whe,[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",Zhe,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,Khe)])):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"},Yhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Vg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Lg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Jhe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:Ope,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:vhe}}]},{path:"feed",name:je.feed,component:Fg,props:!0},{path:"mapping",name:je.mapping,component:Ghe,props:!0}]}],Xhe={class:"ao-templates"},Vg=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",Xhe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(me,{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(z_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(d_)(f.phases):0,activities:f.phases?i.unref(f_)(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 Qhe={class:"ao-field__label"},Rg=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",Qhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),eme=["type","value","disabled","readonly"],tme=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(Rg,{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,eme)]),_:1},8,["label"]))}}),nme={class:"ao-field"},ome={class:"ao-field__label"},rme=["checked","disabled"],ime=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",nme,[i.createElementVNode("span",ome,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,rme)]))}});exports.AoAvatar=Un;exports.AoCardFeed=ad;exports.AoCheckboxField=ime;exports.AoColorPicker=dl;exports.AoFeed=Fg;exports.AoField=Rg;exports.AoInputField=tme;exports.AoMultiselect=Dt;exports.AoProjectPhases=sd;exports.AoTabBar=fs;exports.AoTemplateDetails=Lg;exports.AoTemplates=Gg;exports.AoTemplatesList=Vg;exports.EstimationUnit=gp;exports.TemplateItemTypeEnum=mp;exports.activityFeedStatus=wy;exports.durationTypes=ky;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=Jhe;exports.getTemplateRoutes=Yhe;exports.listUpdateTypes=Ey;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=fp;exports.ruleDurationUnits=hp;exports.ruleTriggerTypes=pp;exports.templateItemType=$e;exports.templateRouteNames=Po;