@26lights/orcha 0.42.115 → 0.42.117

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,58 +1,58 @@
1
- "use strict";var Gg=Object.defineProperty;var Yg=(t,e,n)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var U=(t,e,n)=>(Yg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Nr=require("vue-router"),_o=require("vuedraggable");const Jg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Nr.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ne=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Xg={},Qg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e0(t,e){return i.openBlock(),i.createElementBlock("svg",Qg,[...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 t0=ne(Xg,[["render",e0]]),n0={},o0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r0(t,e){return i.openBlock(),i.createElementBlock("svg",o0,[...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 i0=ne(n0,[["render",r0]]),s0={},a0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l0(t,e){return i.openBlock(),i.createElementBlock("svg",a0,[...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 c0=ne(s0,[["render",l0]]),u0={},d0={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",d0,[...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 p0=ne(u0,[["render",f0]]),m0={},h0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const v0=ne(m0,[["render",g0]]),y0={},_0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return i.openBlock(),i.createElementBlock("svg",_0,[...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 b0=ne(y0,[["render",C0]]),k0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,[...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 S0=ne(k0,[["render",E0]]),x0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return i.openBlock(),i.createElementBlock("svg",T0,[...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 N0=ne(x0,[["render",A0]]),D0={},M0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $0(t,e){return i.openBlock(),i.createElementBlock("svg",M0,[...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 B0=ne(D0,[["render",$0]]),O0={},L0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I0(t,e){return i.openBlock(),i.createElementBlock("svg",L0,[...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 P0=ne(O0,[["render",I0]]),F0={},V0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return i.openBlock(),i.createElementBlock("svg",V0,[...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 z0=ne(F0,[["render",R0]]),U0={},q0={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",q0,[...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 j0=ne(U0,[["render",H0]]),W0={},Z0={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",Z0,[...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 G0=ne(W0,[["render",K0]]),Y0={},J0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X0(t,e){return i.openBlock(),i.createElementBlock("svg",J0,[...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 Q0=ne(Y0,[["render",X0]]),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 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 ov=ne(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 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 av=ne(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:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const dv=ne(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return i.openBlock(),i.createElementBlock("svg",pv,[...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 hv=ne(fv,[["render",mv]]),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:"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 _v=ne(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:"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 wv=ne(Cv,[["render",kv]]),Ev={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return i.openBlock(),i.createElementBlock("svg",Sv,[...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 Tv=ne(Ev,[["render",xv]]),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:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Mv=ne(Av,[["render",Dv]]),$v={},Bv={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",Bv,[...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 Lv=ne($v,[["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 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 Vv=ne(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:"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 qv=ne(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:"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 Zv=ne(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:"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 Jv=ne(Kv,[["render",Yv]]),Xv={},Qv={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",Qv,[...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 t2=ne(Xv,[["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:"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 i2=ne(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:"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 c2=ne(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:"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 p2=ne(u2,[["render",f2]]),m2={},h2={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",h2,[...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 v2=ne(m2,[["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:"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 b2=ne(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:"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 S2=ne(k2,[["render",E2]]),x2={},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:"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 N2=ne(x2,[["render",A2]]),D2={},M2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2(t,e){return i.openBlock(),i.createElementBlock("svg",M2,[...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 B2=ne(D2,[["render",$2]]),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:"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 P2=ne(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 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 z2=ne(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:"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 j2=ne(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 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const G2=ne(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:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Q2=ne(Y2,[["render",X2]]),e3=i.defineComponent({name:"LoadingIcon"});const t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",t3,[...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 o3=ne(e3,[["render",n3],["__scopeId","data-v-ad6da4a9"]]),r3={},i3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function s3(t,e){return i.openBlock(),i.createElementBlock("svg",i3,[...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 a3=ne(r3,[["render",s3]]),l3={},c3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u3(t,e){return i.openBlock(),i.createElementBlock("svg",c3,[...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 d3=ne(l3,[["render",u3]]),f3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m3(t,e){return i.openBlock(),i.createElementBlock("svg",p3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const h3=ne(f3,[["render",m3]]),g3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y3(t,e){return i.openBlock(),i.createElementBlock("svg",v3,[...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 _3=ne(g3,[["render",y3]]),C3={},b3={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",b3,[...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 w3=ne(C3,[["render",k3]]),E3={},S3={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",S3,[...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 T3=ne(E3,[["render",x3]]),A3={},N3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D3(t,e){return i.openBlock(),i.createElementBlock("svg",N3,[...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 M3=ne(A3,[["render",D3]]),$3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O3(t,e){return i.openBlock(),i.createElementBlock("svg",B3,[...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 L3=ne($3,[["render",O3]]),I3={},P3={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",P3,[...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 V3=ne(I3,[["render",F3]]),R3={},z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return i.openBlock(),i.createElementBlock("svg",z3,[...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 q3=ne(R3,[["render",U3]]),H3={},j3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return i.openBlock(),i.createElementBlock("svg",j3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const Z3=ne(H3,[["render",W3]]),K3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y3(t,e){return i.openBlock(),i.createElementBlock("svg",G3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const J3=ne(K3,[["render",Y3]]),X3={},Q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e5(t,e){return i.openBlock(),i.createElementBlock("svg",Q3,[...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 t5=ne(X3,[["render",e5]]),n5={},o5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r5(t,e){return i.openBlock(),i.createElementBlock("svg",o5,[...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 i5=ne(n5,[["render",r5]]),s5={},a5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l5(t,e){return i.openBlock(),i.createElementBlock("svg",a5,[...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 c5=ne(s5,[["render",l5]]),u5={},d5={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",d5,[...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 p5=ne(u5,[["render",f5]]),m5={},h5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g5(t,e){return i.openBlock(),i.createElementBlock("svg",h5,[...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 v5=ne(m5,[["render",g5]]),y5={},_5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C5(t,e){return i.openBlock(),i.createElementBlock("svg",_5,[...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 b5=ne(y5,[["render",C5]]),k5={},w5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E5(t,e){return i.openBlock(),i.createElementBlock("svg",w5,[...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 S5=ne(k5,[["render",E5]]),x5={},T5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A5(t,e){return i.openBlock(),i.createElementBlock("svg",T5,[...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 N5=ne(x5,[["render",A5]]),D5={},M5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $5(t,e){return i.openBlock(),i.createElementBlock("svg",M5,[...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 B5=ne(D5,[["render",$5]]),O5={},L5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I5(t,e){return i.openBlock(),i.createElementBlock("svg",L5,[...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 P5=ne(O5,[["render",I5]]),F5={},V5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(t,e){return i.openBlock(),i.createElementBlock("svg",V5,[...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 z5=ne(F5,[["render",R5]]),U5={},q5={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",q5,[...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 j5=ne(U5,[["render",H5]]),W5={},Z5={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",Z5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const G5=ne(W5,[["render",K5]]),Y5={},J5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X5(t,e){return i.openBlock(),i.createElementBlock("svg",J5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const Q5=ne(Y5,[["render",X5]]),ey={},ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ny(t,e){return i.openBlock(),i.createElementBlock("svg",ty,[...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 oy=ne(ey,[["render",ny]]),ry={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return i.openBlock(),i.createElementBlock("svg",iy,[...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 ay=ne(ry,[["render",sy]]),ly=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:t0,AccountCircle:i0,AccountTreeOutlineRounded:c0,AccountTreeRounded:p0,Add:v0,AddBoxOutlineRounded:b0,ArchiveOutlineRounded:S0,ArrowBackRounded:N0,ArrowDropDownRounded:B0,ArrowForwardRounded:P0,AssignmentOutlineRounded:z0,AttachFileRounded:j0,CalendarTodayOutlineRounded:G0,CancelRounded:Q0,ChatOutline:ov,CheckBoxOutlineBlank:av,CheckBoxOutlineBlankSharp:dv,CheckBoxOutlineRounded:hv,CheckSmallRounded:_v,ChecklistRounded:wv,ChevronLeft:Tv,ChevronRight:Mv,CloseRounded:Lv,ContactsOutlineRounded:Vv,ContentCopyOutline:qv,DeleteOutlineRounded:Zv,DownloadRounded:Jv,DragIndicator:t2,EditDocumentRounded:i2,EditOutline:c2,ErrorOutlineRounded:p2,FilterListRounded:v2,FlagRounded:b2,FlowsheetOutlineRounded:S2,GifBox:N2,GroupsOutline:B2,HomeOutlineRounded:P2,ImageRounded:z2,Info:j2,KeyboardArrowDown:G2,KeyboardArrowUp:Q2,Loading:o3,Lock:a3,LogoutRounded:d3,Menu:h3,MoreHoriz:_3,MoreTimeRounded:w3,MoreVert:T3,MountainFlagOutlineRounded:M3,PersonAddOutlineRounded:L3,PictureAsPdfRounded:V3,RadioButtonChecked:q3,RadioButtonCheckedOutline:Z3,RadioButtonUnchecked:J3,RemoveRounded:t5,SearchRounded:i5,SelectCheckBox:c5,SendRounded:p5,Settings:v5,SlideshowRounded:b5,Target:S5,TaskOutlineRounded:N5,TextSnippetRounded:B5,TimerOutline:P5,ViewComfyAltRounded:z5,ViewCompactAltRounded:j5,ViewTimelineRounded:G5,WarningOutlineRounded:Q5,WarningRounded:oy,WaterfallChartRounded:ay},Symbol.toStringTag,{value:"Module"})),cy={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Sa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Gc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},uy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Gc,...uy});const pp={ROUND:"round",ROUNDED:"rounded"},dy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},we=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Sa.MD}},setup(t){const e=t,n=i.computed(()=>ly[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 fy=["type"],py={key:0,class:"ao-button__label"},me=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>cy.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Sa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.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",py,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(we,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,fy))}});function my(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 yt=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}=my(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const _=C.target.value;r("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,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(h,["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 hy={key:0,class:"ao-card-horiz__drag ao-card__drag"},gy={class:"ao-card-horiz__header"},vy={key:0,class:"ao-card-horiz__avatar"},yy={class:"ao-card-horiz__title-group"},_y={key:0,class:"ao-card-horiz__subtitle"},Cy={key:1,class:"ao-card-horiz__header"},by={key:1,class:"ao-card-horiz__body"},ky={key:2,class:"ao-card-horiz__footer"},wy={key:3,class:"ao-card-horiz__secondary"},mp=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",hy,[i.createVNode(we,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",gy,[t.icon?(i.openBlock(),i.createElementBlock("div",vy,[i.createVNode(we,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",yy,[i.createVNode(yt,{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",_y,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",wy,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Li=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(dy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(we,{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(we,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const Ii={todo:"todo",done:"done",archived:"archived"},Ey={months:"months",weeks:"weeks",days:"days"},Sy={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},hp={BEFORE:"before",AFTER:"after"},gp={START:"start",end:"end"},vp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},He={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var yp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(yp||{});const xy={add:"add",remove:"remove",moved:"moved"};var _p=(t=>(t.HOURS="hours",t.DAYS="days",t))(_p||{});const bi={project:"projectId",assignee:"assigneeId"};function Gs(t){"@babel/helpers - typeof";return Gs=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},Gs(t)}function jn(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 wt(t){Qe(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Gs(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 Ty(t,e){Qe(2,arguments);var n=wt(t).getTime(),o=jn(e);return new Date(n+o)}var Ay={};function Ji(){return Ay}function Pi(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 yd(t){Qe(1,arguments);var e=wt(t);return e.setHours(0,0,0,0),e}var Ny=864e5;function Dy(t,e){Qe(2,arguments);var n=yd(t),o=yd(e),r=n.getTime()-Pi(n),s=o.getTime()-Pi(o);return Math.round((r-s)/Ny)}function My(t,e){Qe(2,arguments);var n=wt(t),o=wt(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var Cp=6e4,bp=36e5;function $y(t){return Qe(1,arguments),t instanceof Date||Gs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function kp(t){if(Qe(1,arguments),!$y(t)&&typeof t!="number")return!1;var e=wt(t);return!isNaN(Number(e))}function lc(t,e){Qe(2,arguments);var n=jn(e);return Ty(t,-n)}var By=864e5;function Oy(t){Qe(1,arguments);var e=wt(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/By)+1}function Ys(t){Qe(1,arguments);var e=1,n=wt(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 wp(t){Qe(1,arguments);var e=wt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ys(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ys(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Ly(t){Qe(1,arguments);var e=wp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ys(n);return o}var Iy=6048e5;function Py(t){Qe(1,arguments);var e=wt(t),n=Ys(e).getTime()-Ly(e).getTime();return Math.round(n/Iy)+1}function Js(t,e){var n,o,r,s,a,l,c,u;Qe(1,arguments);var d=Ji(),f=jn((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=wt(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Ep(t,e){var n,o,r,s,a,l,c,u;Qe(1,arguments);var d=wt(t),f=d.getUTCFullYear(),p=Ji(),m=jn((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(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Js(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Js(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Fy(t,e){var n,o,r,s,a,l,c,u;Qe(1,arguments);var d=Ji(),f=jn((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=Ep(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Js(m,e);return h}var Vy=6048e5;function Ry(t,e){Qe(1,arguments);var n=wt(t),o=Js(n,e).getTime()-Fy(n,e).getTime();return Math.round(o/Vy)+1}function $e(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var zy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return $e(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):$e(o+1,2)},d:function(e,n){return $e(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 $e(e.getUTCHours()%12||12,n.length)},H:function(e,n){return $e(e.getUTCHours(),n.length)},m:function(e,n){return $e(e.getUTCMinutes(),n.length)},s:function(e,n){return $e(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 $e(s,n.length)}};const no=zy;var fr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Uy={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 no.y(e,n)},Y:function(e,n,o,r){var s=Ep(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return $e(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):$e(a,n.length)},R:function(e,n){var o=wp(e);return $e(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return $e(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 $e(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 $e(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 no.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 $e(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=Ry(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):$e(s,n.length)},I:function(e,n,o){var r=Py(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):$e(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):no.d(e,n)},D:function(e,n,o){var r=Oy(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):$e(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 $e(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 $e(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 $e(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=fr.noon:r===0?s=fr.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=fr.evening:r>=12?s=fr.afternoon:r>=4?s=fr.morning:s=fr.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 no.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):no.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):$e(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):$e(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):no.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):no.s(e,n)},S:function(e,n){return no.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 Cd(a);case"XXXX":case"XX":return Mo(a);case"XXXXX":case"XXX":default:return Mo(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Cd(a);case"xxxx":case"xx":return Mo(a);case"xxxxx":case"xxx":default:return Mo(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"+_d(a,":");case"OOOO":default:return"GMT"+Mo(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"+_d(a,":");case"zzzz":default:return"GMT"+Mo(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return $e(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return $e(a,n.length)}};function _d(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+$e(s,2)}function Cd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+$e(Math.abs(t)/60,2)}return Mo(t,e)}function Mo(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=$e(Math.floor(r/60),2),a=$e(r%60,2);return o+s+n+a}const qy=Uy;var bd=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"})}},Sp=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"})}},Hy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return bd(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}}",bd(r,n)).replace("{{time}}",Sp(s,n))},jy={p:Sp,P:Hy};const Wy=jy;var Zy=["D","DD"],Ky=["YY","YYYY"];function Gy(t){return Zy.indexOf(t)!==-1}function Yy(t){return Ky.indexOf(t)!==-1}function kd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xy=function(e,n,o){var r,s=Jy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Qy=Xy;function _l(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 e7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o7={date:_l({formats:e7,defaultWidth:"full"}),time:_l({formats:t7,defaultWidth:"full"}),dateTime:_l({formats:n7,defaultWidth:"full"})};const r7=o7;var i7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s7=function(e,n,o,r){return i7[e]};const a7=s7;function ci(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 l7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u7={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"]},d7={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"]},f7={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"}},p7={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"}},m7=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"},h7={ordinalNumber:m7,era:ci({values:l7,defaultWidth:"wide"}),quarter:ci({values:c7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ci({values:u7,defaultWidth:"wide"}),day:ci({values:d7,defaultWidth:"wide"}),dayPeriod:ci({values:f7,defaultWidth:"wide",formattingValues:p7,defaultFormattingWidth:"wide"})};const g7=h7;function ui(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)?y7(l,function(f){return f.test(a)}):v7(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 v7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function y7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function _7(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 C7=/^(\d+)(th|st|nd|rd)?/i,b7=/\d+/i,k7={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},w7={any:[/^b/i,/^(a|c)/i]},E7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},S7={any:[/1/i,/2/i,/3/i,/4/i]},x7={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},T7={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]},A7={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},N7={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]},D7={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},M7={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}},$7={ordinalNumber:_7({matchPattern:C7,parsePattern:b7,valueCallback:function(e){return parseInt(e,10)}}),era:ui({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any"}),quarter:ui({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:S7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ui({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),day:ui({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:ui({matchPatterns:D7,defaultMatchWidth:"any",parsePatterns:M7,defaultParseWidth:"any"})};const B7=$7;var O7={code:"en-US",formatDistance:Qy,formatLong:r7,formatRelative:a7,localize:g7,match:B7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const xp=O7;var L7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P7=/^'([^]*?)'?$/,F7=/''/g,V7=/[a-zA-Z]/;function Tp(t,e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k;Qe(2,arguments);var w=String(e),b=Ji(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:xp,T=jn((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 x=jn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(v=C.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&h!==void 0?h:(_=b.locale)===null||_===void 0||(k=_.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var N=wt(t);if(!kp(N))throw new RangeError("Invalid time value");var L=Pi(N),A=lc(N,L),D={firstWeekContainsDate:T,weekStartsOn:x,locale:E,_originalDate:N},M=w.match(I7).map(function(I){var P=I[0];if(P==="p"||P==="P"){var j=Wy[P];return j(I,E.formatLong)}return I}).join("").match(L7).map(function(I){if(I==="''")return"'";var P=I[0];if(P==="'")return R7(I);var j=qy[P];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Yy(I)&&kd(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Gy(I)&&kd(I,e,String(t)),j(A,I,E.localize,D);if(P.match(V7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return I}).join("");return M}function R7(t){var e=t.match(P7);return e?e[1].replace(F7,"'"):t}function z7(t,e,n){var o,r,s,a,l,c,u,d,f,p;Qe(2,arguments);var m=wt(t),h=wt(e),g=Ji(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:xp,C=jn((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(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=Dy(m,h);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var k=lc(m,Pi(m)),w=lc(h,Pi(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return Tp(m,b,{locale:y,weekStartsOn:C})}function Fi(t,e){var n;Qe(1,arguments);var o=jn((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=j7(t),s;if(r.date){var a=W7(r.date,o);s=Z7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=K7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=G7(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 Es={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j7(t){var e={},n=t.split(Es.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],Es.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Es.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=Es.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function W7(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function Z7(t,e){if(e===null)return new Date(NaN);var n=t.match(U7);if(!n)return new Date(NaN);var o=!!n[4],r=di(n[1]),s=di(n[2])-1,a=di(n[3]),l=di(n[4]),c=di(n[5])-1;if(o)return e_(e,l,c)?Y7(e,l,c):new Date(NaN);var u=new Date(0);return!X7(e,s,a)||!Q7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function di(t){return t?parseInt(t):1}function K7(t){var e=t.match(q7);if(!e)return NaN;var n=Cl(e[1]),o=Cl(e[2]),r=Cl(e[3]);return t_(n,o,r)?n*bp+o*Cp+r*1e3:NaN}function Cl(t){return t&&parseFloat(t.replace(",","."))||0}function G7(t){if(t==="Z")return 0;var e=t.match(H7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return n_(o,r)?n*(o*bp+r*Cp):NaN}function Y7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var J7=[31,null,31,30,31,30,31,31,30,31,30,31];function Ap(t){return t%400===0||t%4===0&&t%100!==0}function X7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(J7[e]||(Ap(t)?29:28))}function Q7(t,e){return e>=1&&e<=(Ap(t)?366:365)}function e_(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function t_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function n_(t,e){return e>=0&&e<=59}var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r_(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 st={},Np={},fi={},Xi={},Ur={},xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.lexoHelper=void 0;xa.lexoHelper={arrayCopy:i_};function i_(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 Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});class s_{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}}Qi.default=s_;Object.defineProperty(Ur,"__esModule",{value:!0});Ur.LexoInteger=void 0;const Ss=xa,a_=Qi;class ge{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 ge.make(n,r,s)}static zero(e){return new ge(e,0,ge.ZERO_MAG)}static one(e){return ge.make(e,1,ge.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return ge.zero(e);if(r===o.length)return new ge(e,n,o);const s=new Array(r).fill(0);return Ss.lexoHelper.arrayCopy(o,0,s,0,r),new ge(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 ge.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Ss.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=ge.complement(e,o,n.length),s=ge.add(e,n,r);return s[s.length-1]=0,ge.add(e,s,ge.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=ge.add(this.sys,this.mag,e.mag);return ge.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=ge.compare(this.mag,e.mag);return n===0?ge.zero(this.sys):n<0?ge.make(this.sys,this.sign===-1?1:-1,ge.subtract(this.sys,e.mag,this.mag)):ge.make(this.sys,this.sign===-1?-1:1,ge.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?ge.make(this.sys,1,e.mag):ge.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ge.make(this.sys,1,this.mag):ge.make(this.sys,-1,this.mag);const n=ge.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ge.make(this.sys,1,n):ge.make(this.sys,-1,n)}negate(){return this.isZero()?this:ge.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 Ss.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ge.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ge.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Ss.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ge.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ge.make(this.sys,this.sign,ge.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=ge.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ge.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 a_.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")}}Ur.LexoInteger=ge;ge.ZERO_MAG=[0];ge.ONE_MAG=[1];ge.NEGATIVE_SIGN=-1;ge.ZERO_SIGN=0;ge.POSITIVE_SIGN=1;Object.defineProperty(Xi,"__esModule",{value:!0});Xi.LexoDecimal=void 0;const pi=Ur,l_=Qi;class jt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return jt.make(pi.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 jt.make(pi.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return jt.make(pi.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return jt.make(e,0)}static make(e,n){if(e.isZero())return new jt(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 jt(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 jt.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 jt.make(n.subtract(r),o)}multiply(e){return jt.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(pi.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(pi.LexoInteger.one(r.getSystem()))),jt.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 l_.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()}}Xi.LexoDecimal=jt;var xs={},wd;function Dp(){if(wd)return xs;wd=1,Object.defineProperty(xs,"__esModule",{value:!0});const t=Ur,e=$p();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 xs.default=n,xs}var Yc={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem10=void 0;class c_{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)}}Ta.LexoNumeralSystem10=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem36=void 0;class u_{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]}}Aa.LexoNumeralSystem36=u_;var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.LexoNumeralSystem64=void 0;class d_{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]}}Na.LexoNumeralSystem64=d_;(function(t){var e=Tt&&Tt.__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=Tt&&Tt.__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(Mp,t),n(Ta,t),n(Aa,t),n(Na,t)})(Yc);var Ed;function $p(){if(Ed)return fi;Ed=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.LexoRank=void 0;const t=Xi,e=Dp(),n=Qi,o=Yc;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 h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return r.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=r.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);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 fi.LexoRank=r,fi}(function(t){var e=Tt&&Tt.__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=Tt&&Tt.__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($p(),t),n(Dp(),t),n(Xi,t),n(Ur,t)})(Np);(function(t){var e=Tt&&Tt.__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=Tt&&Tt.__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(Yc,t)})(st);const ki=60,f_=8,Sd=ki*f_;function Da(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Sd),r=Math.floor(t%Sd/ki);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%ki;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/ki),r=t%ki;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Bp(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 p_(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 m_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Bp(n.milestones):0;return e+o},0))??0}function h_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function es(t,e){if(t.moved)return Dr(e,t.moved.newIndex)}function Dr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return st.LexoRank.parse(n.rank).genPrev().format()}else return st.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return st.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return st.LexoRank.parse(o.rank).between(st.LexoRank.parse(n.rank)).format()}}function ts(t){if(t.length===0)return st.LexoRank.middle().format();const e=t[0];return st.LexoRank.parse(e.rank).genPrev().format()}function Ma(t,e="dd/MM/yyyy"){if(!t)return"";const n=Fi(t);return kp(n)?Tp(n,e):""}function Jc(t,e){return t.status.id===e.id}function g_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Jc(n,e))}function v_(t,e){return{...t,status:g_(t,e)?Ii.done:Ii.todo}}const Op=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function y_(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 __(t,e=.15){var n;if(t.startsWith("#"))return y_(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 Lp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function xd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Lp(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 C_=["title"],b_={key:0,className:"ao-avatar__initials"},k_=["src"],Yn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Sa.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=h_(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",b_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,k_)):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,C_))}});const w_={class:"ao-card-template__subitems"},E_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__subitem-number"},x_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__subitem"},A_={class:"ao-card-template__body"},N_={class:"ao-card-template__col ao-card-template__col--phases"},D_={class:"ao-card-template__col-title"},M_={class:"ao-card-template__col-label"},$_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},B_={class:"ao-card-template__footer"},O_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},L_={class:"ao-card-template__col-title"},I_={class:"ao-card-template__col-label"},P_={class:"ao-card-template__col-body"},F_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},V_={class:"ao-card-template__col-title"},R_={class:"ao-card-template__col-label"},z_={class:"ao-card-template__col-body"},U_={class:"ao-card-template-item__secondary"},bl=5,q_=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,bl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>bl?n.phases.length-bl:0);return(c,u)=>(i.openBlock(),i.createBlock(mp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",w_,[i.createElementVNode("li",E_,[i.createVNode(we,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",S_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",x_,[i.createVNode(we,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",T_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createElementVNode("div",D_,[i.createVNode(we,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",M_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",$_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Li,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Li,{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",U_,[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",B_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",O_,[i.createElementVNode("div",L_,[i.createElementVNode("span",I_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",P_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",F_,[i.createElementVNode("div",V_,[i.createElementVNode("span",R_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",z_,[i.createVNode(Yn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const H_={class:"ao-page-header"},j_={class:"ao-page-header-main"},W_={key:0,class:"ao-page-header-secondary"},ns=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",H_,[i.createElementVNode("div",j_,[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",W_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const Z_=["type"],K_={key:0,class:"ao-button-card__label"},Co=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Gc.BLACK},size:{default:()=>Sa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.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",K_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(we,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,Z_))}});const G_={class:"ao-card-template-item__footer"},Y_={key:0,class:"ao-card-template-item__subitem"},J_={class:"ao-card-template-item__subitem-number"},X_={class:"ao-card-template-item__secondary"},Xc=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(mp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",G_,[(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",Y_,[i.createVNode(we,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",J_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",X_,[i.createVNode(me,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const Q_=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?Bp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Xc,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"]))}}),eC=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(Xc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),tC={class:"ao-list__footer"},nC=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=es(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(_o),{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(yt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(eC,{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",tC,[i.createVNode(Co,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),oC=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(Xc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),rC={class:"ao-list__footer"},iC=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=es(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(_o),{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(yt,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(oC,{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",rC,[i.createVNode(Co,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),sC={class:"ao-modal"},aC={key:0,class:"ao-modal__header"},lC={class:"ao-modal__header-meta"},cC={class:"ao-modal__title-group"},uC={class:"ao-modal__body"},dC={key:1,class:"ao-modal__footer"},$a=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",sC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",aC,[i.createElementVNode("div",lC,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",cC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",uC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",dC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Vi=Math.min,Wt=Math.max,Xs=Math.round,Ts=Math.floor,mo=t=>({x:t,y:t}),fC={left:"right",right:"left",bottom:"top",top:"bottom"},pC={start:"end",end:"start"};function Qc(t,e){return typeof t=="function"?t(e):t}function Mr(t){return t.split("-")[0]}function Ba(t){return t.split("-")[1]}function mC(t){return t==="x"?"y":"x"}function Ip(t){return t==="y"?"height":"width"}function eu(t){return["top","bottom"].includes(Mr(t))?"y":"x"}function Pp(t){return mC(eu(t))}function hC(t,e,n){n===void 0&&(n=!1);const o=Ba(t),r=Pp(t),s=Ip(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qs(a)),[a,Qs(a)]}function gC(t){const e=Qs(t);return[cc(t),e,cc(e)]}function cc(t){return t.replace(/start|end/g,e=>pC[e])}function vC(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 yC(t,e,n,o){const r=Ba(t);let s=vC(Mr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(cc)))),s}function Qs(t){return t.replace(/left|right|bottom|top/g,e=>fC[e])}function _C(t){return{top:0,right:0,bottom:0,left:0,...t}}function CC(t){return typeof t!="number"?_C(t):{top:t,right:t,bottom:t,left:t}}function ea(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Td(t,e,n){let{reference:o,floating:r}=t;const s=eu(e),a=Pp(e),l=Ip(a),c=Mr(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 m;switch(c){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Ba(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const bC=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}=Td(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:v,y:_,data:k,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...k}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):w.rects),{x:d,y:f}=Td(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Fp(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:m=0}=Qc(e,t),h=CC(m),y=l[p?f==="floating"?"reference":"floating":f],C=ea(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="floating"?{...a.floating,x:o,y:r}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},w=ea(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/k.y,bottom:(w.bottom-C.bottom+h.bottom)/k.y,left:(C.left-w.left+h.left)/k.x,right:(w.right-C.right+h.right)/k.x}}const kC=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:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=Qc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Mr(r),v=Mr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Qs(l)]:gC(l));!p&&h!=="none"&&k.push(...yC(l,g,h,_));const w=[l,...k],b=await Fp(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=hC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var x,N;const A=(((x=s.flip)==null?void 0:x.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:T},reset:{placement:D}};let M=(N=T.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(m){case"bestFit":{var L;const I=(L=T.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,V)=>j+V,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:L[0];I&&(M=I);break}case"initialPlacement":M=l;break}if(r!==M)return{reset:{placement:M}}}return{}}}},wC=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}=Qc(t,e),c=await Fp(e,l),u=Mr(n),d=Ba(n),f=eu(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],v=!e.middlewareData.shift;let _=y,k=C;if(f){const b=p-c.left-c.right;k=d||v?Vi(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Vi(y,b):b}if(v&&!d){const b=Wt(c.left,0),E=Wt(c.right,0),T=Wt(c.top,0),x=Wt(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Wt(c.left,c.right)):_=m-2*(T!==0||x!==0?T+x:Wt(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:_});const w=await r.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function ho(t){return Vp(t)?(t.nodeName||"").toLowerCase():"#document"}function Vt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Jn(t){var e;return(e=(Vp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Vp(t){return t instanceof Node||t instanceof Vt(t).Node}function Wn(t){return t instanceof Element||t instanceof Vt(t).Element}function Tn(t){return t instanceof HTMLElement||t instanceof Vt(t).HTMLElement}function Ad(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Vt(t).ShadowRoot}function os(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Xt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function EC(t){return["table","td","th"].includes(ho(t))}function tu(t){const e=nu(),n=Xt(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 SC(t){let e=$r(t);for(;Tn(e)&&!Oa(e);){if(tu(e))return e;e=$r(e)}return null}function nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oa(t){return["html","body","#document"].includes(ho(t))}function Xt(t){return Vt(t).getComputedStyle(t)}function La(t){return Wn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $r(t){if(ho(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ad(t)&&t.host||Jn(t);return Ad(e)?e.host:e}function Rp(t){const e=$r(t);return Oa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Tn(e)&&os(e)?e:Rp(e)}function Ri(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Rp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Vt(r);return s?e.concat(a,a.visualViewport||[],os(r)?r:[],a.frameElement&&n?Ri(a.frameElement):[]):e.concat(r,Ri(r))}function zp(t){const e=Xt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Tn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Xs(n)!==s||Xs(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function ou(t){return Wn(t)?t:t.contextElement}function kr(t){const e=ou(t);if(!Tn(e))return mo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=zp(e);let a=(s?Xs(n.width):n.width)/o,l=(s?Xs(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xC=mo(0);function Up(t){const e=Vt(t);return!nu()||!e.visualViewport?xC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function TC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Vt(t)?!1:e}function jo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=ou(t);let a=mo(1);e&&(o?Wn(o)&&(a=kr(o)):a=kr(t));const l=TC(s,n,o)?Up(s):mo(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=Vt(s),m=o&&Wn(o)?Vt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=kr(h),y=h.getBoundingClientRect(),C=Xt(h),v=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,_=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=v,u+=_,h=Vt(h).frameElement}}return ea({width:d,height:f,x:c,y:u})}function AC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=Tn(n),s=Jn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=mo(1);const c=mo(0);if((r||!r&&o!=="fixed")&&((ho(n)!=="body"||os(s))&&(a=La(n)),Tn(n))){const u=jo(n);l=kr(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 NC(t){return Array.from(t.getClientRects())}function qp(t){return jo(Jn(t)).left+La(t).scrollLeft}function DC(t){const e=Jn(t),n=La(t),o=t.ownerDocument.body,r=Wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+qp(t);const l=-n.scrollTop;return Xt(o).direction==="rtl"&&(a+=Wt(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function MC(t,e){const n=Vt(t),o=Jn(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=nu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function $C(t,e){const n=jo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=Tn(t)?kr(t):mo(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 Nd(t,e,n){let o;if(e==="viewport")o=MC(t,n);else if(e==="document")o=DC(Jn(t));else if(Wn(e))o=$C(e,n);else{const r=Up(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return ea(o)}function Hp(t,e){const n=$r(t);return n===e||!Wn(n)||Oa(n)?!1:Xt(n).position==="fixed"||Hp(n,e)}function BC(t,e){const n=e.get(t);if(n)return n;let o=Ri(t,[],!1).filter(l=>Wn(l)&&ho(l)!=="body"),r=null;const s=Xt(t).position==="fixed";let a=s?$r(t):t;for(;Wn(a)&&!Oa(a);){const l=Xt(a),c=tu(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||os(a)&&!c&&Hp(t,a))?o=o.filter(d=>d!==a):r=l,a=$r(a)}return e.set(t,o),o}function OC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?BC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Nd(e,d,r);return u.top=Wt(f.top,u.top),u.right=Vi(f.right,u.right),u.bottom=Vi(f.bottom,u.bottom),u.left=Wt(f.left,u.left),u},Nd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function LC(t){return zp(t)}function IC(t,e,n){const o=Tn(e),r=Jn(e),s=n==="fixed",a=jo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=mo(0);if(o||!o&&!s)if((ho(e)!=="body"||os(r))&&(l=La(e)),o){const u=jo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=qp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Dd(t,e){return!Tn(t)||Xt(t).position==="fixed"?null:e?e(t):t.offsetParent}function jp(t,e){const n=Vt(t);if(!Tn(t))return n;let o=Dd(t,e);for(;o&&EC(o)&&Xt(o).position==="static";)o=Dd(o,e);return o&&(ho(o)==="html"||ho(o)==="body"&&Xt(o).position==="static"&&!tu(o))?n:o||SC(t)||n}const PC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||jp,s=this.getDimensions;return{reference:IC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function FC(t){return Xt(t).direction==="rtl"}const VC={convertOffsetParentRelativeRectToViewportRelativeRect:AC,getDocumentElement:Jn,getClippingRect:OC,getOffsetParent:jp,getElementRects:PC,getClientRects:NC,getDimensions:LC,getScale:kr,isElement:Wn,isRTL:FC};function RC(t,e){let n=null,o;const r=Jn(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 m=Ts(d),h=Ts(r.clientWidth-(u+f)),g=Ts(r.clientHeight-(d+p)),y=Ts(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Wt(0,Vi(1,c))||1};let _=!0;function k(w){const b=w[0].intersectionRatio;if(b!==c){if(!_)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(k,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(t)}return a(!0),s}function zC(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=ou(t),d=r||s?[...u?Ri(u):[],...Ri(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?RC(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[v]=C;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?jo(t):null;c&&y();function y(){const C=jo(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const UC=(t,e,n)=>{const o=new Map,r={platform:VC,...n},s={...r.platform,_c:o};return bC(t,e,{...r,platform:s})},qC=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 h=zC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||UC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[kC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),wC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.value}px`,width:`${h.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 _n(t){return[null,void 0].indexOf(t)!==-1}function HC(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 m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||_n(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>_n(f)?s.value==="single"?{}:[]:f;return{update:c}}function jC(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 WC(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 m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function ZC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function kl(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 KC(t){return Object.prototype.toString.call(t)==="[object Object]"}function GC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function YC(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:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:v,filterResults:_,clearOnSearch:k,clearOnSelect:w,valueProp:b,allowAbsent:E,groupLabel:T,canDeselect:x,max:N,strict:L,closeOnSelect:A,closeOnDeselect:D,groups:M,reverse:I,infinite:P,groupOptions:j,groupHideEmpty:V,groupSelect:q,onCreate:F,disabledProp:Y,searchStart:ee,searchFilter:Ee}=i.toRefs(t),ie=i.getCurrentInstance().proxy,se=n.iv,z=n.ev,oe=n.search,ye=n.clearSearch,Be=n.update,H=n.pointer,ae=n.setPointer,fe=n.clearPointer,he=n.focus,ke=n.deactivate,Ve=n.close,_e=n.localize,Pe=i.ref([]),Ze=i.ref([]),De=i.ref(!1),Ge=i.ref(null),_t=i.ref(P.value&&a.value===-1?10:a.value),vn=i.computed(()=>c.value||u.value||!1),On=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Re=i.computed(()=>{if(M.value){let $=Dt.value||[],J=[];return $.forEach(be=>{oi(be[j.value]).forEach(Ue=>{J.push(Object.assign({},Ue,be[Y.value]?{[Y.value]:!0}:{}))})}),J}else{let $=oi(Ze.value||[]);return Pe.value.length&&($=$.concat(Pe.value)),$}}),ct=i.computed(()=>{let $=Re.value;return I.value&&($=$.reverse()),Ce.value.length&&($=Ce.value.concat($)),ni($)}),nt=i.computed(()=>{let $=ct.value;return _t.value>0&&($=$.slice(0,_t.value)),$}),Dt=i.computed(()=>{if(!M.value)return[];let $=[],J=Ze.value||[];return Pe.value.length&&$.push({[T.value]:" ",[j.value]:[...Pe.value],__CREATE__:!0}),$.concat(J)}),B=i.computed(()=>{let $=[...Dt.value].map(J=>({...J}));return Ce.value.length&&($[0]&&$[0].__CREATE__?$[0][j.value]=[...Ce.value,...$[0][j.value]]:$=[{[T.value]:" ",[j.value]:[...Ce.value],__CREATE__:!0}].concat($)),$}),W=i.computed(()=>{if(!M.value)return[];let $=B.value;return xo(($||[]).map((J,be)=>{const Ue=oi(J[j.value]);return{...J,index:be,group:!0,[j.value]:ni(Ue,!1).map(Ln=>Object.assign({},Ln,J[Y.value]?{[Y.value]:!0}:{})),__VISIBLE__:ni(Ue).map(Ln=>Object.assign({},Ln,J[Y.value]?{[Y.value]:!0}:{}))}}))}),ue=i.computed(()=>{switch(r.value){case"single":return!_n(se.value[b.value]);case"multiple":case"tags":return!_n(se.value)&&se.value.length>0}}),ze=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(se.value,ie):se.value&&se.value.length>1?`${se.value.length} options selected`:"1 option selected"),ut=i.computed(()=>!Re.value.length&&!De.value&&!Ce.value.length),tn=i.computed(()=>Re.value.length>0&&nt.value.length==0&&(oe.value&&M.value||!M.value)),Ce=i.computed(()=>vn.value===!1||!oe.value?[]:ys(oe.value)!==-1?[]:[{[b.value]:oe.value,[Ht.value[0]]:oe.value,[d.value]:oe.value,__CREATE__:!0}]),Ht=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ar=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Xr=i.computed(()=>g.value||De.value),nn=$=>{switch(typeof $!="object"&&($=Lt($)),r.value){case"single":Be($);break;case"multiple":case"tags":Be(se.value.concat($));break}e.emit("select",$t($),$,ie)},Mt=$=>{switch(typeof $!="object"&&($=Lt($)),r.value){case"single":Qr();break;case"tags":case"multiple":Be(Array.isArray($)?se.value.filter(J=>$.map(be=>be[b.value]).indexOf(J[b.value])===-1):se.value.filter(J=>J[b.value]!=$[b.value]));break}e.emit("deselect",$t($),$,ie)},$t=$=>h.value?$:$[b.value],lr=$=>{Mt($)},gs=($,J)=>{if(J.button!==0){J.preventDefault();return}lr($)},Qr=()=>{Be(ar.value),e.emit("clear",ie)},Bt=$=>{if($.group!==void 0)return r.value==="single"?!1:vs($[j.value])&&$[j.value].length;switch(r.value){case"single":return!_n(se.value)&&se.value[b.value]==$[b.value];case"tags":case"multiple":return!_n(se.value)&&se.value.map(J=>J[b.value]).indexOf($[b.value])!==-1}},cr=$=>$[Y.value]===!0,Qn=()=>N===void 0||N.value===-1||!ue.value&&N.value>0?!1:se.value.length>=N.value,ur=$=>{if(!cr($)){if(F&&F.value&&!Bt($)&&$.__CREATE__&&($={...$},delete $.__CREATE__,$=F.value($,ie),$ instanceof Promise)){De.value=!0,$.then(J=>{De.value=!1,Ot(J)});return}Ot($)}},Ot=$=>{switch($.__CREATE__&&($={...$},delete $.__CREATE__),r.value){case"single":if($&&Bt($)){x.value&&Mt($),D.value&&(fe(),Ve());return}$&&So($),w.value&&ye(),A.value&&(fe(),Ve()),$&&nn($);break;case"multiple":if($&&Bt($)){Mt($),D.value&&(fe(),Ve());return}if(Qn()){e.emit("max",ie);return}$&&(So($),nn($)),w.value&&ye(),l.value&&fe(),A.value&&Ve();break;case"tags":if($&&Bt($)){Mt($),D.value&&(fe(),Ve());return}if(Qn()){e.emit("max",ie);return}$&&So($),w.value&&ye(),$&&nn($),l.value&&fe(),A.value&&Ve();break}A.value||he()},eo=$=>{if(!(cr($)||r.value==="single"||!q.value)){switch(r.value){case"multiple":case"tags":ml($[j.value])?Mt($[j.value]):nn($[j.value].filter(J=>se.value.map(be=>be[b.value]).indexOf(J[b.value])===-1).filter(J=>!J[Y.value]).filter((J,be)=>se.value.length+1+be<=N.value||N.value===-1)),l.value&&H.value&&ae(W.value.filter(J=>!J[Y.value])[H.value.index]);break}A.value&&ke()}},So=$=>{Lt($[b.value])===void 0&&vn.value&&(e.emit("tag",$[b.value],ie),e.emit("option",$[b.value],ie),e.emit("create",$[b.value],ie),On.value&&hl($),ye())},ei=()=>{r.value!=="single"&&nn(nt.value.filter($=>!$.disabled&&!Bt($)))},ml=$=>$.find(J=>!Bt(J)&&!J[Y.value])===void 0,vs=$=>$.find(J=>!Bt(J))===void 0,Lt=$=>Re.value[Re.value.map(J=>String(J[b.value])).indexOf(String($))],ys=$=>Re.value.findIndex(J=>Ht.value.some(be=>(parseInt(J[be])==J[be]?parseInt(J[be]):J[be])===(parseInt($)==$?parseInt($):$))),ti=$=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Bt($),hl=$=>{Pe.value.push($)},xo=$=>V.value?$.filter(J=>oe.value?J.__VISIBLE__.length:J[j.value].length):$.filter(J=>oe.value?J.__VISIBLE__.length:!0),ni=($,J=!0)=>{let be=$;if(oe.value&&_.value){let Ue=Ee.value;Ue||(Ue=(Ln,rn,si)=>Ht.value.some(In=>{let Cs=kl(_e(Ln[In]),L.value);return ee.value?Cs.startsWith(kl(rn,L.value)):Cs.indexOf(kl(rn,L.value))!==-1})),be=be.filter(Ln=>Ue(Ln,oe.value,ie))}return l.value&&J&&(be=be.filter(Ue=>!ti(Ue))),be},oi=$=>{let J=$;return KC(J)&&(J=Object.keys(J).map(be=>{let Ue=J[be];return{[b.value]:be,[Ht.value[0]]:Ue,[d.value]:Ue}})),J=J.map(be=>typeof be=="object"?be:{[b.value]:be,[Ht.value[0]]:be,[d.value]:be}),J},Oe=()=>{_n(z.value)||(se.value=to(z.value))},on=$=>(De.value=!0,new Promise((J,be)=>{o.value(oe.value,ie).then(Ue=>{Ze.value=Ue||[],typeof $=="function"&&$(Ue),De.value=!1}).catch(Ue=>{console.error(Ue),Ze.value=[],De.value=!1}).finally(()=>{J()})})),ri=()=>{if(ue.value)if(r.value==="single"){let $=Lt(se.value[b.value]);if($!==void 0){let J=$[d.value];se.value[d.value]=J,h.value&&(z.value[d.value]=J)}}else se.value.forEach(($,J)=>{let be=Lt(se.value[J][b.value]);if(be!==void 0){let Ue=be[d.value];se.value[J][d.value]=Ue,h.value&&(z.value[J][d.value]=Ue)}})},_s=$=>{on($)},to=$=>_n($)?r.value==="single"?{}:[]:h.value?$:r.value==="single"?Lt($)||(E.value?{[d.value]:$,[b.value]:$,[Ht.value[0]]:$}:{}):$.filter(J=>!!Lt(J)||E.value).map(J=>Lt(J)||{[d.value]:J,[b.value]:J,[Ht.value[0]]:J}),ii=()=>{Ge.value=i.watch(oe,$=>{$.length<v.value||!$&&v.value!==0||(De.value=!0,k.value&&(Ze.value=[]),setTimeout(()=>{$==oe.value&&o.value(oe.value,ie).then(J=>{($==oe.value||!oe.value)&&(Ze.value=J,H.value=nt.value.filter(be=>be[Y.value]!==!0)[0]||null,De.value=!1)}).catch(J=>{console.error(J)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!_n(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?C.value?on(Oe):h.value==!0&&Oe():(Ze.value=o.value,Oe()),y.value>-1&&ii(),i.watch(y,($,J)=>{Ge.value&&Ge.value(),$>=0&&ii()}),i.watch(z,$=>{if(_n($)){Be(to($),!1);return}switch(r.value){case"single":(h.value?$[b.value]!=se.value[b.value]:$!=se.value[b.value])&&Be(to($),!1);break;case"multiple":case"tags":GC(h.value?$.map(J=>J[b.value]):$,se.value.map(J=>J[b.value]))||Be(to($),!1);break}},{deep:!0}),i.watch(o,($,J)=>{typeof t.options=="function"?C.value&&(!J||$&&$.toString()!==J.toString())&&on():(Ze.value=t.options,Object.keys(se.value).length||Oe(),ri())}),i.watch(d,ri),i.watch(a,($,J)=>{_t.value=P.value&&$===-1?10:$}),{pfo:ct,fo:nt,filteredOptions:nt,hasSelected:ue,multipleLabelText:ze,eo:Re,extendedOptions:Re,eg:Dt,extendedGroups:Dt,fg:W,filteredGroups:W,noOptions:ut,noResults:tn,resolving:De,busy:Xr,offset:_t,select:nn,deselect:Mt,remove:lr,selectAll:ei,clear:Qr,isSelected:Bt,isDisabled:cr,isMax:Qn,getOption:Lt,handleOptionClick:ur,handleGroupClick:eo,handleTagRemove:gs,refreshOptions:_s,resolveOptions:on,refreshLabels:ri}}function JC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,v=n.setPointer,_=n.clearPointer,k=n.multiselect,w=n.isOpen,b=i.computed(()=>p.value.filter(z=>!z[d.value])),E=i.computed(()=>m.value.filter(z=>!z[d.value])),T=i.computed(()=>c.value!=="single"&&u.value),x=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>ie(C.value)),L=i.computed(()=>{const z=x.value?C.value:ie(C.value),oe=E.value.map(Be=>Be[a.value]).indexOf(z[a.value]);let ye=E.value[oe-1];return ye===void 0&&(ye=D.value),ye}),A=i.computed(()=>{let z=E.value.map(oe=>oe.label).indexOf(x.value?C.value[a.value]:ie(C.value)[a.value])+1;return E.value.length<=z&&(z=0),E.value[z]}),D=i.computed(()=>[...E.value].slice(-1)[0]),M=i.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),I=i.computed(()=>{const z=N.value.__VISIBLE__.filter(oe=>!oe[d.value]);return z[z.map(oe=>oe[o.value]).indexOf(C.value[o.value])-1]}),P=i.computed(()=>{const z=ie(C.value).__VISIBLE__.filter(oe=>!oe[d.value]);return z[z.map(oe=>oe[o.value]).indexOf(C.value[o.value])+1]}),j=i.computed(()=>[...L.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),V=i.computed(()=>[...D.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),q=z=>C.value&&(!z.group&&C.value[o.value]===z[o.value]||z.group!==void 0&&C.value[a.value]===z[a.value])?!0:void 0,F=()=>{v(b.value[0]||null)},Y=()=>{!C.value||C.value[d.value]===!0||(x.value?g(C.value):h(C.value))},ee=()=>{if(C.value===null)v((l.value&&T.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&T.value){let z=x.value?M.value:P.value;z===void 0&&(z=A.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=b.value.map(oe=>oe[o.value]).indexOf(C.value[o.value])+1;b.value.length<=z&&(z=0),v(b.value[z]||null)}i.nextTick(()=>{se()})},Ee=()=>{if(C.value===null){let z=b.value[b.value.length-1];l.value&&T.value&&(z=V.value,z===void 0&&(z=D.value)),v(z||null)}else if(l.value&&T.value){let z=x.value?j.value:I.value;z===void 0&&(z=x.value?L.value:N.value,z.__CREATE__&&(z=j.value,z===void 0&&(z=L.value))),v(z||null)}else{let z=b.value.map(oe=>oe[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=b.value.length-1),v(b.value[z]||null)}i.nextTick(()=>{se()})},ie=z=>E.value.find(oe=>oe.__VISIBLE__.map(ye=>ye[o.value]).indexOf(z[o.value])!==-1),se=()=>{let z=k.value.querySelector("[data-pointed]");if(!z)return;let oe=z.parentElement.parentElement;l.value&&(oe=x.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>oe.clientHeight+oe.scrollTop&&(oe.scrollTop=z.offsetTop+z.offsetHeight-oe.clientHeight),z.offsetTop<oe.scrollTop&&(oe.scrollTop=z.offsetTop)};return i.watch(y,z=>{s.value&&(z.length&&r.value?F():_())}),i.watch(w,z=>{if(z){let oe=k.value.querySelectorAll("[data-selected]")[0];if(!oe)return;let ye=oe.parentElement.parentElement;i.nextTick(()=>{ye.scrollTop>0||(ye.scrollTop=oe.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:F,selectPointer:Y,forwardPointer:ee,backwardPointer:Ee}}function Rt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Wo(t){var e=Rt(t).Element;return t instanceof e||t instanceof Element}function Yt(t){var e=Rt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ru(t){if(typeof ShadowRoot>"u")return!1;var e=Rt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Ro=Math.max,ta=Math.min,Br=Math.round;function uc(){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 Wp(){return!/^((?!chrome|android).)*safari/i.test(uc())}function Or(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Yt(t)&&(r=t.offsetWidth>0&&Br(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Br(o.height)/t.offsetHeight||1);var a=Wo(t)?Rt(t):window,l=a.visualViewport,c=!Wp()&&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 iu(t){var e=Rt(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function XC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function QC(t){return t===Rt(t)||!Yt(t)?iu(t):XC(t)}function An(t){return t?(t.nodeName||"").toLowerCase():null}function bo(t){return((Wo(t)?t.ownerDocument:t.document)||window.document).documentElement}function su(t){return Or(bo(t)).left+iu(t).scrollLeft}function Zn(t){return Rt(t).getComputedStyle(t)}function au(t){var e=Zn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function eb(t){var e=t.getBoundingClientRect(),n=Br(e.width)/t.offsetWidth||1,o=Br(e.height)/t.offsetHeight||1;return n!==1||o!==1}function tb(t,e,n){n===void 0&&(n=!1);var o=Yt(e),r=Yt(e)&&eb(e),s=bo(e),a=Or(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((An(e)!=="body"||au(s))&&(l=QC(e)),Yt(e)?(c=Or(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=su(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Zp(t){var e=Or(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 Ia(t){return An(t)==="html"?t:t.assignedSlot||t.parentNode||(ru(t)?t.host:null)||bo(t)}function Kp(t){return["html","body","#document"].indexOf(An(t))>=0?t.ownerDocument.body:Yt(t)&&au(t)?t:Kp(Ia(t))}function Ti(t,e){var n;e===void 0&&(e=[]);var o=Kp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=Rt(o),a=r?[s].concat(s.visualViewport||[],au(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ti(Ia(a)))}function nb(t){return["table","td","th"].indexOf(An(t))>=0}function Md(t){return!Yt(t)||Zn(t).position==="fixed"?null:t.offsetParent}function ob(t){var e=/firefox/i.test(uc()),n=/Trident/i.test(uc());if(n&&Yt(t)){var o=Zn(t);if(o.position==="fixed")return null}var r=Ia(t);for(ru(r)&&(r=r.host);Yt(r)&&["html","body"].indexOf(An(r))<0;){var s=Zn(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 Pa(t){for(var e=Rt(t),n=Md(t);n&&nb(n)&&Zn(n).position==="static";)n=Md(n);return n&&(An(n)==="html"||An(n)==="body"&&Zn(n).position==="static")?e:n||ob(t)||e}var ln="top",Nn="bottom",go="right",qn="left",lu="auto",Fa=[ln,Nn,go,qn],Lr="start",zi="end",rb="clippingParents",Gp="viewport",mi="popper",ib="reference",$d=Fa.reduce(function(t,e){return t.concat([e+"-"+Lr,e+"-"+zi])},[]),sb=[].concat(Fa,[lu]).reduce(function(t,e){return t.concat([e,e+"-"+Lr,e+"-"+zi])},[]),ab="beforeRead",lb="read",cb="afterRead",ub="beforeMain",db="main",fb="afterMain",pb="beforeWrite",mb="write",hb="afterWrite",gb=[ab,lb,cb,ub,db,fb,pb,mb,hb];function vb(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 yb(t){var e=vb(t);return gb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function _b(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Cb(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 bb(t,e){var n=Rt(t),o=bo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Wp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+su(t),y:c}}function kb(t){var e,n=bo(t),o=iu(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Ro(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ro(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+su(t),c=-o.scrollTop;return Zn(r||n).direction==="rtl"&&(l+=Ro(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function wb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ru(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Eb(t,e){var n=Or(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 Bd(t,e,n){return e===Gp?dc(bb(t,n)):Wo(e)?Eb(e,n):dc(kb(bo(t)))}function Sb(t){var e=Ti(Ia(t)),n=["absolute","fixed"].indexOf(Zn(t).position)>=0,o=n&&Yt(t)?Pa(t):t;return Wo(o)?e.filter(function(r){return Wo(r)&&wb(r,o)&&An(r)!=="body"}):[]}function xb(t,e,n,o){var r=e==="clippingParents"?Sb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Bd(t,u,o);return c.top=Ro(d.top,c.top),c.right=ta(d.right,c.right),c.bottom=ta(d.bottom,c.bottom),c.left=Ro(d.left,c.left),c},Bd(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 co(t){return t.split("-")[0]}function Ir(t){return t.split("-")[1]}function Yp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Jp(t){var e=t.reference,n=t.element,o=t.placement,r=o?co(o):null,s=o?Ir(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case ln:c={x:a,y:e.y-n.height};break;case Nn:c={x:a,y:e.y+e.height};break;case go:c={x:e.x+e.width,y:l};break;case qn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Yp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Lr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case zi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Xp(){return{top:0,right:0,bottom:0,left:0}}function Tb(t){return Object.assign({},Xp(),t)}function Ab(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function cu(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?rb:l,u=n.rootBoundary,d=u===void 0?Gp:u,f=n.elementContext,p=f===void 0?mi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Tb(typeof y!="number"?y:Ab(y,Fa)),v=p===mi?ib:mi,_=t.rects.popper,k=t.elements[h?v:p],w=xb(Wo(k)?k:k.contextElement||bo(t.elements.popper),c,d,a),b=Or(t.elements.reference),E=Jp({reference:b,element:_,strategy:"absolute",placement:r}),T=dc(Object.assign({},_,E)),x=p===mi?T:b,N={top:w.top-x.top+C.top,bottom:x.bottom-w.bottom+C.bottom,left:w.left-x.left+C.left,right:x.right-w.right+C.right},L=t.modifiersData.offset;if(p===mi&&L){var A=L[r];Object.keys(N).forEach(function(D){var M=[go,Nn].indexOf(D)>=0?1:-1,I=[ln,Nn].indexOf(D)>=0?"y":"x";N[D]+=A[I]*M})}return N}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function Ld(){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 Nb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Od:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Od,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var v=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Wo(l)?Ti(l):l.contextElement?Ti(l.contextElement):[],popper:Ti(c)};var _=yb(Cb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Ld(v,_)){d.rects={reference:tb(v,Pa(_),d.options.strategy==="fixed"),popper:Zp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var w=d.orderedModifiers[k],b=w.fn,E=w.options,T=E===void 0?{}:E,x=w.name;typeof b=="function"&&(d=b({state:d,options:T,name:x,instance:m})||d)}}}},update:_b(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Ld(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,v=y.options,_=v===void 0?{}:v,k=y.effect;if(typeof k=="function"){var w=k({state:d,name:C,instance:m,options:_}),b=function(){};f.push(w||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var As={passive:!0};function Db(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=Rt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,As)}),l&&c.addEventListener("resize",n.update,As),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,As)}),l&&c.removeEventListener("resize",n.update,As)}}var Mb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Db,data:{}};function $b(t){var e=t.state,n=t.name;e.modifiersData[n]=Jp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Bb={name:"popperOffsets",enabled:!0,phase:"read",fn:$b,data:{}},Ob={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Br(n*r)/r||0,y:Br(o*r)/r||0}}function Id(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,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),_=qn,k=ln,w=window;if(u){var b=Pa(n),E="clientHeight",T="clientWidth";if(b===Rt(n)&&(b=bo(n),Zn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===ln||(r===qn||r===go)&&s===zi){k=Nn;var x=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=x-o.height,g*=c?1:-1}if(r===qn||(r===ln||r===Nn)&&s===zi){_=go;var N=f&&b===w&&w.visualViewport?w.visualViewport.width:b[T];m-=N-o.width,m*=c?1:-1}}var L=Object.assign({position:l},u&&Ob),A=d===!0?Lb({x:m,y:g},Rt(n)):{x:m,y:g};if(m=A.x,g=A.y,c){var D;return Object.assign({},L,(D={},D[k]=v?"0":"",D[_]=C?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",D))}return Object.assign({},L,(e={},e[k]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Ib(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:co(e.placement),variation:Ir(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,Id(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,Id(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 Pb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ib,data:{}};function Fb(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];!Yt(s)||!An(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 Vb(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},{});!Yt(r)||!An(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Rb={name:"applyStyles",enabled:!0,phase:"write",fn:Fb,effect:Vb,requires:["computeStyles"]},zb=[Mb,Bb,Pb,Rb],Ub=Nb({defaultModifiers:zb});function qb(t){return t==="x"?"y":"x"}function qs(t,e,n){return Ro(t,ta(e,n))}function Hb(t,e,n){var o=qs(t,e,n);return o>n?n:o}function jb(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,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=cu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=co(e.placement),v=Ir(e.placement),_=!v,k=Yp(C),w=qb(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,x=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,M=k==="y"?ln:qn,I=k==="y"?Nn:go,P=k==="y"?"height":"width",j=b[k],V=j+y[M],q=j-y[I],F=m?-T[P]/2:0,Y=v===Lr?E[P]:T[P],ee=v===Lr?-T[P]:-E[P],Ee=e.elements.arrow,ie=m&&Ee?Zp(Ee):{width:0,height:0},se=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Xp(),z=se[M],oe=se[I],ye=qs(0,E[P],ie[P]),Be=_?E[P]/2-F-ye-z-N.mainAxis:Y-ye-z-N.mainAxis,H=_?-E[P]/2+F+ye+oe+N.mainAxis:ee+ye+oe+N.mainAxis,ae=e.elements.arrow&&Pa(e.elements.arrow),fe=ae?k==="y"?ae.clientTop||0:ae.clientLeft||0:0,he=(D=L==null?void 0:L[k])!=null?D:0,ke=j+Be-he-fe,Ve=j+H-he,_e=qs(m?ta(V,ke):V,j,m?Ro(q,Ve):q);b[k]=_e,A[k]=_e-j}if(l){var Pe,Ze=k==="x"?ln:qn,De=k==="x"?Nn:go,Ge=b[w],_t=w==="y"?"height":"width",vn=Ge+y[Ze],On=Ge-y[De],Re=[ln,qn].indexOf(C)!==-1,ct=(Pe=L==null?void 0:L[w])!=null?Pe:0,nt=Re?vn:Ge-E[_t]-T[_t]-ct+N.altAxis,Dt=Re?Ge+E[_t]+T[_t]-ct-N.altAxis:On,B=m&&Re?Hb(nt,Ge,Dt):qs(m?nt:vn,Ge,m?Dt:On);b[w]=B,A[w]=B-Ge}e.modifiersData[o]=A}}var Wb={name:"preventOverflow",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"]},Zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Hs(t){return t.replace(/left|right|bottom|top/g,function(e){return Zb[e]})}var Kb={start:"end",end:"start"};function Pd(t){return t.replace(/start|end/g,function(e){return Kb[e]})}function Gb(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?sb:c,d=Ir(o),f=d?l?$d:$d.filter(function(h){return Ir(h)===d}):Fa,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=cu(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[co(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Yb(t){if(co(t)===lu)return[];var e=Hs(t);return[Pd(t),e,Pd(e)]}function Jb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=co(y),v=C===y,_=c||(v||!h?[Hs(y)]:Yb(y)),k=[y].concat(_).reduce(function(ie,se){return ie.concat(co(se)===lu?Gb(e,{placement:se,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):se)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,x=k[0],N=0;N<k.length;N++){var L=k[N],A=co(L),D=Ir(L)===Lr,M=[ln,Nn].indexOf(A)>=0,I=M?"width":"height",P=cu(e,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=M?D?go:qn:D?Nn:ln;w[I]>b[I]&&(j=Hs(j));var V=Hs(j),q=[];if(s&&q.push(P[A]<=0),l&&q.push(P[j]<=0,P[V]<=0),q.every(function(ie){return ie})){x=L,T=!1;break}E.set(L,q)}if(T)for(var F=h?3:1,Y=function(se){var z=k.find(function(oe){var ye=E.get(oe);if(ye)return ye.slice(0,se).every(function(Be){return Be})});if(z)return x=z,"break"},ee=F;ee>0;ee--){var Ee=Y(ee);if(Ee==="break")break}e.placement!==x&&(e.modifiersData[o]._skip=!0,e.placement=x,e.reset=!0)}}var Xb={name:"flip",enabled:!0,phase:"main",fn:Jb,requiresIfExists:["offset"],data:{_skip:!1}};function Qb(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),m=i.computed(()=>r.value||s.value),h=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),m.value&&i.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),k=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:k)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return i.onMounted(()=>{m.value&&(f.value=Ub(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[Wb,Xb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),i.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function e9(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,m=i.ref(!1),h=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!r.value&&a.value.focus()},v=(T=!0)=>{r.value||(m.value=!0,T&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:v,deactivate:_,handleFocusIn:T=>{T.target.closest("[data-tags]")&&T.target.nodeName!=="INPUT"||T.target.closest("[data-clear]")||v(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:T=>{h.value=!0,d.value&&(T.target.isEqualNode(f.value)||T.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&v(),setTimeout(()=>{h.value=!1},0)}}}function t9(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:m}=i.toRefs(t),h=i.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,k=n.selectPointer,w=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,T=n.wrapper,x=n.tags,N=n.isOpen,L=n.open,A=n.blur,D=n.fo,M=i.computed(()=>f.value||p.value||!1),I=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&M.value&&a.value&&!u.value&&_(D.value[D.value.map(q=>q[c.value]).indexOf(v.value)])};return{handleKeydown:q=>{e.emit("keydown",q,h);let F,Y;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(F=[...E.value.querySelectorAll("[data-tags] > *")].filter(ee=>ee!==x.value),Y=F.findIndex(ee=>ee===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let ee=g.value.filter(Ee=>!Ee.disabled&&Ee.remove!==!1);ee.length&&C(ee[ee.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(Y!==-1&&Y!==void 0){y([...g.value].filter((Ee,ie)=>ie!==Y)),Y===F.length-1&&(F.length-1?F[F.length-2].focus():a.value?x.value.querySelector("input").focus():T.value.focus());return}if(I.value.indexOf("enter")===-1&&M.value)return;P(),k();break;case" ":if(!M.value&&!a.value){q.preventDefault(),P(),k();return}if(!M.value)return!1;if(I.value.indexOf("space")===-1&&M.value)return;q.preventDefault(),P(),k();break;case"Tab":case";":case",":if(I.value.indexOf(q.key.toLowerCase())===-1||!M.value)return;P(),k(),q.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;N.value||L(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;N.value||L(),b();break;case"ArrowLeft":if(a.value&&x.value&&x.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),Y===-1?F[F.length-1].focus():Y>0&&F[Y-1].focus();break;case"ArrowRight":if(Y===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),F.length>Y+1?F[Y+1].focus():a.value?x.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:P}}function n9(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,m=n.resolving,h=n.fo,g=n.placement,y=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})),C=i.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:i.computed(()=>{const _=y.value;return{container:[_.container].concat(r.value?_.containerDisabled:[]).concat(C.value&&g.value==="top"?_.containerOpenTop:[]).concat(C.value&&g.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(r.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(g.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(g.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:k=>{let w=[_.groupLabel];return c(k)?w.push(u(k)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(k)&&p.value?w.push(d(k)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(k)&&w.push(_.groupLabelDisabled),p.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(k,w)=>{let b=[_.option];return c(k)?b.push(u(k)?_.optionSelectedPointed:_.optionPointed):u(k)?b.push(d(k)?_.optionSelectedDisabled:_.optionSelected):(d(k)||w&&d(w))&&b.push(_.optionDisabled),b},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function o9(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),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const v=C.offsetParent,_=v.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{v.scrollTop=_})}},h=()=>{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&&h()}),i.watch(l,()=>{r.value&&(a.value=o.value,h())},{flush:"post"}),i.watch(u,()=>{r.value&&h()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function r9(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,m=n.hasSelected,h=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),C=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=i.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),f.value)return A.push(f.value.group?"multiselect-group":"multiselect-option"),A.push(f.value.group?f.value.index:f.value[s.value]),A.join("-")}),_=i.computed(()=>o.value),k=i.computed(()=>l.value!=="single"),w=i.computed(()=>{let A="";return l.value==="single"&&m.value&&(A+=p.value[a.value]),l.value==="multiple"&&m.value&&(A+=h.value),l.value==="tags"&&m.value&&(A+=p.value.map(D=>D[a.value]).join(", ")),A}),b=i.computed(()=>{let A={...u.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${y.value} ${A["aria-labelledby"]}`:y.value,w.value&&A["aria-label"]&&(A["aria-label"]=`${w.value}, ${A["aria-label"]}`)),A}),E=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-option"),D.push(A[s.value]),D.join("-")},T=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-group"),D.push(A.index),D.join("-")},x=A=>{let D=[];return D.push(A),D.join(" ")},N=A=>{let D=[];return D.push(A),D.join(" ")},L=A=>`${A} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);g.value=A?A.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:k,ariaActiveDescendant:v,ariaOptionId:E,ariaOptionLabel:x,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:L}}function i9(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 s9(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 a9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var io={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 a9(t,e,[s9,i9,jC,ZC,Qb,WC,HC,e9,YC,o9,JC,t9,n9,r9])},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 l9=["id","dir"],c9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],u9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],d9=["onKeyup","aria-label"],f9=["onClick"],p9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],m9=["innerHTML"],h9=["id"],g9=["id"],v9=["id","aria-label","aria-selected"],y9=["data-pointed","onMouseenter","onMousedown"],_9=["innerHTML"],C9=["aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],w9=["innerHTML"],E9=["innerHTML"],S9=["value"],x9=["name","value"],T9=["name","value"],A9=["id"];function N9(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,u9)):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,f9)):i.createCommentVNode("v-if",!0)],42,d9))])),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,p9)):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,m9)]):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,c9),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,_9)])],42,y9)),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,b9))),128))],10,C9)],10,v9))),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,k9))),128))],10,g9),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,w9)]):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,E9)]):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,h9)],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,S9)):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,x9)):(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,T9))),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,A9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,l9)}io.render=N9;io.__file="src/Multiselect.vue";const xt=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&&qC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(io),{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 Fd;function Mn(){const t=D9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function D9(){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=Fd.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Fd.lastIndex}return o.push(n.substring(s)),o}}});async function Hn(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 M9={class:"ao-tasks"},$9={class:"ao-tasks__list"},B9=["id","value","readonly","onChange"],O9={class:"ao-tasks__list-footer"},L9=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}=Mn(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{Hn(p,m)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,m={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",m)},l=(p,m)=>{const g=p.target.value;r("update",{id:m,name:g})},c=(p,m)=>{o.isEditable&&r("update",{id:p,isDone:m})},u=p=>{r("delete",{id:p})},d=(p,m)=>{r("update",{id:m,assigneeId:p[0]??null})},f=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(i.openBlock(),i.createElementBlock("div",M9,[i.createElementVNode("ul",$9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,h=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(i.openBlock(),i.createBlock(me,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:C=>l(C,h.id),onKeyup:i.withKeys(f,["enter"])},null,42,B9),m[0]||(m[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(xt,{key:1,value:(y=h.assignee)!=null&&y.id?[h.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:C=>d(C,h.id)},{tag:i.withCtx(({option:C,handleTagRemove:v})=>[i.createVNode(Yn,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:_=>v(C,_)},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(h.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",O9,[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 I9={class:"ao-files__placeholder"},P9={key:0,class:"ao-files__list"},F9=["onClick"],V9={class:"ao-file__title"},R9={class:"ao-file__actions"},z9={key:0},U9={class:"ao-files__input"},q9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},H9={class:"ao-button__label"},j9={class:"ao-files__dropzone"},W9={class:"ao-files__dropzone-label"},Z9=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(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,g=Array.from(h.files??[]);g.length&&n("add",g),h.value=""}function u(m){m.preventDefault()}i.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),i.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{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(m.$slots,"default",{},()=>[i.createElementVNode("span",I9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",P9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(y,C)=>(i.openBlock(),i.createElementBlock("li",{key:y.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[i.createVNode(we,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",V9,i.toDisplayString(y.name),1)],8,F9),i.createElementVNode("div",R9,[i.createVNode(me,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(v=>l(y),["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(v=>a(y),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",z9,[i.createElementVNode("label",U9,[i.createElementVNode("div",q9,[i.createVNode(we,{name:"Add",size:"sm"}),i.createElementVNode("span",H9,i.toDisplayString(m.$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",j9,[i.createElementVNode("span",W9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ne={};const K9="Á",G9="á",Y9="Ă",J9="ă",X9="∾",Q9="∿",e4="∾̳",t4="Â",n4="â",o4="´",r4="А",i4="а",s4="Æ",a4="æ",l4="⁡",c4="𝔄",u4="𝔞",d4="À",f4="à",p4="ℵ",m4="ℵ",h4="Α",g4="α",v4="Ā",y4="ā",_4="⨿",C4="&",b4="&",k4="⩕",w4="⩓",E4="∧",S4="⩜",x4="⩘",T4="⩚",A4="∠",N4="⦤",D4="∠",M4="⦨",$4="⦩",B4="⦪",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="Ã",m8="ã",h8="Ä",g8="ä",v8="∳",y8="⨑",_8="≌",C8="϶",b8="‵",k8="∽",w8="⋍",E8="∖",S8="⫧",x8="⊽",T8="⌅",A8="⌆",N8="⌅",D8="⎵",M8="⎶",$8="≌",B8="Б",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="◂",mk="▸",hk="␣",gk="▒",vk="░",yk="▓",_k="█",Ck="=⃥",bk="≡⃥",kk="⫭",wk="⌐",Ek="𝔹",Sk="𝕓",xk="⊥",Tk="⊥",Ak="⋈",Nk="⧉",Dk="┐",Mk="╕",$k="╖",Bk="╗",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="╢",m6="╣",h6="├",g6="╞",v6="╟",y6="╠",_6="‵",C6="˘",b6="˘",k6="¦",w6="𝒷",E6="ℬ",S6="⁏",x6="∽",T6="⋍",A6="⧅",N6="\\",D6="⟈",M6="•",$6="•",B6="≎",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="¢",mw="·",hw="·",gw="𝔠",vw="ℭ",yw="Ч",_w="ч",Cw="✓",bw="✓",kw="Χ",ww="χ",Ew="ˆ",Sw="≗",xw="↺",Tw="↻",Aw="⊛",Nw="⊚",Dw="⊝",Mw="⊙",$w="®",Bw="Ⓢ",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="∐",mE="∐",hE="©",gE="©",vE="℗",yE="∳",_E="↵",CE="✗",bE="⨯",kE="𝒞",wE="𝒸",EE="⫏",SE="⫑",xE="⫐",TE="⫒",AE="⋯",NE="⤸",DE="⤵",ME="⋞",$E="⋟",BE="↶",OE="⤽",LE="⩈",IE="⩆",PE="≍",FE="∪",VE="⋓",RE="⩊",zE="⊍",UE="⩅",qE="∪︀",HE="↷",jE="⤼",WE="⋞",ZE="⋟",KE="⋎",GE="⋏",YE="¤",JE="↶",XE="↷",QE="⋎",eS="⋏",tS="∲",nS="∱",oS="⌭",rS="†",iS="‡",sS="ℸ",aS="↓",lS="↡",cS="⇓",uS="‐",dS="⫤",fS="⊣",pS="⤏",mS="˝",hS="Ď",gS="ď",vS="Д",yS="д",_S="‡",CS="⇊",bS="ⅅ",kS="ⅆ",wS="⤑",ES="⩷",SS="°",xS="∇",TS="Δ",AS="δ",NS="⦱",DS="⥿",MS="𝔇",$S="𝔡",BS="⥥",OS="⇃",LS="⇂",IS="´",PS="˙",FS="˝",VS="`",RS="˜",zS="⋄",US="⋄",qS="⋄",HS="♦",jS="♦",WS="¨",ZS="ⅆ",KS="ϝ",GS="⋲",YS="÷",JS="÷",XS="⋇",QS="⋇",ex="Ђ",tx="ђ",nx="⌞",ox="⌍",rx="$",ix="𝔻",sx="𝕕",ax="¨",lx="˙",cx="⃜",ux="≐",dx="≑",fx="≐",px="∸",mx="∔",hx="⊡",gx="⌆",vx="∯",yx="¨",_x="⇓",Cx="⇐",bx="⇔",kx="⫤",wx="⟸",Ex="⟺",Sx="⟹",xx="⇒",Tx="⊨",Ax="⇑",Nx="⇕",Dx="∥",Mx="⤓",$x="↓",Bx="↓",Ox="⇓",Lx="⇵",Ix="̑",Px="⇊",Fx="⇃",Vx="⇂",Rx="⥐",zx="⥞",Ux="⥖",qx="↽",Hx="⥟",jx="⥗",Wx="⇁",Zx="↧",Kx="⊤",Gx="⤐",Yx="⌟",Jx="⌌",Xx="𝒟",Qx="𝒹",eT="Ѕ",tT="ѕ",nT="⧶",oT="Đ",rT="đ",iT="⋱",sT="▿",aT="▾",lT="⇵",cT="⥯",uT="⦦",dT="Џ",fT="џ",pT="⟿",mT="É",hT="é",gT="⩮",vT="Ě",yT="ě",_T="Ê",CT="ê",bT="≖",kT="≕",wT="Э",ET="э",ST="⩷",xT="Ė",TT="ė",AT="≑",NT="ⅇ",DT="≒",MT="𝔈",$T="𝔢",BT="⪚",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="ϵ",mA="≖",hA="≕",gA="≂",vA="⪖",yA="⪕",_A="⩵",CA="=",bA="≂",kA="≟",wA="⇌",EA="≡",SA="⩸",xA="⧥",TA="⥱",AA="≓",NA="ℯ",DA="ℰ",MA="≐",$A="⩳",BA="≂",OA="Η",LA="η",IA="Ð",PA="ð",FA="Ë",VA="ë",RA="€",zA="!",UA="∃",qA="∃",HA="ℰ",jA="ⅇ",WA="ⅇ",ZA="≒",KA="Ф",GA="ф",YA="♀",JA="ffi",XA="ff",QA="ffl",eN="𝔉",tN="𝔣",nN="fi",oN="◼",rN="▪",iN="fj",sN="♭",aN="fl",lN="▱",cN="ƒ",uN="𝔽",dN="𝕗",fN="∀",pN="∀",mN="⋔",hN="⫙",gN="ℱ",vN="⨍",yN="½",_N="⅓",CN="¼",bN="⅕",kN="⅙",wN="⅛",EN="⅔",SN="⅖",xN="¾",TN="⅗",AN="⅜",NN="⅘",DN="⅚",MN="⅝",$N="⅞",BN="⁄",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="𝔤",mD="≫",hD="⋙",gD="⋙",vD="ℷ",yD="Ѓ",_D="ѓ",CD="⪥",bD="≷",kD="⪒",wD="⪤",ED="⪊",SD="⪊",xD="⪈",TD="≩",AD="⪈",ND="≩",DD="⋧",MD="𝔾",$D="𝕘",BD="`",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="Ъ",mM="ъ",hM="⥈",gM="↔",vM="⇔",yM="↭",_M="^",CM="ℏ",bM="Ĥ",kM="ĥ",wM="♥",EM="♥",SM="…",xM="⊹",TM="𝔥",AM="ℌ",NM="ℋ",DM="⤥",MM="⤦",$M="⇿",BM="∻",OM="↩",LM="↪",IM="𝕙",PM="ℍ",FM="―",VM="─",RM="𝒽",zM="ℋ",UM="ℏ",qM="Ħ",HM="ħ",jM="≎",WM="≏",ZM="⁃",KM="‐",GM="Í",YM="í",JM="⁣",XM="Î",QM="î",e$="И",t$="и",n$="İ",o$="Е",r$="е",i$="¡",s$="⇔",a$="𝔦",l$="ℑ",c$="Ì",u$="ì",d$="ⅈ",f$="⨌",p$="∭",m$="⧜",h$="℩",g$="IJ",v$="ij",y$="Ī",_$="ī",C$="ℑ",b$="ⅈ",k$="ℐ",w$="ℑ",E$="ı",S$="ℑ",x$="⊷",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$="¿",eB="𝒾",tB="ℐ",nB="∈",oB="⋵",rB="⋹",iB="⋴",sB="⋳",aB="∈",lB="⁢",cB="Ĩ",uB="ĩ",dB="І",fB="і",pB="Ï",mB="ï",hB="Ĵ",gB="ĵ",vB="Й",yB="й",_B="𝔍",CB="𝔧",bB="ȷ",kB="𝕁",wB="𝕛",EB="𝒥",SB="𝒿",xB="Ј",TB="ј",AB="Є",NB="є",DB="Κ",MB="κ",$B="ϰ",BB="Ķ",OB="ķ",LB="К",IB="к",PB="𝔎",FB="𝔨",VB="ĸ",RB="Х",zB="х",UB="Ќ",qB="ќ",HB="𝕂",jB="𝕜",WB="𝒦",ZB="𝓀",KB="⇚",GB="Ĺ",YB="ĺ",JB="⦴",XB="ℒ",QB="Λ",eO="λ",tO="⟨",nO="⟪",oO="⦑",rO="⟨",iO="⪅",sO="ℒ",aO="«",lO="⇤",cO="⤟",uO="←",dO="↞",fO="⇐",pO="⤝",mO="↩",hO="↫",gO="⤹",vO="⥳",yO="↢",_O="⤙",CO="⤛",bO="⪫",kO="⪭",wO="⪭︀",EO="⤌",SO="⤎",xO="❲",TO="{",AO="[",NO="⦋",DO="⦏",MO="⦍",$O="Ľ",BO="ľ",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="⇆",mL="⇋",hL="↭",gL="⥎",vL="↤",yL="⊣",_L="⥚",CL="⋋",bL="⧏",kL="⊲",wL="⊴",EL="⥑",SL="⥠",xL="⥘",TL="↿",AL="⥒",NL="↼",DL="⪋",ML="⋚",$L="≤",BL="≦",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="⇇",mI="≪",hI="⋘",gI="⌞",vI="⇚",yI="⥫",_I="◺",CI="Ŀ",bI="ŀ",kI="⎰",wI="⎰",EI="⪉",SI="⪉",xI="⪇",TI="≨",AI="⪇",NI="≨",DI="⋦",MI="⟬",$I="⇽",BI="⟦",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="𝓁",mP="ℒ",hP="↰",gP="↰",vP="≲",yP="⪍",_P="⪏",CP="[",bP="‘",kP="‚",wP="Ł",EP="ł",SP="⪦",xP="⩹",TP="<",AP="<",NP="≪",DP="⋖",MP="⋋",$P="⋉",BP="⥶",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="∣",mF="·",hF="⊟",gF="−",vF="∸",yF="⨪",_F="∓",CF="⫛",bF="…",kF="∓",wF="⊧",EF="𝕄",SF="𝕞",xF="∓",TF="𝓂",AF="ℳ",NF="∾",DF="Μ",MF="μ",$F="⊸",BF="⊸",OF="∇",LF="Ń",IF="ń",PF="∠⃒",FF="≉",VF="⩰̸",RF="≋̸",zF="ʼn",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="​",mV="​",hV="​",gV="≢",vV="⤨",yV="≂̸",_V="≫",CV="≪",bV=`
2
- `,kV="∄",wV="∄",EV="𝔑",SV="𝔫",xV="≧̸",TV="≱",AV="≱",NV="≧̸",DV="⩾̸",MV="⩾̸",$V="⋙̸",BV="≵",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="≪̸",mR="∤",hR="⁠",gR=" ",vR="𝕟",yR="ℕ",_R="⫬",CR="¬",bR="≢",kR="≭",wR="∦",ER="∉",SR="≠",xR="≂̸",TR="∄",AR="≯",NR="≱",DR="≧̸",MR="≫̸",$R="≹",BR="⩾̸",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="⊐̸",mz="⋣",hz="⊂⃒",gz="⊈",vz="⊁",yz="⪰̸",_z="⋡",Cz="≿̸",bz="⊃⃒",kz="⊉",wz="≁",Ez="≄",Sz="≇",xz="≉",Tz="∤",Az="∦",Nz="∦",Dz="⫽⃥",Mz="∂̸",$z="⨔",Bz="⊀",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="⪰̸",mU="⊅",hU="⫆̸",gU="⊉",vU="⊃⃒",yU="⊉",_U="⫆̸",CU="≹",bU="Ñ",kU="ñ",wU="≸",EU="⋪",SU="⋬",xU="⋫",TU="⋭",AU="Ν",NU="ν",DU="#",MU="№",$U=" ",BU="≍⃒",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="⦼",mq="Œ",hq="œ",gq="⦿",vq="𝔒",yq="𝔬",_q="˛",Cq="Ò",bq="ò",kq="⧁",wq="⦵",Eq="Ω",Sq="∮",xq="↺",Tq="⦾",Aq="⦻",Nq="‾",Dq="⧀",Mq="Ō",$q="ō",Bq="Ω",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="⨷",mH="⊗",hH="Ö",gH="ö",vH="⌽",yH="‾",_H="⏞",CH="⎴",bH="⏜",kH="¶",wH="∥",EH="∥",SH="⫳",xH="⫽",TH="∂",AH="∂",NH="П",DH="п",MH="%",$H=".",BH="‰",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="⪷",mj="⪻",hj="≺",gj="≼",vj="⪷",yj="≺",_j="≼",Cj="≺",bj="⪯",kj="≼",wj="≾",Ej="⪯",Sj="⪹",xj="⪵",Tj="⋨",Aj="⪯",Nj="⪳",Dj="≾",Mj="′",$j="″",Bj="ℙ",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="⇛",mW="∽̱",hW="Ŕ",gW="ŕ",vW="√",yW="⦳",_W="⟩",CW="⟫",bW="⦒",kW="⦥",wW="⟩",EW="»",SW="⥵",xW="⇥",TW="⤠",AW="⤳",NW="→",DW="↠",MW="⇒",$W="⤞",BW="↪",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="ℛ",mZ="ℜ",hZ="ℝ",gZ="ℜ",vZ="▭",yZ="®",_Z="®",CZ="∋",bZ="⇋",kZ="⥯",wZ="⥽",EZ="⌋",SZ="𝔯",xZ="ℜ",TZ="⥤",AZ="⇁",NZ="⇀",DZ="⥬",MZ="Ρ",$Z="ρ",BZ="ϱ",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="≓",mK="⇄",hK="⇌",gK="‏",vK="⎱",yK="⎱",_K="⫮",CK="⟭",bK="⇾",kK="⟧",wK="⦆",EK="𝕣",SK="ℝ",xK="⨮",TK="⨵",AK="⥰",NK=")",DK="⦔",MK="⨒",$K="⇉",BK="⇛",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="⪶",mG="⋩",hG="⨓",gG="≿",vG="С",yG="с",_G="⊡",CG="⋅",bG="⩦",kG="⤥",wG="↘",EG="⇘",SG="↘",xG="§",TG=";",AG="⤩",NG="∖",DG="∖",MG="✶",$G="𝔖",BG="𝔰",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="∣",mY="⌣",hY="⪪",gY="⪬",vY="⪬︀",yY="Ь",_Y="ь",CY="⌿",bY="⧄",kY="/",wY="𝕊",EY="𝕤",SY="♠",xY="♠",TY="∥",AY="⊓",NY="⊓︀",DY="⊔",MY="⊔︀",$Y="√",BY="⊏",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="⫅",mJ="⊆",hJ="⫃",gJ="⫁",vJ="⫋",yJ="⊊",_J="⪿",CJ="⥹",bJ="⊂",kJ="⋐",wJ="⊆",EJ="⫅",SJ="⊆",xJ="⊊",TJ="⫋",AJ="⫇",NJ="⫕",DJ="⫓",MJ="⪸",$J="≻",BJ="≽",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="⋑",mX="⊇",hX="⫆",gX="⊋",vX="⫌",yX="⫈",_X="⫔",CX="⫖",bX="⤦",kX="↙",wX="⇙",EX="↙",SX="⤪",xX="ß",TX=" ",AX="⌖",NX="Τ",DX="τ",MX="⎴",$X="Ť",BX="ť",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="∭",mQ="⤨",hQ="⌶",gQ="⫱",vQ="⊤",yQ="𝕋",_Q="𝕥",CQ="⫚",bQ="⤩",kQ="‴",wQ="™",EQ="™",SQ="▵",xQ="▿",TQ="◃",AQ="⊴",NQ="≜",DQ="▹",MQ="⊵",$Q="◬",BQ="≜",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="ű",mee="⥮",hee="⥾",gee="𝔘",vee="𝔲",yee="Ù",_ee="ù",Cee="⥣",bee="↿",kee="↾",wee="▀",Eee="⌜",See="⌜",xee="⌏",Tee="◸",Aee="Ū",Nee="ū",Dee="¨",Mee="_",$ee="⏟",Bee="⎵",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="ů",mte="◹",hte="𝒰",gte="𝓊",vte="⋰",yte="Ũ",_te="ũ",Cte="▵",bte="▴",kte="⇈",wte="Ü",Ete="ü",Ste="⦧",xte="⦜",Tte="ϵ",Ate="ϰ",Nte="∅",Dte="ϕ",Mte="ϖ",$te="∝",Bte="↕",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=" ",mne="𝔙",hne="𝔳",gne="⊲",vne="⊂⃒",yne="⊃⃒",_ne="𝕍",Cne="𝕧",bne="∝",kne="⊳",wne="𝒱",Ene="𝓋",Sne="⫋︀",xne="⊊︀",Tne="⫌︀",Ane="⊋︀",Nne="⊪",Dne="⦚",Mne="Ŵ",$ne="ŵ",Bne="⩟",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="⟹",moe="𝒳",hoe="𝓍",goe="⨆",voe="⨄",yoe="△",_oe="⋁",Coe="⋀",boe="Ý",koe="ý",woe="Я",Eoe="я",Soe="Ŷ",xoe="ŷ",Toe="Ы",Aoe="ы",Noe="¥",Doe="𝔜",Moe="𝔶",$oe="Ї",Boe="ї",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="‍",ure="‌",dre={Aacute:K9,aacute:G9,Abreve:Y9,abreve:J9,ac:X9,acd:Q9,acE:e4,Acirc:t4,acirc:n4,acute:o4,Acy:r4,acy:i4,AElig:s4,aelig:a4,af:l4,Afr:c4,afr:u4,Agrave:d4,agrave:f4,alefsym:p4,aleph:m4,Alpha:h4,alpha:g4,Amacr:v4,amacr:y4,amalg:_4,amp:C4,AMP:b4,andand:k4,And:w4,and:E4,andd:S4,andslope:x4,andv:T4,ang:A4,ange:N4,angle:D4,angmsdaa:M4,angmsdab:$4,angmsdac:B4,angmsdad:O4,angmsdae:L4,angmsdaf:I4,angmsdag:P4,angmsdah:F4,angmsd:V4,angrt:R4,angrtvb:z4,angrtvbd:U4,angsph:q4,angst:H4,angzarr:j4,Aogon:W4,aogon:Z4,Aopf:K4,aopf:G4,apacir:Y4,ap:J4,apE:X4,ape:Q4,apid:e8,apos:t8,ApplyFunction:n8,approx:o8,approxeq:r8,Aring:i8,aring:s8,Ascr:a8,ascr:l8,Assign:c8,ast:u8,asymp:d8,asympeq:f8,Atilde:p8,atilde:m8,Auml:h8,auml:g8,awconint:v8,awint:y8,backcong:_8,backepsilon:C8,backprime:b8,backsim:k8,backsimeq:w8,Backslash:E8,Barv:S8,barvee:x8,barwed:T8,Barwed:A8,barwedge:N8,bbrk:D8,bbrktbrk:M8,bcong:$8,Bcy:B8,bcy:O8,bdquo:L8,becaus:I8,because:P8,Because:F8,bemptyv:V8,bepsi:R8,bernou:z8,Bernoullis:U8,Beta:q8,beta:H8,beth:j8,between:W8,Bfr:Z8,bfr:K8,bigcap:G8,bigcirc:Y8,bigcup:J8,bigodot:X8,bigoplus:Q8,bigotimes:ek,bigsqcup:tk,bigstar:nk,bigtriangledown:ok,bigtriangleup:rk,biguplus:ik,bigvee:sk,bigwedge:ak,bkarow:lk,blacklozenge:ck,blacksquare:uk,blacktriangle:dk,blacktriangledown:fk,blacktriangleleft:pk,blacktriangleright:mk,blank:hk,blk12:gk,blk14:vk,blk34:yk,block:_k,bne:Ck,bnequiv:bk,bNot:kk,bnot:wk,Bopf:Ek,bopf:Sk,bot:xk,bottom:Tk,bowtie:Ak,boxbox:Nk,boxdl:Dk,boxdL:Mk,boxDl:$k,boxDL:Bk,boxdr:Ok,boxdR:Lk,boxDr:Ik,boxDR:Pk,boxh:Fk,boxH:Vk,boxhd:Rk,boxHd:zk,boxhD:Uk,boxHD:qk,boxhu:Hk,boxHu:jk,boxhU:Wk,boxHU:Zk,boxminus:Kk,boxplus:Gk,boxtimes:Yk,boxul:Jk,boxuL:Xk,boxUl:Qk,boxUL:e6,boxur:t6,boxuR:n6,boxUr:o6,boxUR:r6,boxv:i6,boxV:s6,boxvh:a6,boxvH:l6,boxVh:c6,boxVH:u6,boxvl:d6,boxvL:f6,boxVl:p6,boxVL:m6,boxvr:h6,boxvR:g6,boxVr:v6,boxVR:y6,bprime:_6,breve:C6,Breve:b6,brvbar:k6,bscr:w6,Bscr:E6,bsemi:S6,bsim:x6,bsime:T6,bsolb:A6,bsol:N6,bsolhsub:D6,bull:M6,bullet:$6,bump:B6,bumpE:O6,bumpe:L6,Bumpeq:I6,bumpeq:P6,Cacute:F6,cacute:V6,capand:R6,capbrcup:z6,capcap:U6,cap:q6,Cap:H6,capcup:j6,capdot:W6,CapitalDifferentialD:Z6,caps:K6,caret:G6,caron:Y6,Cayleys:J6,ccaps:X6,Ccaron:Q6,ccaron:ew,Ccedil:tw,ccedil:nw,Ccirc:ow,ccirc:rw,Cconint:iw,ccups:sw,ccupssm:aw,Cdot:lw,cdot:cw,cedil:uw,Cedilla:dw,cemptyv:fw,cent:pw,centerdot:mw,CenterDot:hw,cfr:gw,Cfr:vw,CHcy:yw,chcy:_w,check:Cw,checkmark:bw,Chi:kw,chi:ww,circ:Ew,circeq:Sw,circlearrowleft:xw,circlearrowright:Tw,circledast:Aw,circledcirc:Nw,circleddash:Dw,CircleDot:Mw,circledR:$w,circledS:Bw,CircleMinus:Ow,CirclePlus:Lw,CircleTimes:Iw,cir:Pw,cirE:Fw,cire:Vw,cirfnint:Rw,cirmid:zw,cirscir:Uw,ClockwiseContourIntegral:qw,CloseCurlyDoubleQuote:Hw,CloseCurlyQuote:jw,clubs:Ww,clubsuit:Zw,colon:Kw,Colon:Gw,Colone:Yw,colone:Jw,coloneq:Xw,comma:Qw,commat:eE,comp:tE,compfn:nE,complement:oE,complexes:rE,cong:iE,congdot:sE,Congruent:aE,conint:lE,Conint:cE,ContourIntegral:uE,copf:dE,Copf:fE,coprod:pE,Coproduct:mE,copy:hE,COPY:gE,copysr:vE,CounterClockwiseContourIntegral:yE,crarr:_E,cross:CE,Cross:bE,Cscr:kE,cscr:wE,csub:EE,csube:SE,csup:xE,csupe:TE,ctdot:AE,cudarrl:NE,cudarrr:DE,cuepr:ME,cuesc:$E,cularr:BE,cularrp:OE,cupbrcap:LE,cupcap:IE,CupCap:PE,cup:FE,Cup:VE,cupcup:RE,cupdot:zE,cupor:UE,cups:qE,curarr:HE,curarrm:jE,curlyeqprec:WE,curlyeqsucc:ZE,curlyvee:KE,curlywedge:GE,curren:YE,curvearrowleft:JE,curvearrowright:XE,cuvee:QE,cuwed:eS,cwconint:tS,cwint:nS,cylcty:oS,dagger:rS,Dagger:iS,daleth:sS,darr:aS,Darr:lS,dArr:cS,dash:uS,Dashv:dS,dashv:fS,dbkarow:pS,dblac:mS,Dcaron:hS,dcaron:gS,Dcy:vS,dcy:yS,ddagger:_S,ddarr:CS,DD:bS,dd:kS,DDotrahd:wS,ddotseq:ES,deg:SS,Del:xS,Delta:TS,delta:AS,demptyv:NS,dfisht:DS,Dfr:MS,dfr:$S,dHar:BS,dharl:OS,dharr:LS,DiacriticalAcute:IS,DiacriticalDot:PS,DiacriticalDoubleAcute:FS,DiacriticalGrave:VS,DiacriticalTilde:RS,diam:zS,diamond:US,Diamond:qS,diamondsuit:HS,diams:jS,die:WS,DifferentialD:ZS,digamma:KS,disin:GS,div:YS,divide:JS,divideontimes:XS,divonx:QS,DJcy:ex,djcy:tx,dlcorn:nx,dlcrop:ox,dollar:rx,Dopf:ix,dopf:sx,Dot:ax,dot:lx,DotDot:cx,doteq:ux,doteqdot:dx,DotEqual:fx,dotminus:px,dotplus:mx,dotsquare:hx,doublebarwedge:gx,DoubleContourIntegral:vx,DoubleDot:yx,DoubleDownArrow:_x,DoubleLeftArrow:Cx,DoubleLeftRightArrow:bx,DoubleLeftTee:kx,DoubleLongLeftArrow:wx,DoubleLongLeftRightArrow:Ex,DoubleLongRightArrow:Sx,DoubleRightArrow:xx,DoubleRightTee:Tx,DoubleUpArrow:Ax,DoubleUpDownArrow:Nx,DoubleVerticalBar:Dx,DownArrowBar:Mx,downarrow:$x,DownArrow:Bx,Downarrow:Ox,DownArrowUpArrow:Lx,DownBreve:Ix,downdownarrows:Px,downharpoonleft:Fx,downharpoonright:Vx,DownLeftRightVector:Rx,DownLeftTeeVector:zx,DownLeftVectorBar:Ux,DownLeftVector:qx,DownRightTeeVector:Hx,DownRightVectorBar:jx,DownRightVector:Wx,DownTeeArrow:Zx,DownTee:Kx,drbkarow:Gx,drcorn:Yx,drcrop:Jx,Dscr:Xx,dscr:Qx,DScy:eT,dscy:tT,dsol:nT,Dstrok:oT,dstrok:rT,dtdot:iT,dtri:sT,dtrif:aT,duarr:lT,duhar:cT,dwangle:uT,DZcy:dT,dzcy:fT,dzigrarr:pT,Eacute:mT,eacute:hT,easter:gT,Ecaron:vT,ecaron:yT,Ecirc:_T,ecirc:CT,ecir:bT,ecolon:kT,Ecy:wT,ecy:ET,eDDot:ST,Edot:xT,edot:TT,eDot:AT,ee:NT,efDot:DT,Efr:MT,efr:$T,eg:BT,Egrave:OT,egrave:LT,egs:IT,egsdot:PT,el:FT,Element:VT,elinters:RT,ell:zT,els:UT,elsdot:qT,Emacr:HT,emacr:jT,empty:WT,emptyset:ZT,EmptySmallSquare:KT,emptyv:GT,EmptyVerySmallSquare:YT,emsp13:JT,emsp14:XT,emsp:QT,ENG:eA,eng:tA,ensp:nA,Eogon:oA,eogon:rA,Eopf:iA,eopf:sA,epar:aA,eparsl:lA,eplus:cA,epsi:uA,Epsilon:dA,epsilon:fA,epsiv:pA,eqcirc:mA,eqcolon:hA,eqsim:gA,eqslantgtr:vA,eqslantless:yA,Equal:_A,equals:CA,EqualTilde:bA,equest:kA,Equilibrium:wA,equiv:EA,equivDD:SA,eqvparsl:xA,erarr:TA,erDot:AA,escr:NA,Escr:DA,esdot:MA,Esim:$A,esim:BA,Eta:OA,eta:LA,ETH:IA,eth:PA,Euml:FA,euml:VA,euro:RA,excl:zA,exist:UA,Exists:qA,expectation:HA,exponentiale:jA,ExponentialE:WA,fallingdotseq:ZA,Fcy:KA,fcy:GA,female:YA,ffilig:JA,fflig:XA,ffllig:QA,Ffr:eN,ffr:tN,filig:nN,FilledSmallSquare:oN,FilledVerySmallSquare:rN,fjlig:iN,flat:sN,fllig:aN,fltns:lN,fnof:cN,Fopf:uN,fopf:dN,forall:fN,ForAll:pN,fork:mN,forkv:hN,Fouriertrf:gN,fpartint:vN,frac12:yN,frac13:_N,frac14:CN,frac15:bN,frac16:kN,frac18:wN,frac23:EN,frac25:SN,frac34:xN,frac35:TN,frac38:AN,frac45:NN,frac56:DN,frac58:MN,frac78:$N,frasl:BN,frown:ON,fscr:LN,Fscr:IN,gacute:PN,Gamma:FN,gamma:VN,Gammad:RN,gammad:zN,gap:UN,Gbreve:qN,gbreve:HN,Gcedil:jN,Gcirc:WN,gcirc:ZN,Gcy:KN,gcy:GN,Gdot:YN,gdot:JN,ge:XN,gE:QN,gEl:eD,gel:tD,geq:nD,geqq:oD,geqslant:rD,gescc:iD,ges:sD,gesdot:aD,gesdoto:lD,gesdotol:cD,gesl:uD,gesles:dD,Gfr:fD,gfr:pD,gg:mD,Gg:hD,ggg:gD,gimel:vD,GJcy:yD,gjcy:_D,gla:CD,gl:bD,glE:kD,glj:wD,gnap:ED,gnapprox:SD,gne:xD,gnE:TD,gneq:AD,gneqq:ND,gnsim:DD,Gopf:MD,gopf:$D,grave:BD,GreaterEqual:OD,GreaterEqualLess:LD,GreaterFullEqual:ID,GreaterGreater:PD,GreaterLess:FD,GreaterSlantEqual:VD,GreaterTilde:RD,Gscr:zD,gscr:UD,gsim:qD,gsime:HD,gsiml:jD,gtcc:WD,gtcir:ZD,gt:KD,GT:GD,Gt:YD,gtdot:JD,gtlPar:XD,gtquest:QD,gtrapprox:eM,gtrarr:tM,gtrdot:nM,gtreqless:oM,gtreqqless:rM,gtrless:iM,gtrsim:sM,gvertneqq:aM,gvnE:lM,Hacek:cM,hairsp:uM,half:dM,hamilt:fM,HARDcy:pM,hardcy:mM,harrcir:hM,harr:gM,hArr:vM,harrw:yM,Hat:_M,hbar:CM,Hcirc:bM,hcirc:kM,hearts:wM,heartsuit:EM,hellip:SM,hercon:xM,hfr:TM,Hfr:AM,HilbertSpace:NM,hksearow:DM,hkswarow:MM,hoarr:$M,homtht:BM,hookleftarrow:OM,hookrightarrow:LM,hopf:IM,Hopf:PM,horbar:FM,HorizontalLine:VM,hscr:RM,Hscr:zM,hslash:UM,Hstrok:qM,hstrok:HM,HumpDownHump:jM,HumpEqual:WM,hybull:ZM,hyphen:KM,Iacute:GM,iacute:YM,ic:JM,Icirc:XM,icirc:QM,Icy:e$,icy:t$,Idot:n$,IEcy:o$,iecy:r$,iexcl:i$,iff:s$,ifr:a$,Ifr:l$,Igrave:c$,igrave:u$,ii:d$,iiiint:f$,iiint:p$,iinfin:m$,iiota:h$,IJlig:g$,ijlig:v$,Imacr:y$,imacr:_$,image:C$,ImaginaryI:b$,imagline:k$,imagpart:w$,imath:E$,Im:S$,imof:x$,imped:T$,Implies:A$,incare:N$,in:"∈",infin:D$,infintie:M$,inodot:$$,intcal:B$,int:O$,Int:L$,integers:I$,Integral:P$,intercal:F$,Intersection:V$,intlarhk:R$,intprod:z$,InvisibleComma:U$,InvisibleTimes:q$,IOcy:H$,iocy:j$,Iogon:W$,iogon:Z$,Iopf:K$,iopf:G$,Iota:Y$,iota:J$,iprod:X$,iquest:Q$,iscr:eB,Iscr:tB,isin:nB,isindot:oB,isinE:rB,isins:iB,isinsv:sB,isinv:aB,it:lB,Itilde:cB,itilde:uB,Iukcy:dB,iukcy:fB,Iuml:pB,iuml:mB,Jcirc:hB,jcirc:gB,Jcy:vB,jcy:yB,Jfr:_B,jfr:CB,jmath:bB,Jopf:kB,jopf:wB,Jscr:EB,jscr:SB,Jsercy:xB,jsercy:TB,Jukcy:AB,jukcy:NB,Kappa:DB,kappa:MB,kappav:$B,Kcedil:BB,kcedil:OB,Kcy:LB,kcy:IB,Kfr:PB,kfr:FB,kgreen:VB,KHcy:RB,khcy:zB,KJcy:UB,kjcy:qB,Kopf:HB,kopf:jB,Kscr:WB,kscr:ZB,lAarr:KB,Lacute:GB,lacute:YB,laemptyv:JB,lagran:XB,Lambda:QB,lambda:eO,lang:tO,Lang:nO,langd:oO,langle:rO,lap:iO,Laplacetrf:sO,laquo:aO,larrb:lO,larrbfs:cO,larr:uO,Larr:dO,lArr:fO,larrfs:pO,larrhk:mO,larrlp:hO,larrpl:gO,larrsim:vO,larrtl:yO,latail:_O,lAtail:CO,lat:bO,late:kO,lates:wO,lbarr:EO,lBarr:SO,lbbrk:xO,lbrace:TO,lbrack:AO,lbrke:NO,lbrksld:DO,lbrkslu:MO,Lcaron:$O,lcaron:BO,Lcedil:OO,lcedil:LO,lceil:IO,lcub:PO,Lcy:FO,lcy:VO,ldca:RO,ldquo:zO,ldquor:UO,ldrdhar:qO,ldrushar:HO,ldsh:jO,le:WO,lE:ZO,LeftAngleBracket:KO,LeftArrowBar:GO,leftarrow:YO,LeftArrow:JO,Leftarrow:XO,LeftArrowRightArrow:QO,leftarrowtail:eL,LeftCeiling:tL,LeftDoubleBracket:nL,LeftDownTeeVector:oL,LeftDownVectorBar:rL,LeftDownVector:iL,LeftFloor:sL,leftharpoondown:aL,leftharpoonup:lL,leftleftarrows:cL,leftrightarrow:uL,LeftRightArrow:dL,Leftrightarrow:fL,leftrightarrows:pL,leftrightharpoons:mL,leftrightsquigarrow:hL,LeftRightVector:gL,LeftTeeArrow:vL,LeftTee:yL,LeftTeeVector:_L,leftthreetimes:CL,LeftTriangleBar:bL,LeftTriangle:kL,LeftTriangleEqual:wL,LeftUpDownVector:EL,LeftUpTeeVector:SL,LeftUpVectorBar:xL,LeftUpVector:TL,LeftVectorBar:AL,LeftVector:NL,lEg:DL,leg:ML,leq:$L,leqq:BL,leqslant:OL,lescc:LL,les:IL,lesdot:PL,lesdoto:FL,lesdotor:VL,lesg:RL,lesges:zL,lessapprox:UL,lessdot:qL,lesseqgtr:HL,lesseqqgtr:jL,LessEqualGreater:WL,LessFullEqual:ZL,LessGreater:KL,lessgtr:GL,LessLess:YL,lesssim:JL,LessSlantEqual:XL,LessTilde:QL,lfisht:eI,lfloor:tI,Lfr:nI,lfr:oI,lg:rI,lgE:iI,lHar:sI,lhard:aI,lharu:lI,lharul:cI,lhblk:uI,LJcy:dI,ljcy:fI,llarr:pI,ll:mI,Ll:hI,llcorner:gI,Lleftarrow:vI,llhard:yI,lltri:_I,Lmidot:CI,lmidot:bI,lmoustache:kI,lmoust:wI,lnap:EI,lnapprox:SI,lne:xI,lnE:TI,lneq:AI,lneqq:NI,lnsim:DI,loang:MI,loarr:$I,lobrk:BI,longleftarrow:OI,LongLeftArrow:LI,Longleftarrow:II,longleftrightarrow:PI,LongLeftRightArrow:FI,Longleftrightarrow:VI,longmapsto:RI,longrightarrow:zI,LongRightArrow:UI,Longrightarrow:qI,looparrowleft:HI,looparrowright:jI,lopar:WI,Lopf:ZI,lopf:KI,loplus:GI,lotimes:YI,lowast:JI,lowbar:XI,LowerLeftArrow:QI,LowerRightArrow:eP,loz:tP,lozenge:nP,lozf:oP,lpar:rP,lparlt:iP,lrarr:sP,lrcorner:aP,lrhar:lP,lrhard:cP,lrm:uP,lrtri:dP,lsaquo:fP,lscr:pP,Lscr:mP,lsh:hP,Lsh:gP,lsim:vP,lsime:yP,lsimg:_P,lsqb:CP,lsquo:bP,lsquor:kP,Lstrok:wP,lstrok:EP,ltcc:SP,ltcir:xP,lt:TP,LT:AP,Lt:NP,ltdot:DP,lthree:MP,ltimes:$P,ltlarr:BP,ltquest:OP,ltri:LP,ltrie:IP,ltrif:PP,ltrPar:FP,lurdshar:VP,luruhar:RP,lvertneqq:zP,lvnE:UP,macr:qP,male:HP,malt:jP,maltese:WP,Map:"⤅",map:ZP,mapsto:KP,mapstodown:GP,mapstoleft:YP,mapstoup:JP,marker:XP,mcomma:QP,Mcy:eF,mcy:tF,mdash:nF,mDDot:oF,measuredangle:rF,MediumSpace:iF,Mellintrf:sF,Mfr:aF,mfr:lF,mho:cF,micro:uF,midast:dF,midcir:fF,mid:pF,middot:mF,minusb:hF,minus:gF,minusd:vF,minusdu:yF,MinusPlus:_F,mlcp:CF,mldr:bF,mnplus:kF,models:wF,Mopf:EF,mopf:SF,mp:xF,mscr:TF,Mscr:AF,mstpos:NF,Mu:DF,mu:MF,multimap:$F,mumap:BF,nabla:OF,Nacute:LF,nacute:IF,nang:PF,nap:FF,napE:VF,napid:RF,napos:zF,napprox:UF,natural:qF,naturals:HF,natur:jF,nbsp:WF,nbump:ZF,nbumpe:KF,ncap:GF,Ncaron:YF,ncaron:JF,Ncedil:XF,ncedil:QF,ncong:eV,ncongdot:tV,ncup:nV,Ncy:oV,ncy:rV,ndash:iV,nearhk:sV,nearr:aV,neArr:lV,nearrow:cV,ne:uV,nedot:dV,NegativeMediumSpace:fV,NegativeThickSpace:pV,NegativeThinSpace:mV,NegativeVeryThinSpace:hV,nequiv:gV,nesear:vV,nesim:yV,NestedGreaterGreater:_V,NestedLessLess:CV,NewLine:bV,nexist:kV,nexists:wV,Nfr:EV,nfr:SV,ngE:xV,nge:TV,ngeq:AV,ngeqq:NV,ngeqslant:DV,nges:MV,nGg:$V,ngsim:BV,nGt:OV,ngt:LV,ngtr:IV,nGtv:PV,nharr:FV,nhArr:VV,nhpar:RV,ni:zV,nis:UV,nisd:qV,niv:HV,NJcy:jV,njcy:WV,nlarr:ZV,nlArr:KV,nldr:GV,nlE:YV,nle:JV,nleftarrow:XV,nLeftarrow:QV,nleftrightarrow:eR,nLeftrightarrow:tR,nleq:nR,nleqq:oR,nleqslant:rR,nles:iR,nless:sR,nLl:aR,nlsim:lR,nLt:cR,nlt:uR,nltri:dR,nltrie:fR,nLtv:pR,nmid:mR,NoBreak:hR,NonBreakingSpace:gR,nopf:vR,Nopf:yR,Not:_R,not:CR,NotCongruent:bR,NotCupCap:kR,NotDoubleVerticalBar:wR,NotElement:ER,NotEqual:SR,NotEqualTilde:xR,NotExists:TR,NotGreater:AR,NotGreaterEqual:NR,NotGreaterFullEqual:DR,NotGreaterGreater:MR,NotGreaterLess:$R,NotGreaterSlantEqual:BR,NotGreaterTilde:OR,NotHumpDownHump:LR,NotHumpEqual:IR,notin:PR,notindot:FR,notinE:VR,notinva:RR,notinvb:zR,notinvc:UR,NotLeftTriangleBar:qR,NotLeftTriangle:HR,NotLeftTriangleEqual:jR,NotLess:WR,NotLessEqual:ZR,NotLessGreater:KR,NotLessLess:GR,NotLessSlantEqual:YR,NotLessTilde:JR,NotNestedGreaterGreater:XR,NotNestedLessLess:QR,notni:ez,notniva:tz,notnivb:nz,notnivc:oz,NotPrecedes:rz,NotPrecedesEqual:iz,NotPrecedesSlantEqual:sz,NotReverseElement:az,NotRightTriangleBar:lz,NotRightTriangle:cz,NotRightTriangleEqual:uz,NotSquareSubset:dz,NotSquareSubsetEqual:fz,NotSquareSuperset:pz,NotSquareSupersetEqual:mz,NotSubset:hz,NotSubsetEqual:gz,NotSucceeds:vz,NotSucceedsEqual:yz,NotSucceedsSlantEqual:_z,NotSucceedsTilde:Cz,NotSuperset:bz,NotSupersetEqual:kz,NotTilde:wz,NotTildeEqual:Ez,NotTildeFullEqual:Sz,NotTildeTilde:xz,NotVerticalBar:Tz,nparallel:Az,npar:Nz,nparsl:Dz,npart:Mz,npolint:$z,npr:Bz,nprcue:Oz,nprec:Lz,npreceq:Iz,npre:Pz,nrarrc:Fz,nrarr:Vz,nrArr:Rz,nrarrw:zz,nrightarrow:Uz,nRightarrow:qz,nrtri:Hz,nrtrie:jz,nsc:Wz,nsccue:Zz,nsce:Kz,Nscr:Gz,nscr:Yz,nshortmid:Jz,nshortparallel:Xz,nsim:Qz,nsime:eU,nsimeq:tU,nsmid:nU,nspar:oU,nsqsube:rU,nsqsupe:iU,nsub:sU,nsubE:aU,nsube:lU,nsubset:cU,nsubseteq:uU,nsubseteqq:dU,nsucc:fU,nsucceq:pU,nsup:mU,nsupE:hU,nsupe:gU,nsupset:vU,nsupseteq:yU,nsupseteqq:_U,ntgl:CU,Ntilde:bU,ntilde:kU,ntlg:wU,ntriangleleft:EU,ntrianglelefteq:SU,ntriangleright:xU,ntrianglerighteq:TU,Nu:AU,nu:NU,num:DU,numero:MU,numsp:$U,nvap:BU,nvdash:OU,nvDash:LU,nVdash:IU,nVDash:PU,nvge:FU,nvgt:VU,nvHarr:RU,nvinfin:zU,nvlArr:UU,nvle:qU,nvlt:HU,nvltrie:jU,nvrArr:WU,nvrtrie:ZU,nvsim:KU,nwarhk:GU,nwarr:YU,nwArr:JU,nwarrow:XU,nwnear:QU,Oacute:eq,oacute:tq,oast:nq,Ocirc:oq,ocirc:rq,ocir:iq,Ocy:sq,ocy:aq,odash:lq,Odblac:cq,odblac:uq,odiv:dq,odot:fq,odsold:pq,OElig:mq,oelig:hq,ofcir:gq,Ofr:vq,ofr:yq,ogon:_q,Ograve:Cq,ograve:bq,ogt:kq,ohbar:wq,ohm:Eq,oint:Sq,olarr:xq,olcir:Tq,olcross:Aq,oline:Nq,olt:Dq,Omacr:Mq,omacr:$q,Omega:Bq,omega:Oq,Omicron:Lq,omicron:Iq,omid:Pq,ominus:Fq,Oopf:Vq,oopf:Rq,opar:zq,OpenCurlyDoubleQuote:Uq,OpenCurlyQuote:qq,operp:Hq,oplus:jq,orarr:Wq,Or:Zq,or:Kq,ord:Gq,order:Yq,orderof:Jq,ordf:Xq,ordm:Qq,origof:eH,oror:tH,orslope:nH,orv:oH,oS:rH,Oscr:iH,oscr:sH,Oslash:aH,oslash:lH,osol:cH,Otilde:uH,otilde:dH,otimesas:fH,Otimes:pH,otimes:mH,Ouml:hH,ouml:gH,ovbar:vH,OverBar:yH,OverBrace:_H,OverBracket:CH,OverParenthesis:bH,para:kH,parallel:wH,par:EH,parsim:SH,parsl:xH,part:TH,PartialD:AH,Pcy:NH,pcy:DH,percnt:MH,period:$H,permil:BH,perp:OH,pertenk:LH,Pfr:IH,pfr:PH,Phi:FH,phi:VH,phiv:RH,phmmat:zH,phone:UH,Pi:qH,pi:HH,pitchfork:jH,piv:WH,planck:ZH,planckh:KH,plankv:GH,plusacir:YH,plusb:JH,pluscir:XH,plus:QH,plusdo:ej,plusdu:tj,pluse:nj,PlusMinus:oj,plusmn:rj,plussim:ij,plustwo:sj,pm:aj,Poincareplane:lj,pointint:cj,popf:uj,Popf:dj,pound:fj,prap:pj,Pr:mj,pr:hj,prcue:gj,precapprox:vj,prec:yj,preccurlyeq:_j,Precedes:Cj,PrecedesEqual:bj,PrecedesSlantEqual:kj,PrecedesTilde:wj,preceq:Ej,precnapprox:Sj,precneqq:xj,precnsim:Tj,pre:Aj,prE:Nj,precsim:Dj,prime:Mj,Prime:$j,primes:Bj,prnap:Oj,prnE:Lj,prnsim:Ij,prod:Pj,Product:Fj,profalar:Vj,profline:Rj,profsurf:zj,prop:Uj,Proportional:qj,Proportion:Hj,propto:jj,prsim:Wj,prurel:Zj,Pscr:Kj,pscr:Gj,Psi:Yj,psi:Jj,puncsp:Xj,Qfr:Qj,qfr:eW,qint:tW,qopf:nW,Qopf:oW,qprime:rW,Qscr:iW,qscr:sW,quaternions:aW,quatint:lW,quest:cW,questeq:uW,quot:dW,QUOT:fW,rAarr:pW,race:mW,Racute:hW,racute:gW,radic:vW,raemptyv:yW,rang:_W,Rang:CW,rangd:bW,range:kW,rangle:wW,raquo:EW,rarrap:SW,rarrb:xW,rarrbfs:TW,rarrc:AW,rarr:NW,Rarr:DW,rArr:MW,rarrfs:$W,rarrhk:BW,rarrlp:OW,rarrpl:LW,rarrsim:IW,Rarrtl:PW,rarrtl:FW,rarrw:VW,ratail:RW,rAtail:zW,ratio:UW,rationals:qW,rbarr:HW,rBarr:jW,RBarr:WW,rbbrk:ZW,rbrace:KW,rbrack:GW,rbrke:YW,rbrksld:JW,rbrkslu:XW,Rcaron:QW,rcaron:eZ,Rcedil:tZ,rcedil:nZ,rceil:oZ,rcub:rZ,Rcy:iZ,rcy:sZ,rdca:aZ,rdldhar:lZ,rdquo:cZ,rdquor:uZ,rdsh:dZ,real:fZ,realine:pZ,realpart:mZ,reals:hZ,Re:gZ,rect:vZ,reg:yZ,REG:_Z,ReverseElement:CZ,ReverseEquilibrium:bZ,ReverseUpEquilibrium:kZ,rfisht:wZ,rfloor:EZ,rfr:SZ,Rfr:xZ,rHar:TZ,rhard:AZ,rharu:NZ,rharul:DZ,Rho:MZ,rho:$Z,rhov:BZ,RightAngleBracket:OZ,RightArrowBar:LZ,rightarrow:IZ,RightArrow:PZ,Rightarrow:FZ,RightArrowLeftArrow:VZ,rightarrowtail:RZ,RightCeiling:zZ,RightDoubleBracket:UZ,RightDownTeeVector:qZ,RightDownVectorBar:HZ,RightDownVector:jZ,RightFloor:WZ,rightharpoondown:ZZ,rightharpoonup:KZ,rightleftarrows:GZ,rightleftharpoons:YZ,rightrightarrows:JZ,rightsquigarrow:XZ,RightTeeArrow:QZ,RightTee:eK,RightTeeVector:tK,rightthreetimes:nK,RightTriangleBar:oK,RightTriangle:rK,RightTriangleEqual:iK,RightUpDownVector:sK,RightUpTeeVector:aK,RightUpVectorBar:lK,RightUpVector:cK,RightVectorBar:uK,RightVector:dK,ring:fK,risingdotseq:pK,rlarr:mK,rlhar:hK,rlm:gK,rmoustache:vK,rmoust:yK,rnmid:_K,roang:CK,roarr:bK,robrk:kK,ropar:wK,ropf:EK,Ropf:SK,roplus:xK,rotimes:TK,RoundImplies:AK,rpar:NK,rpargt:DK,rppolint:MK,rrarr:$K,Rrightarrow:BK,rsaquo:OK,rscr:LK,Rscr:IK,rsh:PK,Rsh:FK,rsqb:VK,rsquo:RK,rsquor:zK,rthree:UK,rtimes:qK,rtri:HK,rtrie:jK,rtrif:WK,rtriltri:ZK,RuleDelayed:KK,ruluhar:GK,rx:YK,Sacute:JK,sacute:XK,sbquo:QK,scap:eG,Scaron:tG,scaron:nG,Sc:oG,sc:rG,sccue:iG,sce:sG,scE:aG,Scedil:lG,scedil:cG,Scirc:uG,scirc:dG,scnap:fG,scnE:pG,scnsim:mG,scpolint:hG,scsim:gG,Scy:vG,scy:yG,sdotb:_G,sdot:CG,sdote:bG,searhk:kG,searr:wG,seArr:EG,searrow:SG,sect:xG,semi:TG,seswar:AG,setminus:NG,setmn:DG,sext:MG,Sfr:$G,sfr:BG,sfrown:OG,sharp:LG,SHCHcy:IG,shchcy:PG,SHcy:FG,shcy:VG,ShortDownArrow:RG,ShortLeftArrow:zG,shortmid:UG,shortparallel:qG,ShortRightArrow:HG,ShortUpArrow:jG,shy:WG,Sigma:ZG,sigma:KG,sigmaf:GG,sigmav:YG,sim:JG,simdot:XG,sime:QG,simeq:eY,simg:tY,simgE:nY,siml:oY,simlE:rY,simne:iY,simplus:sY,simrarr:aY,slarr:lY,SmallCircle:cY,smallsetminus:uY,smashp:dY,smeparsl:fY,smid:pY,smile:mY,smt:hY,smte:gY,smtes:vY,SOFTcy:yY,softcy:_Y,solbar:CY,solb:bY,sol:kY,Sopf:wY,sopf:EY,spades:SY,spadesuit:xY,spar:TY,sqcap:AY,sqcaps:NY,sqcup:DY,sqcups:MY,Sqrt:$Y,sqsub:BY,sqsube:OY,sqsubset:LY,sqsubseteq:IY,sqsup:PY,sqsupe:FY,sqsupset:VY,sqsupseteq:RY,square:zY,Square:UY,SquareIntersection:qY,SquareSubset:HY,SquareSubsetEqual:jY,SquareSuperset:WY,SquareSupersetEqual:ZY,SquareUnion:KY,squarf:GY,squ:YY,squf:JY,srarr:XY,Sscr:QY,sscr:eJ,ssetmn:tJ,ssmile:nJ,sstarf:oJ,Star:rJ,star:iJ,starf:sJ,straightepsilon:aJ,straightphi:lJ,strns:cJ,sub:uJ,Sub:dJ,subdot:fJ,subE:pJ,sube:mJ,subedot:hJ,submult:gJ,subnE:vJ,subne:yJ,subplus:_J,subrarr:CJ,subset:bJ,Subset:kJ,subseteq:wJ,subseteqq:EJ,SubsetEqual:SJ,subsetneq:xJ,subsetneqq:TJ,subsim:AJ,subsub:NJ,subsup:DJ,succapprox:MJ,succ:$J,succcurlyeq:BJ,Succeeds:OJ,SucceedsEqual:LJ,SucceedsSlantEqual:IJ,SucceedsTilde:PJ,succeq:FJ,succnapprox:VJ,succneqq:RJ,succnsim:zJ,succsim:UJ,SuchThat:qJ,sum:HJ,Sum:jJ,sung:WJ,sup1:ZJ,sup2:KJ,sup3:GJ,sup:YJ,Sup:JJ,supdot:XJ,supdsub:QJ,supE:eX,supe:tX,supedot:nX,Superset:oX,SupersetEqual:rX,suphsol:iX,suphsub:sX,suplarr:aX,supmult:lX,supnE:cX,supne:uX,supplus:dX,supset:fX,Supset:pX,supseteq:mX,supseteqq:hX,supsetneq:gX,supsetneqq:vX,supsim:yX,supsub:_X,supsup:CX,swarhk:bX,swarr:kX,swArr:wX,swarrow:EX,swnwar:SX,szlig:xX,Tab:TX,target:AX,Tau:NX,tau:DX,tbrk:MX,Tcaron:$X,tcaron:BX,Tcedil:OX,tcedil:LX,Tcy:IX,tcy:PX,tdot:FX,telrec:VX,Tfr:RX,tfr:zX,there4:UX,therefore:qX,Therefore:HX,Theta:jX,theta:WX,thetasym:ZX,thetav:KX,thickapprox:GX,thicksim:YX,ThickSpace:JX,ThinSpace:XX,thinsp:QX,thkap:eQ,thksim:tQ,THORN:nQ,thorn:oQ,tilde:rQ,Tilde:iQ,TildeEqual:sQ,TildeFullEqual:aQ,TildeTilde:lQ,timesbar:cQ,timesb:uQ,times:dQ,timesd:fQ,tint:pQ,toea:mQ,topbot:hQ,topcir:gQ,top:vQ,Topf:yQ,topf:_Q,topfork:CQ,tosa:bQ,tprime:kQ,trade:wQ,TRADE:EQ,triangle:SQ,triangledown:xQ,triangleleft:TQ,trianglelefteq:AQ,triangleq:NQ,triangleright:DQ,trianglerighteq:MQ,tridot:$Q,trie:BQ,triminus:OQ,TripleDot:LQ,triplus:IQ,trisb:PQ,tritime:FQ,trpezium:VQ,Tscr:RQ,tscr:zQ,TScy:UQ,tscy:qQ,TSHcy:HQ,tshcy:jQ,Tstrok:WQ,tstrok:ZQ,twixt:KQ,twoheadleftarrow:GQ,twoheadrightarrow:YQ,Uacute:JQ,uacute:XQ,uarr:QQ,Uarr:eee,uArr:tee,Uarrocir:nee,Ubrcy:oee,ubrcy:ree,Ubreve:iee,ubreve:see,Ucirc:aee,ucirc:lee,Ucy:cee,ucy:uee,udarr:dee,Udblac:fee,udblac:pee,udhar:mee,ufisht:hee,Ufr:gee,ufr:vee,Ugrave:yee,ugrave:_ee,uHar:Cee,uharl:bee,uharr:kee,uhblk:wee,ulcorn:Eee,ulcorner:See,ulcrop:xee,ultri:Tee,Umacr:Aee,umacr:Nee,uml:Dee,UnderBar:Mee,UnderBrace:$ee,UnderBracket:Bee,UnderParenthesis:Oee,Union:Lee,UnionPlus:Iee,Uogon:Pee,uogon:Fee,Uopf:Vee,uopf:Ree,UpArrowBar:zee,uparrow:Uee,UpArrow:qee,Uparrow:Hee,UpArrowDownArrow:jee,updownarrow:Wee,UpDownArrow:Zee,Updownarrow:Kee,UpEquilibrium:Gee,upharpoonleft:Yee,upharpoonright:Jee,uplus:Xee,UpperLeftArrow:Qee,UpperRightArrow:ete,upsi:tte,Upsi:nte,upsih:ote,Upsilon:rte,upsilon:ite,UpTeeArrow:ste,UpTee:ate,upuparrows:lte,urcorn:cte,urcorner:ute,urcrop:dte,Uring:fte,uring:pte,urtri:mte,Uscr:hte,uscr:gte,utdot:vte,Utilde:yte,utilde:_te,utri:Cte,utrif:bte,uuarr:kte,Uuml:wte,uuml:Ete,uwangle:Ste,vangrt:xte,varepsilon:Tte,varkappa:Ate,varnothing:Nte,varphi:Dte,varpi:Mte,varpropto:$te,varr:Bte,vArr:Ote,varrho:Lte,varsigma:Ite,varsubsetneq:Pte,varsubsetneqq:Fte,varsupsetneq:Vte,varsupsetneqq:Rte,vartheta:zte,vartriangleleft:Ute,vartriangleright:qte,vBar:Hte,Vbar:jte,vBarv:Wte,Vcy:Zte,vcy:Kte,vdash:Gte,vDash:Yte,Vdash:Jte,VDash:Xte,Vdashl:Qte,veebar:ene,vee:tne,Vee:nne,veeeq:one,vellip:rne,verbar:ine,Verbar:sne,vert:ane,Vert:lne,VerticalBar:cne,VerticalLine:une,VerticalSeparator:dne,VerticalTilde:fne,VeryThinSpace:pne,Vfr:mne,vfr:hne,vltri:gne,vnsub:vne,vnsup:yne,Vopf:_ne,vopf:Cne,vprop:bne,vrtri:kne,Vscr:wne,vscr:Ene,vsubnE:Sne,vsubne:xne,vsupnE:Tne,vsupne:Ane,Vvdash:Nne,vzigzag:Dne,Wcirc:Mne,wcirc:$ne,wedbar:Bne,wedge:One,Wedge:Lne,wedgeq:Ine,weierp:Pne,Wfr:Fne,wfr:Vne,Wopf:Rne,wopf:zne,wp:Une,wr:qne,wreath:Hne,Wscr:jne,wscr:Wne,xcap:Zne,xcirc:Kne,xcup:Gne,xdtri:Yne,Xfr:Jne,xfr:Xne,xharr:Qne,xhArr:eoe,Xi:toe,xi:noe,xlarr:ooe,xlArr:roe,xmap:ioe,xnis:soe,xodot:aoe,Xopf:loe,xopf:coe,xoplus:uoe,xotime:doe,xrarr:foe,xrArr:poe,Xscr:moe,xscr:hoe,xsqcup:goe,xuplus:voe,xutri:yoe,xvee:_oe,xwedge:Coe,Yacute:boe,yacute:koe,YAcy:woe,yacy:Eoe,Ycirc:Soe,ycirc:xoe,Ycy:Toe,ycy:Aoe,yen:Noe,Yfr:Doe,yfr:Moe,YIcy:$oe,yicy:Boe,Yopf:Ooe,yopf:Loe,Yscr:Ioe,yscr:Poe,YUcy:Foe,yucy:Voe,yuml:Roe,Yuml:zoe,Zacute:Uoe,zacute:qoe,Zcaron:Hoe,zcaron:joe,Zcy:Woe,zcy:Zoe,Zdot:Koe,zdot:Goe,zeetrf:Yoe,ZeroWidthSpace:Joe,Zeta:Xoe,zeta:Qoe,zfr:ere,Zfr:tre,ZHcy:nre,zhcy:ore,zigrarr:rre,zopf:ire,Zopf:sre,Zscr:are,zscr:lre,zwj:cre,zwnj:ure};var Qp=dre,uu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,qr={},Vd={};function fre(t){var e,n,o=Vd[t];if(o)return o;for(o=Vd[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 Va(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Va.defaultChars),typeof n>"u"&&(n=!0),l=fre(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}Va.defaultChars=";/?:@&=+$,-_.!~*'()#";Va.componentChars="-_.!~*'()";var pre=Va,Rd={};function mre(t){var e,n,o=Rd[t];if(o)return o;for(o=Rd[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 Ra(t,e){var n;return typeof e!="string"&&(e=Ra.defaultChars),n=mre(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})}Ra.defaultChars=";/?:@&=+$,#";Ra.componentChars="";var hre=Ra,gre=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 na(){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 vre=/^([a-z0-9.+-]+:)/i,yre=/:[0-9]*$/,_re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cre=["<",">",'"',"`"," ","\r",`
3
- `," "],bre=["{","}","|","\\","^","`"].concat(Cre),kre=["'"].concat(bre),zd=["%","/","?",";","#"].concat(kre),Ud=["/","?","#"],wre=255,qd=/^[+a-z0-9A-Z_-]{0,63}$/,Ere=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hd={javascript:!0,"javascript:":!0},jd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Sre(t,e){if(t&&t instanceof na)return t;var n=new na;return n.parse(t,e),n}na.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=_re.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=vre.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&&Hd[u])&&(l=l.substr(2),this.slashes=!0)),!Hd[u]&&(a||u&&!jd[u])){var d=-1;for(n=0;n<Ud.length;n++)s=l.indexOf(Ud[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<zd.length;n++)s=l.indexOf(zd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(qd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(qd)){var k=g.slice(0,n),w=g.slice(n+1),b=y.match(Ere);b&&(k.push(b[1]),w.unshift(b[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>wre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),jd[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};na.prototype.parseHost=function(t){var e=yre.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 xre=Sre;qr.encode=pre;qr.decode=hre;qr.format=gre;qr.parse=xre;var To={},wl,Wd;function em(){return Wd||(Wd=1,wl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wl}var El,Zd;function tm(){return Zd||(Zd=1,El=/[\0-\x1F\x7F-\x9F]/),El}var Sl,Kd;function Tre(){return Kd||(Kd=1,Sl=/[\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]/),Sl}var xl,Gd;function nm(){return Gd||(Gd=1,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),xl}var Yd;function Are(){return Yd||(Yd=1,To.Any=em(),To.Cc=tm(),To.Cf=Tre(),To.P=uu,To.Z=nm()),To}(function(t){function e(M){return Object.prototype.toString.call(M)}function n(M){return e(M)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(M,I){return o.call(M,I)}function s(M){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(j){M[j]=P[j]})}}),M}function a(M,I,P){return[].concat(M.slice(0,I),P,M.slice(I+1))}function l(M){return!(M>=55296&&M<=57343||M>=64976&&M<=65007||(M&65535)===65535||(M&65535)===65534||M>=0&&M<=8||M===11||M>=14&&M<=31||M>=127&&M<=159||M>1114111)}function c(M){if(M>65535){M-=65536;var I=55296+(M>>10),P=56320+(M&1023);return String.fromCharCode(I,P)}return String.fromCharCode(M)}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,m=Qp;function h(M,I){var P;return r(m,I)?m[I]:I.charCodeAt(0)===35&&p.test(I)&&(P=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(P))?c(P):M}function g(M){return M.indexOf("\\")<0?M:M.replace(u,"$1")}function y(M){return M.indexOf("\\")<0&&M.indexOf("&")<0?M:M.replace(f,function(I,P,j){return P||h(I,j)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(M){return _[M]}function w(M){return C.test(M)?M.replace(v,k):M}var b=/[.?*+^$[\]\\(){}|-]/g;function E(M){return M.replace(b,"\\$&")}function T(M){switch(M){case 9:case 32:return!0}return!1}function x(M){if(M>=8192&&M<=8202)return!0;switch(M){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 N=uu;function L(M){return N.test(M)}function A(M){switch(M){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 D(M){return M=M.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(M=M.replace(/ẞ/g,"ß")),M.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=qr,t.lib.ucmicro=Are(),t.assign=s,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=x,t.isMdAsciiPunct=A,t.isPunctChar=L,t.escapeRE=E,t.normalizeReference=D})(Ne);var za={},Nre=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},Jd=Ne.unescapeAll,Dre=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=Jd(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=Jd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Mre=Ne.unescapeAll,$re=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=Mre(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};za.parseLinkLabel=Nre;za.parseLinkDestination=Dre;za.parseLinkTitle=$re;var Bre=Ne.assign,Ore=Ne.unescapeAll,Zo=Ne.escapeHtml,$n={};$n.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+Zo(s.content)+"</code>"};$n.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+Zo(t[e].content)+`</code></pre>
4
- `};$n.fence=function(t,e,n,o,r){var s=t[e],a=s.info?Ore(s.info).trim():"",l="",c="",u,d,f,p,m;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Zo(s.content):u=Zo(s.content),u.indexOf("<pre")===0?u+`
1
+ "use strict";var Gg=Object.defineProperty;var Yg=(t,e,n)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var U=(t,e,n)=>(Yg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Dr=require("vue-router"),Co=require("vuedraggable");const Jg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Dr.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ne=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Xg={},Qg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e0(t,e){return i.openBlock(),i.createElementBlock("svg",Qg,[...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 t0=ne(Xg,[["render",e0]]),n0={},o0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r0(t,e){return i.openBlock(),i.createElementBlock("svg",o0,[...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 i0=ne(n0,[["render",r0]]),s0={},a0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l0(t,e){return i.openBlock(),i.createElementBlock("svg",a0,[...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 c0=ne(s0,[["render",l0]]),u0={},d0={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",d0,[...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 p0=ne(u0,[["render",f0]]),m0={},h0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const v0=ne(m0,[["render",g0]]),y0={},_0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return i.openBlock(),i.createElementBlock("svg",_0,[...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 b0=ne(y0,[["render",C0]]),k0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E0(t,e){return i.openBlock(),i.createElementBlock("svg",w0,[...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 S0=ne(k0,[["render",E0]]),x0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return i.openBlock(),i.createElementBlock("svg",T0,[...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 N0=ne(x0,[["render",A0]]),D0={},M0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $0(t,e){return i.openBlock(),i.createElementBlock("svg",M0,[...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 B0=ne(D0,[["render",$0]]),O0={},L0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I0(t,e){return i.openBlock(),i.createElementBlock("svg",L0,[...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 P0=ne(O0,[["render",I0]]),F0={},V0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return i.openBlock(),i.createElementBlock("svg",V0,[...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 z0=ne(F0,[["render",R0]]),U0={},q0={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",q0,[...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 j0=ne(U0,[["render",H0]]),W0={},Z0={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",Z0,[...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 G0=ne(W0,[["render",K0]]),Y0={},J0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X0(t,e){return i.openBlock(),i.createElementBlock("svg",J0,[...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 Q0=ne(Y0,[["render",X0]]),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 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 ov=ne(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 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 av=ne(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:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const dv=ne(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return i.openBlock(),i.createElementBlock("svg",pv,[...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 hv=ne(fv,[["render",mv]]),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:"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 _v=ne(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:"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 wv=ne(Cv,[["render",kv]]),Ev={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return i.openBlock(),i.createElementBlock("svg",Sv,[...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 Tv=ne(Ev,[["render",xv]]),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:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Mv=ne(Av,[["render",Dv]]),$v={},Bv={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",Bv,[...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 Lv=ne($v,[["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 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 Vv=ne(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:"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 qv=ne(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:"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 Zv=ne(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:"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 Jv=ne(Kv,[["render",Yv]]),Xv={},Qv={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",Qv,[...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 t2=ne(Xv,[["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:"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 i2=ne(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:"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 c2=ne(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:"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 p2=ne(u2,[["render",f2]]),m2={},h2={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",h2,[...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 v2=ne(m2,[["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:"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 b2=ne(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:"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 S2=ne(k2,[["render",E2]]),x2={},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:"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 N2=ne(x2,[["render",A2]]),D2={},M2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2(t,e){return i.openBlock(),i.createElementBlock("svg",M2,[...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 B2=ne(D2,[["render",$2]]),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:"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 P2=ne(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 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 z2=ne(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:"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 j2=ne(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 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const G2=ne(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:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Q2=ne(Y2,[["render",X2]]),e3=i.defineComponent({name:"LoadingIcon"});const t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",t3,[...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 o3=ne(e3,[["render",n3],["__scopeId","data-v-ad6da4a9"]]),r3={},i3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function s3(t,e){return i.openBlock(),i.createElementBlock("svg",i3,[...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 a3=ne(r3,[["render",s3]]),l3={},c3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u3(t,e){return i.openBlock(),i.createElementBlock("svg",c3,[...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 d3=ne(l3,[["render",u3]]),f3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m3(t,e){return i.openBlock(),i.createElementBlock("svg",p3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const h3=ne(f3,[["render",m3]]),g3={},v3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y3(t,e){return i.openBlock(),i.createElementBlock("svg",v3,[...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 _3=ne(g3,[["render",y3]]),C3={},b3={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",b3,[...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 w3=ne(C3,[["render",k3]]),E3={},S3={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",S3,[...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 T3=ne(E3,[["render",x3]]),A3={},N3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D3(t,e){return i.openBlock(),i.createElementBlock("svg",N3,[...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 M3=ne(A3,[["render",D3]]),$3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O3(t,e){return i.openBlock(),i.createElementBlock("svg",B3,[...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 L3=ne($3,[["render",O3]]),I3={},P3={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",P3,[...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 V3=ne(I3,[["render",F3]]),R3={},z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return i.openBlock(),i.createElementBlock("svg",z3,[...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 q3=ne(R3,[["render",U3]]),H3={},j3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return i.openBlock(),i.createElementBlock("svg",j3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const Z3=ne(H3,[["render",W3]]),K3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y3(t,e){return i.openBlock(),i.createElementBlock("svg",G3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const J3=ne(K3,[["render",Y3]]),X3={},Q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e5(t,e){return i.openBlock(),i.createElementBlock("svg",Q3,[...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 t5=ne(X3,[["render",e5]]),n5={},o5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r5(t,e){return i.openBlock(),i.createElementBlock("svg",o5,[...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 i5=ne(n5,[["render",r5]]),s5={},a5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l5(t,e){return i.openBlock(),i.createElementBlock("svg",a5,[...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 c5=ne(s5,[["render",l5]]),u5={},d5={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",d5,[...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 p5=ne(u5,[["render",f5]]),m5={},h5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g5(t,e){return i.openBlock(),i.createElementBlock("svg",h5,[...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 v5=ne(m5,[["render",g5]]),y5={},_5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C5(t,e){return i.openBlock(),i.createElementBlock("svg",_5,[...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 b5=ne(y5,[["render",C5]]),k5={},w5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E5(t,e){return i.openBlock(),i.createElementBlock("svg",w5,[...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 S5=ne(k5,[["render",E5]]),x5={},T5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A5(t,e){return i.openBlock(),i.createElementBlock("svg",T5,[...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 N5=ne(x5,[["render",A5]]),D5={},M5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $5(t,e){return i.openBlock(),i.createElementBlock("svg",M5,[...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 B5=ne(D5,[["render",$5]]),O5={},L5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I5(t,e){return i.openBlock(),i.createElementBlock("svg",L5,[...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 P5=ne(O5,[["render",I5]]),F5={},V5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(t,e){return i.openBlock(),i.createElementBlock("svg",V5,[...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 z5=ne(F5,[["render",R5]]),U5={},q5={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",q5,[...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 j5=ne(U5,[["render",H5]]),W5={},Z5={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",Z5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const G5=ne(W5,[["render",K5]]),Y5={},J5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X5(t,e){return i.openBlock(),i.createElementBlock("svg",J5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const Q5=ne(Y5,[["render",X5]]),ey={},ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ny(t,e){return i.openBlock(),i.createElementBlock("svg",ty,[...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 oy=ne(ey,[["render",ny]]),ry={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return i.openBlock(),i.createElementBlock("svg",iy,[...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 ay=ne(ry,[["render",sy]]),ly=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:t0,AccountCircle:i0,AccountTreeOutlineRounded:c0,AccountTreeRounded:p0,Add:v0,AddBoxOutlineRounded:b0,ArchiveOutlineRounded:S0,ArrowBackRounded:N0,ArrowDropDownRounded:B0,ArrowForwardRounded:P0,AssignmentOutlineRounded:z0,AttachFileRounded:j0,CalendarTodayOutlineRounded:G0,CancelRounded:Q0,ChatOutline:ov,CheckBoxOutlineBlank:av,CheckBoxOutlineBlankSharp:dv,CheckBoxOutlineRounded:hv,CheckSmallRounded:_v,ChecklistRounded:wv,ChevronLeft:Tv,ChevronRight:Mv,CloseRounded:Lv,ContactsOutlineRounded:Vv,ContentCopyOutline:qv,DeleteOutlineRounded:Zv,DownloadRounded:Jv,DragIndicator:t2,EditDocumentRounded:i2,EditOutline:c2,ErrorOutlineRounded:p2,FilterListRounded:v2,FlagRounded:b2,FlowsheetOutlineRounded:S2,GifBox:N2,GroupsOutline:B2,HomeOutlineRounded:P2,ImageRounded:z2,Info:j2,KeyboardArrowDown:G2,KeyboardArrowUp:Q2,Loading:o3,Lock:a3,LogoutRounded:d3,Menu:h3,MoreHoriz:_3,MoreTimeRounded:w3,MoreVert:T3,MountainFlagOutlineRounded:M3,PersonAddOutlineRounded:L3,PictureAsPdfRounded:V3,RadioButtonChecked:q3,RadioButtonCheckedOutline:Z3,RadioButtonUnchecked:J3,RemoveRounded:t5,SearchRounded:i5,SelectCheckBox:c5,SendRounded:p5,Settings:v5,SlideshowRounded:b5,Target:S5,TaskOutlineRounded:N5,TextSnippetRounded:B5,TimerOutline:P5,ViewComfyAltRounded:z5,ViewCompactAltRounded:j5,ViewTimelineRounded:G5,WarningOutlineRounded:Q5,WarningRounded:oy,WaterfallChartRounded:ay},Symbol.toStringTag,{value:"Module"})),cy={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Sa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Gc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},uy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Gc,...uy});const pp={ROUND:"round",ROUNDED:"rounded"},dy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Sa.MD}},setup(t){const e=t,n=i.computed(()=>ly[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 fy=["type"],py={key:0,class:"ao-button__label"},he=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>cy.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Sa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.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",py,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ke,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,fy))}});function my(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 _t=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}=my(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const _=C.target.value;r("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,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(h,["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 hy={key:0,class:"ao-card-horiz__drag ao-card__drag"},gy={class:"ao-card-horiz__header"},vy={key:0,class:"ao-card-horiz__avatar"},yy={class:"ao-card-horiz__title-group"},_y={key:0,class:"ao-card-horiz__subtitle"},Cy={key:1,class:"ao-card-horiz__header"},by={key:1,class:"ao-card-horiz__body"},ky={key:2,class:"ao-card-horiz__footer"},wy={key:3,class:"ao-card-horiz__secondary"},mp=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",hy,[i.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",gy,[t.icon?(i.openBlock(),i.createElementBlock("div",vy,[i.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",yy,[i.createVNode(_t,{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",_y,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",wy,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Li=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(dy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(ke,{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(ke,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const Ii={todo:"todo",done:"done",archived:"archived"},Ey={months:"months",weeks:"weeks",days:"days"},Sy={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},hp={BEFORE:"before",AFTER:"after"},gp={START:"start",end:"end"},vp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},qe={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var yp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(yp||{});const xy={add:"add",remove:"remove",moved:"moved"};var _p=(t=>(t.HOURS="hours",t.DAYS="days",t))(_p||{});const bi={project:"projectId",assignee:"assigneeId"};function Gs(t){"@babel/helpers - typeof";return Gs=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},Gs(t)}function Wn(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 et(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Et(t){et(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Gs(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 Ty(t,e){et(2,arguments);var n=Et(t).getTime(),o=Wn(e);return new Date(n+o)}var Ay={};function Ji(){return Ay}function Pi(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 yd(t){et(1,arguments);var e=Et(t);return e.setHours(0,0,0,0),e}var Ny=864e5;function Dy(t,e){et(2,arguments);var n=yd(t),o=yd(e),r=n.getTime()-Pi(n),s=o.getTime()-Pi(o);return Math.round((r-s)/Ny)}function My(t,e){et(2,arguments);var n=Et(t),o=Et(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var Cp=6e4,bp=36e5;function $y(t){return et(1,arguments),t instanceof Date||Gs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function kp(t){if(et(1,arguments),!$y(t)&&typeof t!="number")return!1;var e=Et(t);return!isNaN(Number(e))}function lc(t,e){et(2,arguments);var n=Wn(e);return Ty(t,-n)}var By=864e5;function Oy(t){et(1,arguments);var e=Et(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/By)+1}function Ys(t){et(1,arguments);var e=1,n=Et(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 wp(t){et(1,arguments);var e=Et(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ys(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ys(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Ly(t){et(1,arguments);var e=wp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ys(n);return o}var Iy=6048e5;function Py(t){et(1,arguments);var e=Et(t),n=Ys(e).getTime()-Ly(e).getTime();return Math.round(n/Iy)+1}function Js(t,e){var n,o,r,s,a,l,c,u;et(1,arguments);var d=Ji(),f=Wn((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=Et(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Ep(t,e){var n,o,r,s,a,l,c,u;et(1,arguments);var d=Et(t),f=d.getUTCFullYear(),p=Ji(),m=Wn((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(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Js(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Js(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Fy(t,e){var n,o,r,s,a,l,c,u;et(1,arguments);var d=Ji(),f=Wn((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=Ep(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Js(m,e);return h}var Vy=6048e5;function Ry(t,e){et(1,arguments);var n=Et(t),o=Js(n,e).getTime()-Fy(n,e).getTime();return Math.round(o/Vy)+1}function $e(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var zy={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return $e(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):$e(o+1,2)},d:function(e,n){return $e(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 $e(e.getUTCHours()%12||12,n.length)},H:function(e,n){return $e(e.getUTCHours(),n.length)},m:function(e,n){return $e(e.getUTCMinutes(),n.length)},s:function(e,n){return $e(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 $e(s,n.length)}};const oo=zy;var pr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Uy={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 oo.y(e,n)},Y:function(e,n,o,r){var s=Ep(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return $e(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):$e(a,n.length)},R:function(e,n){var o=wp(e);return $e(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return $e(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 $e(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 $e(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 oo.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 $e(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=Ry(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):$e(s,n.length)},I:function(e,n,o){var r=Py(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):$e(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):oo.d(e,n)},D:function(e,n,o){var r=Oy(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):$e(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 $e(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 $e(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 $e(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=pr.noon:r===0?s=pr.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=pr.evening:r>=12?s=pr.afternoon:r>=4?s=pr.morning:s=pr.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 oo.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):oo.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):$e(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):$e(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):oo.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):oo.s(e,n)},S:function(e,n){return oo.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 Cd(a);case"XXXX":case"XX":return Bo(a);case"XXXXX":case"XXX":default:return Bo(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Cd(a);case"xxxx":case"xx":return Bo(a);case"xxxxx":case"xxx":default:return Bo(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"+_d(a,":");case"OOOO":default:return"GMT"+Bo(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"+_d(a,":");case"zzzz":default:return"GMT"+Bo(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return $e(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return $e(a,n.length)}};function _d(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+$e(s,2)}function Cd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+$e(Math.abs(t)/60,2)}return Bo(t,e)}function Bo(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=$e(Math.floor(r/60),2),a=$e(r%60,2);return o+s+n+a}const qy=Uy;var bd=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"})}},Sp=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"})}},Hy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return bd(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}}",bd(r,n)).replace("{{time}}",Sp(s,n))},jy={p:Sp,P:Hy};const Wy=jy;var Zy=["D","DD"],Ky=["YY","YYYY"];function Gy(t){return Zy.indexOf(t)!==-1}function Yy(t){return Ky.indexOf(t)!==-1}function kd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xy=function(e,n,o){var r,s=Jy[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const Qy=Xy;function _l(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 e7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o7={date:_l({formats:e7,defaultWidth:"full"}),time:_l({formats:t7,defaultWidth:"full"}),dateTime:_l({formats:n7,defaultWidth:"full"})};const r7=o7;var i7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s7=function(e,n,o,r){return i7[e]};const a7=s7;function ci(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 l7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u7={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"]},d7={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"]},f7={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"}},p7={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"}},m7=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"},h7={ordinalNumber:m7,era:ci({values:l7,defaultWidth:"wide"}),quarter:ci({values:c7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ci({values:u7,defaultWidth:"wide"}),day:ci({values:d7,defaultWidth:"wide"}),dayPeriod:ci({values:f7,defaultWidth:"wide",formattingValues:p7,defaultFormattingWidth:"wide"})};const g7=h7;function ui(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)?y7(l,function(f){return f.test(a)}):v7(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 v7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function y7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function _7(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 C7=/^(\d+)(th|st|nd|rd)?/i,b7=/\d+/i,k7={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},w7={any:[/^b/i,/^(a|c)/i]},E7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},S7={any:[/1/i,/2/i,/3/i,/4/i]},x7={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},T7={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]},A7={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},N7={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]},D7={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},M7={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}},$7={ordinalNumber:_7({matchPattern:C7,parsePattern:b7,valueCallback:function(e){return parseInt(e,10)}}),era:ui({matchPatterns:k7,defaultMatchWidth:"wide",parsePatterns:w7,defaultParseWidth:"any"}),quarter:ui({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:S7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ui({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),day:ui({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:ui({matchPatterns:D7,defaultMatchWidth:"any",parsePatterns:M7,defaultParseWidth:"any"})};const B7=$7;var O7={code:"en-US",formatDistance:Qy,formatLong:r7,formatRelative:a7,localize:g7,match:B7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const xp=O7;var L7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P7=/^'([^]*?)'?$/,F7=/''/g,V7=/[a-zA-Z]/;function Tp(t,e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k;et(2,arguments);var w=String(e),b=Ji(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:xp,T=Wn((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 x=Wn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(v=C.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&h!==void 0?h:(_=b.locale)===null||_===void 0||(k=_.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var N=Et(t);if(!kp(N))throw new RangeError("Invalid time value");var I=Pi(N),A=lc(N,I),D={firstWeekContainsDate:T,weekStartsOn:x,locale:E,_originalDate:N},M=w.match(I7).map(function(L){var P=L[0];if(P==="p"||P==="P"){var j=Wy[P];return j(L,E.formatLong)}return L}).join("").match(L7).map(function(L){if(L==="''")return"'";var P=L[0];if(P==="'")return R7(L);var j=qy[P];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Yy(L)&&kd(L,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Gy(L)&&kd(L,e,String(t)),j(A,L,E.localize,D);if(P.match(V7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return L}).join("");return M}function R7(t){var e=t.match(P7);return e?e[1].replace(F7,"'"):t}function z7(t,e,n){var o,r,s,a,l,c,u,d,f,p;et(2,arguments);var m=Et(t),h=Et(e),g=Ji(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:xp,C=Wn((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(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=Dy(m,h);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var k=lc(m,Pi(m)),w=lc(h,Pi(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return Tp(m,b,{locale:y,weekStartsOn:C})}function Fi(t,e){var n;et(1,arguments);var o=Wn((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=j7(t),s;if(r.date){var a=W7(r.date,o);s=Z7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=K7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=G7(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 Es={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,H7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j7(t){var e={},n=t.split(Es.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],Es.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Es.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=Es.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function W7(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function Z7(t,e){if(e===null)return new Date(NaN);var n=t.match(U7);if(!n)return new Date(NaN);var o=!!n[4],r=di(n[1]),s=di(n[2])-1,a=di(n[3]),l=di(n[4]),c=di(n[5])-1;if(o)return e_(e,l,c)?Y7(e,l,c):new Date(NaN);var u=new Date(0);return!X7(e,s,a)||!Q7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function di(t){return t?parseInt(t):1}function K7(t){var e=t.match(q7);if(!e)return NaN;var n=Cl(e[1]),o=Cl(e[2]),r=Cl(e[3]);return t_(n,o,r)?n*bp+o*Cp+r*1e3:NaN}function Cl(t){return t&&parseFloat(t.replace(",","."))||0}function G7(t){if(t==="Z")return 0;var e=t.match(H7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return n_(o,r)?n*(o*bp+r*Cp):NaN}function Y7(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var J7=[31,null,31,30,31,30,31,31,30,31,30,31];function Ap(t){return t%400===0||t%4===0&&t%100!==0}function X7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(J7[e]||(Ap(t)?29:28))}function Q7(t,e){return e>=1&&e<=(Ap(t)?366:365)}function e_(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function t_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function n_(t,e){return e>=0&&e<=59}var Nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r_(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 at={},Np={},fi={},Xi={},qr={},xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.lexoHelper=void 0;xa.lexoHelper={arrayCopy:i_};function i_(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 Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});class s_{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}}Qi.default=s_;Object.defineProperty(qr,"__esModule",{value:!0});qr.LexoInteger=void 0;const Ss=xa,a_=Qi;class ge{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 ge.make(n,r,s)}static zero(e){return new ge(e,0,ge.ZERO_MAG)}static one(e){return ge.make(e,1,ge.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return ge.zero(e);if(r===o.length)return new ge(e,n,o);const s=new Array(r).fill(0);return Ss.lexoHelper.arrayCopy(o,0,s,0,r),new ge(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 ge.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Ss.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=ge.complement(e,o,n.length),s=ge.add(e,n,r);return s[s.length-1]=0,ge.add(e,s,ge.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=ge.add(this.sys,this.mag,e.mag);return ge.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=ge.compare(this.mag,e.mag);return n===0?ge.zero(this.sys):n<0?ge.make(this.sys,this.sign===-1?1:-1,ge.subtract(this.sys,e.mag,this.mag)):ge.make(this.sys,this.sign===-1?-1:1,ge.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?ge.make(this.sys,1,e.mag):ge.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ge.make(this.sys,1,this.mag):ge.make(this.sys,-1,this.mag);const n=ge.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ge.make(this.sys,1,n):ge.make(this.sys,-1,n)}negate(){return this.isZero()?this:ge.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 Ss.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ge.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ge.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Ss.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ge.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ge.make(this.sys,this.sign,ge.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=ge.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ge.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 a_.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")}}qr.LexoInteger=ge;ge.ZERO_MAG=[0];ge.ONE_MAG=[1];ge.NEGATIVE_SIGN=-1;ge.ZERO_SIGN=0;ge.POSITIVE_SIGN=1;Object.defineProperty(Xi,"__esModule",{value:!0});Xi.LexoDecimal=void 0;const pi=qr,l_=Qi;class Wt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Wt.make(pi.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 Wt.make(pi.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Wt.make(pi.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Wt.make(e,0)}static make(e,n){if(e.isZero())return new Wt(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 Wt(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 Wt.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 Wt.make(n.subtract(r),o)}multiply(e){return Wt.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(pi.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(pi.LexoInteger.one(r.getSystem()))),Wt.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 l_.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()}}Xi.LexoDecimal=Wt;var xs={},wd;function Dp(){if(wd)return xs;wd=1,Object.defineProperty(xs,"__esModule",{value:!0});const t=qr,e=$p();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 xs.default=n,xs}var Yc={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem10=void 0;class c_{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)}}Ta.LexoNumeralSystem10=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem36=void 0;class u_{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]}}Aa.LexoNumeralSystem36=u_;var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.LexoNumeralSystem64=void 0;class d_{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]}}Na.LexoNumeralSystem64=d_;(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Mp,t),n(Ta,t),n(Aa,t),n(Na,t)})(Yc);var Ed;function $p(){if(Ed)return fi;Ed=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.LexoRank=void 0;const t=Xi,e=Dp(),n=Qi,o=Yc;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 h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return r.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=r.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);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 fi.LexoRank=r,fi}(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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($p(),t),n(Dp(),t),n(Xi,t),n(qr,t)})(Np);(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Yc,t)})(at);const ki=60,f_=8,Sd=ki*f_;function Da(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Sd),r=Math.floor(t%Sd/ki);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%ki;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/ki),r=t%ki;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Bp(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 p_(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 m_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Bp(n.milestones):0;return e+o},0))??0}function h_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function es(t,e){if(t.moved)return Mr(e,t.moved.newIndex)}function Mr(t,e){if(e===0)if(t.length>1){const n=t[e+1];return at.LexoRank.parse(n.rank).genPrev().format()}else return at.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return at.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return at.LexoRank.parse(o.rank).between(at.LexoRank.parse(n.rank)).format()}}function ts(t){if(t.length===0)return at.LexoRank.middle().format();const e=t[0];return at.LexoRank.parse(e.rank).genPrev().format()}function Ma(t,e="dd/MM/yyyy"){if(!t)return"";const n=Fi(t);return kp(n)?Tp(n,e):""}function Jc(t,e){return t.status.id===e.id}function g_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Jc(n,e))}function v_(t,e){return{...t,status:g_(t,e)?Ii.done:Ii.todo}}const Op=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function y_(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 __(t,e=.15){var n;if(t.startsWith("#"))return y_(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 Lp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function xd(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:Lp(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 C_=["title"],b_={key:0,className:"ao-avatar__initials"},k_=["src"],Jn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Sa.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=h_(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",b_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,k_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,C_))}});const w_={class:"ao-card-template__subitems"},E_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__subitem-number"},x_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__subitem"},A_={class:"ao-card-template__body"},N_={class:"ao-card-template__col ao-card-template__col--phases"},D_={class:"ao-card-template__col-title"},M_={class:"ao-card-template__col-label"},$_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},B_={class:"ao-card-template__footer"},O_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},L_={class:"ao-card-template__col-title"},I_={class:"ao-card-template__col-label"},P_={class:"ao-card-template__col-body"},F_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},V_={class:"ao-card-template__col-title"},R_={class:"ao-card-template__col-label"},z_={class:"ao-card-template__col-body"},U_={class:"ao-card-template-item__secondary"},bl=5,q_=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,bl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>bl?n.phases.length-bl:0);return(c,u)=>(i.openBlock(),i.createBlock(mp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",w_,[i.createElementVNode("li",E_,[i.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",S_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",x_,[i.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",T_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createElementVNode("div",D_,[i.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",M_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",$_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Li,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Li,{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",U_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",B_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",O_,[i.createElementVNode("div",L_,[i.createElementVNode("span",I_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",P_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",F_,[i.createElementVNode("div",V_,[i.createElementVNode("span",R_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",z_,[i.createVNode(Jn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const H_={class:"ao-page-header"},j_={class:"ao-page-header-main"},W_={key:0,class:"ao-page-header-secondary"},ns=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",H_,[i.createElementVNode("div",j_,[t.canGoBack?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",W_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const Z_=["type"],K_={key:0,class:"ao-button-card__label"},bo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Gc.BLACK},size:{default:()=>Sa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>pp.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",K_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ke,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,Z_))}});const G_={class:"ao-card-template-item__footer"},Y_={key:0,class:"ao-card-template-item__subitem"},J_={class:"ao-card-template-item__subitem-number"},X_={class:"ao-card-template-item__secondary"},Xc=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(mp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",G_,[(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",Y_,[i.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",J_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",X_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const Q_=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?Bp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Xc,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"]))}}),eC=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(Xc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),tC={class:"ao-list__footer"},nC=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=es(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(Co),{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(_t,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(eC,{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",tC,[i.createVNode(bo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),oC=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(Xc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),rC={class:"ao-list__footer"},iC=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=es(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(Co),{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(_t,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(oC,{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",rC,[i.createVNode(bo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),sC={class:"ao-modal"},aC={key:0,class:"ao-modal__header"},lC={class:"ao-modal__header-meta"},cC={class:"ao-modal__title-group"},uC={class:"ao-modal__body"},dC={key:1,class:"ao-modal__footer"},$a=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",sC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",aC,[i.createElementVNode("div",lC,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",cC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",uC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",dC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Vi=Math.min,Zt=Math.max,Xs=Math.round,Ts=Math.floor,ho=t=>({x:t,y:t}),fC={left:"right",right:"left",bottom:"top",top:"bottom"},pC={start:"end",end:"start"};function Qc(t,e){return typeof t=="function"?t(e):t}function $r(t){return t.split("-")[0]}function Ba(t){return t.split("-")[1]}function mC(t){return t==="x"?"y":"x"}function Ip(t){return t==="y"?"height":"width"}function eu(t){return["top","bottom"].includes($r(t))?"y":"x"}function Pp(t){return mC(eu(t))}function hC(t,e,n){n===void 0&&(n=!1);const o=Ba(t),r=Pp(t),s=Ip(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qs(a)),[a,Qs(a)]}function gC(t){const e=Qs(t);return[cc(t),e,cc(e)]}function cc(t){return t.replace(/start|end/g,e=>pC[e])}function vC(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 yC(t,e,n,o){const r=Ba(t);let s=vC($r(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(cc)))),s}function Qs(t){return t.replace(/left|right|bottom|top/g,e=>fC[e])}function _C(t){return{top:0,right:0,bottom:0,left:0,...t}}function CC(t){return typeof t!="number"?_C(t):{top:t,right:t,bottom:t,left:t}}function ea(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Td(t,e,n){let{reference:o,floating:r}=t;const s=eu(e),a=Pp(e),l=Ip(a),c=$r(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 m;switch(c){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Ba(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const bC=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}=Td(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:v,y:_,data:k,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...k}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):w.rects),{x:d,y:f}=Td(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Fp(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:m=0}=Qc(e,t),h=CC(m),y=l[p?f==="floating"?"reference":"floating":f],C=ea(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="floating"?{...a.floating,x:o,y:r}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},w=ea(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/k.y,bottom:(w.bottom-C.bottom+h.bottom)/k.y,left:(C.left-w.left+h.left)/k.x,right:(w.right-C.right+h.right)/k.x}}const kC=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:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=Qc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=$r(r),v=$r(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Qs(l)]:gC(l));!p&&h!=="none"&&k.push(...yC(l,g,h,_));const w=[l,...k],b=await Fp(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=hC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var x,N;const A=(((x=s.flip)==null?void 0:x.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:T},reset:{placement:D}};let M=(N=T.filter(L=>L.overflows[0]<=0).sort((L,P)=>L.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(m){case"bestFit":{var I;const L=(I=T.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,V)=>j+V,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:I[0];L&&(M=L);break}case"initialPlacement":M=l;break}if(r!==M)return{reset:{placement:M}}}return{}}}},wC=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}=Qc(t,e),c=await Fp(e,l),u=$r(n),d=Ba(n),f=eu(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],v=!e.middlewareData.shift;let _=y,k=C;if(f){const b=p-c.left-c.right;k=d||v?Vi(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Vi(y,b):b}if(v&&!d){const b=Zt(c.left,0),E=Zt(c.right,0),T=Zt(c.top,0),x=Zt(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Zt(c.left,c.right)):_=m-2*(T!==0||x!==0?T+x:Zt(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:_});const w=await r.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function go(t){return Vp(t)?(t.nodeName||"").toLowerCase():"#document"}function zt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Xn(t){var e;return(e=(Vp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Vp(t){return t instanceof Node||t instanceof zt(t).Node}function Zn(t){return t instanceof Element||t instanceof zt(t).Element}function An(t){return t instanceof HTMLElement||t instanceof zt(t).HTMLElement}function Ad(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof zt(t).ShadowRoot}function os(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Qt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function EC(t){return["table","td","th"].includes(go(t))}function tu(t){const e=nu(),n=Qt(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 SC(t){let e=Br(t);for(;An(e)&&!Oa(e);){if(tu(e))return e;e=Br(e)}return null}function nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oa(t){return["html","body","#document"].includes(go(t))}function Qt(t){return zt(t).getComputedStyle(t)}function La(t){return Zn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Br(t){if(go(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ad(t)&&t.host||Xn(t);return Ad(e)?e.host:e}function Rp(t){const e=Br(t);return Oa(e)?t.ownerDocument?t.ownerDocument.body:t.body:An(e)&&os(e)?e:Rp(e)}function Ri(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Rp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=zt(r);return s?e.concat(a,a.visualViewport||[],os(r)?r:[],a.frameElement&&n?Ri(a.frameElement):[]):e.concat(r,Ri(r))}function zp(t){const e=Qt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=An(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Xs(n)!==s||Xs(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function ou(t){return Zn(t)?t:t.contextElement}function wr(t){const e=ou(t);if(!An(e))return ho(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=zp(e);let a=(s?Xs(n.width):n.width)/o,l=(s?Xs(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xC=ho(0);function Up(t){const e=zt(t);return!nu()||!e.visualViewport?xC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function TC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==zt(t)?!1:e}function Zo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=ou(t);let a=ho(1);e&&(o?Zn(o)&&(a=wr(o)):a=wr(t));const l=TC(s,n,o)?Up(s):ho(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=zt(s),m=o&&Zn(o)?zt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=wr(h),y=h.getBoundingClientRect(),C=Qt(h),v=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,_=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=v,u+=_,h=zt(h).frameElement}}return ea({width:d,height:f,x:c,y:u})}function AC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=An(n),s=Xn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=ho(1);const c=ho(0);if((r||!r&&o!=="fixed")&&((go(n)!=="body"||os(s))&&(a=La(n)),An(n))){const u=Zo(n);l=wr(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 NC(t){return Array.from(t.getClientRects())}function qp(t){return Zo(Xn(t)).left+La(t).scrollLeft}function DC(t){const e=Xn(t),n=La(t),o=t.ownerDocument.body,r=Zt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Zt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+qp(t);const l=-n.scrollTop;return Qt(o).direction==="rtl"&&(a+=Zt(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function MC(t,e){const n=zt(t),o=Xn(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=nu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function $C(t,e){const n=Zo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=An(t)?wr(t):ho(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 Nd(t,e,n){let o;if(e==="viewport")o=MC(t,n);else if(e==="document")o=DC(Xn(t));else if(Zn(e))o=$C(e,n);else{const r=Up(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return ea(o)}function Hp(t,e){const n=Br(t);return n===e||!Zn(n)||Oa(n)?!1:Qt(n).position==="fixed"||Hp(n,e)}function BC(t,e){const n=e.get(t);if(n)return n;let o=Ri(t,[],!1).filter(l=>Zn(l)&&go(l)!=="body"),r=null;const s=Qt(t).position==="fixed";let a=s?Br(t):t;for(;Zn(a)&&!Oa(a);){const l=Qt(a),c=tu(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||os(a)&&!c&&Hp(t,a))?o=o.filter(d=>d!==a):r=l,a=Br(a)}return e.set(t,o),o}function OC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?BC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Nd(e,d,r);return u.top=Zt(f.top,u.top),u.right=Vi(f.right,u.right),u.bottom=Vi(f.bottom,u.bottom),u.left=Zt(f.left,u.left),u},Nd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function LC(t){return zp(t)}function IC(t,e,n){const o=An(e),r=Xn(e),s=n==="fixed",a=Zo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=ho(0);if(o||!o&&!s)if((go(e)!=="body"||os(r))&&(l=La(e)),o){const u=Zo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=qp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Dd(t,e){return!An(t)||Qt(t).position==="fixed"?null:e?e(t):t.offsetParent}function jp(t,e){const n=zt(t);if(!An(t))return n;let o=Dd(t,e);for(;o&&EC(o)&&Qt(o).position==="static";)o=Dd(o,e);return o&&(go(o)==="html"||go(o)==="body"&&Qt(o).position==="static"&&!tu(o))?n:o||SC(t)||n}const PC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||jp,s=this.getDimensions;return{reference:IC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function FC(t){return Qt(t).direction==="rtl"}const VC={convertOffsetParentRelativeRectToViewportRelativeRect:AC,getDocumentElement:Xn,getClippingRect:OC,getOffsetParent:jp,getElementRects:PC,getClientRects:NC,getDimensions:LC,getScale:wr,isElement:Zn,isRTL:FC};function RC(t,e){let n=null,o;const r=Xn(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 m=Ts(d),h=Ts(r.clientWidth-(u+f)),g=Ts(r.clientHeight-(d+p)),y=Ts(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Zt(0,Vi(1,c))||1};let _=!0;function k(w){const b=w[0].intersectionRatio;if(b!==c){if(!_)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(k,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(t)}return a(!0),s}function zC(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=ou(t),d=r||s?[...u?Ri(u):[],...Ri(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?RC(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[v]=C;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?Zo(t):null;c&&y();function y(){const C=Zo(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const UC=(t,e,n)=>{const o=new Map,r={platform:VC,...n},s={...r.platform,_c:o};return bC(t,e,{...r,platform:s})},qC=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 h=zC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||UC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[kC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),wC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${r.value}px`,width:`${h.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 Cn(t){return[null,void 0].indexOf(t)!==-1}function HC(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 m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||Cn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>Cn(f)?s.value==="single"?{}:[]:f;return{update:c}}function jC(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 WC(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 m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function ZC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function kl(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 KC(t){return Object.prototype.toString.call(t)==="[object Object]"}function GC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function YC(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:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:v,filterResults:_,clearOnSearch:k,clearOnSelect:w,valueProp:b,allowAbsent:E,groupLabel:T,canDeselect:x,max:N,strict:I,closeOnSelect:A,closeOnDeselect:D,groups:M,reverse:L,infinite:P,groupOptions:j,groupHideEmpty:V,groupSelect:q,onCreate:F,disabledProp:Y,searchStart:ee,searchFilter:we}=i.toRefs(t),se=i.getCurrentInstance().proxy,ie=n.iv,z=n.ev,oe=n.search,ye=n.clearSearch,Be=n.update,H=n.pointer,le=n.setPointer,fe=n.clearPointer,pe=n.focus,Ce=n.deactivate,We=n.close,_e=n.localize,Pe=i.ref([]),Ve=i.ref([]),De=i.ref(!1),Ge=i.ref(null),ht=i.ref(P.value&&a.value===-1?10:a.value),vn=i.computed(()=>c.value||u.value||!1),Ln=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Re=i.computed(()=>{if(M.value){let $=St.value||[],J=[];return $.forEach(be=>{oi(be[j.value]).forEach(ze=>{J.push(Object.assign({},ze,be[Y.value]?{[Y.value]:!0}:{}))})}),J}else{let $=oi(Ve.value||[]);return Pe.value.length&&($=$.concat(Pe.value)),$}}),gt=i.computed(()=>{let $=Re.value;return L.value&&($=$.reverse()),Ye.value.length&&($=Ye.value.concat($)),ni($)}),ot=i.computed(()=>{let $=gt.value;return ht.value>0&&($=$.slice(0,ht.value)),$}),St=i.computed(()=>{if(!M.value)return[];let $=[],J=Ve.value||[];return Pe.value.length&&$.push({[T.value]:" ",[j.value]:[...Pe.value],__CREATE__:!0}),$.concat(J)}),nn=i.computed(()=>{let $=[...St.value].map(J=>({...J}));return Ye.value.length&&($[0]&&$[0].__CREATE__?$[0][j.value]=[...Ye.value,...$[0][j.value]]:$=[{[T.value]:" ",[j.value]:[...Ye.value],__CREATE__:!0}].concat($)),$}),yn=i.computed(()=>{if(!M.value)return[];let $=nn.value;return Ao(($||[]).map((J,be)=>{const ze=oi(J[j.value]);return{...J,index:be,group:!0,[j.value]:ni(ze,!1).map(In=>Object.assign({},In,J[Y.value]?{[Y.value]:!0}:{})),__VISIBLE__:ni(ze).map(In=>Object.assign({},In,J[Y.value]?{[Y.value]:!0}:{}))}}))}),B=i.computed(()=>{switch(r.value){case"single":return!Cn(ie.value[b.value]);case"multiple":case"tags":return!Cn(ie.value)&&ie.value.length>0}}),K=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(ie.value,se):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),ue=i.computed(()=>!Re.value.length&&!De.value&&!Ye.value.length),Ke=i.computed(()=>Re.value.length>0&&ot.value.length==0&&(oe.value&&M.value||!M.value)),Ye=i.computed(()=>vn.value===!1||!oe.value?[]:ys(oe.value)!==-1?[]:[{[b.value]:oe.value,[Ct.value[0]]:oe.value,[d.value]:oe.value,__CREATE__:!0}]),Ct=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),xe=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),xo=i.computed(()=>g.value||De.value),$t=$=>{switch(typeof $!="object"&&($=Pt($)),r.value){case"single":Be($);break;case"multiple":case"tags":Be(ie.value.concat($));break}e.emit("select",Ot($),$,se)},Bt=$=>{switch(typeof $!="object"&&($=Pt($)),r.value){case"single":Qr();break;case"tags":case"multiple":Be(Array.isArray($)?ie.value.filter(J=>$.map(be=>be[b.value]).indexOf(J[b.value])===-1):ie.value.filter(J=>J[b.value]!=$[b.value]));break}e.emit("deselect",Ot($),$,se)},Ot=$=>h.value?$:$[b.value],cr=$=>{Bt($)},gs=($,J)=>{if(J.button!==0){J.preventDefault();return}cr($)},Qr=()=>{Be(xe.value),e.emit("clear",se)},Lt=$=>{if($.group!==void 0)return r.value==="single"?!1:vs($[j.value])&&$[j.value].length;switch(r.value){case"single":return!Cn(ie.value)&&ie.value[b.value]==$[b.value];case"tags":case"multiple":return!Cn(ie.value)&&ie.value.map(J=>J[b.value]).indexOf($[b.value])!==-1}},ur=$=>$[Y.value]===!0,eo=()=>N===void 0||N.value===-1||!B.value&&N.value>0?!1:ie.value.length>=N.value,dr=$=>{if(!ur($)){if(F&&F.value&&!Lt($)&&$.__CREATE__&&($={...$},delete $.__CREATE__,$=F.value($,se),$ instanceof Promise)){De.value=!0,$.then(J=>{De.value=!1,It(J)});return}It($)}},It=$=>{switch($.__CREATE__&&($={...$},delete $.__CREATE__),r.value){case"single":if($&&Lt($)){x.value&&Bt($),D.value&&(fe(),We());return}$&&To($),w.value&&ye(),A.value&&(fe(),We()),$&&$t($);break;case"multiple":if($&&Lt($)){Bt($),D.value&&(fe(),We());return}if(eo()){e.emit("max",se);return}$&&(To($),$t($)),w.value&&ye(),l.value&&fe(),A.value&&We();break;case"tags":if($&&Lt($)){Bt($),D.value&&(fe(),We());return}if(eo()){e.emit("max",se);return}$&&To($),w.value&&ye(),$&&$t($),l.value&&fe(),A.value&&We();break}A.value||pe()},to=$=>{if(!(ur($)||r.value==="single"||!q.value)){switch(r.value){case"multiple":case"tags":ml($[j.value])?Bt($[j.value]):$t($[j.value].filter(J=>ie.value.map(be=>be[b.value]).indexOf(J[b.value])===-1).filter(J=>!J[Y.value]).filter((J,be)=>ie.value.length+1+be<=N.value||N.value===-1)),l.value&&H.value&&le(yn.value.filter(J=>!J[Y.value])[H.value.index]);break}A.value&&Ce()}},To=$=>{Pt($[b.value])===void 0&&vn.value&&(e.emit("tag",$[b.value],se),e.emit("option",$[b.value],se),e.emit("create",$[b.value],se),Ln.value&&hl($),ye())},ei=()=>{r.value!=="single"&&$t(ot.value.filter($=>!$.disabled&&!Lt($)))},ml=$=>$.find(J=>!Lt(J)&&!J[Y.value])===void 0,vs=$=>$.find(J=>!Lt(J))===void 0,Pt=$=>Re.value[Re.value.map(J=>String(J[b.value])).indexOf(String($))],ys=$=>Re.value.findIndex(J=>Ct.value.some(be=>(parseInt(J[be])==J[be]?parseInt(J[be]):J[be])===(parseInt($)==$?parseInt($):$))),ti=$=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Lt($),hl=$=>{Pe.value.push($)},Ao=$=>V.value?$.filter(J=>oe.value?J.__VISIBLE__.length:J[j.value].length):$.filter(J=>oe.value?J.__VISIBLE__.length:!0),ni=($,J=!0)=>{let be=$;if(oe.value&&_.value){let ze=we.value;ze||(ze=(In,rn,si)=>Ct.value.some(Pn=>{let Cs=kl(_e(In[Pn]),I.value);return ee.value?Cs.startsWith(kl(rn,I.value)):Cs.indexOf(kl(rn,I.value))!==-1})),be=be.filter(In=>ze(In,oe.value,se))}return l.value&&J&&(be=be.filter(ze=>!ti(ze))),be},oi=$=>{let J=$;return KC(J)&&(J=Object.keys(J).map(be=>{let ze=J[be];return{[b.value]:be,[Ct.value[0]]:ze,[d.value]:ze}})),J=J.map(be=>typeof be=="object"?be:{[b.value]:be,[Ct.value[0]]:be,[d.value]:be}),J},Oe=()=>{Cn(z.value)||(ie.value=no(z.value))},on=$=>(De.value=!0,new Promise((J,be)=>{o.value(oe.value,se).then(ze=>{Ve.value=ze||[],typeof $=="function"&&$(ze),De.value=!1}).catch(ze=>{console.error(ze),Ve.value=[],De.value=!1}).finally(()=>{J()})})),ri=()=>{if(B.value)if(r.value==="single"){let $=Pt(ie.value[b.value]);if($!==void 0){let J=$[d.value];ie.value[d.value]=J,h.value&&(z.value[d.value]=J)}}else ie.value.forEach(($,J)=>{let be=Pt(ie.value[J][b.value]);if(be!==void 0){let ze=be[d.value];ie.value[J][d.value]=ze,h.value&&(z.value[J][d.value]=ze)}})},_s=$=>{on($)},no=$=>Cn($)?r.value==="single"?{}:[]:h.value?$:r.value==="single"?Pt($)||(E.value?{[d.value]:$,[b.value]:$,[Ct.value[0]]:$}:{}):$.filter(J=>!!Pt(J)||E.value).map(J=>Pt(J)||{[d.value]:J,[b.value]:J,[Ct.value[0]]:J}),ii=()=>{Ge.value=i.watch(oe,$=>{$.length<v.value||!$&&v.value!==0||(De.value=!0,k.value&&(Ve.value=[]),setTimeout(()=>{$==oe.value&&o.value(oe.value,se).then(J=>{($==oe.value||!oe.value)&&(Ve.value=J,H.value=ot.value.filter(be=>be[Y.value]!==!0)[0]||null,De.value=!1)}).catch(J=>{console.error(J)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!Cn(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?C.value?on(Oe):h.value==!0&&Oe():(Ve.value=o.value,Oe()),y.value>-1&&ii(),i.watch(y,($,J)=>{Ge.value&&Ge.value(),$>=0&&ii()}),i.watch(z,$=>{if(Cn($)){Be(no($),!1);return}switch(r.value){case"single":(h.value?$[b.value]!=ie.value[b.value]:$!=ie.value[b.value])&&Be(no($),!1);break;case"multiple":case"tags":GC(h.value?$.map(J=>J[b.value]):$,ie.value.map(J=>J[b.value]))||Be(no($),!1);break}},{deep:!0}),i.watch(o,($,J)=>{typeof t.options=="function"?C.value&&(!J||$&&$.toString()!==J.toString())&&on():(Ve.value=t.options,Object.keys(ie.value).length||Oe(),ri())}),i.watch(d,ri),i.watch(a,($,J)=>{ht.value=P.value&&$===-1?10:$}),{pfo:gt,fo:ot,filteredOptions:ot,hasSelected:B,multipleLabelText:K,eo:Re,extendedOptions:Re,eg:St,extendedGroups:St,fg:yn,filteredGroups:yn,noOptions:ue,noResults:Ke,resolving:De,busy:xo,offset:ht,select:$t,deselect:Bt,remove:cr,selectAll:ei,clear:Qr,isSelected:Lt,isDisabled:ur,isMax:eo,getOption:Pt,handleOptionClick:dr,handleGroupClick:to,handleTagRemove:gs,refreshOptions:_s,resolveOptions:on,refreshLabels:ri}}function JC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,v=n.setPointer,_=n.clearPointer,k=n.multiselect,w=n.isOpen,b=i.computed(()=>p.value.filter(z=>!z[d.value])),E=i.computed(()=>m.value.filter(z=>!z[d.value])),T=i.computed(()=>c.value!=="single"&&u.value),x=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>se(C.value)),I=i.computed(()=>{const z=x.value?C.value:se(C.value),oe=E.value.map(Be=>Be[a.value]).indexOf(z[a.value]);let ye=E.value[oe-1];return ye===void 0&&(ye=D.value),ye}),A=i.computed(()=>{let z=E.value.map(oe=>oe.label).indexOf(x.value?C.value[a.value]:se(C.value)[a.value])+1;return E.value.length<=z&&(z=0),E.value[z]}),D=i.computed(()=>[...E.value].slice(-1)[0]),M=i.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),L=i.computed(()=>{const z=N.value.__VISIBLE__.filter(oe=>!oe[d.value]);return z[z.map(oe=>oe[o.value]).indexOf(C.value[o.value])-1]}),P=i.computed(()=>{const z=se(C.value).__VISIBLE__.filter(oe=>!oe[d.value]);return z[z.map(oe=>oe[o.value]).indexOf(C.value[o.value])+1]}),j=i.computed(()=>[...I.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),V=i.computed(()=>[...D.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),q=z=>C.value&&(!z.group&&C.value[o.value]===z[o.value]||z.group!==void 0&&C.value[a.value]===z[a.value])?!0:void 0,F=()=>{v(b.value[0]||null)},Y=()=>{!C.value||C.value[d.value]===!0||(x.value?g(C.value):h(C.value))},ee=()=>{if(C.value===null)v((l.value&&T.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&T.value){let z=x.value?M.value:P.value;z===void 0&&(z=A.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=b.value.map(oe=>oe[o.value]).indexOf(C.value[o.value])+1;b.value.length<=z&&(z=0),v(b.value[z]||null)}i.nextTick(()=>{ie()})},we=()=>{if(C.value===null){let z=b.value[b.value.length-1];l.value&&T.value&&(z=V.value,z===void 0&&(z=D.value)),v(z||null)}else if(l.value&&T.value){let z=x.value?j.value:L.value;z===void 0&&(z=x.value?I.value:N.value,z.__CREATE__&&(z=j.value,z===void 0&&(z=I.value))),v(z||null)}else{let z=b.value.map(oe=>oe[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=b.value.length-1),v(b.value[z]||null)}i.nextTick(()=>{ie()})},se=z=>E.value.find(oe=>oe.__VISIBLE__.map(ye=>ye[o.value]).indexOf(z[o.value])!==-1),ie=()=>{let z=k.value.querySelector("[data-pointed]");if(!z)return;let oe=z.parentElement.parentElement;l.value&&(oe=x.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>oe.clientHeight+oe.scrollTop&&(oe.scrollTop=z.offsetTop+z.offsetHeight-oe.clientHeight),z.offsetTop<oe.scrollTop&&(oe.scrollTop=z.offsetTop)};return i.watch(y,z=>{s.value&&(z.length&&r.value?F():_())}),i.watch(w,z=>{if(z){let oe=k.value.querySelectorAll("[data-selected]")[0];if(!oe)return;let ye=oe.parentElement.parentElement;i.nextTick(()=>{ye.scrollTop>0||(ye.scrollTop=oe.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:F,selectPointer:Y,forwardPointer:ee,backwardPointer:we}}function Ut(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ko(t){var e=Ut(t).Element;return t instanceof e||t instanceof Element}function Jt(t){var e=Ut(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ru(t){if(typeof ShadowRoot>"u")return!1;var e=Ut(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Uo=Math.max,ta=Math.min,Or=Math.round;function uc(){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 Wp(){return!/^((?!chrome|android).)*safari/i.test(uc())}function Lr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Jt(t)&&(r=t.offsetWidth>0&&Or(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Or(o.height)/t.offsetHeight||1);var a=Ko(t)?Ut(t):window,l=a.visualViewport,c=!Wp()&&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 iu(t){var e=Ut(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function XC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function QC(t){return t===Ut(t)||!Jt(t)?iu(t):XC(t)}function Nn(t){return t?(t.nodeName||"").toLowerCase():null}function ko(t){return((Ko(t)?t.ownerDocument:t.document)||window.document).documentElement}function su(t){return Lr(ko(t)).left+iu(t).scrollLeft}function Kn(t){return Ut(t).getComputedStyle(t)}function au(t){var e=Kn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function eb(t){var e=t.getBoundingClientRect(),n=Or(e.width)/t.offsetWidth||1,o=Or(e.height)/t.offsetHeight||1;return n!==1||o!==1}function tb(t,e,n){n===void 0&&(n=!1);var o=Jt(e),r=Jt(e)&&eb(e),s=ko(e),a=Lr(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Nn(e)!=="body"||au(s))&&(l=QC(e)),Jt(e)?(c=Lr(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=su(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Zp(t){var e=Lr(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 Ia(t){return Nn(t)==="html"?t:t.assignedSlot||t.parentNode||(ru(t)?t.host:null)||ko(t)}function Kp(t){return["html","body","#document"].indexOf(Nn(t))>=0?t.ownerDocument.body:Jt(t)&&au(t)?t:Kp(Ia(t))}function Ti(t,e){var n;e===void 0&&(e=[]);var o=Kp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ut(o),a=r?[s].concat(s.visualViewport||[],au(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ti(Ia(a)))}function nb(t){return["table","td","th"].indexOf(Nn(t))>=0}function Md(t){return!Jt(t)||Kn(t).position==="fixed"?null:t.offsetParent}function ob(t){var e=/firefox/i.test(uc()),n=/Trident/i.test(uc());if(n&&Jt(t)){var o=Kn(t);if(o.position==="fixed")return null}var r=Ia(t);for(ru(r)&&(r=r.host);Jt(r)&&["html","body"].indexOf(Nn(r))<0;){var s=Kn(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 Pa(t){for(var e=Ut(t),n=Md(t);n&&nb(n)&&Kn(n).position==="static";)n=Md(n);return n&&(Nn(n)==="html"||Nn(n)==="body"&&Kn(n).position==="static")?e:n||ob(t)||e}var ln="top",Dn="bottom",vo="right",Hn="left",lu="auto",Fa=[ln,Dn,vo,Hn],Ir="start",zi="end",rb="clippingParents",Gp="viewport",mi="popper",ib="reference",$d=Fa.reduce(function(t,e){return t.concat([e+"-"+Ir,e+"-"+zi])},[]),sb=[].concat(Fa,[lu]).reduce(function(t,e){return t.concat([e,e+"-"+Ir,e+"-"+zi])},[]),ab="beforeRead",lb="read",cb="afterRead",ub="beforeMain",db="main",fb="afterMain",pb="beforeWrite",mb="write",hb="afterWrite",gb=[ab,lb,cb,ub,db,fb,pb,mb,hb];function vb(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 yb(t){var e=vb(t);return gb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function _b(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Cb(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 bb(t,e){var n=Ut(t),o=ko(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Wp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+su(t),y:c}}function kb(t){var e,n=ko(t),o=iu(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Uo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Uo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+su(t),c=-o.scrollTop;return Kn(r||n).direction==="rtl"&&(l+=Uo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function wb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ru(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Eb(t,e){var n=Lr(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 Bd(t,e,n){return e===Gp?dc(bb(t,n)):Ko(e)?Eb(e,n):dc(kb(ko(t)))}function Sb(t){var e=Ti(Ia(t)),n=["absolute","fixed"].indexOf(Kn(t).position)>=0,o=n&&Jt(t)?Pa(t):t;return Ko(o)?e.filter(function(r){return Ko(r)&&wb(r,o)&&Nn(r)!=="body"}):[]}function xb(t,e,n,o){var r=e==="clippingParents"?Sb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Bd(t,u,o);return c.top=Uo(d.top,c.top),c.right=ta(d.right,c.right),c.bottom=ta(d.bottom,c.bottom),c.left=Uo(d.left,c.left),c},Bd(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 uo(t){return t.split("-")[0]}function Pr(t){return t.split("-")[1]}function Yp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Jp(t){var e=t.reference,n=t.element,o=t.placement,r=o?uo(o):null,s=o?Pr(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case ln:c={x:a,y:e.y-n.height};break;case Dn:c={x:a,y:e.y+e.height};break;case vo:c={x:e.x+e.width,y:l};break;case Hn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Yp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Ir:c[u]=c[u]-(e[d]/2-n[d]/2);break;case zi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Xp(){return{top:0,right:0,bottom:0,left:0}}function Tb(t){return Object.assign({},Xp(),t)}function Ab(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function cu(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?rb:l,u=n.rootBoundary,d=u===void 0?Gp:u,f=n.elementContext,p=f===void 0?mi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Tb(typeof y!="number"?y:Ab(y,Fa)),v=p===mi?ib:mi,_=t.rects.popper,k=t.elements[h?v:p],w=xb(Ko(k)?k:k.contextElement||ko(t.elements.popper),c,d,a),b=Lr(t.elements.reference),E=Jp({reference:b,element:_,strategy:"absolute",placement:r}),T=dc(Object.assign({},_,E)),x=p===mi?T:b,N={top:w.top-x.top+C.top,bottom:x.bottom-w.bottom+C.bottom,left:w.left-x.left+C.left,right:x.right-w.right+C.right},I=t.modifiersData.offset;if(p===mi&&I){var A=I[r];Object.keys(N).forEach(function(D){var M=[vo,Dn].indexOf(D)>=0?1:-1,L=[ln,Dn].indexOf(D)>=0?"y":"x";N[D]+=A[L]*M})}return N}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function Ld(){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 Nb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Od:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Od,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var v=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Ko(l)?Ti(l):l.contextElement?Ti(l.contextElement):[],popper:Ti(c)};var _=yb(Cb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(k){return k.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Ld(v,_)){d.rects={reference:tb(v,Pa(_),d.options.strategy==="fixed"),popper:Zp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var w=d.orderedModifiers[k],b=w.fn,E=w.options,T=E===void 0?{}:E,x=w.name;typeof b=="function"&&(d=b({state:d,options:T,name:x,instance:m})||d)}}}},update:_b(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Ld(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,v=y.options,_=v===void 0?{}:v,k=y.effect;if(typeof k=="function"){var w=k({state:d,name:C,instance:m,options:_}),b=function(){};f.push(w||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var As={passive:!0};function Db(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=Ut(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,As)}),l&&c.addEventListener("resize",n.update,As),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,As)}),l&&c.removeEventListener("resize",n.update,As)}}var Mb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Db,data:{}};function $b(t){var e=t.state,n=t.name;e.modifiersData[n]=Jp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Bb={name:"popperOffsets",enabled:!0,phase:"read",fn:$b,data:{}},Ob={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Or(n*r)/r||0,y:Or(o*r)/r||0}}function Id(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,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),_=Hn,k=ln,w=window;if(u){var b=Pa(n),E="clientHeight",T="clientWidth";if(b===Ut(n)&&(b=ko(n),Kn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===ln||(r===Hn||r===vo)&&s===zi){k=Dn;var x=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=x-o.height,g*=c?1:-1}if(r===Hn||(r===ln||r===Dn)&&s===zi){_=vo;var N=f&&b===w&&w.visualViewport?w.visualViewport.width:b[T];m-=N-o.width,m*=c?1:-1}}var I=Object.assign({position:l},u&&Ob),A=d===!0?Lb({x:m,y:g},Ut(n)):{x:m,y:g};if(m=A.x,g=A.y,c){var D;return Object.assign({},I,(D={},D[k]=v?"0":"",D[_]=C?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",D))}return Object.assign({},I,(e={},e[k]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Ib(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:uo(e.placement),variation:Pr(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,Id(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,Id(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 Pb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ib,data:{}};function Fb(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];!Jt(s)||!Nn(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 Vb(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},{});!Jt(r)||!Nn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Rb={name:"applyStyles",enabled:!0,phase:"write",fn:Fb,effect:Vb,requires:["computeStyles"]},zb=[Mb,Bb,Pb,Rb],Ub=Nb({defaultModifiers:zb});function qb(t){return t==="x"?"y":"x"}function qs(t,e,n){return Uo(t,ta(e,n))}function Hb(t,e,n){var o=qs(t,e,n);return o>n?n:o}function jb(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,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=cu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=uo(e.placement),v=Pr(e.placement),_=!v,k=Yp(C),w=qb(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,x=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,M=k==="y"?ln:Hn,L=k==="y"?Dn:vo,P=k==="y"?"height":"width",j=b[k],V=j+y[M],q=j-y[L],F=m?-T[P]/2:0,Y=v===Ir?E[P]:T[P],ee=v===Ir?-T[P]:-E[P],we=e.elements.arrow,se=m&&we?Zp(we):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Xp(),z=ie[M],oe=ie[L],ye=qs(0,E[P],se[P]),Be=_?E[P]/2-F-ye-z-N.mainAxis:Y-ye-z-N.mainAxis,H=_?-E[P]/2+F+ye+oe+N.mainAxis:ee+ye+oe+N.mainAxis,le=e.elements.arrow&&Pa(e.elements.arrow),fe=le?k==="y"?le.clientTop||0:le.clientLeft||0:0,pe=(D=I==null?void 0:I[k])!=null?D:0,Ce=j+Be-pe-fe,We=j+H-pe,_e=qs(m?ta(V,Ce):V,j,m?Uo(q,We):q);b[k]=_e,A[k]=_e-j}if(l){var Pe,Ve=k==="x"?ln:Hn,De=k==="x"?Dn:vo,Ge=b[w],ht=w==="y"?"height":"width",vn=Ge+y[Ve],Ln=Ge-y[De],Re=[ln,Hn].indexOf(C)!==-1,gt=(Pe=I==null?void 0:I[w])!=null?Pe:0,ot=Re?vn:Ge-E[ht]-T[ht]-gt+N.altAxis,St=Re?Ge+E[ht]+T[ht]-gt-N.altAxis:Ln,nn=m&&Re?Hb(ot,Ge,St):qs(m?ot:vn,Ge,m?St:Ln);b[w]=nn,A[w]=nn-Ge}e.modifiersData[o]=A}}var Wb={name:"preventOverflow",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"]},Zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Hs(t){return t.replace(/left|right|bottom|top/g,function(e){return Zb[e]})}var Kb={start:"end",end:"start"};function Pd(t){return t.replace(/start|end/g,function(e){return Kb[e]})}function Gb(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?sb:c,d=Pr(o),f=d?l?$d:$d.filter(function(h){return Pr(h)===d}):Fa,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=cu(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[uo(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Yb(t){if(uo(t)===lu)return[];var e=Hs(t);return[Pd(t),e,Pd(e)]}function Jb(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=uo(y),v=C===y,_=c||(v||!h?[Hs(y)]:Yb(y)),k=[y].concat(_).reduce(function(se,ie){return se.concat(uo(ie)===lu?Gb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ie)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,x=k[0],N=0;N<k.length;N++){var I=k[N],A=uo(I),D=Pr(I)===Ir,M=[ln,Dn].indexOf(A)>=0,L=M?"width":"height",P=cu(e,{placement:I,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=M?D?vo:Hn:D?Dn:ln;w[L]>b[L]&&(j=Hs(j));var V=Hs(j),q=[];if(s&&q.push(P[A]<=0),l&&q.push(P[j]<=0,P[V]<=0),q.every(function(se){return se})){x=I,T=!1;break}E.set(I,q)}if(T)for(var F=h?3:1,Y=function(ie){var z=k.find(function(oe){var ye=E.get(oe);if(ye)return ye.slice(0,ie).every(function(Be){return Be})});if(z)return x=z,"break"},ee=F;ee>0;ee--){var we=Y(ee);if(we==="break")break}e.placement!==x&&(e.modifiersData[o]._skip=!0,e.placement=x,e.reset=!0)}}var Xb={name:"flip",enabled:!0,phase:"main",fn:Jb,requiresIfExists:["offset"],data:{_skip:!1}};function Qb(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),m=i.computed(()=>r.value||s.value),h=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),m.value&&i.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),k=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:k)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return i.onMounted(()=>{m.value&&(f.value=Ub(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[Wb,Xb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),i.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function e9(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,m=i.ref(!1),h=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!r.value&&a.value.focus()},v=(T=!0)=>{r.value||(m.value=!0,T&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:v,deactivate:_,handleFocusIn:T=>{T.target.closest("[data-tags]")&&T.target.nodeName!=="INPUT"||T.target.closest("[data-clear]")||v(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:T=>{h.value=!0,d.value&&(T.target.isEqualNode(f.value)||T.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&v(),setTimeout(()=>{h.value=!1},0)}}}function t9(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:m}=i.toRefs(t),h=i.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,k=n.selectPointer,w=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,T=n.wrapper,x=n.tags,N=n.isOpen,I=n.open,A=n.blur,D=n.fo,M=i.computed(()=>f.value||p.value||!1),L=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),P=()=>{o.value==="tags"&&!l.value&&M.value&&a.value&&!u.value&&_(D.value[D.value.map(q=>q[c.value]).indexOf(v.value)])};return{handleKeydown:q=>{e.emit("keydown",q,h);let F,Y;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(F=[...E.value.querySelectorAll("[data-tags] > *")].filter(ee=>ee!==x.value),Y=F.findIndex(ee=>ee===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let ee=g.value.filter(we=>!we.disabled&&we.remove!==!1);ee.length&&C(ee[ee.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(Y!==-1&&Y!==void 0){y([...g.value].filter((we,se)=>se!==Y)),Y===F.length-1&&(F.length-1?F[F.length-2].focus():a.value?x.value.querySelector("input").focus():T.value.focus());return}if(L.value.indexOf("enter")===-1&&M.value)return;P(),k();break;case" ":if(!M.value&&!a.value){q.preventDefault(),P(),k();return}if(!M.value)return!1;if(L.value.indexOf("space")===-1&&M.value)return;q.preventDefault(),P(),k();break;case"Tab":case";":case",":if(L.value.indexOf(q.key.toLowerCase())===-1||!M.value)return;P(),k(),q.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;N.value||I(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;N.value||I(),b();break;case"ArrowLeft":if(a.value&&x.value&&x.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),Y===-1?F[F.length-1].focus():Y>0&&F[Y-1].focus();break;case"ArrowRight":if(Y===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),F.length>Y+1?F[Y+1].focus():a.value?x.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:P}}function n9(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,m=n.resolving,h=n.fo,g=n.placement,y=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})),C=i.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:i.computed(()=>{const _=y.value;return{container:[_.container].concat(r.value?_.containerDisabled:[]).concat(C.value&&g.value==="top"?_.containerOpenTop:[]).concat(C.value&&g.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(r.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(g.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(g.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:k=>{let w=[_.groupLabel];return c(k)?w.push(u(k)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(k)&&p.value?w.push(d(k)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(k)&&w.push(_.groupLabelDisabled),p.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(k,w)=>{let b=[_.option];return c(k)?b.push(u(k)?_.optionSelectedPointed:_.optionPointed):u(k)?b.push(d(k)?_.optionSelectedDisabled:_.optionSelected):(d(k)||w&&d(w))&&b.push(_.optionDisabled),b},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function o9(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),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const v=C.offsetParent,_=v.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{v.scrollTop=_})}},h=()=>{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&&h()}),i.watch(l,()=>{r.value&&(a.value=o.value,h())},{flush:"post"}),i.watch(u,()=>{r.value&&h()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function r9(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,m=n.hasSelected,h=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),C=i.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=i.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),f.value)return A.push(f.value.group?"multiselect-group":"multiselect-option"),A.push(f.value.group?f.value.index:f.value[s.value]),A.join("-")}),_=i.computed(()=>o.value),k=i.computed(()=>l.value!=="single"),w=i.computed(()=>{let A="";return l.value==="single"&&m.value&&(A+=p.value[a.value]),l.value==="multiple"&&m.value&&(A+=h.value),l.value==="tags"&&m.value&&(A+=p.value.map(D=>D[a.value]).join(", ")),A}),b=i.computed(()=>{let A={...u.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${y.value} ${A["aria-labelledby"]}`:y.value,w.value&&A["aria-label"]&&(A["aria-label"]=`${w.value}, ${A["aria-label"]}`)),A}),E=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-option"),D.push(A[s.value]),D.join("-")},T=A=>{let D=[];return r&&r.value&&D.push(r.value),D.push("multiselect-group"),D.push(A.index),D.join("-")},x=A=>{let D=[];return D.push(A),D.join(" ")},N=A=>{let D=[];return D.push(A),D.join(" ")},I=A=>`${A} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);g.value=A?A.innerText:null}}),{arias:b,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:k,ariaActiveDescendant:v,ariaOptionId:E,ariaOptionLabel:x,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:I}}function i9(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 s9(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 a9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var so={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 a9(t,e,[s9,i9,jC,ZC,Qb,WC,HC,e9,YC,o9,JC,t9,n9,r9])},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 l9=["id","dir"],c9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],u9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],d9=["onKeyup","aria-label"],f9=["onClick"],p9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],m9=["innerHTML"],h9=["id"],g9=["id"],v9=["id","aria-label","aria-selected"],y9=["data-pointed","onMouseenter","onMousedown"],_9=["innerHTML"],C9=["aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],w9=["innerHTML"],E9=["innerHTML"],S9=["value"],x9=["name","value"],T9=["name","value"],A9=["id"];function N9(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,u9)):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,f9)):i.createCommentVNode("v-if",!0)],42,d9))])),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,p9)):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,m9)]):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,c9),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,_9)])],42,y9)),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,b9))),128))],10,C9)],10,v9))),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,k9))),128))],10,g9),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,w9)]):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,E9)]):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,h9)],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,S9)):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,x9)):(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,T9))),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,A9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,l9)}so.render=N9;so.__file="src/Multiselect.vue";const At=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&&qC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(so),{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 Fd;function $n(){const t=D9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function D9(){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=Fd.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Fd.lastIndex}return o.push(n.substring(s)),o}}});async function jn(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 M9={class:"ao-tasks"},$9={class:"ao-tasks__list"},B9=["id","value","readonly","onChange"],O9={class:"ao-tasks__list-footer"},L9=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}=$n(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{jn(p,m)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,m={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",m)},l=(p,m)=>{const g=p.target.value;r("update",{id:m,name:g})},c=(p,m)=>{o.isEditable&&r("update",{id:p,isDone:m})},u=p=>{r("delete",{id:p})},d=(p,m)=>{r("update",{id:m,assigneeId:p[0]??null})},f=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(i.openBlock(),i.createElementBlock("div",M9,[i.createElementVNode("ul",$9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,h=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,h))??!1?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:h.id,value:h.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:C=>l(C,h.id),onKeyup:i.withKeys(f,["enter"])},null,42,B9),m[0]||(m[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(At,{key:1,value:(y=h.assignee)!=null&&y.id?[h.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:C=>d(C,h.id)},{tag:i.withCtx(({option:C,handleTagRemove:v})=>[i.createVNode(Jn,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:_=>v(C,_)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(h.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",O9,[t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const I9={class:"ao-files__placeholder"},P9={key:0,class:"ao-files__list"},F9=["onClick"],V9={class:"ao-file__title"},R9={class:"ao-file__actions"},z9={key:0},U9={class:"ao-files__input"},q9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},H9={class:"ao-button__label"},j9={class:"ao-files__dropzone"},W9={class:"ao-files__dropzone-label"},Z9=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(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,g=Array.from(h.files??[]);g.length&&n("add",g),h.value=""}function u(m){m.preventDefault()}i.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),i.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(r.value=!0)}function f(){r.value=!1}i.watch(r,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{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(m.$slots,"default",{},()=>[i.createElementVNode("span",I9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",P9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,(y,C)=>(i.openBlock(),i.createElementBlock("li",{key:y.id,class:"ao-file"},[i.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[i.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",V9,i.toDisplayString(y.name),1)],8,F9),i.createElementVNode("div",R9,[i.createVNode(he,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:i.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:i.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):i.createCommentVNode("",!0)])]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",z9,[i.createElementVNode("label",U9,[i.createElementVNode("div",q9,[i.createVNode(ke,{name:"Add",size:"sm"}),i.createElementVNode("span",H9,i.toDisplayString(m.$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",j9,[i.createElementVNode("span",W9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ne={};const K9="Á",G9="á",Y9="Ă",J9="ă",X9="∾",Q9="∿",e4="∾̳",t4="Â",n4="â",o4="´",r4="А",i4="а",s4="Æ",a4="æ",l4="⁡",c4="𝔄",u4="𝔞",d4="À",f4="à",p4="ℵ",m4="ℵ",h4="Α",g4="α",v4="Ā",y4="ā",_4="⨿",C4="&",b4="&",k4="⩕",w4="⩓",E4="∧",S4="⩜",x4="⩘",T4="⩚",A4="∠",N4="⦤",D4="∠",M4="⦨",$4="⦩",B4="⦪",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="Ã",m8="ã",h8="Ä",g8="ä",v8="∳",y8="⨑",_8="≌",C8="϶",b8="‵",k8="∽",w8="⋍",E8="∖",S8="⫧",x8="⊽",T8="⌅",A8="⌆",N8="⌅",D8="⎵",M8="⎶",$8="≌",B8="Б",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="◂",mk="▸",hk="␣",gk="▒",vk="░",yk="▓",_k="█",Ck="=⃥",bk="≡⃥",kk="⫭",wk="⌐",Ek="𝔹",Sk="𝕓",xk="⊥",Tk="⊥",Ak="⋈",Nk="⧉",Dk="┐",Mk="╕",$k="╖",Bk="╗",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="╢",m6="╣",h6="├",g6="╞",v6="╟",y6="╠",_6="‵",C6="˘",b6="˘",k6="¦",w6="𝒷",E6="ℬ",S6="⁏",x6="∽",T6="⋍",A6="⧅",N6="\\",D6="⟈",M6="•",$6="•",B6="≎",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="¢",mw="·",hw="·",gw="𝔠",vw="ℭ",yw="Ч",_w="ч",Cw="✓",bw="✓",kw="Χ",ww="χ",Ew="ˆ",Sw="≗",xw="↺",Tw="↻",Aw="⊛",Nw="⊚",Dw="⊝",Mw="⊙",$w="®",Bw="Ⓢ",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="∐",mE="∐",hE="©",gE="©",vE="℗",yE="∳",_E="↵",CE="✗",bE="⨯",kE="𝒞",wE="𝒸",EE="⫏",SE="⫑",xE="⫐",TE="⫒",AE="⋯",NE="⤸",DE="⤵",ME="⋞",$E="⋟",BE="↶",OE="⤽",LE="⩈",IE="⩆",PE="≍",FE="∪",VE="⋓",RE="⩊",zE="⊍",UE="⩅",qE="∪︀",HE="↷",jE="⤼",WE="⋞",ZE="⋟",KE="⋎",GE="⋏",YE="¤",JE="↶",XE="↷",QE="⋎",eS="⋏",tS="∲",nS="∱",oS="⌭",rS="†",iS="‡",sS="ℸ",aS="↓",lS="↡",cS="⇓",uS="‐",dS="⫤",fS="⊣",pS="⤏",mS="˝",hS="Ď",gS="ď",vS="Д",yS="д",_S="‡",CS="⇊",bS="ⅅ",kS="ⅆ",wS="⤑",ES="⩷",SS="°",xS="∇",TS="Δ",AS="δ",NS="⦱",DS="⥿",MS="𝔇",$S="𝔡",BS="⥥",OS="⇃",LS="⇂",IS="´",PS="˙",FS="˝",VS="`",RS="˜",zS="⋄",US="⋄",qS="⋄",HS="♦",jS="♦",WS="¨",ZS="ⅆ",KS="ϝ",GS="⋲",YS="÷",JS="÷",XS="⋇",QS="⋇",ex="Ђ",tx="ђ",nx="⌞",ox="⌍",rx="$",ix="𝔻",sx="𝕕",ax="¨",lx="˙",cx="⃜",ux="≐",dx="≑",fx="≐",px="∸",mx="∔",hx="⊡",gx="⌆",vx="∯",yx="¨",_x="⇓",Cx="⇐",bx="⇔",kx="⫤",wx="⟸",Ex="⟺",Sx="⟹",xx="⇒",Tx="⊨",Ax="⇑",Nx="⇕",Dx="∥",Mx="⤓",$x="↓",Bx="↓",Ox="⇓",Lx="⇵",Ix="̑",Px="⇊",Fx="⇃",Vx="⇂",Rx="⥐",zx="⥞",Ux="⥖",qx="↽",Hx="⥟",jx="⥗",Wx="⇁",Zx="↧",Kx="⊤",Gx="⤐",Yx="⌟",Jx="⌌",Xx="𝒟",Qx="𝒹",eT="Ѕ",tT="ѕ",nT="⧶",oT="Đ",rT="đ",iT="⋱",sT="▿",aT="▾",lT="⇵",cT="⥯",uT="⦦",dT="Џ",fT="џ",pT="⟿",mT="É",hT="é",gT="⩮",vT="Ě",yT="ě",_T="Ê",CT="ê",bT="≖",kT="≕",wT="Э",ET="э",ST="⩷",xT="Ė",TT="ė",AT="≑",NT="ⅇ",DT="≒",MT="𝔈",$T="𝔢",BT="⪚",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="ϵ",mA="≖",hA="≕",gA="≂",vA="⪖",yA="⪕",_A="⩵",CA="=",bA="≂",kA="≟",wA="⇌",EA="≡",SA="⩸",xA="⧥",TA="⥱",AA="≓",NA="ℯ",DA="ℰ",MA="≐",$A="⩳",BA="≂",OA="Η",LA="η",IA="Ð",PA="ð",FA="Ë",VA="ë",RA="€",zA="!",UA="∃",qA="∃",HA="ℰ",jA="ⅇ",WA="ⅇ",ZA="≒",KA="Ф",GA="ф",YA="♀",JA="ffi",XA="ff",QA="ffl",eN="𝔉",tN="𝔣",nN="fi",oN="◼",rN="▪",iN="fj",sN="♭",aN="fl",lN="▱",cN="ƒ",uN="𝔽",dN="𝕗",fN="∀",pN="∀",mN="⋔",hN="⫙",gN="ℱ",vN="⨍",yN="½",_N="⅓",CN="¼",bN="⅕",kN="⅙",wN="⅛",EN="⅔",SN="⅖",xN="¾",TN="⅗",AN="⅜",NN="⅘",DN="⅚",MN="⅝",$N="⅞",BN="⁄",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="𝔤",mD="≫",hD="⋙",gD="⋙",vD="ℷ",yD="Ѓ",_D="ѓ",CD="⪥",bD="≷",kD="⪒",wD="⪤",ED="⪊",SD="⪊",xD="⪈",TD="≩",AD="⪈",ND="≩",DD="⋧",MD="𝔾",$D="𝕘",BD="`",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="Ъ",mM="ъ",hM="⥈",gM="↔",vM="⇔",yM="↭",_M="^",CM="ℏ",bM="Ĥ",kM="ĥ",wM="♥",EM="♥",SM="…",xM="⊹",TM="𝔥",AM="ℌ",NM="ℋ",DM="⤥",MM="⤦",$M="⇿",BM="∻",OM="↩",LM="↪",IM="𝕙",PM="ℍ",FM="―",VM="─",RM="𝒽",zM="ℋ",UM="ℏ",qM="Ħ",HM="ħ",jM="≎",WM="≏",ZM="⁃",KM="‐",GM="Í",YM="í",JM="⁣",XM="Î",QM="î",e$="И",t$="и",n$="İ",o$="Е",r$="е",i$="¡",s$="⇔",a$="𝔦",l$="ℑ",c$="Ì",u$="ì",d$="ⅈ",f$="⨌",p$="∭",m$="⧜",h$="℩",g$="IJ",v$="ij",y$="Ī",_$="ī",C$="ℑ",b$="ⅈ",k$="ℐ",w$="ℑ",E$="ı",S$="ℑ",x$="⊷",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$="¿",eB="𝒾",tB="ℐ",nB="∈",oB="⋵",rB="⋹",iB="⋴",sB="⋳",aB="∈",lB="⁢",cB="Ĩ",uB="ĩ",dB="І",fB="і",pB="Ï",mB="ï",hB="Ĵ",gB="ĵ",vB="Й",yB="й",_B="𝔍",CB="𝔧",bB="ȷ",kB="𝕁",wB="𝕛",EB="𝒥",SB="𝒿",xB="Ј",TB="ј",AB="Є",NB="є",DB="Κ",MB="κ",$B="ϰ",BB="Ķ",OB="ķ",LB="К",IB="к",PB="𝔎",FB="𝔨",VB="ĸ",RB="Х",zB="х",UB="Ќ",qB="ќ",HB="𝕂",jB="𝕜",WB="𝒦",ZB="𝓀",KB="⇚",GB="Ĺ",YB="ĺ",JB="⦴",XB="ℒ",QB="Λ",eO="λ",tO="⟨",nO="⟪",oO="⦑",rO="⟨",iO="⪅",sO="ℒ",aO="«",lO="⇤",cO="⤟",uO="←",dO="↞",fO="⇐",pO="⤝",mO="↩",hO="↫",gO="⤹",vO="⥳",yO="↢",_O="⤙",CO="⤛",bO="⪫",kO="⪭",wO="⪭︀",EO="⤌",SO="⤎",xO="❲",TO="{",AO="[",NO="⦋",DO="⦏",MO="⦍",$O="Ľ",BO="ľ",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="⇆",mL="⇋",hL="↭",gL="⥎",vL="↤",yL="⊣",_L="⥚",CL="⋋",bL="⧏",kL="⊲",wL="⊴",EL="⥑",SL="⥠",xL="⥘",TL="↿",AL="⥒",NL="↼",DL="⪋",ML="⋚",$L="≤",BL="≦",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="⇇",mI="≪",hI="⋘",gI="⌞",vI="⇚",yI="⥫",_I="◺",CI="Ŀ",bI="ŀ",kI="⎰",wI="⎰",EI="⪉",SI="⪉",xI="⪇",TI="≨",AI="⪇",NI="≨",DI="⋦",MI="⟬",$I="⇽",BI="⟦",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="𝓁",mP="ℒ",hP="↰",gP="↰",vP="≲",yP="⪍",_P="⪏",CP="[",bP="‘",kP="‚",wP="Ł",EP="ł",SP="⪦",xP="⩹",TP="<",AP="<",NP="≪",DP="⋖",MP="⋋",$P="⋉",BP="⥶",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="∣",mF="·",hF="⊟",gF="−",vF="∸",yF="⨪",_F="∓",CF="⫛",bF="…",kF="∓",wF="⊧",EF="𝕄",SF="𝕞",xF="∓",TF="𝓂",AF="ℳ",NF="∾",DF="Μ",MF="μ",$F="⊸",BF="⊸",OF="∇",LF="Ń",IF="ń",PF="∠⃒",FF="≉",VF="⩰̸",RF="≋̸",zF="ʼn",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="​",mV="​",hV="​",gV="≢",vV="⤨",yV="≂̸",_V="≫",CV="≪",bV=`
2
+ `,kV="∄",wV="∄",EV="𝔑",SV="𝔫",xV="≧̸",TV="≱",AV="≱",NV="≧̸",DV="⩾̸",MV="⩾̸",$V="⋙̸",BV="≵",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="≪̸",mR="∤",hR="⁠",gR=" ",vR="𝕟",yR="ℕ",_R="⫬",CR="¬",bR="≢",kR="≭",wR="∦",ER="∉",SR="≠",xR="≂̸",TR="∄",AR="≯",NR="≱",DR="≧̸",MR="≫̸",$R="≹",BR="⩾̸",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="⊐̸",mz="⋣",hz="⊂⃒",gz="⊈",vz="⊁",yz="⪰̸",_z="⋡",Cz="≿̸",bz="⊃⃒",kz="⊉",wz="≁",Ez="≄",Sz="≇",xz="≉",Tz="∤",Az="∦",Nz="∦",Dz="⫽⃥",Mz="∂̸",$z="⨔",Bz="⊀",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="⪰̸",mU="⊅",hU="⫆̸",gU="⊉",vU="⊃⃒",yU="⊉",_U="⫆̸",CU="≹",bU="Ñ",kU="ñ",wU="≸",EU="⋪",SU="⋬",xU="⋫",TU="⋭",AU="Ν",NU="ν",DU="#",MU="№",$U=" ",BU="≍⃒",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="⦼",mq="Œ",hq="œ",gq="⦿",vq="𝔒",yq="𝔬",_q="˛",Cq="Ò",bq="ò",kq="⧁",wq="⦵",Eq="Ω",Sq="∮",xq="↺",Tq="⦾",Aq="⦻",Nq="‾",Dq="⧀",Mq="Ō",$q="ō",Bq="Ω",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="⨷",mH="⊗",hH="Ö",gH="ö",vH="⌽",yH="‾",_H="⏞",CH="⎴",bH="⏜",kH="¶",wH="∥",EH="∥",SH="⫳",xH="⫽",TH="∂",AH="∂",NH="П",DH="п",MH="%",$H=".",BH="‰",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="⪷",mj="⪻",hj="≺",gj="≼",vj="⪷",yj="≺",_j="≼",Cj="≺",bj="⪯",kj="≼",wj="≾",Ej="⪯",Sj="⪹",xj="⪵",Tj="⋨",Aj="⪯",Nj="⪳",Dj="≾",Mj="′",$j="″",Bj="ℙ",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="⇛",mW="∽̱",hW="Ŕ",gW="ŕ",vW="√",yW="⦳",_W="⟩",CW="⟫",bW="⦒",kW="⦥",wW="⟩",EW="»",SW="⥵",xW="⇥",TW="⤠",AW="⤳",NW="→",DW="↠",MW="⇒",$W="⤞",BW="↪",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="ℛ",mZ="ℜ",hZ="ℝ",gZ="ℜ",vZ="▭",yZ="®",_Z="®",CZ="∋",bZ="⇋",kZ="⥯",wZ="⥽",EZ="⌋",SZ="𝔯",xZ="ℜ",TZ="⥤",AZ="⇁",NZ="⇀",DZ="⥬",MZ="Ρ",$Z="ρ",BZ="ϱ",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="≓",mK="⇄",hK="⇌",gK="‏",vK="⎱",yK="⎱",_K="⫮",CK="⟭",bK="⇾",kK="⟧",wK="⦆",EK="𝕣",SK="ℝ",xK="⨮",TK="⨵",AK="⥰",NK=")",DK="⦔",MK="⨒",$K="⇉",BK="⇛",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="⪶",mG="⋩",hG="⨓",gG="≿",vG="С",yG="с",_G="⊡",CG="⋅",bG="⩦",kG="⤥",wG="↘",EG="⇘",SG="↘",xG="§",TG=";",AG="⤩",NG="∖",DG="∖",MG="✶",$G="𝔖",BG="𝔰",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="∣",mY="⌣",hY="⪪",gY="⪬",vY="⪬︀",yY="Ь",_Y="ь",CY="⌿",bY="⧄",kY="/",wY="𝕊",EY="𝕤",SY="♠",xY="♠",TY="∥",AY="⊓",NY="⊓︀",DY="⊔",MY="⊔︀",$Y="√",BY="⊏",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="⫅",mJ="⊆",hJ="⫃",gJ="⫁",vJ="⫋",yJ="⊊",_J="⪿",CJ="⥹",bJ="⊂",kJ="⋐",wJ="⊆",EJ="⫅",SJ="⊆",xJ="⊊",TJ="⫋",AJ="⫇",NJ="⫕",DJ="⫓",MJ="⪸",$J="≻",BJ="≽",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="⋑",mX="⊇",hX="⫆",gX="⊋",vX="⫌",yX="⫈",_X="⫔",CX="⫖",bX="⤦",kX="↙",wX="⇙",EX="↙",SX="⤪",xX="ß",TX=" ",AX="⌖",NX="Τ",DX="τ",MX="⎴",$X="Ť",BX="ť",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="∭",mQ="⤨",hQ="⌶",gQ="⫱",vQ="⊤",yQ="𝕋",_Q="𝕥",CQ="⫚",bQ="⤩",kQ="‴",wQ="™",EQ="™",SQ="▵",xQ="▿",TQ="◃",AQ="⊴",NQ="≜",DQ="▹",MQ="⊵",$Q="◬",BQ="≜",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="ű",mee="⥮",hee="⥾",gee="𝔘",vee="𝔲",yee="Ù",_ee="ù",Cee="⥣",bee="↿",kee="↾",wee="▀",Eee="⌜",See="⌜",xee="⌏",Tee="◸",Aee="Ū",Nee="ū",Dee="¨",Mee="_",$ee="⏟",Bee="⎵",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="ů",mte="◹",hte="𝒰",gte="𝓊",vte="⋰",yte="Ũ",_te="ũ",Cte="▵",bte="▴",kte="⇈",wte="Ü",Ete="ü",Ste="⦧",xte="⦜",Tte="ϵ",Ate="ϰ",Nte="∅",Dte="ϕ",Mte="ϖ",$te="∝",Bte="↕",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=" ",mne="𝔙",hne="𝔳",gne="⊲",vne="⊂⃒",yne="⊃⃒",_ne="𝕍",Cne="𝕧",bne="∝",kne="⊳",wne="𝒱",Ene="𝓋",Sne="⫋︀",xne="⊊︀",Tne="⫌︀",Ane="⊋︀",Nne="⊪",Dne="⦚",Mne="Ŵ",$ne="ŵ",Bne="⩟",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="⟹",moe="𝒳",hoe="𝓍",goe="⨆",voe="⨄",yoe="△",_oe="⋁",Coe="⋀",boe="Ý",koe="ý",woe="Я",Eoe="я",Soe="Ŷ",xoe="ŷ",Toe="Ы",Aoe="ы",Noe="¥",Doe="𝔜",Moe="𝔶",$oe="Ї",Boe="ї",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="‍",ure="‌",dre={Aacute:K9,aacute:G9,Abreve:Y9,abreve:J9,ac:X9,acd:Q9,acE:e4,Acirc:t4,acirc:n4,acute:o4,Acy:r4,acy:i4,AElig:s4,aelig:a4,af:l4,Afr:c4,afr:u4,Agrave:d4,agrave:f4,alefsym:p4,aleph:m4,Alpha:h4,alpha:g4,Amacr:v4,amacr:y4,amalg:_4,amp:C4,AMP:b4,andand:k4,And:w4,and:E4,andd:S4,andslope:x4,andv:T4,ang:A4,ange:N4,angle:D4,angmsdaa:M4,angmsdab:$4,angmsdac:B4,angmsdad:O4,angmsdae:L4,angmsdaf:I4,angmsdag:P4,angmsdah:F4,angmsd:V4,angrt:R4,angrtvb:z4,angrtvbd:U4,angsph:q4,angst:H4,angzarr:j4,Aogon:W4,aogon:Z4,Aopf:K4,aopf:G4,apacir:Y4,ap:J4,apE:X4,ape:Q4,apid:e8,apos:t8,ApplyFunction:n8,approx:o8,approxeq:r8,Aring:i8,aring:s8,Ascr:a8,ascr:l8,Assign:c8,ast:u8,asymp:d8,asympeq:f8,Atilde:p8,atilde:m8,Auml:h8,auml:g8,awconint:v8,awint:y8,backcong:_8,backepsilon:C8,backprime:b8,backsim:k8,backsimeq:w8,Backslash:E8,Barv:S8,barvee:x8,barwed:T8,Barwed:A8,barwedge:N8,bbrk:D8,bbrktbrk:M8,bcong:$8,Bcy:B8,bcy:O8,bdquo:L8,becaus:I8,because:P8,Because:F8,bemptyv:V8,bepsi:R8,bernou:z8,Bernoullis:U8,Beta:q8,beta:H8,beth:j8,between:W8,Bfr:Z8,bfr:K8,bigcap:G8,bigcirc:Y8,bigcup:J8,bigodot:X8,bigoplus:Q8,bigotimes:ek,bigsqcup:tk,bigstar:nk,bigtriangledown:ok,bigtriangleup:rk,biguplus:ik,bigvee:sk,bigwedge:ak,bkarow:lk,blacklozenge:ck,blacksquare:uk,blacktriangle:dk,blacktriangledown:fk,blacktriangleleft:pk,blacktriangleright:mk,blank:hk,blk12:gk,blk14:vk,blk34:yk,block:_k,bne:Ck,bnequiv:bk,bNot:kk,bnot:wk,Bopf:Ek,bopf:Sk,bot:xk,bottom:Tk,bowtie:Ak,boxbox:Nk,boxdl:Dk,boxdL:Mk,boxDl:$k,boxDL:Bk,boxdr:Ok,boxdR:Lk,boxDr:Ik,boxDR:Pk,boxh:Fk,boxH:Vk,boxhd:Rk,boxHd:zk,boxhD:Uk,boxHD:qk,boxhu:Hk,boxHu:jk,boxhU:Wk,boxHU:Zk,boxminus:Kk,boxplus:Gk,boxtimes:Yk,boxul:Jk,boxuL:Xk,boxUl:Qk,boxUL:e6,boxur:t6,boxuR:n6,boxUr:o6,boxUR:r6,boxv:i6,boxV:s6,boxvh:a6,boxvH:l6,boxVh:c6,boxVH:u6,boxvl:d6,boxvL:f6,boxVl:p6,boxVL:m6,boxvr:h6,boxvR:g6,boxVr:v6,boxVR:y6,bprime:_6,breve:C6,Breve:b6,brvbar:k6,bscr:w6,Bscr:E6,bsemi:S6,bsim:x6,bsime:T6,bsolb:A6,bsol:N6,bsolhsub:D6,bull:M6,bullet:$6,bump:B6,bumpE:O6,bumpe:L6,Bumpeq:I6,bumpeq:P6,Cacute:F6,cacute:V6,capand:R6,capbrcup:z6,capcap:U6,cap:q6,Cap:H6,capcup:j6,capdot:W6,CapitalDifferentialD:Z6,caps:K6,caret:G6,caron:Y6,Cayleys:J6,ccaps:X6,Ccaron:Q6,ccaron:ew,Ccedil:tw,ccedil:nw,Ccirc:ow,ccirc:rw,Cconint:iw,ccups:sw,ccupssm:aw,Cdot:lw,cdot:cw,cedil:uw,Cedilla:dw,cemptyv:fw,cent:pw,centerdot:mw,CenterDot:hw,cfr:gw,Cfr:vw,CHcy:yw,chcy:_w,check:Cw,checkmark:bw,Chi:kw,chi:ww,circ:Ew,circeq:Sw,circlearrowleft:xw,circlearrowright:Tw,circledast:Aw,circledcirc:Nw,circleddash:Dw,CircleDot:Mw,circledR:$w,circledS:Bw,CircleMinus:Ow,CirclePlus:Lw,CircleTimes:Iw,cir:Pw,cirE:Fw,cire:Vw,cirfnint:Rw,cirmid:zw,cirscir:Uw,ClockwiseContourIntegral:qw,CloseCurlyDoubleQuote:Hw,CloseCurlyQuote:jw,clubs:Ww,clubsuit:Zw,colon:Kw,Colon:Gw,Colone:Yw,colone:Jw,coloneq:Xw,comma:Qw,commat:eE,comp:tE,compfn:nE,complement:oE,complexes:rE,cong:iE,congdot:sE,Congruent:aE,conint:lE,Conint:cE,ContourIntegral:uE,copf:dE,Copf:fE,coprod:pE,Coproduct:mE,copy:hE,COPY:gE,copysr:vE,CounterClockwiseContourIntegral:yE,crarr:_E,cross:CE,Cross:bE,Cscr:kE,cscr:wE,csub:EE,csube:SE,csup:xE,csupe:TE,ctdot:AE,cudarrl:NE,cudarrr:DE,cuepr:ME,cuesc:$E,cularr:BE,cularrp:OE,cupbrcap:LE,cupcap:IE,CupCap:PE,cup:FE,Cup:VE,cupcup:RE,cupdot:zE,cupor:UE,cups:qE,curarr:HE,curarrm:jE,curlyeqprec:WE,curlyeqsucc:ZE,curlyvee:KE,curlywedge:GE,curren:YE,curvearrowleft:JE,curvearrowright:XE,cuvee:QE,cuwed:eS,cwconint:tS,cwint:nS,cylcty:oS,dagger:rS,Dagger:iS,daleth:sS,darr:aS,Darr:lS,dArr:cS,dash:uS,Dashv:dS,dashv:fS,dbkarow:pS,dblac:mS,Dcaron:hS,dcaron:gS,Dcy:vS,dcy:yS,ddagger:_S,ddarr:CS,DD:bS,dd:kS,DDotrahd:wS,ddotseq:ES,deg:SS,Del:xS,Delta:TS,delta:AS,demptyv:NS,dfisht:DS,Dfr:MS,dfr:$S,dHar:BS,dharl:OS,dharr:LS,DiacriticalAcute:IS,DiacriticalDot:PS,DiacriticalDoubleAcute:FS,DiacriticalGrave:VS,DiacriticalTilde:RS,diam:zS,diamond:US,Diamond:qS,diamondsuit:HS,diams:jS,die:WS,DifferentialD:ZS,digamma:KS,disin:GS,div:YS,divide:JS,divideontimes:XS,divonx:QS,DJcy:ex,djcy:tx,dlcorn:nx,dlcrop:ox,dollar:rx,Dopf:ix,dopf:sx,Dot:ax,dot:lx,DotDot:cx,doteq:ux,doteqdot:dx,DotEqual:fx,dotminus:px,dotplus:mx,dotsquare:hx,doublebarwedge:gx,DoubleContourIntegral:vx,DoubleDot:yx,DoubleDownArrow:_x,DoubleLeftArrow:Cx,DoubleLeftRightArrow:bx,DoubleLeftTee:kx,DoubleLongLeftArrow:wx,DoubleLongLeftRightArrow:Ex,DoubleLongRightArrow:Sx,DoubleRightArrow:xx,DoubleRightTee:Tx,DoubleUpArrow:Ax,DoubleUpDownArrow:Nx,DoubleVerticalBar:Dx,DownArrowBar:Mx,downarrow:$x,DownArrow:Bx,Downarrow:Ox,DownArrowUpArrow:Lx,DownBreve:Ix,downdownarrows:Px,downharpoonleft:Fx,downharpoonright:Vx,DownLeftRightVector:Rx,DownLeftTeeVector:zx,DownLeftVectorBar:Ux,DownLeftVector:qx,DownRightTeeVector:Hx,DownRightVectorBar:jx,DownRightVector:Wx,DownTeeArrow:Zx,DownTee:Kx,drbkarow:Gx,drcorn:Yx,drcrop:Jx,Dscr:Xx,dscr:Qx,DScy:eT,dscy:tT,dsol:nT,Dstrok:oT,dstrok:rT,dtdot:iT,dtri:sT,dtrif:aT,duarr:lT,duhar:cT,dwangle:uT,DZcy:dT,dzcy:fT,dzigrarr:pT,Eacute:mT,eacute:hT,easter:gT,Ecaron:vT,ecaron:yT,Ecirc:_T,ecirc:CT,ecir:bT,ecolon:kT,Ecy:wT,ecy:ET,eDDot:ST,Edot:xT,edot:TT,eDot:AT,ee:NT,efDot:DT,Efr:MT,efr:$T,eg:BT,Egrave:OT,egrave:LT,egs:IT,egsdot:PT,el:FT,Element:VT,elinters:RT,ell:zT,els:UT,elsdot:qT,Emacr:HT,emacr:jT,empty:WT,emptyset:ZT,EmptySmallSquare:KT,emptyv:GT,EmptyVerySmallSquare:YT,emsp13:JT,emsp14:XT,emsp:QT,ENG:eA,eng:tA,ensp:nA,Eogon:oA,eogon:rA,Eopf:iA,eopf:sA,epar:aA,eparsl:lA,eplus:cA,epsi:uA,Epsilon:dA,epsilon:fA,epsiv:pA,eqcirc:mA,eqcolon:hA,eqsim:gA,eqslantgtr:vA,eqslantless:yA,Equal:_A,equals:CA,EqualTilde:bA,equest:kA,Equilibrium:wA,equiv:EA,equivDD:SA,eqvparsl:xA,erarr:TA,erDot:AA,escr:NA,Escr:DA,esdot:MA,Esim:$A,esim:BA,Eta:OA,eta:LA,ETH:IA,eth:PA,Euml:FA,euml:VA,euro:RA,excl:zA,exist:UA,Exists:qA,expectation:HA,exponentiale:jA,ExponentialE:WA,fallingdotseq:ZA,Fcy:KA,fcy:GA,female:YA,ffilig:JA,fflig:XA,ffllig:QA,Ffr:eN,ffr:tN,filig:nN,FilledSmallSquare:oN,FilledVerySmallSquare:rN,fjlig:iN,flat:sN,fllig:aN,fltns:lN,fnof:cN,Fopf:uN,fopf:dN,forall:fN,ForAll:pN,fork:mN,forkv:hN,Fouriertrf:gN,fpartint:vN,frac12:yN,frac13:_N,frac14:CN,frac15:bN,frac16:kN,frac18:wN,frac23:EN,frac25:SN,frac34:xN,frac35:TN,frac38:AN,frac45:NN,frac56:DN,frac58:MN,frac78:$N,frasl:BN,frown:ON,fscr:LN,Fscr:IN,gacute:PN,Gamma:FN,gamma:VN,Gammad:RN,gammad:zN,gap:UN,Gbreve:qN,gbreve:HN,Gcedil:jN,Gcirc:WN,gcirc:ZN,Gcy:KN,gcy:GN,Gdot:YN,gdot:JN,ge:XN,gE:QN,gEl:eD,gel:tD,geq:nD,geqq:oD,geqslant:rD,gescc:iD,ges:sD,gesdot:aD,gesdoto:lD,gesdotol:cD,gesl:uD,gesles:dD,Gfr:fD,gfr:pD,gg:mD,Gg:hD,ggg:gD,gimel:vD,GJcy:yD,gjcy:_D,gla:CD,gl:bD,glE:kD,glj:wD,gnap:ED,gnapprox:SD,gne:xD,gnE:TD,gneq:AD,gneqq:ND,gnsim:DD,Gopf:MD,gopf:$D,grave:BD,GreaterEqual:OD,GreaterEqualLess:LD,GreaterFullEqual:ID,GreaterGreater:PD,GreaterLess:FD,GreaterSlantEqual:VD,GreaterTilde:RD,Gscr:zD,gscr:UD,gsim:qD,gsime:HD,gsiml:jD,gtcc:WD,gtcir:ZD,gt:KD,GT:GD,Gt:YD,gtdot:JD,gtlPar:XD,gtquest:QD,gtrapprox:eM,gtrarr:tM,gtrdot:nM,gtreqless:oM,gtreqqless:rM,gtrless:iM,gtrsim:sM,gvertneqq:aM,gvnE:lM,Hacek:cM,hairsp:uM,half:dM,hamilt:fM,HARDcy:pM,hardcy:mM,harrcir:hM,harr:gM,hArr:vM,harrw:yM,Hat:_M,hbar:CM,Hcirc:bM,hcirc:kM,hearts:wM,heartsuit:EM,hellip:SM,hercon:xM,hfr:TM,Hfr:AM,HilbertSpace:NM,hksearow:DM,hkswarow:MM,hoarr:$M,homtht:BM,hookleftarrow:OM,hookrightarrow:LM,hopf:IM,Hopf:PM,horbar:FM,HorizontalLine:VM,hscr:RM,Hscr:zM,hslash:UM,Hstrok:qM,hstrok:HM,HumpDownHump:jM,HumpEqual:WM,hybull:ZM,hyphen:KM,Iacute:GM,iacute:YM,ic:JM,Icirc:XM,icirc:QM,Icy:e$,icy:t$,Idot:n$,IEcy:o$,iecy:r$,iexcl:i$,iff:s$,ifr:a$,Ifr:l$,Igrave:c$,igrave:u$,ii:d$,iiiint:f$,iiint:p$,iinfin:m$,iiota:h$,IJlig:g$,ijlig:v$,Imacr:y$,imacr:_$,image:C$,ImaginaryI:b$,imagline:k$,imagpart:w$,imath:E$,Im:S$,imof:x$,imped:T$,Implies:A$,incare:N$,in:"∈",infin:D$,infintie:M$,inodot:$$,intcal:B$,int:O$,Int:L$,integers:I$,Integral:P$,intercal:F$,Intersection:V$,intlarhk:R$,intprod:z$,InvisibleComma:U$,InvisibleTimes:q$,IOcy:H$,iocy:j$,Iogon:W$,iogon:Z$,Iopf:K$,iopf:G$,Iota:Y$,iota:J$,iprod:X$,iquest:Q$,iscr:eB,Iscr:tB,isin:nB,isindot:oB,isinE:rB,isins:iB,isinsv:sB,isinv:aB,it:lB,Itilde:cB,itilde:uB,Iukcy:dB,iukcy:fB,Iuml:pB,iuml:mB,Jcirc:hB,jcirc:gB,Jcy:vB,jcy:yB,Jfr:_B,jfr:CB,jmath:bB,Jopf:kB,jopf:wB,Jscr:EB,jscr:SB,Jsercy:xB,jsercy:TB,Jukcy:AB,jukcy:NB,Kappa:DB,kappa:MB,kappav:$B,Kcedil:BB,kcedil:OB,Kcy:LB,kcy:IB,Kfr:PB,kfr:FB,kgreen:VB,KHcy:RB,khcy:zB,KJcy:UB,kjcy:qB,Kopf:HB,kopf:jB,Kscr:WB,kscr:ZB,lAarr:KB,Lacute:GB,lacute:YB,laemptyv:JB,lagran:XB,Lambda:QB,lambda:eO,lang:tO,Lang:nO,langd:oO,langle:rO,lap:iO,Laplacetrf:sO,laquo:aO,larrb:lO,larrbfs:cO,larr:uO,Larr:dO,lArr:fO,larrfs:pO,larrhk:mO,larrlp:hO,larrpl:gO,larrsim:vO,larrtl:yO,latail:_O,lAtail:CO,lat:bO,late:kO,lates:wO,lbarr:EO,lBarr:SO,lbbrk:xO,lbrace:TO,lbrack:AO,lbrke:NO,lbrksld:DO,lbrkslu:MO,Lcaron:$O,lcaron:BO,Lcedil:OO,lcedil:LO,lceil:IO,lcub:PO,Lcy:FO,lcy:VO,ldca:RO,ldquo:zO,ldquor:UO,ldrdhar:qO,ldrushar:HO,ldsh:jO,le:WO,lE:ZO,LeftAngleBracket:KO,LeftArrowBar:GO,leftarrow:YO,LeftArrow:JO,Leftarrow:XO,LeftArrowRightArrow:QO,leftarrowtail:eL,LeftCeiling:tL,LeftDoubleBracket:nL,LeftDownTeeVector:oL,LeftDownVectorBar:rL,LeftDownVector:iL,LeftFloor:sL,leftharpoondown:aL,leftharpoonup:lL,leftleftarrows:cL,leftrightarrow:uL,LeftRightArrow:dL,Leftrightarrow:fL,leftrightarrows:pL,leftrightharpoons:mL,leftrightsquigarrow:hL,LeftRightVector:gL,LeftTeeArrow:vL,LeftTee:yL,LeftTeeVector:_L,leftthreetimes:CL,LeftTriangleBar:bL,LeftTriangle:kL,LeftTriangleEqual:wL,LeftUpDownVector:EL,LeftUpTeeVector:SL,LeftUpVectorBar:xL,LeftUpVector:TL,LeftVectorBar:AL,LeftVector:NL,lEg:DL,leg:ML,leq:$L,leqq:BL,leqslant:OL,lescc:LL,les:IL,lesdot:PL,lesdoto:FL,lesdotor:VL,lesg:RL,lesges:zL,lessapprox:UL,lessdot:qL,lesseqgtr:HL,lesseqqgtr:jL,LessEqualGreater:WL,LessFullEqual:ZL,LessGreater:KL,lessgtr:GL,LessLess:YL,lesssim:JL,LessSlantEqual:XL,LessTilde:QL,lfisht:eI,lfloor:tI,Lfr:nI,lfr:oI,lg:rI,lgE:iI,lHar:sI,lhard:aI,lharu:lI,lharul:cI,lhblk:uI,LJcy:dI,ljcy:fI,llarr:pI,ll:mI,Ll:hI,llcorner:gI,Lleftarrow:vI,llhard:yI,lltri:_I,Lmidot:CI,lmidot:bI,lmoustache:kI,lmoust:wI,lnap:EI,lnapprox:SI,lne:xI,lnE:TI,lneq:AI,lneqq:NI,lnsim:DI,loang:MI,loarr:$I,lobrk:BI,longleftarrow:OI,LongLeftArrow:LI,Longleftarrow:II,longleftrightarrow:PI,LongLeftRightArrow:FI,Longleftrightarrow:VI,longmapsto:RI,longrightarrow:zI,LongRightArrow:UI,Longrightarrow:qI,looparrowleft:HI,looparrowright:jI,lopar:WI,Lopf:ZI,lopf:KI,loplus:GI,lotimes:YI,lowast:JI,lowbar:XI,LowerLeftArrow:QI,LowerRightArrow:eP,loz:tP,lozenge:nP,lozf:oP,lpar:rP,lparlt:iP,lrarr:sP,lrcorner:aP,lrhar:lP,lrhard:cP,lrm:uP,lrtri:dP,lsaquo:fP,lscr:pP,Lscr:mP,lsh:hP,Lsh:gP,lsim:vP,lsime:yP,lsimg:_P,lsqb:CP,lsquo:bP,lsquor:kP,Lstrok:wP,lstrok:EP,ltcc:SP,ltcir:xP,lt:TP,LT:AP,Lt:NP,ltdot:DP,lthree:MP,ltimes:$P,ltlarr:BP,ltquest:OP,ltri:LP,ltrie:IP,ltrif:PP,ltrPar:FP,lurdshar:VP,luruhar:RP,lvertneqq:zP,lvnE:UP,macr:qP,male:HP,malt:jP,maltese:WP,Map:"⤅",map:ZP,mapsto:KP,mapstodown:GP,mapstoleft:YP,mapstoup:JP,marker:XP,mcomma:QP,Mcy:eF,mcy:tF,mdash:nF,mDDot:oF,measuredangle:rF,MediumSpace:iF,Mellintrf:sF,Mfr:aF,mfr:lF,mho:cF,micro:uF,midast:dF,midcir:fF,mid:pF,middot:mF,minusb:hF,minus:gF,minusd:vF,minusdu:yF,MinusPlus:_F,mlcp:CF,mldr:bF,mnplus:kF,models:wF,Mopf:EF,mopf:SF,mp:xF,mscr:TF,Mscr:AF,mstpos:NF,Mu:DF,mu:MF,multimap:$F,mumap:BF,nabla:OF,Nacute:LF,nacute:IF,nang:PF,nap:FF,napE:VF,napid:RF,napos:zF,napprox:UF,natural:qF,naturals:HF,natur:jF,nbsp:WF,nbump:ZF,nbumpe:KF,ncap:GF,Ncaron:YF,ncaron:JF,Ncedil:XF,ncedil:QF,ncong:eV,ncongdot:tV,ncup:nV,Ncy:oV,ncy:rV,ndash:iV,nearhk:sV,nearr:aV,neArr:lV,nearrow:cV,ne:uV,nedot:dV,NegativeMediumSpace:fV,NegativeThickSpace:pV,NegativeThinSpace:mV,NegativeVeryThinSpace:hV,nequiv:gV,nesear:vV,nesim:yV,NestedGreaterGreater:_V,NestedLessLess:CV,NewLine:bV,nexist:kV,nexists:wV,Nfr:EV,nfr:SV,ngE:xV,nge:TV,ngeq:AV,ngeqq:NV,ngeqslant:DV,nges:MV,nGg:$V,ngsim:BV,nGt:OV,ngt:LV,ngtr:IV,nGtv:PV,nharr:FV,nhArr:VV,nhpar:RV,ni:zV,nis:UV,nisd:qV,niv:HV,NJcy:jV,njcy:WV,nlarr:ZV,nlArr:KV,nldr:GV,nlE:YV,nle:JV,nleftarrow:XV,nLeftarrow:QV,nleftrightarrow:eR,nLeftrightarrow:tR,nleq:nR,nleqq:oR,nleqslant:rR,nles:iR,nless:sR,nLl:aR,nlsim:lR,nLt:cR,nlt:uR,nltri:dR,nltrie:fR,nLtv:pR,nmid:mR,NoBreak:hR,NonBreakingSpace:gR,nopf:vR,Nopf:yR,Not:_R,not:CR,NotCongruent:bR,NotCupCap:kR,NotDoubleVerticalBar:wR,NotElement:ER,NotEqual:SR,NotEqualTilde:xR,NotExists:TR,NotGreater:AR,NotGreaterEqual:NR,NotGreaterFullEqual:DR,NotGreaterGreater:MR,NotGreaterLess:$R,NotGreaterSlantEqual:BR,NotGreaterTilde:OR,NotHumpDownHump:LR,NotHumpEqual:IR,notin:PR,notindot:FR,notinE:VR,notinva:RR,notinvb:zR,notinvc:UR,NotLeftTriangleBar:qR,NotLeftTriangle:HR,NotLeftTriangleEqual:jR,NotLess:WR,NotLessEqual:ZR,NotLessGreater:KR,NotLessLess:GR,NotLessSlantEqual:YR,NotLessTilde:JR,NotNestedGreaterGreater:XR,NotNestedLessLess:QR,notni:ez,notniva:tz,notnivb:nz,notnivc:oz,NotPrecedes:rz,NotPrecedesEqual:iz,NotPrecedesSlantEqual:sz,NotReverseElement:az,NotRightTriangleBar:lz,NotRightTriangle:cz,NotRightTriangleEqual:uz,NotSquareSubset:dz,NotSquareSubsetEqual:fz,NotSquareSuperset:pz,NotSquareSupersetEqual:mz,NotSubset:hz,NotSubsetEqual:gz,NotSucceeds:vz,NotSucceedsEqual:yz,NotSucceedsSlantEqual:_z,NotSucceedsTilde:Cz,NotSuperset:bz,NotSupersetEqual:kz,NotTilde:wz,NotTildeEqual:Ez,NotTildeFullEqual:Sz,NotTildeTilde:xz,NotVerticalBar:Tz,nparallel:Az,npar:Nz,nparsl:Dz,npart:Mz,npolint:$z,npr:Bz,nprcue:Oz,nprec:Lz,npreceq:Iz,npre:Pz,nrarrc:Fz,nrarr:Vz,nrArr:Rz,nrarrw:zz,nrightarrow:Uz,nRightarrow:qz,nrtri:Hz,nrtrie:jz,nsc:Wz,nsccue:Zz,nsce:Kz,Nscr:Gz,nscr:Yz,nshortmid:Jz,nshortparallel:Xz,nsim:Qz,nsime:eU,nsimeq:tU,nsmid:nU,nspar:oU,nsqsube:rU,nsqsupe:iU,nsub:sU,nsubE:aU,nsube:lU,nsubset:cU,nsubseteq:uU,nsubseteqq:dU,nsucc:fU,nsucceq:pU,nsup:mU,nsupE:hU,nsupe:gU,nsupset:vU,nsupseteq:yU,nsupseteqq:_U,ntgl:CU,Ntilde:bU,ntilde:kU,ntlg:wU,ntriangleleft:EU,ntrianglelefteq:SU,ntriangleright:xU,ntrianglerighteq:TU,Nu:AU,nu:NU,num:DU,numero:MU,numsp:$U,nvap:BU,nvdash:OU,nvDash:LU,nVdash:IU,nVDash:PU,nvge:FU,nvgt:VU,nvHarr:RU,nvinfin:zU,nvlArr:UU,nvle:qU,nvlt:HU,nvltrie:jU,nvrArr:WU,nvrtrie:ZU,nvsim:KU,nwarhk:GU,nwarr:YU,nwArr:JU,nwarrow:XU,nwnear:QU,Oacute:eq,oacute:tq,oast:nq,Ocirc:oq,ocirc:rq,ocir:iq,Ocy:sq,ocy:aq,odash:lq,Odblac:cq,odblac:uq,odiv:dq,odot:fq,odsold:pq,OElig:mq,oelig:hq,ofcir:gq,Ofr:vq,ofr:yq,ogon:_q,Ograve:Cq,ograve:bq,ogt:kq,ohbar:wq,ohm:Eq,oint:Sq,olarr:xq,olcir:Tq,olcross:Aq,oline:Nq,olt:Dq,Omacr:Mq,omacr:$q,Omega:Bq,omega:Oq,Omicron:Lq,omicron:Iq,omid:Pq,ominus:Fq,Oopf:Vq,oopf:Rq,opar:zq,OpenCurlyDoubleQuote:Uq,OpenCurlyQuote:qq,operp:Hq,oplus:jq,orarr:Wq,Or:Zq,or:Kq,ord:Gq,order:Yq,orderof:Jq,ordf:Xq,ordm:Qq,origof:eH,oror:tH,orslope:nH,orv:oH,oS:rH,Oscr:iH,oscr:sH,Oslash:aH,oslash:lH,osol:cH,Otilde:uH,otilde:dH,otimesas:fH,Otimes:pH,otimes:mH,Ouml:hH,ouml:gH,ovbar:vH,OverBar:yH,OverBrace:_H,OverBracket:CH,OverParenthesis:bH,para:kH,parallel:wH,par:EH,parsim:SH,parsl:xH,part:TH,PartialD:AH,Pcy:NH,pcy:DH,percnt:MH,period:$H,permil:BH,perp:OH,pertenk:LH,Pfr:IH,pfr:PH,Phi:FH,phi:VH,phiv:RH,phmmat:zH,phone:UH,Pi:qH,pi:HH,pitchfork:jH,piv:WH,planck:ZH,planckh:KH,plankv:GH,plusacir:YH,plusb:JH,pluscir:XH,plus:QH,plusdo:ej,plusdu:tj,pluse:nj,PlusMinus:oj,plusmn:rj,plussim:ij,plustwo:sj,pm:aj,Poincareplane:lj,pointint:cj,popf:uj,Popf:dj,pound:fj,prap:pj,Pr:mj,pr:hj,prcue:gj,precapprox:vj,prec:yj,preccurlyeq:_j,Precedes:Cj,PrecedesEqual:bj,PrecedesSlantEqual:kj,PrecedesTilde:wj,preceq:Ej,precnapprox:Sj,precneqq:xj,precnsim:Tj,pre:Aj,prE:Nj,precsim:Dj,prime:Mj,Prime:$j,primes:Bj,prnap:Oj,prnE:Lj,prnsim:Ij,prod:Pj,Product:Fj,profalar:Vj,profline:Rj,profsurf:zj,prop:Uj,Proportional:qj,Proportion:Hj,propto:jj,prsim:Wj,prurel:Zj,Pscr:Kj,pscr:Gj,Psi:Yj,psi:Jj,puncsp:Xj,Qfr:Qj,qfr:eW,qint:tW,qopf:nW,Qopf:oW,qprime:rW,Qscr:iW,qscr:sW,quaternions:aW,quatint:lW,quest:cW,questeq:uW,quot:dW,QUOT:fW,rAarr:pW,race:mW,Racute:hW,racute:gW,radic:vW,raemptyv:yW,rang:_W,Rang:CW,rangd:bW,range:kW,rangle:wW,raquo:EW,rarrap:SW,rarrb:xW,rarrbfs:TW,rarrc:AW,rarr:NW,Rarr:DW,rArr:MW,rarrfs:$W,rarrhk:BW,rarrlp:OW,rarrpl:LW,rarrsim:IW,Rarrtl:PW,rarrtl:FW,rarrw:VW,ratail:RW,rAtail:zW,ratio:UW,rationals:qW,rbarr:HW,rBarr:jW,RBarr:WW,rbbrk:ZW,rbrace:KW,rbrack:GW,rbrke:YW,rbrksld:JW,rbrkslu:XW,Rcaron:QW,rcaron:eZ,Rcedil:tZ,rcedil:nZ,rceil:oZ,rcub:rZ,Rcy:iZ,rcy:sZ,rdca:aZ,rdldhar:lZ,rdquo:cZ,rdquor:uZ,rdsh:dZ,real:fZ,realine:pZ,realpart:mZ,reals:hZ,Re:gZ,rect:vZ,reg:yZ,REG:_Z,ReverseElement:CZ,ReverseEquilibrium:bZ,ReverseUpEquilibrium:kZ,rfisht:wZ,rfloor:EZ,rfr:SZ,Rfr:xZ,rHar:TZ,rhard:AZ,rharu:NZ,rharul:DZ,Rho:MZ,rho:$Z,rhov:BZ,RightAngleBracket:OZ,RightArrowBar:LZ,rightarrow:IZ,RightArrow:PZ,Rightarrow:FZ,RightArrowLeftArrow:VZ,rightarrowtail:RZ,RightCeiling:zZ,RightDoubleBracket:UZ,RightDownTeeVector:qZ,RightDownVectorBar:HZ,RightDownVector:jZ,RightFloor:WZ,rightharpoondown:ZZ,rightharpoonup:KZ,rightleftarrows:GZ,rightleftharpoons:YZ,rightrightarrows:JZ,rightsquigarrow:XZ,RightTeeArrow:QZ,RightTee:eK,RightTeeVector:tK,rightthreetimes:nK,RightTriangleBar:oK,RightTriangle:rK,RightTriangleEqual:iK,RightUpDownVector:sK,RightUpTeeVector:aK,RightUpVectorBar:lK,RightUpVector:cK,RightVectorBar:uK,RightVector:dK,ring:fK,risingdotseq:pK,rlarr:mK,rlhar:hK,rlm:gK,rmoustache:vK,rmoust:yK,rnmid:_K,roang:CK,roarr:bK,robrk:kK,ropar:wK,ropf:EK,Ropf:SK,roplus:xK,rotimes:TK,RoundImplies:AK,rpar:NK,rpargt:DK,rppolint:MK,rrarr:$K,Rrightarrow:BK,rsaquo:OK,rscr:LK,Rscr:IK,rsh:PK,Rsh:FK,rsqb:VK,rsquo:RK,rsquor:zK,rthree:UK,rtimes:qK,rtri:HK,rtrie:jK,rtrif:WK,rtriltri:ZK,RuleDelayed:KK,ruluhar:GK,rx:YK,Sacute:JK,sacute:XK,sbquo:QK,scap:eG,Scaron:tG,scaron:nG,Sc:oG,sc:rG,sccue:iG,sce:sG,scE:aG,Scedil:lG,scedil:cG,Scirc:uG,scirc:dG,scnap:fG,scnE:pG,scnsim:mG,scpolint:hG,scsim:gG,Scy:vG,scy:yG,sdotb:_G,sdot:CG,sdote:bG,searhk:kG,searr:wG,seArr:EG,searrow:SG,sect:xG,semi:TG,seswar:AG,setminus:NG,setmn:DG,sext:MG,Sfr:$G,sfr:BG,sfrown:OG,sharp:LG,SHCHcy:IG,shchcy:PG,SHcy:FG,shcy:VG,ShortDownArrow:RG,ShortLeftArrow:zG,shortmid:UG,shortparallel:qG,ShortRightArrow:HG,ShortUpArrow:jG,shy:WG,Sigma:ZG,sigma:KG,sigmaf:GG,sigmav:YG,sim:JG,simdot:XG,sime:QG,simeq:eY,simg:tY,simgE:nY,siml:oY,simlE:rY,simne:iY,simplus:sY,simrarr:aY,slarr:lY,SmallCircle:cY,smallsetminus:uY,smashp:dY,smeparsl:fY,smid:pY,smile:mY,smt:hY,smte:gY,smtes:vY,SOFTcy:yY,softcy:_Y,solbar:CY,solb:bY,sol:kY,Sopf:wY,sopf:EY,spades:SY,spadesuit:xY,spar:TY,sqcap:AY,sqcaps:NY,sqcup:DY,sqcups:MY,Sqrt:$Y,sqsub:BY,sqsube:OY,sqsubset:LY,sqsubseteq:IY,sqsup:PY,sqsupe:FY,sqsupset:VY,sqsupseteq:RY,square:zY,Square:UY,SquareIntersection:qY,SquareSubset:HY,SquareSubsetEqual:jY,SquareSuperset:WY,SquareSupersetEqual:ZY,SquareUnion:KY,squarf:GY,squ:YY,squf:JY,srarr:XY,Sscr:QY,sscr:eJ,ssetmn:tJ,ssmile:nJ,sstarf:oJ,Star:rJ,star:iJ,starf:sJ,straightepsilon:aJ,straightphi:lJ,strns:cJ,sub:uJ,Sub:dJ,subdot:fJ,subE:pJ,sube:mJ,subedot:hJ,submult:gJ,subnE:vJ,subne:yJ,subplus:_J,subrarr:CJ,subset:bJ,Subset:kJ,subseteq:wJ,subseteqq:EJ,SubsetEqual:SJ,subsetneq:xJ,subsetneqq:TJ,subsim:AJ,subsub:NJ,subsup:DJ,succapprox:MJ,succ:$J,succcurlyeq:BJ,Succeeds:OJ,SucceedsEqual:LJ,SucceedsSlantEqual:IJ,SucceedsTilde:PJ,succeq:FJ,succnapprox:VJ,succneqq:RJ,succnsim:zJ,succsim:UJ,SuchThat:qJ,sum:HJ,Sum:jJ,sung:WJ,sup1:ZJ,sup2:KJ,sup3:GJ,sup:YJ,Sup:JJ,supdot:XJ,supdsub:QJ,supE:eX,supe:tX,supedot:nX,Superset:oX,SupersetEqual:rX,suphsol:iX,suphsub:sX,suplarr:aX,supmult:lX,supnE:cX,supne:uX,supplus:dX,supset:fX,Supset:pX,supseteq:mX,supseteqq:hX,supsetneq:gX,supsetneqq:vX,supsim:yX,supsub:_X,supsup:CX,swarhk:bX,swarr:kX,swArr:wX,swarrow:EX,swnwar:SX,szlig:xX,Tab:TX,target:AX,Tau:NX,tau:DX,tbrk:MX,Tcaron:$X,tcaron:BX,Tcedil:OX,tcedil:LX,Tcy:IX,tcy:PX,tdot:FX,telrec:VX,Tfr:RX,tfr:zX,there4:UX,therefore:qX,Therefore:HX,Theta:jX,theta:WX,thetasym:ZX,thetav:KX,thickapprox:GX,thicksim:YX,ThickSpace:JX,ThinSpace:XX,thinsp:QX,thkap:eQ,thksim:tQ,THORN:nQ,thorn:oQ,tilde:rQ,Tilde:iQ,TildeEqual:sQ,TildeFullEqual:aQ,TildeTilde:lQ,timesbar:cQ,timesb:uQ,times:dQ,timesd:fQ,tint:pQ,toea:mQ,topbot:hQ,topcir:gQ,top:vQ,Topf:yQ,topf:_Q,topfork:CQ,tosa:bQ,tprime:kQ,trade:wQ,TRADE:EQ,triangle:SQ,triangledown:xQ,triangleleft:TQ,trianglelefteq:AQ,triangleq:NQ,triangleright:DQ,trianglerighteq:MQ,tridot:$Q,trie:BQ,triminus:OQ,TripleDot:LQ,triplus:IQ,trisb:PQ,tritime:FQ,trpezium:VQ,Tscr:RQ,tscr:zQ,TScy:UQ,tscy:qQ,TSHcy:HQ,tshcy:jQ,Tstrok:WQ,tstrok:ZQ,twixt:KQ,twoheadleftarrow:GQ,twoheadrightarrow:YQ,Uacute:JQ,uacute:XQ,uarr:QQ,Uarr:eee,uArr:tee,Uarrocir:nee,Ubrcy:oee,ubrcy:ree,Ubreve:iee,ubreve:see,Ucirc:aee,ucirc:lee,Ucy:cee,ucy:uee,udarr:dee,Udblac:fee,udblac:pee,udhar:mee,ufisht:hee,Ufr:gee,ufr:vee,Ugrave:yee,ugrave:_ee,uHar:Cee,uharl:bee,uharr:kee,uhblk:wee,ulcorn:Eee,ulcorner:See,ulcrop:xee,ultri:Tee,Umacr:Aee,umacr:Nee,uml:Dee,UnderBar:Mee,UnderBrace:$ee,UnderBracket:Bee,UnderParenthesis:Oee,Union:Lee,UnionPlus:Iee,Uogon:Pee,uogon:Fee,Uopf:Vee,uopf:Ree,UpArrowBar:zee,uparrow:Uee,UpArrow:qee,Uparrow:Hee,UpArrowDownArrow:jee,updownarrow:Wee,UpDownArrow:Zee,Updownarrow:Kee,UpEquilibrium:Gee,upharpoonleft:Yee,upharpoonright:Jee,uplus:Xee,UpperLeftArrow:Qee,UpperRightArrow:ete,upsi:tte,Upsi:nte,upsih:ote,Upsilon:rte,upsilon:ite,UpTeeArrow:ste,UpTee:ate,upuparrows:lte,urcorn:cte,urcorner:ute,urcrop:dte,Uring:fte,uring:pte,urtri:mte,Uscr:hte,uscr:gte,utdot:vte,Utilde:yte,utilde:_te,utri:Cte,utrif:bte,uuarr:kte,Uuml:wte,uuml:Ete,uwangle:Ste,vangrt:xte,varepsilon:Tte,varkappa:Ate,varnothing:Nte,varphi:Dte,varpi:Mte,varpropto:$te,varr:Bte,vArr:Ote,varrho:Lte,varsigma:Ite,varsubsetneq:Pte,varsubsetneqq:Fte,varsupsetneq:Vte,varsupsetneqq:Rte,vartheta:zte,vartriangleleft:Ute,vartriangleright:qte,vBar:Hte,Vbar:jte,vBarv:Wte,Vcy:Zte,vcy:Kte,vdash:Gte,vDash:Yte,Vdash:Jte,VDash:Xte,Vdashl:Qte,veebar:ene,vee:tne,Vee:nne,veeeq:one,vellip:rne,verbar:ine,Verbar:sne,vert:ane,Vert:lne,VerticalBar:cne,VerticalLine:une,VerticalSeparator:dne,VerticalTilde:fne,VeryThinSpace:pne,Vfr:mne,vfr:hne,vltri:gne,vnsub:vne,vnsup:yne,Vopf:_ne,vopf:Cne,vprop:bne,vrtri:kne,Vscr:wne,vscr:Ene,vsubnE:Sne,vsubne:xne,vsupnE:Tne,vsupne:Ane,Vvdash:Nne,vzigzag:Dne,Wcirc:Mne,wcirc:$ne,wedbar:Bne,wedge:One,Wedge:Lne,wedgeq:Ine,weierp:Pne,Wfr:Fne,wfr:Vne,Wopf:Rne,wopf:zne,wp:Une,wr:qne,wreath:Hne,Wscr:jne,wscr:Wne,xcap:Zne,xcirc:Kne,xcup:Gne,xdtri:Yne,Xfr:Jne,xfr:Xne,xharr:Qne,xhArr:eoe,Xi:toe,xi:noe,xlarr:ooe,xlArr:roe,xmap:ioe,xnis:soe,xodot:aoe,Xopf:loe,xopf:coe,xoplus:uoe,xotime:doe,xrarr:foe,xrArr:poe,Xscr:moe,xscr:hoe,xsqcup:goe,xuplus:voe,xutri:yoe,xvee:_oe,xwedge:Coe,Yacute:boe,yacute:koe,YAcy:woe,yacy:Eoe,Ycirc:Soe,ycirc:xoe,Ycy:Toe,ycy:Aoe,yen:Noe,Yfr:Doe,yfr:Moe,YIcy:$oe,yicy:Boe,Yopf:Ooe,yopf:Loe,Yscr:Ioe,yscr:Poe,YUcy:Foe,yucy:Voe,yuml:Roe,Yuml:zoe,Zacute:Uoe,zacute:qoe,Zcaron:Hoe,zcaron:joe,Zcy:Woe,zcy:Zoe,Zdot:Koe,zdot:Goe,zeetrf:Yoe,ZeroWidthSpace:Joe,Zeta:Xoe,zeta:Qoe,zfr:ere,Zfr:tre,ZHcy:nre,zhcy:ore,zigrarr:rre,zopf:ire,Zopf:sre,Zscr:are,zscr:lre,zwj:cre,zwnj:ure};var Qp=dre,uu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Hr={},Vd={};function fre(t){var e,n,o=Vd[t];if(o)return o;for(o=Vd[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 Va(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Va.defaultChars),typeof n>"u"&&(n=!0),l=fre(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}Va.defaultChars=";/?:@&=+$,-_.!~*'()#";Va.componentChars="-_.!~*'()";var pre=Va,Rd={};function mre(t){var e,n,o=Rd[t];if(o)return o;for(o=Rd[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 Ra(t,e){var n;return typeof e!="string"&&(e=Ra.defaultChars),n=mre(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})}Ra.defaultChars=";/?:@&=+$,#";Ra.componentChars="";var hre=Ra,gre=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 na(){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 vre=/^([a-z0-9.+-]+:)/i,yre=/:[0-9]*$/,_re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cre=["<",">",'"',"`"," ","\r",`
3
+ `," "],bre=["{","}","|","\\","^","`"].concat(Cre),kre=["'"].concat(bre),zd=["%","/","?",";","#"].concat(kre),Ud=["/","?","#"],wre=255,qd=/^[+a-z0-9A-Z_-]{0,63}$/,Ere=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Hd={javascript:!0,"javascript:":!0},jd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Sre(t,e){if(t&&t instanceof na)return t;var n=new na;return n.parse(t,e),n}na.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=_re.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=vre.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&&Hd[u])&&(l=l.substr(2),this.slashes=!0)),!Hd[u]&&(a||u&&!jd[u])){var d=-1;for(n=0;n<Ud.length;n++)s=l.indexOf(Ud[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<zd.length;n++)s=l.indexOf(zd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(qd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(qd)){var k=g.slice(0,n),w=g.slice(n+1),b=y.match(Ere);b&&(k.push(b[1]),w.unshift(b[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>wre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var T=l.indexOf("?");return T!==-1&&(this.search=l.substr(T),l=l.slice(0,T)),l&&(this.pathname=l),jd[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};na.prototype.parseHost=function(t){var e=yre.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 xre=Sre;Hr.encode=pre;Hr.decode=hre;Hr.format=gre;Hr.parse=xre;var No={},wl,Wd;function em(){return Wd||(Wd=1,wl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wl}var El,Zd;function tm(){return Zd||(Zd=1,El=/[\0-\x1F\x7F-\x9F]/),El}var Sl,Kd;function Tre(){return Kd||(Kd=1,Sl=/[\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]/),Sl}var xl,Gd;function nm(){return Gd||(Gd=1,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),xl}var Yd;function Are(){return Yd||(Yd=1,No.Any=em(),No.Cc=tm(),No.Cf=Tre(),No.P=uu,No.Z=nm()),No}(function(t){function e(M){return Object.prototype.toString.call(M)}function n(M){return e(M)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(M,L){return o.call(M,L)}function s(M){var L=Array.prototype.slice.call(arguments,1);return L.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(j){M[j]=P[j]})}}),M}function a(M,L,P){return[].concat(M.slice(0,L),P,M.slice(L+1))}function l(M){return!(M>=55296&&M<=57343||M>=64976&&M<=65007||(M&65535)===65535||(M&65535)===65534||M>=0&&M<=8||M===11||M>=14&&M<=31||M>=127&&M<=159||M>1114111)}function c(M){if(M>65535){M-=65536;var L=55296+(M>>10),P=56320+(M&1023);return String.fromCharCode(L,P)}return String.fromCharCode(M)}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,m=Qp;function h(M,L){var P;return r(m,L)?m[L]:L.charCodeAt(0)===35&&p.test(L)&&(P=L[1].toLowerCase()==="x"?parseInt(L.slice(2),16):parseInt(L.slice(1),10),l(P))?c(P):M}function g(M){return M.indexOf("\\")<0?M:M.replace(u,"$1")}function y(M){return M.indexOf("\\")<0&&M.indexOf("&")<0?M:M.replace(f,function(L,P,j){return P||h(L,j)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(M){return _[M]}function w(M){return C.test(M)?M.replace(v,k):M}var b=/[.?*+^$[\]\\(){}|-]/g;function E(M){return M.replace(b,"\\$&")}function T(M){switch(M){case 9:case 32:return!0}return!1}function x(M){if(M>=8192&&M<=8202)return!0;switch(M){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 N=uu;function I(M){return N.test(M)}function A(M){switch(M){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 D(M){return M=M.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(M=M.replace(/ẞ/g,"ß")),M.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Hr,t.lib.ucmicro=Are(),t.assign=s,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=x,t.isMdAsciiPunct=A,t.isPunctChar=I,t.escapeRE=E,t.normalizeReference=D})(Ne);var za={},Nre=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},Jd=Ne.unescapeAll,Dre=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=Jd(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=Jd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Mre=Ne.unescapeAll,$re=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=Mre(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};za.parseLinkLabel=Nre;za.parseLinkDestination=Dre;za.parseLinkTitle=$re;var Bre=Ne.assign,Ore=Ne.unescapeAll,Go=Ne.escapeHtml,Bn={};Bn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+Go(s.content)+"</code>"};Bn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+Go(t[e].content)+`</code></pre>
4
+ `};Bn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?Ore(s.info).trim():"",l="",c="",u,d,f,p,m;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Go(s.content):u=Go(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),m={attrs:p},"<pre><code"+r.renderAttrs(m)+">"+u+`</code></pre>
6
6
  `):"<pre><code"+r.renderAttrs(s)+">"+u+`</code></pre>
7
- `};$n.image=function(t,e,n,o,r){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(t,e,n)};$n.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
7
+ `};Bn.image=function(t,e,n,o,r){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(t,e,n)};Bn.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
8
8
  `:`<br>
9
- `};$n.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
9
+ `};Bn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
10
10
  `:`<br>
11
11
  `:`
12
- `};$n.text=function(t,e){return Zo(t[e].content)};$n.html_block=function(t,e){return t[e].content};$n.html_inline=function(t,e){return t[e].content};function Hr(){this.rules=Bre({},$n)}Hr.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+Zo(e.attrs[n][0])+'="'+Zo(e.attrs[n][1])+'"';return r};Hr.prototype.renderToken=function(e,n,o){var r,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
12
+ `};Bn.text=function(t,e){return Go(t[e].content)};Bn.html_block=function(t,e){return t[e].content};Bn.html_inline=function(t,e){return t[e].content};function jr(){this.rules=Bre({},Bn)}jr.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+Go(e.attrs[n][0])+'="'+Go(e.attrs[n][1])+'"';return r};jr.prototype.renderToken=function(e,n,o){var r,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
13
13
  `),s+=(l.nesting===-1?"</":"<")+l.tag,s+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(s+=" /"),l.block&&(a=!0,l.nesting===1&&n+1<e.length&&(r=e[n+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===l.tag)&&(a=!1))),s+=a?`>
14
- `:">",s)};Hr.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};Hr.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
- `);return o};Hr.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 Lre=Hr;function mn(){this.__rules__=[],this.__cache__=null}mn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};mn.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))})})};mn.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};mn.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};mn.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};mn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};mn.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};mn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};mn.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};mn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var du=mn,Ire=/\r\n?|\n/g,Pre=/\0/g,Fre=function(e){var n;n=e.src.replace(Ire,`
16
- `),n=n.replace(Pre,"�"),e.src=n},Vre=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)},Rre=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)},zre=Ne.arrayReplaceAt;function Ure(t){return/^<a[>\s]/i.test(t)}function qre(t){return/^<\/a\s*>/i.test(t)}var Hre=function(e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,r=v.length;o<r;o++)if(!(v[o].type!=="inline"||!e.md.linkify.pretest(v[o].content)))for(s=v[o].children,h=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"&&(Ure(l.content)&&h>0&&h--,qre(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,_=e.md.linkify.match(d),c=[],m=l.level,p=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)g=_[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=_[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,a.level=m,c.push(a),a=new e.Token("link_close","a",-1),a.level=--m,a.markup="linkify",a.info="auto",c.push(a),p=_[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),v[o].children=s=zre(s,n,c)}}}},om=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,jre=/\((c|tm|r)\)/i,Wre=/\((c|tm|r)\)/ig,Zre={c:"©",r:"®",tm:"™"};function Kre(t,e){return Zre[e.toLowerCase()]}function Gre(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(Wre,Kre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Yre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&om.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 Jre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(jre.test(e.tokens[n].content)&&Gre(e.tokens[n].children),om.test(e.tokens[n].content)&&Yre(e.tokens[n].children))},Xd=Ne.isWhiteSpace,Qd=Ne.isPunctChar,e1=Ne.isMdAsciiPunct,Xre=/['"]/,t1=/['"]/g,n1="’";function Ns(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Qre(t,e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=k.length-1;v>=0&&!(k[v].level<=c);v--);if(k.length=v+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(t1.lastIndex=a,s=t1.exec(r),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=r.charCodeAt(s.index-1);else for(v=n-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,a<l)f=r.charCodeAt(a);else for(v=n+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(p=e1(d)||Qd(String.fromCharCode(d)),m=e1(f)||Qd(String.fromCharCode(f)),h=Xd(d),g=Xd(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){_&&(o.content=Ns(o.content,s.index,n1));continue}if(C){for(v=k.length-1;v>=0&&(u=k[v],!(k[v].level<c));v--)if(u.single===_&&k[v].level===c){u=k[v],_?(w=e.md.options.quotes[2],b=e.md.options.quotes[3]):(w=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=Ns(o.content,s.index,b),t[u.token].content=Ns(t[u.token].content,u.pos,w),a+=b.length-1,u.token===n&&(a+=w.length-1),r=o.content,l=r.length,k.length=v;continue e}}y?k.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=Ns(o.content,s.index,n1))}}}}var eie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Xre.test(e.tokens[n].content)||Qre(e.tokens[n].children,e)},tie=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 jr(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}jr.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};jr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};jr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};jr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};jr.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 fu=jr,nie=fu;function rm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}rm.prototype.Token=nie;var oie=rm,rie=du,Tl=[["normalize",Fre],["block",Vre],["inline",Rre],["linkify",Hre],["replacements",Jre],["smartquotes",eie],["text_join",tie]];function pu(){this.ruler=new rie;for(var t=0;t<Tl.length;t++)this.ruler.push(Tl[t][0],Tl[t][1])}pu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};pu.prototype.State=oie;var iie=pu,Al=Ne.isSpace;function Nl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function o1(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 sie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,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])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[d]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Al(b))||w===45&&Al(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Al(s))return!1;l++}for(a=Nl(e,n+1),f=a.split("|"),h=[],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?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=Nl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=o1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=y=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<f.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(_=!1,c=0,u=k.length;c<u;c++)if(k[c](e,d,o,!0)){_=!0;break}if(_||(a=Nl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=o1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=C=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<p;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return C&&(m=e.push("tbody_close","tbody",-1),C[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=v,e.line=d,!0},aie=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},lie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(f=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){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},cie=Ne.isSpace,uie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,x=e.lineMax,N=e.bMarks[n]+e.tShift[n],L=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(r)return!0;for(h=[],g=[],v=[],_=[],b=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,N=e.bMarks[p]+e.tShift[p],L=e.eMarks[p],!(N>=L));p++){if(e.src.charCodeAt(N++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(N)===32?(N++,c++,s=!1,k=!0):e.src.charCodeAt(N)===9?(k=!0,(e.bsCount[p]+c)%4===3?(N++,c++,s=!1):s=!0):k=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=N;N<L&&(a=e.src.charCodeAt(N),cie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;N++}d=N>=L,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(k?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=N-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.markup=">",e.lineMax=x,e.parentType=C,f[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=v[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},die=Ne.isSpace,fie=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&&!die(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)},im=Ne.isSpace;function r1(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),!im(s))?-1:o}function i1(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),!im(n))?-1:r}function pie(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 mie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,x,N,L,A,D,M,I,P=n,j=!1,V=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(j=!0),(N=i1(e,P))>=0){if(f=!0,A=e.bMarks[P]+e.tShift[P],C=Number(e.src.slice(A,N-1)),j&&C!==1)return!1}else if((N=r1(e,P))>=0)f=!1;else return!1;if(j&&e.skipSpaces(N)>=e.eMarks[P])return!1;if(r)return!0;for(y=e.src.charCodeAt(N-1),g=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=h=[P,0],I.markup=String.fromCharCode(y),L=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(x=N,v=e.eMarks[P],d=_=e.sCount[P]+N-(e.bMarks[P]+e.tShift[P]);x<v;){if(s=e.src.charCodeAt(x),s===9)_+=4-(_+e.bsCount[P])%4;else if(s===32)_++;else break;x++}if(a=x,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(y),I.map=p=[P,0],f&&(I.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[P],b=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=a-e.bMarks[P],e.sCount[P]=_,a>=v&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||L)&&(V=!1),L=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=E,e.sCount[P]=b,e.tight=T,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(y),P=e.line,p[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(D=!1,l=0,m=M.length;l<m;l++)if(M[l](e,P,o,!0)){D=!0;break}if(D)break;if(f){if(N=i1(e,P),N<0)break;A=e.bMarks[P]+e.tShift[P]}else if(N=r1(e,P),N<0)break;if(y!==e.src.charCodeAt(N-1))break}return f?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(y),h[1]=P,e.line=P,e.parentType=w,V&&pie(e,g),!0},hie=Ne.normalizeReference,Ds=Ne.isSpace,gie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";T<c&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(v=!1,d=0,f=_.length;d<f;d++)if(_[d](e,T,c,!0)){v=!0;break}if(v)break}for(C=e.getLines(n,T,e.blkIndent,!1).trim(),E=C.length,b=1;b<E;b++){if(s=C.charCodeAt(b),s===91)return!1;if(s===93){m=b;break}else s===10?w++:s===92&&(b++,b<E&&C.charCodeAt(b)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(b=m+2;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;if(g=e.md.helpers.parseLinkDestination(C,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,w+=g.lines,a=b,l=w,y=b;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;for(g=e.md.helpers.parseLinkTitle(C,b,E),b<E&&y!==b&&g.ok?(k=g.str,b=g.pos,w+=g.lines):(k="",b=a,w=l);b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=hie(C.slice(1,m)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:k,href:u}),e.parentType=h,e.line=n+w+1),!0)},vie=["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"],Ua={},yie="[a-zA-Z_:][a-zA-Z0-9:._-]*",_ie="[^\"'=<>`\\x00-\\x20]+",Cie="'[^']*'",bie='"[^"]*"',kie="(?:"+_ie+"|"+Cie+"|"+bie+")",wie="(?:\\s+"+yie+"(?:\\s*=\\s*"+kie+")?)",sm="<[A-Za-z][A-Za-z0-9\\-]*"+wie+"*\\s*\\/?>",am="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Eie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Sie="<[?][\\s\\S]*?[?]>",xie="<![A-Z]+\\s+[^>]*>",Tie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Aie=new RegExp("^(?:"+sm+"|"+am+"|"+Eie+"|"+Sie+"|"+xie+"|"+Tie+")"),Nie=new RegExp("^(?:"+sm+"|"+am+")");Ua.HTML_TAG_RE=Aie;Ua.HTML_OPEN_CLOSE_TAG_RE=Nie;var Die=vie,Mie=Ua.HTML_OPEN_CLOSE_TAG_RE,pr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Die.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mie.source+"\\s*$"),/^$/,!1]],$ie=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<pr.length&&!pr[s][0].test(c);s++);if(s===pr.length)return!1;if(r)return pr[s][2];if(a=n+1,!pr[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),pr[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},s1=Ne.isSpace,Bie=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&&!s1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&s1(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)},Oie=function(e,n,o){var r,s,a,l,c,u,d,f,p,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],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[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+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=h,!0):!1},Lie=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},lm=fu,qa=Ne.isSpace;function Bn(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(qa(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}Bn.prototype.push=function(t,e,n){var o=new lm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Bn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Bn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Bn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!qa(n));e++);return e};Bn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!qa(this.src.charCodeAt(--e)))return e+1;return e};Bn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Bn.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};Bn.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),qa(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("")};Bn.prototype.Token=lm;var Iie=Bn,Pie=du,Ms=[["table",sie,["paragraph","reference"]],["code",aie],["fence",lie,["paragraph","reference","blockquote","list"]],["blockquote",uie,["paragraph","reference","blockquote","list"]],["hr",fie,["paragraph","reference","blockquote","list"]],["list",mie,["paragraph","reference","blockquote"]],["reference",gie],["html_block",$ie,["paragraph","reference","blockquote"]],["heading",Bie,["paragraph","reference","blockquote"]],["lheading",Oie],["paragraph",Lie]];function Ha(){this.ruler=new Pie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Ha.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)}};Ha.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))};Ha.prototype.State=Iie;var Fie=Ha;function Vie(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 Rie=function(e,n){for(var o=e.pos;o<e.posMax&&!Vie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},zie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Uie=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(zie),!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)},qie=Ne.isSpace,Hie=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&&qie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},jie=Ne.isSpace,mu=[];for(var a1=0;a1<256;a1++)mu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){mu[t.charCodeAt(0)]=1});var Wie=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),!!jie(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&&mu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Zie=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},ja={};ja.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 l1(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)}}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(l1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&l1(e,o[n].delimiters)};var Wa={};Wa.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 c1(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--))}Wa.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(c1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&c1(e,o[n].delimiters)};var Kie=Ne.normalizeReference,Dl=Ne.isSpace,Gie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!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(C=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);if(c>=g)return!1;if(y=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="",y=c;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[Kie(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Yie=Ne.normalizeReference,Ml=Ne.isSpace,Jie=function(e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,v=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<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);if(u>=v)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);else p="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&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[Yie(a)],!d)return e.pos=C,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=v,!0},Xie=/^([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])?)*)$/,Qie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ese=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),Qie.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):Xie.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},tse=Ua.HTML_TAG_RE;function nse(t){return/^<a[>\s]/i.test(t)}function ose(t){return/^<\/a\s*>/i.test(t)}function rse(t){var e=t|32;return e>=97&&e<=122}var ise=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&&!rse(o))||(r=e.src.slice(l).match(tse),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],nse(a.content)&&e.linkLevel++,ose(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},u1=Qp,sse=Ne.has,ase=Ne.isValidEntityCode,d1=Ne.fromCodePoint,lse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cse=/^&([a-z][a-z0-9]{1,31});/i,use=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(lse),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=ase(r)?d1(r):d1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(cse),s&&sse(u1,s[1]))return n||(a=e.push("text_special","",0),a.content=u1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function f1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.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-m[f]-1,a=n;n>s;n-=m[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?m[n-1]+1:0,m[e]=e-n+c,m[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 dse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(f1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&f1(o[n].delimiters)},fse=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)},hu=fu,p1=Ne.isWhiteSpace,m1=Ne.isPunctChar,h1=Ne.isMdAsciiPunct;function rs(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}rs.prototype.pushPending=function(){var t=new hu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};rs.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new hu(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};rs.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<h?this.src.charCodeAt(n):32,u=h1(o)||m1(String.fromCharCode(o)),f=h1(r)||m1(String.fromCharCode(r)),c=p1(o),d=p1(r),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};rs.prototype.Token=hu;var pse=rs,g1=du,$l=[["text",Rie],["linkify",Uie],["newline",Hie],["escape",Wie],["backticks",Zie],["strikethrough",ja.tokenize],["emphasis",Wa.tokenize],["link",Gie],["image",Jie],["autolink",ese],["html_inline",ise],["entity",use]],Bl=[["balance_pairs",dse],["strikethrough",ja.postProcess],["emphasis",Wa.postProcess],["fragments_join",fse]];function is(){var t;for(this.ruler=new g1,t=0;t<$l.length;t++)this.ruler.push($l[t][0],$l[t][1]);for(this.ruler2=new g1,t=0;t<Bl.length;t++)this.ruler2.push(Bl[t][0],Bl[t][1])}is.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};is.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()};is.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)};is.prototype.State=pse;var mse=is,Ol,v1;function hse(){return v1||(v1=1,Ol=function(t){var e={};t=t||{},e.src_Any=em().source,e.src_Cc=tm().source,e.src_Z=nm().source,e.src_P=uu.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}),Ol}function fc(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 Za(t){return Object.prototype.toString.call(t)}function gse(t){return Za(t)==="[object String]"}function vse(t){return Za(t)==="[object Object]"}function yse(t){return Za(t)==="[object RegExp]"}function y1(t){return Za(t)==="[object Function]"}function _se(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var cm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Cse(t){return Object.keys(t||{}).reduce(function(e,n){return e||cm.hasOwnProperty(n)},!1)}var bse={"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}}},kse="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]",wse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ese(t){t.__index__=-1,t.__text_cache__=""}function Sse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function _1(){return function(t,e){e.normalize(t)}}function oa(t){var e=t.re=hse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(kse),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,vse(c)){yse(c.validate)?u.validate=Sse(c.validate):y1(c.validate)?u.validate=c.validate:s(l,c),y1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=_1();return}if(gse(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:_1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(_se).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"),Ese(t)}function xse(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 pc(t,e){var n=new xse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function zt(t,e){if(!(this instanceof zt))return new zt(t,e);e||Cse(t)&&(e=t,t={}),this.__opts__=fc({},cm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fc({},bse,t),this.__compiled__={},this.__tlds__=wse,this.__tlds_replaced__=!1,this.re={},oa(this)}zt.prototype.add=function(e,n){return this.__schemas__[e]=n,oa(this),this};zt.prototype.set=function(e){return this.__opts__=fc(this.__opts__,e),this};zt.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};zt.prototype.pretest=function(e){return this.re.pretest.test(e)};zt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};zt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(pc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(pc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};zt.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,pc(this,0)):null};zt.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(),oa(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,oa(this),this)};zt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};zt.prototype.onCompile=function(){};var Tse=zt;const wr=2147483647,wn=36,gu=1,Ui=26,Ase=38,Nse=700,um=72,dm=128,fm="-",Dse=/^xn--/,Mse=/[^\0-\x7F]/,$se=/[\x2E\u3002\uFF0E\uFF61]/g,Bse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ll=wn-gu,En=Math.floor,Il=String.fromCharCode;function ro(t){throw new RangeError(Bse[t])}function Ose(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function pm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace($se,".");const r=t.split("."),s=Ose(r,e).join(".");return o+s}function vu(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 mm=t=>String.fromCodePoint(...t),Lse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:wn},C1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},hm=function(t,e,n){let o=0;for(t=n?En(t/Nse):t>>1,t+=En(t/e);t>Ll*Ui>>1;o+=wn)t=En(t/Ll);return En(o+(Ll+1)*t/(t+Ase))},yu=function(t){const e=[],n=t.length;let o=0,r=dm,s=um,a=t.lastIndexOf(fm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&ro("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=wn;;f+=wn){l>=n&&ro("invalid-input");const p=Lse(t.charCodeAt(l++));p>=wn&&ro("invalid-input"),p>En((wr-o)/d)&&ro("overflow"),o+=p*d;const m=f<=s?gu:f>=s+Ui?Ui:f-s;if(p<m)break;const h=wn-m;d>En(wr/h)&&ro("overflow"),d*=h}const u=e.length+1;s=hm(o-c,u,c==0),En(o/u)>wr-r&&ro("overflow"),r+=En(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},_u=function(t){const e=[];t=vu(t);const n=t.length;let o=dm,r=0,s=um;for(const c of t)c<128&&e.push(Il(c));const a=e.length;let l=a;for(a&&e.push(fm);l<n;){let c=wr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>En((wr-r)/u)&&ro("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>wr&&ro("overflow"),d===o){let f=r;for(let p=wn;;p+=wn){const m=p<=s?gu:p>=s+Ui?Ui:p-s;if(f<m)break;const h=f-m,g=wn-m;e.push(Il(C1(m+h%g,0))),f=En(h/g)}e.push(Il(C1(f,0))),s=hm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},gm=function(t){return pm(t,function(e){return Dse.test(e)?yu(e.slice(4).toLowerCase()):e})},vm=function(t){return pm(t,function(e){return Mse.test(e)?"xn--"+_u(e):e})},Ise={version:"2.1.0",ucs2:{decode:vu,encode:mm},decode:yu,encode:_u,toASCII:vm,toUnicode:gm},Pse=Object.freeze(Object.defineProperty({__proto__:null,decode:yu,default:Ise,encode:_u,toASCII:vm,toUnicode:gm,ucs2decode:vu,ucs2encode:mm},Symbol.toStringTag,{value:"Module"})),Fse=r_(Pse);var Vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Rse={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"]}}},zse={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"]}}},Ai=Ne,Use=za,qse=Lre,Hse=iie,jse=Fie,Wse=mse,Zse=Tse,Io=qr,ym=Fse,Kse={default:Vse,zero:Rse,commonmark:zse},Gse=/^(vbscript|javascript|file|data):/,Yse=/^data:image\/(gif|png|jpeg|webp);/;function Jse(t){var e=t.trim().toLowerCase();return Gse.test(e)?!!Yse.test(e):!0}var _m=["http:","https:","mailto:"];function Xse(t){var e=Io.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toASCII(e.hostname)}catch{}return Io.encode(Io.format(e))}function Qse(t){var e=Io.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toUnicode(e.hostname)}catch{}return Io.decode(Io.format(e),Io.decode.defaultChars+"%")}function Qt(t,e){if(!(this instanceof Qt))return new Qt(t,e);e||Ai.isString(t)||(e=t||{},t="default"),this.inline=new Wse,this.block=new jse,this.core=new Hse,this.renderer=new qse,this.linkify=new Zse,this.validateLink=Jse,this.normalizeLink=Xse,this.normalizeLinkText=Qse,this.utils=Ai,this.helpers=Ai.assign({},Use),this.options={},this.configure(t),e&&this.set(e)}Qt.prototype.set=function(t){return Ai.assign(this.options,t),this};Qt.prototype.configure=function(t){var e=this,n;if(Ai.isString(t)&&(n=t,t=Kse[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};Qt.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};Qt.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};Qt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Qt.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};Qt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Qt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Qt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var eae=Qt,tae=eae;const nae=o_(tae);/*! @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 b1(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 oae(t){if(Array.isArray(t))return t}function rae(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 iae(){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 sae(t,e){return oae(t)||rae(t,e)||aae(t,e)||iae()}function aae(t,e){if(t){if(typeof t=="string")return b1(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)?b1(t,e):void 0}}const Cm=Object.entries,k1=Object.setPrototypeOf,lae=Object.isFrozen,cae=Object.getPrototypeOf,uae=Object.getOwnPropertyDescriptor;let ft=Object.freeze,mt=Object.seal,yr=Object.create,bm=typeof Reflect<"u"&&Reflect,mc=bm.apply,hc=bm.construct;ft||(ft=function(e){return e});mt||(mt=function(e){return e});mc||(mc=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)});hc||(hc=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 mr=Je(Array.prototype.forEach),dae=Je(Array.prototype.lastIndexOf),w1=Je(Array.prototype.pop),hr=Je(Array.prototype.push),fae=Je(Array.prototype.splice),so=Array.isArray,wi=Je(String.prototype.toLowerCase),Pl=Je(String.prototype.toString),E1=Je(String.prototype.match),hi=Je(String.prototype.replace),S1=Je(String.prototype.indexOf),pae=Je(String.prototype.trim),mae=Je(Number.prototype.toString),hae=Je(Boolean.prototype.toString),x1=typeof BigInt>"u"?null:Je(BigInt.prototype.toString),T1=typeof Symbol>"u"?null:Je(Symbol.prototype.toString),rt=Je(Object.prototype.hasOwnProperty),gi=Je(Object.prototype.toString),ot=Je(RegExp.prototype.test),Ao=gae(TypeError);function Je(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 mc(t,e,o)}}function gae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return hc(t,n)}}function Se(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wi;if(k1&&k1(t,null),!so(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(lae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function vae(t){for(let e=0;e<t.length;e++)rt(t,e)||(t[e]=null);return t}function gt(t){const e=yr(null);for(const o of Cm(t)){var n=sae(o,2);const r=n[0],s=n[1];rt(t,r)&&(so(s)?e[r]=vae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=gt(s):e[r]=s)}return e}function yae(t){switch(typeof t){case"string":return t;case"number":return mae(t);case"boolean":return hae(t);case"bigint":return x1?x1(t):"0";case"symbol":return T1?T1(t):"Symbol()";case"undefined":return gi(t);case"function":case"object":{if(t===null)return gi(t);const e=t,n=sn(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:gi(o)}return gi(t)}default:return gi(t)}}function sn(t,e){for(;t!==null;){const o=uae(t,e);if(o){if(o.get)return Je(o.get);if(typeof o.value=="function")return Je(o.value)}t=cae(t)}function n(){return null}return n}function _ae(t){try{return ot(t,""),!0}catch{return!1}}const A1=ft(["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"]),Fl=ft(["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"]),Vl=ft(["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"]),Cae=ft(["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"]),Rl=ft(["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"]),bae=ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N1=ft(["#text"]),D1=ft(["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"]),zl=ft(["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"]),M1=ft(["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"]),$s=ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kae=mt(/{{[\w\W]*|^[\w\W]*}}/g),wae=mt(/<%[\w\W]*|^[\w\W]*%>/g),Eae=mt(/\${[\w\W]*/g),Sae=mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),xae=mt(/^aria-[\-\w]+$/),$1=mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tae=mt(/^(?:\w+script|data):/i),Aae=mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nae=mt(/^html$/i),Dae=mt(/^[a-z][.\w]*(-[.\w]+)+$/i),B1=mt(/<[/\w!]/g),O1=mt(/<[/\w]/g),Mae=mt(/<\/no(script|embed|frames)/i),$ae=mt(/\/>/i),It={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Bae=function(){return typeof window>"u"?null:window},Oae=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}},L1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oo=function(e,n,o,r){return rt(e,n)&&so(e[n])?Se(r.base?gt(r.base):{},e[n],r.transform):o};function km(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bae();const e=X=>km(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==It.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,m=sn(p,"cloneNode"),h=sn(p,"remove"),g=sn(p,"nextSibling"),y=sn(p,"childNodes"),C=sn(p,"parentNode"),v=sn(p,"shadowRoot"),_=sn(p,"attributes"),k=a&&a.prototype?sn(a.prototype,"nodeType"):null,w=a&&a.prototype?sn(a.prototype,"nodeName"):null,b=a&&a.prototype?sn(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let E,T="",x,N=!1,L=0;const A=function(){if(L>0)throw Ao('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.')},D=function(S){A(),L++;try{return E.createHTML(S)}finally{L--}},M=function(S){A(),L++;try{return E.createScriptURL(S)}finally{L--}},I=function(){return N||(x=Oae(f,r),N=!0),x},P=n,j=P.implementation,V=P.createNodeIterator,q=P.createDocumentFragment,F=P.getElementsByTagName,Y=o.importNode;let ee=L1();e.isSupported=typeof Cm=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const Ee=kae,ie=wae,se=Eae,z=Sae,oe=xae,ye=Tae,Be=Aae,H=Dae;let ae=$1,fe=null;const he=Se({},[...A1,...Fl,...Vl,...Rl,...N1]);let ke=null;const Ve=Se({},[...D1,...zl,...M1,...$s]);let _e=Object.seal(yr(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}})),Pe=null,Ze=null;const De=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ge=!0,_t=!0,vn=!1,On=!0,Re=!1,ct=!0,nt=!1,Dt=!1,B=null,W=null,ue=!1,ze=!1,ut=!1,tn=!1,Ce=!0,Ht=!1;const ar="user-content-";let Xr=!0,nn=!1,Mt={},$t=null;const lr=Se({},["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 gs=null;const Qr=Se({},["audio","video","img","source","image","track"]);let Bt=null;const cr=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qn="http://www.w3.org/1998/Math/MathML",ur="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let eo=Ot,So=!1,ei=null;const ml=Se({},[Qn,ur,Ot],Pl),vs=ft(["mi","mo","mn","ms","mtext"]);let Lt=Se({},vs);const ys=ft(["annotation-xml"]);let ti=Se({},ys);const hl=Se({},["title","style","font","a","script"]);let xo=null;const ni=["application/xhtml+xml","text/html"],oi="text/html";let Oe=null,on=null;const ri=n.createElement("form"),_s=function(S){return S instanceof RegExp||S instanceof Function},to=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===S)return;(!S||typeof S!="object")&&(S={}),S=gt(S),xo=ni.indexOf(S.PARSER_MEDIA_TYPE)===-1?oi:S.PARSER_MEDIA_TYPE,Oe=xo==="application/xhtml+xml"?Pl:wi,fe=oo(S,"ALLOWED_TAGS",he,{transform:Oe}),ke=oo(S,"ALLOWED_ATTR",Ve,{transform:Oe}),ei=oo(S,"ALLOWED_NAMESPACES",ml,{transform:Pl}),Bt=oo(S,"ADD_URI_SAFE_ATTR",cr,{transform:Oe,base:cr}),gs=oo(S,"ADD_DATA_URI_TAGS",Qr,{transform:Oe,base:Qr}),$t=oo(S,"FORBID_CONTENTS",lr,{transform:Oe}),Pe=oo(S,"FORBID_TAGS",gt({}),{transform:Oe}),Ze=oo(S,"FORBID_ATTR",gt({}),{transform:Oe}),Mt=rt(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?gt(S.USE_PROFILES):S.USE_PROFILES:!1,Ge=S.ALLOW_ARIA_ATTR!==!1,_t=S.ALLOW_DATA_ATTR!==!1,vn=S.ALLOW_UNKNOWN_PROTOCOLS||!1,On=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=S.SAFE_FOR_TEMPLATES||!1,ct=S.SAFE_FOR_XML!==!1,nt=S.WHOLE_DOCUMENT||!1,ze=S.RETURN_DOM||!1,ut=S.RETURN_DOM_FRAGMENT||!1,tn=S.RETURN_TRUSTED_TYPE||!1,ue=S.FORCE_BODY||!1,Ce=S.SANITIZE_DOM!==!1,Ht=S.SANITIZE_NAMED_PROPS||!1,Xr=S.KEEP_CONTENT!==!1,nn=S.IN_PLACE||!1,ae=_ae(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:$1,eo=typeof S.NAMESPACE=="string"?S.NAMESPACE:Ot,Lt=rt(S,"MATHML_TEXT_INTEGRATION_POINTS")&&S.MATHML_TEXT_INTEGRATION_POINTS&&typeof S.MATHML_TEXT_INTEGRATION_POINTS=="object"?gt(S.MATHML_TEXT_INTEGRATION_POINTS):Se({},vs),ti=rt(S,"HTML_INTEGRATION_POINTS")&&S.HTML_INTEGRATION_POINTS&&typeof S.HTML_INTEGRATION_POINTS=="object"?gt(S.HTML_INTEGRATION_POINTS):Se({},ys);const O=rt(S,"CUSTOM_ELEMENT_HANDLING")&&S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING=="object"?gt(S.CUSTOM_ELEMENT_HANDLING):yr(null);if(_e=yr(null),rt(O,"tagNameCheck")&&_s(O.tagNameCheck)&&(_e.tagNameCheck=O.tagNameCheck),rt(O,"attributeNameCheck")&&_s(O.attributeNameCheck)&&(_e.attributeNameCheck=O.attributeNameCheck),rt(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),mt(_e),Re&&(_t=!1),ut&&(ze=!0),Mt&&(fe=Se({},N1),ke=yr(null),Mt.html===!0&&(Se(fe,A1),Se(ke,D1)),Mt.svg===!0&&(Se(fe,Fl),Se(ke,zl),Se(ke,$s)),Mt.svgFilters===!0&&(Se(fe,Vl),Se(ke,zl),Se(ke,$s)),Mt.mathMl===!0&&(Se(fe,Rl),Se(ke,M1),Se(ke,$s))),De.tagCheck=null,De.attributeCheck=null,rt(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?De.tagCheck=S.ADD_TAGS:so(S.ADD_TAGS)&&(fe===he&&(fe=gt(fe)),Se(fe,S.ADD_TAGS,Oe))),rt(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?De.attributeCheck=S.ADD_ATTR:so(S.ADD_ATTR)&&(ke===Ve&&(ke=gt(ke)),Se(ke,S.ADD_ATTR,Oe))),rt(S,"ADD_URI_SAFE_ATTR")&&so(S.ADD_URI_SAFE_ATTR)&&Se(Bt,S.ADD_URI_SAFE_ATTR,Oe),rt(S,"FORBID_CONTENTS")&&so(S.FORBID_CONTENTS)&&($t===lr&&($t=gt($t)),Se($t,S.FORBID_CONTENTS,Oe)),rt(S,"ADD_FORBID_CONTENTS")&&so(S.ADD_FORBID_CONTENTS)&&($t===lr&&($t=gt($t)),Se($t,S.ADD_FORBID_CONTENTS,Oe)),Xr&&(fe["#text"]=!0),nt&&Se(fe,["html","head","body"]),fe.table&&(Se(fe,["tbody"]),delete Pe.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=E;E=S.TRUSTED_TYPES_POLICY;try{T=D("")}catch(le){throw E=Z,le}}else S.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=I()),E&&typeof T=="string"&&(T=D("")));ft&&ft(S),on=S},ii=Se({},[...Fl,...Vl,...Cae]),$=Se({},[...Rl,...bae]),J=function(S,O,Z){return O.namespaceURI===Ot?S==="svg":O.namespaceURI===Qn?S==="svg"&&(Z==="annotation-xml"||Lt[Z]):!!ii[S]},be=function(S,O,Z){return O.namespaceURI===Ot?S==="math":O.namespaceURI===ur?S==="math"&&ti[Z]:!!$[S]},Ue=function(S,O,Z){return O.namespaceURI===ur&&!ti[Z]||O.namespaceURI===Qn&&!Lt[Z]?!1:!$[S]&&(hl[S]||!ii[S])},Ln=function(S){let O=C(S);(!O||!O.tagName)&&(O={namespaceURI:eo,tagName:"template"});const Z=wi(S.tagName),le=wi(O.tagName);return ei[S.namespaceURI]?S.namespaceURI===ur?J(Z,O,le):S.namespaceURI===Qn?be(Z,O,le):S.namespaceURI===Ot?Ue(Z,O,le):!!(xo==="application/xhtml+xml"&&ei[S.namespaceURI]):!1},rn=function(S){hr(e.removed,{element:S});try{C(S).removeChild(S)}catch{if(h(S),!C(S))throw Ao("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},si=function(S){ai(S);const O=y(S);if(O){const le=[];mr(O,ce=>{hr(le,ce)}),mr(le,ce=>{try{h(ce)}catch{}})}const Z=_(S);if(Z)for(let le=Z.length-1;le>=0;--le){const ce=Z[le],ve=ce&&ce.name;if(typeof ve=="string")try{S.removeAttribute(ve)}catch{}}},In=function(S,O){try{hr(e.removed,{attribute:O.getAttributeNode(S),from:O})}catch{hr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(S),S==="is")if(ze||ut)try{rn(O)}catch{}else try{O.setAttribute(S,"")}catch{}},Cs=function(S){const O=_(S);if(O)for(let Z=O.length-1;Z>=0;--Z){const le=O[Z],ce=le&&le.name;if(!(typeof ce!="string"||ke[Oe(ce)]))try{S.removeAttribute(ce)}catch{}}},ai=function(S){const O=[S];for(;O.length>0;){const Z=O.pop();(k?k(Z):Z.nodeType)===It.element&&Cs(Z);const ce=y(Z);if(ce)for(let ve=ce.length-1;ve>=0;--ve)O.push(ce[ve])}},qg=function(S){if(!ct)return;const O=[S];for(;O.length>0;){const Z=O.pop(),le=k?k(Z):Z.nodeType;if(le===It.processingInstruction||le===It.comment&&ot(O1,Z.data)){try{h(Z)}catch{}continue}if(le===It.element){const ve=Z,Le=Oe(w?w(Z):Z.nodeName);try{ve.hasAttribute&&ve.hasAttribute("patchsrc")&&ve.removeAttribute("patchsrc"),ve.hasAttribute&&ve.hasAttribute("for")&&Le!=="label"&&Le!=="output"&&ve.removeAttribute("for")}catch{}}const ce=y(Z);if(ce)for(let ve=ce.length-1;ve>=0;--ve)O.push(ce[ve])}},dd=function(S){let O=null,Z=null;if(ue)S="<remove></remove>"+S;else{const ve=E1(S,/^[\r\n\t ]+/);Z=ve&&ve[0]}xo==="application/xhtml+xml"&&eo===Ot&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const le=E?D(S):S;if(eo===Ot)try{O=new d().parseFromString(le,xo)}catch{}if(!O||!O.documentElement){O=j.createDocument(eo,"template",null);try{O.documentElement.innerHTML=So?T:le}catch{}}const ce=O.body||O.documentElement;return S&&Z&&ce.insertBefore(n.createTextNode(Z),ce.childNodes[0]||null),eo===Ot?F.call(O,nt?"html":"body")[0]:nt?O.documentElement:ce},fd=function(S){const O=b?b(S):S.ownerDocument;return V.call(O||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},bs=function(S){return S=hi(S,Ee," "),S=hi(S,ie," "),S=hi(S,se," "),S},gl=function(S){var O;S.normalize();const Z=b?b(S):S.ownerDocument,le=V.call(Z||S,S,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ce=le.nextNode();for(;ce;)ce.data=bs(ce.data),ce=le.nextNode();const ve=(O=S.querySelectorAll)===null||O===void 0?void 0:O.call(S,"template");ve&&mr(ve,Le=>{dr(Le.content)&&gl(Le.content)})},ks=function(S){const O=w?w(S):null;return typeof O!="string"||Oe(O)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==k(S)||S.childNodes!==y(S)},dr=function(S){if(!k||typeof S!="object"||S===null)return!1;try{return k(S)===It.documentFragment}catch{return!1}},li=function(S){if(!k||typeof S!="object"||S===null)return!1;try{return typeof k(S)=="number"}catch{return!1}};function yn(X,S,O){X.length!==0&&mr(X,Z=>{Z.call(e,S,O,on)})}const Hg=function(S,O){return!!(ct&&S.hasChildNodes()&&!li(S.firstElementChild)&&ot(B1,S.textContent)&&ot(B1,S.innerHTML)||ct&&S.namespaceURI===Ot&&O==="style"&&li(S.firstElementChild)||S.nodeType===It.processingInstruction||ct&&S.nodeType===It.comment&&ot(O1,S.data))},jg=function(S,O,Z){if(!Pe[O]&&gd(O)&&(_e.tagNameCheck instanceof RegExp&&ot(_e.tagNameCheck,O)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(O)))return!1;if(Xr&&!$t[O]){const le=C(S),ce=y(S);if(ce&&le){const ve=ce.length;for(let Le=ve-1;Le>=0;--Le){const qe=S===Z?m(ce[Le],!0):ce[Le];le.insertBefore(qe,g(S))}}}return rn(S),!0},pd=function(S,O,Z,le){return S.length===0?O:O===Z||O===le?gt(O):O},md=function(S,O){if(yn(ee.beforeSanitizeElements,S,null),S!==O&&C(S)===null)return nn&&ai(S),!0;if(ks(S))return rn(S),!0;const Z=Oe(w?w(S):S.nodeName);if(fe=pd(ee.uponSanitizeElement,fe,he,B),yn(ee.uponSanitizeElement,S,{tagName:Z,allowedTags:fe}),S!==O&&C(S)===null)return nn&&ai(S),!0;if(Hg(S,Z))return rn(S),!0;if(Pe[Z]||!(De.tagCheck instanceof Function&&De.tagCheck(Z))&&!fe[Z]){const ce=jg(S,Z,O);return ce===!1&&yn(ee.afterSanitizeElements,S,null),ce}if((k?k(S):S.nodeType)===It.element&&!Ln(S)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&ot(Mae,S.innerHTML))return rn(S),!0;if(Re&&S.nodeType===It.text){const ce=bs(S.textContent);S.textContent!==ce&&(hr(e.removed,{element:S.cloneNode()}),S.textContent=ce)}return yn(ee.afterSanitizeElements,S,null),!1},hd=function(S,O,Z){if(Ze[O]||ct&&O==="patchsrc"||ct&&O==="for"&&S!=="label"&&S!=="output"||Ce&&(O==="id"||O==="name")&&(Z in n||Z in ri))return!1;const le=ke[O]||De.attributeCheck instanceof Function&&De.attributeCheck(O,S);if(!(_t&&ot(z,O))){if(!(Ge&&ot(oe,O))){if(le){if(!Bt[O]){if(!ot(ae,hi(Z,Be,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&S!=="script"&&S1(Z,"data:")===0&&gs[S])){if(!(vn&&!ot(ye,hi(Z,Be,"")))){if(Z)return!1}}}}}else if(!(gd(S)&&(_e.tagNameCheck instanceof RegExp&&ot(_e.tagNameCheck,S)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(S))&&(_e.attributeNameCheck instanceof RegExp&&ot(_e.attributeNameCheck,O)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(O,S))||O==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&ot(_e.tagNameCheck,Z)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(Z))))return!1}}return!0},Wg=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gd=function(S){return!Wg[wi(S)]&&ot(H,S)},Zg=function(S,O,Z,le){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Z)switch(f.getAttributeType(S,O)){case"TrustedHTML":return D(le);case"TrustedScriptURL":return M(le)}return le},Kg=function(S,O,Z,le){try{Z?S.setAttributeNS(Z,O,le):S.setAttribute(O,le),ks(S)?rn(S):w1(e.removed)}catch{In(O,S)}},vd=function(S){yn(ee.beforeSanitizeAttributes,S,null);const O=S.attributes;if(!O||ks(S))return;ke=pd(ee.uponSanitizeAttribute,ke,Ve,W);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let le=O.length;const ce=Oe(S.nodeName);for(;le--;){const ve=O[le],Le=ve.name,qe=ve.namespaceURI,Et=ve.value,St=Oe(Le),yl=Et;let Ct=Le==="value"?yl:pae(yl);if(Z.attrName=St,Z.attrValue=Ct,Z.keepAttr=!0,Z.forceKeepAttr=void 0,yn(ee.uponSanitizeAttribute,S,Z),Ct=Z.attrValue,Ht&&(St==="id"||St==="name")&&S1(Ct,ar)!==0&&(In(Le,S),Ct=ar+Ct),ct&&ot(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ct)){In(Le,S);continue}if(St==="attributename"&&E1(Ct,"href")){In(Le,S);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){In(Le,S);continue}if(!On&&ot($ae,Ct)){In(Le,S);continue}if(Re&&(Ct=bs(Ct)),!hd(ce,St,Ct)){In(Le,S);continue}Ct=Zg(ce,St,qe,Ct),Ct!==yl&&Kg(S,Le,qe,Ct)}}yn(ee.afterSanitizeAttributes,S,null)},ws=function(S){let O=null;const Z=fd(S);for(yn(ee.beforeSanitizeShadowDOM,S,null);O=Z.nextNode();)if(yn(ee.uponSanitizeShadowNode,O,null),md(O,S),vd(O),dr(O.content)&&ws(O.content),(k?k(O):O.nodeType)===It.element){const ce=v(O);dr(ce)&&(vl(ce),ws(ce))}yn(ee.afterSanitizeShadowDOM,S,null)},vl=function(S){const O=[{node:S,shadow:null}];for(;O.length>0;){const Z=O.pop();if(Z.shadow){ws(Z.shadow);continue}const le=Z.node,ve=(k?k(le):le.nodeType)===It.element,Le=y(le);if(Le)for(let qe=Le.length-1;qe>=0;--qe)O.push({node:Le[qe],shadow:null});if(ve){const qe=w?w(le):null;if(typeof qe=="string"&&Oe(qe)==="template"){const Et=le.content;dr(Et)&&O.push({node:Et,shadow:null})}}if(ve){const qe=v(le);dr(qe)&&O.push({node:null,shadow:qe},{node:qe,shadow:null})}}};return e.sanitize=function(X){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,Z=null,le=null,ce=null;if(So=!X,So&&(X="<!-->"),typeof X!="string"&&!li(X)&&(X=yae(X),typeof X!="string"))throw Ao("dirty is not a string, aborting");if(!e.isSupported)return X;Dt?(fe=B,ke=W):to(S),(ee.uponSanitizeElement.length>0||ee.uponSanitizeAttribute.length>0)&&(fe=gt(fe)),ee.uponSanitizeAttribute.length>0&&(ke=gt(ke)),e.removed=[];const ve=nn&&typeof X!="string"&&li(X);if(ve){qg(X);const Et=w?w(X):X.nodeName;if(typeof Et=="string"){const St=Oe(Et);if(!fe[St]||Pe[St])throw si(X),Ao("root node is forbidden and cannot be sanitized in-place")}if(ks(X))throw si(X),Ao("root node is clobbered and cannot be sanitized in-place");try{vl(X)}catch(St){throw si(X),St}}else if(li(X))O=dd("<!---->"),Z=O.ownerDocument.importNode(X,!0),Z.nodeType===It.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?O=Z:O.appendChild(Z),vl(Z);else{if(!ze&&!Re&&!nt&&X.indexOf("<")===-1)return E&&tn?D(X):X;if(O=dd(X),!O)return ze?null:tn?T:""}O&&ue&&rn(O.firstChild);const Le=ve?X:O;try{const Et=fd(Le);for(;le=Et.nextNode();)md(le,Le),vd(le),dr(le.content)&&ws(le.content)}catch(Et){throw ve&&(si(X),mr(e.removed,St=>{St.element&&ai(St.element)})),Et}if(ve)return mr(e.removed,Et=>{Et.element&&ai(Et.element)}),Re&&gl(X),X;if(ze){if(Re&&gl(O),ut)for(ce=q.call(O.ownerDocument);O.firstChild;)ce.appendChild(O.firstChild);else ce=O;return(ke.shadowroot||ke.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let qe=nt?O.outerHTML:O.innerHTML;return nt&&fe["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&ot(Nae,O.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
- `+qe),Re&&(qe=bs(qe)),E&&tn?D(qe):qe},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};to(X),Dt=!0,B=fe,W=ke},e.clearConfig=function(){on=null,Dt=!1,B=null,W=null,E=x,T=""},e.isValidAttribute=function(X,S,O){on||to({});const Z=Oe(X),le=Oe(S);return hd(Z,le,O)},e.addHook=function(X,S){typeof S=="function"&&rt(ee,X)&&hr(ee[X],S)},e.removeHook=function(X,S){if(rt(ee,X)){if(S!==void 0){const O=dae(ee[X],S);return O===-1?void 0:fae(ee[X],O,1)[0]}return w1(ee[X])}},e.removeHooks=function(X){rt(ee,X)&&(ee[X]=[])},e.removeAllHooks=function(){ee=L1()},e}var Lae=km();const Iae=["innerHTML"],Pae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},wm=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new nae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Lae.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,Iae)):(i.openBlock(),i.createElementBlock("div",Pae,i.toDisplayString(t.placeholder),1))}});function G(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 Em(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 hn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Fae=hn&&"documentMode"in document?document.documentMode:null,an=hn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ko=hn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ra=!(!hn||!("InputEvent"in window)||Fae)&&"getTargetRanges"in new window.InputEvent("input"),qi=hn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Pr=hn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Vae=hn&&/Android/.test(navigator.userAgent),Sm=hn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),I1=hn&&Vae&&Sm,Hi=hn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&an&&!Sm;function xm(...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 Rae=0,zae=1,Uae=2,Tm=128,qae=1,Hae=2,jae=3,Wae=4,Zae=5,Kae=6,Ka=qi||Pr||Hi?" ":"​",vo=`
14
+ `:">",s)};jr.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};jr.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
+ `);return o};jr.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 Lre=jr;function mn(){this.__rules__=[],this.__cache__=null}mn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};mn.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))})})};mn.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};mn.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};mn.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};mn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};mn.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};mn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};mn.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};mn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var du=mn,Ire=/\r\n?|\n/g,Pre=/\0/g,Fre=function(e){var n;n=e.src.replace(Ire,`
16
+ `),n=n.replace(Pre,"�"),e.src=n},Vre=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)},Rre=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)},zre=Ne.arrayReplaceAt;function Ure(t){return/^<a[>\s]/i.test(t)}function qre(t){return/^<\/a\s*>/i.test(t)}var Hre=function(e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,r=v.length;o<r;o++)if(!(v[o].type!=="inline"||!e.md.linkify.pretest(v[o].content)))for(s=v[o].children,h=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"&&(Ure(l.content)&&h>0&&h--,qre(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,_=e.md.linkify.match(d),c=[],m=l.level,p=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)g=_[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=_[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,a.level=m,c.push(a),a=new e.Token("link_close","a",-1),a.level=--m,a.markup="linkify",a.info="auto",c.push(a),p=_[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),v[o].children=s=zre(s,n,c)}}}},om=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,jre=/\((c|tm|r)\)/i,Wre=/\((c|tm|r)\)/ig,Zre={c:"©",r:"®",tm:"™"};function Kre(t,e){return Zre[e.toLowerCase()]}function Gre(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(Wre,Kre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Yre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&om.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 Jre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(jre.test(e.tokens[n].content)&&Gre(e.tokens[n].children),om.test(e.tokens[n].content)&&Yre(e.tokens[n].children))},Xd=Ne.isWhiteSpace,Qd=Ne.isPunctChar,e1=Ne.isMdAsciiPunct,Xre=/['"]/,t1=/['"]/g,n1="’";function Ns(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Qre(t,e){var n,o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b;for(k=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=k.length-1;v>=0&&!(k[v].level<=c);v--);if(k.length=v+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(t1.lastIndex=a,s=t1.exec(r),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=r.charCodeAt(s.index-1);else for(v=n-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,a<l)f=r.charCodeAt(a);else for(v=n+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(p=e1(d)||Qd(String.fromCharCode(d)),m=e1(f)||Qd(String.fromCharCode(f)),h=Xd(d),g=Xd(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){_&&(o.content=Ns(o.content,s.index,n1));continue}if(C){for(v=k.length-1;v>=0&&(u=k[v],!(k[v].level<c));v--)if(u.single===_&&k[v].level===c){u=k[v],_?(w=e.md.options.quotes[2],b=e.md.options.quotes[3]):(w=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=Ns(o.content,s.index,b),t[u.token].content=Ns(t[u.token].content,u.pos,w),a+=b.length-1,u.token===n&&(a+=w.length-1),r=o.content,l=r.length,k.length=v;continue e}}y?k.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=Ns(o.content,s.index,n1))}}}}var eie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Xre.test(e.tokens[n].content)||Qre(e.tokens[n].children,e)},tie=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 Wr(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}Wr.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};Wr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Wr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};Wr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Wr.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 fu=Wr,nie=fu;function rm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}rm.prototype.Token=nie;var oie=rm,rie=du,Tl=[["normalize",Fre],["block",Vre],["inline",Rre],["linkify",Hre],["replacements",Jre],["smartquotes",eie],["text_join",tie]];function pu(){this.ruler=new rie;for(var t=0;t<Tl.length;t++)this.ruler.push(Tl[t][0],Tl[t][1])}pu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};pu.prototype.State=oie;var iie=pu,Al=Ne.isSpace;function Nl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function o1(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 sie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,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])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[d]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Al(b))||w===45&&Al(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Al(s))return!1;l++}for(a=Nl(e,n+1),f=a.split("|"),h=[],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?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=Nl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=o1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=y=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<f.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(_=!1,c=0,u=k.length;c<u;c++)if(k[c](e,d,o,!0)){_=!0;break}if(_||(a=Nl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=o1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=C=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<p;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return C&&(m=e.push("tbody_close","tbody",-1),C[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=v,e.line=d,!0},aie=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},lie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(f=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){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},cie=Ne.isSpace,uie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,x=e.lineMax,N=e.bMarks[n]+e.tShift[n],I=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(r)return!0;for(h=[],g=[],v=[],_=[],b=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,N=e.bMarks[p]+e.tShift[p],I=e.eMarks[p],!(N>=I));p++){if(e.src.charCodeAt(N++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(N)===32?(N++,c++,s=!1,k=!0):e.src.charCodeAt(N)===9?(k=!0,(e.bsCount[p]+c)%4===3?(N++,c++,s=!1):s=!0):k=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=N;N<I&&(a=e.src.charCodeAt(N),cie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;N++}d=N>=I,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(k?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=N-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.markup=">",e.lineMax=x,e.parentType=C,f[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=v[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},die=Ne.isSpace,fie=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&&!die(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)},im=Ne.isSpace;function r1(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),!im(s))?-1:o}function i1(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),!im(n))?-1:r}function pie(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 mie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w,b,E,T,x,N,I,A,D,M,L,P=n,j=!1,V=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(j=!0),(N=i1(e,P))>=0){if(f=!0,A=e.bMarks[P]+e.tShift[P],C=Number(e.src.slice(A,N-1)),j&&C!==1)return!1}else if((N=r1(e,P))>=0)f=!1;else return!1;if(j&&e.skipSpaces(N)>=e.eMarks[P])return!1;if(r)return!0;for(y=e.src.charCodeAt(N-1),g=e.tokens.length,f?(L=e.push("ordered_list_open","ol",1),C!==1&&(L.attrs=[["start",C]])):L=e.push("bullet_list_open","ul",1),L.map=h=[P,0],L.markup=String.fromCharCode(y),I=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<o;){for(x=N,v=e.eMarks[P],d=_=e.sCount[P]+N-(e.bMarks[P]+e.tShift[P]);x<v;){if(s=e.src.charCodeAt(x),s===9)_+=4-(_+e.bsCount[P])%4;else if(s===32)_++;else break;x++}if(a=x,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(y),L.map=p=[P,0],f&&(L.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[P],b=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[P]=a-e.bMarks[P],e.sCount[P]=_,a>=v&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,P,o,!0),(!e.tight||I)&&(V=!1),I=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=E,e.sCount[P]=b,e.tight=T,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(y),P=e.line,p[1]=P,P>=o||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(D=!1,l=0,m=M.length;l<m;l++)if(M[l](e,P,o,!0)){D=!0;break}if(D)break;if(f){if(N=i1(e,P),N<0)break;A=e.bMarks[P]+e.tShift[P]}else if(N=r1(e,P),N<0)break;if(y!==e.src.charCodeAt(N-1))break}return f?L=e.push("ordered_list_close","ol",-1):L=e.push("bullet_list_close","ul",-1),L.markup=String.fromCharCode(y),h[1]=P,e.line=P,e.parentType=w,V&&pie(e,g),!0},hie=Ne.normalizeReference,Ds=Ne.isSpace,gie=function(e,n,o,r){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k,w=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],T=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";T<c&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(v=!1,d=0,f=_.length;d<f;d++)if(_[d](e,T,c,!0)){v=!0;break}if(v)break}for(C=e.getLines(n,T,e.blkIndent,!1).trim(),E=C.length,b=1;b<E;b++){if(s=C.charCodeAt(b),s===91)return!1;if(s===93){m=b;break}else s===10?w++:s===92&&(b++,b<E&&C.charCodeAt(b)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(b=m+2;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;if(g=e.md.helpers.parseLinkDestination(C,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,w+=g.lines,a=b,l=w,y=b;b<E;b++)if(s=C.charCodeAt(b),s===10)w++;else if(!Ds(s))break;for(g=e.md.helpers.parseLinkTitle(C,b,E),b<E&&y!==b&&g.ok?(k=g.str,b=g.pos,w+=g.lines):(k="",b=a,w=l);b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ds(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=hie(C.slice(1,m)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:k,href:u}),e.parentType=h,e.line=n+w+1),!0)},vie=["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"],Ua={},yie="[a-zA-Z_:][a-zA-Z0-9:._-]*",_ie="[^\"'=<>`\\x00-\\x20]+",Cie="'[^']*'",bie='"[^"]*"',kie="(?:"+_ie+"|"+Cie+"|"+bie+")",wie="(?:\\s+"+yie+"(?:\\s*=\\s*"+kie+")?)",sm="<[A-Za-z][A-Za-z0-9\\-]*"+wie+"*\\s*\\/?>",am="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Eie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Sie="<[?][\\s\\S]*?[?]>",xie="<![A-Z]+\\s+[^>]*>",Tie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Aie=new RegExp("^(?:"+sm+"|"+am+"|"+Eie+"|"+Sie+"|"+xie+"|"+Tie+")"),Nie=new RegExp("^(?:"+sm+"|"+am+")");Ua.HTML_TAG_RE=Aie;Ua.HTML_OPEN_CLOSE_TAG_RE=Nie;var Die=vie,Mie=Ua.HTML_OPEN_CLOSE_TAG_RE,mr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Die.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mie.source+"\\s*$"),/^$/,!1]],$ie=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<mr.length&&!mr[s][0].test(c);s++);if(s===mr.length)return!1;if(r)return mr[s][2];if(a=n+1,!mr[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),mr[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},s1=Ne.isSpace,Bie=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&&!s1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&s1(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)},Oie=function(e,n,o){var r,s,a,l,c,u,d,f,p,m=n+1,h,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],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[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+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=h,!0):!1},Lie=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},lm=fu,qa=Ne.isSpace;function On(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(qa(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}On.prototype.push=function(t,e,n){var o=new lm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};On.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};On.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};On.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!qa(n));e++);return e};On.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!qa(this.src.charCodeAt(--e)))return e+1;return e};On.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};On.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};On.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),qa(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("")};On.prototype.Token=lm;var Iie=On,Pie=du,Ms=[["table",sie,["paragraph","reference"]],["code",aie],["fence",lie,["paragraph","reference","blockquote","list"]],["blockquote",uie,["paragraph","reference","blockquote","list"]],["hr",fie,["paragraph","reference","blockquote","list"]],["list",mie,["paragraph","reference","blockquote"]],["reference",gie],["html_block",$ie,["paragraph","reference","blockquote"]],["heading",Bie,["paragraph","reference","blockquote"]],["lheading",Oie],["paragraph",Lie]];function Ha(){this.ruler=new Pie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Ha.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)}};Ha.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))};Ha.prototype.State=Iie;var Fie=Ha;function Vie(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 Rie=function(e,n){for(var o=e.pos;o<e.posMax&&!Vie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},zie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Uie=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(zie),!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)},qie=Ne.isSpace,Hie=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&&qie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},jie=Ne.isSpace,mu=[];for(var a1=0;a1<256;a1++)mu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){mu[t.charCodeAt(0)]=1});var Wie=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),!!jie(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&&mu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Zie=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},ja={};ja.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 l1(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)}}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(l1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&l1(e,o[n].delimiters)};var Wa={};Wa.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 c1(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--))}Wa.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(c1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&c1(e,o[n].delimiters)};var Kie=Ne.normalizeReference,Dl=Ne.isSpace,Gie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!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(C=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);if(c>=g)return!1;if(y=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="",y=c;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!Dl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[Kie(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Yie=Ne.normalizeReference,Ml=Ne.isSpace,Jie=function(e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,v=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<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);if(u>=v)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<v&&(r=e.src.charCodeAt(u),!(!Ml(r)&&r!==10));u++);else p="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&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[Yie(a)],!d)return e.pos=C,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=v,!0},Xie=/^([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])?)*)$/,Qie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ese=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),Qie.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):Xie.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},tse=Ua.HTML_TAG_RE;function nse(t){return/^<a[>\s]/i.test(t)}function ose(t){return/^<\/a\s*>/i.test(t)}function rse(t){var e=t|32;return e>=97&&e<=122}var ise=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&&!rse(o))||(r=e.src.slice(l).match(tse),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],nse(a.content)&&e.linkLevel++,ose(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},u1=Qp,sse=Ne.has,ase=Ne.isValidEntityCode,d1=Ne.fromCodePoint,lse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cse=/^&([a-z][a-z0-9]{1,31});/i,use=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(lse),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=ase(r)?d1(r):d1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(cse),s&&sse(u1,s[1]))return n||(a=e.push("text_special","",0),a.content=u1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function f1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.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-m[f]-1,a=n;n>s;n-=m[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?m[n-1]+1:0,m[e]=e-n+c,m[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 dse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(f1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&f1(o[n].delimiters)},fse=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)},hu=fu,p1=Ne.isWhiteSpace,m1=Ne.isPunctChar,h1=Ne.isMdAsciiPunct;function rs(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}rs.prototype.pushPending=function(){var t=new hu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};rs.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new hu(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};rs.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<h?this.src.charCodeAt(n):32,u=h1(o)||m1(String.fromCharCode(o)),f=h1(r)||m1(String.fromCharCode(r)),c=p1(o),d=p1(r),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};rs.prototype.Token=hu;var pse=rs,g1=du,$l=[["text",Rie],["linkify",Uie],["newline",Hie],["escape",Wie],["backticks",Zie],["strikethrough",ja.tokenize],["emphasis",Wa.tokenize],["link",Gie],["image",Jie],["autolink",ese],["html_inline",ise],["entity",use]],Bl=[["balance_pairs",dse],["strikethrough",ja.postProcess],["emphasis",Wa.postProcess],["fragments_join",fse]];function is(){var t;for(this.ruler=new g1,t=0;t<$l.length;t++)this.ruler.push($l[t][0],$l[t][1]);for(this.ruler2=new g1,t=0;t<Bl.length;t++)this.ruler2.push(Bl[t][0],Bl[t][1])}is.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};is.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()};is.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)};is.prototype.State=pse;var mse=is,Ol,v1;function hse(){return v1||(v1=1,Ol=function(t){var e={};t=t||{},e.src_Any=em().source,e.src_Cc=tm().source,e.src_Z=nm().source,e.src_P=uu.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}),Ol}function fc(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 Za(t){return Object.prototype.toString.call(t)}function gse(t){return Za(t)==="[object String]"}function vse(t){return Za(t)==="[object Object]"}function yse(t){return Za(t)==="[object RegExp]"}function y1(t){return Za(t)==="[object Function]"}function _se(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var cm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Cse(t){return Object.keys(t||{}).reduce(function(e,n){return e||cm.hasOwnProperty(n)},!1)}var bse={"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}}},kse="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]",wse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ese(t){t.__index__=-1,t.__text_cache__=""}function Sse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function _1(){return function(t,e){e.normalize(t)}}function oa(t){var e=t.re=hse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(kse),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,vse(c)){yse(c.validate)?u.validate=Sse(c.validate):y1(c.validate)?u.validate=c.validate:s(l,c),y1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=_1();return}if(gse(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:_1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(_se).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"),Ese(t)}function xse(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 pc(t,e){var n=new xse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qt(t,e){if(!(this instanceof qt))return new qt(t,e);e||Cse(t)&&(e=t,t={}),this.__opts__=fc({},cm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fc({},bse,t),this.__compiled__={},this.__tlds__=wse,this.__tlds_replaced__=!1,this.re={},oa(this)}qt.prototype.add=function(e,n){return this.__schemas__[e]=n,oa(this),this};qt.prototype.set=function(e){return this.__opts__=fc(this.__opts__,e),this};qt.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};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};qt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(pc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(pc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};qt.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,pc(this,0)):null};qt.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(),oa(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,oa(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var Tse=qt;const Er=2147483647,En=36,gu=1,Ui=26,Ase=38,Nse=700,um=72,dm=128,fm="-",Dse=/^xn--/,Mse=/[^\0-\x7F]/,$se=/[\x2E\u3002\uFF0E\uFF61]/g,Bse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ll=En-gu,Sn=Math.floor,Il=String.fromCharCode;function io(t){throw new RangeError(Bse[t])}function Ose(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function pm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace($se,".");const r=t.split("."),s=Ose(r,e).join(".");return o+s}function vu(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 mm=t=>String.fromCodePoint(...t),Lse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:En},C1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},hm=function(t,e,n){let o=0;for(t=n?Sn(t/Nse):t>>1,t+=Sn(t/e);t>Ll*Ui>>1;o+=En)t=Sn(t/Ll);return Sn(o+(Ll+1)*t/(t+Ase))},yu=function(t){const e=[],n=t.length;let o=0,r=dm,s=um,a=t.lastIndexOf(fm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&io("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=En;;f+=En){l>=n&&io("invalid-input");const p=Lse(t.charCodeAt(l++));p>=En&&io("invalid-input"),p>Sn((Er-o)/d)&&io("overflow"),o+=p*d;const m=f<=s?gu:f>=s+Ui?Ui:f-s;if(p<m)break;const h=En-m;d>Sn(Er/h)&&io("overflow"),d*=h}const u=e.length+1;s=hm(o-c,u,c==0),Sn(o/u)>Er-r&&io("overflow"),r+=Sn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},_u=function(t){const e=[];t=vu(t);const n=t.length;let o=dm,r=0,s=um;for(const c of t)c<128&&e.push(Il(c));const a=e.length;let l=a;for(a&&e.push(fm);l<n;){let c=Er;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Sn((Er-r)/u)&&io("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>Er&&io("overflow"),d===o){let f=r;for(let p=En;;p+=En){const m=p<=s?gu:p>=s+Ui?Ui:p-s;if(f<m)break;const h=f-m,g=En-m;e.push(Il(C1(m+h%g,0))),f=Sn(h/g)}e.push(Il(C1(f,0))),s=hm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},gm=function(t){return pm(t,function(e){return Dse.test(e)?yu(e.slice(4).toLowerCase()):e})},vm=function(t){return pm(t,function(e){return Mse.test(e)?"xn--"+_u(e):e})},Ise={version:"2.1.0",ucs2:{decode:vu,encode:mm},decode:yu,encode:_u,toASCII:vm,toUnicode:gm},Pse=Object.freeze(Object.defineProperty({__proto__:null,decode:yu,default:Ise,encode:_u,toASCII:vm,toUnicode:gm,ucs2decode:vu,ucs2encode:mm},Symbol.toStringTag,{value:"Module"})),Fse=r_(Pse);var Vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Rse={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"]}}},zse={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"]}}},Ai=Ne,Use=za,qse=Lre,Hse=iie,jse=Fie,Wse=mse,Zse=Tse,Fo=Hr,ym=Fse,Kse={default:Vse,zero:Rse,commonmark:zse},Gse=/^(vbscript|javascript|file|data):/,Yse=/^data:image\/(gif|png|jpeg|webp);/;function Jse(t){var e=t.trim().toLowerCase();return Gse.test(e)?!!Yse.test(e):!0}var _m=["http:","https:","mailto:"];function Xse(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toASCII(e.hostname)}catch{}return Fo.encode(Fo.format(e))}function Qse(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||_m.indexOf(e.protocol)>=0))try{e.hostname=ym.toUnicode(e.hostname)}catch{}return Fo.decode(Fo.format(e),Fo.decode.defaultChars+"%")}function en(t,e){if(!(this instanceof en))return new en(t,e);e||Ai.isString(t)||(e=t||{},t="default"),this.inline=new Wse,this.block=new jse,this.core=new Hse,this.renderer=new qse,this.linkify=new Zse,this.validateLink=Jse,this.normalizeLink=Xse,this.normalizeLinkText=Qse,this.utils=Ai,this.helpers=Ai.assign({},Use),this.options={},this.configure(t),e&&this.set(e)}en.prototype.set=function(t){return Ai.assign(this.options,t),this};en.prototype.configure=function(t){var e=this,n;if(Ai.isString(t)&&(n=t,t=Kse[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};en.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};en.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};en.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};en.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};en.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};en.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};en.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var eae=en,tae=eae;const nae=o_(tae);/*! @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 b1(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 oae(t){if(Array.isArray(t))return t}function rae(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 iae(){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 sae(t,e){return oae(t)||rae(t,e)||aae(t,e)||iae()}function aae(t,e){if(t){if(typeof t=="string")return b1(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)?b1(t,e):void 0}}const Cm=Object.entries,k1=Object.setPrototypeOf,lae=Object.isFrozen,cae=Object.getPrototypeOf,uae=Object.getOwnPropertyDescriptor;let dt=Object.freeze,pt=Object.seal,_r=Object.create,bm=typeof Reflect<"u"&&Reflect,mc=bm.apply,hc=bm.construct;dt||(dt=function(e){return e});pt||(pt=function(e){return e});mc||(mc=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)});hc||(hc=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 hr=Xe(Array.prototype.forEach),dae=Xe(Array.prototype.lastIndexOf),w1=Xe(Array.prototype.pop),gr=Xe(Array.prototype.push),fae=Xe(Array.prototype.splice),ao=Array.isArray,wi=Xe(String.prototype.toLowerCase),Pl=Xe(String.prototype.toString),E1=Xe(String.prototype.match),hi=Xe(String.prototype.replace),S1=Xe(String.prototype.indexOf),pae=Xe(String.prototype.trim),mae=Xe(Number.prototype.toString),hae=Xe(Boolean.prototype.toString),x1=typeof BigInt>"u"?null:Xe(BigInt.prototype.toString),T1=typeof Symbol>"u"?null:Xe(Symbol.prototype.toString),it=Xe(Object.prototype.hasOwnProperty),gi=Xe(Object.prototype.toString),rt=Xe(RegExp.prototype.test),Do=gae(TypeError);function Xe(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 mc(t,e,o)}}function gae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return hc(t,n)}}function Ee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wi;if(k1&&k1(t,null),!ao(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(lae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function vae(t){for(let e=0;e<t.length;e++)it(t,e)||(t[e]=null);return t}function vt(t){const e=_r(null);for(const o of Cm(t)){var n=sae(o,2);const r=n[0],s=n[1];it(t,r)&&(ao(s)?e[r]=vae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=vt(s):e[r]=s)}return e}function yae(t){switch(typeof t){case"string":return t;case"number":return mae(t);case"boolean":return hae(t);case"bigint":return x1?x1(t):"0";case"symbol":return T1?T1(t):"Symbol()";case"undefined":return gi(t);case"function":case"object":{if(t===null)return gi(t);const e=t,n=sn(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:gi(o)}return gi(t)}default:return gi(t)}}function sn(t,e){for(;t!==null;){const o=uae(t,e);if(o){if(o.get)return Xe(o.get);if(typeof o.value=="function")return Xe(o.value)}t=cae(t)}function n(){return null}return n}function _ae(t){try{return rt(t,""),!0}catch{return!1}}const A1=dt(["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"]),Fl=dt(["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"]),Vl=dt(["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"]),Cae=dt(["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"]),Rl=dt(["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"]),bae=dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N1=dt(["#text"]),D1=dt(["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"]),zl=dt(["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"]),M1=dt(["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"]),$s=dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kae=pt(/{{[\w\W]*|^[\w\W]*}}/g),wae=pt(/<%[\w\W]*|^[\w\W]*%>/g),Eae=pt(/\${[\w\W]*/g),Sae=pt(/^data-[\-\w.\u00B7-\uFFFF]+$/),xae=pt(/^aria-[\-\w]+$/),$1=pt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tae=pt(/^(?:\w+script|data):/i),Aae=pt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nae=pt(/^html$/i),Dae=pt(/^[a-z][.\w]*(-[.\w]+)+$/i),B1=pt(/<[/\w!]/g),O1=pt(/<[/\w]/g),Mae=pt(/<\/no(script|embed|frames)/i),$ae=pt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Bae=function(){return typeof window>"u"?null:window},Oae=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}},L1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ro=function(e,n,o,r){return it(e,n)&&ao(e[n])?Ee(r.base?vt(r.base):{},e[n],r.transform):o};function km(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bae();const e=X=>km(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Ft.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,m=sn(p,"cloneNode"),h=sn(p,"remove"),g=sn(p,"nextSibling"),y=sn(p,"childNodes"),C=sn(p,"parentNode"),v=sn(p,"shadowRoot"),_=sn(p,"attributes"),k=a&&a.prototype?sn(a.prototype,"nodeType"):null,w=a&&a.prototype?sn(a.prototype,"nodeName"):null,b=a&&a.prototype?sn(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let E,T="",x,N=!1,I=0;const A=function(){if(I>0)throw Do('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.')},D=function(S){A(),I++;try{return E.createHTML(S)}finally{I--}},M=function(S){A(),I++;try{return E.createScriptURL(S)}finally{I--}},L=function(){return N||(x=Oae(f,r),N=!0),x},P=n,j=P.implementation,V=P.createNodeIterator,q=P.createDocumentFragment,F=P.getElementsByTagName,Y=o.importNode;let ee=L1();e.isSupported=typeof Cm=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const we=kae,se=wae,ie=Eae,z=Sae,oe=xae,ye=Tae,Be=Aae,H=Dae;let le=$1,fe=null;const pe=Ee({},[...A1,...Fl,...Vl,...Rl,...N1]);let Ce=null;const We=Ee({},[...D1,...zl,...M1,...$s]);let _e=Object.seal(_r(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}})),Pe=null,Ve=null;const De=Object.seal(_r(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ge=!0,ht=!0,vn=!1,Ln=!0,Re=!1,gt=!0,ot=!1,St=!1,nn=null,yn=null,B=!1,K=!1,ue=!1,Ke=!1,Ye=!0,Ct=!1;const xe="user-content-";let xo=!0,$t=!1,Bt={},Ot=null;const cr=Ee({},["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 gs=null;const Qr=Ee({},["audio","video","img","source","image","track"]);let Lt=null;const ur=Ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eo="http://www.w3.org/1998/Math/MathML",dr="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let to=It,To=!1,ei=null;const ml=Ee({},[eo,dr,It],Pl),vs=dt(["mi","mo","mn","ms","mtext"]);let Pt=Ee({},vs);const ys=dt(["annotation-xml"]);let ti=Ee({},ys);const hl=Ee({},["title","style","font","a","script"]);let Ao=null;const ni=["application/xhtml+xml","text/html"],oi="text/html";let Oe=null,on=null;const ri=n.createElement("form"),_s=function(S){return S instanceof RegExp||S instanceof Function},no=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===S)return;(!S||typeof S!="object")&&(S={}),S=vt(S),Ao=ni.indexOf(S.PARSER_MEDIA_TYPE)===-1?oi:S.PARSER_MEDIA_TYPE,Oe=Ao==="application/xhtml+xml"?Pl:wi,fe=ro(S,"ALLOWED_TAGS",pe,{transform:Oe}),Ce=ro(S,"ALLOWED_ATTR",We,{transform:Oe}),ei=ro(S,"ALLOWED_NAMESPACES",ml,{transform:Pl}),Lt=ro(S,"ADD_URI_SAFE_ATTR",ur,{transform:Oe,base:ur}),gs=ro(S,"ADD_DATA_URI_TAGS",Qr,{transform:Oe,base:Qr}),Ot=ro(S,"FORBID_CONTENTS",cr,{transform:Oe}),Pe=ro(S,"FORBID_TAGS",vt({}),{transform:Oe}),Ve=ro(S,"FORBID_ATTR",vt({}),{transform:Oe}),Bt=it(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?vt(S.USE_PROFILES):S.USE_PROFILES:!1,Ge=S.ALLOW_ARIA_ATTR!==!1,ht=S.ALLOW_DATA_ATTR!==!1,vn=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=S.SAFE_FOR_TEMPLATES||!1,gt=S.SAFE_FOR_XML!==!1,ot=S.WHOLE_DOCUMENT||!1,K=S.RETURN_DOM||!1,ue=S.RETURN_DOM_FRAGMENT||!1,Ke=S.RETURN_TRUSTED_TYPE||!1,B=S.FORCE_BODY||!1,Ye=S.SANITIZE_DOM!==!1,Ct=S.SANITIZE_NAMED_PROPS||!1,xo=S.KEEP_CONTENT!==!1,$t=S.IN_PLACE||!1,le=_ae(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:$1,to=typeof S.NAMESPACE=="string"?S.NAMESPACE:It,Pt=it(S,"MATHML_TEXT_INTEGRATION_POINTS")&&S.MATHML_TEXT_INTEGRATION_POINTS&&typeof S.MATHML_TEXT_INTEGRATION_POINTS=="object"?vt(S.MATHML_TEXT_INTEGRATION_POINTS):Ee({},vs),ti=it(S,"HTML_INTEGRATION_POINTS")&&S.HTML_INTEGRATION_POINTS&&typeof S.HTML_INTEGRATION_POINTS=="object"?vt(S.HTML_INTEGRATION_POINTS):Ee({},ys);const O=it(S,"CUSTOM_ELEMENT_HANDLING")&&S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING=="object"?vt(S.CUSTOM_ELEMENT_HANDLING):_r(null);if(_e=_r(null),it(O,"tagNameCheck")&&_s(O.tagNameCheck)&&(_e.tagNameCheck=O.tagNameCheck),it(O,"attributeNameCheck")&&_s(O.attributeNameCheck)&&(_e.attributeNameCheck=O.attributeNameCheck),it(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),pt(_e),Re&&(ht=!1),ue&&(K=!0),Bt&&(fe=Ee({},N1),Ce=_r(null),Bt.html===!0&&(Ee(fe,A1),Ee(Ce,D1)),Bt.svg===!0&&(Ee(fe,Fl),Ee(Ce,zl),Ee(Ce,$s)),Bt.svgFilters===!0&&(Ee(fe,Vl),Ee(Ce,zl),Ee(Ce,$s)),Bt.mathMl===!0&&(Ee(fe,Rl),Ee(Ce,M1),Ee(Ce,$s))),De.tagCheck=null,De.attributeCheck=null,it(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?De.tagCheck=S.ADD_TAGS:ao(S.ADD_TAGS)&&(fe===pe&&(fe=vt(fe)),Ee(fe,S.ADD_TAGS,Oe))),it(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?De.attributeCheck=S.ADD_ATTR:ao(S.ADD_ATTR)&&(Ce===We&&(Ce=vt(Ce)),Ee(Ce,S.ADD_ATTR,Oe))),it(S,"ADD_URI_SAFE_ATTR")&&ao(S.ADD_URI_SAFE_ATTR)&&Ee(Lt,S.ADD_URI_SAFE_ATTR,Oe),it(S,"FORBID_CONTENTS")&&ao(S.FORBID_CONTENTS)&&(Ot===cr&&(Ot=vt(Ot)),Ee(Ot,S.FORBID_CONTENTS,Oe)),it(S,"ADD_FORBID_CONTENTS")&&ao(S.ADD_FORBID_CONTENTS)&&(Ot===cr&&(Ot=vt(Ot)),Ee(Ot,S.ADD_FORBID_CONTENTS,Oe)),xo&&(fe["#text"]=!0),ot&&Ee(fe,["html","head","body"]),fe.table&&(Ee(fe,["tbody"]),delete Pe.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Do('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Do('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=E;E=S.TRUSTED_TYPES_POLICY;try{T=D("")}catch(ae){throw E=W,ae}}else S.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=L()),E&&typeof T=="string"&&(T=D("")));dt&&dt(S),on=S},ii=Ee({},[...Fl,...Vl,...Cae]),$=Ee({},[...Rl,...bae]),J=function(S,O,W){return O.namespaceURI===It?S==="svg":O.namespaceURI===eo?S==="svg"&&(W==="annotation-xml"||Pt[W]):!!ii[S]},be=function(S,O,W){return O.namespaceURI===It?S==="math":O.namespaceURI===dr?S==="math"&&ti[W]:!!$[S]},ze=function(S,O,W){return O.namespaceURI===dr&&!ti[W]||O.namespaceURI===eo&&!Pt[W]?!1:!$[S]&&(hl[S]||!ii[S])},In=function(S){let O=C(S);(!O||!O.tagName)&&(O={namespaceURI:to,tagName:"template"});const W=wi(S.tagName),ae=wi(O.tagName);return ei[S.namespaceURI]?S.namespaceURI===dr?J(W,O,ae):S.namespaceURI===eo?be(W,O,ae):S.namespaceURI===It?ze(W,O,ae):!!(Ao==="application/xhtml+xml"&&ei[S.namespaceURI]):!1},rn=function(S){gr(e.removed,{element:S});try{C(S).removeChild(S)}catch{if(h(S),!C(S))throw Do("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},si=function(S){ai(S);const O=y(S);if(O){const ae=[];hr(O,ce=>{gr(ae,ce)}),hr(ae,ce=>{try{h(ce)}catch{}})}const W=_(S);if(W)for(let ae=W.length-1;ae>=0;--ae){const ce=W[ae],ve=ce&&ce.name;if(typeof ve=="string")try{S.removeAttribute(ve)}catch{}}},Pn=function(S,O){try{gr(e.removed,{attribute:O.getAttributeNode(S),from:O})}catch{gr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(S),S==="is")if(K||ue)try{rn(O)}catch{}else try{O.setAttribute(S,"")}catch{}},Cs=function(S){const O=_(S);if(O)for(let W=O.length-1;W>=0;--W){const ae=O[W],ce=ae&&ae.name;if(!(typeof ce!="string"||Ce[Oe(ce)]))try{S.removeAttribute(ce)}catch{}}},ai=function(S){const O=[S];for(;O.length>0;){const W=O.pop();(k?k(W):W.nodeType)===Ft.element&&Cs(W);const ce=y(W);if(ce)for(let ve=ce.length-1;ve>=0;--ve)O.push(ce[ve])}},qg=function(S){if(!gt)return;const O=[S];for(;O.length>0;){const W=O.pop(),ae=k?k(W):W.nodeType;if(ae===Ft.processingInstruction||ae===Ft.comment&&rt(O1,W.data)){try{h(W)}catch{}continue}if(ae===Ft.element){const ve=W,Le=Oe(w?w(W):W.nodeName);try{ve.hasAttribute&&ve.hasAttribute("patchsrc")&&ve.removeAttribute("patchsrc"),ve.hasAttribute&&ve.hasAttribute("for")&&Le!=="label"&&Le!=="output"&&ve.removeAttribute("for")}catch{}}const ce=y(W);if(ce)for(let ve=ce.length-1;ve>=0;--ve)O.push(ce[ve])}},dd=function(S){let O=null,W=null;if(B)S="<remove></remove>"+S;else{const ve=E1(S,/^[\r\n\t ]+/);W=ve&&ve[0]}Ao==="application/xhtml+xml"&&to===It&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ae=E?D(S):S;if(to===It)try{O=new d().parseFromString(ae,Ao)}catch{}if(!O||!O.documentElement){O=j.createDocument(to,"template",null);try{O.documentElement.innerHTML=To?T:ae}catch{}}const ce=O.body||O.documentElement;return S&&W&&ce.insertBefore(n.createTextNode(W),ce.childNodes[0]||null),to===It?F.call(O,ot?"html":"body")[0]:ot?O.documentElement:ce},fd=function(S){const O=b?b(S):S.ownerDocument;return V.call(O||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},bs=function(S){return S=hi(S,we," "),S=hi(S,se," "),S=hi(S,ie," "),S},gl=function(S){var O;S.normalize();const W=b?b(S):S.ownerDocument,ae=V.call(W||S,S,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ce=ae.nextNode();for(;ce;)ce.data=bs(ce.data),ce=ae.nextNode();const ve=(O=S.querySelectorAll)===null||O===void 0?void 0:O.call(S,"template");ve&&hr(ve,Le=>{fr(Le.content)&&gl(Le.content)})},ks=function(S){const O=w?w(S):null;return typeof O!="string"||Oe(O)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==k(S)||S.childNodes!==y(S)},fr=function(S){if(!k||typeof S!="object"||S===null)return!1;try{return k(S)===Ft.documentFragment}catch{return!1}},li=function(S){if(!k||typeof S!="object"||S===null)return!1;try{return typeof k(S)=="number"}catch{return!1}};function _n(X,S,O){X.length!==0&&hr(X,W=>{W.call(e,S,O,on)})}const Hg=function(S,O){return!!(gt&&S.hasChildNodes()&&!li(S.firstElementChild)&&rt(B1,S.textContent)&&rt(B1,S.innerHTML)||gt&&S.namespaceURI===It&&O==="style"&&li(S.firstElementChild)||S.nodeType===Ft.processingInstruction||gt&&S.nodeType===Ft.comment&&rt(O1,S.data))},jg=function(S,O,W){if(!Pe[O]&&gd(O)&&(_e.tagNameCheck instanceof RegExp&&rt(_e.tagNameCheck,O)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(O)))return!1;if(xo&&!Ot[O]){const ae=C(S),ce=y(S);if(ce&&ae){const ve=ce.length;for(let Le=ve-1;Le>=0;--Le){const Ue=S===W?m(ce[Le],!0):ce[Le];ae.insertBefore(Ue,g(S))}}}return rn(S),!0},pd=function(S,O,W,ae){return S.length===0?O:O===W||O===ae?vt(O):O},md=function(S,O){if(_n(ee.beforeSanitizeElements,S,null),S!==O&&C(S)===null)return $t&&ai(S),!0;if(ks(S))return rn(S),!0;const W=Oe(w?w(S):S.nodeName);if(fe=pd(ee.uponSanitizeElement,fe,pe,nn),_n(ee.uponSanitizeElement,S,{tagName:W,allowedTags:fe}),S!==O&&C(S)===null)return $t&&ai(S),!0;if(Hg(S,W))return rn(S),!0;if(Pe[W]||!(De.tagCheck instanceof Function&&De.tagCheck(W))&&!fe[W]){const ce=jg(S,W,O);return ce===!1&&_n(ee.afterSanitizeElements,S,null),ce}if((k?k(S):S.nodeType)===Ft.element&&!In(S)||(W==="noscript"||W==="noembed"||W==="noframes")&&rt(Mae,S.innerHTML))return rn(S),!0;if(Re&&S.nodeType===Ft.text){const ce=bs(S.textContent);S.textContent!==ce&&(gr(e.removed,{element:S.cloneNode()}),S.textContent=ce)}return _n(ee.afterSanitizeElements,S,null),!1},hd=function(S,O,W){if(Ve[O]||gt&&O==="patchsrc"||gt&&O==="for"&&S!=="label"&&S!=="output"||Ye&&(O==="id"||O==="name")&&(W in n||W in ri))return!1;const ae=Ce[O]||De.attributeCheck instanceof Function&&De.attributeCheck(O,S);if(!(ht&&rt(z,O))){if(!(Ge&&rt(oe,O))){if(ae){if(!Lt[O]){if(!rt(le,hi(W,Be,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&S!=="script"&&S1(W,"data:")===0&&gs[S])){if(!(vn&&!rt(ye,hi(W,Be,"")))){if(W)return!1}}}}}else if(!(gd(S)&&(_e.tagNameCheck instanceof RegExp&&rt(_e.tagNameCheck,S)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(S))&&(_e.attributeNameCheck instanceof RegExp&&rt(_e.attributeNameCheck,O)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(O,S))||O==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&rt(_e.tagNameCheck,W)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(W))))return!1}}return!0},Wg=Ee({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gd=function(S){return!Wg[wi(S)]&&rt(H,S)},Zg=function(S,O,W,ae){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(S,O)){case"TrustedHTML":return D(ae);case"TrustedScriptURL":return M(ae)}return ae},Kg=function(S,O,W,ae){try{W?S.setAttributeNS(W,O,ae):S.setAttribute(O,ae),ks(S)?rn(S):w1(e.removed)}catch{Pn(O,S)}},vd=function(S){_n(ee.beforeSanitizeAttributes,S,null);const O=S.attributes;if(!O||ks(S))return;Ce=pd(ee.uponSanitizeAttribute,Ce,We,yn);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let ae=O.length;const ce=Oe(S.nodeName);for(;ae--;){const ve=O[ae],Le=ve.name,Ue=ve.namespaceURI,xt=ve.value,Tt=Oe(Le),yl=xt;let bt=Le==="value"?yl:pae(yl);if(W.attrName=Tt,W.attrValue=bt,W.keepAttr=!0,W.forceKeepAttr=void 0,_n(ee.uponSanitizeAttribute,S,W),bt=W.attrValue,Ct&&(Tt==="id"||Tt==="name")&&S1(bt,xe)!==0&&(Pn(Le,S),bt=xe+bt),gt&&rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,bt)){Pn(Le,S);continue}if(Tt==="attributename"&&E1(bt,"href")){Pn(Le,S);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Pn(Le,S);continue}if(!Ln&&rt($ae,bt)){Pn(Le,S);continue}if(Re&&(bt=bs(bt)),!hd(ce,Tt,bt)){Pn(Le,S);continue}bt=Zg(ce,Tt,Ue,bt),bt!==yl&&Kg(S,Le,Ue,bt)}}_n(ee.afterSanitizeAttributes,S,null)},ws=function(S){let O=null;const W=fd(S);for(_n(ee.beforeSanitizeShadowDOM,S,null);O=W.nextNode();)if(_n(ee.uponSanitizeShadowNode,O,null),md(O,S),vd(O),fr(O.content)&&ws(O.content),(k?k(O):O.nodeType)===Ft.element){const ce=v(O);fr(ce)&&(vl(ce),ws(ce))}_n(ee.afterSanitizeShadowDOM,S,null)},vl=function(S){const O=[{node:S,shadow:null}];for(;O.length>0;){const W=O.pop();if(W.shadow){ws(W.shadow);continue}const ae=W.node,ve=(k?k(ae):ae.nodeType)===Ft.element,Le=y(ae);if(Le)for(let Ue=Le.length-1;Ue>=0;--Ue)O.push({node:Le[Ue],shadow:null});if(ve){const Ue=w?w(ae):null;if(typeof Ue=="string"&&Oe(Ue)==="template"){const xt=ae.content;fr(xt)&&O.push({node:xt,shadow:null})}}if(ve){const Ue=v(ae);fr(Ue)&&O.push({node:null,shadow:Ue},{node:Ue,shadow:null})}}};return e.sanitize=function(X){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,W=null,ae=null,ce=null;if(To=!X,To&&(X="<!-->"),typeof X!="string"&&!li(X)&&(X=yae(X),typeof X!="string"))throw Do("dirty is not a string, aborting");if(!e.isSupported)return X;St?(fe=nn,Ce=yn):no(S),(ee.uponSanitizeElement.length>0||ee.uponSanitizeAttribute.length>0)&&(fe=vt(fe)),ee.uponSanitizeAttribute.length>0&&(Ce=vt(Ce)),e.removed=[];const ve=$t&&typeof X!="string"&&li(X);if(ve){qg(X);const xt=w?w(X):X.nodeName;if(typeof xt=="string"){const Tt=Oe(xt);if(!fe[Tt]||Pe[Tt])throw si(X),Do("root node is forbidden and cannot be sanitized in-place")}if(ks(X))throw si(X),Do("root node is clobbered and cannot be sanitized in-place");try{vl(X)}catch(Tt){throw si(X),Tt}}else if(li(X))O=dd("<!---->"),W=O.ownerDocument.importNode(X,!0),W.nodeType===Ft.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?O=W:O.appendChild(W),vl(W);else{if(!K&&!Re&&!ot&&X.indexOf("<")===-1)return E&&Ke?D(X):X;if(O=dd(X),!O)return K?null:Ke?T:""}O&&B&&rn(O.firstChild);const Le=ve?X:O;try{const xt=fd(Le);for(;ae=xt.nextNode();)md(ae,Le),vd(ae),fr(ae.content)&&ws(ae.content)}catch(xt){throw ve&&(si(X),hr(e.removed,Tt=>{Tt.element&&ai(Tt.element)})),xt}if(ve)return hr(e.removed,xt=>{xt.element&&ai(xt.element)}),Re&&gl(X),X;if(K){if(Re&&gl(O),ue)for(ce=q.call(O.ownerDocument);O.firstChild;)ce.appendChild(O.firstChild);else ce=O;return(Ce.shadowroot||Ce.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let Ue=ot?O.outerHTML:O.innerHTML;return ot&&fe["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&rt(Nae,O.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
19
+ `+Ue),Re&&(Ue=bs(Ue)),E&&Ke?D(Ue):Ue},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};no(X),St=!0,nn=fe,yn=Ce},e.clearConfig=function(){on=null,St=!1,nn=null,yn=null,E=x,T=""},e.isValidAttribute=function(X,S,O){on||no({});const W=Oe(X),ae=Oe(S);return hd(W,ae,O)},e.addHook=function(X,S){typeof S=="function"&&it(ee,X)&&gr(ee[X],S)},e.removeHook=function(X,S){if(it(ee,X)){if(S!==void 0){const O=dae(ee[X],S);return O===-1?void 0:fae(ee[X],O,1)[0]}return w1(ee[X])}},e.removeHooks=function(X){it(ee,X)&&(ee[X]=[])},e.removeAllHooks=function(){ee=L1()},e}var Lae=km();const Iae=["innerHTML"],Pae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},wm=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new nae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Lae.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,Iae)):(i.openBlock(),i.createElementBlock("div",Pae,i.toDisplayString(t.placeholder),1))}});function G(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 Em(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 hn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Fae=hn&&"documentMode"in document?document.documentMode:null,an=hn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Yo=hn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ra=!(!hn||!("InputEvent"in window)||Fae)&&"getTargetRanges"in new window.InputEvent("input"),qi=hn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Fr=hn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Vae=hn&&/Android/.test(navigator.userAgent),Sm=hn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),I1=hn&&Vae&&Sm,Hi=hn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&an&&!Sm;function xm(...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 Rae=0,zae=1,Uae=2,Tm=128,qae=1,Hae=2,jae=3,Wae=4,Zae=5,Kae=6,Ka=qi||Fr||Hi?" ":"​",yo=`
20
20
 
21
- `,Gae=Ko?" ":Ka,bt={bold:1,capitalize:1024,code:16,highlight:Tm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Yae={directionless:1,unmergeable:2},P1={center:2,end:6,justify:4,left:1,right:3,start:5},Jae={[Hae]:"center",[Kae]:"end",[Wae]:"justify",[qae]:"left",[jae]:"right",[Zae]:"start"},Xae={normal:0,segmented:2,token:1},Qae={[Rae]:"normal",[Uae]:"segmented",[zae]:"token"},F1="$config";function Am(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(R(a)&&Am(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let gc=!1,Cu=0;function ele(t){Cu=t.timeStamp}function Ul(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&ol(t,n)!==void 0}function tle(t,e,n){const o=fn(en(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Iu(e,a,r,s,!1)}function nle(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Xn(e)&&n.isAttached()}function ole(t,e,n,o){for(let r=t;r&&!sce(r);r=ps(r)){const s=ol(r,e);if(s!==void 0){const a=tt(s,n);if(a)return Te(a)||!Xe(r)?void 0:[r,a]}else if(r===o)return[o,Dh(n)]}}function Nm(t,e,n){gc=!0;const o=performance.now()-Cu>100;try{Ft(t,()=>{const r=te()||function(p){return p.getEditorState().read(()=>{const m=te();return m!==null?m.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 m=e[p],h=m.type,g=m.target,y=ole(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&Q(v)&&Xn(g)&&nle(r,g,v)&&tle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Ah(E),x=E.parentNode;if(x!=null&&E!==c&&T===null&&!Ul(E,x,t)){if(Ko){const N=(Xe(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}x.removeChild(E)}}const k=m.removedNodes,w=k.length;if(w>0){let b=0;for(let E=0;E<w;E++){const T=k[E];(Ul(T,g,t)||c===T)&&(g.appendChild(T),b++)}w!==b&&s.set(C,v)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],v=C.parentNode;v==null||C.nodeName!=="BR"||Ul(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&ht(r),Ko&&Oh(t)&&r.insertRawText(d))})}finally{gc=!1}}function Dm(t){const e=t._observer;e!==null&&Nm(t,e.takeRecords(),e)}function Mm(t){(function(e){Cu===0&&en(e).addEventListener("textInput",ele,!0)})(t),t._observer=new MutationObserver((e,n)=>{Nm(t,e,n)})}let rle=class{constructor(e,n){U(this,"key");U(this,"parse");U(this,"unparse");U(this,"isEqual");U(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||lle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function ile(t,e){return new rle(t,e)}function $m(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function ql(t,e,n){let o;if(it(),typeof n=="function"){const s=t.getLatest(),a=$m(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Om(r).updateFromKnown(e,o),r}function sle(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}=sl(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 ale=class Bm{constructor(e,n,o=void 0,r=new Map,s=void 0){U(this,"node");U(this,"knownState");U(this,"unknownState");U(this,"sharedNodeState");U(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 m=c.get(p);m&&d.has(m)||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 V1(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 Bm(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=V1(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 Om(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ale(e,Lm(e));return e.__state=n,n}function Lm(t){return t.__state?t.__state.sharedNodeState:Eh(il(),t.getType()).sharedNodeState}function V1(t){if(t)for(const e in t)return t}function lle(t){return t}function R1(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 z1(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 U1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function q1(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&&R1(p,d,f)||f&&R1(p,f,d)||d&&z1(p,d,f)||f&&z1(p,f,d))}(c,u))}function H1(t,e){const n=t.mergeWithSibling(e),o=je()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function j1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(q1(e,o)){o=H1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(q1(o,n)){o=H1(o,n);break}break}n.remove()}}else o.remove()}function ia(t){return W1(t.anchor),W1(t.focus),t}function W1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),Q(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!R(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Go,vt,ji,Ga,vc,yc,Yo,cn,_c,Wi,et="",Cn=null,bn="",zn="",_r=!1,sa=!1;function aa(t,e){const n=Yo.get(t);if(e!==null){const o=wc(t);o.parentNode===e&&e.removeChild(o)}if(cn.has(t)||vt._keyToDOMMap.delete(t),R(n)){const o=ca(n,Yo);Cc(o,0,o.length-1,null)}n!==void 0&&Pu(Wi,ji,Ga,n,"destroyed")}function Cc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&aa(s,o)}}function No(t,e){t.setProperty("text-align",e)}const cle="40px";function Im(t,e){const n=Go.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")||cle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Pm(t,e){const n=t.style;e===0?No(n,""):e===1?No(n,"left"):e===2?No(n,"center"):e===3?No(n,"right"):e===4?No(n,"justify"):e===5?No(n,"start"):e===6&&No(n,"end")}function bc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Ye(o))return null;const s=o.getParentOrThrow();return Ye(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function la(t,e){const n=cn.get(t);n===void 0&&G(60);const o=n.createDOM(Go,vt);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,vt),Q(n)?o.setAttribute("data-lexical-text","true"):Te(n)&&o.setAttribute("data-lexical-decorator","true"),R(n)){const r=n.__indent,s=n.__size;if(bc(o,n),r!==0&&Im(o,r),s!==0){const l=s-1;kc(ca(n,cn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Pm(o,a),n.isInline()||Fm(null,n,o),rl(n)&&(et+=vo,zn+=vo)}else{const r=n.getTextContent();if(Te(n)){const s=n.decorate(vt,Go);s!==null&&Vm(t,s),o.contentEditable="false"}et+=r,zn+=r}return e!==null&&e.insertChild(o),Pu(Wi,ji,Ga,n,"created"),o}function kc(t,e,n,o,r){const s=et;et="";let a=n;for(;a<=o;++a){la(t[a],r);const l=cn.get(t[a]);l!==null&&Q(l)&&(Cn===null&&(Cn=l.getFormat()),bn===""&&(bn=l.getStyle()))}rl(e)&&(et+=vo),r.element.__lexicalTextContent=et,et=s+et}function Z1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return uo(o)?"line-break":Te(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Fm(t,e,n){const o=Z1(t,Yo),r=Z1(e,cn);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ule(t,e,n){var o;Cn=null,bn="",function(r,s,a){const l=et,c=r.__size,u=s.__size;et="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)Ei(f,d);else{const h=wc(f),g=la(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}aa(f,null)}const m=cn.get(p);Q(m)&&(Cn===null&&(Cn=m.getFormat()),bn===""&&(bn=m.getStyle()))}else{const f=ca(r,Yo),p=ca(s,cn);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&kc(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;Cc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,k=C-1;let w,b,E=v.getFirstChild(),T=0,x=0;for(;T<=_&&x<=k;){const A=h[T],D=g[x];if(A===D)E=Hl(Ei(D,v.element)),T++,x++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const I=b.has(A),P=w.has(D);if(I)if(P){const j=Xo(vt,D);j===E?E=Hl(Ei(D,v.element)):(v.withBefore(E).insertChild(j),Ei(D,v.element)),T++,x++}else la(D,v.withBefore(E)),x++;else E=Hl(wc(A)),aa(A,v.element),T++}const M=cn.get(D);M!==null&&Q(M)&&(Cn===null&&(Cn=M.getFormat()),bn===""&&(bn=M.getStyle()))}const N=T>_,L=x>k;if(N&&!L){const A=g[k+1],D=A===void 0?null:vt.getElementByKey(A);kc(g,m,x,k,v.withBefore(D))}else L&&!N&&Cc(h,T,_,v.element)})(s,f,p,c,u,a)}rl(s)&&(et+=vo),d.__lexicalTextContent=et,et=l+et}(t,e,e.getDOMSlot(n)),o=e,Cn==null||Cn===o.__textFormat||sa||o.setTextFormat(Cn),function(r){bn===""||bn===r.__textStyle||sa||r.setTextStyle(bn)}(e)}function ca(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&G(101),n.push(o),o=r.__next}return n}function Ei(t,e){const n=Yo.get(t);let o=cn.get(t);n!==void 0&&o!==void 0||G(61);const r=_r||yc.has(t)||vc.has(t),s=Xo(vt,t);if(n===o&&!r){if(R(n)){const a=s.__lexicalTextContent;a!==void 0&&(et+=a,zn+=a)}else{const a=n.getTextContent();zn+=a,et+=a}return s}if(n!==o&&r&&Pu(Wi,ji,Ga,o,"updated"),o.updateDOM(n,s,Go)){const a=la(t,null);return e===null&&G(62),e.replaceChild(a,s),aa(t,null),a}if(R(n)&&R(o)){const a=o.__indent;(_r||a!==n.__indent)&&Im(s,a);const l=o.__format;if((_r||l!==n.__format)&&Pm(s,l),r&&(ule(n,o,s),Ye(o)||o.isInline()||Fm(n,o,s)),rl(o)&&(et+=vo,zn+=vo),(_r||o.__dir!==n.__dir)&&(bc(s,o),Ye(o)&&!_r))for(const c of o.getChildren())R(c)&&bc(Xo(vt,c.getKey()),c)}else{const a=o.getTextContent();if(Te(o)){const l=o.decorate(vt,Go);l!==null&&Vm(t,l)}et+=a,zn+=a}if(!sa&&Ye(o)&&o.__cachedText!==zn){const a=o.getWritable();a.__cachedText=zn,o=a}return s}function Vm(t,e){let n=vt._pendingDecorators;const o=vt._decorators;if(n===null){if(o[t]===e)return;n=Nh(vt)}n[t]=e}function Hl(t){let e=t.nextSibling;return e!==null&&e===vt._blockCursorElement&&(e=e.nextSibling),e}function dle(t,e,n,o,r,s){et="",zn="",_r=o===2,vt=n,Go=n._config,ji=n._nodes,Ga=vt._listeners.mutation,vc=r,yc=s,Yo=t._nodeMap,cn=e._nodeMap,sa=e._readOnly,_c=new Map(n._keyToDOMMap);const a=new Map;return Wi=a,Ei("root",null),vt=void 0,ji=void 0,vc=void 0,yc=void 0,Yo=void 0,cn=void 0,Go=void 0,_c=void 0,Wi=void 0,a}function wc(t){const e=_c.get(t);return e===void 0&&G(75,t),e}function de(t){return{type:t}}const Rm=de("SELECTION_CHANGE_COMMAND"),fle=de("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),zm=de("CLICK_COMMAND"),zo=de("DELETE_CHARACTER_COMMAND"),Er=de("INSERT_LINE_BREAK_COMMAND"),Zi=de("INSERT_PARAGRAPH_COMMAND"),Sr=de("CONTROLLED_TEXT_INSERTION_COMMAND"),bu=de("PASTE_COMMAND"),Ec=de("REMOVE_TEXT_COMMAND"),Ki=de("DELETE_WORD_COMMAND"),Gi=de("DELETE_LINE_COMMAND"),Kt=de("FORMAT_TEXT_COMMAND"),ku=de("UNDO_COMMAND"),wu=de("REDO_COMMAND"),ple=de("KEYDOWN_COMMAND"),Um=de("KEY_ARROW_RIGHT_COMMAND"),mle=de("MOVE_TO_END"),qm=de("KEY_ARROW_LEFT_COMMAND"),hle=de("MOVE_TO_START"),Hm=de("KEY_ARROW_UP_COMMAND"),jm=de("KEY_ARROW_DOWN_COMMAND"),ua=de("KEY_ENTER_COMMAND"),Wm=de("KEY_SPACE_COMMAND"),Zm=de("KEY_BACKSPACE_COMMAND"),Km=de("KEY_ESCAPE_COMMAND"),Gm=de("KEY_DELETE_COMMAND"),Ym=de("KEY_TAB_COMMAND"),gle=de("INSERT_TAB_COMMAND"),vle=de("INDENT_CONTENT_COMMAND"),K1=de("OUTDENT_CONTENT_COMMAND"),Jm=de("DROP_COMMAND"),yle=de("FORMAT_ELEMENT_COMMAND"),Xm=de("DRAGSTART_COMMAND"),Qm=de("DRAGOVER_COMMAND"),_le=de("DRAGEND_COMMAND"),Ya=de("COPY_COMMAND"),Eu=de("CUT_COMMAND"),Sc=de("SELECT_ALL_COMMAND"),Cle=de("CLEAR_EDITOR_COMMAND"),ble=de("CLEAR_HISTORY_COMMAND"),Bs=de("CAN_REDO_COMMAND"),Os=de("CAN_UNDO_COMMAND"),kle=de("FOCUS_COMMAND"),wle=de("BLUR_COMMAND"),Ele=de("KEY_MODIFIER_COMMAND"),Pn=Object.freeze({}),xc=[["keydown",function(t,e){if(Ni=t.timeStamp,eh=t.key,!e.isComposing()&&!re(e,ple,t)&&t.key!=null){if(jl&&Ef(t))return Ft(e,()=>{Ls(e,Wl)}),jl=!1,void(Wl="");if(function(n){return Me(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Um,t);else if(function(n){return Me(n,"ArrowRight",Vn)}(t))re(e,mle,t);else if(function(n){return Me(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,qm,t);else if(function(n){return Me(n,"ArrowLeft",Vn)}(t))re(e,hle,t);else if(function(n){return Me(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,Hm,t);else if(function(n){return Me(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,jm,t);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Di=!0,re(e,ua,t);else if(function(n){return n.key===" "}(t))re(e,Wm,t);else if(function(n){return an&&Me(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Di=!0,re(e,Er,!0);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Di=!1,re(e,ua,t);else if(function(n){return Me(n,"Backspace",{shiftKey:"any"})||an&&Me(n,"h",{ctrlKey:!0})}(t))Ef(t)?re(e,Zm,t):(t.preventDefault(),re(e,zo,!0));else if(function(n){return n.key==="Escape"}(t))re(e,Km,t);else if(function(n){return Me(n,"Delete",{})||an&&Me(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Gm,t):(t.preventDefault(),re(e,zo,!1));else if(function(n){return Me(n,"Backspace",wf)}(t))t.preventDefault(),re(e,Ki,!0);else if(function(n){return Me(n,"Delete",wf)}(t))t.preventDefault(),re(e,Ki,!1);else if(function(n){return an&&Me(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Gi,!0);else if(function(n){return an&&(Me(n,"Delete",{metaKey:!0})||Me(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Gi,!1);else if(function(n){return Me(n,"b",Vn)}(t))t.preventDefault(),re(e,Kt,"bold");else if(function(n){return Me(n,"u",Vn)}(t))t.preventDefault(),re(e,Kt,"underline");else if(function(n){return Me(n,"i",Vn)}(t))t.preventDefault(),re(e,Kt,"italic");else if(function(n){return Me(n,"Tab",{shiftKey:"any"})}(t))re(e,Ym,t);else if(function(n){return Me(n,"z",Vn)}(t))t.preventDefault(),re(e,ku,void 0);else if(function(n){return an?Me(n,"z",{metaKey:!0,shiftKey:!0}):Me(n,"y",{ctrlKey:!0})||Me(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,wu,void 0);else{const n=e._editorState._selection;n===null||K(n)?Sf(t)&&(t.preventDefault(),re(e,Sc,t)):function(o){return Me(o,"c",Vn)}(t)?(t.preventDefault(),re(e,Ya,t)):function(o){return Me(o,"x",Vn)}(t)?(t.preventDefault(),re(e,Eu,t)):Sf(t)&&(t.preventDefault(),re(e,Sc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,Ele,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Kr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Ft(e,()=>{Cf(n)||(Nc=!0)})}],["compositionstart",function(t,e){Ft(e,()=>{const n=te();if(K(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();dt(o.key),(t.timeStamp<Ni+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||Q(r)&&r.getStyle()!==n.style)&&re(e,Sr,Gae)}})}],["compositionend",function(t,e){Ko?vi=!0:Pr||!qi&&!Hi?Ft(e,()=>{Ls(e,t.data)}):(jl=!0,Wl=t.data)}],["input",function(t,e){t.stopPropagation(),Ft(e,()=>{if(Xe(t.target)&&Cf(t.target))return;const n=te(),o=t.data,r=ih(t);if(o!=null&&K(n)&&oh(n,r,o,t.timeStamp,!1)){vi&&(Ls(e,o),vi=!1);const s=n.anchor.getNode(),a=fn(en(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;ra&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Bh(a.anchorNode)||re(e,Sr,o);const d=o.length;Ko&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),qi||Pr||Hi||!e.isComposing()||(Ni=0,dt(null))}else Lu(!1,e,o!==null?o:void 0),vi&&(Ls(e,o||void 0),vi=!1);(function(){it();const s=je();Dm(s)})()},{event:t}),Cr=null}],["click",function(t,e){Ft(e,()=>{const n=te(),o=fn(en(e)),r=Zr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Ye(a)&&We().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=Jt(a,c=>R(c)&&!c.isInline());R(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(Xe(s)||Xn(s))&&ht(xu(r,o,e,t))}}re(e,zm,t)})}],["cut",Pn],["copy",Pn],["dragstart",Pn],["dragover",Pn],["dragend",Pn],["paste",Pn],["focus",Pn],["blur",Pn],["drop",Pn]];ra&&xc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=ih(n);r==="deleteCompositionText"||Ko&&Oh(o)||r!=="insertCompositionText"&&Ft(o,()=>{const a=te();if(r==="deleteContentBackward"){if(a===null){const m=Zr();if(!K(m))return;ht(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,eh==="MediaLast"&&l<Ni+30&&o.isComposing()&&m){if(dt(null),Ni=0,setTimeout(()=>{Ft(o,()=>{dt(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),Q(h)||G(142),rh(a,h)}}else{dt(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let v=I1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Te(Oc(a.anchor,!0))),!v){re(o,zo,!0);const _=te();I1&&K(_)&&_.isCollapsed()&&(Lo=_,setTimeout(()=>Lo=null))}}return}}var l;if(!K(a))return;const c=n.data;Cr!==null&&Lu(!1,o,Cr),a.dirty&&Cr===null||!a.isCollapsed()||Ye(a.anchor.getNode())||s===null||a.applyDOMRange(s),Cr=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,Sr,n);break;case"insertFromComposition":dt(null),re(o,Sr,n);break;case"insertLineBreak":dt(null),re(o,Er,!1);break;case"insertParagraph":dt(null),Di&&!Pr?(Di=!1,re(o,Er,!1)):re(o,Zi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,bu,n);break;case"deleteByComposition":(function(m,h){return m!==h||R(m)||R(h)||!Uo(m)||!Uo(h)})(f,p)&&re(o,Ec,n);break;case"deleteByDrag":case"deleteByCut":re(o,Ec,n);break;case"deleteContent":re(o,zo,!1);break;case"deleteWordBackward":re(o,Ki,!0);break;case"deleteWordForward":re(o,Ki,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Gi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Gi,!1);break;case"formatStrikeThrough":re(o,Kt,"strikethrough");break;case"formatBold":re(o,Kt,"bold");break;case"formatItalic":re(o,Kt,"italic");break;case"formatUnderline":re(o,Kt,"underline");break;case"historyUndo":re(o,ku,void 0);break;case"historyRedo":re(o,wu,void 0)}else{if(c===`
22
- `)n.preventDefault(),re(o,Er,!1);else if(c===vo)n.preventDefault(),re(o,Zi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&oh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),re(o,Sr,c)):Cr=c;th=n.timeStamp}})}(t,e)]);let Ni=0,eh=null,th=0,Cr=null;const Tc=new WeakMap,da=new WeakMap;let Ac=!1,Nc=!1,Di=!1,vi=!1,jl=!1,Wl="",Lo=null,nh=[0,"",0,"root",0];function oh(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=je(),u=fn(en(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!Q(l)||(!r&&(!ra||th<o+50)||l.isDirty()&&m<2||Mh(n))&&s.offset!==a.offset&&!l.isComposing()||Rn(l)||l.isDirty()&&m>1||(r||!ra)&&p!==null&&!l.isComposing()&&d!==Fr(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),v=Uo(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const k=_.getPreviousSibling();return(Q(k)||R(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function G1(t,e){return Xn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Y1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Ac&&(Ac=!1,G1(o,r)&&G1(s,a)&&!Lo)||Ft(e,()=>{if(!n)return void ht(null);if(!fs(e,o,s))return;let l=te();if(Lo&&K(l)&&l.isCollapsed()){const c=l.anchor,u=Lo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Lo.clone(),ht(l))}if(Lo=null,K(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=en(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=nh,C=We(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)js(l,p,m);else if(c.type==="text")Q(u)||G(141),rh(l,u);else if(c.type==="element"&&!v){R(u)||G(259);const _=c.getNode();_.isEmpty()?function(k,w){const b=w.getTextFormat(),E=w.getTextStyle();js(k,b,E)}(l,_):js(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:r,y=h?r:a,C=h?f:d,v=h?d:f;let _=2047,k=!1;for(let w=0;w<m;w++){const b=p[w],E=b.getTextContentSize();if(Q(b)&&E!==0&&!(w===0&&b.__key===C&&g===E||w===m-1&&b.__key===v&&y===0)&&(k=!0,_&=b.getFormat(),_===0))break}l.format=k?_:0}}re(e,Rm,void 0)})}function js(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function rh(t,e){js(t,e.getFormat(),e.getStyle())}function ih(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Ls(t,e){const n=t._compositionKey;if(dt(null),n!==null&&e!=null){if(e===""){const o=tt(n),r=Fr(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&Q(o)&&Iu(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
- `){const o=te();if(K(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,ua,null)}}}Lu(!0,t,e)}function sh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function ah(t){const e=oce(t.target);if(e===null)return;const n=Sh(e.anchorNode);if(n===null)return;Nc&&(Nc=!1,Ft(n,()=>{const c=Zr(),u=e.anchorNode;(Xe(u)||Xn(u))&&ht(xu(c,e,n,t))}));const o=Ou(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&Y1(e,l,!1),Y1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function J1(t){t._lexicalHandled=!0}function X1(t){return t._lexicalHandled===!0}const Q1=()=>{};function Sle(t){const e=Tc.get(t);if(e===void 0)return void Q1();const n=da.get(e);if(n===void 0)return void Q1();const o=n-1;o>=0||G(164),Tc.delete(t),da.set(e,o),o===0&&e.removeEventListener("selectionchange",ah);const r=nl(t);Bu(r)?(function(a){if(a._parentEditor!==null){const l=Ou(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&G(198);const s=sh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Dc(t,e,n){it();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=te();if(!K(c)||!R(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Lc(f,l)&&u.set(l.__key,0,"element"),Lc(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(K(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(ha(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ha(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Pt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();qo(t),ma(s,r,l,-1)}else qo(t);n||kt(r)||r.canBeEmpty()||!r.isEmpty()||Dc(r,e),e&&s&&Ye(r)&&r.isEmpty()&&r.selectEnd()}const lh=Symbol.for("ephemeral");function fa(t){return t[lh]||!1}class un{constructor(e){U(this,"__type");U(this,"__key");U(this,"__parent");U(this,"__prev");U(this,"__next");U(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}),Yle(this,e)}static getType(){const{ownNodeType:e}=sl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(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(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=tt(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(Q(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(Te(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:tt(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(kt(n))return R(e)||e===this&&Te(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(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:tt(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:tt(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?Zs(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Zs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Rh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Zs(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&&G(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=je()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(fa(this))return this;const e=tt(this.__key);return e===null&&G(113),e}getWritable(){if(fa(this))return this;it();const e=wo(),n=je(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(r))return va(s),s;const c=Ph(s);return a.add(r),va(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(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){G(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Lm(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Om(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Dc(this,!0,e)}replace(e,n){it();let o=te();o!==null&&(o=o.clone()),Xl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;qo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;if(Dc(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=m,l.__parent=h,c.__size=u,n&&(R(this)&&R(l)||G(139),this.getChildren().forEach(g=>{l.append(g)})),K(o)){ht(o);const g=o.anchor,y=o.focus;g.key===s&&of(g,l),y.key===s&&of(y,l)}return ao()===s&&dt(a),l}insertAfter(e,n=!0){it(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=te();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(qo(r),K(a)){const h=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=y.type==="element"&&y.key===h&&y.offset===m+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&&K(a)){const m=this.getIndexWithinParent();ma(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){it(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;qo(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&&K(d)&&ma(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Fe()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){it();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(R(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){it();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(R(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}U(un,"importDOM");const pa="historic",xle="history-push",Mi="history-merge",Tle="paste",ch="collaboration",Ale="skip-scroll-into-view",Nle="skip-dom-selection",Dle="skip-selection-focus";class ss extends un{static getType(){return"linebreak"}static clone(e){return new ss(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&&ya(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ya(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}return!1}(e)?null:{conversion:Mle,priority:0}}}static importJSON(e){return dn().updateFromJSON(e)}}function Mle(t){return{node:dn()}}function dn(){return gn(new ss)}function uo(t){return t instanceof ss}function Is(t){return Xn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Zl(t,e){return 16&e?"code":e&Tm?"mark":32&e?"sub":64&e?"sup":null}function Kl(t,e){return 1&e?"strong":2&e?"em":"span"}function uh(t,e,n,o,r){const s=o.classList;let a=Tr(r,"base");a!==void 0&&s.add(...a),a=Tr(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 bt){const d=bt[u];if(a=Tr(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 dh(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Ka:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Ko){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function ef(t,e,n,o,r,s){dh(r,t,e);const a=s.theme.text;a!==void 0&&uh(0,0,o,t,a)}function Ps(t,e){const n=document.createElement(e);return n.appendChild(t),n}class ko extends un{constructor(n="",o){super(o);U(this,"__text");U(this,"__format");U(this,"__style");U(this,"__mode");U(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 ko(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 Qae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===ao()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=bt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ga(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Zl(0,r),a=Kl(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)),ef(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=Zl(0,a),u=Zl(0,l),d=Kl(0,a),f=Kl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return ef(C,this,0,l,s,r),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),dh(s,p,this);const m=r.theme.text;m!==void 0&&a!==l&&uh(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Lle,priority:0}),b:()=>({conversion:Ble,priority:0}),code:()=>({conversion:Fn,priority:0}),em:()=>({conversion:Fn,priority:0}),i:()=>({conversion:Fn,priority:0}),mark:()=>({conversion:Fn,priority:0}),s:()=>({conversion:Fn,priority:0}),span:()=>({conversion:$le,priority:0}),strong:()=>({conversion:Fn,priority:0}),sub:()=>({conversion:Fn,priority:0}),sup:()=>({conversion:Fn,priority:0}),u:()=>({conversion:Fn,priority:0})}}static importJSON(n){return Ke().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 Xe(o)||G(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=Ps(o,"b")),this.hasFormat("italic")&&(o=Ps(o,"i")),this.hasFormat("strikethrough")&&(o=Ps(o,"s")),this.hasFormat("underline")&&(o=Ps(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"?bt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Yae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ga(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=Xae[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){it();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(!K(a))return mh(c,r,c,s,"text","text");{const u=ao();u!==a.anchor.key&&u!==a.focus.key||dt(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&&K(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){it();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=ao(),l=r.length;n.sort((x,N)=>x-N),n.push(l);const c=[],u=n.length;for(let x=0,N=0;x<l&&N<=u;N++){const L=n[N];L>x&&(c.push(r.slice(x,L)),x=L)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,v=null,_=null;const k=te();if(K(k)){const[x,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];x.type==="text"&&x.key===s&&(v=x),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Ke(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=U1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let x=1;x<d;x++){const N=Ke(c[x]);N.__format=h,N.__style=g,N.__detail=y,N.__state=U1(o,N);const L=N.__key;a===s&&dt(L),w.push(N)}const b=v?v.offset:null,E=_?_.offset:null;let T=0;for(const x of w){if(!v&&!_)break;const N=T+x.getTextContentSize();if(v!==null&&b!==null&&b<=N&&b>=T&&(v.set(x.getKey(),b-T,"text"),b<N&&(v=null)),_!==null&&E!==null&&E<=N&&E>=T){_.set(x.getKey(),E-T,"text");break}T=N}if(p!==null){(function(L){const A=L.getPreviousSibling(),D=L.getNextSibling();A!==null&&va(A),D!==null&&va(D)})(this);const x=p.getWritable(),N=this.getIndexWithinParent();C?(x.splice(N,0,w),this.remove()):x.splice(N,1,w),K(k)&&ma(k,p,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;ao()===s&&dt(r);const c=te();if(K(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&df(p,o,r,n,l),m!==null&&m.key===s&&df(m,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 $le(t){return{forChild:Su(t.style),node:null}}function Ble(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Su(e.style,n?void 0:"bold"),node:null}}const tf=new WeakMap;function Ole(t){if(!Xe(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Lle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=tf.get(s))===void 0&&!Ole(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)tf.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
+ `,Gae=Yo?" ":Ka,kt={bold:1,capitalize:1024,code:16,highlight:Tm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Yae={directionless:1,unmergeable:2},P1={center:2,end:6,justify:4,left:1,right:3,start:5},Jae={[Hae]:"center",[Kae]:"end",[Wae]:"justify",[qae]:"left",[jae]:"right",[Zae]:"start"},Xae={normal:0,segmented:2,token:1},Qae={[Rae]:"normal",[Uae]:"segmented",[zae]:"token"},F1="$config";function Am(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(R(a)&&Am(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let gc=!1,Cu=0;function ele(t){Cu=t.timeStamp}function Ul(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&ol(t,n)!==void 0}function tle(t,e,n){const o=fn(tn(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Iu(e,a,r,s,!1)}function nle(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Qn(e)&&n.isAttached()}function ole(t,e,n,o){for(let r=t;r&&!sce(r);r=ps(r)){const s=ol(r,e);if(s!==void 0){const a=nt(s,n);if(a)return Te(a)||!Qe(r)?void 0:[r,a]}else if(r===o)return[o,Dh(n)]}}function Nm(t,e,n){gc=!0;const o=performance.now()-Cu>100;try{Rt(t,()=>{const r=te()||function(p){return p.getEditorState().read(()=>{const m=te();return m!==null?m.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 m=e[p],h=m.type,g=m.target,y=ole(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&Q(v)&&Qn(g)&&nle(r,g,v)&&tle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Ah(E),x=E.parentNode;if(x!=null&&E!==c&&T===null&&!Ul(E,x,t)){if(Yo){const N=(Qe(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}x.removeChild(E)}}const k=m.removedNodes,w=k.length;if(w>0){let b=0;for(let E=0;E<w;E++){const T=k[E];(Ul(T,g,t)||c===T)&&(g.appendChild(T),b++)}w!==b&&s.set(C,v)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],v=C.parentNode;v==null||C.nodeName!=="BR"||Ul(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&mt(r),Yo&&Oh(t)&&r.insertRawText(d))})}finally{gc=!1}}function Dm(t){const e=t._observer;e!==null&&Nm(t,e.takeRecords(),e)}function Mm(t){(function(e){Cu===0&&tn(e).addEventListener("textInput",ele,!0)})(t),t._observer=new MutationObserver((e,n)=>{Nm(t,e,n)})}let rle=class{constructor(e,n){U(this,"key");U(this,"parse");U(this,"unparse");U(this,"isEqual");U(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||lle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function ile(t,e){return new rle(t,e)}function $m(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function ql(t,e,n){let o;if(st(),typeof n=="function"){const s=t.getLatest(),a=$m(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Om(r).updateFromKnown(e,o),r}function sle(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}=sl(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 ale=class Bm{constructor(e,n,o=void 0,r=new Map,s=void 0){U(this,"node");U(this,"knownState");U(this,"unknownState");U(this,"sharedNodeState");U(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 m=c.get(p);m&&d.has(m)||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 V1(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 Bm(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=V1(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 Om(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ale(e,Lm(e));return e.__state=n,n}function Lm(t){return t.__state?t.__state.sharedNodeState:Eh(il(),t.getType()).sharedNodeState}function V1(t){if(t)for(const e in t)return t}function lle(t){return t}function R1(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 z1(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 U1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function q1(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&&R1(p,d,f)||f&&R1(p,f,d)||d&&z1(p,d,f)||f&&z1(p,f,d))}(c,u))}function H1(t,e){const n=t.mergeWithSibling(e),o=He()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function j1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(q1(e,o)){o=H1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(q1(o,n)){o=H1(o,n);break}break}n.remove()}}else o.remove()}function ia(t){return W1(t.anchor),W1(t.focus),t}function W1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),Q(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!R(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Jo,yt,ji,Ga,vc,yc,Xo,cn,_c,Wi,tt="",bn=null,kn="",Un="",Cr=!1,sa=!1;function aa(t,e){const n=Xo.get(t);if(e!==null){const o=wc(t);o.parentNode===e&&e.removeChild(o)}if(cn.has(t)||yt._keyToDOMMap.delete(t),R(n)){const o=ca(n,Xo);Cc(o,0,o.length-1,null)}n!==void 0&&Pu(Wi,ji,Ga,n,"destroyed")}function Cc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&aa(s,o)}}function Mo(t,e){t.setProperty("text-align",e)}const cle="40px";function Im(t,e){const n=Jo.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")||cle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Pm(t,e){const n=t.style;e===0?Mo(n,""):e===1?Mo(n,"left"):e===2?Mo(n,"center"):e===3?Mo(n,"right"):e===4?Mo(n,"justify"):e===5?Mo(n,"start"):e===6&&Mo(n,"end")}function bc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Je(o))return null;const s=o.getParentOrThrow();return Je(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function la(t,e){const n=cn.get(t);n===void 0&&G(60);const o=n.createDOM(Jo,yt);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,yt),Q(n)?o.setAttribute("data-lexical-text","true"):Te(n)&&o.setAttribute("data-lexical-decorator","true"),R(n)){const r=n.__indent,s=n.__size;if(bc(o,n),r!==0&&Im(o,r),s!==0){const l=s-1;kc(ca(n,cn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Pm(o,a),n.isInline()||Fm(null,n,o),rl(n)&&(tt+=yo,Un+=yo)}else{const r=n.getTextContent();if(Te(n)){const s=n.decorate(yt,Jo);s!==null&&Vm(t,s),o.contentEditable="false"}tt+=r,Un+=r}return e!==null&&e.insertChild(o),Pu(Wi,ji,Ga,n,"created"),o}function kc(t,e,n,o,r){const s=tt;tt="";let a=n;for(;a<=o;++a){la(t[a],r);const l=cn.get(t[a]);l!==null&&Q(l)&&(bn===null&&(bn=l.getFormat()),kn===""&&(kn=l.getStyle()))}rl(e)&&(tt+=yo),r.element.__lexicalTextContent=tt,tt=s+tt}function Z1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return fo(o)?"line-break":Te(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Fm(t,e,n){const o=Z1(t,Xo),r=Z1(e,cn);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ule(t,e,n){var o;bn=null,kn="",function(r,s,a){const l=tt,c=r.__size,u=s.__size;tt="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)Ei(f,d);else{const h=wc(f),g=la(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}aa(f,null)}const m=cn.get(p);Q(m)&&(bn===null&&(bn=m.getFormat()),kn===""&&(kn=m.getStyle()))}else{const f=ca(r,Xo),p=ca(s,cn);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&kc(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;Cc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,k=C-1;let w,b,E=v.getFirstChild(),T=0,x=0;for(;T<=_&&x<=k;){const A=h[T],D=g[x];if(A===D)E=Hl(Ei(D,v.element)),T++,x++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const L=b.has(A),P=w.has(D);if(L)if(P){const j=er(yt,D);j===E?E=Hl(Ei(D,v.element)):(v.withBefore(E).insertChild(j),Ei(D,v.element)),T++,x++}else la(D,v.withBefore(E)),x++;else E=Hl(wc(A)),aa(A,v.element),T++}const M=cn.get(D);M!==null&&Q(M)&&(bn===null&&(bn=M.getFormat()),kn===""&&(kn=M.getStyle()))}const N=T>_,I=x>k;if(N&&!I){const A=g[k+1],D=A===void 0?null:yt.getElementByKey(A);kc(g,m,x,k,v.withBefore(D))}else I&&!N&&Cc(h,T,_,v.element)})(s,f,p,c,u,a)}rl(s)&&(tt+=yo),d.__lexicalTextContent=tt,tt=l+tt}(t,e,e.getDOMSlot(n)),o=e,bn==null||bn===o.__textFormat||sa||o.setTextFormat(bn),function(r){kn===""||kn===r.__textStyle||sa||r.setTextStyle(kn)}(e)}function ca(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&G(101),n.push(o),o=r.__next}return n}function Ei(t,e){const n=Xo.get(t);let o=cn.get(t);n!==void 0&&o!==void 0||G(61);const r=Cr||yc.has(t)||vc.has(t),s=er(yt,t);if(n===o&&!r){if(R(n)){const a=s.__lexicalTextContent;a!==void 0&&(tt+=a,Un+=a)}else{const a=n.getTextContent();Un+=a,tt+=a}return s}if(n!==o&&r&&Pu(Wi,ji,Ga,o,"updated"),o.updateDOM(n,s,Jo)){const a=la(t,null);return e===null&&G(62),e.replaceChild(a,s),aa(t,null),a}if(R(n)&&R(o)){const a=o.__indent;(Cr||a!==n.__indent)&&Im(s,a);const l=o.__format;if((Cr||l!==n.__format)&&Pm(s,l),r&&(ule(n,o,s),Je(o)||o.isInline()||Fm(n,o,s)),rl(o)&&(tt+=yo,Un+=yo),(Cr||o.__dir!==n.__dir)&&(bc(s,o),Je(o)&&!Cr))for(const c of o.getChildren())R(c)&&bc(er(yt,c.getKey()),c)}else{const a=o.getTextContent();if(Te(o)){const l=o.decorate(yt,Jo);l!==null&&Vm(t,l)}tt+=a,Un+=a}if(!sa&&Je(o)&&o.__cachedText!==Un){const a=o.getWritable();a.__cachedText=Un,o=a}return s}function Vm(t,e){let n=yt._pendingDecorators;const o=yt._decorators;if(n===null){if(o[t]===e)return;n=Nh(yt)}n[t]=e}function Hl(t){let e=t.nextSibling;return e!==null&&e===yt._blockCursorElement&&(e=e.nextSibling),e}function dle(t,e,n,o,r,s){tt="",Un="",Cr=o===2,yt=n,Jo=n._config,ji=n._nodes,Ga=yt._listeners.mutation,vc=r,yc=s,Xo=t._nodeMap,cn=e._nodeMap,sa=e._readOnly,_c=new Map(n._keyToDOMMap);const a=new Map;return Wi=a,Ei("root",null),yt=void 0,ji=void 0,vc=void 0,yc=void 0,Xo=void 0,cn=void 0,Jo=void 0,_c=void 0,Wi=void 0,a}function wc(t){const e=_c.get(t);return e===void 0&&G(75,t),e}function de(t){return{type:t}}const Rm=de("SELECTION_CHANGE_COMMAND"),fle=de("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),zm=de("CLICK_COMMAND"),qo=de("DELETE_CHARACTER_COMMAND"),Sr=de("INSERT_LINE_BREAK_COMMAND"),Zi=de("INSERT_PARAGRAPH_COMMAND"),xr=de("CONTROLLED_TEXT_INSERTION_COMMAND"),bu=de("PASTE_COMMAND"),Ec=de("REMOVE_TEXT_COMMAND"),Ki=de("DELETE_WORD_COMMAND"),Gi=de("DELETE_LINE_COMMAND"),Gt=de("FORMAT_TEXT_COMMAND"),ku=de("UNDO_COMMAND"),wu=de("REDO_COMMAND"),ple=de("KEYDOWN_COMMAND"),Um=de("KEY_ARROW_RIGHT_COMMAND"),mle=de("MOVE_TO_END"),qm=de("KEY_ARROW_LEFT_COMMAND"),hle=de("MOVE_TO_START"),Hm=de("KEY_ARROW_UP_COMMAND"),jm=de("KEY_ARROW_DOWN_COMMAND"),ua=de("KEY_ENTER_COMMAND"),Wm=de("KEY_SPACE_COMMAND"),Zm=de("KEY_BACKSPACE_COMMAND"),Km=de("KEY_ESCAPE_COMMAND"),Gm=de("KEY_DELETE_COMMAND"),Ym=de("KEY_TAB_COMMAND"),gle=de("INSERT_TAB_COMMAND"),vle=de("INDENT_CONTENT_COMMAND"),K1=de("OUTDENT_CONTENT_COMMAND"),Jm=de("DROP_COMMAND"),yle=de("FORMAT_ELEMENT_COMMAND"),Xm=de("DRAGSTART_COMMAND"),Qm=de("DRAGOVER_COMMAND"),_le=de("DRAGEND_COMMAND"),Ya=de("COPY_COMMAND"),Eu=de("CUT_COMMAND"),Sc=de("SELECT_ALL_COMMAND"),Cle=de("CLEAR_EDITOR_COMMAND"),ble=de("CLEAR_HISTORY_COMMAND"),Bs=de("CAN_REDO_COMMAND"),Os=de("CAN_UNDO_COMMAND"),kle=de("FOCUS_COMMAND"),wle=de("BLUR_COMMAND"),Ele=de("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),xc=[["keydown",function(t,e){if(Ni=t.timeStamp,eh=t.key,!e.isComposing()&&!re(e,ple,t)&&t.key!=null){if(jl&&Ef(t))return Rt(e,()=>{Ls(e,Wl)}),jl=!1,void(Wl="");if(function(n){return Me(n,"ArrowRight",{shiftKey:"any"})}(t))re(e,Um,t);else if(function(n){return Me(n,"ArrowRight",Rn)}(t))re(e,mle,t);else if(function(n){return Me(n,"ArrowLeft",{shiftKey:"any"})}(t))re(e,qm,t);else if(function(n){return Me(n,"ArrowLeft",Rn)}(t))re(e,hle,t);else if(function(n){return Me(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))re(e,Hm,t);else if(function(n){return Me(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))re(e,jm,t);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Di=!0,re(e,ua,t);else if(function(n){return n.key===" "}(t))re(e,Wm,t);else if(function(n){return an&&Me(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Di=!0,re(e,Sr,!0);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Di=!1,re(e,ua,t);else if(function(n){return Me(n,"Backspace",{shiftKey:"any"})||an&&Me(n,"h",{ctrlKey:!0})}(t))Ef(t)?re(e,Zm,t):(t.preventDefault(),re(e,qo,!0));else if(function(n){return n.key==="Escape"}(t))re(e,Km,t);else if(function(n){return Me(n,"Delete",{})||an&&Me(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?re(e,Gm,t):(t.preventDefault(),re(e,qo,!1));else if(function(n){return Me(n,"Backspace",wf)}(t))t.preventDefault(),re(e,Ki,!0);else if(function(n){return Me(n,"Delete",wf)}(t))t.preventDefault(),re(e,Ki,!1);else if(function(n){return an&&Me(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),re(e,Gi,!0);else if(function(n){return an&&(Me(n,"Delete",{metaKey:!0})||Me(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),re(e,Gi,!1);else if(function(n){return Me(n,"b",Rn)}(t))t.preventDefault(),re(e,Gt,"bold");else if(function(n){return Me(n,"u",Rn)}(t))t.preventDefault(),re(e,Gt,"underline");else if(function(n){return Me(n,"i",Rn)}(t))t.preventDefault(),re(e,Gt,"italic");else if(function(n){return Me(n,"Tab",{shiftKey:"any"})}(t))re(e,Ym,t);else if(function(n){return Me(n,"z",Rn)}(t))t.preventDefault(),re(e,ku,void 0);else if(function(n){return an?Me(n,"z",{metaKey:!0,shiftKey:!0}):Me(n,"y",{ctrlKey:!0})||Me(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),re(e,wu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?Sf(t)&&(t.preventDefault(),re(e,Sc,t)):function(o){return Me(o,"c",Rn)}(t)?(t.preventDefault(),re(e,Ya,t)):function(o){return Me(o,"x",Rn)}(t)?(t.preventDefault(),re(e,Eu,t)):Sf(t)&&(t.preventDefault(),re(e,Sc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&re(e,Ele,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Gr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Rt(e,()=>{Cf(n)||(Nc=!0)})}],["compositionstart",function(t,e){Rt(e,()=>{const n=te();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();ut(o.key),(t.timeStamp<Ni+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||Q(r)&&r.getStyle()!==n.style)&&re(e,xr,Gae)}})}],["compositionend",function(t,e){Yo?vi=!0:Fr||!qi&&!Hi?Rt(e,()=>{Ls(e,t.data)}):(jl=!0,Wl=t.data)}],["input",function(t,e){t.stopPropagation(),Rt(e,()=>{if(Qe(t.target)&&Cf(t.target))return;const n=te(),o=t.data,r=ih(t);if(o!=null&&Z(n)&&oh(n,r,o,t.timeStamp,!1)){vi&&(Ls(e,o),vi=!1);const s=n.anchor.getNode(),a=fn(tn(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;ra&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Bh(a.anchorNode)||re(e,xr,o);const d=o.length;Yo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),qi||Fr||Hi||!e.isComposing()||(Ni=0,ut(null))}else Lu(!1,e,o!==null?o:void 0),vi&&(Ls(e,o||void 0),vi=!1);(function(){st();const s=He();Dm(s)})()},{event:t}),br=null}],["click",function(t,e){Rt(e,()=>{const n=te(),o=fn(tn(e)),r=Kr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Je(a)&&je().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=Xt(a,c=>R(c)&&!c.isInline());R(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(Qe(s)||Qn(s))&&mt(xu(r,o,e,t))}}re(e,zm,t)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];ra&&xc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=ih(n);r==="deleteCompositionText"||Yo&&Oh(o)||r!=="insertCompositionText"&&Rt(o,()=>{const a=te();if(r==="deleteContentBackward"){if(a===null){const m=Kr();if(!Z(m))return;mt(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,eh==="MediaLast"&&l<Ni+30&&o.isComposing()&&m){if(ut(null),Ni=0,setTimeout(()=>{Rt(o,()=>{ut(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),Q(h)||G(142),rh(a,h)}}else{ut(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let v=I1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Te(Oc(a.anchor,!0))),!v){re(o,qo,!0);const _=te();I1&&Z(_)&&_.isCollapsed()&&(Po=_,setTimeout(()=>Po=null))}}return}}var l;if(!Z(a))return;const c=n.data;br!==null&&Lu(!1,o,br),a.dirty&&br===null||!a.isCollapsed()||Je(a.anchor.getNode())||s===null||a.applyDOMRange(s),br=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,xr,n);break;case"insertFromComposition":ut(null),re(o,xr,n);break;case"insertLineBreak":ut(null),re(o,Sr,!1);break;case"insertParagraph":ut(null),Di&&!Fr?(Di=!1,re(o,Sr,!1)):re(o,Zi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":re(o,bu,n);break;case"deleteByComposition":(function(m,h){return m!==h||R(m)||R(h)||!Ho(m)||!Ho(h)})(f,p)&&re(o,Ec,n);break;case"deleteByDrag":case"deleteByCut":re(o,Ec,n);break;case"deleteContent":re(o,qo,!1);break;case"deleteWordBackward":re(o,Ki,!0);break;case"deleteWordForward":re(o,Ki,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":re(o,Gi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":re(o,Gi,!1);break;case"formatStrikeThrough":re(o,Gt,"strikethrough");break;case"formatBold":re(o,Gt,"bold");break;case"formatItalic":re(o,Gt,"italic");break;case"formatUnderline":re(o,Gt,"underline");break;case"historyUndo":re(o,ku,void 0);break;case"historyRedo":re(o,wu,void 0)}else{if(c===`
22
+ `)n.preventDefault(),re(o,Sr,!1);else if(c===yo)n.preventDefault(),re(o,Zi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&oh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),re(o,xr,c)):br=c;th=n.timeStamp}})}(t,e)]);let Ni=0,eh=null,th=0,br=null;const Tc=new WeakMap,da=new WeakMap;let Ac=!1,Nc=!1,Di=!1,vi=!1,jl=!1,Wl="",Po=null,nh=[0,"",0,"root",0];function oh(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=He(),u=fn(tn(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!Q(l)||(!r&&(!ra||th<o+50)||l.isDirty()&&m<2||Mh(n))&&s.offset!==a.offset&&!l.isComposing()||zn(l)||l.isDirty()&&m>1||(r||!ra)&&p!==null&&!l.isComposing()&&d!==Vr(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),v=Ho(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const k=_.getPreviousSibling();return(Q(k)||R(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function G1(t,e){return Qn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function Y1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Ac&&(Ac=!1,G1(o,r)&&G1(s,a)&&!Po)||Rt(e,()=>{if(!n)return void mt(null);if(!fs(e,o,s))return;let l=te();if(Po&&Z(l)&&l.isCollapsed()){const c=l.anchor,u=Po.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Po.clone(),mt(l))}if(Po=null,Z(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=tn(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=nh,C=je(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)js(l,p,m);else if(c.type==="text")Q(u)||G(141),rh(l,u);else if(c.type==="element"&&!v){R(u)||G(259);const _=c.getNode();_.isEmpty()?function(k,w){const b=w.getTextFormat(),E=w.getTextStyle();js(k,b,E)}(l,_):js(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:r,y=h?r:a,C=h?f:d,v=h?d:f;let _=2047,k=!1;for(let w=0;w<m;w++){const b=p[w],E=b.getTextContentSize();if(Q(b)&&E!==0&&!(w===0&&b.__key===C&&g===E||w===m-1&&b.__key===v&&y===0)&&(k=!0,_&=b.getFormat(),_===0))break}l.format=k?_:0}}re(e,Rm,void 0)})}function js(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function rh(t,e){js(t,e.getFormat(),e.getStyle())}function ih(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Ls(t,e){const n=t._compositionKey;if(ut(null),n!==null&&e!=null){if(e===""){const o=nt(n),r=Vr(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&Q(o)&&Iu(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
+ `){const o=te();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void re(t,ua,null)}}}Lu(!0,t,e)}function sh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Tr=new Map;function ah(t){const e=oce(t.target);if(e===null)return;const n=Sh(e.anchorNode);if(n===null)return;Nc&&(Nc=!1,Rt(n,()=>{const c=Kr(),u=e.anchorNode;(Qe(u)||Qn(u))&&mt(xu(c,e,n,t))}));const o=Ou(n),r=o[o.length-1],s=r._key,a=Tr.get(s),l=a||r;l!==n&&Y1(e,l,!1),Y1(e,n,!0),n!==r?Tr.set(s,n):a&&Tr.delete(s)}function J1(t){t._lexicalHandled=!0}function X1(t){return t._lexicalHandled===!0}const Q1=()=>{};function Sle(t){const e=Tc.get(t);if(e===void 0)return void Q1();const n=da.get(e);if(n===void 0)return void Q1();const o=n-1;o>=0||G(164),Tc.delete(t),da.set(e,o),o===0&&e.removeEventListener("selectionchange",ah);const r=nl(t);Bu(r)?(function(a){if(a._parentEditor!==null){const l=Ou(a),c=l[l.length-1]._key;Tr.get(c)===a&&Tr.delete(c)}else Tr.delete(a._key)}(r),t.__lexicalEditor=null):r&&G(198);const s=sh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Dc(t,e,n){st();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=te();if(!Z(c)||!R(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Lc(f,l)&&u.set(l.__key,0,"element"),Lc(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(Z(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(ha(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ha(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Vt(s)&&e&&t.isSelected()&&t.selectPrevious();if(Z(s)&&e&&!a){const l=t.getIndexWithinParent();jo(t),ma(s,r,l,-1)}else jo(t);n||wt(r)||r.canBeEmpty()||!r.isEmpty()||Dc(r,e),e&&s&&Je(r)&&r.isEmpty()&&r.selectEnd()}const lh=Symbol.for("ephemeral");function fa(t){return t[lh]||!1}class un{constructor(e){U(this,"__type");U(this,"__key");U(this,"__parent");U(this,"__prev");U(this,"__next");U(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}),Yle(this,e)}static getType(){const{ownNodeType:e}=sl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(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(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=nt(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(r=>r.__key===this.__key);if(Q(this))return o;if(Z(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const r=this.getParent();if(Te(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:nt(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(wt(n))return R(e)||e===this&&Te(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(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:nt(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:nt(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?Zs(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Zs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Rh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Zs(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&&G(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=He()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(fa(this))return this;const e=nt(this.__key);return e===null&&G(113),e}getWritable(){if(fa(this))return this;st();const e=Eo(),n=He(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(r))return va(s),s;const c=Ph(s);return a.add(r),va(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(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){G(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of Lm(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Om(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Dc(this,!0,e)}replace(e,n){st();let o=te();o!==null&&(o=o.clone()),Xl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;jo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;if(Dc(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=m,l.__parent=h,c.__size=u,n&&(R(this)&&R(l)||G(139),this.getChildren().forEach(g=>{l.append(g)})),Z(o)){mt(o);const g=o.anchor,y=o.focus;g.key===s&&of(g,l),y.key===s&&of(y,l)}return lo()===s&&ut(a),l}insertAfter(e,n=!0){st(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=te();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(jo(r),Z(a)){const h=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=y.type==="element"&&y.key===h&&y.offset===m+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&&Z(a)){const m=this.getIndexWithinParent();ma(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){st(),Xl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;jo(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&&Z(d)&&ma(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Fe()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){st();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(R(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){st();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(R(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}U(un,"importDOM");const pa="historic",xle="history-push",Mi="history-merge",Tle="paste",ch="collaboration",Ale="skip-scroll-into-view",Nle="skip-dom-selection",Dle="skip-selection-focus";class ss extends un{static getType(){return"linebreak"}static clone(e){return new ss(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&&ya(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ya(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Is(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Is(s))return!0}return!1}(e)?null:{conversion:Mle,priority:0}}}static importJSON(e){return dn().updateFromJSON(e)}}function Mle(t){return{node:dn()}}function dn(){return gn(new ss)}function fo(t){return t instanceof ss}function Is(t){return Qn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Zl(t,e){return 16&e?"code":e&Tm?"mark":32&e?"sub":64&e?"sup":null}function Kl(t,e){return 1&e?"strong":2&e?"em":"span"}function uh(t,e,n,o,r){const s=o.classList;let a=Ar(r,"base");a!==void 0&&s.add(...a),a=Ar(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 kt){const d=kt[u];if(a=Ar(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 dh(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Ka:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Yo){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function ef(t,e,n,o,r,s){dh(r,t,e);const a=s.theme.text;a!==void 0&&uh(0,0,o,t,a)}function Ps(t,e){const n=document.createElement(e);return n.appendChild(t),n}class wo extends un{constructor(n="",o){super(o);U(this,"__text");U(this,"__format");U(this,"__style");U(this,"__mode");U(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 wo(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 Qae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===lo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=kt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ga(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Zl(0,r),a=Kl(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)),ef(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=Zl(0,a),u=Zl(0,l),d=Kl(0,a),f=Kl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return ef(C,this,0,l,s,r),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),dh(s,p,this);const m=r.theme.text;m!==void 0&&a!==l&&uh(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Lle,priority:0}),b:()=>({conversion:Ble,priority:0}),code:()=>({conversion:Vn,priority:0}),em:()=>({conversion:Vn,priority:0}),i:()=>({conversion:Vn,priority:0}),mark:()=>({conversion:Vn,priority:0}),s:()=>({conversion:Vn,priority:0}),span:()=>({conversion:$le,priority:0}),strong:()=>({conversion:Vn,priority:0}),sub:()=>({conversion:Vn,priority:0}),sup:()=>({conversion:Vn,priority:0}),u:()=>({conversion:Vn,priority:0})}}static importJSON(n){return Ze().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 Qe(o)||G(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=Ps(o,"b")),this.hasFormat("italic")&&(o=Ps(o,"i")),this.hasFormat("strikethrough")&&(o=Ps(o,"s")),this.hasFormat("underline")&&(o=Ps(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"?kt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Yae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ga(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=Xae[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){st();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(!Z(a))return mh(c,r,c,s,"text","text");{const u=lo();u!==a.anchor.key&&u!==a.focus.key||ut(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&&Z(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){st();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=lo(),l=r.length;n.sort((x,N)=>x-N),n.push(l);const c=[],u=n.length;for(let x=0,N=0;x<l&&N<=u;N++){const I=n[N];I>x&&(c.push(r.slice(x,I)),x=I)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,v=null,_=null;const k=te();if(Z(k)){const[x,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];x.type==="text"&&x.key===s&&(v=x),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Ze(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=U1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let x=1;x<d;x++){const N=Ze(c[x]);N.__format=h,N.__style=g,N.__detail=y,N.__state=U1(o,N);const I=N.__key;a===s&&ut(I),w.push(N)}const b=v?v.offset:null,E=_?_.offset:null;let T=0;for(const x of w){if(!v&&!_)break;const N=T+x.getTextContentSize();if(v!==null&&b!==null&&b<=N&&b>=T&&(v.set(x.getKey(),b-T,"text"),b<N&&(v=null)),_!==null&&E!==null&&E<=N&&E>=T){_.set(x.getKey(),E-T,"text");break}T=N}if(p!==null){(function(I){const A=I.getPreviousSibling(),D=I.getNextSibling();A!==null&&va(A),D!==null&&va(D)})(this);const x=p.getWritable(),N=this.getIndexWithinParent();C?(x.splice(N,0,w),this.remove()):x.splice(N,1,w),Z(k)&&ma(k,p,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;lo()===s&&ut(r);const c=te();if(Z(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&df(p,o,r,n,l),m!==null&&m.key===s&&df(m,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 $le(t){return{forChild:Su(t.style),node:null}}function Ble(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Su(e.style,n?void 0:"bold"),node:null}}const tf=new WeakMap;function Ole(t){if(!Qe(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Lle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=tf.get(s))===void 0&&!Ole(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)tf.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(dn()):l===" "?r.push(Wr()):l!==""&&r.push(Ke(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=nf(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=nf(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:Ke(n)}}function nf(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,Xe(n)){const s=n.style.display;if(s===""&&!Fc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Xn(n))return n;if(n.nodeName==="BR")return null}}const Ile={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Fn(t){const e=Ile[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Su(t.style,e),node:null}}function Ke(t=""){return gn(new ko(t))}function Q(t){return t instanceof ko}function Su(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(r&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class as extends ko{static getType(){return"tab"}static clone(e){return new as(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Tr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Wr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Em(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Wr(){return gn(new as)}function Ja(t){return t instanceof as}class Ple{constructor(e,n,o){U(this,"key");U(this,"offset");U(this,"type");U(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:Vh(Gt(Kn(this,"next")),Gt(Kn(e,"next")))<0}getNode(){const e=tt(this.key);return e===null&&G(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,ls()||(ao()===a&&dt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function Dn(t,e,n){return new Ple(t,e,n)}function Gl(t,e){let n=e.__key,o=t.offset,r="element";if(Q(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function of(t,e){if(R(e)){const n=e.getLastDescendant();R(n)||Q(n)?Gl(t,n):Gl(t,e)}else Gl(t,e)}class Xa{constructor(e){U(this,"_nodes");U(this,"_cachedNodes");U(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Pt(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 Xa(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(Q(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const s=tt(r);s!==null&&o.push(s)}return ls()||(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()||Zr())===this&&e[0]){const n=pt(e[0],"next");gce(yo(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof rr}class rr{constructor(e,n,o,r){U(this,"format");U(this,"style");U(this,"anchor");U(this,"focus");U(this,"_cachedNodes");U(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!!K(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(xn(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),Rr(o.focus)&&R(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=pn(o.focus.origin,"previous");xn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Uu(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=Gt(o.anchor),d=Gt(o.anchor.getFlipped()),f=m=>fo(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Uh(Mf(this),"next"));return ls()||(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]=Mc(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
- `),d=!p.isEmpty();else if(d=!1,Q(p)){let m=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=a?m.slice(l):m.slice(c):p===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Te(p)&&!uo(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=je(),o=n.getEditorState()._selection,r=ph(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),ia(this)}clone(){const e=this.anchor,n=this.focus;return new rr(Dn(e.key,e.offset,e.type),Dn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ga(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=bt[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===`
26
+ `?r.push(dn()):l===" "?r.push(Zr()):l!==""&&r.push(Ze(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=nf(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=nf(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:Ze(n)}}function nf(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,Qe(n)){const s=n.style.display;if(s===""&&!Fc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Qn(n))return n;if(n.nodeName==="BR")return null}}const Ile={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Vn(t){const e=Ile[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Su(t.style,e),node:null}}function Ze(t=""){return gn(new wo(t))}function Q(t){return t instanceof wo}function Su(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(r&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class as extends wo{static getType(){return"tab"}static clone(e){return new as(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Ar(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Zr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Em(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Zr(){return gn(new as)}function Ja(t){return t instanceof as}class Ple{constructor(e,n,o){U(this,"key");U(this,"offset");U(this,"type");U(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:Vh(Yt(Gn(this,"next")),Yt(Gn(e,"next")))<0}getNode(){const e=nt(this.key);return e===null&&G(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,ls()||(lo()===a&&ut(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function Mn(t,e,n){return new Ple(t,e,n)}function Gl(t,e){let n=e.__key,o=t.offset,r="element";if(Q(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!R(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function of(t,e){if(R(e)){const n=e.getLastDescendant();R(n)||Q(n)?Gl(t,n):Gl(t,e)}else Gl(t,e)}class Xa{constructor(e){U(this,"_nodes");U(this,"_cachedNodes");U(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Vt(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 Xa(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(Q(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const r of n){const s=nt(r);s!==null&&o.push(s)}return ls()||(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()||Kr())===this&&e[0]){const n=ft(e[0],"next");gce(_o(n,n))}for(const n of e)n.remove()}}function Z(t){return t instanceof sr}class sr{constructor(e,n,o,r){U(this,"format");U(this,"style");U(this,"anchor");U(this,"focus");U(this,"_cachedNodes");U(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!!Z(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(Tn(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),zr(o.focus)&&R(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=pn(o.focus.origin,"previous");Tn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Uu(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=Yt(o.anchor),d=Yt(o.anchor.getFlipped()),f=m=>po(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Uh(Mf(this),"next"));return ls()||(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]=Mc(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
+ `),d=!p.isEmpty();else if(d=!1,Q(p)){let m=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=a?m.slice(l):m.slice(c):p===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Te(p)&&!fo(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=He(),o=n.getEditorState()._selection,r=ph(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),ia(this)}clone(){const e=this.anchor,n=this.focus;return new sr(Mn(e.key,e.offset,e.type),Mn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ga(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=kt[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(dn()):a===" "?o.push(Wr()):o.push(Ke(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(y,C,v,_){const k=y.getNode(),w=k.getChildAtIndex(y.offset),b=Ke();if(b.setFormat(v),b.setStyle(_),ds(w))w.splice(0,0,[b]);else{const E=Ye(k)?Fe().append(b):b;w===null?k.append(E):w.insertBefore(E)}y.is(C)&&C.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&nr(l,Gt(Kn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];Q(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(Rn(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(Q(y)&&y.canInsertTextBefore()&&!Rn(y)||(y=Ke(),y.setFormat(r),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Rn(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(Q(y)&&!Rn(y)||(y=Ke(),y.setFormat(r),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ke(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),fh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Uo(p)){const _=Ke(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ja(p)){const _=Ke(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ke(e);if(_.setFormat(r),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[k]=p.splitText(c);k.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const v=u-c;p=p.spliceText(c,v,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=R(p)?p:p.getParentOrThrow();let v=R(g)?g:g.getParentOrThrow(),_=g;if(!C.is(v)&&v.isInline())do _=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(Q(g)&&!Uo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ke(g.getTextContent());g.replace(T),g=T}Ye(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const T=g.getParentOrThrow();T.canBeEmpty()||T.getChildrenSize()!==1?g.remove():T.remove()}else y.add(g.__key);const k=v.getChildren(),w=new Set(d),b=C.is(v),E=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=k.length-1;T>=0;T--){const x=k[T];if(x.is(p)||R(x)&&x.isParentOf(p))break;x.isAttached()&&(!w.has(x)||x.is(_)?b||E.insertAfter(x,!1):x.remove())}if(!b){let T=v,x=null;for(;T!==null;){const N=T.getChildren(),L=N.length;(L===0||N[L-1].is(x))&&(y.delete(T.__key),x=T),T=T.getParent()}}if(Uo(p))if(c===m)p.select();else{const T=Ke(e);T.select(),p.replace(T)}else p=p.spliceText(c,m-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 x=d[T],N=x.__key;y.has(N)||x.remove()}}}removeText(){const e=te()===this;Ks(this,vce(Mf(this))),e&&te()!==this&&ht(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void dt(null);const o=this.getNodes(),r=[];for(const k of o)Q(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(R(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),dt(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,m=r[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=r[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Rn(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,v),w=h===0?k[0]:k[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Rn(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Rn(C)||([C]=C.splitText(v)),C.setFormat(_));for(let k=p+1;k<y;k++){const w=r[k],b=w.getFormatFlags(e,_);w.setFormat(b)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,v,"text"),this.format=g|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return K(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Jt(n,Zt),r=e[e.length-1];if(R(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Yl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(R(h)||Te(h))&&!h.isInline())){R(o)||G(211,n.constructor.name,n.getType());const h=Yl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Fe();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=uo(v);if(_||Te(v)&&v.isInline()||R(v)&&v.isInline()||Q(v)||v.isParentRequired()){if(y===null&&(y=v.createParentElementNode(),g.append(y),_))continue;y!==null&&y.append(v)}else g.append(v),y=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)&&Zt(f)&&!f.isEmpty()&&R(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(R(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=Jt(a,Zt);c&&R(p)&&(c.canMergeWhenEmpty()||Zt(u))&&(p.append(...c.getChildren()),c.remove()),R(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=R(o)?o.getLastChild():null;uo(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Fe();return We().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Yl(this),n=Jt(this.anchor.getNode(),Zt);R(n)||G(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=dn();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]=Mc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(ff(this,e,n,o))return;const r=e==="move",s=je(),a=fn(en(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()||Ic(l,s,c),this.dirty){let d=Xo(s,this.anchor.key),f=Xo(s,this.focus.key);this.anchor.type==="text"&&(d=Fr(d)),this.focus.type==="text"&&(f=Fr(f)),d&&f&&gh(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Ye(f)?f:tce(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Lc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];R(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];R(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,v=y.anchor,_=v.key,k=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,k,w,!0)}(this)}}o==="lineboundary"&&ff(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=Hu(Kn(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(xn(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=Gt(c);Ks(this,yo(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(Rr(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(Te(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=hh();u.add(c.origin.getKey()),ht(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ks(this,yo(!c.origin.isEmpty()&&u.isEmpty()?ju(pt(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&&sf(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 af(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 af(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,v=y?g:h,_=v-1;C!==_&&function(k){return!(Mh(k)||Fle(k))}(p.getTextContent().slice(C,v))&&(u?f.set(f.key,_,f.type):d.set(d.key,_,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()&&Ye(o.getParent())&&o.getPreviousSibling()===null&&sf(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 Pt(t){return t instanceof Xa}function rf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Mc(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]:[rf(n),rf(o)]}function sf(t,e){for(let n=e;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(t))return!0;if(kt(n))break}if(n.getPreviousSibling())break}return!1}const Fle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function af(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 lf(t,e,n,o){let r,s=e;if(Xe(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=br(d),Q(r))s=po(r,a?"next":"previous");else{let p=br(t);if(p===null)return null;if(R(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),R(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(R(g)&&function(y,C,v){const _=y.getParent();return v===null||_===null||!_.canBeEmpty()||_!==v.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=R(g)?g:g.getParentOrThrow()),s=0}Q(g)?(r=g,p=null,s=po(g,a?"next":"previous")):g!==p&&a&&!f&&(R(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Te(p)&&br(t)===p?m:m+1,p=p.getParentOrThrow()}if(R(p))return Dn(p.__key,s,"element")}}else r=br(t);return Q(r)?Dn(r.__key,po(r,s,"clamp"),"text"):null}function cf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&R(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&R(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&R(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function fh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);cf(t,o,r),cf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=je();if(s.isComposing()&&s._compositionKey!==t.key&&K(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 ph(t,e,n,o,r,s){if(t===null||n===null||!fs(r,t,n))return null;const a=lf(t,e,K(s)?s.anchor:null,r);if(a===null)return null;const l=lf(n,o,K(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=br(t),u=br(n);if(Te(c)&&Te(u))return null}return fh(a,l,s),[a,l]}function $c(t){return R(t)&&!t.isInline()}function mh(t,e,n,o,r,s){const a=wo(),l=new rr(Dn(t,e,r),Dn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Qa(){const t=Dn("root",0,"element"),e=Dn("root",0,"element");return new rr(t,e,0,"")}function hh(){return new Xa(new Set)}function xu(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=!gc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(K(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)&&K(t)&&!fs(n,u,d))return t.clone();const m=ph(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new rr(h,g,K(t)?t.format:0,K(t)?t.style:"")}function te(){return wo()._selection}function Zr(){return je()._editorState._selection}function ma(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"),uf(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,m=p.getNode();if(e.is(f)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}uf(t)}function uf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!R(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(R(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(R(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ha(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,Q(r)?l="text":R(r)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function df(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 gh(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Vle(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(ch)&&f!==s||f!==null&&$u(f))return;if(!K(e))return void(t!==null&&fs(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=Xo(n,h),C=Xo(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,x=!1;if(p.type==="text"){E=Fr(y);const I=p.getNode();x=I.getFormat()!==k||I.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(x=!0);var N,L,A,D,M;if(m.type==="text"&&(T=Fr(C)),E!==null&&T!==null&&(b&&(t===null||x||K(t)&&(t.format!==k||t.style!==w))&&(N=k,L=w,A=v,D=h,M=performance.now(),nh=[N,L,A,D,M]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Dle)||s.focus({preventScroll:!0}),p.type==="element"))){if(gh(o,E,v,T,_),!r.has(Ale)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const I=K(e)&&e.anchor.type==="element"?E.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let P;if(I instanceof Text){const j=document.createRange();j.selectNode(I),P=j.getBoundingClientRect()}else P=I.getBoundingClientRect();(function(j,V,q){const F=Lh(q),Y=Fu(F);if(F===null||Y===null)return;let{top:ee,bottom:Ee}=V,ie=0,se=0,z=q;for(;z!==null;){const oe=z===F.body;if(oe)ie=0,se=en(j).innerHeight;else{const Be=z.getBoundingClientRect();ie=Be.top,se=Be.bottom}let ye=0;if(ee<ie?ye=-(ie-ee):Ee>se&&(ye=Ee-se),ye!==0)if(oe)Y.scrollBy(0,ye);else{const Be=z.scrollTop;z.scrollTop+=ye;const H=z.scrollTop-Be;ee-=H,Ee-=H}if(oe)break;z=ps(z)}})(n,P,s)}}Ac=!0}}function Rle(t){let e=te()||Zr();e===null&&(e=We().selectEnd()),e.insertNodes(t)}function Yl(t){let e=t;t.isCollapsed()||e.removeText();const n=te();K(n)&&(e=n),K(e)||G(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Zt(r);){const a=r;if([r,s]=zle(r,s),a.is(r))break}return s}function zle(t,e){const n=t.getParent();if(!n){const r=Fe();return We().append(r),r.select(),[We(),0]}if(Q(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!R(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new rr(Dn(t.__key,e,"element"),Dn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ff(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=Kn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!zh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Te(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Hu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(xn(d))d.origin.isInline()||(c=d);else{if(R(d.origin))continue;Te(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const d=hh();return d.add(c.origin.getKey()),ht(d),!0}return c=Gt(c),l&&nr(t.anchor,c),nr(t.focus,c),u||!a}let at=null,lt=null,At=!1,Jl=!1,Ws=0;const pf={characterData:!0,childList:!0,subtree:!0};function ls(){return At||at!==null&&at._readOnly}function it(){At&&G(13)}function vh(){Ws>99&&G(14)}function wo(){return at===null&&G(195,yh()),at}function je(){return lt===null&&G(196,yh()),lt}function yh(){let t=0;const e=new Set,n=Jo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=nl(r);if(Bu(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 Ule(){return lt}function mf(t,e,n){const o=e.__type,r=Eh(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 hf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function _h(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 qle(t){return Tu(t,je()._nodes)}function Tu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const r=o.klass;t.type!==r.getType()&&G(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=Tu(a[l],e);s.append(c)}return s}function gf(t,e,n){const o=at,r=At,s=lt;at=e,At=!0,lt=t;try{return n()}finally{at=o,At=r,lt=s}}function Un(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=at,d=At,f=lt,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){lt=t,at=n,At=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=dle(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Jl)throw b;return wh(t,null,o,n),Mm(t),t._dirtyType=2,Jl=!0,Un(t,s),void(Jl=!1)}finally{m.observe(o,pf),t._updating=p,at=u,At=d,lt=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,v=t._updateTags,_=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(b,E){const T=b._decorators;let x=b._pendingDecorators||T;const N=E._nodeMap;let L;for(L in x)N.has(L)||(x===T&&(x=Nh(b)),delete x[L])}(t,n);const k=r?null:fn(en(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Nle)){lt=t,at=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Ic(b,t,o),Vle(a,l,t,k,v,o)}(function(b,E,T){let x=b._blockCursorElement;if(K(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,L=N.getNode(),A=N.offset;let D=!1,M=null;if(A===L.getChildrenSize())Ql(L.getChildAtIndex(A-1))&&(D=!0);else{const I=L.getChildAtIndex(A);if(I!==null&&Ql(I)){const P=I.getPreviousSibling();(P===null||Ql(P))&&(D=!0,M=b.getElementByKey(I.__key))}}if(D){const I=b.getElementByKey(L.__key);return x===null&&(b._blockCursorElement=x=function(P){const j=P.theme,V=document.createElement("div");V.contentEditable="false",V.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const F=xm(q);q=j.blockCursor=F}q!==void 0&&V.classList.add(...q)}return V}(b._config)),E.style.caretColor="transparent",void(M===null?I.appendChild(x):I.insertBefore(x,M))}}x!==null&&Ic(x,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,pf),lt=f,at=u}}h!==null&&function(b,E,T,x,N){const L=Array.from(b._listeners.mutation),A=L.length;for(let D=0;D<A;D++){const[M,I]=L[D];for(const P of I){const j=E.get(P);j!==void 0&&M(j,{dirtyLeaves:x,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Rm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,$i("decorator",t,!0,w)),function(b,E,T){const x=bf(E),N=bf(T);x!==N&&$i("textcontent",b,!0,N)}(t,e||s,n),$i("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(b,E){if(b._deferred=[],E.length!==0){const T=b._updating;b._updating=!0;try{for(let x=0;x<E.length;x++)E[x]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[x,N]=T;el(b,x,N)}}}(t)}function $i(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 vf(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&&G(191),l._flushSync=!0),c&&t._deferred.push(c),_h(t,a.tag)),l==null?el(t,s,a):s()}}return o}function el(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,_h(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=bh(c||l),u=!0),c._flushSync=a;const d=at,f=At,p=lt,m=t._updating;at=c,At=!1,t._updating=!0,lt=t;const h=t._headless||t.getRootElement()===null;Du(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=fn(en(v));return K(k)||k==null?xu(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=vf(t,s),function(v,_){const k=_.getEditorState()._selection,w=v._selection;if(K(w)){const b=w.anchor,E=w.focus;let T;if(b.type==="text"&&(T=b.getNode(),T.selectionTransform(k,w)),E.type==="text"){const x=E.getNode();T!==x&&x.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const k=_._dirtyLeaves,w=v._nodeMap;for(const b of k){const E=w.get(b);Q(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&j1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=ao(),T=new Map;let x=k,N=x.size,L=w,A=L.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of x){const M=b.get(D);Q(M)&&M.isAttached()&&M.isSimpleText()&&!M.isUnmergeable()&&j1(M),M!==void 0&&hf(M,E)&&mf(_,M,T),k.add(D)}if(x=_._dirtyLeaves,N=x.size,N>0){Ws++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,L.delete("root")&&L.set("root",!0);for(const D of L){const M=D[0],I=D[1];if(w.set(M,I),!I)continue;const P=b.get(M);P!==void 0&&hf(P,E)&&mf(_,P,T)}x=_._dirtyLeaves,N=x.size,L=_._dirtyElements,A=L.size,Ws++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),vf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[x]of w){const N=E.get(x);N!==void 0&&(N.isAttached()||(R(N)&&Am(N,x,b,E,T,w),b.has(x)||w.delete(x),T.push(x)))}for(const x of T)E.delete(x);for(const x of k){const N=E.get(x);N===void 0||N.isAttached()||(b.has(x)||k.delete(x),E.delete(x))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(K(C)){const v=c._nodeMap,_=C.anchor.key,k=C.focus.key;v.get(_)!==void 0&&v.get(k)!==void 0||G(19)}else Pt(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Un(t)}finally{at=d,At=f,lt=p,t._updating=m,Ws=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const v=C.getEditorState()._selection,_=y._selection;if(_!==null){if(_.dirty||!_.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Un(t)):u&&Gle(()=>{Un(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Ft(t,e,n){lt===t&&n===void 0?e():el(t,e,n)}class Bi{constructor(e,n,o){U(this,"element");U(this,"before");U(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Bi(this.element,e,this.after)}withAfter(e){return new Bi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Bi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(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"&&(Hi||Pr||qi);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=yf(n,o);s.push(r);const a=yf(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 yf(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&&G(225),n.reverse()}class Ut extends un{constructor(n){super(n);U(this,"__first");U(this,"__last");U(this,"__size");U(this,"__format");U(this,"__style");U(this,"__indent");U(this,"__dir");U(this,"__textFormat");U(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 Jae[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=je()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),R(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return R(a)&&a.getLastDescendant()||a||null}const s=o[n];return R(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:tt(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:tt(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(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+=vo)}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=P1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=bt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ga(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){it();const r=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||R(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||R(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):mh(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!==""?P1[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){fa(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(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 h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;qo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of r){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,qo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=te();if(K(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;_f(C,g,y)&&ha(C,C.getNode(),this,f,d),_f(v,g,y)&&ha(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||kt(this)||this.remove()}}return a}getDOMSlot(n){return new Bi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(Xe(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 Ut}function _f(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 Ch extends un{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(t){return t instanceof Ch}class cs extends Ut{constructor(){super("root");U(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new cs}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!ls()&&je()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)R(s)||Te(s)||G(282);return super.splice(n,o,r)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Ye(t){return t instanceof cs}function bh(t){return new tl(new Map(t._nodeMap))}function Au(){return new tl(new Map([["root",new cs]]))}function kh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),R(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=kh(r[s]);o.push(a)}}return e}class tl{constructor(e,n){U(this,"_nodeMap");U(this,"_selection");U(this,"_flushSync");U(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 gf(n&&n.editor||null,this,e)}clone(e){const n=new tl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return gf(null,this,()=>({root:kh(We())}))}}class Nu extends Ut{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class us extends Ut{static getType(){return"paragraph"}static clone(e){return new us(e.__key)}createDOM(e){const n=document.createElement("p"),o=Tr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Hle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Xe(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Fe().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Fe();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Hle(t){const e=Fe();return t.style&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Fe(){return gn(new us)}function ds(t){return t instanceof us}const xe=0,yi=1,jle=4;function wh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Au(),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 Wle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=sl(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 un&&a!==un?a:void 0}}return e}function Zle(t){const e=t||{},n=Ule(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Au(),l=e.namespace||(r!==null?r._config.namespace:$h()),c=e.editorState,u=[cs,ko,ss,as,us,Nu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,v=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,v=w.withKlass||null}sl(y);const _=y.getType(),k=Wle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:sle(u[g]),transforms:k})}}const h=new Jo(a,r,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=k=>{Object.keys(k).forEach(w=>{let b=C.get(w);b===void 0&&(b=[],C.set(w,b)),b.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const b=w.call(k.klass);b!==null&&_(b)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Jo{constructor(e,n,o,r,s,a,l,c){U(this,"_headless");U(this,"_parentEditor");U(this,"_rootElement");U(this,"_editorState");U(this,"_pendingEditorState");U(this,"_compositionKey");U(this,"_deferred");U(this,"_keyToDOMMap");U(this,"_updates");U(this,"_updating");U(this,"_listeners");U(this,"_commands");U(this,"_nodes");U(this,"_decorators");U(this,"_pendingDecorators");U(this,"_config");U(this,"_dirtyType");U(this,"_cloneNotNeeded");U(this,"_dirtyLeaves");U(this,"_dirtyElements");U(this,"_normalizedNodes");U(this,"_updateTags");U(this,"_observer");U(this,"_key");U(this,"_onError");U(this,"_htmlConversions");U(this,"_window");U(this,"_editable");U(this,"_blockCursorElement");U(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=$h(),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&&G(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&&G(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&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Af(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=Af(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=tt(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Mi}: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=Tr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,wh(this,n,e,r),n!==null&&(this._config.disableEvents||Sle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Fu(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,Mm(this),this._updateTags.add(Mi),Un(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Tc.set(l,u);const d=da.get(u)??0;d<1&&u.addEventListener("selectionchange",ah),da.set(u,d+1),l.__lexicalEditor=c;const f=sh(l);for(let p=0;p<xc.length;p++){const[m,h]=xc[p],g=typeof h=="function"?y=>{X1(y)||(J1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(X1(y))return;J1(y);const C=c.isEditable();switch(m){case"cut":return C&&re(c,Eu,y);case"copy":return re(c,Ya,y);case"paste":return C&&re(c,bu,y);case"dragstart":return C&&re(c,Xm,y);case"dragover":return C&&re(c,Qm,y);case"dragend":return C&&re(c,_le,y);case"focus":return C&&re(c,kle,y);case"blur":return C&&re(c,wle,y);case"drop":return C&&re(c,Jm,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),Un(this);$i("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=bh(e),o._selection=e._selection?e._selection.clone():null),Dm(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Un(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Un(this)}parseEditorState(e,n){return function(o,r,s){const a=Au(),l=at,c=At,u=lt,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,at=a,At=!1,lt=r,Du(null);try{const h=r._nodes;Tu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=m,at=l,At=c,lt=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Un(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):el(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Ft(this,()=>{const r=te(),s=We();r!==null?r.dirty||ht(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Qle("focus"),ece(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=fn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,$i("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}U(Jo,"version");Jo.version="0.38.1+prod.esm";let Bc=null;function Du(t){Bc=t}let Kle=1;function Eh(t,e){const n=Mu(t,e);return n===void 0&&G(30,e),n}function Mu(t,e){return t._nodes.get(e)}const Gle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Cf(t){return Te(Vr(t))}function $u(t){const e=document.activeElement;if(!Xe(e))return!1;const n=e.nodeName;return Te(Vr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&nl(e)==null)}function fs(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!$u(e)&&Sh(e)===t}catch{return!1}}function Bu(t){return t instanceof Jo}function Sh(t){let e=t;for(;e!=null;){const n=nl(e);if(Bu(n))return n;e=ps(e)}return null}function nl(t){return t?t.__lexicalEditor:null}function Uo(t){return Ja(t)||t.isToken()}function Rn(t){return Uo(t)||t.isSegmented()}function Xn(t){return Kr(t)&&t.nodeType===3}function xh(t){return Kr(t)&&t.nodeType===9}function Fr(t){let e=t;for(;e!=null;){if(Xn(e))return e;e=e.firstChild}return null}function ga(t,e,n){const o=bt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~bt.superscript:e==="superscript"?r&=~bt.subscript:e==="lowercase"?(r&=~bt.uppercase,r&=~bt.capitalize):e==="uppercase"?(r&=~bt.lowercase,r&=~bt.capitalize):e==="capitalize"&&(r&=~bt.lowercase,r&=~bt.uppercase),r}function Th(t){return Q(t)||uo(t)||Te(t)}function Yle(t,e){const n=function(){const a=Bc;return Bc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);it(),vh();const o=je(),r=wo(),s=""+Kle++;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 qo(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 va(t){vh(),fa(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=wo(),r=je(),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 dt(t){it();const e=je(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=tt(n);o!==null&&o.getWritable()}if(t!==null){const o=tt(t);o!==null&&o.getWritable()}}}function ao(){return ls()?null:je()._compositionKey}function tt(t,e){const n=(e||wo())._nodeMap.get(t);return n===void 0?null:n}function Ah(t,e){const n=ol(t,je());return n!==void 0?tt(n,e):null}function ol(t,e){return t[`__lexicalKey_${e._key}`]}function Vr(t,e){let n=t;for(;n!=null;){const o=Ah(n,e);if(o!==null)return o;n=ps(n)}return null}function Nh(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function bf(t){return t.read(()=>We().getTextContent())}function We(){return Dh(wo())}function Dh(t){return t._nodeMap.get("root")}function ht(t){it();const e=wo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function br(t){const e=je(),n=function(o,r){let s=o;for(;s!=null;){const a=ol(s,r);if(a!==void 0)return a;s=ps(s)}return null}(t,e);return n===null?t===e.getRootElement()?tt("root"):null:tt(n)}function Mh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Ou(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function $h(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Bh(t){return Xn(t)?t.nodeValue:null}function Lu(t,e,n){const o=fn(en(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Bh(r);const c=Vr(r);if(l!==null&&Q(c)){if(l===Ka&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Iu(c,l,s,a,t)}}}function Iu(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]===Ka&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(dt(null),qi||Pr||Hi)s.remove();else{const g=je();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Zr(),f=s.getTextContentSize(),p=ao(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||K(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 h=te();if(!K(h)||n===null||o===null)return void kf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ke(s.getTextContent());s.replace(g),s=g}kf(s,l,h)}}}function kf(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=po(t,s.offset,"clamp"))}}}function Fs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Jle(t,e){return Fs(t,e,"altKey")&&Fs(t,e,"ctrlKey")&&Fs(t,e,"shiftKey")&&Fs(t,e,"metaKey")}function Me(t,e,n){return Jle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Vn={ctrlKey:!an,metaKey:an},wf={altKey:an,ctrlKey:!an};function Ef(t){return t.key==="Backspace"}function Sf(t){return Me(t,"a",Vn)}function Xle(t){const e=We();if(K(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"),ia(t),t}{const n=e.select(0,e.getChildrenSize());return ht(ia(n)),n}}function Tr(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=xm(r);return n[e]=s,s}return r}function Pu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(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 xf(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 Oc(t,e){const n=t.offset;if(t.type==="element")return xf(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?xf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Oh(t){const e=en(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,s){const a=Ou(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),m=p.length;let h=!1;if(Ft(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function rl(t){return!Ye(t)&&!t.isLastChild()&&!t.isInline()}function Xo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function ps(t){const e=t.assignedSlot||t.parentElement;return Pc(e)?e.host:e}function Lh(t){return xh(t)?t:Xe(t)?t.ownerDocument:null}function Qle(t){it(),je()._updateTags.add(t)}function ece(t){it(),je()._deferred.push(t)}function Lc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Fu(t){const e=Lh(t);return e?e.defaultView:null}function en(t){const e=t._window;return e===null&&G(78),e}function tce(t){let e=t.getParentOrThrow();for(;e!==null;){if(kt(e))return e;e=e.getParentOrThrow()}return e}function kt(t){return Ye(t)||R(t)&&t.isShadowRoot()}function gn(t){const e=je(),n=t.getType(),o=Mu(e,n);o===void 0&&G(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||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Xl(t,e){!Ye(t.getParent())||R(e)||Te(e)||G(99)}function nce(t){const e=tt(t);return e===null&&G(63,t),e}function Ql(t){return(Te(t)||R(t)&&!t.canBeEmpty())&&!t.isInline()}function Ic(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function fn(t){return hn?(t||window).getSelection():null}function oce(t){const e=Fu(t);return e?e.getSelection():null}function Ih(t){return Xe(t)&&t.tagName==="A"}function Xe(t){return Kr(t)&&t.nodeType===1}function Kr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Pc(t){return Kr(t)&&t.nodeType===11}function Fc(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 ya(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 Zt(t){if(Te(t)&&!t.isInline())return!0;if(!R(t)||kt(t))return!1;const e=t.getFirstChild(),n=e===null||uo(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function il(){return je()}const Tf=new WeakMap,rce=new Map;function Af(t){if(!t._readOnly&&t.isEmpty())return rce;t._readOnly||G(192);let e=Tf.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),Tf.set(t,e)),e}function Ph(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ice(t){return(e=Ph(t))[lh]=!0,e;var e}function Vu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function sce(t){return t.__lexicalUnmanaged===!0}function _i(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==un[e]}function sl(t){const e=F1 in t.prototype?t.prototype[F1]():void 0,n=function(a){if(!(a===un||a.prototype instanceof un)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Jo.version&&(c=JSON.parse(Jo.version))}catch{}G(290,a.name,l,c)}return a===Ch||a===Ut||a===un}(t),o=!n&&_i(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&&(_i(t,"getType")||(t.getType=()=>s),_i(t,"clone")||(t.clone=a=>(Du(a),new t)),_i(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!_i(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ace(t){const e=il();return it(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Jt=(t,e)=>{let n=t;for(;n!=null&&!Ye(n);){if(e(n))return n;n=n.getParent()}return null},lce={next:"previous",previous:"next"};class Ru{constructor(e){U(this,"origin");this.origin=e}[Symbol.iterator](){return Fh({hasNext:Rr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return pt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return pt(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&&G(263,Array.from(l).join(" "))}else s.insert(c);s=pt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Yi extends Ru{constructor(){super(...arguments);U(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:pn(n,this.direction)}getParentCaret(n="root"){return pt(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Gr(this.direction);return pt(this.getNodeAtCaret(),n)||pn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Yi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const cce={root:Ye,shadowRoot:kt};function Gr(t){return lce[t]}function zu(t,e="root"){return cce[e](t)?null:t}class Qo extends Ru{constructor(){super(...arguments);U(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:pt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?pn(this.origin,this.direction):null}getParentCaret(n="root"){return pt(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Gr(this.direction);return pt(this.getNodeAtCaret(),n)||pn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Qo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Qo||n instanceof er)&&this.direction===n.direction&&this.origin.is(n.origin)}}class er extends Ru{constructor(n,o){super(n);U(this,"type","text");U(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:tr(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return pt(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return tr(this.origin,Gr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof er&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Qo||n instanceof er)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return pt(this.origin,this.direction)}}function fo(t){return t instanceof er}function Rr(t){return t instanceof Qo}function xn(t){return t instanceof Yi}const uce={next:class extends er{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends er{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Qo{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Qo{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fce={next:class extends Yi{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Yi{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function pt(t,e){return t?new dce[e](t):null}function tr(t,e,n){return t?new uce[e](t,po(t,n)):null}function po(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&Em(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Nf(t,e){return new mce(t,e)}function pn(t,e){return R(t)?new fce[e](t):null}function pce(t){return t&&t.getChildCaret()||t}function Uu(t){return t&&pce(t.getAdjacentCaret())}class qu{constructor(e,n,o){U(this,"type","node-caret-range");U(this,"direction");U(this,"anchor");U(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 qu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return fo(s)?function(a,l){const{direction:c,origin:u}=a,d=po(u,l==="focus"?Gr(c):c);return Nf(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[Nf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=fo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=fo(o),s=a=>a.isSameNodeCaret(o)?null:Uu(a)||a.getParentCaret(e);return Fh({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 mce{constructor(e,n){U(this,"type","slice");U(this,"caret");U(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 tr(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Hu(t){return yo(t,pt(We(),t.direction))}function hce(t){return yo(t,t)}function yo(t,e){return t.direction!==e.direction&&G(265),new qu(t,e,t.direction)}function Fh(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 Vh(t,e){const n=Zs(t.origin,e.origin);switch(n===null&&G(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 Rh(n)}}function Rh(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 Vs(t,e){return e.is(t)}function Df(t){return R(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Zs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Df(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Df(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Vs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((R(s)||Vs(t,s))&&(R(r)||Vs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||G(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Kn(t,e){const{type:n,key:o,offset:r}=t,s=nce(t.key);return n==="text"?(Q(s)||G(266,s.getType(),o),tr(s,e,r)):(R(s)||G(267,s.getType(),o),yce(s,t.offset,e))}function nr(t,e){const{origin:n,direction:o}=e,r=o==="next";fo(e)?t.set(n.getKey(),e.offset,"text"):Rr(e)?Q(n)?t.set(n.getKey(),po(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(xn(e)&&R(n)||G(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function gce(t){const e=te(),n=K(e)?e:Qa();return Ks(n,t),ht(n),n}function Ks(t,e){nr(t.anchor,e.anchor),nr(t.focus,e.focus)}function Mf(t){const{anchor:e,focus:n}=t,o=Kn(e,"next"),r=Kn(n,"next"),s=Vh(o,r)<=0?"next":"previous";return yo(zr(o,s),zr(r,s))}function ju(t){const{direction:e,origin:n}=t,o=pt(n,Gr(e)).getNodeAtCaret();return o?pt(o,e):pn(n.getParentOrThrow(),e)}function $f(t,e="root"){const n=[t];for(let o=xn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(ju(o));return n}function ec(t){return!!t&&t.origin.isAttached()}function vce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Uh(t,o),a=$f(s.anchor,n),l=$f(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(xn(h))c.add(h.origin.getKey());else if(Rr(h)){const{origin:g}=h;R(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=ju(pt(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&r==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){r="removeEmptySlices";let _=h.removeTextSlice();const k=h.caret.origin;if(v==="segmented"){const w=_.origin,b=Ke(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=tr(b,o,_.offset)}k.is(a[0].origin)&&(a[0]=_),k.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(ec(h)){d=Gt(h);break}for(const h of l)if(ec(h)){f=Gt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),v=g.getParentAtCaret();if(!C||!v)return null;const _=C.getParents().reverse();_.push(C);const k=v.getParents().reverse();k.push(v);const w=Math.min(_.length,k.length);let b;for(b=0;b<w&&_[b]===k[b];b++);const E=(N,L)=>{let A;for(let D=b;D<N.length;D++){const M=N[D];if(kt(M))return;!A&&L(M)&&(A=M)}return A},T=E(_,Zt),x=T&&E(k,N=>y.has(N.getKey())&&Zt(N));return T&&x?[T,x]:null}(d,f,c);if(p){const[h,g]=p;pn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(ec);if(m)return hce(zr(Gt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Gt(t){const e=function(r){let s=r;for(;xn(s);){const a=Uu(s);if(!xn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return fo(e)?e:tr(e.origin,n,n);const o=e.getAdjacentCaret();return Rr(o)&&Q(o.origin)?tr(o.origin,n,Gr(n)):e}function zh(t){return fo(t)&&t.offset!==po(t.origin,t.direction)}function zr(t,e){return t.direction===e?t:t.getFlipped()}function Uh(t,e){return t.direction===e?t:yo(zr(t.focus,e),zr(t.anchor,e))}function yce(t,e,n){let o=pn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return zr(o,n)}const Vc=new Map;function qh(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 Bf(t){let e=Vc.get(t);return e===void 0&&(e=qh(t),Vc.set(t,e)),e}function Hh(t){const e=il().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function jh(t){return Hh(Ye(t)?t:t.getParentOrThrow())}function Of(t){const e=jh(t);return e!==null&&e.direction==="rtl"}function Wh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Rn(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]=Mc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const v=e.__text.slice(C,y);v!==e.__text&&(n==="clone"&&(e=ice(e)),e.__text=v)}}return e}function _ce(t){const e=t.getStyle(),n=qh(e);Vc.set(e,n)}function Cce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function tc(t,e,n=Cce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Qa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=Jt(a.getNode(),Zt),u=Jt(l.getNode(),Zt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Zt(a))r.set(a.getKey(),a);else if(o===null){const l=Jt(a,Zt);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())&&ht(s)}function Zh(t){const e=Kh(t);return e!==null&&e.writingMode==="vertical-rl"}function Kh(t){const e=t.anchor.getNode();return R(e)?Hh(e):jh(e)}function Lf(t,e){let n=Zh(t)?!e:e;Gh(t)&&(n=!n);const o=Kn(t.focus,n?"previous":"next");if(zh(o))return!1;for(const r of Hu(o)){if(xn(r))return!r.origin.isInline();if(!R(r.origin)){if(Te(r.origin))return!0;break}}return!1}function bce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Gh(t){const e=Kh(t);return e!==null&&e.direction==="rtl"}function If(t,e,n){const o=Gh(t);let r;r=Zh(t)||o?!n:n,bce(t,e,r,"character")}function kce(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 Wu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,wce=Wu&&"documentMode"in document?document.documentMode:null;!(!Wu||!("InputEvent"in window)||wce)&&"getTargetRanges"in new window.InputEvent("input");function Yh(...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 ms(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Ece=Wu;function Gn(t,...e){const n=Yh(...e);n.length>0&&t.classList.add(...n)}function Zu(t,...e){const n=Yh(...e);n.length>0&&t.classList.remove(...n)}function Sce(t){return t?t.getAdjacentCaret():null}function xce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Tce(t){const e=Jt(t,n=>R(n)&&!n.isInline());return R(e)||kce(4,t.__key),e}function Po(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function lo(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 Rc(t){let e=1,n=t.getParent();for(;n!=null;){if(Ae(n)){const o=n.getParent();if(pe(o)){e++,n=o.getParent();continue}lo(40)}return e}return e}function zc(t){let e=t.getParent();pe(e)||lo(40);let n=e;for(;n!==null;)n=n.getParent(),pe(n)&&(e=n);return e}function Jh(t){let e=[];const n=t.getChildren().filter(Ae);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();pe(s)?e=e.concat(Jh(s)):e.push(r)}return e}function kn(t){return Ae(t)&&pe(t.getFirstChild())}function Pf(t){return qt().append(t)}function Xh(t,e){return Ae(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ff(t){const e=te();if(e!==null){let n=e.getNodes();if(K(e)){const r=e.getStartEndPoints();r===null&&lo(143);const[s]=r,a=s.getNode(),l=a.getParent();if(kt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Fe();a.append(u),n=u.select().getNodes()}}else if(Xh(a,n)){const c=Nt(t);if(kt(l)){a.replace(c);const u=qt();R(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Ae(a)){const u=a.getParentOrThrow();or(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()&&!Ae(s)&&!o.has(s.getKey())){Vf(s,t);continue}let a=Th(s)?s.getParent():Ae(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(pe(a)){if(!o.has(l)){const c=Nt(t);or(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(kt(c)&&!o.has(l)){o.add(l),Vf(a,t);break}a=c}}}}}function or(t,e){t.splice(t.getChildrenSize(),0,e)}function Vf(t,e){if(pe(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=qt();let s;if(or(r,t.getChildren()),pe(n)&&e===n.getListType())n.append(r),pe(o)&&e===o.getListType()&&(or(n,o.getChildren()),o.remove()),s=n;else if(pe(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=Nt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Ku(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&kn(n)&&kn(o)&&(Ku(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Ace(){const t=te();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Xh(o,n))e.add(zc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Th(s)){const a=xce(s,Eo);a!=null&&e.add(zc(a))}}for(const r of e){let s=r;const a=Jh(r);for(const l of a){const c=Fe().setTextStyle(t.style).setTextFormat(t.format);or(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&nr(t.anchor,Gt(pn(c,"next"))),l.__key===t.focus.key&&nr(t.focus,Gt(pn(c,"next"))),l.remove()}r.remove()}}}function Qh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Ae(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),pe(o.getFirstChild())||n++)}function Nce(t){const e=new Set;if(kn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(kn(o)&&kn(r)){const s=r.getFirstChild();if(pe(s)){s.append(t);const a=o.getFirstChild();pe(a)&&(or(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(kn(o)){const s=o.getFirstChild();if(pe(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(kn(r)){const s=r.getFirstChild();pe(s)&&s.append(t)}else if(pe(n)){const s=qt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Nt(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 Dce(t){if(kn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(pe(n?n.getParent():void 0)&&Ae(n)&&pe(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=qt(),l=Nt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=qt(),u=Nt(s);c.append(u),or(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Mce(){const t=te();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Ae(e)||e.getChildrenSize()!==0)return!1;const n=zc(e),o=e.getParent();pe(o)||lo(40);const r=o.getParent();let s;if(kt(r))s=Fe(),n.insertAfter(s);else{if(!Ae(r))return!1;s=qt(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Nt(o.getListType());if(Ae(s)){const c=qt();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||!Ae(u)&&!pe(u))break;c=u}c.remove()}(e),!0}function _a(...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 Eo=class extends Ut{constructor(n=1,o=void 0,r){super(r);U(this,"__value");U(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();pe(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Ut,importDOM:{li:()=>({conversion:$ce,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();!pe(d)||d.getListType()!=="check"||pe(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,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(..._a(m)),p){const g=u.getParent(),y=pe(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=_a(h);u.getChildren().some(y=>pe(y))?d.push(...g):f.push(...g)}f.length>0&&Zu(l,...f),d.length>0&&Gn(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=Bf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Bf(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(Ae(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!pe(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=Nt(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)||lo(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(pe(r)||lo(39),Ae(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=Nt(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&&kn(o)&&kn(r)&&(Ku(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=qt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Fe();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=Ae(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 pe(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(;Ae(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&lo(117),(n=Math.floor(n))>=0||lo(199);let o=this.getIndent();for(;o!==n;)o<n?(Nce(this),o++):(Dce(this),o--);return this}canInsertAfter(n){return Ae(n)}canReplaceWith(n){return Ae(n)}canMergeWith(n){return Ae(n)||ds(n)}extractWithChild(n,o){if(!K(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 Nt("bullet")}canMergeWhenEmpty(){return!0}};function $ce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Rf(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 Rf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:qt(e==="true"||e!=="false"&&void 0)}}function Rf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:qt(t.hasAttribute("checked"))}}function qt(t){return gn(new Eo(void 0,t))}function Ae(t){return t instanceof Eo}let ir=class extends Ut{constructor(n="number",o=1,r){super(r);U(this,"__tag");U(this,"__start");U(this,"__listType");const s=Oce[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();pe(r)&&o.getListType()===r.getListType()&&Ku(o,r)})(n),Qh(n)},extends:Ut,importDOM:{ol:()=>({conversion:Uf,priority:0}),ul:()=>({conversion:Uf,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,zf(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(zf(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 Xe(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];Ae(l)||(s===r&&(s=[...r]),s[a]=qt().append(!R(l)||pe(l)||l.isInline()?l:Ke(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Ae(n)}};function zf(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Rc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(..._a(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=_a(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&Zu(t,...r),o.length>0&&Gn(t,...o)}function Bce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Ae(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{pe(s)&&e.push(Pf(s))})}else e.push(Pf(o))}return e}function Uf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Nt("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(Xe(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Nt("check"):Nt("bullet")),{after:Bce,node:n}}const Oce={ol:"number",ul:"bullet"};function Nt(t="number",e=1){return gn(new ir(t,e))}function pe(t){return t instanceof ir}const Lce=de("UPDATE_LIST_START_COMMAND"),eg=de("INSERT_UNORDERED_LIST_COMMAND"),tg=de("INSERT_ORDERED_LIST_COMMAND"),Ice=de("REMOVE_LIST_COMMAND");function Pce(t){return ms(t.registerCommand(tg,()=>(Ff("number"),!0),yi),t.registerCommand(Lce,e=>{const{listNodeKey:n,newStart:o}=e,r=tt(n);return!!pe(r)&&(r.getListType()==="number"&&(r.setStart(o),Qh(r)),!0)},yi),t.registerCommand(eg,()=>(Ff("bullet"),!0),yi),t.registerCommand(Ice,()=>(Ace(),!0),yi),t.registerCommand(Zi,()=>Mce(),yi),t.registerNodeTransform(Eo,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();K(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(ko,e=>{const n=e.getParent();if(Ae(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Fce(t){const e=n=>{const o=n.getParent();if(pe(n.getFirstChild())||!pe(o))return;const r=Jt(n,s=>Ae(s)&&pe(s.getParent())&&Ae(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(Ae(r)){const s=r.getPreviousSibling();if(Ae(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;pe(d);){const f=d.getLastChild();if(!Ae(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(pe(l)){const c=Rc(l);c+1<Rc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(ir,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(pe(r)){for(const s of r.getChildren())if(Ae(s)){e(s);const a=s.getFirstChild();pe(a)&&o.push(a)}}}})}function Vce(t,e){const n=xh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!og.has(s.nodeName)){const a=rg(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Nu&&a.insertAfter(dn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Rce(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=We().getChildren();for(let r=0;r<o.length;r++)ng(t,o[r],n,e);return n.innerHTML}function ng(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=R(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=Wh(o,e,"clone"));const l=R(a)?a.getChildren():[],c=Mu(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 m=0;m<l.length;m++){const h=l[m],g=ng(t,h,p,o);!r&&R(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((Xe(d)||Pc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Pc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const og=new Set(["STYLE","SCRIPT"]);function rg(t,e,n,o,r=new Map,s){let a=[];if(og.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let v=null;if(C!==void 0)for(const _ of C){const k=_(h);k!==null&&(v===null||(v.priority||0)<=(k.priority||0))&&(v=k)}return v!==null?v.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!kt(l))&&(l!=null&&$c(l)||o);for(let h=0;h<f.length;h++)p.push(...rg(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),ya(t)&&(p=zce(t,p,m?()=>{const h=new Nu;return n.push(h),h}:Fe)),l==null?p.length>0?a=a.concat(p):ya(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fc(h.nextSibling)&&Fc(h.previousSibling)}(t)&&(a=a.concat(dn())):R(l)&&l.append(...p),a}function zce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if($c(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&$c(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function Ca(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 Uce(t,e=te()){return e==null&&Ca(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Rce(t,e)}function qce(t,e=te()){return e==null&&Ca(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Hce(t,e))}function qf(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 Hf(n,jce(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 Hf(n,Vce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(K(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(K(u)){const d=l[c];d===`
29
+ `?o.push(dn()):a===" "?o.push(Zr()):o.push(Ze(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(y,C,v,_){const k=y.getNode(),w=k.getChildAtIndex(y.offset),b=Ze();if(b.setFormat(v),b.setStyle(_),ds(w))w.splice(0,0,[b]);else{const E=Je(k)?Fe().append(b):b;w===null?k.append(E):w.insertBefore(E)}y.is(C)&&C.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&rr(l,Yt(Gn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];Q(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(zn(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(Q(y)&&y.canInsertTextBefore()&&!zn(y)||(y=Ze(),y.setFormat(r),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(zn(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(Q(y)&&!zn(y)||(y=Ze(),y.setFormat(r),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ze(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||R(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),fh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Ho(p)){const _=Ze(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ja(p)){const _=Ze(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ze(e);if(_.setFormat(r),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[k]=p.splitText(c);k.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const v=u-c;p=p.spliceText(c,v,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=R(p)?p:p.getParentOrThrow();let v=R(g)?g:g.getParentOrThrow(),_=g;if(!C.is(v)&&v.isInline())do _=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(Q(g)&&!Ho(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ze(g.getTextContent());g.replace(T),g=T}Je(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const T=g.getParentOrThrow();T.canBeEmpty()||T.getChildrenSize()!==1?g.remove():T.remove()}else y.add(g.__key);const k=v.getChildren(),w=new Set(d),b=C.is(v),E=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=k.length-1;T>=0;T--){const x=k[T];if(x.is(p)||R(x)&&x.isParentOf(p))break;x.isAttached()&&(!w.has(x)||x.is(_)?b||E.insertAfter(x,!1):x.remove())}if(!b){let T=v,x=null;for(;T!==null;){const N=T.getChildren(),I=N.length;(I===0||N[I-1].is(x))&&(y.delete(T.__key),x=T),T=T.getParent()}}if(Ho(p))if(c===m)p.select();else{const T=Ze(e);T.select(),p.replace(T)}else p=p.spliceText(c,m-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 x=d[T],N=x.__key;y.has(N)||x.remove()}}}removeText(){const e=te()===this;Ks(this,vce(Mf(this))),e&&te()!==this&&mt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void ut(null);const o=this.getNodes(),r=[];for(const k of o)Q(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(R(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),ut(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,m=r[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=r[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=r[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(zn(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const k=m.splitText(h,v),w=h===0?k[0]:k[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||zn(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||zn(C)||([C]=C.splitText(v)),C.setFormat(_));for(let k=p+1;k<y;k++){const w=r[k],b=w.getFormatFlags(e,_);w.setFormat(b)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,v,"text"),this.format=g|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return Z(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Xt(n,Kt),r=e[e.length-1];if(R(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Yl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(R(h)||Te(h))&&!h.isInline())){R(o)||G(211,n.constructor.name,n.getType());const h=Yl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Fe();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=fo(v);if(_||Te(v)&&v.isInline()||R(v)&&v.isInline()||Q(v)||v.isParentRequired()){if(y===null&&(y=v.createParentElementNode(),g.append(y),_))continue;y!==null&&y.append(v)}else g.append(v),y=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)&&Kt(f)&&!f.isEmpty()&&R(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(R(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=Xt(a,Kt);c&&R(p)&&(c.canMergeWhenEmpty()||Kt(u))&&(p.append(...c.getChildren()),c.remove()),R(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=R(o)?o.getLastChild():null;fo(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Fe();return je().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Yl(this),n=Xt(this.anchor.getNode(),Kt);R(n)||G(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=dn();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]=Mc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(ff(this,e,n,o))return;const r=e==="move",s=He(),a=fn(tn(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()||Ic(l,s,c),this.dirty){let d=er(s,this.anchor.key),f=er(s,this.focus.key);this.anchor.type==="text"&&(d=Vr(d)),this.focus.type==="text"&&(f=Vr(f)),d&&f&&gh(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Je(f)?f:tce(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Lc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];R(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];R(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,v=y.anchor,_=v.key,k=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,k,w,!0)}(this)}}o==="lineboundary"&&ff(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=Hu(Gn(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(Tn(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=Yt(c);Ks(this,_o(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(zr(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(Te(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=hh();u.add(c.origin.getKey()),mt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ks(this,_o(!c.origin.isEmpty()&&u.isEmpty()?ju(ft(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&&sf(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 af(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 af(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,v=y?g:h,_=v-1;C!==_&&function(k){return!(Mh(k)||Fle(k))}(p.getTextContent().slice(C,v))&&(u?f.set(f.key,_,f.type):d.set(d.key,_,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()&&Je(o.getParent())&&o.getPreviousSibling()===null&&sf(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 Vt(t){return t instanceof Xa}function rf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Mc(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]:[rf(n),rf(o)]}function sf(t,e){for(let n=e;n;n=n.getParent()){if(R(n)){if(n.collapseAtStart(t))return!0;if(wt(n))break}if(n.getPreviousSibling())break}return!1}const Fle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function af(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 lf(t,e,n,o){let r,s=e;if(Qe(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=kr(d),Q(r))s=mo(r,a?"next":"previous");else{let p=kr(t);if(p===null)return null;if(R(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),R(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(R(g)&&function(y,C,v){const _=y.getParent();return v===null||_===null||!_.canBeEmpty()||_!==v.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=R(g)?g:g.getParentOrThrow()),s=0}Q(g)?(r=g,p=null,s=mo(g,a?"next":"previous")):g!==p&&a&&!f&&(R(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Te(p)&&kr(t)===p?m:m+1,p=p.getParentOrThrow()}if(R(p))return Mn(p.__key,s,"element")}}else r=kr(t);return Q(r)?Mn(r.__key,mo(r,s,"clamp"),"text"):null}function cf(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&R(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else R(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&R(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&R(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function fh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);cf(t,o,r),cf(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=He();if(s.isComposing()&&s._compositionKey!==t.key&&Z(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 ph(t,e,n,o,r,s){if(t===null||n===null||!fs(r,t,n))return null;const a=lf(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=lf(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=kr(t),u=kr(n);if(Te(c)&&Te(u))return null}return fh(a,l,s),[a,l]}function $c(t){return R(t)&&!t.isInline()}function mh(t,e,n,o,r,s){const a=Eo(),l=new sr(Mn(t,e,r),Mn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Qa(){const t=Mn("root",0,"element"),e=Mn("root",0,"element");return new sr(t,e,0,"")}function hh(){return new Xa(new Set)}function xu(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=!gc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(Z(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)&&Z(t)&&!fs(n,u,d))return t.clone();const m=ph(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new sr(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function te(){return Eo()._selection}function Kr(){return He()._editorState._selection}function ma(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"),uf(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,m=p.getNode();if(e.is(f)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}uf(t)}function uf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!R(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(R(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(R(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ha(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):R(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,Q(r)?l="text":R(r)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function df(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 gh(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Vle(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(ch)&&f!==s||f!==null&&$u(f))return;if(!Z(e))return void(t!==null&&fs(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=er(n,h),C=er(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,x=!1;if(p.type==="text"){E=Vr(y);const L=p.getNode();x=L.getFormat()!==k||L.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(x=!0);var N,I,A,D,M;if(m.type==="text"&&(T=Vr(C)),E!==null&&T!==null&&(b&&(t===null||x||Z(t)&&(t.format!==k||t.style!==w))&&(N=k,I=w,A=v,D=h,M=performance.now(),nh=[N,I,A,D,M]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Dle)||s.focus({preventScroll:!0}),p.type==="element"))){if(gh(o,E,v,T,_),!r.has(Ale)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const L=Z(e)&&e.anchor.type==="element"?E.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(L!==null){let P;if(L instanceof Text){const j=document.createRange();j.selectNode(L),P=j.getBoundingClientRect()}else P=L.getBoundingClientRect();(function(j,V,q){const F=Lh(q),Y=Fu(F);if(F===null||Y===null)return;let{top:ee,bottom:we}=V,se=0,ie=0,z=q;for(;z!==null;){const oe=z===F.body;if(oe)se=0,ie=tn(j).innerHeight;else{const Be=z.getBoundingClientRect();se=Be.top,ie=Be.bottom}let ye=0;if(ee<se?ye=-(se-ee):we>ie&&(ye=we-ie),ye!==0)if(oe)Y.scrollBy(0,ye);else{const Be=z.scrollTop;z.scrollTop+=ye;const H=z.scrollTop-Be;ee-=H,we-=H}if(oe)break;z=ps(z)}})(n,P,s)}}Ac=!0}}function Rle(t){let e=te()||Kr();e===null&&(e=je().selectEnd()),e.insertNodes(t)}function Yl(t){let e=t;t.isCollapsed()||e.removeText();const n=te();Z(n)&&(e=n),Z(e)||G(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Kt(r);){const a=r;if([r,s]=zle(r,s),a.is(r))break}return s}function zle(t,e){const n=t.getParent();if(!n){const r=Fe();return je().append(r),r.select(),[je(),0]}if(Q(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!R(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new sr(Mn(t.__key,e,"element"),Mn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ff(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=Gn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!zh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Te(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Hu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Tn(d))d.origin.isInline()||(c=d);else{if(R(d.origin))continue;Te(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Te(c.origin)&&c.origin.isKeyboardSelectable()){const d=hh();return d.add(c.origin.getKey()),mt(d),!0}return c=Yt(c),l&&rr(t.anchor,c),rr(t.focus,c),u||!a}let lt=null,ct=null,Dt=!1,Jl=!1,Ws=0;const pf={characterData:!0,childList:!0,subtree:!0};function ls(){return Dt||lt!==null&&lt._readOnly}function st(){Dt&&G(13)}function vh(){Ws>99&&G(14)}function Eo(){return lt===null&&G(195,yh()),lt}function He(){return ct===null&&G(196,yh()),ct}function yh(){let t=0;const e=new Set,n=Qo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=nl(r);if(Bu(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 Ule(){return ct}function mf(t,e,n){const o=e.__type,r=Eh(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 hf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function _h(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 qle(t){return Tu(t,He()._nodes)}function Tu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const r=o.klass;t.type!==r.getType()&&G(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=Tu(a[l],e);s.append(c)}return s}function gf(t,e,n){const o=lt,r=Dt,s=ct;lt=e,Dt=!0,ct=t;try{return n()}finally{lt=o,Dt=r,ct=s}}function qn(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=lt,d=Dt,f=ct,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){ct=t,lt=n,Dt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=dle(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Jl)throw b;return wh(t,null,o,n),Mm(t),t._dirtyType=2,Jl=!0,qn(t,s),void(Jl=!1)}finally{m.observe(o,pf),t._updating=p,lt=u,Dt=d,ct=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,v=t._updateTags,_=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(b,E){const T=b._decorators;let x=b._pendingDecorators||T;const N=E._nodeMap;let I;for(I in x)N.has(I)||(x===T&&(x=Nh(b)),delete x[I])}(t,n);const k=r?null:fn(tn(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Nle)){ct=t,lt=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Ic(b,t,o),Vle(a,l,t,k,v,o)}(function(b,E,T){let x=b._blockCursorElement;if(Z(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,I=N.getNode(),A=N.offset;let D=!1,M=null;if(A===I.getChildrenSize())Ql(I.getChildAtIndex(A-1))&&(D=!0);else{const L=I.getChildAtIndex(A);if(L!==null&&Ql(L)){const P=L.getPreviousSibling();(P===null||Ql(P))&&(D=!0,M=b.getElementByKey(L.__key))}}if(D){const L=b.getElementByKey(I.__key);return x===null&&(b._blockCursorElement=x=function(P){const j=P.theme,V=document.createElement("div");V.contentEditable="false",V.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const F=xm(q);q=j.blockCursor=F}q!==void 0&&V.classList.add(...q)}return V}(b._config)),E.style.caretColor="transparent",void(M===null?L.appendChild(x):L.insertBefore(x,M))}}x!==null&&Ic(x,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,pf),ct=f,lt=u}}h!==null&&function(b,E,T,x,N){const I=Array.from(b._listeners.mutation),A=I.length;for(let D=0;D<A;D++){const[M,L]=I[D];for(const P of L){const j=E.get(P);j!==void 0&&M(j,{dirtyLeaves:x,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Rm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,$i("decorator",t,!0,w)),function(b,E,T){const x=bf(E),N=bf(T);x!==N&&$i("textcontent",b,!0,N)}(t,e||s,n),$i("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(b,E){if(b._deferred=[],E.length!==0){const T=b._updating;b._updating=!0;try{for(let x=0;x<E.length;x++)E[x]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[x,N]=T;el(b,x,N)}}}(t)}function $i(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 vf(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&&G(191),l._flushSync=!0),c&&t._deferred.push(c),_h(t,a.tag)),l==null?el(t,s,a):s()}}return o}function el(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,_h(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=bh(c||l),u=!0),c._flushSync=a;const d=lt,f=Dt,p=ct,m=t._updating;lt=c,Dt=!1,t._updating=!0,ct=t;const h=t._headless||t.getRootElement()===null;Du(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=fn(tn(v));return Z(k)||k==null?xu(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=vf(t,s),function(v,_){const k=_.getEditorState()._selection,w=v._selection;if(Z(w)){const b=w.anchor,E=w.focus;let T;if(b.type==="text"&&(T=b.getNode(),T.selectionTransform(k,w)),E.type==="text"){const x=E.getNode();T!==x&&x.selectionTransform(k,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const k=_._dirtyLeaves,w=v._nodeMap;for(const b of k){const E=w.get(b);Q(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&j1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=lo(),T=new Map;let x=k,N=x.size,I=w,A=I.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of x){const M=b.get(D);Q(M)&&M.isAttached()&&M.isSimpleText()&&!M.isUnmergeable()&&j1(M),M!==void 0&&hf(M,E)&&mf(_,M,T),k.add(D)}if(x=_._dirtyLeaves,N=x.size,N>0){Ws++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const D of I){const M=D[0],L=D[1];if(w.set(M,L),!L)continue;const P=b.get(M);P!==void 0&&hf(P,E)&&mf(_,P,T)}x=_._dirtyLeaves,N=x.size,I=_._dirtyElements,A=I.size,Ws++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),vf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[x]of w){const N=E.get(x);N!==void 0&&(N.isAttached()||(R(N)&&Am(N,x,b,E,T,w),b.has(x)||w.delete(x),T.push(x)))}for(const x of T)E.delete(x);for(const x of k){const N=E.get(x);N===void 0||N.isAttached()||(b.has(x)||k.delete(x),E.delete(x))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(Z(C)){const v=c._nodeMap,_=C.anchor.key,k=C.focus.key;v.get(_)!==void 0&&v.get(k)!==void 0||G(19)}else Vt(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void qn(t)}finally{lt=d,Dt=f,ct=p,t._updating=m,Ws=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const v=C.getEditorState()._selection,_=y._selection;if(_!==null){if(_.dirty||!_.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,qn(t)):u&&Gle(()=>{qn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Rt(t,e,n){ct===t&&n===void 0?e():el(t,e,n)}class Bi{constructor(e,n,o){U(this,"element");U(this,"before");U(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Bi(this.element,e,this.after)}withAfter(e){return new Bi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Bi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(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"&&(Hi||Fr||qi);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=yf(n,o);s.push(r);const a=yf(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 yf(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&&G(225),n.reverse()}class Ht extends un{constructor(n){super(n);U(this,"__first");U(this,"__last");U(this,"__size");U(this,"__format");U(this,"__style");U(this,"__indent");U(this,"__dir");U(this,"__textFormat");U(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 Jae[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=He()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),R(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;R(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;R(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return R(a)&&a.getLastDescendant()||a||null}const s=o[n];return R(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:nt(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:nt(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(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+=yo)}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=P1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=kt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ga(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){st();const r=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||R(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||R(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):mh(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!==""?P1[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){fa(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(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 h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;jo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of r){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,jo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=te();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;_f(C,g,y)&&ha(C,C.getNode(),this,f,d),_f(v,g,y)&&ha(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||wt(this)||this.remove()}}return a}getDOMSlot(n){return new Bi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(Qe(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 Ht}function _f(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 Ch extends un{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Te(t){return t instanceof Ch}class cs extends Ht{constructor(){super("root");U(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new cs}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!ls()&&He()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)R(s)||Te(s)||G(282);return super.splice(n,o,r)}static importJSON(n){return je().updateFromJSON(n)}collapseAtStart(){return!0}}function Je(t){return t instanceof cs}function bh(t){return new tl(new Map(t._nodeMap))}function Au(){return new tl(new Map([["root",new cs]]))}function kh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),R(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=kh(r[s]);o.push(a)}}return e}class tl{constructor(e,n){U(this,"_nodeMap");U(this,"_selection");U(this,"_flushSync");U(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 gf(n&&n.editor||null,this,e)}clone(e){const n=new tl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return gf(null,this,()=>({root:kh(je())}))}}class Nu extends Ht{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class us extends Ht{static getType(){return"paragraph"}static clone(e){return new us(e.__key)}createDOM(e){const n=document.createElement("p"),o=Ar(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Hle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Qe(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Fe().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Fe();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Hle(t){const e=Fe();return t.style&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Fe(){return gn(new us)}function ds(t){return t instanceof us}const Se=0,yi=1,jle=4;function wh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Au(),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 Wle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=sl(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 un&&a!==un?a:void 0}}return e}function Zle(t){const e=t||{},n=Ule(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Au(),l=e.namespace||(r!==null?r._config.namespace:$h()),c=e.editorState,u=[cs,wo,ss,as,us,Nu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,v=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,v=w.withKlass||null}sl(y);const _=y.getType(),k=Wle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:sle(u[g]),transforms:k})}}const h=new Qo(a,r,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=k=>{Object.keys(k).forEach(w=>{let b=C.get(w);b===void 0&&(b=[],C.set(w,b)),b.push(k[w])})};return g.forEach(k=>{const w=k.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const b=w.call(k.klass);b!==null&&_(b)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class Qo{constructor(e,n,o,r,s,a,l,c){U(this,"_headless");U(this,"_parentEditor");U(this,"_rootElement");U(this,"_editorState");U(this,"_pendingEditorState");U(this,"_compositionKey");U(this,"_deferred");U(this,"_keyToDOMMap");U(this,"_updates");U(this,"_updating");U(this,"_listeners");U(this,"_commands");U(this,"_nodes");U(this,"_decorators");U(this,"_pendingDecorators");U(this,"_config");U(this,"_dirtyType");U(this,"_cloneNotNeeded");U(this,"_dirtyLeaves");U(this,"_dirtyElements");U(this,"_normalizedNodes");U(this,"_updateTags");U(this,"_observer");U(this,"_key");U(this,"_onError");U(this,"_htmlConversions");U(this,"_window");U(this,"_editable");U(this,"_blockCursorElement");U(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=$h(),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&&G(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&&G(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&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Af(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=Af(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=nt(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Mi}: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=Ar(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,wh(this,n,e,r),n!==null&&(this._config.disableEvents||Sle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Fu(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,Mm(this),this._updateTags.add(Mi),qn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Tc.set(l,u);const d=da.get(u)??0;d<1&&u.addEventListener("selectionchange",ah),da.set(u,d+1),l.__lexicalEditor=c;const f=sh(l);for(let p=0;p<xc.length;p++){const[m,h]=xc[p],g=typeof h=="function"?y=>{X1(y)||(J1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(X1(y))return;J1(y);const C=c.isEditable();switch(m){case"cut":return C&&re(c,Eu,y);case"copy":return re(c,Ya,y);case"paste":return C&&re(c,bu,y);case"dragstart":return C&&re(c,Xm,y);case"dragover":return C&&re(c,Qm,y);case"dragend":return C&&re(c,_le,y);case"focus":return C&&re(c,kle,y);case"blur":return C&&re(c,wle,y);case"drop":return C&&re(c,Jm,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),qn(this);$i("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=bh(e),o._selection=e._selection?e._selection.clone():null),Dm(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),qn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||qn(this)}parseEditorState(e,n){return function(o,r,s){const a=Au(),l=lt,c=Dt,u=ct,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,m=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,lt=a,Dt=!1,ct=r,Du(null);try{const h=r._nodes;Tu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&r._onError(h)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=m,lt=l,Dt=c,ct=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return qn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):el(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Rt(this,()=>{const r=te(),s=je();r!==null?r.dirty||mt(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Qle("focus"),ece(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=fn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,$i("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}U(Qo,"version");Qo.version="0.38.1+prod.esm";let Bc=null;function Du(t){Bc=t}let Kle=1;function Eh(t,e){const n=Mu(t,e);return n===void 0&&G(30,e),n}function Mu(t,e){return t._nodes.get(e)}const Gle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Cf(t){return Te(Rr(t))}function $u(t){const e=document.activeElement;if(!Qe(e))return!1;const n=e.nodeName;return Te(Rr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&nl(e)==null)}function fs(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!$u(e)&&Sh(e)===t}catch{return!1}}function Bu(t){return t instanceof Qo}function Sh(t){let e=t;for(;e!=null;){const n=nl(e);if(Bu(n))return n;e=ps(e)}return null}function nl(t){return t?t.__lexicalEditor:null}function Ho(t){return Ja(t)||t.isToken()}function zn(t){return Ho(t)||t.isSegmented()}function Qn(t){return Gr(t)&&t.nodeType===3}function xh(t){return Gr(t)&&t.nodeType===9}function Vr(t){let e=t;for(;e!=null;){if(Qn(e))return e;e=e.firstChild}return null}function ga(t,e,n){const o=kt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~kt.superscript:e==="superscript"?r&=~kt.subscript:e==="lowercase"?(r&=~kt.uppercase,r&=~kt.capitalize):e==="uppercase"?(r&=~kt.lowercase,r&=~kt.capitalize):e==="capitalize"&&(r&=~kt.lowercase,r&=~kt.uppercase),r}function Th(t){return Q(t)||fo(t)||Te(t)}function Yle(t,e){const n=function(){const a=Bc;return Bc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);st(),vh();const o=He(),r=Eo(),s=""+Kle++;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 jo(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 va(t){vh(),fa(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Eo(),r=He(),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 ut(t){st();const e=He(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=nt(n);o!==null&&o.getWritable()}if(t!==null){const o=nt(t);o!==null&&o.getWritable()}}}function lo(){return ls()?null:He()._compositionKey}function nt(t,e){const n=(e||Eo())._nodeMap.get(t);return n===void 0?null:n}function Ah(t,e){const n=ol(t,He());return n!==void 0?nt(n,e):null}function ol(t,e){return t[`__lexicalKey_${e._key}`]}function Rr(t,e){let n=t;for(;n!=null;){const o=Ah(n,e);if(o!==null)return o;n=ps(n)}return null}function Nh(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function bf(t){return t.read(()=>je().getTextContent())}function je(){return Dh(Eo())}function Dh(t){return t._nodeMap.get("root")}function mt(t){st();const e=Eo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function kr(t){const e=He(),n=function(o,r){let s=o;for(;s!=null;){const a=ol(s,r);if(a!==void 0)return a;s=ps(s)}return null}(t,e);return n===null?t===e.getRootElement()?nt("root"):null:nt(n)}function Mh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Ou(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function $h(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Bh(t){return Qn(t)?t.nodeValue:null}function Lu(t,e,n){const o=fn(tn(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Bh(r);const c=Rr(r);if(l!==null&&Q(c)){if(l===Ka&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Iu(c,l,s,a,t)}}}function Iu(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]===Ka&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(ut(null),qi||Fr||Hi)s.remove();else{const g=He();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Kr(),f=s.getTextContentSize(),p=lo(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||Z(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 h=te();if(!Z(h)||n===null||o===null)return void kf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ze(s.getTextContent());s.replace(g),s=g}kf(s,l,h)}}}function kf(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=mo(t,s.offset,"clamp"))}}}function Fs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Jle(t,e){return Fs(t,e,"altKey")&&Fs(t,e,"ctrlKey")&&Fs(t,e,"shiftKey")&&Fs(t,e,"metaKey")}function Me(t,e,n){return Jle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Rn={ctrlKey:!an,metaKey:an},wf={altKey:an,ctrlKey:!an};function Ef(t){return t.key==="Backspace"}function Sf(t){return Me(t,"a",Rn)}function Xle(t){const e=je();if(Z(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"),ia(t),t}{const n=e.select(0,e.getChildrenSize());return mt(ia(n)),n}}function Ar(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=xm(r);return n[e]=s,s}return r}function Pu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(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 xf(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 Oc(t,e){const n=t.offset;if(t.type==="element")return xf(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?xf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Oh(t){const e=tn(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function re(t,e,n){return function(o,r,s){const a=Ou(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),m=p.length;let h=!1;if(Rt(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function rl(t){return!Je(t)&&!t.isLastChild()&&!t.isInline()}function er(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function ps(t){const e=t.assignedSlot||t.parentElement;return Pc(e)?e.host:e}function Lh(t){return xh(t)?t:Qe(t)?t.ownerDocument:null}function Qle(t){st(),He()._updateTags.add(t)}function ece(t){st(),He()._deferred.push(t)}function Lc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Fu(t){const e=Lh(t);return e?e.defaultView:null}function tn(t){const e=t._window;return e===null&&G(78),e}function tce(t){let e=t.getParentOrThrow();for(;e!==null;){if(wt(e))return e;e=e.getParentOrThrow()}return e}function wt(t){return Je(t)||R(t)&&t.isShadowRoot()}function gn(t){const e=He(),n=t.getType(),o=Mu(e,n);o===void 0&&G(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||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Xl(t,e){!Je(t.getParent())||R(e)||Te(e)||G(99)}function nce(t){const e=nt(t);return e===null&&G(63,t),e}function Ql(t){return(Te(t)||R(t)&&!t.canBeEmpty())&&!t.isInline()}function Ic(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function fn(t){return hn?(t||window).getSelection():null}function oce(t){const e=Fu(t);return e?e.getSelection():null}function Ih(t){return Qe(t)&&t.tagName==="A"}function Qe(t){return Gr(t)&&t.nodeType===1}function Gr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Pc(t){return Gr(t)&&t.nodeType===11}function Fc(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 ya(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 Kt(t){if(Te(t)&&!t.isInline())return!0;if(!R(t)||wt(t))return!1;const e=t.getFirstChild(),n=e===null||fo(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function il(){return He()}const Tf=new WeakMap,rce=new Map;function Af(t){if(!t._readOnly&&t.isEmpty())return rce;t._readOnly||G(192);let e=Tf.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),Tf.set(t,e)),e}function Ph(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ice(t){return(e=Ph(t))[lh]=!0,e;var e}function Vu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function sce(t){return t.__lexicalUnmanaged===!0}function _i(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==un[e]}function sl(t){const e=F1 in t.prototype?t.prototype[F1]():void 0,n=function(a){if(!(a===un||a.prototype instanceof un)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Qo.version&&(c=JSON.parse(Qo.version))}catch{}G(290,a.name,l,c)}return a===Ch||a===Ht||a===un}(t),o=!n&&_i(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&&(_i(t,"getType")||(t.getType=()=>s),_i(t,"clone")||(t.clone=a=>(Du(a),new t)),_i(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!_i(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ace(t){const e=il();return st(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Xt=(t,e)=>{let n=t;for(;n!=null&&!Je(n);){if(e(n))return n;n=n.getParent()}return null},lce={next:"previous",previous:"next"};class Ru{constructor(e){U(this,"origin");this.origin=e}[Symbol.iterator](){return Fh({hasNext:zr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ft(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ft(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&&G(263,Array.from(l).join(" "))}else s.insert(c);s=ft(c,this.direction)}for(const c of l.values())c.remove();return this}}class Yi extends Ru{constructor(){super(...arguments);U(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:pn(n,this.direction)}getParentCaret(n="root"){return ft(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Yr(this.direction);return ft(this.getNodeAtCaret(),n)||pn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Yi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const cce={root:Je,shadowRoot:wt};function Yr(t){return lce[t]}function zu(t,e="root"){return cce[e](t)?null:t}class tr extends Ru{constructor(){super(...arguments);U(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ft(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return R(this.origin)?pn(this.origin,this.direction):null}getParentCaret(n="root"){return ft(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Yr(this.direction);return ft(this.getNodeAtCaret(),n)||pn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof tr&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof tr||n instanceof nr)&&this.direction===n.direction&&this.origin.is(n.origin)}}class nr extends Ru{constructor(n,o){super(n);U(this,"type","text");U(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:or(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return ft(zu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return or(this.origin,Yr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof nr&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof tr||n instanceof nr)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return ft(this.origin,this.direction)}}function po(t){return t instanceof nr}function zr(t){return t instanceof tr}function Tn(t){return t instanceof Yi}const uce={next:class extends nr{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends nr{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends tr{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends tr{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fce={next:class extends Yi{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Yi{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function ft(t,e){return t?new dce[e](t):null}function or(t,e,n){return t?new uce[e](t,mo(t,n)):null}function mo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&Em(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Nf(t,e){return new mce(t,e)}function pn(t,e){return R(t)?new fce[e](t):null}function pce(t){return t&&t.getChildCaret()||t}function Uu(t){return t&&pce(t.getAdjacentCaret())}class qu{constructor(e,n,o){U(this,"type","node-caret-range");U(this,"direction");U(this,"anchor");U(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 qu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return po(s)?function(a,l){const{direction:c,origin:u}=a,d=mo(u,l==="focus"?Yr(c):c);return Nf(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[Nf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=po(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=po(o),s=a=>a.isSameNodeCaret(o)?null:Uu(a)||a.getParentCaret(e);return Fh({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 mce{constructor(e,n){U(this,"type","slice");U(this,"caret");U(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 or(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Hu(t){return _o(t,ft(je(),t.direction))}function hce(t){return _o(t,t)}function _o(t,e){return t.direction!==e.direction&&G(265),new qu(t,e,t.direction)}function Fh(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 Vh(t,e){const n=Zs(t.origin,e.origin);switch(n===null&&G(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 Rh(n)}}function Rh(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 Vs(t,e){return e.is(t)}function Df(t){return R(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Zs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Df(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Df(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Vs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((R(s)||Vs(t,s))&&(R(r)||Vs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||G(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Gn(t,e){const{type:n,key:o,offset:r}=t,s=nce(t.key);return n==="text"?(Q(s)||G(266,s.getType(),o),or(s,e,r)):(R(s)||G(267,s.getType(),o),yce(s,t.offset,e))}function rr(t,e){const{origin:n,direction:o}=e,r=o==="next";po(e)?t.set(n.getKey(),e.offset,"text"):zr(e)?Q(n)?t.set(n.getKey(),mo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(Tn(e)&&R(n)||G(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function gce(t){const e=te(),n=Z(e)?e:Qa();return Ks(n,t),mt(n),n}function Ks(t,e){rr(t.anchor,e.anchor),rr(t.focus,e.focus)}function Mf(t){const{anchor:e,focus:n}=t,o=Gn(e,"next"),r=Gn(n,"next"),s=Vh(o,r)<=0?"next":"previous";return _o(Ur(o,s),Ur(r,s))}function ju(t){const{direction:e,origin:n}=t,o=ft(n,Yr(e)).getNodeAtCaret();return o?ft(o,e):pn(n.getParentOrThrow(),e)}function $f(t,e="root"){const n=[t];for(let o=Tn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(ju(o));return n}function ec(t){return!!t&&t.origin.isAttached()}function vce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Uh(t,o),a=$f(s.anchor,n),l=$f(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(Tn(h))c.add(h.origin.getKey());else if(zr(h)){const{origin:g}=h;R(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=ju(ft(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&r==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){r="removeEmptySlices";let _=h.removeTextSlice();const k=h.caret.origin;if(v==="segmented"){const w=_.origin,b=Ze(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=or(b,o,_.offset)}k.is(a[0].origin)&&(a[0]=_),k.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(ec(h)){d=Yt(h);break}for(const h of l)if(ec(h)){f=Yt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),v=g.getParentAtCaret();if(!C||!v)return null;const _=C.getParents().reverse();_.push(C);const k=v.getParents().reverse();k.push(v);const w=Math.min(_.length,k.length);let b;for(b=0;b<w&&_[b]===k[b];b++);const E=(N,I)=>{let A;for(let D=b;D<N.length;D++){const M=N[D];if(wt(M))return;!A&&I(M)&&(A=M)}return A},T=E(_,Kt),x=T&&E(k,N=>y.has(N.getKey())&&Kt(N));return T&&x?[T,x]:null}(d,f,c);if(p){const[h,g]=p;pn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(ec);if(m)return hce(Ur(Yt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Yt(t){const e=function(r){let s=r;for(;Tn(s);){const a=Uu(s);if(!Tn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return po(e)?e:or(e.origin,n,n);const o=e.getAdjacentCaret();return zr(o)&&Q(o.origin)?or(o.origin,n,Yr(n)):e}function zh(t){return po(t)&&t.offset!==mo(t.origin,t.direction)}function Ur(t,e){return t.direction===e?t:t.getFlipped()}function Uh(t,e){return t.direction===e?t:_o(Ur(t.focus,e),Ur(t.anchor,e))}function yce(t,e,n){let o=pn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Ur(o,n)}const Vc=new Map;function qh(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 Bf(t){let e=Vc.get(t);return e===void 0&&(e=qh(t),Vc.set(t,e)),e}function Hh(t){const e=il().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function jh(t){return Hh(Je(t)?t:t.getParentOrThrow())}function Of(t){const e=jh(t);return e!==null&&e.direction==="rtl"}function Wh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!zn(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]=Mc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const v=e.__text.slice(C,y);v!==e.__text&&(n==="clone"&&(e=ice(e)),e.__text=v)}}return e}function _ce(t){const e=t.getStyle(),n=qh(e);Vc.set(e,n)}function Cce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function tc(t,e,n=Cce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Qa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=Xt(a.getNode(),Kt),u=Xt(l.getNode(),Kt);R(c)&&r.set(c.getKey(),c),R(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(R(a)&&Kt(a))r.set(a.getKey(),a);else if(o===null){const l=Xt(a,Kt);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())&&mt(s)}function Zh(t){const e=Kh(t);return e!==null&&e.writingMode==="vertical-rl"}function Kh(t){const e=t.anchor.getNode();return R(e)?Hh(e):jh(e)}function Lf(t,e){let n=Zh(t)?!e:e;Gh(t)&&(n=!n);const o=Gn(t.focus,n?"previous":"next");if(zh(o))return!1;for(const r of Hu(o)){if(Tn(r))return!r.origin.isInline();if(!R(r.origin)){if(Te(r.origin))return!0;break}}return!1}function bce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Gh(t){const e=Kh(t);return e!==null&&e.direction==="rtl"}function If(t,e,n){const o=Gh(t);let r;r=Zh(t)||o?!n:n,bce(t,e,r,"character")}function kce(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 Wu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,wce=Wu&&"documentMode"in document?document.documentMode:null;!(!Wu||!("InputEvent"in window)||wce)&&"getTargetRanges"in new window.InputEvent("input");function Yh(...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 ms(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Ece=Wu;function Yn(t,...e){const n=Yh(...e);n.length>0&&t.classList.add(...n)}function Zu(t,...e){const n=Yh(...e);n.length>0&&t.classList.remove(...n)}function Sce(t){return t?t.getAdjacentCaret():null}function xce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Tce(t){const e=Xt(t,n=>R(n)&&!n.isInline());return R(e)||kce(4,t.__key),e}function Vo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function co(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 Rc(t){let e=1,n=t.getParent();for(;n!=null;){if(Ae(n)){const o=n.getParent();if(me(o)){e++,n=o.getParent();continue}co(40)}return e}return e}function zc(t){let e=t.getParent();me(e)||co(40);let n=e;for(;n!==null;)n=n.getParent(),me(n)&&(e=n);return e}function Jh(t){let e=[];const n=t.getChildren().filter(Ae);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();me(s)?e=e.concat(Jh(s)):e.push(r)}return e}function wn(t){return Ae(t)&&me(t.getFirstChild())}function Pf(t){return jt().append(t)}function Xh(t,e){return Ae(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ff(t){const e=te();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&co(143);const[s]=r,a=s.getNode(),l=a.getParent();if(wt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Fe();a.append(u),n=u.select().getNodes()}}else if(Xh(a,n)){const c=Mt(t);if(wt(l)){a.replace(c);const u=jt();R(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Ae(a)){const u=a.getParentOrThrow();ir(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()&&!Ae(s)&&!o.has(s.getKey())){Vf(s,t);continue}let a=Th(s)?s.getParent():Ae(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(me(a)){if(!o.has(l)){const c=Mt(t);ir(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(wt(c)&&!o.has(l)){o.add(l),Vf(a,t);break}a=c}}}}}function ir(t,e){t.splice(t.getChildrenSize(),0,e)}function Vf(t,e){if(me(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=jt();let s;if(ir(r,t.getChildren()),me(n)&&e===n.getListType())n.append(r),me(o)&&e===o.getListType()&&(ir(n,o.getChildren()),o.remove()),s=n;else if(me(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=Mt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Ku(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&wn(n)&&wn(o)&&(Ku(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Ace(){const t=te();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Xh(o,n))e.add(zc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(Th(s)){const a=xce(s,So);a!=null&&e.add(zc(a))}}for(const r of e){let s=r;const a=Jh(r);for(const l of a){const c=Fe().setTextStyle(t.style).setTextFormat(t.format);ir(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&rr(t.anchor,Yt(pn(c,"next"))),l.__key===t.focus.key&&rr(t.focus,Yt(pn(c,"next"))),l.remove()}r.remove()}}}function Qh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Ae(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),me(o.getFirstChild())||n++)}function Nce(t){const e=new Set;if(wn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(wn(o)&&wn(r)){const s=r.getFirstChild();if(me(s)){s.append(t);const a=o.getFirstChild();me(a)&&(ir(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(wn(o)){const s=o.getFirstChild();if(me(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(wn(r)){const s=r.getFirstChild();me(s)&&s.append(t)}else if(me(n)){const s=jt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Mt(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 Dce(t){if(wn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(me(n?n.getParent():void 0)&&Ae(n)&&me(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=jt(),l=Mt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=jt(),u=Mt(s);c.append(u),ir(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Mce(){const t=te();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Ae(e)||e.getChildrenSize()!==0)return!1;const n=zc(e),o=e.getParent();me(o)||co(40);const r=o.getParent();let s;if(wt(r))s=Fe(),n.insertAfter(s);else{if(!Ae(r))return!1;s=jt(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Mt(o.getListType());if(Ae(s)){const c=jt();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||!Ae(u)&&!me(u))break;c=u}c.remove()}(e),!0}function _a(...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 So=class extends Ht{constructor(n=1,o=void 0,r){super(r);U(this,"__value");U(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();me(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Ht,importDOM:{li:()=>({conversion:$ce,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();!me(d)||d.getListType()!=="check"||me(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,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(..._a(m)),p){const g=u.getParent(),y=me(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=_a(h);u.getChildren().some(y=>me(y))?d.push(...g):f.push(...g)}f.length>0&&Zu(l,...f),d.length>0&&Yn(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=Bf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Bf(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(Ae(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!me(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=Mt(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)||co(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(me(r)||co(39),Ae(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=Mt(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&&wn(o)&&wn(r)&&(Ku(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Fe();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=Ae(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 me(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(;Ae(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&co(117),(n=Math.floor(n))>=0||co(199);let o=this.getIndent();for(;o!==n;)o<n?(Nce(this),o++):(Dce(this),o--);return this}canInsertAfter(n){return Ae(n)}canReplaceWith(n){return Ae(n)}canMergeWith(n){return Ae(n)||ds(n)}extractWithChild(n,o){if(!Z(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 Mt("bullet")}canMergeWhenEmpty(){return!0}};function $ce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Rf(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 Rf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:jt(e==="true"||e!=="false"&&void 0)}}function Rf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:jt(t.hasAttribute("checked"))}}function jt(t){return gn(new So(void 0,t))}function Ae(t){return t instanceof So}let ar=class extends Ht{constructor(n="number",o=1,r){super(r);U(this,"__tag");U(this,"__start");U(this,"__listType");const s=Oce[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();me(r)&&o.getListType()===r.getListType()&&Ku(o,r)})(n),Qh(n)},extends:Ht,importDOM:{ol:()=>({conversion:Uf,priority:0}),ul:()=>({conversion:Uf,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,zf(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(zf(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 Qe(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];Ae(l)||(s===r&&(s=[...r]),s[a]=jt().append(!R(l)||me(l)||l.isInline()?l:Ze(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Ae(n)}};function zf(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Rc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(..._a(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=_a(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&Zu(t,...r),o.length>0&&Yn(t,...o)}function Bce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Ae(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{me(s)&&e.push(Pf(s))})}else e.push(Pf(o))}return e}function Uf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Mt("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(Qe(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Mt("check"):Mt("bullet")),{after:Bce,node:n}}const Oce={ol:"number",ul:"bullet"};function Mt(t="number",e=1){return gn(new ar(t,e))}function me(t){return t instanceof ar}const Lce=de("UPDATE_LIST_START_COMMAND"),eg=de("INSERT_UNORDERED_LIST_COMMAND"),tg=de("INSERT_ORDERED_LIST_COMMAND"),Ice=de("REMOVE_LIST_COMMAND");function Pce(t){return ms(t.registerCommand(tg,()=>(Ff("number"),!0),yi),t.registerCommand(Lce,e=>{const{listNodeKey:n,newStart:o}=e,r=nt(n);return!!me(r)&&(r.getListType()==="number"&&(r.setStart(o),Qh(r)),!0)},yi),t.registerCommand(eg,()=>(Ff("bullet"),!0),yi),t.registerCommand(Ice,()=>(Ace(),!0),yi),t.registerCommand(Zi,()=>Mce(),yi),t.registerNodeTransform(So,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=te();Z(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(wo,e=>{const n=e.getParent();if(Ae(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Fce(t){const e=n=>{const o=n.getParent();if(me(n.getFirstChild())||!me(o))return;const r=Xt(n,s=>Ae(s)&&me(s.getParent())&&Ae(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(Ae(r)){const s=r.getPreviousSibling();if(Ae(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;me(d);){const f=d.getLastChild();if(!Ae(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(me(l)){const c=Rc(l);c+1<Rc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(ar,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(me(r)){for(const s of r.getChildren())if(Ae(s)){e(s);const a=s.getFirstChild();me(a)&&o.push(a)}}}})}function Vce(t,e){const n=xh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!og.has(s.nodeName)){const a=rg(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Nu&&a.insertAfter(dn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Rce(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=je().getChildren();for(let r=0;r<o.length;r++)ng(t,o[r],n,e);return n.innerHTML}function ng(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=R(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=Wh(o,e,"clone"));const l=R(a)?a.getChildren():[],c=Mu(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 m=0;m<l.length;m++){const h=l[m],g=ng(t,h,p,o);!r&&R(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((Qe(d)||Pc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Pc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const og=new Set(["STYLE","SCRIPT"]);function rg(t,e,n,o,r=new Map,s){let a=[];if(og.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let v=null;if(C!==void 0)for(const _ of C){const k=_(h);k!==null&&(v===null||(v.priority||0)<=(k.priority||0))&&(v=k)}return v!==null?v.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!wt(l))&&(l!=null&&$c(l)||o);for(let h=0;h<f.length;h++)p.push(...rg(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),ya(t)&&(p=zce(t,p,m?()=>{const h=new Nu;return n.push(h),h}:Fe)),l==null?p.length>0?a=a.concat(p):ya(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fc(h.nextSibling)&&Fc(h.previousSibling)}(t)&&(a=a.concat(dn())):R(l)&&l.append(...p),a}function zce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if($c(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&$c(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function Ca(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 Uce(t,e=te()){return e==null&&Ca(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":Rce(t,e)}function qce(t,e=te()){return e==null&&Ca(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Hce(t,e))}function qf(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 Hf(n,jce(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 Hf(n,Vce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(Z(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(Z(u)){const d=l[c];d===`
30
30
  `||d===`\r
31
- `?u.insertParagraph():d===" "?u.insertNodes([Wr()]):u.insertText(d)}}}else e.insertRawText(a)}function Hf(t,e,n){t.dispatchCommand(fle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Kn(r,"previous");if(a)if(fo(a))s=a.origin;else{const l=yo(a,pn(We(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function ig(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=R(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=Wh(e,a,"clone"));const l=R(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&Ca(58,f.name),R(u)){const p=d.children;Array.isArray(p)||Ca(59,f.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=ig(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 Hce(t,e){const n=[],o=We().getChildren();for(let r=0;r<o.length;r++)ig(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function jce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=qle(o);Q(r)&&_ce(r),e.push(r)}return e}let gr=null;async function jf(t,e,n){if(gr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Wf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=fn(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(Ya,p=>(Po(p,ClipboardEvent)&&(f(),gr!==null&&(r.clearTimeout(gr),gr=null),u(Wf(t,p,n))),!0),jle);gr=r.setTimeout(()=>{f(),gr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Wf(t,e,n){if(n===void 0){const r=fn(t._window),s=te();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!fs(t,a,l))return!1;n=Wce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Zce(o,n),!0)}const sg=[["text/html",Uce],["application/x-lexical-editor",qce]];function Wce(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=il();for(const[o,r]of sg){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Zce(t,e){for(const[n]of sg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Kce(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,m]=c;t.update(()=>{const h=te();if(K(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(Q(y)&&u>=0&&d>=0&&(C=u,v=u+d,h.setTextNodeRange(y,C,y,v)),C===v&&f===""||(h.insertRawText(f),y=g.getNode()),Q(y)){C=p,v=p+m;const _=y.getTextContentSize();C=C>_?_:C,v=v>_?_:v,h.setTextNodeRange(y,C,y,v)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Zf(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 sr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Gce=sr&&"documentMode"in document?document.documentMode:null,Yce=sr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jce=!(!sr||!("InputEvent"in window)||Gce)&&"getTargetRanges"in new window.InputEvent("input"),Xce=sr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kf=sr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Qce=sr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),eue=sr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Yce&&!Qce,Gf=de("DRAG_DROP_PASTE_FILE");let Gu=class ag extends Ut{static getType(){return"quote"}static clone(e){return new ag(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Gn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:tue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Xe(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 Yu().updateFromJSON(e)}insertNewAfter(e,n){const o=Fe(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Fe();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Yu(){return gn(new Gu)}function Uc(t){return t instanceof Gu}let al=class lg extends Ut{constructor(n,o){super(o);U(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new lg(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];Gn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:vr,priority:0}),h2:n=>({conversion:vr,priority:0}),h3:n=>({conversion:vr,priority:0}),h4:n=>({conversion:vr,priority:0}),h5:n=>({conversion:vr,priority:0}),h6:n=>({conversion:vr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Yf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Yf(n)?{conversion:o=>({node:Fo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(Xe(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 Fo(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?Fe():Fo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Fe();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Fe():Fo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Yf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function vr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Fo(e),t.style!==null&&(Vu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function tue(t){const e=Yu();return t.style!==null&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Fo(t="h1"){return gn(new al(t))}function cg(t){return t instanceof al}function Rs(t){let e=null;if(Po(t,DragEvent)?e=t.dataTransfer:Po(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 Jf(t){const e=te();if(!K(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=Jt(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 Xf(t){const e=Vr(t);return Te(e)}function nc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function nue(t){return ms(t.registerCommand(zm,e=>{const n=te();return!!Pt(n)&&(n.clear(),!0)},xe),t.registerCommand(zo,e=>{const n=te();return K(n)?(n.deleteCharacter(e),!0):!!Pt(n)&&(n.deleteNodes(),!0)},xe),t.registerCommand(Ki,e=>{const n=te();return!!K(n)&&(n.deleteWord(e),!0)},xe),t.registerCommand(Gi,e=>{const n=te();return!!K(n)&&(n.deleteLine(e),!0)},xe),t.registerCommand(Sr,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)qf(o,n,t);else if(K(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},xe),t.registerCommand(Ec,()=>{const e=te();return!!K(e)&&(e.removeText(),!0)},xe),t.registerCommand(Kt,e=>{const n=te();return!!K(n)&&(n.formatText(e),!0)},xe),t.registerCommand(yle,e=>{const n=te();if(!K(n)&&!Pt(n))return!1;const o=n.getNodes();for(const r of o){const s=Jt(r,a=>R(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},xe),t.registerCommand(Er,e=>{const n=te();return!!K(n)&&(n.insertLineBreak(e),!0)},xe),t.registerCommand(Zi,()=>{const e=te();return!!K(e)&&(e.insertParagraph(),!0)},xe),t.registerCommand(gle,()=>(Rle([Wr()]),!0),xe),t.registerCommand(vle,()=>Jf(e=>{const n=e.getIndent();e.setIndent(n+1)}),xe),t.registerCommand(K1,()=>Jf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),xe),t.registerCommand(Hm,e=>{const n=te();if(Pt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=Oc(n.focus,!0);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},xe),t.registerCommand(jm,e=>{const n=te();if(Pt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===We().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Oc(n.focus,!1);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},xe),t.registerCommand(qm,e=>{const n=te();if(Pt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Of(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Lf(n,!0)){const o=e.shiftKey;return e.preventDefault(),If(n,o,!0),!0}return!1},xe),t.registerCommand(Um,e=>{const n=te();if(Pt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Of(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Lf(n,!1)&&(e.preventDefault(),If(n,o,!1),!0)},xe),t.registerCommand(Zm,e=>{if(Xf(e.target))return!1;const n=te();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Ye(s))return!1;const a=Tce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(K1,void 0);if(Kf&&navigator.language==="ko-KR")return!1}else if(!Pt(n))return!1;return e.preventDefault(),t.dispatchCommand(zo,!0)},xe),t.registerCommand(Gm,e=>{if(Xf(e.target))return!1;const n=te();return!(!K(n)&&!Pt(n))&&(e.preventDefault(),t.dispatchCommand(zo,!1))},xe),t.registerCommand(ua,e=>{const n=te();if(!K(n))return!1;if(nc(n),e!==null){if((Kf||Xce||eue)&&Jce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Er,!1)}return t.dispatchCommand(Zi,void 0)},xe),t.registerCommand(Km,()=>{const e=te();return!!K(e)&&(t.blur(),!0)},xe),t.registerCommand(Jm,e=>{const[,n]=Rs(e);if(n.length>0){const r=Zf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Vr(a);if(l!==null){const c=Qa();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=ia(c);ht(u)}t.dispatchCommand(Gf,n)}return e.preventDefault(),!0}const o=te();return!!K(o)},xe),t.registerCommand(Xm,e=>{const[n]=Rs(e),o=te();return!(n&&!K(o))},xe),t.registerCommand(Qm,e=>{const[n]=Rs(e),o=te();if(n&&!K(o))return!1;const r=Zf(e.clientX,e.clientY);if(r!==null){const s=Vr(r.node);Te(s)&&e.preventDefault()}return!0},xe),t.registerCommand(Sc,()=>(Xle(),!0),xe),t.registerCommand(Ya,e=>(jf(t,Po(e,ClipboardEvent)?e:null),!0),xe),t.registerCommand(Eu,e=>(async function(n,o){await jf(o,Po(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();K(r)?r.removeText():Pt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),xe),t.registerCommand(bu,e=>{const[,n,o]=Rs(e);return n.length>0&&!o?(t.dispatchCommand(Gf,n),!0):Kr(e.target)&&$u(e.target)?!1:te()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=te(),l=Po(r,InputEvent)||Po(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&qf(l,a,s)},{tag:Tle})}(e,t),!0)},xe),t.registerCommand(Wm,e=>{const n=te();return K(n)&&nc(n),!1},xe),t.registerCommand(Ym,e=>{const n=te();return K(n)&&nc(n),!1},xe))}var oue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
31
+ `?u.insertParagraph():d===" "?u.insertNodes([Zr()]):u.insertText(d)}}}else e.insertRawText(a)}function Hf(t,e,n){t.dispatchCommand(fle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Gn(r,"previous");if(a)if(po(a))s=a.origin;else{const l=_o(a,pn(je(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(R(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function ig(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=R(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=Wh(e,a,"clone"));const l=R(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&Ca(58,f.name),R(u)){const p=d.children;Array.isArray(p)||Ca(59,f.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=ig(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 Hce(t,e){const n=[],o=je().getChildren();for(let r=0;r<o.length;r++)ig(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function jce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=qle(o);Q(r)&&_ce(r),e.push(r)}return e}let vr=null;async function jf(t,e,n){if(vr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Wf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=fn(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(Ya,p=>(Vo(p,ClipboardEvent)&&(f(),vr!==null&&(r.clearTimeout(vr),vr=null),u(Wf(t,p,n))),!0),jle);vr=r.setTimeout(()=>{f(),vr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Wf(t,e,n){if(n===void 0){const r=fn(t._window),s=te();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!fs(t,a,l))return!1;n=Wce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Zce(o,n),!0)}const sg=[["text/html",Uce],["application/x-lexical-editor",qce]];function Wce(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=il();for(const[o,r]of sg){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Zce(t,e){for(const[n]of sg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Kce(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,m]=c;t.update(()=>{const h=te();if(Z(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(Q(y)&&u>=0&&d>=0&&(C=u,v=u+d,h.setTextNodeRange(y,C,y,v)),C===v&&f===""||(h.insertRawText(f),y=g.getNode()),Q(y)){C=p,v=p+m;const _=y.getTextContentSize();C=C>_?_:C,v=v>_?_:v,h.setTextNodeRange(y,C,y,v)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Zf(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 lr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Gce=lr&&"documentMode"in document?document.documentMode:null,Yce=lr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jce=!(!lr||!("InputEvent"in window)||Gce)&&"getTargetRanges"in new window.InputEvent("input"),Xce=lr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kf=lr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Qce=lr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),eue=lr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Yce&&!Qce,Gf=de("DRAG_DROP_PASTE_FILE");let Gu=class ag extends Ht{static getType(){return"quote"}static clone(e){return new ag(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Yn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:tue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Qe(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 Yu().updateFromJSON(e)}insertNewAfter(e,n){const o=Fe(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Fe();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Yu(){return gn(new Gu)}function Uc(t){return t instanceof Gu}let al=class lg extends Ht{constructor(n,o){super(o);U(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new lg(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];Yn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:yr,priority:0}),h2:n=>({conversion:yr,priority:0}),h3:n=>({conversion:yr,priority:0}),h4:n=>({conversion:yr,priority:0}),h5:n=>({conversion:yr,priority:0}),h6:n=>({conversion:yr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Yf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Yf(n)?{conversion:o=>({node:Ro("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(Qe(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 Ro(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?Fe():Ro(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Fe();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Fe():Ro(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Yf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function yr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Ro(e),t.style!==null&&(Vu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function tue(t){const e=Yu();return t.style!==null&&(e.setFormat(t.style.textAlign),Vu(t,e)),{node:e}}function Ro(t="h1"){return gn(new al(t))}function cg(t){return t instanceof al}function Rs(t){let e=null;if(Vo(t,DragEvent)?e=t.dataTransfer:Vo(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 Jf(t){const e=te();if(!Z(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=Xt(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 Xf(t){const e=Rr(t);return Te(e)}function nc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function nue(t){return ms(t.registerCommand(zm,e=>{const n=te();return!!Vt(n)&&(n.clear(),!0)},Se),t.registerCommand(qo,e=>{const n=te();return Z(n)?(n.deleteCharacter(e),!0):!!Vt(n)&&(n.deleteNodes(),!0)},Se),t.registerCommand(Ki,e=>{const n=te();return!!Z(n)&&(n.deleteWord(e),!0)},Se),t.registerCommand(Gi,e=>{const n=te();return!!Z(n)&&(n.deleteLine(e),!0)},Se),t.registerCommand(xr,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)qf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},Se),t.registerCommand(Ec,()=>{const e=te();return!!Z(e)&&(e.removeText(),!0)},Se),t.registerCommand(Gt,e=>{const n=te();return!!Z(n)&&(n.formatText(e),!0)},Se),t.registerCommand(yle,e=>{const n=te();if(!Z(n)&&!Vt(n))return!1;const o=n.getNodes();for(const r of o){const s=Xt(r,a=>R(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},Se),t.registerCommand(Sr,e=>{const n=te();return!!Z(n)&&(n.insertLineBreak(e),!0)},Se),t.registerCommand(Zi,()=>{const e=te();return!!Z(e)&&(e.insertParagraph(),!0)},Se),t.registerCommand(gle,()=>(Rle([Zr()]),!0),Se),t.registerCommand(vle,()=>Jf(e=>{const n=e.getIndent();e.setIndent(n+1)}),Se),t.registerCommand(K1,()=>Jf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),Se),t.registerCommand(Hm,e=>{const n=te();if(Vt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Oc(n.focus,!0);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},Se),t.registerCommand(jm,e=>{const n=te();if(Vt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===je().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Oc(n.focus,!1);if(!e.shiftKey&&Te(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},Se),t.registerCommand(qm,e=>{const n=te();if(Vt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Of(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Lf(n,!0)){const o=e.shiftKey;return e.preventDefault(),If(n,o,!0),!0}return!1},Se),t.registerCommand(Um,e=>{const n=te();if(Vt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Of(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Lf(n,!1)&&(e.preventDefault(),If(n,o,!1),!0)},Se),t.registerCommand(Zm,e=>{if(Xf(e.target))return!1;const n=te();if(Z(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Je(s))return!1;const a=Tce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(K1,void 0);if(Kf&&navigator.language==="ko-KR")return!1}else if(!Vt(n))return!1;return e.preventDefault(),t.dispatchCommand(qo,!0)},Se),t.registerCommand(Gm,e=>{if(Xf(e.target))return!1;const n=te();return!(!Z(n)&&!Vt(n))&&(e.preventDefault(),t.dispatchCommand(qo,!1))},Se),t.registerCommand(ua,e=>{const n=te();if(!Z(n))return!1;if(nc(n),e!==null){if((Kf||Xce||eue)&&Jce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Sr,!1)}return t.dispatchCommand(Zi,void 0)},Se),t.registerCommand(Km,()=>{const e=te();return!!Z(e)&&(t.blur(),!0)},Se),t.registerCommand(Jm,e=>{const[,n]=Rs(e);if(n.length>0){const r=Zf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Rr(a);if(l!==null){const c=Qa();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=ia(c);mt(u)}t.dispatchCommand(Gf,n)}return e.preventDefault(),!0}const o=te();return!!Z(o)},Se),t.registerCommand(Xm,e=>{const[n]=Rs(e),o=te();return!(n&&!Z(o))},Se),t.registerCommand(Qm,e=>{const[n]=Rs(e),o=te();if(n&&!Z(o))return!1;const r=Zf(e.clientX,e.clientY);if(r!==null){const s=Rr(r.node);Te(s)&&e.preventDefault()}return!0},Se),t.registerCommand(Sc,()=>(Xle(),!0),Se),t.registerCommand(Ya,e=>(jf(t,Vo(e,ClipboardEvent)?e:null),!0),Se),t.registerCommand(Eu,e=>(async function(n,o){await jf(o,Vo(n,ClipboardEvent)?n:null),o.update(()=>{const r=te();Z(r)?r.removeText():Vt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),Se),t.registerCommand(bu,e=>{const[,n,o]=Rs(e);return n.length>0&&!o?(t.dispatchCommand(Gf,n),!0):Gr(e.target)&&$u(e.target)?!1:te()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=te(),l=Vo(r,InputEvent)||Vo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&qf(l,a,s)},{tag:Tle})}(e,t),!0)},Se),t.registerCommand(Wm,e=>{const n=te();return Z(n)&&nc(n),!1},Se),t.registerCommand(Ym,e=>{const n=te();return Z(n)&&nc(n),!1},Se))}var oue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(_,k){k=k||{};var w,b;switch(l.util.type(_)){case"Object":if(b=l.util.objId(_),k[b])return k[b];w={},k[b]=w;for(var E in _)_.hasOwnProperty(E)&&(w[E]=v(_[E],k));return w;case"Array":return b=l.util.objId(_),k[b]?k[b]:(w=[],k[b]=w,_.forEach(function(T,x){w[x]=v(T,k)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=r.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(r,"gi"),""),v.classList.add("language-"+_)},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(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var _=document.getElementsByTagName("script");for(var k in _)if(_[k].src==v)return _[k]}return null}},isActive:function(v,_,k){for(var w="no-"+_;v;){var b=v.classList;if(b.contains(_))return!0;if(b.contains(w))return!1;v=v.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var k=l.util.clone(l.languages[v]);for(var w in _)k[w]=_[w];return k},insertBefore:function(v,_,k,w){w=w||l.languages;var b=w[v],E={};for(var T in b)if(b.hasOwnProperty(T)){if(T==_)for(var x in k)k.hasOwnProperty(x)&&(E[x]=k[x]);k.hasOwnProperty(T)||(E[T]=b[T])}var N=w[v];return w[v]=E,l.languages.DFS(l.languages,function(L,A){A===N&&L!=v&&(this[L]=E)}),E},DFS:function v(_,k,w,b){b=b||{};var E=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){k.call(_,T,_[T],w||T);var x=_[T],N=l.util.type(x);N==="Object"&&!b[E(x)]?(b[E(x)]=!0,v(x,k,null,b)):N==="Array"&&!b[E(x)]&&(b[E(x)]=!0,v(x,k,T,b))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,k){var w={callback:k,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var b=0,E;E=w.elements[b++];)l.highlightElement(E,_===!0,w.callback)},highlightElement:function(v,_,k){var w=l.util.getLanguage(v),b=l.languages[w];l.util.setLanguage(v,w);var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,w);var T=v.textContent,x={element:v,language:w,grammar:b,code:T};function N(A){x.highlightedCode=A,l.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,l.hooks.run("after-highlight",x),l.hooks.run("complete",x),k&&k.call(x.element)}if(l.hooks.run("before-sanity-check",x),E=x.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!x.code){l.hooks.run("complete",x),k&&k.call(x.element);return}if(l.hooks.run("before-highlight",x),!x.grammar){N(l.util.encode(x.code));return}if(_&&o.Worker){var L=new Worker(l.filename);L.onmessage=function(A){N(A.data)},L.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else N(l.highlight(x.code,x.grammar,x.language))},highlight:function(v,_,k){var w={code:v,grammar:_,language:k};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(v,_){var k=_.rest;if(k){for(var w in k)_[w]=k[w];delete _.rest}var b=new f;return p(b,b.head,v),d(v,b,_,b.head,0),h(b)},hooks:{all:{},add:function(v,_){var k=l.hooks.all;k[v]=k[v]||[],k[v].push(_)},run:function(v,_){var k=l.hooks.all[v];if(!(!k||!k.length))for(var w=0,b;b=k[w++];)b(_)}},Token:c};o.Prism=l;function c(v,_,k,w){this.type=v,this.content=_,this.alias=k,this.length=(w||"").length|0}c.stringify=function v(_,k){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(N){w+=v(N,k)}),w}var b={type:_.type,content:v(_.content,k),tag:"span",classes:["token",_.type],attributes:{},language:k},E=_.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var T="";for(var x in b.attributes)T+=" "+x+'="'+(b.attributes[x]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+T+">"+b.content+"</"+b.tag+">"};function u(v,_,k,w){v.lastIndex=_;var b=v.exec(k);if(b&&w&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(v,_,k,w,b,E){for(var T in k)if(!(!k.hasOwnProperty(T)||!k[T])){var x=k[T];x=Array.isArray(x)?x:[x];for(var N=0;N<x.length;++N){if(E&&E.cause==T+","+N)return;var L=x[N],A=L.inside,D=!!L.lookbehind,M=!!L.greedy,I=L.alias;if(M&&!L.pattern.global){var P=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,P+"g")}for(var j=L.pattern||L,V=w.next,q=b;V!==_.tail&&!(E&&q>=E.reach);q+=V.value.length,V=V.next){var F=V.value;if(_.length>v.length)return;if(!(F instanceof c)){var Y=1,ee;if(M){if(ee=u(j,q,v,D),!ee||ee.index>=v.length)break;var z=ee.index,Ee=ee.index+ee[0].length,ie=q;for(ie+=V.value.length;z>=ie;)V=V.next,ie+=V.value.length;if(ie-=V.value.length,q=ie,V.value instanceof c)continue;for(var se=V;se!==_.tail&&(ie<Ee||typeof se.value=="string");se=se.next)Y++,ie+=se.value.length;Y--,F=v.slice(q,ie),ee.index-=q}else if(ee=u(j,0,F,D),!ee)continue;var z=ee.index,oe=ee[0],ye=F.slice(0,z),Be=F.slice(z+oe.length),H=q+F.length;E&&H>E.reach&&(E.reach=H);var ae=V.prev;ye&&(ae=p(_,ae,ye),q+=ye.length),m(_,ae,Y);var fe=new c(T,A?l.tokenize(oe,A):oe,I,oe);if(V=p(_,ae,fe),Be&&p(_,V,Be),Y>1){var he={cause:T+","+N,reach:H};d(v,_,k,V.prev,q,he),E&&he.reach>E.reach&&(E.reach=he.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},_={value:null,prev:v,next:null};v.next=_,this.head=v,this.tail=_,this.length=0}function p(v,_,k){var w=_.next,b={value:k,prev:_,next:w};return _.next=b,w.prev=b,v.length++,b}function m(v,_,k){for(var w=_.next,b=0;b<k&&w!==v.tail;b++)w=w.next;_.next=w,w.prev=_,v.length-=b}function h(v){for(var _=[],k=v.head.next;k!==v.tail;)_.push(k.value),k=k.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),k=_.language,w=_.code,b=_.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),b&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Tt<"u"&&(Tt.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,y){return"✖ Error "+g+" while fetching file: "+y},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,y,C){var v=new XMLHttpRequest;v.open("GET",g,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?y(v.responseText):v.status>=400?C(r(v.status,v.statusText)):C(s))},v.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),v=y[2],_=y[3];return v?_?[C,Number(_)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var v=y.getAttribute("data-src"),_=g.language;if(_==="none"){var k=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[k]||k}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(b){y.setAttribute(l,u);var E=m(y.getAttribute("data-range"));if(E){var T=b.split(/\r\n?|\n/g),x=E[0],N=E[1]==null?T.length:E[1];x<0&&(x+=T.length),x=Math.max(0,Math.min(x-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(x,N).join(`
39
- `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(x+1))}C.textContent=b,n.highlightElement(C)},function(b){y.setAttribute(l,d),C.textContent=b})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),v=0,_;_=C[v++];)n.highlightElement(_)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(oue);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 m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var _="language-"+v;C.alias?typeof C.alias=="string"?C.alias=[C.alias,_]:C.alias.push(_):C.alias=[_]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var v=document.getElementById(C);v&&(v.innerHTML=t.highlight(v.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,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];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 ug(t,e){for(const n of t.childNodes){if(Xe(n)&&n.tagName===e)return!0;ug(n,e)}return!1}const Si="data-language",Ci="data-highlight-language",zs="data-theme";let ll=class dg extends Ut{constructor(n,o){super(o);U(this,"__language");U(this,"__theme");U(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new dg(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");Gn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Si,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,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(Si,s):a&&o.removeAttribute(Si);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(Ci,s):o.removeAttribute(Ci):l&&s&&o.setAttribute(Ci,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(zs,c):u&&o.removeAttribute(zs);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");Gn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Si,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,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)||ug(n,"BR"))?{conversion:Qf,priority:1}:null,div:()=>({conversion:rue,priority:1}),pre:()=>({conversion:Qf,priority:0}),table:n=>oc(n)?{conversion:iue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&oc(r)?{conversion:ep,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&oc(o)?{conversion:ep,priority:3}:null}}}static importJSON(n){return Sn().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 v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(_,k){k=k||{};var w,b;switch(l.util.type(_)){case"Object":if(b=l.util.objId(_),k[b])return k[b];w={},k[b]=w;for(var E in _)_.hasOwnProperty(E)&&(w[E]=v(_[E],k));return w;case"Array":return b=l.util.objId(_),k[b]?k[b]:(w=[],k[b]=w,_.forEach(function(T,x){w[x]=v(T,k)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=r.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(r,"gi"),""),v.classList.add("language-"+_)},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(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var _=document.getElementsByTagName("script");for(var k in _)if(_[k].src==v)return _[k]}return null}},isActive:function(v,_,k){for(var w="no-"+_;v;){var b=v.classList;if(b.contains(_))return!0;if(b.contains(w))return!1;v=v.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var k=l.util.clone(l.languages[v]);for(var w in _)k[w]=_[w];return k},insertBefore:function(v,_,k,w){w=w||l.languages;var b=w[v],E={};for(var T in b)if(b.hasOwnProperty(T)){if(T==_)for(var x in k)k.hasOwnProperty(x)&&(E[x]=k[x]);k.hasOwnProperty(T)||(E[T]=b[T])}var N=w[v];return w[v]=E,l.languages.DFS(l.languages,function(I,A){A===N&&I!=v&&(this[I]=E)}),E},DFS:function v(_,k,w,b){b=b||{};var E=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){k.call(_,T,_[T],w||T);var x=_[T],N=l.util.type(x);N==="Object"&&!b[E(x)]?(b[E(x)]=!0,v(x,k,null,b)):N==="Array"&&!b[E(x)]&&(b[E(x)]=!0,v(x,k,T,b))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,k){var w={callback:k,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var b=0,E;E=w.elements[b++];)l.highlightElement(E,_===!0,w.callback)},highlightElement:function(v,_,k){var w=l.util.getLanguage(v),b=l.languages[w];l.util.setLanguage(v,w);var E=v.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,w);var T=v.textContent,x={element:v,language:w,grammar:b,code:T};function N(A){x.highlightedCode=A,l.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,l.hooks.run("after-highlight",x),l.hooks.run("complete",x),k&&k.call(x.element)}if(l.hooks.run("before-sanity-check",x),E=x.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!x.code){l.hooks.run("complete",x),k&&k.call(x.element);return}if(l.hooks.run("before-highlight",x),!x.grammar){N(l.util.encode(x.code));return}if(_&&o.Worker){var I=new Worker(l.filename);I.onmessage=function(A){N(A.data)},I.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else N(l.highlight(x.code,x.grammar,x.language))},highlight:function(v,_,k){var w={code:v,grammar:_,language:k};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(v,_){var k=_.rest;if(k){for(var w in k)_[w]=k[w];delete _.rest}var b=new f;return p(b,b.head,v),d(v,b,_,b.head,0),h(b)},hooks:{all:{},add:function(v,_){var k=l.hooks.all;k[v]=k[v]||[],k[v].push(_)},run:function(v,_){var k=l.hooks.all[v];if(!(!k||!k.length))for(var w=0,b;b=k[w++];)b(_)}},Token:c};o.Prism=l;function c(v,_,k,w){this.type=v,this.content=_,this.alias=k,this.length=(w||"").length|0}c.stringify=function v(_,k){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(N){w+=v(N,k)}),w}var b={type:_.type,content:v(_.content,k),tag:"span",classes:["token",_.type],attributes:{},language:k},E=_.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var T="";for(var x in b.attributes)T+=" "+x+'="'+(b.attributes[x]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+T+">"+b.content+"</"+b.tag+">"};function u(v,_,k,w){v.lastIndex=_;var b=v.exec(k);if(b&&w&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(v,_,k,w,b,E){for(var T in k)if(!(!k.hasOwnProperty(T)||!k[T])){var x=k[T];x=Array.isArray(x)?x:[x];for(var N=0;N<x.length;++N){if(E&&E.cause==T+","+N)return;var I=x[N],A=I.inside,D=!!I.lookbehind,M=!!I.greedy,L=I.alias;if(M&&!I.pattern.global){var P=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,P+"g")}for(var j=I.pattern||I,V=w.next,q=b;V!==_.tail&&!(E&&q>=E.reach);q+=V.value.length,V=V.next){var F=V.value;if(_.length>v.length)return;if(!(F instanceof c)){var Y=1,ee;if(M){if(ee=u(j,q,v,D),!ee||ee.index>=v.length)break;var z=ee.index,we=ee.index+ee[0].length,se=q;for(se+=V.value.length;z>=se;)V=V.next,se+=V.value.length;if(se-=V.value.length,q=se,V.value instanceof c)continue;for(var ie=V;ie!==_.tail&&(se<we||typeof ie.value=="string");ie=ie.next)Y++,se+=ie.value.length;Y--,F=v.slice(q,se),ee.index-=q}else if(ee=u(j,0,F,D),!ee)continue;var z=ee.index,oe=ee[0],ye=F.slice(0,z),Be=F.slice(z+oe.length),H=q+F.length;E&&H>E.reach&&(E.reach=H);var le=V.prev;ye&&(le=p(_,le,ye),q+=ye.length),m(_,le,Y);var fe=new c(T,A?l.tokenize(oe,A):oe,L,oe);if(V=p(_,le,fe),Be&&p(_,V,Be),Y>1){var pe={cause:T+","+N,reach:H};d(v,_,k,V.prev,q,pe),E&&pe.reach>E.reach&&(E.reach=pe.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},_={value:null,prev:v,next:null};v.next=_,this.head=v,this.tail=_,this.length=0}function p(v,_,k){var w=_.next,b={value:k,prev:_,next:w};return _.next=b,w.prev=b,v.length++,b}function m(v,_,k){for(var w=_.next,b=0;b<k&&w!==v.tail;b++)w=w.next;_.next=w,w.prev=_,v.length-=b}function h(v){for(var _=[],k=v.head.next;k!==v.tail;)_.push(k.value),k=k.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),k=_.language,w=_.code,b=_.immediateClose;o.postMessage(l.highlight(w,l.languages[k],k)),b&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Nt<"u"&&(Nt.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,y){return"✖ Error "+g+" while fetching file: "+y},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,y,C){var v=new XMLHttpRequest;v.open("GET",g,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?y(v.responseText):v.status>=400?C(r(v.status,v.statusText)):C(s))},v.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),v=y[2],_=y[3];return v?_?[C,Number(_)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var v=y.getAttribute("data-src"),_=g.language;if(_==="none"){var k=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[k]||k}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(b){y.setAttribute(l,u);var E=m(y.getAttribute("data-range"));if(E){var T=b.split(/\r\n?|\n/g),x=E[0],N=E[1]==null?T.length:E[1];x<0&&(x+=T.length),x=Math.max(0,Math.min(x-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(x,N).join(`
39
+ `),y.hasAttribute("data-start")||y.setAttribute("data-start",String(x+1))}C.textContent=b,n.highlightElement(C)},function(b){y.setAttribute(l,d),C.textContent=b})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),v=0,_;_=C[v++];)n.highlightElement(_)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(oue);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 m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var _="language-"+v;C.alias?typeof C.alias=="string"?C.alias=[C.alias,_]:C.alias.push(_):C.alias=[_]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var v=document.getElementById(C);v&&(v.innerHTML=t.highlight(v.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,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var g=l[m];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 ug(t,e){for(const n of t.childNodes){if(Qe(n)&&n.tagName===e)return!0;ug(n,e)}return!1}const Si="data-language",Ci="data-highlight-language",zs="data-theme";let ll=class dg extends Ht{constructor(n,o){super(o);U(this,"__language");U(this,"__theme");U(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new dg(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");Yn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Si,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,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(Si,s):a&&o.removeAttribute(Si);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(Ci,s):o.removeAttribute(Ci):l&&s&&o.setAttribute(Ci,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(zs,c):u&&o.removeAttribute(zs);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");Yn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(Si,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(Ci,r));const s=this.getTheme();s&&o.setAttribute(zs,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)||ug(n,"BR"))?{conversion:Qf,priority:1}:null,div:()=>({conversion:rue,priority:1}),pre:()=>({conversion:Qf,priority:0}),table:n=>oc(n)?{conversion:iue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&oc(r)?{conversion:ep,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&oc(o)?{conversion:ep,priority:3}:null}}}static importJSON(n){return xn().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
- `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Fe();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(Q(c)){let u=aue(c);const d=[];for(;;)if(Ja(u))d.push(Wr()),u=u.getNextSibling();else{if(!hg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(mg(" ".repeat(C))),C!==_)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[dn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(cl(c)){const{offset:u}=n.anchor;c.splice(u,0,[dn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Fe();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 Sn(t,e){return ace(ll).setLanguage(t).setTheme(e)}function cl(t){return t instanceof ll}function Qf(t){return{node:Sn(t.getAttribute(Si))}}function rue(t){const e=t,n=tp(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(tp(r))return!0;r=r.parentElement}return!1}(e)?{node:n?Sn():null}:{node:null}}function iue(){return{node:Sn()}}function ep(){return{node:null}}function tp(t){return t.style.fontFamily.match("monospace")!==null}function oc(t){return t.classList.contains("js-file-line-container")}let fg=class pg extends ko{constructor(n="",o,r){super(n,r);U(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new pg(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=rc(n.theme,this.__highlightType);return Gn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=rc(r.theme,n.__highlightType),l=rc(r.theme,this.__highlightType);return a!==l&&(a&&Zu(o,a),l&&Gn(o,l)),s}static importJSON(n){return mg().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 Sn()}};function rc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function mg(t="",e){return gn(new fg(t,e))}function hg(t){return t instanceof fg}function sue(t,e){let n=t;for(let o=pt(t,e);o&&(hg(o.origin)||Ja(o.origin));o=Sce(o))n=o.origin;return n}function aue(t){return sue(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
41
+ `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Fe();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(Q(c)){let u=aue(c);const d=[];for(;;)if(Ja(u))d.push(Zr()),u=u.getNextSibling();else{if(!hg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(mg(" ".repeat(C))),C!==_)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[dn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(cl(c)){const{offset:u}=n.anchor;c.splice(u,0,[dn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Fe();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 xn(t,e){return ace(ll).setLanguage(t).setTheme(e)}function cl(t){return t instanceof ll}function Qf(t){return{node:xn(t.getAttribute(Si))}}function rue(t){const e=t,n=tp(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(tp(r))return!0;r=r.parentElement}return!1}(e)?{node:n?xn():null}:{node:null}}function iue(){return{node:xn()}}function ep(){return{node:null}}function tp(t){return t.style.fontFamily.match("monospace")!==null}function oc(t){return t.classList.contains("js-file-line-container")}let fg=class pg extends wo{constructor(n="",o,r){super(n,r);U(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new pg(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=rc(n.theme,this.__highlightType);return Yn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=rc(r.theme,n.__highlightType),l=rc(r.theme,this.__highlightType);return a!==l&&(a&&Zu(o,a),l&&Yn(o,l)),s}static importJSON(n){return mg().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 xn()}};function rc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function mg(t="",e){return gn(new fg(t,e))}function hg(t){return t instanceof fg}function sue(t,e){let n=t;for(let o=ft(t,e);o&&(hg(o.origin)||Ja(o.origin));o=Sce(o))n=o.origin;return n}function aue(t){return sue(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
42
  ?|
43
- |(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const lue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Yr extends Ut{constructor(n="",o={},r){super(r);U(this,"__url");U(this,"__target");U(this,"__rel");U(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Yr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Gn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Ih(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:cue,priority:1})}}static importJSON(n){return ba().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=op(n);try{const o=new URL(op(n));if(!lue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const r=ba(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!K(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function cue(t){let e=null;if(Ih(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ba(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ba(t="",e){return gn(new Yr(t,e))}function uue(t){return t instanceof Yr}class ul extends Yr{constructor(n="",o={},r){super(n,o,r);U(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ul(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return np().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const r=this.getParentOrThrow().insertNewAfter(n,o);if(R(r)){const s=np(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function np(t="",e){return gn(new ul(t,e))}function due(t){return t instanceof ul}const fue=/^\+?[0-9\s()-]{5,}$/;function op(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:fue.test(t)?`tel:${t}`:`https://${t}`}function qc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Ju(t){const e=qc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const ka=/[!-/:-@[-`{-~\s]/,pue=/^\s{0,3}$/;function Hc(t){if(!ds(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&pue.test(e.getTextContent())}function mue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>wa(a,n,o));if(s!=null)return s}return R(t)?wa(t,n,o):Te(t)?t.getTextContent():null}function wa(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>wa(d,e,n,o,[...r,...o]),(d,f)=>rp(d,f,e,o,r));if(u!=null){s.push(u);continue e}}uo(l)?s.push(`
44
- `):Q(l)?s.push(rp(l,l.getTextContent(),e,o,r)):R(l)?s.push(wa(l,e,n,o,r)):Te(l)&&s.push(l.getTextContent())}return s.join("")}function rp(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=ip(t,!0),d=ip(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Us(t,m)&&!f.has(m)&&(f.add(m),Us(u,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let p=0;p<o.length;p++){const m=Us(t,o[p].format),h=Us(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.find(C=>C.tag===y.tag)||(y&&typeof y.tag=="string"&&(m?h||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function ip(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(R(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!R(n))return null}return null}function Us(t,e){return Q(t)&&t.hasFormat(e)}function hue(t,e){const n=function(r,s){const a=r.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=r[p-1],h=r[p+d[0].length];if((!m||ka.test(m))&&(!h||ka.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function $o(t){return Q(t)&&!t.hasFormat("code")}function Bo(t,e,n){let o=hue(t,e),r=function(a,l){const c=a;let u,d,f,p;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,y=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=m,p=h)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let m,h,g;if(f[0]===p?m=l:c===0?[m,h]=l.splitText(u):[g,m,h]=l.splitText(c,u),m.setTextContent(f[2]),d)for(const y of d.format)m.hasFormat(y)||m.toggleFormat(y);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);$o(a.nodeAfter)&&Bo(a.nodeAfter,e,n),$o(a.nodeBefore)&&Bo(a.nodeBefore,e,n),$o(a.transformedNode)&&Bo(a.transformedNode,e,n)}else if(r){const a=function(l,c,u,d,f){let p,m,h;return c===0?[p,m]=l.splitText(u):[h,p,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(p,f)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;$o(a.nodeAfter)&&Bo(a.nodeAfter,e,n),$o(a.nodeBefore)&&Bo(a.nodeBefore,e,n),$o(a.transformedNode)&&Bo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function gue(t,e=!1){const n=Ju(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(r,s)=>{const a=r.split(`
45
- `),l=a.length,c=s||We();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=vue(a,d,n.multilineElement,c);p?d=m:yue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Hc(d)&&c.getChildrenSize()>1&&d.remove();te()!==null&&c.selectStart()}}function vue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});if(h===null)continue;if(h)return h}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function yue(t,e,n,o,r,s){const a=Ke(t),l=Fe();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Bo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ds(c)||Uc(c)||pe(c))){let u=c;if(pe(c)){const d=c.getLastDescendant();u=d==null?null:Jt(d,Ae)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[dn(),...l.getChildren()]),l.remove())}}}function _ue(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 gg=/^(\s*)(\d{1,})\.\s/,vg=/^(\s*)[-*+]\s/,Cue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,jc=/^(#{1,6})\s/,yg=/^>\s/,_g=/^[ \t]*```([\w-]+)?/,Wc=/[ \t]*```$/,bue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,kue=/^(?:\|)(.+)(?:\|)\s?$/,wue=/^(\| ?:?-*:? ?)+\|\s?$/,sp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,ap=/^<\/[a-z_][\w-]*\s*>/i,lp=t=>new RegExp(`(?:${t.source})$`,t.flags),xi=ile("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Cg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},bg=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=qt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==xi.parse(c)?void 0:c;if(pe(a)&&a.getListType()===t){u&&ql(a,xi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(pe(s)&&s.getListType()===t)u&&ql(s,xi,u),s.append(l),e.remove();else{const f=Nt(t,t==="number"?Number(o[2]):void 0);u&&ql(f,xi,u),f.append(l),e.replace(f)}l.append(...n),r||l.select(0,0);const d=function(f){const p=f.match(/\t/g),m=f.match(/ /g);let h=0;return p&&(h+=p.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},Xu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(Ae(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(pe(f)){o.push(Xu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=$m(t,xi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
- `)},kg={dependencies:[al],export:(t,e)=>{if(!cg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:jc,replace:Cg(t=>{const e="h"+t[1].length;return Fo(e)}),type:"element"},Eue={dependencies:[Gu],export:(t,e)=>{if(!Uc(t))return null;const n=e(t).split(`
43
+ |(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const lue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Jr extends Ht{constructor(n="",o={},r){super(r);U(this,"__url");U(this,"__target");U(this,"__rel");U(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Jr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Yn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Ih(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:cue,priority:1})}}static importJSON(n){return ba().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=op(n);try{const o=new URL(op(n));if(!lue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const r=ba(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){if(!Z(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function cue(t){let e=null;if(Ih(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ba(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ba(t="",e){return gn(new Jr(t,e))}function uue(t){return t instanceof Jr}class ul extends Jr{constructor(n="",o={},r){super(n,o,r);U(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ul(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return np().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const r=this.getParentOrThrow().insertNewAfter(n,o);if(R(r)){const s=np(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function np(t="",e){return gn(new ul(t,e))}function due(t){return t instanceof ul}const fue=/^\+?[0-9\s()-]{5,}$/;function op(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:fue.test(t)?`tel:${t}`:`https://${t}`}function qc(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function Ju(t){const e=qc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const ka=/[!-/:-@[-`{-~\s]/,pue=/^\s{0,3}$/;function Hc(t){if(!ds(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&pue.test(e.getTextContent())}function mue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>wa(a,n,o));if(s!=null)return s}return R(t)?wa(t,n,o):Te(t)?t.getTextContent():null}function wa(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>wa(d,e,n,o,[...r,...o]),(d,f)=>rp(d,f,e,o,r));if(u!=null){s.push(u);continue e}}fo(l)?s.push(`
44
+ `):Q(l)?s.push(rp(l,l.getTextContent(),e,o,r)):R(l)?s.push(wa(l,e,n,o,r)):Te(l)&&s.push(l.getTextContent())}return s.join("")}function rp(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=ip(t,!0),d=ip(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Us(t,m)&&!f.has(m)&&(f.add(m),Us(u,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let p=0;p<o.length;p++){const m=Us(t,o[p].format),h=Us(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.find(C=>C.tag===y.tag)||(y&&typeof y.tag=="string"&&(m?h||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function ip(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(R(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!R(n))return null}return null}function Us(t,e){return Q(t)&&t.hasFormat(e)}function hue(t,e){const n=function(r,s){const a=r.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=r[p-1],h=r[p+d[0].length];if((!m||ka.test(m))&&(!h||ka.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Oo(t){return Q(t)&&!t.hasFormat("code")}function Lo(t,e,n){let o=hue(t,e),r=function(a,l){const c=a;let u,d,f,p;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,y=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=m,p=h)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(t,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let m,h,g;if(f[0]===p?m=l:c===0?[m,h]=l.splitText(u):[g,m,h]=l.splitText(c,u),m.setTextContent(f[2]),d)for(const y of d.format)m.hasFormat(y)||m.toggleFormat(y);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Oo(a.nodeAfter)&&Lo(a.nodeAfter,e,n),Oo(a.nodeBefore)&&Lo(a.nodeBefore,e,n),Oo(a.transformedNode)&&Lo(a.transformedNode,e,n)}else if(r){const a=function(l,c,u,d,f){let p,m,h;return c===0?[p,m]=l.splitText(u):[h,p,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(p,f)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;Oo(a.nodeAfter)&&Lo(a.nodeAfter,e,n),Oo(a.nodeBefore)&&Lo(a.nodeBefore,e,n),Oo(a.transformedNode)&&Lo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function gue(t,e=!1){const n=Ju(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(r,s)=>{const a=r.split(`
45
+ `),l=a.length,c=s||je();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=vue(a,d,n.multilineElement,c);p?d=m:yue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Hc(d)&&c.getChildrenSize()>1&&d.remove();te()!==null&&c.selectStart()}}function vue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});if(h===null)continue;if(h)return h}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function yue(t,e,n,o,r,s){const a=Ze(t),l=Fe();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Lo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ds(c)||Uc(c)||me(c))){let u=c;if(me(c)){const d=c.getLastDescendant();u=d==null?null:Xt(d,Ae)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[dn(),...l.getChildren()]),l.remove())}}}function _ue(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 gg=/^(\s*)(\d{1,})\.\s/,vg=/^(\s*)[-*+]\s/,Cue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,jc=/^(#{1,6})\s/,yg=/^>\s/,_g=/^[ \t]*```([\w-]+)?/,Wc=/[ \t]*```$/,bue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,kue=/^(?:\|)(.+)(?:\|)\s?$/,wue=/^(\| ?:?-*:? ?)+\|\s?$/,sp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,ap=/^<\/[a-z_][\w-]*\s*>/i,lp=t=>new RegExp(`(?:${t.source})$`,t.flags),xi=ile("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Cg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},bg=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=jt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==xi.parse(c)?void 0:c;if(me(a)&&a.getListType()===t){u&&ql(a,xi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(me(s)&&s.getListType()===t)u&&ql(s,xi,u),s.append(l),e.remove();else{const f=Mt(t,t==="number"?Number(o[2]):void 0);u&&ql(f,xi,u),f.append(l),e.replace(f)}l.append(...n),r||l.select(0,0);const d=function(f){const p=f.match(/\t/g),m=f.match(/ /g);let h=0;return p&&(h+=p.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},Xu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(Ae(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(me(f)){o.push(Xu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=$m(t,xi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
+ `)},kg={dependencies:[al],export:(t,e)=>{if(!cg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:jc,replace:Cg(t=>{const e="h"+t[1].length;return Ro(e)}),type:"element"},Eue={dependencies:[Gu],export:(t,e)=>{if(!Uc(t))return null;const n=e(t).split(`
47
47
  `),o=[];for(const r of n)o.push("> "+r);return o.join(`
48
48
  `)},regExp:yg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(Uc(s))return s.splice(s.getChildrenSize(),0,[dn(),...e]),void t.remove()}const r=Yu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},wg={dependencies:[ll],export:t=>{if(!cl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
- `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Wc},regExpStart:_g,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=Sn(),l=n[1]+r[0]):(a=Sn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=Sn(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=Ke(l);a.append(c),t.append(a)}else e&&Cg(c=>Sn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Eg={dependencies:[ir,Eo],export:(t,e)=>pe(t)?Xu(t,e,0):null,regExp:vg,replace:bg("bullet"),type:"element"},Sg={dependencies:[ir,Eo],export:(t,e)=>pe(t)?Xu(t,e,0):null,regExp:gg,replace:bg("number"),type:"element"},xg={format:["code"],tag:"`",type:"text-format"},Sue={format:["highlight"],tag:"==",type:"text-format"},Tg={format:["bold","italic"],tag:"***",type:"text-format"},xue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ag={format:["bold"],tag:"**",type:"text-format"},Tue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ng={format:["strikethrough"],tag:"~~",type:"text-format"},Dg={format:["italic"],tag:"*",type:"text-format"},Aue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Nue={dependencies:[Yr],export:(t,e,n)=>{if(!uue(t)||due(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=ba(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=Ke(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ke(u)),d},trigger:")",type:"text-match"},Due=[kg,Eue,Eg,Sg],Mue=[wg],$ue=[xg,Tg,xue,Ag,Tue,Sue,Dg,Aue,Ng],Bue=[Nue],Qu=[...Due,...Mue,...$ue,...Bue];function cp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Mg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Mg(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Oue(t,e=Qu){const n=Ju(e),o=qc(n.textFormat,({tag:a})=>a[a.length-1]),r=qc(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)||_ue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!kt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExp:g,replace:y}of p){const C=h.match(g);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[_,k]=d.splitText(f);if(y(u,k?[k,...v]:v,C,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const m=u.getParent();if(!kt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExpStart:g,replace:y,regExpEnd:C}of p){if(C&&!("optional"in C)||C&&"optional"in C&&!C.optional)continue;const v=h.match(g);if(v&&v[0].length===(v[0].endsWith(" ")?f:f-1)){const _=d.getNextSiblings(),[k,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return k.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const m=f[p[d-1]];if(m==null)return!1;d<p.length&&(p=p.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const g=p.match(h.regExp);if(g===null)continue;const y=g.index||0,C=y+g[0].length;let v;return y===0?[v]=u.splitText(C):[,v]=u.splitText(y,C),v.selectNext(0,0),h.replace(v,g),!0}return!1}(l,c,r)||function(u,d,f){const p=u.getTextContent(),m=d-1,h=p[m],g=f[h];if(!g)return!1;for(const y of g){const{tag:C}=y,v=C.length,_=m-v+1;if(v>1&&!Mg(p,_,C,0,v)||p[_-1]===" ")continue;const k=p[m+1];if(y.intraword===!1&&k&&!ka.test(k))continue;const w=u;let b=w,E=cp(p,_,C),T=b;for(;E<0&&(T=T.getPreviousSibling())&&!uo(T);)if(Q(T)){if(T.hasFormat("code"))continue;const j=T.getTextContent();b=T,E=cp(j,j.length,C)}if(E<0||b===w&&E+v===_)continue;const x=b.getTextContent();if(E>0&&x[E-1]===h)continue;const N=x[E-1];if(y.intraword===!1&&N&&!ka.test(N))continue;const L=w.getTextContent(),A=L.slice(0,_)+L.slice(m+1);w.setTextContent(A);const D=b===w?A:x;b.setTextContent(D.slice(0,E)+D.slice(E+v));const M=te(),I=Qa();ht(I);const P=m-v*(b===w?2:1)+1;I.anchor.set(b.__key,E,"text"),I.focus.set(w.__key,P,"text");for(const j of y.format)I.hasFormat(j)||I.formatText(j);I.anchor.set(I.focus.key,I.focus.offset,I.focus.type);for(const j of y.format)I.hasFormat(j)&&I.toggleFormat(j);return K(M)&&(I.format=M.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(ch)||a.has(pa)||t.isComposing())return;const d=c.read(te),f=u.read(te);if(!K(f)||!K(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(p);!Q(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!$o(h))return;const g=h.getParent();g===null||cl(g)||s(g,h,d.anchor.offset)})})}function Lue(t,e=Qu,n,o=!1,r=!1){const s=o?t:function(a,l=!1){const c=a.split(`
49
+ `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Wc},regExpStart:_g,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=xn(),l=n[1]+r[0]):(a=xn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=xn(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=Ze(l);a.append(c),t.append(a)}else e&&Cg(c=>xn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Eg={dependencies:[ar,So],export:(t,e)=>me(t)?Xu(t,e,0):null,regExp:vg,replace:bg("bullet"),type:"element"},Sg={dependencies:[ar,So],export:(t,e)=>me(t)?Xu(t,e,0):null,regExp:gg,replace:bg("number"),type:"element"},xg={format:["code"],tag:"`",type:"text-format"},Sue={format:["highlight"],tag:"==",type:"text-format"},Tg={format:["bold","italic"],tag:"***",type:"text-format"},xue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ag={format:["bold"],tag:"**",type:"text-format"},Tue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ng={format:["strikethrough"],tag:"~~",type:"text-format"},Dg={format:["italic"],tag:"*",type:"text-format"},Aue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Nue={dependencies:[Jr],export:(t,e,n)=>{if(!uue(t)||due(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=ba(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=Ze(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ze(u)),d},trigger:")",type:"text-match"},Due=[kg,Eue,Eg,Sg],Mue=[wg],$ue=[xg,Tg,xue,Ag,Tue,Sue,Dg,Aue,Ng],Bue=[Nue],Qu=[...Due,...Mue,...$ue,...Bue];function cp(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Mg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Mg(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Oue(t,e=Qu){const n=Ju(e),o=qc(n.textFormat,({tag:a})=>a[a.length-1]),r=qc(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)||_ue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!wt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExp:g,replace:y}of p){const C=h.match(g);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[_,k]=d.splitText(f);if(y(u,k?[k,...v]:v,C,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const m=u.getParent();if(!wt(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExpStart:g,replace:y,regExpEnd:C}of p){if(C&&!("optional"in C)||C&&"optional"in C&&!C.optional)continue;const v=h.match(g);if(v&&v[0].length===(v[0].endsWith(" ")?f:f-1)){const _=d.getNextSiblings(),[k,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return k.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const m=f[p[d-1]];if(m==null)return!1;d<p.length&&(p=p.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const g=p.match(h.regExp);if(g===null)continue;const y=g.index||0,C=y+g[0].length;let v;return y===0?[v]=u.splitText(C):[,v]=u.splitText(y,C),v.selectNext(0,0),h.replace(v,g),!0}return!1}(l,c,r)||function(u,d,f){const p=u.getTextContent(),m=d-1,h=p[m],g=f[h];if(!g)return!1;for(const y of g){const{tag:C}=y,v=C.length,_=m-v+1;if(v>1&&!Mg(p,_,C,0,v)||p[_-1]===" ")continue;const k=p[m+1];if(y.intraword===!1&&k&&!ka.test(k))continue;const w=u;let b=w,E=cp(p,_,C),T=b;for(;E<0&&(T=T.getPreviousSibling())&&!fo(T);)if(Q(T)){if(T.hasFormat("code"))continue;const j=T.getTextContent();b=T,E=cp(j,j.length,C)}if(E<0||b===w&&E+v===_)continue;const x=b.getTextContent();if(E>0&&x[E-1]===h)continue;const N=x[E-1];if(y.intraword===!1&&N&&!ka.test(N))continue;const I=w.getTextContent(),A=I.slice(0,_)+I.slice(m+1);w.setTextContent(A);const D=b===w?A:x;b.setTextContent(D.slice(0,E)+D.slice(E+v));const M=te(),L=Qa();mt(L);const P=m-v*(b===w?2:1)+1;L.anchor.set(b.__key,E,"text"),L.focus.set(w.__key,P,"text");for(const j of y.format)L.hasFormat(j)||L.formatText(j);L.anchor.set(L.focus.key,L.focus.offset,L.focus.type);for(const j of y.format)L.hasFormat(j)&&L.toggleFormat(j);return Z(M)&&(L.format=M.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(ch)||a.has(pa)||t.isComposing())return;const d=c.read(te),f=u.read(te);if(!Z(f)||!Z(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(p);!Q(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!Oo(h))return;const g=h.getParent();g===null||cl(g)||s(g,h,d.anchor.offset)})})}function Lue(t,e=Qu,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(),m=d[d.length-1];bue.test(p)?d.push(p):_g.test(p)||Wc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||jc.test(m)||jc.test(p)||yg.test(p)||gg.test(p)||vg.test(p)||Cue.test(p)||kue.test(p)||wue.test(p)||!l||sp.test(p)||ap.test(p)||lp(ap).test(m)||lp(sp).test(m)||Wc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
52
- `)}(t,r);return gue(e,o)(s,n)}function Iue(t=Qu,e,n=!1){return function(r,s=!1){const a=Ju(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||We()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=mue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!Hc(h)&&!Hc(p[m-1])?`
52
+ `)}(t,r);return gue(e,o)(s,n)}function Iue(t=Qu,e,n=!1){return function(r,s=!1){const a=Ju(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||je()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=mue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!Hc(h)&&!Hc(p[m-1])?`
53
53
  `.concat(g):g)}return f.join(`
54
- `)}}(t,n)(e)}var Pue=process.env.NODE_ENV==="production",ic="Invariant failed";function Fue(t,e){if(!t){if(Pue)throw new Error(ic);var n=typeof e=="function"?e():e,o=n?"".concat(ic,": ").concat(n):ic;throw new Error(o)}}const $g=Symbol("LexicalEditor"),Vue=(()=>{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:Mi},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Zle({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const v=We();if(v.isEmpty()){const _=Fe();v.append(_);const k=Ece?document.activeElement:null;(te()!==null||k!==null&&k===y.getRootElement())&&_.select()}},l);else if(C!==null)switch(typeof C){case"string":{const v=y.parseEditorState(C);y.setEditorState(v,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{We().isEmpty()&&C(y)},l);break}}}return i.provide($g,h),i.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Jr(){const t=i.inject($g,null);return t||Fue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Rue(t,e){if(t==null)return{};var n=zue(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 zue(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 Uue=(()=>{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(()=>Rue(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 que(){return We().getTextContent()}function Hue(t,e=!0){if(t)return!1;let n=que();return e&&(n=n.trim()),n===""}function jue(t){if(!Hue(t,!1))return!1;const e=We().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Te(r))return!1;if(R(r)){if(!ds(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Bg(t){return()=>jue(t)}function Wue(t){return t.getEditorState().read(Bg(t.isComposing()))}function Og(t){const e=t.getEditorState().read(Bg(t.isComposing())),n=i.ref(e);function o(){const r=Wue(t);n.value=r}return i.onMounted(()=>{const r=ms(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Zue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kue(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){Zue(t,r,n[r])})}return t}function Gue(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 Yue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Jue=(()=>{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=Jr(),a=i.ref(!1),l=Og(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(Uue),i.mergeProps({editor:i.unref(s)},Yue(Kue({},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 Xue(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(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const k=C._nodeMap,w=[];for(const b of v){const E=k.get(b);E!==void 0&&w.push(E)}for(const[b,E]of _){if(!E)continue;const T=k.get(b);T===void 0||Ye(T)||w.push(T)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,v=C.get(s.anchor.key),_=C.get(a.anchor.key);return v&&_&&!t._nodeMap.has(v.__key)&&Q(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function Que(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(pa))return o=0,n=d,2;const f=Xue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(xle);if(!h&&m&&u.has(Mi))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,v,_){const k=v._nodeMap.get(C),w=_._nodeMap.get(C),b=v._selection,E=_._selection;return!(K(b)&&K(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!Q(k)||!Q(w)||k.__parent!==w.__parent)&&JSON.stringify(v.read(()=>k.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function up(t){t.undoStack=[],t.redoStack=[],t.current=null}function ede(t,e,n){const o=Que(t,n);return ms(t.registerCommand(ku,()=>(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(Bs,!0)),c.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),xe),t.registerCommand(wu,()=>(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(Os,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),xe),t.registerCommand(Cle,()=>(up(e),!1),xe),t.registerCommand(ble,()=>(up(e),t.dispatchCommand(Bs,!1),t.dispatchCommand(Os,!1),!0),xe),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Bs,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Os,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function tde(){return{current:null,redoStack:[],undoStack:[]}}function nde(t,e,n){const o=i.computed(()=>i.toValue(e)||tde());i.watchEffect(r=>{const s=ede(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const ode=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Jr();return nde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function rde(t){i.onMounted(()=>{const e=Pce(t);i.onUnmounted(()=>{e()})})}const ide=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Jr();return i.watchEffect(a=>{if(!s.hasNodes([ir,Eo]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Fce(s);a(l)}),rde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function sde(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 ade=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Jr(),e=sde(t);return()=>e.value}});function lde(t){i.onMounted(()=>{const e=ms(nue(t),Kce(t));i.onUnmounted(e)})}const cde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Jr(),s=Og(r);return lde(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(ade))],64))}});return t.__vue_vine=!0,t})(),sc=[kg,wg,Eg,Sg,Tg,Ag,Dg,Ng,xg],ude={class:"ao-lexical-editor__placeholder"},Lg=i.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],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:[ir,Eo,al,ll],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:()=>{Lue(o.initialMarkdown||"",sc)},onError(A){console.error("Lexical error:",A)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:A=>!0,blockStyleChange:A=>!0,selectionChange:A=>!0},setup(A,{emit:D}){const M=Jr();let I=null,P=null;function j(){M.getEditorState().read(()=>{const V=te();if(!K(V))return;D("selectionChange",V.clone());const q=V.anchor.getNode(),F=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(cg(F)){const Y=F.getTag();if(Y==="h1"||Y==="h2"||Y==="h3"){D("blockStyleChange",Y);return}}if(cl(F)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",M),j(),P=Oue(M,sc),I=M.registerUpdateListener(()=>{j()})}),i.onUnmounted(()=>{P==null||P(),I==null||I()}),()=>null}});function f(A){s.value=A,r("ready",A)}function p(A){a.value=A}function m(A){r("keydown",A)}function h(A){const D=A.clipboardData;if(!D)return;const M=[],I=D.items;if(I){for(const P of I)if(P.kind==="file"&&P.type.startsWith("image/")){const j=P.getAsFile();if(j){const V=g(j);M.push(V)}}M.length>0&&(A.preventDefault(),r("paste",M))}}function g(A){if(A.name&&A.name.length>0&&A.name!=="image.png"&&A.name!=="screenshot.png"&&!A.name.startsWith("image-"))return A;const M=new Date,I=M.getFullYear(),P=String(M.getMonth()+1).padStart(2,"0"),j=String(M.getDate()).padStart(2,"0"),V=String(M.getHours()).padStart(2,"0"),q=String(M.getMinutes()).padStart(2,"0");let F="png";A.type==="image/jpeg"?F="jpg":A.type==="image/webp"?F="webp":A.type==="image/gif"&&(F="gif");const Y=`pasted-image-${I}-${P}-${j}-${V}${q}.${F}`;return new File([A],Y,{type:A.type})}function y(){a.value&&ht(a.value.clone())}function C(A){const D=s.value;D&&(D.update(()=>{y(),A()}),D.focus())}function v(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Kt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Kt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Kt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Kt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(eg,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(tg,void 0),A.focus())}function T(A){C(()=>{const D=te();if(K(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){tc(D,()=>Fe());return}if(A==="code"){tc(D,()=>Sn());return}tc(D,()=>Fo(A))}}),l.value=A}function x(){const A=s.value;return A?A.getEditorState().read(()=>Iue(sc)):""}function N(){const A=s.value;A&&A.update(()=>{const D=We();D.clear(),D.append(Fe())})}function L(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:k,toggleInlineCode:w,insertBulletList:b,insertNumberedList:E,setBlockStyle:T,getMarkdown:x,clear:N,focus:L,blockStyle:l}),(A,D)=>(i.openBlock(),i.createBlock(i.unref(Vue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(A.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(cde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Jue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",ude,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(ode)),i.createVNode(i.unref(ide)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=M=>l.value=M),onSelectionChange:p})]),_:3}))}});function dde(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(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Lp(h)}))),l=i.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=te();if(!K(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!Q(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),v=h.getRootElement();if(!v)return;const _=v.getBoundingClientRect();r.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=te();if(!K(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!Q(C))return;const v=C.getTextContent(),_=y.anchor.offset,w=v.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const b=_-w[0].length,E=`@${h} `,T=v.slice(0,b)+E+v.slice(_);C.setTextContent(T);const x=b+E.length;y.anchor.set(C.getKey(),x,"text"),y.focus.set(C.getKey(),x,"text")}),c(),g.focus())}function p(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.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;h.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.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:m}}const fde={key:0,class:"ao-comment-editor__toolbar"},pde=["onClick"],Ig=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:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=dde(a,c);let C,v;const _=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function k(A){a.value=A,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,r("focus"))}function b(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var M;v=void 0;const A=(M=a.value)==null?void 0:M.getRootElement(),D=document.activeElement;A&&D instanceof Node&&A.contains(D)||l.value&&(l.value=!1,r("blur"))},100)}function E(A){if(!h(A)){if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)){A.preventDefault(),T();return}if(A.key==="Escape"){if(u.value){g();return}A.preventDefault(),x()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function x(){g(),r("cancel")}function N(){var A;(A=s.value)==null||A.clear(),g()}function L(){var A;(A=s.value)==null||A.focus()}return e({submit:T,cancel:x,reset:N,focus:L}),(A,D)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(i.openBlock(),i.createElementBlock("div",fde,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:D[0]||(D[0]=i.withModifiers(()=>{},["prevent"])),onClick:D[1]||(D[1]=M=>{var I;return(I=s.value)==null?void 0:I.toggleBold()})},[...D[14]||(D[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:D[2]||(D[2]=i.withModifiers(()=>{},["prevent"])),onClick:D[3]||(D[3]=M=>{var I;return(I=s.value)==null?void 0:I.toggleItalic()})},[...D[15]||(D[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:D[4]||(D[4]=i.withModifiers(()=>{},["prevent"])),onClick:D[5]||(D[5]=M=>{var I;return(I=s.value)==null?void 0:I.toggleStrikethrough()})},[...D[16]||(D[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:D[6]||(D[6]=i.withModifiers(()=>{},["prevent"])),onClick:D[7]||(D[7]=M=>{var I;return(I=s.value)==null?void 0:I.toggleInlineCode()})},[...D[17]||(D[17]=[i.createElementVNode("span",null,"</>",-1)])],32),D[18]||(D[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:D[8]||(D[8]=i.withModifiers(()=>{},["prevent"])),onClick:D[9]||(D[9]=M=>{var I;return(I=s.value)==null?void 0:I.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:D[10]||(D[10]=i.withModifiers(()=>{},["prevent"])),onClick:D[11]||(D[11]=M=>{var I;return(I=s.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:b},[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:E},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(M,I)=>(i.openBlock(),i.createElementBlock("li",{key:M.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":I===i.unref(p)}),onMousedown:D[12]||(D[12]=i.withModifiers(()=>{},["prevent"])),onClick:P=>i.unref(m)(M.name)}," @"+i.toDisplayString(M.name),43,pde))),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:D[13]||(D[13]=i.withModifiers(()=>{},["prevent"])),onClick:T},[i.createVNode(we,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const mde={class:"ao-comment"},hde={class:"ao-comment__created-at"},gde={class:"ao-comment__body"},vde={class:"ao-comment__content-wrapper"},yde={key:0,class:"ao-comment__footer"},_de=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 h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const h=n.editedAt&&Fi(n.editedAt),g=Fi(n.createdAt),y=new Date,C=h??g;return C&&z7(C,y)});i.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,i.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return i.openBlock(),i.createElementBlock("li",mde,[i.createElementVNode("span",hde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(Yn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",gde,[i.createElementVNode("div",vde,[s.value?(i.openBlock(),i.createBlock(Ig,{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(wm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",yde,[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:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(me,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const Cde={class:"ao-comments__new"},bde={key:0,class:"ao-comments__list"},kde=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)=>My(Fi(f.createdAt),Fi(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 m;if(!f.trim())return;const p=xd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=xd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}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",Cde,[i.createVNode(Ig,{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",bde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(_de,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0)],512))}});const wde=["aria-label"],Ede={class:"ao-file-preview__actions"},Sde=["aria-label"],xde={key:0,class:"ao-file-preview__loading"},Tde=["src","alt"],Ade=["src","title"],Nde={key:3,class:"ao-file-preview__fallback"},Dde={class:"ao-file-preview__fallback-title"},Mde={class:"ao-file-preview__fallback-filename"},$de=["aria-label"],Bde={key:2,class:"ao-file-preview__info"},Ode=["title"],Lde={key:0,class:"ao-file-preview__info-counter"},Ide={key:3,class:"ao-file-preview__info"},Pde={class:"ao-file-preview__info-counter"},Fde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){Mn();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 N,L;return((L=(N=c.value)==null?void 0:N.mimeType)==null?void 0:L.toLowerCase())??""}),p=i.computed(()=>{var N;return((N=c.value)==null?void 0:N.name)??""}),m=i.computed(()=>{var N;return((N=p.value.split(".").pop())==null?void 0:N.toLowerCase())??""}),h=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=i.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=i.computed(()=>h.value||g.value),C=i.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function _(){const N=c.value,L=++l;if(v(),a.value=!1,s.value=!1,!N||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const A=await n.loadPreview(N);if(L!==l)return;if(!A.size)throw new Error("Empty file received");r.value=URL.createObjectURL(A)}catch(A){if(L!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{L===l&&(s.value=!1)}}function k(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const N=c.value;if(!(N!=null&&N.url))return;const L=document.createElement("a");L.href=N.url,L.download=N.name,L.target="_blank",L.rel="noopener noreferrer",document.body.appendChild(L),L.click(),L.remove()}function E(){v(),a.value=!0}function T(){++l,v(),o("close")}function x(N){switch(N.key){case"Escape":T();break;case"ArrowLeft":k();break;case"ArrowRight":w();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",x)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",x),v()}),(N,L)=>{var A,D,M,I,P,j;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(A=c.value)==null?void 0:A.name},[i.createElementVNode("div",Ede,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(we,{name:"DownloadRounded",size:"sm"}),L[2]||(L[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(we,{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":N.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(we,{name:"ArrowBackRounded",size:"lg"})],8,Sde)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:L[1]||(L[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",xde,[...L[3]||(L[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:(D=c.value)==null?void 0:D.name,class:"ao-file-preview__image",onError:E},null,40,Tde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:L[0]||(L[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__pdf"},null,8,Ade)])):(i.openBlock(),i.createElementBlock("div",Nde,[i.createVNode(we,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Dde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Mde,i.toDisplayString((I=c.value)==null?void 0:I.name),1),i.createVNode(me,{variant:"solid",color:"primary",size:"sm",label:N.$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":N.$t("activity.attachment.preview.next"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(we,{name:"ArrowForwardRounded",size:"lg"})],8,$de)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Bde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(P=c.value)==null?void 0:P.name},i.toDisplayString((j=c.value)==null?void 0:j.name),9,Ode),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Lde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Ide,[i.createElementVNode("span",Pde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,wde)])}}});const Pg=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(Gc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Vde=i.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const Rde={class:"toggle-wrapper"};function zde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",Rde,[i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},i.toDisplayString(t.leftLabel),3),i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},i.toDisplayString(t.rightLabel),3)])}const Ude=ne(Vde,[["render",zde],["__scopeId","data-v-40c1f714"]]),qde=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 Hde=["onClick"],jde={class:"tab-button__label"},Wde={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",jde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",Wde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Hde))),128))],2)}const hs=ne(qde,[["render",Zde],["__scopeId","data-v-3d268d7b"]]),Kde={class:"ao-rich-text-editor"},Gde={class:"ao-rich-text-editor__toolbar"},Yde=["value"],Jde={class:"ao-rich-text-editor__actions"},Xde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(i.openBlock(),i.createElementBlock("div",Kde,[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Gde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...u[12]||(u[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,Yde),u[17]||(u[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:u[0]||(u[0]=i.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=i.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=i.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=i.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[i.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[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:u[8]||(u[8]=i.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=i.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=f=>{var p;return(p=o.value)==null?void 0:p.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 Qde={class:"ao-activity-details"},e1e={class:"ao-activity-details__main"},t1e={class:"ao-activity-details__header"},n1e={key:1,class:"ao-activity__category"},o1e={key:2,class:"ao-activity-details__created-by"},r1e={class:"ao-feed__activity-details__header"},i1e={key:0,class:"ao-field ao-feed__activity-details__project"},s1e={class:"ao-field__label"},a1e={key:1,class:"ao-field ao-feed__activity-details__project"},l1e={class:"ao-field__label"},c1e={class:"ao-activity-details__content"},u1e={class:"ao-activity-details__tab-content"},d1e={class:"ao-fieldset"},f1e={class:"ao-field__row"},p1e={class:"ao-activity-details__tab-content"},m1e={class:"ao-fieldset"},h1e={class:"ao-fieldset__body"},g1e={class:"ao-activity-details__tab-content"},v1e={key:0,class:"ao-fieldset"},y1e={class:"ao-activity-details__aside"},_1e={class:"ao-activity-details__close-button"},C1e={class:"ao-activity-details__aside-section"},b1e={class:"ao-field__label"},k1e={key:0,class:"ao-activity-details__aside-section"},w1e={class:"ao-field"},E1e={class:"ao-field__label"},S1e={key:1,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},T1e={class:"ao-field__label"},A1e={class:"ao-field ao-field--multiselect"},N1e={class:"assignee-inline"},D1e={class:"ao-field__label"},M1e={key:1,class:"ao-sprint-form"},$1e={class:"ao-sprint-form__field"},B1e={class:"ao-field__label"},O1e=["placeholder"],L1e={class:"ao-sprint-form__field"},I1e={class:"ao-field__label"},P1e={class:"ao-sprint-form__field"},F1e={class:"ao-field__label"},V1e={class:"ao-sprint-form__actions"},R1e={class:"ao-activity-details__aside-section"},z1e={class:"ao-field ao-field--multiselect"},U1e={class:"assignee-inline"},q1e={class:"ao-field__label"},H1e={class:"ao-activity-details__aside-section"},j1e={key:0,class:"ao-field__row"},W1e={class:"ao-field"},Z1e={class:"ao-field__label"},K1e=["readonly"],G1e={class:"ao-activity-details__aside-section"},Y1e={class:"ao-field__row"},J1e={class:"ao-field ao-field--inline"},X1e={class:"ao-field__label"},Q1e=["readonly"],efe={class:"ao-field__row"},tfe={class:"ao-field ao-field--inline"},nfe={class:"ao-field__label"},ofe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},rfe={class:"ao-activity-details__aside-section"},ife={class:"ao-fieldset ao-activity-details__aside-section"},sfe={class:"ao-fieldset__title"},afe={class:"ao-fieldset__body"},lfe={class:"ao-field__row"},cfe={class:"ao-field ao-field--multiselect"},ufe={class:"ao-field__label"},dfe={class:"ao-field__row"},ffe={class:"ao-field ao-field--multiselect"},pfe={class:"ao-field__label"},ed=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:r}=Mn(),s=i.ref("description"),a=i.computed(()=>{var B,W;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((B=n.activity.tasks)==null?void 0:B.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((W=n.activity.comments)==null?void 0:W.length)??0}]}),l=i.computed(()=>{var B;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((B=n.activity.assignee)==null?void 0:B.id):!1}),c=i.ref(!1),u=i.ref(null),d=B=>{o("update:activity",{id:n.activity.id,name:B})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=B=>{o("update:activity",{id:n.activity.id,description:B}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set(B){o("update:activity",{id:n.activity.id,estimation:B})}}),y=i.computed({get(){var W;const B=(W=n.timeTrackingData)==null?void 0:W[n.activity.id];return(B==null?void 0:B.timeSpent)??0},set(){}}),C=i.computed(()=>{var W;return((W=n.activity.project)==null?void 0:W.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var W;const B=(W=n.activity.project)==null?void 0:W.estimationUnit;return Da(y.value,B)}),_=i.computed({get(){return n.activity.important??!1},set(B){o("update:activity",{id:n.activity.id,important:B})}});i.computed({get(){return n.activity.private??!1},set(B){o("update:activity",{id:n.activity.id,private:B})}});const k=i.computed({get(){return n.activity.deadline},set(B){o("update:activity",{id:n.activity.id,deadline:B})}}),w=i.computed({get(){return n.activity.activityType!=="dev"},set(B){var ue;const W=B?"standard":"dev";n.activity.activityType!=="dev"&&W==="dev"&&!n.activity.devStatus&&((ue=n.devStatuses)!=null&&ue.length)?o("update:activity",{id:n.activity.id,type:W,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:W})}}),b=i.computed(()=>{var B;return((B=n.devStatuses)==null?void 0:B.map(W=>({value:W.id,label:W.name})))??[]}),E=i.computed({get(){var B;return(B=n.activity.devStatus)==null?void 0:B.id},set(B){o("update:activity",{id:n.activity.id,statusDevId:B})}}),T=i.computed(()=>{var W;const B=(W=n.activity.project)==null?void 0:W.id;return B?n.sprints.filter(ue=>ue.projectId===B).map(ue=>({value:ue.id,label:ue.name,startDate:ue.startDate})).sort((ue,ze)=>ue.startDate&&ze.startDate?new Date(ue.startDate).getTime()-new Date(ze.startDate).getTime():ue.label.localeCompare(ze.label)):[]}),x=i.computed({get(){var B;return(B=n.activity.sprint)==null?void 0:B.id},set(B){o("update:activity",{id:n.activity.id,sprintId:B})}}),N=i.computed(()=>{var B;return!((B=n.activity.project)!=null&&B.id)}),L=i.ref(!1),A=i.ref(""),D=i.ref(""),M=i.ref(""),I=i.computed(()=>{var ue;const B=(ue=n.activity.project)==null?void 0:ue.id;return B?`Sprint ${n.sprints.filter(ze=>ze.projectId===B).length+1}`:"Sprint 1"}),P=i.computed(()=>{var ut;if(!((ut=n.activity.project)==null?void 0:ut.id))return!1;const W=A.value.trim(),ue=D.value,ze=M.value;return!W||!ue||!ze?!1:new Date(ze)>=new Date(ue)}),j=()=>{var W;(W=n.activity.project)!=null&&W.id&&(L.value=!0,A.value=I.value,D.value="",M.value="")},V=()=>{L.value=!1,A.value="",D.value="",M.value=""},q=()=>{var W;if(!P.value)return;const B=(W=n.activity.project)==null?void 0:W.id;B&&(o("createSprint",{projectId:B,name:A.value.trim(),startDate:D.value,endDate:M.value}),L.value=!1,A.value="",D.value="",M.value="")},F=i.computed(()=>n.templateActivities.filter(B=>B.id!==n.activity.id).map(B=>({label:B.name,value:B.id}))),Y=i.computed({get(){var B;return(B=n.activity.dependingOn)==null?void 0:B.map(W=>W.id)},set(B){B&&o("update:activity",{id:n.activity.id,dependingOn:B})}}),ee=i.computed(()=>F.value.map(B=>{var W;return{...B,disabled:(W=n.activity.blocking)==null?void 0:W.some(ue=>ue.id===B.value)}})),Ee=i.computed({get(){var B;return(B=n.activity.blocking)==null?void 0:B.map(W=>W.id)},set(B){B&&o("update:activity",{id:n.activity.id,blocking:B})}}),ie=i.computed(()=>F.value.map(B=>{var W;return{...B,disabled:(W=n.activity.dependingOn)==null?void 0:W.some(ue=>ue.id===B.value)}})),se=B=>{o("addSubtask",B)},z=B=>{o("updateSubtask",B)},oe=B=>{o("deleteSubtask",B)};function ye(){n.userId?ae.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function Be(B){ae.value=[B]}const H=i.computed(()=>{var W;const B=new Map;return(W=n.users)==null||W.forEach(ue=>{B.has(ue.id)||B.set(ue.id,ue)}),Array.from(B.values()).map(ue=>({label:`${ue.firstName} ${ue.lastName}`,value:ue.id,avatar:ue.avatarUrl}))}),ae=i.computed({get(){var B,W;return(B=n.activity.assignee)!=null&&B.id?[(W=n.activity.assignee)==null?void 0:W.id]:[]},set(B){o("update:activity",{id:n.activity.id,assigneeId:B[0]??null})}}),fe=B=>{o("addFiles",{activityId:n.activity.id,files:B})},he=B=>{fe(B)},ke=B=>{o("removeFile",{activityId:n.activity.id,file:B})},Ve=i.computed(()=>n.projects.map(B=>({value:B.id,label:B.name}))),_e=i.computed(()=>{var W,ue,ze;const B=(ze=(ue=(W=n.activity)==null?void 0:W.project)==null?void 0:ue.phases)==null?void 0:ze.reduce((ut,tn)=>[...ut,...tn.milestones],[]);return B==null?void 0:B.map(ut=>({value:ut.id,label:ut.name}))}),Pe=B=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:B})},Ze=B=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:B})},De=i.computed(()=>{var B;return(B=n.statuses)==null?void 0:B.map(W=>({value:W.id,label:W.name}))}),Ge=B=>{o("update:activity",{id:n.activity.id,statusId:B})},_t=B=>{o("update:activity",{id:n.activity.id,statusDevId:B})},vn=B=>{o("addComment",{...B,activityId:n.activity.id})},On=B=>{o("updateComment",B)},Re=B=>{o("removeComment",B)},ct=i.computed(()=>{var B,W;return((B=n.activity.createdBy)==null?void 0:B.firstName)&&((W=n.activity.createdBy)==null?void 0:W.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),nt=i.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function Dt(){const B=window.location.origin,W=n.activity.slug,ue=`${B}/activity-feed/slug/${W}`;navigator.clipboard.writeText(ue).then(()=>{console.log(`Link copied to clipboard: ${ue}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(B,W)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode($a,{onClose:W[14]||(W[14]=ue=>B.$emit("close"))},{default:i.withCtx(()=>{var ue,ze,ut,tn;return[i.createElementVNode("div",Qde,[i.createElementVNode("div",e1e,[i.createElementVNode("div",t1e,[t.activity.slug?(i.openBlock(),i.createBlock(Li,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:Dt},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",n1e,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(yt,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),ct.value?(i.openBlock(),i.createElementBlock("div",o1e,i.toDisplayString(B.$t("activity.createdBy.label",{name:ct.value,date:nt.value})),1)):i.createCommentVNode("",!0),i.createElementVNode("div",r1e,[Ve.value?(i.openBlock(),i.createElementBlock("label",i1e,[i.createElementVNode("span",s1e,i.toDisplayString(B.$t("activity.project.label")),1),i.createVNode(xt,{options:Ve.value,value:(ue=t.activity.project)==null?void 0:ue.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Pe},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),_e.value?(i.openBlock(),i.createElementBlock("label",a1e,[i.createElementVNode("span",l1e,i.toDisplayString(B.$t("activity.milestone.label")),1),i.createVNode(xt,{options:_e.value,value:(ze=t.activity.milestone)==null?void 0:ze.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Ze},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(B.$slots,"header")]),i.createElementVNode("div",c1e,[i.createVNode(hs,{modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=Ce=>s.value=Ce),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",u1e,[i.createElementVNode("fieldset",d1e,[i.createElementVNode("div",f1e,[i.createVNode(Z9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:fe,onRemove:ke,onPreview:W[1]||(W[1]=Ce=>u.value=Ce)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Xde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:he},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(wm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",p1e,[i.createElementVNode("fieldset",m1e,[i.createElementVNode("div",h1e,[i.createVNode(L9,{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:se,onUpdate:z,onDelete:oe},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",g1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",v1e,[i.createVNode(kde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:vn,onUpdateComment:On,onRemoveComment:Re},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",y1e,[i.createElementVNode("div",_1e,[i.createVNode(we,{name:"CloseRounded",onClick:W[2]||(W[2]=Ce=>B.$emit("close"))})]),i.createElementVNode("div",C1e,[i.createElementVNode("span",b1e,i.toDisplayString(B.$t("activity.type.label")),1),i.createVNode(Ude,{"is-left":w.value,"onUpdate:isLeft":W[3]||(W[3]=Ce=>w.value=Ce),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),De.value?(i.openBlock(),i.createElementBlock("div",k1e,[i.createElementVNode("label",w1e,[i.createElementVNode("span",E1e,i.toDisplayString(B.$t("activity.status.label")),1),i.createVNode(xt,{class:"ao-activity-details__multiselect",options:De.value,value:(ut=t.activity.status)==null?void 0:ut.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Ge},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),t.activity.activityType==="dev"&&(b.value.length||T.value.length)?(i.openBlock(),i.createElementBlock("div",S1e,[i.createElementVNode("label",x1e,[i.createElementVNode("span",T1e,i.toDisplayString(B.$t("activity.devStatus.label")),1),i.createVNode(xt,{class:"ao-activity-details__multiselect",options:b.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:_t},null,8,["options","value","disabled","caret"])]),i.createElementVNode("div",A1e,[i.createElementVNode("div",N1e,[i.createElementVNode("span",D1e,i.toDisplayString(B.$t("activity.sprint.label")),1),(tn=t.activity.project)!=null&&tn.id&&l.value&&!L.value?(i.openBlock(),i.createBlock(me,{key:0,label:B.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:j},null,8,["label"])):i.createCommentVNode("",!0)]),L.value?(i.openBlock(),i.createElementBlock("div",M1e,[i.createElementVNode("div",$1e,[i.createElementVNode("label",B1e,i.toDisplayString(B.$t("activity.sprint.nameLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":W[5]||(W[5]=Ce=>A.value=Ce),class:"ao-field__input",type:"text",placeholder:B.$t("activity.sprint.namePlaceholder")},null,8,O1e),[[i.vModelText,A.value]])]),i.createElementVNode("div",L1e,[i.createElementVNode("label",I1e,i.toDisplayString(B.$t("activity.sprint.startDateLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":W[6]||(W[6]=Ce=>D.value=Ce),class:"ao-field__input",type:"date"},null,512),[[i.vModelText,D.value]])]),i.createElementVNode("div",P1e,[i.createElementVNode("label",F1e,i.toDisplayString(B.$t("activity.sprint.endDateLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":W[7]||(W[7]=Ce=>M.value=Ce),class:"ao-field__input",type:"date"},null,512),[[i.vModelText,M.value]])]),i.createElementVNode("div",V1e,[i.createVNode(me,{type:"button",variant:"ghost",label:B.$t("common.cancel"),onClick:V},null,8,["label"]),i.createVNode(me,{type:"button",color:"primary",variant:"solid",label:B.$t("common.create"),disabled:!P.value,onClick:q},null,8,["label","disabled"])])])):(i.openBlock(),i.createBlock(xt,{key:0,class:"ao-activity-details__multiselect",options:T.value,value:x.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:N.value||!l.value,placeholder:N.value?B.$t("activity.sprint.selectProjectFirst"):B.$t("activity.sprint.placeholder"),caret:l.value,onChange:W[4]||(W[4]=Ce=>x.value=Ce??null)},null,8,["options","value","disabled","placeholder","caret"]))]),i.renderSlot(B.$slots,"sprintModal")])):i.createCommentVNode("",!0),i.createElementVNode("div",R1e,[i.createElementVNode("div",z1e,[i.createElementVNode("div",U1e,[i.createElementVNode("span",q1e,i.toDisplayString(B.$t("activity.assignee.label")),1),i.createVNode(me,{label:B.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:ye},null,8,["label"])]),i.createVNode(xt,{modelValue:ae.value,"onUpdate:modelValue":W[8]||(W[8]=Ce=>ae.value=Ce),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:H.value,"close-on-select":!0,searchable:!0,placeholder:B.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:Be},{tag:i.withCtx(({option:Ce,handleTagRemove:Ht})=>[i.createVNode(Yn,{"user-name":Ce.label,"avatar-url":Ce.avatar,"is-closable":!0,onClose:ar=>Ht(Ce,ar)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",H1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",j1e,[i.createElementVNode("label",W1e,[i.createElementVNode("span",Z1e,i.toDisplayString(B.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":W[9]||(W[9]=Ce=>k.value=Ce),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,K1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",G1e,[i.createElementVNode("div",Y1e,[i.createElementVNode("label",J1e,[i.createElementVNode("span",X1e,i.toDisplayString(B.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":W[10]||(W[10]=Ce=>g.value=Ce),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Q1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",efe,[i.createElementVNode("label",tfe,[i.createElementVNode("span",nfe,i.toDisplayString(B.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",ofe,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",rfe,[i.createVNode(Pg,{modelValue:_.value,"onUpdate:modelValue":W[11]||(W[11]=Ce=>_.value=Ce),modelModifiers:{lazy:!0},label:B.$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",ife,[i.createElementVNode("div",sfe,[i.createVNode(we,{name:"FlowsheetOutlineRounded"}),i.createVNode(yt,{level:4,title:B.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",afe,[i.createElementVNode("div",lfe,[i.createElementVNode("label",cfe,[i.createElementVNode("span",ufe,i.toDisplayString(B.$t("activity.dependingOn.label")),1),i.createVNode(xt,{modelValue:Y.value,"onUpdate:modelValue":W[12]||(W[12]=Ce=>Y.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:ee.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",dfe,[i.createElementVNode("label",ffe,[i.createElementVNode("span",pfe,i.toDisplayString(B.$t("activity.blocking.label")),1),i.createVNode(xt,{modelValue:Ee.value,"onUpdate:modelValue":W[13]||(W[13]=Ce=>Ee.value=Ce),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:ie.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(B.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Fde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":W[15]||(W[15]=ue=>u.value=ue),onClose:W[16]||(W[16]=ue=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const mfe=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||He.ACTIVITIES),s=i.computed({get(){return r.value},set(v){r.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=i.computed(()=>Object.values(He)),l=i.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[He.ACTIVITIES]:n.templateActivities,[He.MILESTONES]:n.templateMilestones,[He.PHASES]:n.templatePhases}[r.value])==null?void 0:_.map(k=>({value:k.id,label:k.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(v){o("update:rule",{...n.rule,comparator:v})}}),f=i.computed(()=>Object.values(hp)),p=i.toRef(n.rule.trigger),m=i.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=i.computed(()=>Object.values(gp)),g=i.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=i.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=i.computed(()=>Object.values(vp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(io),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(io),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(io),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(io),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=k=>d.value=k),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(io),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=k=>y.value=k),options:C.value},null,8,["modelValue","options"]),i.createVNode(me,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=k=>v.$emit("close"))})]),_:1}))}});const hfe={class:"ao-template-rules__body"},gfe={class:"ao-template-rules__list"},vfe=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($a,null,{header:i.withCtx(()=>[i.createVNode(yt,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",hfe,[i.createElementVNode("ul",gfe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(mfe,{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(Co,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Ho(t,e,n){const o=t.length,r=t.at(-1),s=r?st.LexoRank.parse(r.rank).genNext():st.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const yfe={key:0,class:"ao-template-details"},_fe={class:"ao-template-details__body"},Cfe={class:"ao-template-details__cols"},bfe={class:"ao-template-details__col"},kfe={class:"ao-list__footer"},wfe={class:"ao-template-details__col"},Efe={class:"ao-template-details__col"},Fg=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}=Mn(),o=t,r=e,s=i.computed(()=>{var V;return(V=o.templates)==null?void 0:V.find(q=>q.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,q)=>{a.value&&Hn(V,q)});const l=i.computed(()=>{var V,q;return(q=(V=s==null?void 0:s.value)==null?void 0:V.phases)==null?void 0:q.find(F=>F.id===o.phaseId)});i.watch(()=>{var V;return(V=l.value)==null?void 0:V.milestones},(V,q)=>{a.value&&Hn(V,q)});const c=i.computed(()=>{var V,q;return(q=(V=l.value)==null?void 0:V.milestones)==null?void 0:q.find(F=>F.id===o.milestoneId)});i.watch(()=>{var V;return(V=c.value)==null?void 0:V.activities},(V,q)=>{a.value&&Hn(V,q)});const u=i.computed(()=>{var V,q;return((q=(V=s.value)==null?void 0:V.phases)==null?void 0:q.reduce((F,Y)=>{const ee=Y.milestones||[];return[...F,...ee]},[]))||[]}),d=i.computed(()=>{var V,q;return((q=(V=s.value)==null?void 0:V.phases)==null?void 0:q.reduce((F,Y)=>{const Ee=(Y.milestones||[]).reduce((ie,se)=>se.activities?[...ie,...se.activities]:ie,[]);return[...F,...Ee]},[]))||[]}),f=i.computed(()=>{var V,q;return(q=(V=c.value)==null?void 0:V.activities)==null?void 0:q.find(F=>F.id===o.activityId)}),p=i.computed(()=>{var V;return((V=s.value)==null?void 0:V.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:V,rank:q}=Ho(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:He.PHASES,templateId:o.templateId,item:{name:V,rank:q}})},h=V=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:He.TEMPLATES,data:{name:V}})},g=V=>{r("removeItem",{itemType:He.PHASES,templateId:o.templateId,data:{id:V}})},y=(V,q)=>{r("updateItem",{templateId:o.templateId,id:V,itemType:He.PHASES,data:{name:q}})},C=V=>{r("updateItem",V)},v=V=>{if(!l.value)return;const{name:q,rank:F}=Ho(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:He.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,item:{name:q,rank:F,phaseId:V.phaseId}})},_=V=>{r("removeItem",{itemType:He.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,data:{id:V.id}})},k=V=>{const{id:q,...F}=V;r("updateItem",{itemType:He.MILESTONES,id:q,templateId:o.templateId,data:F})},w=V=>{const{milestoneId:q}=V;if(!c.value)return;const{name:F,rank:Y}=Ho(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:He.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:F,rank:Y,milestoneId:q}})},b=V=>{var q,F;r("removeItem",{itemType:He.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(F=c.value)==null?void 0:F.id,data:{id:V.id}})},E=V=>{const{id:q,...F}=V;r("updateItem",{itemType:He.ACTIVITIES,id:q,templateId:o.templateId,data:F})},T=i.ref(!1),x=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},L=V=>{r("removeRule",{id:V,templateId:o.templateId})},A=V=>{var q;if(V.moved){const F=es(V,((q=s.value)==null?void 0:q.phases)??[]);r("updateItem",{itemType:He.PHASES,id:V.moved.element.id,templateId:o.templateId,data:{rank:F}})}},D=V=>{!l.value||!c.value||!f.value||r("addItem",{type:He.TASKS,activityId:V.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:V})},M=V=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:He.TASKS,id:V.id,templateId:o.templateId,data:V})},I=V=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:He.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:V})},P=V=>{r("addFiles",V)},j=V=>{r("removeFile",V)};return(V,q)=>{var F,Y,ee,Ee,ie,se;return s.value?(i.openBlock(),i.createElementBlock("div",yfe,[i.createVNode(ns,{"can-go-back":!0,onGoBack:q[1]||(q[1]=z=>V.$router.push({name:i.unref(Vo).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(yt,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=z=>{h(z)})},null,8,["title"])]),_:1}),i.createElementVNode("div",_fe,[i.createElementVNode("ol",Cfe,[i.createElementVNode("li",bfe,[i.createVNode(i.unref(_o),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(yt,{title:V.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:z})=>{var oe;return[i.createVNode(Q_,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((oe=l.value)==null?void 0:oe.id)===z.id,"is-draggable":!0,onClick:ye=>V.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":ye=>{y(z.id,ye)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",kfe,[i.createVNode(Co,{"icon-name":"AddBoxOutlineRounded",label:V.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",wfe,[l.value?(i.openBlock(),i.createBlock(nC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(F=c.value)==null?void 0:F.id,onAddMilestone:v,onUpdateMilestone:k,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",Efe,[l.value&&c.value?(i.openBlock(),i.createBlock(iC,{key:0,"template-id":t.templateId,"phase-id":(Y=l.value)==null?void 0:Y.id,milestone:c.value,"activity-id":(ee=f.value)==null?void 0:ee.id,onAddActivity:w,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(ed,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(Ee=l.value)==null?void 0:Ee.name} / ${(ie=c.value)==null?void 0:ie.name}`,"milestone-id":(se=c.value)==null?void 0:se.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":q[2]||(q[2]=z=>{f.value&&E(z)}),onClose:V.$router.back,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:I,onAddFiles:P,onRemoveFile:j},{default:i.withCtx(z=>[i.renderSlot(V.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(z)))]),_: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(vfe,{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:x,onAddRule:N,onRemoveRule:L},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const Sfe={class:"ao-card__content"},xfe={key:0,class:"ao-card__header"},Tfe={class:"ao-card__body"},Afe={key:1,class:"ao-card__footer"},dl=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",Sfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",xfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",Tfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",Afe,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const fl=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 Pue=process.env.NODE_ENV==="production",ic="Invariant failed";function Fue(t,e){if(!t){if(Pue)throw new Error(ic);var n=typeof e=="function"?e():e,o=n?"".concat(ic,": ").concat(n):ic;throw new Error(o)}}const $g=Symbol("LexicalEditor"),Vue=(()=>{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:Mi},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Zle({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const v=je();if(v.isEmpty()){const _=Fe();v.append(_);const k=Ece?document.activeElement:null;(te()!==null||k!==null&&k===y.getRootElement())&&_.select()}},l);else if(C!==null)switch(typeof C){case"string":{const v=y.parseEditorState(C);y.setEditorState(v,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{je().isEmpty()&&C(y)},l);break}}}return i.provide($g,h),i.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Xr(){const t=i.inject($g,null);return t||Fue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Rue(t,e){if(t==null)return{};var n=zue(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 zue(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 Uue=(()=>{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(()=>Rue(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 que(){return je().getTextContent()}function Hue(t,e=!0){if(t)return!1;let n=que();return e&&(n=n.trim()),n===""}function jue(t){if(!Hue(t,!1))return!1;const e=je().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Te(r))return!1;if(R(r)){if(!ds(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Bg(t){return()=>jue(t)}function Wue(t){return t.getEditorState().read(Bg(t.isComposing()))}function Og(t){const e=t.getEditorState().read(Bg(t.isComposing())),n=i.ref(e);function o(){const r=Wue(t);n.value=r}return i.onMounted(()=>{const r=ms(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Zue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kue(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){Zue(t,r,n[r])})}return t}function Gue(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 Yue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Jue=(()=>{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=Xr(),a=i.ref(!1),l=Og(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(Uue),i.mergeProps({editor:i.unref(s)},Yue(Kue({},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 Xue(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(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const k=C._nodeMap,w=[];for(const b of v){const E=k.get(b);E!==void 0&&w.push(E)}for(const[b,E]of _){if(!E)continue;const T=k.get(b);T===void 0||Je(T)||w.push(T)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,v=C.get(s.anchor.key),_=C.get(a.anchor.key);return v&&_&&!t._nodeMap.has(v.__key)&&Q(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function Que(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(pa))return o=0,n=d,2;const f=Xue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(xle);if(!h&&m&&u.has(Mi))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,v,_){const k=v._nodeMap.get(C),w=_._nodeMap.get(C),b=v._selection,E=_._selection;return!(Z(b)&&Z(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!Q(k)||!Q(w)||k.__parent!==w.__parent)&&JSON.stringify(v.read(()=>k.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function up(t){t.undoStack=[],t.redoStack=[],t.current=null}function ede(t,e,n){const o=Que(t,n);return ms(t.registerCommand(ku,()=>(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(Bs,!0)),c.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),Se),t.registerCommand(wu,()=>(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(Os,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:pa})}}(t,e),!0),Se),t.registerCommand(Cle,()=>(up(e),!1),Se),t.registerCommand(ble,()=>(up(e),t.dispatchCommand(Bs,!1),t.dispatchCommand(Os,!1),!0),Se),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Bs,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Os,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function tde(){return{current:null,redoStack:[],undoStack:[]}}function nde(t,e,n){const o=i.computed(()=>i.toValue(e)||tde());i.watchEffect(r=>{const s=ede(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const ode=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Xr();return nde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function rde(t){i.onMounted(()=>{const e=Pce(t);i.onUnmounted(()=>{e()})})}const ide=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Xr();return i.watchEffect(a=>{if(!s.hasNodes([ar,So]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Fce(s);a(l)}),rde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function sde(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 ade=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Xr(),e=sde(t);return()=>e.value}});function lde(t){i.onMounted(()=>{const e=ms(nue(t),Kce(t));i.onUnmounted(e)})}const cde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Xr(),s=Og(r);return lde(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(ade))],64))}});return t.__vue_vine=!0,t})(),sc=[kg,wg,Eg,Sg,Tg,Ag,Dg,Ng,xg],ude={class:"ao-lexical-editor__placeholder"},Lg=i.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],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:[ar,So,al,ll],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:()=>{Lue(o.initialMarkdown||"",sc)},onError(A){console.error("Lexical error:",A)}},d=i.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:A=>!0,blockStyleChange:A=>!0,selectionChange:A=>!0},setup(A,{emit:D}){const M=Xr();let L=null,P=null;function j(){M.getEditorState().read(()=>{const V=te();if(!Z(V))return;D("selectionChange",V.clone());const q=V.anchor.getNode(),F=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(cg(F)){const Y=F.getTag();if(Y==="h1"||Y==="h2"||Y==="h3"){D("blockStyleChange",Y);return}}if(cl(F)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",M),j(),P=Oue(M,sc),L=M.registerUpdateListener(()=>{j()})}),i.onUnmounted(()=>{P==null||P(),L==null||L()}),()=>null}});function f(A){s.value=A,r("ready",A)}function p(A){a.value=A}function m(A){r("keydown",A)}function h(A){const D=A.clipboardData;if(!D)return;const M=[],L=D.items;if(L){for(const P of L)if(P.kind==="file"&&P.type.startsWith("image/")){const j=P.getAsFile();if(j){const V=g(j);M.push(V)}}M.length>0&&(A.preventDefault(),r("paste",M))}}function g(A){if(A.name&&A.name.length>0&&A.name!=="image.png"&&A.name!=="screenshot.png"&&!A.name.startsWith("image-"))return A;const M=new Date,L=M.getFullYear(),P=String(M.getMonth()+1).padStart(2,"0"),j=String(M.getDate()).padStart(2,"0"),V=String(M.getHours()).padStart(2,"0"),q=String(M.getMinutes()).padStart(2,"0");let F="png";A.type==="image/jpeg"?F="jpg":A.type==="image/webp"?F="webp":A.type==="image/gif"&&(F="gif");const Y=`pasted-image-${L}-${P}-${j}-${V}${q}.${F}`;return new File([A],Y,{type:A.type})}function y(){a.value&&mt(a.value.clone())}function C(A){const D=s.value;D&&(D.update(()=>{y(),A()}),D.focus())}function v(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Gt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Gt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Gt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Gt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(eg,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(tg,void 0),A.focus())}function T(A){C(()=>{const D=te();if(Z(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){tc(D,()=>Fe());return}if(A==="code"){tc(D,()=>xn());return}tc(D,()=>Ro(A))}}),l.value=A}function x(){const A=s.value;return A?A.getEditorState().read(()=>Iue(sc)):""}function N(){const A=s.value;A&&A.update(()=>{const D=je();D.clear(),D.append(Fe())})}function I(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:k,toggleInlineCode:w,insertBulletList:b,insertNumberedList:E,setBlockStyle:T,getMarkdown:x,clear:N,focus:I,blockStyle:l}),(A,D)=>(i.openBlock(),i.createBlock(i.unref(Vue),{"initial-config":u},{default:i.withCtx(()=>[i.renderSlot(A.$slots,"toolbar"),i.createElementVNode("div",{class:i.normalizeClass(["ao-lexical-editor",c.value])},[i.createVNode(i.unref(cde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Jue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",ude,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(ode)),i.createVNode(i.unref(ide)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=M=>l.value=M),onSelectionChange:p})]),_:3}))}});function dde(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(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:Lp(h)}))),l=i.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=te();if(!Z(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!Q(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),v=h.getRootElement();if(!v)return;const _=v.getBoundingClientRect();r.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=te();if(!Z(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!Q(C))return;const v=C.getTextContent(),_=y.anchor.offset,w=v.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const b=_-w[0].length,E=`@${h} `,T=v.slice(0,b)+E+v.slice(_);C.setTextContent(T);const x=b+E.length;y.anchor.set(C.getKey(),x,"text"),y.focus.set(C.getKey(),x,"text")}),c(),g.focus())}function p(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.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;h.preventDefault();const g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.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:m}}const fde={key:0,class:"ao-comment-editor__toolbar"},pde=["onClick"],Ig=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:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=dde(a,c);let C,v;const _=i.computed(()=>o.toolbarVisibility==="always"||l.value);i.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function k(A){a.value=A,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,r("focus"))}function b(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var M;v=void 0;const A=(M=a.value)==null?void 0:M.getRootElement(),D=document.activeElement;A&&D instanceof Node&&A.contains(D)||l.value&&(l.value=!1,r("blur"))},100)}function E(A){if(!h(A)){if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)){A.preventDefault(),T();return}if(A.key==="Escape"){if(u.value){g();return}A.preventDefault(),x()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function x(){g(),r("cancel")}function N(){var A;(A=s.value)==null||A.clear(),g()}function I(){var A;(A=s.value)==null||A.focus()}return e({submit:T,cancel:x,reset:N,focus:I}),(A,D)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(i.openBlock(),i.createElementBlock("div",fde,[i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:D[0]||(D[0]=i.withModifiers(()=>{},["prevent"])),onClick:D[1]||(D[1]=M=>{var L;return(L=s.value)==null?void 0:L.toggleBold()})},[...D[14]||(D[14]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:D[2]||(D[2]=i.withModifiers(()=>{},["prevent"])),onClick:D[3]||(D[3]=M=>{var L;return(L=s.value)==null?void 0:L.toggleItalic()})},[...D[15]||(D[15]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:D[4]||(D[4]=i.withModifiers(()=>{},["prevent"])),onClick:D[5]||(D[5]=M=>{var L;return(L=s.value)==null?void 0:L.toggleStrikethrough()})},[...D[16]||(D[16]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:D[6]||(D[6]=i.withModifiers(()=>{},["prevent"])),onClick:D[7]||(D[7]=M=>{var L;return(L=s.value)==null?void 0:L.toggleInlineCode()})},[...D[17]||(D[17]=[i.createElementVNode("span",null,"</>",-1)])],32),D[18]||(D[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:D[8]||(D[8]=i.withModifiers(()=>{},["prevent"])),onClick:D[9]||(D[9]=M=>{var L;return(L=s.value)==null?void 0:L.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:D[10]||(D[10]=i.withModifiers(()=>{},["prevent"])),onClick:D[11]||(D[11]=M=>{var L;return(L=s.value)==null?void 0:L.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:b},[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:k,onKeydown:E},null,8,["initial-markdown","placeholder"]),i.unref(u)&&i.unref(f).length>0?(i.openBlock(),i.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:i.normalizeStyle({top:i.unref(d).top+"px",left:i.unref(d).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f),(M,L)=>(i.openBlock(),i.createElementBlock("li",{key:M.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":L===i.unref(p)}),onMousedown:D[12]||(D[12]=i.withModifiers(()=>{},["prevent"])),onClick:P=>i.unref(m)(M.name)}," @"+i.toDisplayString(M.name),43,pde))),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:D[13]||(D[13]=i.withModifiers(()=>{},["prevent"])),onClick:T},[i.createVNode(ke,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const mde={class:"ao-comment"},hde={class:"ao-comment__created-at"},gde={class:"ao-comment__body"},vde={class:"ao-comment__content-wrapper"},yde={key:0,class:"ao-comment__footer"},_de=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 h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=i.ref(!1),a=i.ref(n.content),l=i.ref(null),c=i.computed(()=>{const h=n.editedAt&&Fi(n.editedAt),g=Fi(n.createdAt),y=new Date,C=h??g;return C&&z7(C,y)});i.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,i.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return i.openBlock(),i.createElementBlock("li",mde,[i.createElementVNode("span",hde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(Jn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("div",gde,[i.createElementVNode("div",vde,[s.value?(i.openBlock(),i.createBlock(Ig,{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(wm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",yde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(he,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(he,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const Cde={class:"ao-comments__new"},bde={key:0,class:"ao-comments__list"},kde=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)=>My(Fi(f.createdAt),Fi(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 m;if(!f.trim())return;const p=xd(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=xd(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}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",Cde,[i.createVNode(Ig,{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",bde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(_de,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0)],512))}});const wde=["aria-label"],Ede={class:"ao-file-preview__actions"},Sde=["aria-label"],xde={key:0,class:"ao-file-preview__loading"},Tde=["src","alt"],Ade=["src","title"],Nde={key:3,class:"ao-file-preview__fallback"},Dde={class:"ao-file-preview__fallback-title"},Mde={class:"ao-file-preview__fallback-filename"},$de=["aria-label"],Bde={key:2,class:"ao-file-preview__info"},Ode=["title"],Lde={key:0,class:"ao-file-preview__info-counter"},Ide={key:3,class:"ao-file-preview__info"},Pde={class:"ao-file-preview__info-counter"},Fde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){$n();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 N,I;return((I=(N=c.value)==null?void 0:N.mimeType)==null?void 0:I.toLowerCase())??""}),p=i.computed(()=>{var N;return((N=c.value)==null?void 0:N.name)??""}),m=i.computed(()=>{var N;return((N=p.value.split(".").pop())==null?void 0:N.toLowerCase())??""}),h=i.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=i.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=i.computed(()=>h.value||g.value),C=i.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){r.value&&(URL.revokeObjectURL(r.value),r.value=null)}async function _(){const N=c.value,I=++l;if(v(),a.value=!1,s.value=!1,!N||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const A=await n.loadPreview(N);if(I!==l)return;if(!A.size)throw new Error("Empty file received");r.value=URL.createObjectURL(A)}catch(A){if(I!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{I===l&&(s.value=!1)}}function k(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function b(){const N=c.value;if(!(N!=null&&N.url))return;const I=document.createElement("a");I.href=N.url,I.download=N.name,I.target="_blank",I.rel="noopener noreferrer",document.body.appendChild(I),I.click(),I.remove()}function E(){v(),a.value=!0}function T(){++l,v(),o("close")}function x(N){switch(N.key){case"Escape":T();break;case"ArrowLeft":k();break;case"ArrowRight":w();break}}return i.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),i.onMounted(()=>{document.addEventListener("keydown",x)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",x),v()}),(N,I)=>{var A,D,M,L,P,j;return i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(A=c.value)==null?void 0:A.name},[i.createElementVNode("div",Ede,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(ke,{name:"DownloadRounded",size:"sm"}),I[2]||(I[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(ke,{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":N.$t("activity.attachment.preview.previous"),onClick:i.withModifiers(k,["stop"])},[i.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Sde)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:I[1]||(I[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",xde,[...I[3]||(I[3]=[i.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),i.createElementVNode("span",null,"Loading...",-1)])])):h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("img",{key:1,src:r.value,alt:(D=c.value)==null?void 0:D.name,class:"ao-file-preview__image",onError:E},null,40,Tde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:I[0]||(I[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("iframe",{src:r.value,title:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__pdf"},null,8,Ade)])):(i.openBlock(),i.createElementBlock("div",Nde,[i.createVNode(ke,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Dde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Mde,i.toDisplayString((L=c.value)==null?void 0:L.name),1),i.createVNode(he,{variant:"solid",color:"primary",size:"sm",label:N.$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":N.$t("activity.attachment.preview.next"),onClick:i.withModifiers(w,["stop"])},[i.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,$de)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Bde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(P=c.value)==null?void 0:P.name},i.toDisplayString((j=c.value)==null?void 0:j.name),9,Ode),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Lde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Ide,[i.createElementVNode("span",Pde,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,wde)])}}});const Pg=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(he,{color:t.modelValue?t.color:i.unref(Gc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Vde=i.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const Rde={class:"toggle-wrapper"};function zde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",Rde,[i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},i.toDisplayString(t.leftLabel),3),i.createElementVNode("button",{class:i.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},i.toDisplayString(t.rightLabel),3)])}const Ude=ne(Vde,[["render",zde],["__scopeId","data-v-40c1f714"]]),qde=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 Hde=["onClick"],jde={class:"tab-button__label"},Wde={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",jde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",Wde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Hde))),128))],2)}const hs=ne(qde,[["render",Zde],["__scopeId","data-v-3d268d7b"]]),Kde={class:"ao-rich-text-editor"},Gde={class:"ao-rich-text-editor__toolbar"},Yde=["value"],Jde={class:"ao-rich-text-editor__actions"},Xde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=i.ref(null);function r(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(i.openBlock(),i.createElementBlock("div",Kde,[i.createVNode(Lg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Gde,[i.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:r},[...u[12]||(u[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,Yde),u[17]||(u[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:u[0]||(u[0]=i.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.toggleBold()})},[...u[13]||(u[13]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=i.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=f=>{var p;return(p=o.value)==null?void 0:p.toggleItalic()})},[...u[14]||(u[14]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=i.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=f=>{var p;return(p=o.value)==null?void 0:p.toggleStrikethrough()})},[...u[15]||(u[15]=[i.createElementVNode("s",null,"S",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=i.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=f=>{var p;return(p=o.value)==null?void 0:p.toggleInlineCode()})},[...u[16]||(u[16]=[i.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[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:u[8]||(u[8]=i.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=f=>{var p;return(p=o.value)==null?void 0:p.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=i.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=f=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),i.createElementVNode("div",Jde,[i.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Qde={class:"ao-activity-details"},e1e={class:"ao-activity-details__main"},t1e={class:"ao-activity-details__header"},n1e={key:1,class:"ao-activity__category"},o1e={key:2,class:"ao-activity-details__created-by"},r1e={class:"ao-feed__activity-details__header"},i1e={key:0,class:"ao-field ao-feed__activity-details__project"},s1e={class:"ao-field__label"},a1e={key:1,class:"ao-field ao-feed__activity-details__project"},l1e={class:"ao-field__label"},c1e={class:"ao-activity-details__content"},u1e={class:"ao-activity-details__tab-content"},d1e={class:"ao-fieldset"},f1e={class:"ao-field__row"},p1e={class:"ao-activity-details__tab-content"},m1e={class:"ao-fieldset"},h1e={class:"ao-fieldset__body"},g1e={class:"ao-activity-details__tab-content"},v1e={key:0,class:"ao-fieldset"},y1e={class:"ao-activity-details__aside"},_1e={class:"ao-activity-details__close-button"},C1e={class:"ao-activity-details__aside-section"},b1e={class:"ao-field__label"},k1e={key:0,class:"ao-activity-details__aside-section"},w1e={class:"ao-field"},E1e={class:"ao-field__label"},S1e={key:1,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},T1e={class:"ao-field__label"},A1e={class:"ao-field ao-field--multiselect"},N1e={class:"assignee-inline"},D1e={class:"ao-field__label"},M1e={key:1,class:"ao-sprint-form"},$1e={class:"ao-sprint-form__field"},B1e={class:"ao-field__label"},O1e=["placeholder"],L1e={class:"ao-sprint-form__field"},I1e={class:"ao-field__label"},P1e={class:"ao-sprint-form__field"},F1e={class:"ao-field__label"},V1e={class:"ao-sprint-form__actions"},R1e={class:"ao-activity-details__aside-section"},z1e={class:"ao-field ao-field--multiselect"},U1e={class:"assignee-inline"},q1e={class:"ao-field__label"},H1e={class:"ao-activity-details__aside-section"},j1e={key:0,class:"ao-field__row"},W1e={class:"ao-field"},Z1e={class:"ao-field__label"},K1e=["readonly"],G1e={class:"ao-activity-details__aside-section"},Y1e={class:"ao-field__row"},J1e={class:"ao-field ao-field--inline"},X1e={class:"ao-field__label"},Q1e=["readonly"],efe={class:"ao-field__row"},tfe={class:"ao-field ao-field--inline"},nfe={class:"ao-field__label"},ofe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},rfe={class:"ao-activity-details__aside-section"},ife={class:"ao-fieldset ao-activity-details__aside-section"},sfe={class:"ao-fieldset__title"},afe={class:"ao-fieldset__body"},lfe={class:"ao-field__row"},cfe={class:"ao-field ao-field--multiselect"},ufe={class:"ao-field__label"},dfe={class:"ao-field__row"},ffe={class:"ao-field ao-field--multiselect"},pfe={class:"ao-field__label"},ed=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:r}=$n(),s=i.ref("description"),a=i.computed(()=>{var B,K;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((B=n.activity.tasks)==null?void 0:B.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((K=n.activity.comments)==null?void 0:K.length)??0}]}),l=i.computed(()=>{var B;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((B=n.activity.assignee)==null?void 0:B.id):!1}),c=i.ref(!1),u=i.ref(null),d=B=>{o("update:activity",{id:n.activity.id,name:B})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=B=>{o("update:activity",{id:n.activity.id,description:B}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const g=i.computed({get(){return n.activity.estimation??0},set(B){o("update:activity",{id:n.activity.id,estimation:B})}}),y=i.computed({get(){var K;const B=(K=n.timeTrackingData)==null?void 0:K[n.activity.id];return(B==null?void 0:B.timeSpent)??0},set(){}}),C=i.computed(()=>{var K;return((K=n.activity.project)==null?void 0:K.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var K;const B=(K=n.activity.project)==null?void 0:K.estimationUnit;return Da(y.value,B)}),_=i.computed({get(){return n.activity.important??!1},set(B){o("update:activity",{id:n.activity.id,important:B})}});i.computed({get(){return n.activity.private??!1},set(B){o("update:activity",{id:n.activity.id,private:B})}});const k=i.computed({get(){return n.activity.deadline},set(B){o("update:activity",{id:n.activity.id,deadline:B})}}),w=i.computed({get(){return n.activity.activityType!=="dev"},set(B){var ue;const K=B?"standard":"dev";n.activity.activityType!=="dev"&&K==="dev"&&!n.activity.devStatus&&((ue=n.devStatuses)!=null&&ue.length)?o("update:activity",{id:n.activity.id,type:K,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:K})}}),b=i.computed(()=>{var B;return((B=n.devStatuses)==null?void 0:B.map(K=>({value:K.id,label:K.name})))??[]}),E=i.computed({get(){var B;return(B=n.activity.devStatus)==null?void 0:B.id},set(B){o("update:activity",{id:n.activity.id,statusDevId:B})}}),T=i.computed(()=>{var K;const B=(K=n.activity.project)==null?void 0:K.id;return B?n.sprints.filter(ue=>ue.projectId===B).map(ue=>({value:ue.id,label:ue.name,startDate:ue.startDate})).sort((ue,Ke)=>ue.startDate&&Ke.startDate?new Date(ue.startDate).getTime()-new Date(Ke.startDate).getTime():ue.label.localeCompare(Ke.label)):[]}),x=i.computed(()=>{var B;return(B=n.activity.sprint)==null?void 0:B.id}),N=B=>{o("update:activity",{id:n.activity.id,sprintId:B})},I=()=>{o("update:activity",{id:n.activity.id,sprintId:null})},A=i.computed(()=>{var B;return!((B=n.activity.project)!=null&&B.id)}),D=i.ref(!1),M=i.ref(""),L=i.ref(""),P=i.ref(""),j=i.computed(()=>{var ue;const B=(ue=n.activity.project)==null?void 0:ue.id;return B?`Sprint ${n.sprints.filter(Ke=>Ke.projectId===B).length+1}`:"Sprint 1"}),V=i.computed(()=>{var Ye;if(!((Ye=n.activity.project)==null?void 0:Ye.id))return!1;const K=M.value.trim(),ue=L.value,Ke=P.value;return!K||!ue||!Ke?!1:new Date(Ke)>=new Date(ue)}),q=()=>{var K;(K=n.activity.project)!=null&&K.id&&(D.value=!0,M.value=j.value,L.value="",P.value="")},F=()=>{D.value=!1,M.value="",L.value="",P.value=""},Y=()=>{var K;if(!V.value)return;const B=(K=n.activity.project)==null?void 0:K.id;B&&(o("createSprint",{projectId:B,name:M.value.trim(),startDate:L.value,endDate:P.value}),D.value=!1,M.value="",L.value="",P.value="")},ee=i.computed(()=>n.templateActivities.filter(B=>B.id!==n.activity.id).map(B=>({label:B.name,value:B.id}))),we=i.computed({get(){var B;return(B=n.activity.dependingOn)==null?void 0:B.map(K=>K.id)},set(B){B&&o("update:activity",{id:n.activity.id,dependingOn:B})}}),se=i.computed(()=>ee.value.map(B=>{var K;return{...B,disabled:(K=n.activity.blocking)==null?void 0:K.some(ue=>ue.id===B.value)}})),ie=i.computed({get(){var B;return(B=n.activity.blocking)==null?void 0:B.map(K=>K.id)},set(B){B&&o("update:activity",{id:n.activity.id,blocking:B})}}),z=i.computed(()=>ee.value.map(B=>{var K;return{...B,disabled:(K=n.activity.dependingOn)==null?void 0:K.some(ue=>ue.id===B.value)}})),oe=B=>{o("addSubtask",B)},ye=B=>{o("updateSubtask",B)},Be=B=>{o("deleteSubtask",B)};function H(){n.userId?pe.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function le(B){pe.value=[B]}const fe=i.computed(()=>{var K;const B=new Map;return(K=n.users)==null||K.forEach(ue=>{B.has(ue.id)||B.set(ue.id,ue)}),Array.from(B.values()).map(ue=>({label:`${ue.firstName} ${ue.lastName}`,value:ue.id,avatar:ue.avatarUrl}))}),pe=i.computed({get(){var B,K;return(B=n.activity.assignee)!=null&&B.id?[(K=n.activity.assignee)==null?void 0:K.id]:[]},set(B){o("update:activity",{id:n.activity.id,assigneeId:B[0]??null})}}),Ce=B=>{o("addFiles",{activityId:n.activity.id,files:B})},We=B=>{Ce(B)},_e=B=>{o("removeFile",{activityId:n.activity.id,file:B})},Pe=i.computed(()=>n.projects.map(B=>({value:B.id,label:B.name}))),Ve=i.computed(()=>{var K,ue,Ke;const B=(Ke=(ue=(K=n.activity)==null?void 0:K.project)==null?void 0:ue.phases)==null?void 0:Ke.reduce((Ye,Ct)=>[...Ye,...Ct.milestones],[]);return B==null?void 0:B.map(Ye=>({value:Ye.id,label:Ye.name}))}),De=B=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:B})},Ge=B=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:B})},ht=i.computed(()=>{var B;return(B=n.statuses)==null?void 0:B.map(K=>({value:K.id,label:K.name}))}),vn=B=>{o("update:activity",{id:n.activity.id,statusId:B})},Ln=B=>{o("update:activity",{id:n.activity.id,statusDevId:B})},Re=B=>{o("addComment",{...B,activityId:n.activity.id})},gt=B=>{o("updateComment",B)},ot=B=>{o("removeComment",B)},St=i.computed(()=>{var B,K;return((B=n.activity.createdBy)==null?void 0:B.firstName)&&((K=n.activity.createdBy)==null?void 0:K.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),nn=i.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function yn(){const B=window.location.origin,K=n.activity.slug,ue=`${B}/activity-feed/slug/${K}`;navigator.clipboard.writeText(ue).then(()=>{console.log(`Link copied to clipboard: ${ue}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(B,K)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode($a,{onClose:K[13]||(K[13]=ue=>B.$emit("close"))},{default:i.withCtx(()=>{var ue,Ke,Ye,Ct;return[i.createElementVNode("div",Qde,[i.createElementVNode("div",e1e,[i.createElementVNode("div",t1e,[t.activity.slug?(i.openBlock(),i.createBlock(Li,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:yn},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",n1e,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(_t,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),St.value?(i.openBlock(),i.createElementBlock("div",o1e,i.toDisplayString(B.$t("activity.createdBy.label",{name:St.value,date:nn.value})),1)):i.createCommentVNode("",!0),i.createElementVNode("div",r1e,[Pe.value?(i.openBlock(),i.createElementBlock("label",i1e,[i.createElementVNode("span",s1e,i.toDisplayString(B.$t("activity.project.label")),1),i.createVNode(At,{options:Pe.value,value:(ue=t.activity.project)==null?void 0:ue.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:De},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),Ve.value?(i.openBlock(),i.createElementBlock("label",a1e,[i.createElementVNode("span",l1e,i.toDisplayString(B.$t("activity.milestone.label")),1),i.createVNode(At,{options:Ve.value,value:(Ke=t.activity.milestone)==null?void 0:Ke.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Ge},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(B.$slots,"header")]),i.createElementVNode("div",c1e,[i.createVNode(hs,{modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=xe=>s.value=xe),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",u1e,[i.createElementVNode("fieldset",d1e,[i.createElementVNode("div",f1e,[i.createVNode(Z9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:Ce,onRemove:_e,onPreview:K[1]||(K[1]=xe=>u.value=xe)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Xde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:We},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(wm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",p1e,[i.createElementVNode("fieldset",m1e,[i.createElementVNode("div",h1e,[i.createVNode(L9,{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:oe,onUpdate:ye,onDelete:Be},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",g1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",v1e,[i.createVNode(kde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Re,onUpdateComment:gt,onRemoveComment:ot},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",y1e,[i.createElementVNode("div",_1e,[i.createVNode(ke,{name:"CloseRounded",onClick:K[2]||(K[2]=xe=>B.$emit("close"))})]),i.createElementVNode("div",C1e,[i.createElementVNode("span",b1e,i.toDisplayString(B.$t("activity.type.label")),1),i.createVNode(Ude,{"is-left":w.value,"onUpdate:isLeft":K[3]||(K[3]=xe=>w.value=xe),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),ht.value?(i.openBlock(),i.createElementBlock("div",k1e,[i.createElementVNode("label",w1e,[i.createElementVNode("span",E1e,i.toDisplayString(B.$t("activity.status.label")),1),i.createVNode(At,{class:"ao-activity-details__multiselect",options:ht.value,value:(Ye=t.activity.status)==null?void 0:Ye.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:vn},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),t.activity.activityType==="dev"&&(b.value.length||T.value.length)?(i.openBlock(),i.createElementBlock("div",S1e,[i.createElementVNode("label",x1e,[i.createElementVNode("span",T1e,i.toDisplayString(B.$t("activity.devStatus.label")),1),i.createVNode(At,{class:"ao-activity-details__multiselect",options:b.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Ln},null,8,["options","value","disabled","caret"])]),i.createElementVNode("div",A1e,[i.createElementVNode("div",N1e,[i.createElementVNode("span",D1e,i.toDisplayString(B.$t("activity.sprint.label")),1),(Ct=t.activity.project)!=null&&Ct.id&&l.value&&!D.value?(i.openBlock(),i.createBlock(he,{key:0,label:B.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:q},null,8,["label"])):i.createCommentVNode("",!0)]),D.value?(i.openBlock(),i.createElementBlock("div",M1e,[i.createElementVNode("div",$1e,[i.createElementVNode("label",B1e,i.toDisplayString(B.$t("activity.sprint.nameLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":K[4]||(K[4]=xe=>M.value=xe),class:"ao-field__input",type:"text",placeholder:B.$t("activity.sprint.namePlaceholder")},null,8,O1e),[[i.vModelText,M.value]])]),i.createElementVNode("div",L1e,[i.createElementVNode("label",I1e,i.toDisplayString(B.$t("activity.sprint.startDateLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":K[5]||(K[5]=xe=>L.value=xe),class:"ao-field__input",type:"date"},null,512),[[i.vModelText,L.value]])]),i.createElementVNode("div",P1e,[i.createElementVNode("label",F1e,i.toDisplayString(B.$t("activity.sprint.endDateLabel")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":K[6]||(K[6]=xe=>P.value=xe),class:"ao-field__input",type:"date"},null,512),[[i.vModelText,P.value]])]),i.createElementVNode("div",V1e,[i.createVNode(he,{type:"button",variant:"ghost",label:B.$t("common.cancel"),onClick:F},null,8,["label"]),i.createVNode(he,{type:"button",color:"primary",variant:"solid",label:B.$t("common.create"),disabled:!V.value,onClick:Y},null,8,["label","disabled"])])])):(i.openBlock(),i.createBlock(At,{key:0,class:"ao-activity-details__multiselect",options:T.value,value:x.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:A.value||!l.value,placeholder:A.value?B.$t("activity.sprint.selectProjectFirst"):B.$t("activity.sprint.placeholder"),caret:l.value,onSelect:N,onClear:I,onDeselect:I},null,8,["options","value","disabled","placeholder","caret"]))]),i.renderSlot(B.$slots,"sprintModal")])):i.createCommentVNode("",!0),i.createElementVNode("div",R1e,[i.createElementVNode("div",z1e,[i.createElementVNode("div",U1e,[i.createElementVNode("span",q1e,i.toDisplayString(B.$t("activity.assignee.label")),1),i.createVNode(he,{label:B.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:H},null,8,["label"])]),i.createVNode(At,{modelValue:pe.value,"onUpdate:modelValue":K[7]||(K[7]=xe=>pe.value=xe),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:fe.value,"close-on-select":!0,searchable:!0,placeholder:B.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:le},{tag:i.withCtx(({option:xe,handleTagRemove:xo})=>[i.createVNode(Jn,{"user-name":xe.label,"avatar-url":xe.avatar,"is-closable":!0,onClose:$t=>xo(xe,$t)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",H1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",j1e,[i.createElementVNode("label",W1e,[i.createElementVNode("span",Z1e,i.toDisplayString(B.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":K[8]||(K[8]=xe=>k.value=xe),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,K1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",G1e,[i.createElementVNode("div",Y1e,[i.createElementVNode("label",J1e,[i.createElementVNode("span",X1e,i.toDisplayString(B.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":K[9]||(K[9]=xe=>g.value=xe),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Q1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",efe,[i.createElementVNode("label",tfe,[i.createElementVNode("span",nfe,i.toDisplayString(B.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",ofe,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",rfe,[i.createVNode(Pg,{modelValue:_.value,"onUpdate:modelValue":K[10]||(K[10]=xe=>_.value=xe),modelModifiers:{lazy:!0},label:B.$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",ife,[i.createElementVNode("div",sfe,[i.createVNode(ke,{name:"FlowsheetOutlineRounded"}),i.createVNode(_t,{level:4,title:B.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",afe,[i.createElementVNode("div",lfe,[i.createElementVNode("label",cfe,[i.createElementVNode("span",ufe,i.toDisplayString(B.$t("activity.dependingOn.label")),1),i.createVNode(At,{modelValue:we.value,"onUpdate:modelValue":K[11]||(K[11]=xe=>we.value=xe),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:se.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",dfe,[i.createElementVNode("label",ffe,[i.createElementVNode("span",pfe,i.toDisplayString(B.$t("activity.blocking.label")),1),i.createVNode(At,{modelValue:ie.value,"onUpdate:modelValue":K[12]||(K[12]=xe=>ie.value=xe),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:z.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(B.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Fde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":K[14]||(K[14]=ue=>u.value=ue),onClose:K[15]||(K[15]=ue=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const mfe=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||qe.ACTIVITIES),s=i.computed({get(){return r.value},set(v){r.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=i.computed(()=>Object.values(qe)),l=i.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[qe.ACTIVITIES]:n.templateActivities,[qe.MILESTONES]:n.templateMilestones,[qe.PHASES]:n.templatePhases}[r.value])==null?void 0:_.map(k=>({value:k.id,label:k.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(v){o("update:rule",{...n.rule,comparator:v})}}),f=i.computed(()=>Object.values(hp)),p=i.toRef(n.rule.trigger),m=i.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=i.computed(()=>Object.values(gp)),g=i.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=i.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=i.computed(()=>Object.values(vp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(so),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(so),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(so),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(so),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=k=>d.value=k),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=k=>g.value=k),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(so),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=k=>y.value=k),options:C.value},null,8,["modelValue","options"]),i.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=k=>v.$emit("close"))})]),_:1}))}});const hfe={class:"ao-template-rules__body"},gfe={class:"ao-template-rules__list"},vfe=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($a,null,{header:i.withCtx(()=>[i.createVNode(_t,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",hfe,[i.createElementVNode("ul",gfe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(mfe,{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(bo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Wo(t,e,n){const o=t.length,r=t.at(-1),s=r?at.LexoRank.parse(r.rank).genNext():at.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const yfe={key:0,class:"ao-template-details"},_fe={class:"ao-template-details__body"},Cfe={class:"ao-template-details__cols"},bfe={class:"ao-template-details__col"},kfe={class:"ao-list__footer"},wfe={class:"ao-template-details__col"},Efe={class:"ao-template-details__col"},Fg=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}=$n(),o=t,r=e,s=i.computed(()=>{var V;return(V=o.templates)==null?void 0:V.find(q=>q.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,q)=>{a.value&&jn(V,q)});const l=i.computed(()=>{var V,q;return(q=(V=s==null?void 0:s.value)==null?void 0:V.phases)==null?void 0:q.find(F=>F.id===o.phaseId)});i.watch(()=>{var V;return(V=l.value)==null?void 0:V.milestones},(V,q)=>{a.value&&jn(V,q)});const c=i.computed(()=>{var V,q;return(q=(V=l.value)==null?void 0:V.milestones)==null?void 0:q.find(F=>F.id===o.milestoneId)});i.watch(()=>{var V;return(V=c.value)==null?void 0:V.activities},(V,q)=>{a.value&&jn(V,q)});const u=i.computed(()=>{var V,q;return((q=(V=s.value)==null?void 0:V.phases)==null?void 0:q.reduce((F,Y)=>{const ee=Y.milestones||[];return[...F,...ee]},[]))||[]}),d=i.computed(()=>{var V,q;return((q=(V=s.value)==null?void 0:V.phases)==null?void 0:q.reduce((F,Y)=>{const we=(Y.milestones||[]).reduce((se,ie)=>ie.activities?[...se,...ie.activities]:se,[]);return[...F,...we]},[]))||[]}),f=i.computed(()=>{var V,q;return(q=(V=c.value)==null?void 0:V.activities)==null?void 0:q.find(F=>F.id===o.activityId)}),p=i.computed(()=>{var V;return((V=s.value)==null?void 0:V.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:V,rank:q}=Wo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:qe.PHASES,templateId:o.templateId,item:{name:V,rank:q}})},h=V=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:qe.TEMPLATES,data:{name:V}})},g=V=>{r("removeItem",{itemType:qe.PHASES,templateId:o.templateId,data:{id:V}})},y=(V,q)=>{r("updateItem",{templateId:o.templateId,id:V,itemType:qe.PHASES,data:{name:q}})},C=V=>{r("updateItem",V)},v=V=>{if(!l.value)return;const{name:q,rank:F}=Wo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:qe.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,item:{name:q,rank:F,phaseId:V.phaseId}})},_=V=>{r("removeItem",{itemType:qe.MILESTONES,templateId:o.templateId,phaseId:V.phaseId,data:{id:V.id}})},k=V=>{const{id:q,...F}=V;r("updateItem",{itemType:qe.MILESTONES,id:q,templateId:o.templateId,data:F})},w=V=>{const{milestoneId:q}=V;if(!c.value)return;const{name:F,rank:Y}=Wo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:qe.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:F,rank:Y,milestoneId:q}})},b=V=>{var q,F;r("removeItem",{itemType:qe.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(F=c.value)==null?void 0:F.id,data:{id:V.id}})},E=V=>{const{id:q,...F}=V;r("updateItem",{itemType:qe.ACTIVITIES,id:q,templateId:o.templateId,data:F})},T=i.ref(!1),x=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},I=V=>{r("removeRule",{id:V,templateId:o.templateId})},A=V=>{var q;if(V.moved){const F=es(V,((q=s.value)==null?void 0:q.phases)??[]);r("updateItem",{itemType:qe.PHASES,id:V.moved.element.id,templateId:o.templateId,data:{rank:F}})}},D=V=>{!l.value||!c.value||!f.value||r("addItem",{type:qe.TASKS,activityId:V.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:V})},M=V=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:qe.TASKS,id:V.id,templateId:o.templateId,data:V})},L=V=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:qe.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:V})},P=V=>{r("addFiles",V)},j=V=>{r("removeFile",V)};return(V,q)=>{var F,Y,ee,we,se,ie;return s.value?(i.openBlock(),i.createElementBlock("div",yfe,[i.createVNode(ns,{"can-go-back":!0,onGoBack:q[1]||(q[1]=z=>V.$router.push({name:i.unref(zo).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(_t,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=z=>{h(z)})},null,8,["title"])]),_:1}),i.createElementVNode("div",_fe,[i.createElementVNode("ol",Cfe,[i.createElementVNode("li",bfe,[i.createVNode(i.unref(Co),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(_t,{title:V.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:z})=>{var oe;return[i.createVNode(Q_,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((oe=l.value)==null?void 0:oe.id)===z.id,"is-draggable":!0,onClick:ye=>V.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":ye=>{y(z.id,ye)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",kfe,[i.createVNode(bo,{"icon-name":"AddBoxOutlineRounded",label:V.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",wfe,[l.value?(i.openBlock(),i.createBlock(nC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(F=c.value)==null?void 0:F.id,onAddMilestone:v,onUpdateMilestone:k,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",Efe,[l.value&&c.value?(i.openBlock(),i.createBlock(iC,{key:0,"template-id":t.templateId,"phase-id":(Y=l.value)==null?void 0:Y.id,milestone:c.value,"activity-id":(ee=f.value)==null?void 0:ee.id,onAddActivity:w,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(ed,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(we=l.value)==null?void 0:we.name} / ${(se=c.value)==null?void 0:se.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,sprints:[],"onUpdate:activity":q[2]||(q[2]=z=>{f.value&&E(z)}),onClose:V.$router.back,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:L,onAddFiles:P,onRemoveFile:j},{default:i.withCtx(z=>[i.renderSlot(V.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(z)))]),_: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(vfe,{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:x,onAddRule:N,onRemoveRule:I},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const Sfe={class:"ao-card__content"},xfe={key:0,class:"ao-card__header"},Tfe={class:"ao-card__body"},Afe={key:1,class:"ao-card__footer"},dl=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",Sfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",xfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",Tfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",Afe,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const fl=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 Do(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=Dfe(t):/rgb/.test(t)?e=dp(t):typeof t=="string"?e=dp(`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}=Mfe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function td(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 Zc(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 Nfe({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 Dfe(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 dp(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 Mfe({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 nd=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),Zc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Zc("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 $fe={ref:"canvasSaturation"};function Bfe(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",$fe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}nd.render=Bfe;nd.__file="src/color/Saturation.vue";var od=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 Ofe={ref:"canvasHue"};function Lfe(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",Ofe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}od.render=Lfe;od.__file="src/color/Hue.vue";var rd=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=td(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Zc("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 Ife={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",Ife,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}rd.render=Pfe;rd.__file="src/color/Alpha.vue";var id=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=td(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 Ffe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}id.render=Ffe;id.__file="src/color/Preview.vue";var sd=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,m,h]=d.data;h=parseFloat((h/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}, ${m}, ${h})`,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,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const Vfe=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),Rfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},zfe=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 Ufe(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))},[Vfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",Rfe,[zfe])):i.createCommentVNode("v-if",!0)])}sd.render=Ufe;sd.__file="src/color/Sucker.vue";var ad=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 qfe={class:"color-type"},Hfe={class:"name"};function jfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",qfe,[i.createVNode("span",Hfe,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]])])}ad.render=jfe;ad.__file="src/color/Box.vue";var ld=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=td(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 Wfe={class:"colors"},Zfe={key:0,class:"colors history"};function Kfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",Wfe,[(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",Zfe,[(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)])}ld.render=Kfe;ld.__file="src/color/Colors.vue";var Ar=i.defineComponent({components:{Saturation:nd,Hue:od,Alpha:rd,Preview:id,Sucker:sd,Box:ad,Colors:ld},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 Nfe(this.rgba,!0)}},created(){Object.assign(this,Do(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}=Do(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}=Do(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}=Do(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}=Do(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}=Do(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}=Do(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 Gfe={class:"color-set"};function Yfe(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",Gfe,[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)}Ar.render=Yfe;Ar.__file="src/color/ColorPicker.vue";Ar.install=t=>{t.component(Ar.name,Ar)};const Jfe={class:"color-picker-wrapper"},pl=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 h=>{a.value=h,r.value=!0,await i.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,k=v<C&&_>C;console.log("pickerHeight = "+C),l.value=k?g.top-C-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=h=>{const g=h.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,h=>{r.value||(p.value=h)});const p=i.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:v}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${v})`};return(h,g)=>(i.openBlock(),i.createElementBlock("div",Jfe,[i.renderSlot(h.$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(Ar),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Xfe={class:"ao-card-project-phase__header"},Qfe={class:"ao-card-project-item__title-line"},epe={key:0,class:"ao-card-project-item-phase__estimation"},tpe={class:"ao-card-project-phase__footer"},npe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ope={class:"ao-card-project-phase__subitem"},rpe={class:"ao-card-project-phase__subitem"},ipe={key:0,class:"ao-card-project-phase__secondary"},spe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},ape=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((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(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(y=>y.status===Ii.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)}),m=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Qfe,[i.createVNode(yt,{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",epe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",tpe,[u.value?(i.openBlock(),i.createElementBlock("div",npe,[i.createElementVNode("div",ope,[i.createVNode(we,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",rpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ipe,[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":y[1]||(y[1]=_=>p.value=_),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",spe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Xfe,[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:y[0]||(y[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 lpe=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 cpe={class:"ao-card-project-milestone__default"},upe={class:"ao-title-with-badge-wrapper"},dpe={class:"ao-card-project-item__title-line"},fpe={key:0,class:"ao-card-project-item-milestone__estimation"},ppe={key:0,class:"ao-card-project-milestone__archive"},mpe={class:"ao-card-project-milestone__activities"},hpe={class:"ao-card-project-milestone__activities-row"},gpe={class:"ao-card-project-milestone__subitem"},vpe={class:"ao-card-project-milestone__subitem"},ype={key:1,class:"ao-card-project-milestone__secondary"},_pe={class:"ao-card-project-milestone__footer"},Cpe={key:1,class:"ao-field ao-card-project-milestone__deadline"},bpe={class:"ao-field__label"},kpe={key:2,class:"ao-card-project-milestone__assignee"},wpe=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((m,h)=>m+(h.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Da(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(m=>Jc(m,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(i.openBlock(),i.createBlock(dl,{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",cpe,[i.createElementVNode("div",upe,[i.createVNode(lpe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",dpe,[i.createVNode(yt,{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",fpe," ("+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",ppe,[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:m[0]||(m[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",mpe,[i.createElementVNode("div",hpe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",gpe,[i.createVNode(we,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",vpe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(fl,{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",ype,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",_pe,[t.important?(i.openBlock(),i.createBlock(we,{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",Cpe,[i.createElementVNode("span",bpe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",kpe,[i.createVNode(Yn,{"user-name":i.unref(Op)(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"},Spe={class:"ao-card-project-item__title-line"},xpe={key:0,class:"ao-card-project-item-phase__estimation"},Tpe={class:"ao-mapping-card-project-phase__footer"},Ape={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Npe={class:"ao-mapping-card-project-phase__subitem"},Dpe={class:"ao-mapping-card-project-phase__subitem"},Mpe={key:0,class:"ao-mapping-card-project-phase__secondary"},$pe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Bpe=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((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(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(y=>y.status===Ii.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)}),m=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Spe,[i.createVNode(yt,{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",xpe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Tpe,[u.value?(i.openBlock(),i.createElementBlock("div",Ape,[i.createElementVNode("div",Npe,[i.createVNode(we,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Dpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Mpe,[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":y[1]||(y[1]=_=>p.value=_),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",$pe,i.toDisplayString(i.unref(Ma)(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:y[0]||(y[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 Ope={class:"ao-project-phase"},Lpe={key:0,class:"ao-project-phase__drag ao-card__drag"},Ipe={key:1,class:"ao-project-phase__col-phase"},Ppe={key:2,class:"ao-mapping-project-phase__col-phase"},Fpe={key:0,class:"ao-project-phase__col-milestones"},Vpe=["title"],Rpe={class:"ao-project-phase__milestones-list-footer"},zpe=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}=Mn(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{Hn(w,b)});const s=w=>{r("updatePhase",{id:o.phase.id,name:w})},a=w=>{r("updatePhase",{id:o.phase.id,deadline:w})},l=w=>{r("updatePhase",w)},c=i.computed(()=>o.phase.milestones.map(w=>v_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=Ho(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=ts(c.value??[]);r("addMilestone",{name:b,rank:E,phaseId:w})},f=w=>{r("updateMilestone",w)},p=w=>{r("archiveMilestone",w)},m=w=>{r("unarchiveMilestone",w)},h=w=>{r("archivePhase",w)},g=w=>{r("unarchivePhase",w)},y=w=>{"added"in w?r("updateMilestone",{id:w.added.element.id,phaseId:o.phase.id,rank:Dr(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Dr(c.value,w.moved.newIndex)})},C=Nr.useRoute(),v=i.computed(()=>C.path.includes("/mapping")),_=i.computed(()=>{var w;return o.phase.id===((w=C.params)==null?void 0:w.phaseId)});i.ref(!1);const k=i.computed(()=>{var w;return o.phase.id!==((w=C.params)==null?void 0:w.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:__(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",Ope,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Lpe,[i.createVNode(we,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",Ppe,[i.createVNode(Bpe,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",Ipe,[i.createVNode(ape,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Fpe,[i.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":_.value}]),title:w.$t("project.milestone.add"),onClick:b[0]||(b[0]=()=>d(t.phase.id))},[i.createVNode(we,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,Vpe)):i.createCommentVNode("",!0),i.createVNode(i.unref(_o),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:y}),{item:i.withCtx(({element:E})=>{var T;return[i.createVNode(wpe,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((T=w.$route.params)==null?void 0:T.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&w.$router.push({name:i.unref(Ie).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},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",Rpe,[t.isEditable?(i.openBlock(),i.createBlock(Co,{key:0,label:w.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:b[1]||(b[1]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Upe={class:"ao-project__phases"},qpe={key:0,class:"ao-project-phase__phases-list-footer"},Hpe={class:"ao-project-phase__col-phase"},cd=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,(m,h)=>{Hn(m,h)});const r=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=es(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(i.openBlock(),i.createElementBlock("div",Upe,[i.createVNode(i.unref(_o),{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(zpe,{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",qpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Hpe,[i.createVNode(Co,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[1]||(h[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const jpe={class:"ao-add-template-modal__form-body"},Wpe={class:"field__row"},Zpe={class:"ao-add-template-modal__form-footer"},Vg=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($a,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(yt,{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",jpe,[i.createElementVNode("div",Wpe,[i.createVNode(xt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Zpe,[i.createVNode(me,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Kpe={class:"ao-save-template-modal__form-body"},Gpe={class:"field__row"},Ype={class:"ao-field ao-field--inline"},Jpe={class:"ao-field__label"},Xpe={class:"ao-save-template-modal__phases"},Qpe={class:"ao-field__label"},eme={class:"ao-save-template-modal__phases-list"},tme=["value"],nme={class:"ao-save-template-modal__form-footer"},Rg=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($a,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(yt,{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",Kpe,[i.createElementVNode("div",Gpe,[i.createElementVNode("label",Ype,[i.createElementVNode("span",Jpe,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",Xpe,[i.createElementVNode("div",Qpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",eme,[(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,tme),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",nme,[i.createVNode(me,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const ome={class:"ao-project"},rme={class:"ao-project__body"},ime=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:{},loadAttachmentPreview:{type:Function}},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}=Mn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:Y}=Ho(o.phases,"phase",n);r("addPhase",{name:F,rank:Y,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),Y=ts(o.phases);r("addPhase",{name:F,rank:Y,projectId:o.project.id})},c=F=>{r("updatePhase",F)},u=F=>{r("archivePhase",F)},d=F=>{r("unarchivePhase",F)},f=F=>{r("copyPhaseToTemplate",F)},p=F=>{r("addMilestone",F)},m=F=>{r("updateMilestone",F)},h=F=>{r("archiveMilestone",F)},g=F=>{r("unarchiveMilestone",F)},y=F=>{r("addActivity",F)},C=F=>{r("update:activity",F)},v=F=>{r("archiveActivity",F)},_=F=>{r("unarchiveActivity",F)},k=F=>{r("addSubtask",F)},w=F=>{r("updateSubtask",F)},b=F=>{r("deleteSubtask",F)},E=i.computed(()=>s.value.flatMap(F=>F.activities)),T=F=>{r("addFiles",F)},x=F=>{r("removeFile",F)},N=F=>{r("addComment",F)},L=F=>{r("updateComment",F)},A=F=>{r("removeComment",F)},D=i.ref(!1),M=i.ref(!1),I=(F,Y)=>{r("applyTemplate",{templateId:F,projectId:Y}),D.value=!1},P=(F,Y)=>{var ie;const ee=(ie=o.templates)==null?void 0:ie.at(-1),Ee=ee?st.LexoRank.parse(ee.rank).genNext():st.LexoRank.middle();r("saveTemplate",{templateName:F,rank:Ee.format(),phaseIds:Y}),M.value=!1},j=Nr.useRouter(),V=i.ref("overview"),q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(V,F=>{F==="feed"?(j.push({name:Ie.feed}),console.log("Navigating to feed...")):F==="dev"?(j.push({name:Ie.dev}),console.log("Navigating to dev...")):F==="overview"?(j.push({name:Ie.project}),console.log("Navigating to feed...")):F==="mapping"&&(j.push({name:Ie.mapping}),console.log("Navigating to feed..."))}),(F,Y)=>{var Ee;const ee=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},F.$attrs),[i.createElementVNode("div",ome,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createVNode(hs,{modelValue:V.value,"onUpdate:modelValue":Y[0]||(Y[0]=ie=>V.value=ie),tabs:q},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:F.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:Y[1]||(Y[1]=ie=>F.$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__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:l},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:Y[2]||(Y[2]=ie=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:Y[3]||(Y[3]=ie=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",rme,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(Ee=t.project)==null?void 0:Ee.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:h,onUnarchiveMilestone:g,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(ee,{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:Y[4]||(Y[4]=ie=>F.$router.push({name:i.unref(Ie).project})),onUpdateMilestone:m,onAddActivity:y,onUpdateActivity:C,onArchiveActivity:v,onUnarchiveActivity:_},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(ee,{name:"modal",activities:E.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,"load-attachment-preview":t.loadAttachmentPreview,"onUpdate:activity":C,onAddSubtask:k,onUpdateSubtask:w,onDeleteSubtask:b,onAddFiles:T,onRemoveFile:x,onAddComment:N,onUpdateComment:L,onRemoveComment:A},{default:i.withCtx(({Component:ie})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ie),null,{default:i.withCtx(se=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(se)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:Y[5]||(Y[5]=ie=>M.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:Y[6]||(Y[6]=ie=>D.value=!1),onApply:I},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const sme={class:"ao-card-feed__header"},ame={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},lme={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},cme={class:"ao-card-feed__body"},ume={key:0,class:"ao-card-feed__breadcrumbs"},dme={class:i.normalizeClass(["ao-card-feed__title-group"])},fme={class:"ao-card-feed__title-line"},pme={key:0,class:"ao-card-feed__slug"},mme={key:1,class:"ao-card-feed__deadline"},hme={class:"ao-card-feed__footer"},gme={class:"ao-card-feed__footer-row"},vme={class:"ao-assignees"},yme={key:0,class:"ao-assignee"},_me={key:0,class:"ao-card-feed__subitems"},Cme={key:0,class:"ao-card-feed__subitem"},bme={class:"ao-card-feed__subitem"},kme={key:1,class:"ao-card-feed__subitem"},wme={class:"ao-card-feed__subitem"},Eme={class:"ao-card-feed__timer-wrapper"},Sme={class:"ao-card-feed__footer-row"},xme={key:0,class:"ao-card-feed__progress-wrapper"},Tme={class:"ao-card-feed__subitem"},Ame={class:"ao-card-feed__subitem"},ud=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(()=>Ma(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}),m=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=i.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(dl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",sme,[r.value?(i.openBlock(),i.createBlock(Li,{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",ame,[t.isPrivate?(i.openBlock(),i.createBlock(we,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(we,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(we,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",lme,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",cme,[l.value?(i.openBlock(),i.createElementBlock("span",ume,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",dme,[i.createElementVNode("div",fme,[t.slug?(i.openBlock(),i.createElementBlock("span",pme,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(yt,{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",mme,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",hme,[i.createElementVNode("div",gme,[i.createElementVNode("ul",vme,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C.id},[C?(i.openBlock(),i.createElementBlock("li",yme,[i.createVNode(Yn,{"user-name":i.unref(Op)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",_me,[t.comments?(i.openBlock(),i.createElementBlock("li",Cme,[i.createVNode(we,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",bme,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",kme,[i.createVNode(we,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",wme,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Eme,[i.createVNode(we,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",Sme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",xme,[i.createElementVNode("div",Tme,[i.createVNode(we,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Ame,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(fl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Nme={class:"ao-project-milestone"},Dme={class:"ao-project-milestone__header"},Mme={class:"ao-project-milestone__header_line"},$me={class:"ao-project-milestone__header_line"},Bme={class:"ao-project-milestone__title"},Ome={key:0,class:"ao-fieldset ao-milestone__fieldset"},Lme={class:"ao-field__row ao-milestone__field-row"},Ime={class:"ao-field ao-field--inline"},Pme={class:"ao-field__row ao-milestone__field-row"},Fme={class:"ao-field ao-milestone__field-multiselect"},Vme={class:"ao-milestone__color-actions"},Rme=["onClick"],zme=["title"],Ume={class:"ao-project-milestone__body"},qme={key:0,class:"ao-project-milestone__footer"},fp=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}=Mn(),o=t,r=e,s=b=>{var E;r("startTimer",b),(E=window.parent)==null||E.postMessage({type:"startTimer",data:b},"*")},a=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(E=>E.id===o.phaseId)}),l=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(E=>E.milestones)}),c=i.computed(()=>{var b;return(b=l.value)==null?void 0:b.find(E=>E.id===o.milestoneId)}),u=i.computed(()=>{var b;return(b=c.value)==null?void 0:b.activities});i.watch(u,(b,E)=>{Hn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=Ho(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},p=()=>{const b=n("template.defaultName.activity",{idx:1}),E=ts(u.value??[]);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},m=b=>{r("updateActivity",b)},h=b=>{u.value&&"moved"in b&&r("updateActivity",{id:b.moved.element.id,rank:Dr(u.value,b.moved.newIndex)})},g=i.computed({get:()=>{var b;return(b=c.value)==null?void 0:b.color},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,color:b})}}),y=i.computed({get:()=>{var b;return((b=c==null?void 0:c.value)==null?void 0:b.deadline)??""},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?Jc(b,o.closedStatus):!1,v=i.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),_=i.computed({get(){var b,E;return(E=(b=c.value)==null?void 0:b.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(b){r("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),k=i.computed({get(){var b;return((b=c.value)==null?void 0:b.important)??!1},set(b){r("updateMilestone",{id:o.milestoneId,important:b})}}),w=(b,E)=>{const T=b.currentTarget;T instanceof HTMLElement&&E(T)};return(b,E)=>{var T;return i.openBlock(),i.createElementBlock("div",Nme,[i.createElementVNode("header",Dme,[i.createElementVNode("div",Mme,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",$me,[i.createElementVNode("div",Bme,[i.createVNode(yt,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Pg,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=x=>k.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Ome,[i.createElementVNode("div",Lme,[i.createElementVNode("label",Ime,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>y.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Pme,[i.createElementVNode("label",Fme,[i.createVNode(xt,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=x=>_.value=x),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:x,handleTagRemove:N})=>[i.createVNode(Yn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:L=>N(x,L)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Vme,[i.createVNode(pl,{color:g.value,"onUpdate:color":E[3]||(E[3]=x=>g.value=x)},{clickable:i.withCtx(({openPicker:x,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:L=>w(L,x)},null,12,Rme)]),_:1},8,["color"]),t.isEditable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-project-milestone__quick-add",title:b.$t("project.activity.add"),onClick:p},[i.createVNode(we,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,zme)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ume,[i.createVNode(i.unref(_o),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:h}),{item:i.withCtx(({element:x})=>{var N,L,A,D,M;return[i.createVNode(ud,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(L=c.value)==null?void 0:L.name,"milestone-color":(A=c.value)==null?void 0:A.color,deadline:x.deadline,important:x.important,users:t.users,assignee:x.assignee,slug:x.slug,comments:(D=x.comments)==null?void 0:D.length,attachments:(M=x.attachments)==null?void 0:M.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":C(x),onClick:I=>b.$router.push({name:i.unref(Ie).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:x.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&x.active?(i.openBlock(),i.createBlock(me,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:i.withModifiers(()=>b.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!x.active?(i.openBlock(),i.createBlock(me,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>b.$emit("unarchiveActivity",{id:x.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",qme,[i.createVNode(Co,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Hme=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=i.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=i.computed(()=>{var C;return(C=n.activities)==null?void 0:C.find(v=>v.id===n.activityId)}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,v)=>{var _,k;return l.value?(i.openBlock(),i.createBlock(ed,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"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:`${(_=r.value)==null?void 0:_.name} / ${(k=a.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:v[0]||(v[0]=w=>o("createSprint",w))},{default:i.withCtx(w=>[i.renderSlot(C.$slots,"default",i.normalizeProps(i.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","onClose"])):i.createCommentVNode("",!0)}}}),jme={class:"ao-col-header"},Wme=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",jme,[i.createVNode(yt,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Li,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Zme(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ea(t){return typeof t=="function"?t():i.unref(t)}const Kme=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gme=t=>t!=null,Oi=()=>{};function Yme(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 Jme(t,e={}){let n,o,r=Oi;const s=l=>{clearTimeout(l),r(),r=Oi};return l=>{const c=Ea(t),u=Ea(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 Xme(t,e=200,n={}){return Yme(Jme(e,n),t)}function ac(t){var e;const n=Ea(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Qme=Kme?window:void 0;function ehe(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function the(t){const e=ehe();return i.computed(()=>(e.value,!!t()))}function nhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Qme,immediate:l=!0}=n,c=the(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=Ea(t);return(Array.isArray(h)?h:[h]).map(ac).filter(Gme)});let d=Oi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,ac(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:ac(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Oi}},{immediate:l,flush:"post"}):Oi,m=()=>{d(),p(),f.value=!1};return Zme(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const ohe={class:i.normalizeClass(["ao-list-kanban"])},rhe={class:"ao-list-kanban__header"},ihe=["title"],she={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ahe={key:1,class:"ao-list-kanban__end"},lhe={key:0,class:"ao-list-kanban__no-more"},che={key:1,class:"ao-list-kanban__divider"},uhe={key:1,class:"ao-list-kanban__footer"},dhe=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","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=>{if("added"in f){const p={id:f.added.element.id,rank:Dr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Dr(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",ohe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",rhe,[t.title?(i.openBlock(),i.createBlock(Wme,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):i.createCommentVNode("",!0),t.showHeaderAdd?(i.openBlock(),i.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[i.createVNode(we,{name:"Add"})],8,ihe)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(_o),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[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:i.withCtx(({element:m})=>{var h,g,y,C,v,_,k,w,b,E;return[i.createVNode(ud,{id:m.id,class:i.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(v=(C=m.milestone)==null?void 0:C.phase)==null?void 0:v.name,"milestone-name":(_=m.milestone)==null?void 0:_.name,"milestone-color":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(b=m.comments)==null?void 0:b.length,attachments:(E=m.attachments)==null?void 0:E.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[T=>a(m)&&c(T),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=T=>f.$emit("startTimer",T))},{secondary:i.withCtx(()=>[a(m)&&m.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:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(m)&&!m.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:m.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",she,[i.createVNode(we,{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",ahe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",lhe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",che)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",uhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(Co,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const fhe={class:"ao-field ao-search-field"},phe=["value","placeholder"],mhe=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=Xme(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,phe),i.createVNode(we,{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 hhe={class:"ao-feed"},ghe={class:"ao-feed__filters"},vhe={class:"ao-feed__body"},Kc=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]}},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","createSprint"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;function s(H,ae){r("toast",H,ae)}const a=i.toRef(o,"activities"),l=i.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=i.computed(()=>o.feedMode==="dev"?a.value.filter(H=>H.activityType==="dev"):a.value),u=async(H,ae)=>{await r("selectActivity",H,ae)},d=i.ref({}),f=i.ref(!1),p=i.ref(!1),m=i.computed(()=>o.project?"milestone":"project");i.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([H,ae,fe,he],[ke,Ve])=>{const _e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(H.map(Pe=>[Pe.id,ae.filter(Ze=>{const De=Ze[_e];return(De==null?void 0:De.id)===Pe.id})])),fe&&!f.value?(u(fe,null),f.value=!0):he&&!f.value&&(u(null,he),f.value=!0),p.value&&Hn(ae,Ve)},{immediate:!0});const h=i.computed(()=>{var H;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((H=o.selectedActivity.milestone.phase)==null?void 0:H.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=H=>{var Pe;const ae=o.feedMode==="dev"?o.activities.filter(Ze=>Ze.activityType==="dev"):o.activities,fe=ae==null?void 0:ae.at(-1),he=fe?st.LexoRank.parse(fe.rank).genNext():st.LexoRank.middle(),ke=((Pe=o.activities)==null?void 0:Pe.length)??0,Ve=o.feedMode==="dev",_e={name:n("activity.defaultName",{idx:ke+1}),rank:he.format(),...Ve?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(_e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(_e.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",_e)},y=H=>{var Pe,Ze;const ae=o.feedMode==="dev"?"devStatus":"status",fe=((Pe=o.activities)==null?void 0:Pe.filter(De=>{const Ge=De[ae];return(Ge==null?void 0:Ge.id)===H.id}))??[],he=ts(fe),ke=((Ze=o.activities)==null?void 0:Ze.length)??0,Ve=o.feedMode==="dev",_e={name:n("activity.defaultName",{idx:ke+1}),rank:he,...Ve?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(_e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(_e.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",_e)},C=(H,ae)=>{p.value=!1,r("update:filters",{...o.filters,[H]:ae})},v=i.computed(()=>o.project?[o.project]:o.projects??[]),_=i.computed(()=>v.value.map(H=>({value:H.id,label:H.name})));i.computed(()=>{var H;return(H=o.activityTypes)==null?void 0:H.map(ae=>({value:ae.id,label:ae.name}))});const k=i.computed(()=>o.users.map(H=>({value:H.id,label:`${H.firstName} ${H.lastName}`,avatar:H.avatarUrl}))),w=H=>{o.selectedActivity&&r("update:activity",H)},b=H=>{r("update:activity",H)},E=H=>{r("archiveActivity",H)},T=H=>{r("unarchiveActivity",H)},x=H=>{var ae;r("startTimer",H),(ae=window.parent)==null||ae.postMessage({type:"startTimer",data:H},"*")},N=H=>{p.value=!1,r("update:searchText",H)},L=H=>{p.value=!1,r("clear:searchText",H)},A=H=>{o.selectedActivity&&r("addSubtask",H)},D=H=>{o.selectedActivity&&r("updateSubtask",H)},M=H=>{o.selectedActivity&&r("deleteSubtask",H)},I=H=>{r("addFiles",H)},P=H=>{r("removeFile",H)},j=H=>{o.selectedActivity&&r("addComment",{...H,activityId:o.selectedActivity.id})},V=H=>{const{id:ae}=o.selectedActivity||{};ae&&r("updateComment",H)},q=H=>{const{id:ae}=o.selectedActivity||{};ae&&r("removeComment",H)},F=Nr.useRouter(),Y=Nr.useRoute(),ee=i.ref("feed");i.watch(()=>Y.name,H=>{H===Oo.feed||H==="ActivityFeed"||H==="ActivityFeedWithActivity"?ee.value="feed":H===Oo.dev||H==="ActivityFeedDev"||H==="ActivityFeedDevWithActivity"?ee.value="dev":H===Ie.feed?ee.value="feed":H===Ie.dev?ee.value="dev":H===Ie.project?ee.value="overview":H===Ie.mapping&&(ee.value="mapping")},{immediate:!0});const Ee=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],ie=i.computed(()=>se.value?Ee.filter(H=>H.value==="feed"||H.value==="dev"):Ee),se=i.computed(()=>!o.project&&Y.name&&(Y.name===Oo.feed||Y.name===Oo.dev||Y.name==="ActivityFeed"||Y.name==="ActivityFeedDev"||Y.name==="ActivityFeedWithActivity"||Y.name==="ActivityFeedDevWithActivity")),z=i.computed(()=>se.value?Oo.feed:Ie.feed),oe=i.computed(()=>se.value?Oo.dev:Ie.dev),ye=i.computed(()=>Ie.project),Be=i.computed(()=>Ie.mapping);return i.watch(ee,H=>{H==="feed"?F.push({name:z.value}):H==="dev"?F.push({name:oe.value}):H==="overview"?F.push({name:ye.value}):H==="mapping"&&F.push({name:Be.value})}),(H,ae)=>{var fe;return i.openBlock(),i.createElementBlock("div",hhe,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createElementVNode("div",ghe,[i.createVNode(hs,{modelValue:ee.value,"onUpdate:modelValue":ae[0]||(ae[0]=he=>ee.value=he),tabs:ie.value},null,8,["modelValue","tabs"]),i.createVNode(mhe,{"model-value":t.searchText,placeholder:H.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:L},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(xt,{key:0,"model-value":t.filters[i.unref(bi).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:H.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":ae[1]||(ae[1]=he=>C(i.unref(bi).project,he))},null,8,["model-value","options","placeholder"])),k.value.length?(i.openBlock(),i.createBlock(xt,{key:1,"model-value":t.filters[i.unref(bi).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:H.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":ae[2]||(ae[2]=he=>C(i.unref(bi).assignee,he))},{tag:i.withCtx(({option:he,handleTagRemove:ke})=>[i.createVNode(Yn,{"user-name":he.label,"avatar-url":he.avatar,"is-closable":!0,onClose:Ve=>ke(he,Ve)},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:H.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:ae[3]||(ae[3]=he=>H.$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:H.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:ae[4]||(ae[4]=he=>H.$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:H.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:ae[5]||(ae[5]=he=>H.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",vhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,he=>(i.openBlock(),i.createBlock(dhe,{key:he.id,status:he,list:d.value[he.id],title:he.name,"footer-label":H.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>g(he),onAddAtBeginning:()=>y(he),onSelectActivity:u,onArchiveActivity:E,onUnarchiveActivity:T,onUpdateActivity:b,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(ed,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(fe=t.selectedActivity.milestone)==null?void 0:fe.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:v.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.sprints,onClose:ae[6]||(ae[6]=()=>u(null,null)),"onUpdate:activity":w,onAddSubtask:A,onUpdateSubtask:D,onDeleteSubtask:M,onAddFiles:I,onRemoveFile:P,onAddComment:j,onUpdateComment:V,onRemoveComment:q,onToast:s,onCreateSprint:ae[7]||(ae[7]=he=>r("createSprint",he))},{default:i.withCtx(he=>[i.renderSlot(H.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(he)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints"])):i.createCommentVNode("",!0)]))])}}});const yhe={class:"ao-project-mapping"},_he={class:"ao-project-mapping-mapping__body"},Che={class:"ao-project-mapping-mapping__phases"},bhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},khe=["src","alt"],whe=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}=Mn(),o=t,r=e,s=()=>{const{name:v,rank:_}=Ho(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=ts(o.phases);r("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{r("updatePhase",v)},c=v=>{r("archivePhase",v)},u=v=>{r("unarchivePhase",v)},d=v=>{r("copyPhaseToTemplate",v)},f=i.ref(!1),p=i.ref(!1),m=(v,_)=>{r("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{var b;const k=(b=o.templates)==null?void 0:b.at(-1),w=k?st.LexoRank.parse(k.rank).genNext():st.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Nr.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:Ie.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Ie.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Ie.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Ie.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var k;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[i.createElementVNode("div",yhe,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createVNode(hs,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.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:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>v.$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-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("project.phase.add"),onClick:a},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>p.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(me,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",_he,[i.createElementVNode("div",Che,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(k=t.project)==null?void 0:k.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",bhe,[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"},[p.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),f.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Vo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Ehe=(t,e={})=>[{path:t,name:Vo.TEMPLATES,redirect:{name:Vo.TEMPLATES_LIST},...e,children:[{path:"",name:Vo.TEMPLATES_LIST,component:zg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Vo.TEMPLATE_DETAILS,component:Fg,props:!0}]}],Ie={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Oo={feed:"ActivityFeed",dev:"ActivityFeedDev"},She=(t,e={})=>[{path:t,...e,redirect:{name:Ie.project},children:[{path:"",name:Ie.project,component:ime,props:!0,children:[{path:":phaseId/:milestoneId",name:Ie.milestone,component:fp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Ie.activity,props:{default:!0,modal:!0},components:{default:fp,modal:Hme}}]},{path:"feed",name:Ie.feed,component:Kc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Ie.dev,component:Kc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Ie.mapping,component:whe,props:!0}]}],xhe={class:"ao-templates"},zg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Mn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{Hn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?st.LexoRank.parse(u.rank).genNext():st.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:He.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:He.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=es(u,o.templates??[]);r("updateItem",{itemType:He.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(ns,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(_o),{"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(q_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(p_)(f.phases):0,activities:f.phases?i.unref(m_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:i.unref(Vo).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const The={class:"ao-field__label"},Ug=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",The,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),Ahe=["type","value","disabled","readonly"],Nhe=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(Ug,{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,Ahe)]),_:1},8,["label"]))}}),Dhe={class:"ao-field"},Mhe={class:"ao-field__label"},$he=["checked","disabled"],Bhe=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",Dhe,[i.createElementVNode("span",Mhe,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,$he)]))}});exports.AoAvatar=Yn;exports.AoCardFeed=ud;exports.AoCheckboxField=Bhe;exports.AoColorPicker=pl;exports.AoFeed=Kc;exports.AoField=Ug;exports.AoInputField=Nhe;exports.AoMultiselect=xt;exports.AoProjectPhases=cd;exports.AoTabBar=hs;exports.AoTemplateDetails=Fg;exports.AoTemplates=Jg;exports.AoTemplatesList=zg;exports.EstimationUnit=_p;exports.TemplateItemTypeEnum=yp;exports.activityFeedRoutes=Oo;exports.activityFeedStatus=Sy;exports.durationTypes=Ey;exports.feedFilterTypes=bi;exports.getProjectOverviewRoutes=She;exports.getTemplateRoutes=Ehe;exports.listUpdateTypes=xy;exports.milestoneStatus=Ii;exports.projectOverviewRoutes=Ie;exports.ruleComparators=hp;exports.ruleDurationUnits=vp;exports.ruleTriggerTypes=gp;exports.templateItemType=He;exports.templateRouteNames=Vo;
58
+ */function $o(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=Dfe(t):/rgb/.test(t)?e=dp(t):typeof t=="string"?e=dp(`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}=Mfe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function td(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 Zc(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 Nfe({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 Dfe(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 dp(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 Mfe({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 nd=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),Zc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Zc("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 $fe={ref:"canvasSaturation"};function Bfe(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",$fe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}nd.render=Bfe;nd.__file="src/color/Saturation.vue";var od=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 Ofe={ref:"canvasHue"};function Lfe(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",Ofe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}od.render=Lfe;od.__file="src/color/Hue.vue";var rd=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=td(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Zc("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 Ife={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",Ife,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}rd.render=Pfe;rd.__file="src/color/Alpha.vue";var id=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=td(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 Ffe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}id.render=Ffe;id.__file="src/color/Preview.vue";var sd=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,m,h]=d.data;h=parseFloat((h/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}, ${m}, ${h})`,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,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const Vfe=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),Rfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},zfe=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 Ufe(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))},[Vfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",Rfe,[zfe])):i.createCommentVNode("v-if",!0)])}sd.render=Ufe;sd.__file="src/color/Sucker.vue";var ad=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 qfe={class:"color-type"},Hfe={class:"name"};function jfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",qfe,[i.createVNode("span",Hfe,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]])])}ad.render=jfe;ad.__file="src/color/Box.vue";var ld=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=td(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 Wfe={class:"colors"},Zfe={key:0,class:"colors history"};function Kfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",Wfe,[(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",Zfe,[(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)])}ld.render=Kfe;ld.__file="src/color/Colors.vue";var Nr=i.defineComponent({components:{Saturation:nd,Hue:od,Alpha:rd,Preview:id,Sucker:sd,Box:ad,Colors:ld},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 Nfe(this.rgba,!0)}},created(){Object.assign(this,$o(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}=$o(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}=$o(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}=$o(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}=$o(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}=$o(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}=$o(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 Gfe={class:"color-set"};function Yfe(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",Gfe,[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)}Nr.render=Yfe;Nr.__file="src/color/ColorPicker.vue";Nr.install=t=>{t.component(Nr.name,Nr)};const Jfe={class:"color-picker-wrapper"},pl=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 h=>{a.value=h,r.value=!0,await i.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,k=v<C&&_>C;console.log("pickerHeight = "+C),l.value=k?g.top-C-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=h=>{const g=h.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,h=>{r.value||(p.value=h)});const p=i.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:v}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${v})`};return(h,g)=>(i.openBlock(),i.createElementBlock("div",Jfe,[i.renderSlot(h.$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(Nr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Xfe={class:"ao-card-project-phase__header"},Qfe={class:"ao-card-project-item__title-line"},epe={key:0,class:"ao-card-project-item-phase__estimation"},tpe={class:"ao-card-project-phase__footer"},npe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ope={class:"ao-card-project-phase__subitem"},rpe={class:"ao-card-project-phase__subitem"},ipe={key:0,class:"ao-card-project-phase__secondary"},spe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},ape=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((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(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(y=>y.status===Ii.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)}),m=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Qfe,[i.createVNode(_t,{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",epe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",tpe,[u.value?(i.openBlock(),i.createElementBlock("div",npe,[i.createElementVNode("div",ope,[i.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",rpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ipe,[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":y[1]||(y[1]=_=>p.value=_),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",spe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Xfe,[i.createVNode(he,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[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 lpe=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 cpe={class:"ao-card-project-milestone__default"},upe={class:"ao-title-with-badge-wrapper"},dpe={class:"ao-card-project-item__title-line"},fpe={key:0,class:"ao-card-project-item-milestone__estimation"},ppe={key:0,class:"ao-card-project-milestone__archive"},mpe={class:"ao-card-project-milestone__activities"},hpe={class:"ao-card-project-milestone__activities-row"},gpe={class:"ao-card-project-milestone__subitem"},vpe={class:"ao-card-project-milestone__subitem"},ype={key:1,class:"ao-card-project-milestone__secondary"},_pe={class:"ao-card-project-milestone__footer"},Cpe={key:1,class:"ao-field ao-card-project-milestone__deadline"},bpe={class:"ao-field__label"},kpe={key:2,class:"ao-card-project-milestone__assignee"},wpe=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((m,h)=>m+(h.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Da(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(m=>Jc(m,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(i.openBlock(),i.createBlock(dl,{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",cpe,[i.createElementVNode("div",upe,[i.createVNode(lpe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",dpe,[i.createVNode(_t,{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",fpe," ("+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",ppe,[i.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[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",mpe,[i.createElementVNode("div",hpe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",gpe,[i.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",vpe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(fl,{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",ype,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",_pe,[t.important?(i.openBlock(),i.createBlock(ke,{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",Cpe,[i.createElementVNode("span",bpe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",kpe,[i.createVNode(Jn,{"user-name":i.unref(Op)(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"},Spe={class:"ao-card-project-item__title-line"},xpe={key:0,class:"ao-card-project-item-phase__estimation"},Tpe={class:"ao-mapping-card-project-phase__footer"},Ape={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Npe={class:"ao-mapping-card-project-phase__subitem"},Dpe={class:"ao-mapping-card-project-phase__subitem"},Mpe={key:0,class:"ao-mapping-card-project-phase__secondary"},$pe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Bpe=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((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,k)=>_+(k.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const k=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Da(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(y=>y.status===Ii.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)}),m=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(i.openBlock(),i.createBlock(pl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(dl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Spe,[i.createVNode(_t,{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",xpe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Tpe,[u.value?(i.openBlock(),i.createElementBlock("div",Ape,[i.createElementVNode("div",Npe,[i.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Dpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(fl,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Mpe,[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":y[1]||(y[1]=_=>p.value=_),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",$pe,i.toDisplayString(i.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Epe,[i.createVNode(he,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[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 Ope={class:"ao-project-phase"},Lpe={key:0,class:"ao-project-phase__drag ao-card__drag"},Ipe={key:1,class:"ao-project-phase__col-phase"},Ppe={key:2,class:"ao-mapping-project-phase__col-phase"},Fpe={key:0,class:"ao-project-phase__col-milestones"},Vpe=["title"],Rpe={class:"ao-project-phase__milestones-list-footer"},zpe=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}=$n(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{jn(w,b)});const s=w=>{r("updatePhase",{id:o.phase.id,name:w})},a=w=>{r("updatePhase",{id:o.phase.id,deadline:w})},l=w=>{r("updatePhase",w)},c=i.computed(()=>o.phase.milestones.map(w=>v_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=Wo(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=ts(c.value??[]);r("addMilestone",{name:b,rank:E,phaseId:w})},f=w=>{r("updateMilestone",w)},p=w=>{r("archiveMilestone",w)},m=w=>{r("unarchiveMilestone",w)},h=w=>{r("archivePhase",w)},g=w=>{r("unarchivePhase",w)},y=w=>{"added"in w?r("updateMilestone",{id:w.added.element.id,phaseId:o.phase.id,rank:Mr(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Mr(c.value,w.moved.newIndex)})},C=Dr.useRoute(),v=i.computed(()=>C.path.includes("/mapping")),_=i.computed(()=>{var w;return o.phase.id===((w=C.params)==null?void 0:w.phaseId)});i.ref(!1);const k=i.computed(()=>{var w;return o.phase.id!==((w=C.params)==null?void 0:w.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:__(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",Ope,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Lpe,[i.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",Ppe,[i.createVNode(Bpe,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",Ipe,[i.createVNode(ape,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Fpe,[i.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":_.value}]),title:w.$t("project.milestone.add"),onClick:b[0]||(b[0]=()=>d(t.phase.id))},[i.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,Vpe)):i.createCommentVNode("",!0),i.createVNode(i.unref(Co),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},w.$attrs,{onChange:y}),{item:i.withCtx(({element:E})=>{var T;return[i.createVNode(wpe,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((T=w.$route.params)==null?void 0:T.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&w.$router.push({name:i.unref(Ie).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},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",Rpe,[t.isEditable?(i.openBlock(),i.createBlock(bo,{key:0,label:w.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:b[1]||(b[1]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const Upe={class:"ao-project__phases"},qpe={key:0,class:"ao-project-phase__phases-list-footer"},Hpe={class:"ao-project-phase__col-phase"},cd=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,(m,h)=>{jn(m,h)});const r=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=es(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(i.openBlock(),i.createElementBlock("div",Upe,[i.createVNode(i.unref(Co),{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(zpe,{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",qpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Hpe,[i.createVNode(bo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[1]||(h[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const jpe={class:"ao-add-template-modal__form-body"},Wpe={class:"field__row"},Zpe={class:"ao-add-template-modal__form-footer"},Vg=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($a,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(_t,{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",jpe,[i.createElementVNode("div",Wpe,[i.createVNode(At,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Zpe,[i.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Kpe={class:"ao-save-template-modal__form-body"},Gpe={class:"field__row"},Ype={class:"ao-field ao-field--inline"},Jpe={class:"ao-field__label"},Xpe={class:"ao-save-template-modal__phases"},Qpe={class:"ao-field__label"},eme={class:"ao-save-template-modal__phases-list"},tme=["value"],nme={class:"ao-save-template-modal__form-footer"},Rg=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($a,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(_t,{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",Kpe,[i.createElementVNode("div",Gpe,[i.createElementVNode("label",Ype,[i.createElementVNode("span",Jpe,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",Xpe,[i.createElementVNode("div",Qpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",eme,[(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,tme),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",nme,[i.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const ome={class:"ao-project"},rme={class:"ao-project__body"},ime=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:{},loadAttachmentPreview:{type:Function}},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}=$n(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:Y}=Wo(o.phases,"phase",n);r("addPhase",{name:F,rank:Y,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),Y=ts(o.phases);r("addPhase",{name:F,rank:Y,projectId:o.project.id})},c=F=>{r("updatePhase",F)},u=F=>{r("archivePhase",F)},d=F=>{r("unarchivePhase",F)},f=F=>{r("copyPhaseToTemplate",F)},p=F=>{r("addMilestone",F)},m=F=>{r("updateMilestone",F)},h=F=>{r("archiveMilestone",F)},g=F=>{r("unarchiveMilestone",F)},y=F=>{r("addActivity",F)},C=F=>{r("update:activity",F)},v=F=>{r("archiveActivity",F)},_=F=>{r("unarchiveActivity",F)},k=F=>{r("addSubtask",F)},w=F=>{r("updateSubtask",F)},b=F=>{r("deleteSubtask",F)},E=i.computed(()=>s.value.flatMap(F=>F.activities)),T=F=>{r("addFiles",F)},x=F=>{r("removeFile",F)},N=F=>{r("addComment",F)},I=F=>{r("updateComment",F)},A=F=>{r("removeComment",F)},D=i.ref(!1),M=i.ref(!1),L=(F,Y)=>{r("applyTemplate",{templateId:F,projectId:Y}),D.value=!1},P=(F,Y)=>{var se;const ee=(se=o.templates)==null?void 0:se.at(-1),we=ee?at.LexoRank.parse(ee.rank).genNext():at.LexoRank.middle();r("saveTemplate",{templateName:F,rank:we.format(),phaseIds:Y}),M.value=!1},j=Dr.useRouter(),V=i.ref("overview"),q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(V,F=>{F==="feed"?(j.push({name:Ie.feed}),console.log("Navigating to feed...")):F==="dev"?(j.push({name:Ie.dev}),console.log("Navigating to dev...")):F==="overview"?(j.push({name:Ie.project}),console.log("Navigating to feed...")):F==="mapping"&&(j.push({name:Ie.mapping}),console.log("Navigating to feed..."))}),(F,Y)=>{var we;const ee=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},F.$attrs),[i.createElementVNode("div",ome,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createVNode(hs,{modelValue:V.value,"onUpdate:modelValue":Y[0]||(Y[0]=se=>V.value=se),tabs:q},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:Y[1]||(Y[1]=se=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-overview__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:l},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:Y[2]||(Y[2]=se=>M.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:Y[3]||(Y[3]=se=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",rme,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(we=t.project)==null?void 0:we.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:h,onUnarchiveMilestone:g,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(ee,{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:Y[4]||(Y[4]=se=>F.$router.push({name:i.unref(Ie).project})),onUpdateMilestone:m,onAddActivity:y,onUpdateActivity:C,onArchiveActivity:v,onUnarchiveActivity:_},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(ee,{name:"modal",activities:E.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,"load-attachment-preview":t.loadAttachmentPreview,"onUpdate:activity":C,onAddSubtask:k,onUpdateSubtask:w,onDeleteSubtask:b,onAddFiles:T,onRemoveFile:x,onAddComment:N,onUpdateComment:I,onRemoveComment:A},{default:i.withCtx(({Component:se})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(se),null,{default:i.withCtx(ie=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(ie)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[M.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:Y[5]||(Y[5]=se=>M.value=!1),onSave:P},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:Y[6]||(Y[6]=se=>D.value=!1),onApply:L},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const sme={class:"ao-card-feed__header"},ame={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},lme={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},cme={class:"ao-card-feed__body"},ume={key:0,class:"ao-card-feed__breadcrumbs"},dme={class:i.normalizeClass(["ao-card-feed__title-group"])},fme={class:"ao-card-feed__title-line"},pme={key:0,class:"ao-card-feed__slug"},mme={key:1,class:"ao-card-feed__deadline"},hme={class:"ao-card-feed__footer"},gme={class:"ao-card-feed__footer-row"},vme={class:"ao-assignees"},yme={key:0,class:"ao-assignee"},_me={key:0,class:"ao-card-feed__subitems"},Cme={key:0,class:"ao-card-feed__subitem"},bme={class:"ao-card-feed__subitem"},kme={key:1,class:"ao-card-feed__subitem"},wme={class:"ao-card-feed__subitem"},Eme={class:"ao-card-feed__timer-wrapper"},Sme={class:"ao-card-feed__footer-row"},xme={key:0,class:"ao-card-feed__progress-wrapper"},Tme={class:"ao-card-feed__subitem"},Ame={class:"ao-card-feed__subitem"},ud=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(()=>Ma(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}),m=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=i.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(dl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",sme,[r.value?(i.openBlock(),i.createBlock(Li,{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",ame,[t.isPrivate?(i.openBlock(),i.createBlock(ke,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(ke,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(ke,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",lme,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",cme,[l.value?(i.openBlock(),i.createElementBlock("span",ume,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",dme,[i.createElementVNode("div",fme,[t.slug?(i.openBlock(),i.createElementBlock("span",pme,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(_t,{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",mme,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",hme,[i.createElementVNode("div",gme,[i.createElementVNode("ul",vme,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,C=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C.id},[C?(i.openBlock(),i.createElementBlock("li",yme,[i.createVNode(Jn,{"user-name":i.unref(Op)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",_me,[t.comments?(i.openBlock(),i.createElementBlock("li",Cme,[i.createVNode(ke,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",bme,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",kme,[i.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",wme,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",Eme,[i.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",Sme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",xme,[i.createElementVNode("div",Tme,[i.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Ame,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(fl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Nme={class:"ao-project-milestone"},Dme={class:"ao-project-milestone__header"},Mme={class:"ao-project-milestone__header_line"},$me={class:"ao-project-milestone__header_line"},Bme={class:"ao-project-milestone__title"},Ome={key:0,class:"ao-fieldset ao-milestone__fieldset"},Lme={class:"ao-field__row ao-milestone__field-row"},Ime={class:"ao-field ao-field--inline"},Pme={class:"ao-field__row ao-milestone__field-row"},Fme={class:"ao-field ao-milestone__field-multiselect"},Vme={class:"ao-milestone__color-actions"},Rme=["onClick"],zme=["title"],Ume={class:"ao-project-milestone__body"},qme={key:0,class:"ao-project-milestone__footer"},fp=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}=$n(),o=t,r=e,s=b=>{var E;r("startTimer",b),(E=window.parent)==null||E.postMessage({type:"startTimer",data:b},"*")},a=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(E=>E.id===o.phaseId)}),l=i.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(E=>E.milestones)}),c=i.computed(()=>{var b;return(b=l.value)==null?void 0:b.find(E=>E.id===o.milestoneId)}),u=i.computed(()=>{var b;return(b=c.value)==null?void 0:b.activities});i.watch(u,(b,E)=>{jn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=Wo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},p=()=>{const b=n("template.defaultName.activity",{idx:1}),E=ts(u.value??[]);r("addActivity",{milestoneId:o.milestoneId,name:b,rank:E,projectId:o.projectId})},m=b=>{r("updateActivity",b)},h=b=>{u.value&&"moved"in b&&r("updateActivity",{id:b.moved.element.id,rank:Mr(u.value,b.moved.newIndex)})},g=i.computed({get:()=>{var b;return(b=c.value)==null?void 0:b.color},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,color:b})}}),y=i.computed({get:()=>{var b;return((b=c==null?void 0:c.value)==null?void 0:b.deadline)??""},set:b=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?Jc(b,o.closedStatus):!1,v=i.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),_=i.computed({get(){var b,E;return(E=(b=c.value)==null?void 0:b.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(b){r("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),k=i.computed({get(){var b;return((b=c.value)==null?void 0:b.important)??!1},set(b){r("updateMilestone",{id:o.milestoneId,important:b})}}),w=(b,E)=>{const T=b.currentTarget;T instanceof HTMLElement&&E(T)};return(b,E)=>{var T;return i.openBlock(),i.createElementBlock("div",Nme,[i.createElementVNode("header",Dme,[i.createElementVNode("div",Mme,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",$me,[i.createElementVNode("div",Bme,[i.createVNode(_t,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Pg,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=x=>k.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Ome,[i.createElementVNode("div",Lme,[i.createElementVNode("label",Ime,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>y.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Pme,[i.createElementVNode("label",Fme,[i.createVNode(At,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=x=>_.value=x),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:x,handleTagRemove:N})=>[i.createVNode(Jn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:I=>N(x,I)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Vme,[i.createVNode(pl,{color:g.value,"onUpdate:color":E[3]||(E[3]=x=>g.value=x)},{clickable:i.withCtx(({openPicker:x,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:I=>w(I,x)},null,12,Rme)]),_:1},8,["color"]),t.isEditable?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"ao-project-milestone__quick-add",title:b.$t("project.activity.add"),onClick:p},[i.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,zme)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ume,[i.createVNode(i.unref(Co),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:h}),{item:i.withCtx(({element:x})=>{var N,I,A,D,M;return[i.createVNode(ud,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(I=c.value)==null?void 0:I.name,"milestone-color":(A=c.value)==null?void 0:A.color,deadline:x.deadline,important:x.important,users:t.users,assignee:x.assignee,slug:x.slug,comments:(D=x.comments)==null?void 0:D.length,attachments:(M=x.attachments)==null?void 0:M.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":C(x),onClick:L=>b.$router.push({name:i.unref(Ie).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:x.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&x.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:i.withModifiers(()=>b.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!x.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>b.$emit("unarchiveActivity",{id:x.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",qme,[i.createVNode(bo,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Hme=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=i.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=i.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=i.computed(()=>{var C;return(C=n.activities)==null?void 0:C.find(v=>v.id===n.activityId)}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,v)=>{var _,k;return l.value?(i.openBlock(),i.createBlock(ed,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"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:`${(_=r.value)==null?void 0:_.name} / ${(k=a.value)==null?void 0:k.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:v[0]||(v[0]=w=>o("createSprint",w))},{default:i.withCtx(w=>[i.renderSlot(C.$slots,"default",i.normalizeProps(i.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","onClose"])):i.createCommentVNode("",!0)}}}),jme={class:"ao-col-header"},Wme=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",jme,[i.createVNode(_t,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Li,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Zme(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ea(t){return typeof t=="function"?t():i.unref(t)}const Kme=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gme=t=>t!=null,Oi=()=>{};function Yme(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 Jme(t,e={}){let n,o,r=Oi;const s=l=>{clearTimeout(l),r(),r=Oi};return l=>{const c=Ea(t),u=Ea(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 Xme(t,e=200,n={}){return Yme(Jme(e,n),t)}function ac(t){var e;const n=Ea(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Qme=Kme?window:void 0;function ehe(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function the(t){const e=ehe();return i.computed(()=>(e.value,!!t()))}function nhe(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Qme,immediate:l=!0}=n,c=the(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=Ea(t);return(Array.isArray(h)?h:[h]).map(ac).filter(Gme)});let d=Oi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,ac(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:ac(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Oi}},{immediate:l,flush:"post"}):Oi,m=()=>{d(),p(),f.value=!1};return Zme(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const ohe={class:i.normalizeClass(["ao-list-kanban"])},rhe={class:"ao-list-kanban__header"},ihe=["title"],she={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ahe={key:1,class:"ao-list-kanban__end"},lhe={key:0,class:"ao-list-kanban__no-more"},che={key:1,class:"ao-list-kanban__divider"},uhe={key:1,class:"ao-list-kanban__footer"},dhe=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","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=>{if("added"in f){const p={id:f.added.element.id,rank:Mr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Mr(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",ohe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",rhe,[t.title?(i.openBlock(),i.createBlock(Wme,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):i.createCommentVNode("",!0),t.showHeaderAdd?(i.openBlock(),i.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[i.createVNode(ke,{name:"Add"})],8,ihe)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(Co),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[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:i.withCtx(({element:m})=>{var h,g,y,C,v,_,k,w,b,E;return[i.createVNode(ud,{id:m.id,class:i.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(v=(C=m.milestone)==null?void 0:C.phase)==null?void 0:v.name,"milestone-name":(_=m.milestone)==null?void 0:_.name,"milestone-color":(k=m.milestone)==null?void 0:k.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(b=m.comments)==null?void 0:b.length,attachments:(E=m.attachments)==null?void 0:E.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[T=>a(m)&&c(T),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=T=>f.$emit("startTimer",T))},{secondary:i.withCtx(()=>[a(m)&&m.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(m)&&!m.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:m.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",she,[i.createVNode(ke,{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",ahe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",lhe,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",che)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",uhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(bo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const fhe={class:"ao-field ao-search-field"},phe=["value","placeholder"],mhe=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=Xme(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,phe),i.createVNode(ke,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const hhe={class:"ao-feed"},ghe={class:"ao-feed__filters"},vhe={class:"ao-feed__body"},Kc=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]}},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","createSprint"],setup(t,{emit:e}){const{t:n}=$n(),o=t,r=e;function s(H,le){r("toast",H,le)}const a=i.toRef(o,"activities"),l=i.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=i.computed(()=>o.feedMode==="dev"?a.value.filter(H=>H.activityType==="dev"):a.value),u=async(H,le)=>{await r("selectActivity",H,le)},d=i.ref({}),f=i.ref(!1),p=i.ref(!1),m=i.computed(()=>o.project?"milestone":"project");i.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([H,le,fe,pe],[Ce,We])=>{const _e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(H.map(Pe=>[Pe.id,le.filter(Ve=>{const De=Ve[_e];return(De==null?void 0:De.id)===Pe.id})])),fe&&!f.value?(u(fe,null),f.value=!0):pe&&!f.value&&(u(null,pe),f.value=!0),p.value&&jn(le,We)},{immediate:!0});const h=i.computed(()=>{var H;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((H=o.selectedActivity.milestone.phase)==null?void 0:H.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=H=>{var Pe;const le=o.feedMode==="dev"?o.activities.filter(Ve=>Ve.activityType==="dev"):o.activities,fe=le==null?void 0:le.at(-1),pe=fe?at.LexoRank.parse(fe.rank).genNext():at.LexoRank.middle(),Ce=((Pe=o.activities)==null?void 0:Pe.length)??0,We=o.feedMode==="dev",_e={name:n("activity.defaultName",{idx:Ce+1}),rank:pe.format(),...We?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(_e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(_e.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",_e)},y=H=>{var Pe,Ve;const le=o.feedMode==="dev"?"devStatus":"status",fe=((Pe=o.activities)==null?void 0:Pe.filter(De=>{const Ge=De[le];return(Ge==null?void 0:Ge.id)===H.id}))??[],pe=ts(fe),Ce=((Ve=o.activities)==null?void 0:Ve.length)??0,We=o.feedMode==="dev",_e={name:n("activity.defaultName",{idx:Ce+1}),rank:pe,...We?{statusDevId:H.id,type:"dev"}:{statusId:H.id}};o.filters.assigneeId.length>0&&(_e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(_e.projectId=o.filters.projectId[0]),p.value=!0,r("addActivity",_e)},C=(H,le)=>{p.value=!1,r("update:filters",{...o.filters,[H]:le})},v=i.computed(()=>o.project?[o.project]:o.projects??[]),_=i.computed(()=>v.value.map(H=>({value:H.id,label:H.name})));i.computed(()=>{var H;return(H=o.activityTypes)==null?void 0:H.map(le=>({value:le.id,label:le.name}))});const k=i.computed(()=>o.users.map(H=>({value:H.id,label:`${H.firstName} ${H.lastName}`,avatar:H.avatarUrl}))),w=H=>{o.selectedActivity&&r("update:activity",H)},b=H=>{r("update:activity",H)},E=H=>{r("archiveActivity",H)},T=H=>{r("unarchiveActivity",H)},x=H=>{var le;r("startTimer",H),(le=window.parent)==null||le.postMessage({type:"startTimer",data:H},"*")},N=H=>{p.value=!1,r("update:searchText",H)},I=H=>{p.value=!1,r("clear:searchText",H)},A=H=>{o.selectedActivity&&r("addSubtask",H)},D=H=>{o.selectedActivity&&r("updateSubtask",H)},M=H=>{o.selectedActivity&&r("deleteSubtask",H)},L=H=>{r("addFiles",H)},P=H=>{r("removeFile",H)},j=H=>{o.selectedActivity&&r("addComment",{...H,activityId:o.selectedActivity.id})},V=H=>{const{id:le}=o.selectedActivity||{};le&&r("updateComment",H)},q=H=>{const{id:le}=o.selectedActivity||{};le&&r("removeComment",H)},F=Dr.useRouter(),Y=Dr.useRoute(),ee=i.ref("feed");i.watch(()=>Y.name,H=>{H===Io.feed||H==="ActivityFeed"||H==="ActivityFeedWithActivity"?ee.value="feed":H===Io.dev||H==="ActivityFeedDev"||H==="ActivityFeedDevWithActivity"?ee.value="dev":H===Ie.feed?ee.value="feed":H===Ie.dev?ee.value="dev":H===Ie.project?ee.value="overview":H===Ie.mapping&&(ee.value="mapping")},{immediate:!0});const we=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],se=i.computed(()=>ie.value?we.filter(H=>H.value==="feed"||H.value==="dev"):we),ie=i.computed(()=>!o.project&&Y.name&&(Y.name===Io.feed||Y.name===Io.dev||Y.name==="ActivityFeed"||Y.name==="ActivityFeedDev"||Y.name==="ActivityFeedWithActivity"||Y.name==="ActivityFeedDevWithActivity")),z=i.computed(()=>ie.value?Io.feed:Ie.feed),oe=i.computed(()=>ie.value?Io.dev:Ie.dev),ye=i.computed(()=>Ie.project),Be=i.computed(()=>Ie.mapping);return i.watch(ee,H=>{H==="feed"?F.push({name:z.value}):H==="dev"?F.push({name:oe.value}):H==="overview"?F.push({name:ye.value}):H==="mapping"&&F.push({name:Be.value})}),(H,le)=>{var fe;return i.openBlock(),i.createElementBlock("div",hhe,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createElementVNode("div",ghe,[i.createVNode(hs,{modelValue:ee.value,"onUpdate:modelValue":le[0]||(le[0]=pe=>ee.value=pe),tabs:se.value},null,8,["modelValue","tabs"]),i.createVNode(mhe,{"model-value":t.searchText,placeholder:H.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:I},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(At,{key:0,"model-value":t.filters[i.unref(bi).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:H.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":le[1]||(le[1]=pe=>C(i.unref(bi).project,pe))},null,8,["model-value","options","placeholder"])),k.value.length?(i.openBlock(),i.createBlock(At,{key:1,"model-value":t.filters[i.unref(bi).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:H.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":le[2]||(le[2]=pe=>C(i.unref(bi).assignee,pe))},{tag:i.withCtx(({option:pe,handleTagRemove:Ce})=>[i.createVNode(Jn,{"user-name":pe.label,"avatar-url":pe.avatar,"is-closable":!0,onClose:We=>Ce(pe,We)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:le[3]||(le[3]=pe=>H.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:le[4]||(le[4]=pe=>H.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:H.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:le[5]||(le[5]=pe=>H.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",vhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,pe=>(i.openBlock(),i.createBlock(dhe,{key:pe.id,status:pe,list:d.value[pe.id],title:pe.name,"footer-label":H.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>g(pe),onAddAtBeginning:()=>y(pe),onSelectActivity:u,onArchiveActivity:E,onUnarchiveActivity:T,onUpdateActivity:b,onStartTimer:x},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(ed,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(fe=t.selectedActivity.milestone)==null?void 0:fe.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:v.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.sprints,onClose:le[6]||(le[6]=()=>u(null,null)),"onUpdate:activity":w,onAddSubtask:A,onUpdateSubtask:D,onDeleteSubtask:M,onAddFiles:L,onRemoveFile:P,onAddComment:j,onUpdateComment:V,onRemoveComment:q,onToast:s,onCreateSprint:le[7]||(le[7]=pe=>r("createSprint",pe))},{default:i.withCtx(pe=>[i.renderSlot(H.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(pe)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints"])):i.createCommentVNode("",!0)]))])}}});const yhe={class:"ao-project-mapping"},_he={class:"ao-project-mapping-mapping__body"},Che={class:"ao-project-mapping-mapping__phases"},bhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},khe=["src","alt"],whe=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}=$n(),o=t,r=e,s=()=>{const{name:v,rank:_}=Wo(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=ts(o.phases);r("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{r("updatePhase",v)},c=v=>{r("archivePhase",v)},u=v=>{r("unarchivePhase",v)},d=v=>{r("copyPhaseToTemplate",v)},f=i.ref(!1),p=i.ref(!1),m=(v,_)=>{r("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{var b;const k=(b=o.templates)==null?void 0:b.at(-1),w=k?at.LexoRank.parse(k.rank).genNext():at.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Dr.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:Ie.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Ie.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Ie.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Ie.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var k;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[i.createElementVNode("div",yhe,[i.createVNode(ns,null,{primary:i.withCtx(()=>[i.createVNode(hs,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>v.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("project.phase.add"),onClick:a},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>p.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",_he,[i.createElementVNode("div",Che,[i.createVNode(cd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(k=t.project)==null?void 0:k.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",bhe,[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"},[p.value?(i.openBlock(),i.createBlock(Rg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),f.value?(i.openBlock(),i.createBlock(Vg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const zo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Ehe=(t,e={})=>[{path:t,name:zo.TEMPLATES,redirect:{name:zo.TEMPLATES_LIST},...e,children:[{path:"",name:zo.TEMPLATES_LIST,component:zg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:zo.TEMPLATE_DETAILS,component:Fg,props:!0}]}],Ie={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Io={feed:"ActivityFeed",dev:"ActivityFeedDev"},She=(t,e={})=>[{path:t,...e,redirect:{name:Ie.project},children:[{path:"",name:Ie.project,component:ime,props:!0,children:[{path:":phaseId/:milestoneId",name:Ie.milestone,component:fp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Ie.activity,props:{default:!0,modal:!0},components:{default:fp,modal:Hme}}]},{path:"feed",name:Ie.feed,component:Kc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Ie.dev,component:Kc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Ie.mapping,component:whe,props:!0}]}],xhe={class:"ao-templates"},zg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=$n(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{jn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?at.LexoRank.parse(u.rank).genNext():at.LexoRank.middle(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:qe.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:qe.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=es(u,o.templates??[]);r("updateItem",{itemType:qe.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(ns,null,{secondary:i.withCtx(()=>[i.createVNode(he,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(Co),{"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(q_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(p_)(f.phases):0,activities:f.phases?i.unref(m_)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:i.unref(zo).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const The={class:"ao-field__label"},Ug=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",The,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),Ahe=["type","value","disabled","readonly"],Nhe=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(Ug,{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,Ahe)]),_:1},8,["label"]))}}),Dhe={class:"ao-field"},Mhe={class:"ao-field__label"},$he=["checked","disabled"],Bhe=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",Dhe,[i.createElementVNode("span",Mhe,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,$he)]))}});exports.AoAvatar=Jn;exports.AoCardFeed=ud;exports.AoCheckboxField=Bhe;exports.AoColorPicker=pl;exports.AoFeed=Kc;exports.AoField=Ug;exports.AoInputField=Nhe;exports.AoMultiselect=At;exports.AoProjectPhases=cd;exports.AoTabBar=hs;exports.AoTemplateDetails=Fg;exports.AoTemplates=Jg;exports.AoTemplatesList=zg;exports.EstimationUnit=_p;exports.TemplateItemTypeEnum=yp;exports.activityFeedRoutes=Io;exports.activityFeedStatus=Sy;exports.durationTypes=Ey;exports.feedFilterTypes=bi;exports.getProjectOverviewRoutes=She;exports.getTemplateRoutes=Ehe;exports.listUpdateTypes=xy;exports.milestoneStatus=Ii;exports.projectOverviewRoutes=Ie;exports.ruleComparators=hp;exports.ruleDurationUnits=vp;exports.ruleTriggerTypes=gp;exports.templateItemType=qe;exports.templateRouteNames=zo;