@26lights/orcha 0.42.95 → 0.42.97
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 +30 -30
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +4617 -4494
- package/dist/orcha.umd.js +30 -30
- package/dist/src/components/AoActivityDetails.vue.d.ts +7 -1
- package/dist/src/components/AoToggle.vue.d.ts +38 -0
- package/dist/src/types/index.d.ts +5 -0
- package/dist/src/views/AoFeed.vue.d.ts +7 -1
- package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +7 -1
- package/package.json +1 -1
package/dist/orcha.cjs.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
"use strict";var Kg=Object.defineProperty;var Gg=(t,e,n)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var H=(t,e,n)=>(Gg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),ho=require("vuedraggable");const Yg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ie=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return i.openBlock(),i.createElementBlock("svg",Xg,[...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 e0=ie(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return i.openBlock(),i.createElementBlock("svg",n0,[...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 r0=ie(t0,[["render",o0]]),i0={},s0={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",s0,[...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 l0=ie(i0,[["render",a0]]),c0={},u0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,[...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 f0=ie(c0,[["render",d0]]),p0={},m0={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",m0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const g0=ie(p0,[["render",h0]]),v0={},y0={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",y0,[...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 C0=ie(v0,[["render",_0]]),b0={},k0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w0(t,e){return i.openBlock(),i.createElementBlock("svg",k0,[...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 E0=ie(b0,[["render",w0]]),x0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",S0,[...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 A0=ie(x0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",D0,[...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=ie(N0,[["render",M0]]),$0={},O0={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",O0,[...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 I0=ie($0,[["render",L0]]),P0={},F0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V0(t,e){return i.openBlock(),i.createElementBlock("svg",F0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const R0=ie(P0,[["render",V0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return i.openBlock(),i.createElementBlock("svg",U0,[...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 H0=ie(z0,[["render",q0]]),j0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return i.openBlock(),i.createElementBlock("svg",W0,[...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 K0=ie(j0,[["render",Z0]]),G0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,[...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 X0=ie(G0,[["render",J0]]),Q0={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return i.openBlock(),i.createElementBlock("svg",e2,[...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 n2=ie(Q0,[["render",t2]]),o2={},r2={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",r2,[...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 s2=ie(o2,[["render",i2]]),a2={},l2={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",l2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const u2=ie(a2,[["render",c2]]),d2={},f2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p2(t,e){return i.openBlock(),i.createElementBlock("svg",f2,[...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 m2=ie(d2,[["render",p2]]),h2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v2(t,e){return i.openBlock(),i.createElementBlock("svg",g2,[...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 y2=ie(h2,[["render",v2]]),_2={},C2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return i.openBlock(),i.createElementBlock("svg",C2,[...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 k2=ie(_2,[["render",b2]]),w2={},E2={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",E2,[...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 S2=ie(w2,[["render",x2]]),T2={},A2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return i.openBlock(),i.createElementBlock("svg",A2,[...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 D2=ie(T2,[["render",N2]]),M2={},B2={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",B2,[...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 O2=ie(M2,[["render",$2]]),L2={},I2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P2(t,e){return i.openBlock(),i.createElementBlock("svg",I2,[...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 F2=ie(L2,[["render",P2]]),V2={},R2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return i.openBlock(),i.createElementBlock("svg",R2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const U2=ie(V2,[["render",z2]]),q2={},H2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j2(t,e){return i.openBlock(),i.createElementBlock("svg",H2,[...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 W2=ie(q2,[["render",j2]]),Z2={},K2={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",K2,[...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 Y2=ie(Z2,[["render",G2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return i.openBlock(),i.createElementBlock("svg",X2,[...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 ev=ie(J2,[["render",Q2]]),tv={},nv={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",nv,[...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 rv=ie(tv,[["render",ov]]),iv={},sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function av(t,e){return i.openBlock(),i.createElementBlock("svg",sv,[...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 lv=ie(iv,[["render",av]]),cv={},uv={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",uv,[...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 fv=ie(cv,[["render",dv]]),pv={},mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hv(t,e){return i.openBlock(),i.createElementBlock("svg",mv,[...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 gv=ie(pv,[["render",hv]]),vv={},yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return i.openBlock(),i.createElementBlock("svg",yv,[...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 Cv=ie(vv,[["render",_v]]),bv={},kv={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",kv,[...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 Ev=ie(bv,[["render",wv]]),xv={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tv(t,e){return i.openBlock(),i.createElementBlock("svg",Sv,[...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 Av=ie(xv,[["render",Tv]]),Nv={},Dv={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",Dv,[...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 Bv=ie(Nv,[["render",Mv]]),$v={},Ov={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e){return i.openBlock(),i.createElementBlock("svg",Ov,[...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 Iv=ie($v,[["render",Lv]]),Pv={},Fv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vv(t,e){return i.openBlock(),i.createElementBlock("svg",Fv,[...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 Rv=ie(Pv,[["render",Vv]]),zv={},Uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qv(t,e){return i.openBlock(),i.createElementBlock("svg",Uv,[...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 Hv=ie(zv,[["render",qv]]),jv={},Wv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zv(t,e){return i.openBlock(),i.createElementBlock("svg",Wv,[...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 Kv=ie(jv,[["render",Zv]]),Gv={},Yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jv(t,e){return i.openBlock(),i.createElementBlock("svg",Yv,[...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 Xv=ie(Gv,[["render",Jv]]),Qv=i.defineComponent({name:"LoadingIcon"});const e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",e3,[...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 n3=ie(Qv,[["render",t3],["__scopeId","data-v-ad6da4a9"]]),o3={},r3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function i3(t,e){return i.openBlock(),i.createElementBlock("svg",r3,[...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 s3=ie(o3,[["render",i3]]),a3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return i.openBlock(),i.createElementBlock("svg",l3,[...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 u3=ie(a3,[["render",c3]]),d3={},f3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p3(t,e){return i.openBlock(),i.createElementBlock("svg",f3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const m3=ie(d3,[["render",p3]]),h3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v3(t,e){return i.openBlock(),i.createElementBlock("svg",g3,[...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 y3=ie(h3,[["render",v3]]),_3={},C3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return i.openBlock(),i.createElementBlock("svg",C3,[...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 k3=ie(_3,[["render",b3]]),w3={},E3={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",E3,[...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 S3=ie(w3,[["render",x3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return i.openBlock(),i.createElementBlock("svg",A3,[...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 D3=ie(T3,[["render",N3]]),M3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $3(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 O3=ie(M3,[["render",$3]]),L3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return i.openBlock(),i.createElementBlock("svg",I3,[...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 F3=ie(L3,[["render",P3]]),V3={},R3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return i.openBlock(),i.createElementBlock("svg",R3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const U3=ie(V3,[["render",z3]]),q3={},H3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j3(t,e){return i.openBlock(),i.createElementBlock("svg",H3,[...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 W3=ie(q3,[["render",j3]]),Z3={},K3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return i.openBlock(),i.createElementBlock("svg",K3,[...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 Y3=ie(Z3,[["render",G3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return i.openBlock(),i.createElementBlock("svg",X3,[...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 e5=ie(J3,[["render",Q3]]),t5={},n5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o5(t,e){return i.openBlock(),i.createElementBlock("svg",n5,[...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 r5=ie(t5,[["render",o5]]),i5={},s5={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",s5,[...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 l5=ie(i5,[["render",a5]]),c5={},u5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(t,e){return i.openBlock(),i.createElementBlock("svg",u5,[...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 f5=ie(c5,[["render",d5]]),p5={},m5={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",m5,[...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 g5=ie(p5,[["render",h5]]),v5={},y5={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",y5,[...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 C5=ie(v5,[["render",_5]]),b5={},k5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w5(t,e){return i.openBlock(),i.createElementBlock("svg",k5,[...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 E5=ie(b5,[["render",w5]]),x5={},S5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(t,e){return i.openBlock(),i.createElementBlock("svg",S5,[...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 A5=ie(x5,[["render",T5]]),N5={},D5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M5(t,e){return i.openBlock(),i.createElementBlock("svg",D5,[...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=ie(N5,[["render",M5]]),$5={},O5={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",O5,[...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 I5=ie($5,[["render",L5]]),P5={},F5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V5(t,e){return i.openBlock(),i.createElementBlock("svg",F5,[...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 R5=ie(P5,[["render",V5]]),z5={},U5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q5(t,e){return i.openBlock(),i.createElementBlock("svg",U5,[...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 H5=ie(z5,[["render",q5]]),j5={},W5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z5(t,e){return i.openBlock(),i.createElementBlock("svg",W5,[...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 K5=ie(j5,[["render",Z5]]),G5={},Y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J5(t,e){return i.openBlock(),i.createElementBlock("svg",Y5,[...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 X5=ie(G5,[["render",J5]]),Q5={},ey={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ty(t,e){return i.openBlock(),i.createElementBlock("svg",ey,[...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 ny=ie(Q5,[["render",ty]]),oy={},ry={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iy(t,e){return i.openBlock(),i.createElementBlock("svg",ry,[...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 sy=ie(oy,[["render",iy]]),ay=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:e0,AccountCircle:r0,AccountTreeOutlineRounded:l0,AccountTreeRounded:f0,Add:g0,AddBoxOutlineRounded:C0,ArchiveOutlineRounded:E0,ArrowBackRounded:A0,ArrowDropDownRounded:B0,ArrowForwardRounded:I0,AssignmentOutlineRounded:R0,AttachFileRounded:H0,CalendarTodayOutlineRounded:K0,CancelRounded:X0,ChatOutline:n2,CheckBoxOutlineBlank:s2,CheckBoxOutlineBlankSharp:u2,CheckBoxOutlineRounded:m2,CheckSmallRounded:y2,ChecklistRounded:k2,ChevronLeft:S2,ChevronRight:D2,CloseRounded:O2,ContactsOutlineRounded:F2,ContentCopyOutline:U2,DeleteOutlineRounded:W2,DownloadRounded:Y2,DragIndicator:ev,EditDocumentRounded:rv,EditOutline:lv,ErrorOutlineRounded:fv,FilterListRounded:gv,FlagRounded:Cv,FlowsheetOutlineRounded:Ev,GifBox:Av,GroupsOutline:Bv,HomeOutlineRounded:Iv,ImageRounded:Rv,Info:Hv,KeyboardArrowDown:Kv,KeyboardArrowUp:Xv,Loading:n3,Lock:s3,LogoutRounded:u3,Menu:m3,MoreHoriz:y3,MoreTimeRounded:k3,MoreVert:S3,MountainFlagOutlineRounded:D3,PersonAddOutlineRounded:O3,PictureAsPdfRounded:F3,RadioButtonChecked:U3,RadioButtonCheckedOutline:W3,RadioButtonUnchecked:Y3,RemoveRounded:e5,SearchRounded:r5,SelectCheckBox:l5,SendRounded:f5,Settings:g5,SlideshowRounded:C5,Target:E5,TaskOutlineRounded:A5,TextSnippetRounded:B5,TimerOutline:I5,ViewComfyAltRounded:R5,ViewCompactAltRounded:H5,ViewTimelineRounded:K5,WarningOutlineRounded:X5,WarningRounded:ny,WaterfallChartRounded:sy},Symbol.toStringTag,{value:"Module"})),ly={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Ea={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Zc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},cy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Zc,...cy});const dp={ROUND:"round",ROUNDED:"rounded"},uy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ve=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Ea.MD}},setup(t){const e=t,n=i.computed(()=>ay[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 dy=["type"],fy={key:0,class:"ao-button__label"},me=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ly.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>dp.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",fy,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ve,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,dy))}});function py(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 ct=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}=py(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 my={key:0,class:"ao-card-horiz__drag ao-card__drag"},hy={class:"ao-card-horiz__header"},gy={key:0,class:"ao-card-horiz__avatar"},vy={class:"ao-card-horiz__title-group"},yy={key:0,class:"ao-card-horiz__subtitle"},_y={key:1,class:"ao-card-horiz__header"},Cy={key:1,class:"ao-card-horiz__body"},by={key:2,class:"ao-card-horiz__footer"},ky={key:3,class:"ao-card-horiz__secondary"},fp=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",my,[i.createVNode(ve,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",hy,[t.icon?(i.openBlock(),i.createElementBlock("div",gy,[i.createVNode(ve,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",vy,[i.createVNode(ct,{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",yy,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",_y,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(uy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(ve,{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(ve,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},wy={months:"months",weeks:"weeks",days:"days"},Ey={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},pp={BEFORE:"before",AFTER:"after"},mp={START:"start",end:"end"},hp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Oe={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var gp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(gp||{});const xy={add:"add",remove:"remove",moved:"moved"};var vp=(t=>(t.HOURS="hours",t.DAYS="days",t))(vp||{});const No={project:"projectId",type:"typeId",assignee:"assigneeId"};function Ks(t){"@babel/helpers - typeof";return Ks=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},Ks(t)}function Fn(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 pt(t){qe(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ks(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 Sy(t,e){qe(2,arguments);var n=pt(t).getTime(),o=Fn(e);return new Date(n+o)}var Ty={};function Gi(){return Ty}function Oi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function gd(t){qe(1,arguments);var e=pt(t);return e.setHours(0,0,0,0),e}var Ay=864e5;function Ny(t,e){qe(2,arguments);var n=gd(t),o=gd(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/Ay)}function Dy(t,e){qe(2,arguments);var n=pt(t),o=pt(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var yp=6e4,_p=36e5;function My(t){return qe(1,arguments),t instanceof Date||Ks(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Cp(t){if(qe(1,arguments),!My(t)&&typeof t!="number")return!1;var e=pt(t);return!isNaN(Number(e))}function ac(t,e){qe(2,arguments);var n=Fn(e);return Sy(t,-n)}var By=864e5;function $y(t){qe(1,arguments);var e=pt(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 Gs(t){qe(1,arguments);var e=1,n=pt(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 bp(t){qe(1,arguments);var e=pt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Gs(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Gs(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Oy(t){qe(1,arguments);var e=bp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Gs(n);return o}var Ly=6048e5;function Iy(t){qe(1,arguments);var e=pt(t),n=Gs(e).getTime()-Oy(e).getTime();return Math.round(n/Ly)+1}function Ys(t,e){var n,o,r,s,a,l,c,u;qe(1,arguments);var d=Gi(),f=Fn((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=pt(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 kp(t,e){var n,o,r,s,a,l,c,u;qe(1,arguments);var d=pt(t),f=d.getUTCFullYear(),p=Gi(),m=Fn((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=Ys(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Ys(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Py(t,e){var n,o,r,s,a,l,c,u;qe(1,arguments);var d=Gi(),f=Fn((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=kp(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Ys(m,e);return h}var Fy=6048e5;function Vy(t,e){qe(1,arguments);var n=pt(t),o=Ys(n,e).getTime()-Py(n,e).getTime();return Math.round(o/Fy)+1}function Ae(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Ry={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Ae(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Ae(o+1,2)},d:function(e,n){return Ae(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 Ae(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ae(e.getUTCHours(),n.length)},m:function(e,n){return Ae(e.getUTCMinutes(),n.length)},s:function(e,n){return Ae(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 Ae(s,n.length)}};const Xn=Ry;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zy={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Xn.y(e,n)},Y:function(e,n,o,r){var s=kp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Ae(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Ae(a,n.length)},R:function(e,n){var o=bp(e);return Ae(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Ae(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 Ae(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 Ae(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Xn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return Ae(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=Vy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Ae(s,n.length)},I:function(e,n,o){var r=Iy(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Ae(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Xn.d(e,n)},D:function(e,n,o){var r=$y(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Ae(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 Ae(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 Ae(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 Ae(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),s;switch(r===12?s=dr.noon:r===0?s=dr.midnight:s=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),s;switch(r>=17?s=dr.evening:r>=12?s=dr.afternoon:r>=4?s=dr.morning:s=dr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Xn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Xn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Xn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xn.s(e,n)},S:function(e,n){return Xn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return yd(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return yd(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+vd(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+vd(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return Ae(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Ae(a,n.length)}};function vd(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+Ae(s,2)}function yd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Ae(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Ae(Math.floor(r/60),2),a=Ae(r%60,2);return o+s+n+a}const Uy=zy;var _d=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"})}},wp=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"})}},qy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return _d(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}}",_d(r,n)).replace("{{time}}",wp(s,n))},Hy={p:wp,P:qy};const jy=Hy;var Wy=["D","DD"],Zy=["YY","YYYY"];function Ky(t){return Wy.indexOf(t)!==-1}function Gy(t){return Zy.indexOf(t)!==-1}function Cd(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 Yy={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"}},Jy=function(e,n,o){var r,s=Yy[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 Xy=Jy;function yl(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 Qy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n7={date:yl({formats:Qy,defaultWidth:"full"}),time:yl({formats:e7,defaultWidth:"full"}),dateTime:yl({formats:t7,defaultWidth:"full"})};const o7=n7;var r7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i7=function(e,n,o,r){return r7[e]};const s7=i7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var a7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},c7={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"]},u7={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"]},d7={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"}},f7={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"}},p7=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"},m7={ordinalNumber:p7,era:ai({values:a7,defaultWidth:"wide"}),quarter:ai({values:l7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:c7,defaultWidth:"wide"}),day:ai({values:u7,defaultWidth:"wide"}),dayPeriod:ai({values:d7,defaultWidth:"wide",formattingValues:f7,defaultFormattingWidth:"wide"})};const h7=m7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?v7(l,function(f){return f.test(a)}):g7(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 g7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function v7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function y7(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 _7=/^(\d+)(th|st|nd|rd)?/i,C7=/\d+/i,b7={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},k7={any:[/^b/i,/^(a|c)/i]},w7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},E7={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},S7={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]},T7={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},A7={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]},N7={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},D7={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}},M7={ordinalNumber:y7({matchPattern:_7,parsePattern:C7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:b7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),quarter:li({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:S7,defaultParseWidth:"any"}),day:li({matchPatterns:T7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:D7,defaultParseWidth:"any"})};const B7=M7;var $7={code:"en-US",formatDistance:Xy,formatLong:o7,formatRelative:s7,localize:h7,match:B7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ep=$7;var O7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I7=/^'([^]*?)'?$/,P7=/''/g,F7=/[a-zA-Z]/;function xp(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=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:Ep,T=Fn((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 S=Fn((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(!(S>=0&&S<=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=pt(t);if(!Cp(N))throw new RangeError("Invalid time value");var O=Oi(N),A=ac(N,O),D={firstWeekContainsDate:T,weekStartsOn:S,locale:E,_originalDate:N},M=w.match(L7).map(function(L){var I=L[0];if(I==="p"||I==="P"){var j=jy[I];return j(L,E.formatLong)}return L}).join("").match(O7).map(function(L){if(L==="''")return"'";var I=L[0];if(I==="'")return V7(L);var j=Uy[I];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Gy(L)&&Cd(L,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ky(L)&&Cd(L,e,String(t)),j(A,L,E.localize,D);if(I.match(F7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return L}).join("");return M}function V7(t){var e=t.match(I7);return e?e[1].replace(P7,"'"):t}function R7(t,e,n){var o,r,s,a,l,c,u,d,f,p;qe(2,arguments);var m=pt(t),h=pt(e),g=Gi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:Ep,C=Fn((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=Ny(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=ac(m,Oi(m)),w=ac(h,Oi(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return xp(m,b,{locale:y,weekStartsOn:C})}function Li(t,e){var n;qe(1,arguments);var o=Fn((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=H7(t),s;if(r.date){var a=j7(r.date,o);s=W7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=Z7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=K7(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 ws={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},z7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,U7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,q7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function H7(t){var e={},n=t.split(ws.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ws.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ws.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ws.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function j7(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 W7(t,e){if(e===null)return new Date(NaN);var n=t.match(z7);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return Q7(e,l,c)?G7(e,l,c):new Date(NaN);var u=new Date(0);return!J7(e,s,a)||!X7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function Z7(t){var e=t.match(U7);if(!e)return NaN;var n=_l(e[1]),o=_l(e[2]),r=_l(e[3]);return e_(n,o,r)?n*_p+o*yp+r*1e3:NaN}function _l(t){return t&&parseFloat(t.replace(",","."))||0}function K7(t){if(t==="Z")return 0;var e=t.match(q7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return t_(o,r)?n*(o*_p+r*yp):NaN}function G7(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 Y7=[31,null,31,30,31,30,31,31,30,31,30,31];function Sp(t){return t%400===0||t%4===0&&t%100!==0}function J7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Y7[e]||(Sp(t)?29:28))}function X7(t,e){return e>=1&&e<=(Sp(t)?366:365)}function Q7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function e_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function t_(t,e){return e>=0&&e<=59}var yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function n_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o_(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 Je={},Tp={},ui={},Yi={},Rr={},xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.lexoHelper=void 0;xa.lexoHelper={arrayCopy:r_};function r_(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class i_{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}Ji.default=i_;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.LexoInteger=void 0;const Es=xa,s_=Ji;class pe{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 pe.make(n,r,s)}static zero(e){return new pe(e,0,pe.ZERO_MAG)}static one(e){return pe.make(e,1,pe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return pe.zero(e);if(r===o.length)return new pe(e,n,o);const s=new Array(r).fill(0);return Es.lexoHelper.arrayCopy(o,0,s,0,r),new pe(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 pe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Es.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=pe.complement(e,o,n.length),s=pe.add(e,n,r);return s[s.length-1]=0,pe.add(e,s,pe.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=pe.add(this.sys,this.mag,e.mag);return pe.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=pe.compare(this.mag,e.mag);return n===0?pe.zero(this.sys):n<0?pe.make(this.sys,this.sign===-1?1:-1,pe.subtract(this.sys,e.mag,this.mag)):pe.make(this.sys,this.sign===-1?-1:1,pe.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?pe.make(this.sys,1,e.mag):pe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?pe.make(this.sys,1,this.mag):pe.make(this.sys,-1,this.mag);const n=pe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?pe.make(this.sys,1,n):pe.make(this.sys,-1,n)}negate(){return this.isZero()?this:pe.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 Es.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),pe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return pe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Es.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),pe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return pe.make(this.sys,this.sign,pe.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=pe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?pe.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 s_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Rr.LexoInteger=pe;pe.ZERO_MAG=[0];pe.ONE_MAG=[1];pe.NEGATIVE_SIGN=-1;pe.ZERO_SIGN=0;pe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Rr,a_=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(di.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new a_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Yi.LexoDecimal=Pt;var xs={},bd;function Ap(){if(bd)return xs;bd=1,Object.defineProperty(xs,"__esModule",{value:!0});const t=Rr,e=Dp();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 Kc={},Np={};Object.defineProperty(Np,"__esModule",{value:!0});var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem10=void 0;class l_{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)}}Sa.LexoNumeralSystem10=l_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem36=void 0;class c_{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]}}Ta.LexoNumeralSystem36=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem64=void 0;class u_{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]}}Aa.LexoNumeralSystem64=u_;(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Np,t),n(Sa,t),n(Ta,t),n(Aa,t)})(Kc);var kd;function Dp(){if(kd)return ui;kd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Ap(),n=Ji,o=Kc;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 ui.LexoRank=r,ui}(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Dp(),t),n(Ap(),t),n(Yi,t),n(Rr,t)})(Tp);(function(t){var e=yt&&yt.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=yt&&yt.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Tp,t),n(Kc,t)})(Je);const _i=60,d_=8,wd=_i*d_;function Na(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/wd),r=Math.floor(t%wd/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function Mp(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 f_(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 p_(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?Mp(n.milestones):0;return e+o},0))??0}function m_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Je.LexoRank.parse(n.rank).genPrev().format()}else return Je.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Je.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Je.LexoRank.parse(o.rank).between(Je.LexoRank.parse(n.rank)).format()}}function Qi(t){if(t.length===0)return Je.LexoRank.middle().format();const e=t[0];return Je.LexoRank.parse(e.rank).genPrev().format()}function Da(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return Cp(n)?xp(n,e):""}function Gc(t,e){return t.status.id===e.id}function h_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Gc(n,e))}function g_(t,e){return{...t,status:h_(t,e)?$i.done:$i.todo}}const Bp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function v_(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 y_(t,e=.15){var n;if(t.startsWith("#"))return v_(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 $p(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Ed(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:$p(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 __=["title"],C_={key:0,className:"ao-avatar__initials"},b_=["src"],qn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Ea.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=m_(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",C_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,b_)):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,__))}});const k_={class:"ao-card-template__subitems"},w_={class:"ao-card-template__subitem"},E_={class:"ao-card-template__subitem-number"},x_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__body"},A_={class:"ao-card-template__col ao-card-template__col--phases"},N_={class:"ao-card-template__col-title"},D_={class:"ao-card-template__col-label"},M_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},B_={class:"ao-card-template__footer"},$_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},O_={class:"ao-card-template__col-title"},L_={class:"ao-card-template__col-label"},I_={class:"ao-card-template__col-body"},P_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},F_={class:"ao-card-template__col-title"},V_={class:"ao-card-template__col-label"},R_={class:"ao-card-template__col-body"},z_={class:"ao-card-template-item__secondary"},Cl=5,U_=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,Cl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>Cl?n.phases.length-Cl:0);return(c,u)=>(i.openBlock(),i.createBlock(fp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",k_,[i.createElementVNode("li",w_,[i.createVNode(ve,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",E_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",x_,[i.createVNode(ve,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",S_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",T_,[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createVNode(ve,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",D_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",M_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",z_,[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",$_,[i.createElementVNode("div",O_,[i.createElementVNode("span",L_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",I_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",P_,[i.createElementVNode("div",F_,[i.createElementVNode("span",V_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",R_,[i.createVNode(qn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const q_={class:"ao-page-header"},H_={class:"ao-page-header-main"},j_={key:0,class:"ao-page-header-secondary"},es=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",q_,[i.createElementVNode("div",H_,[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",j_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const W_=["type"],Z_={key:0,class:"ao-button-card__label"},go=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Zc.BLACK},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>dp.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",Z_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(ve,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,W_))}});const K_={class:"ao-card-template-item__footer"},G_={key:0,class:"ao-card-template-item__subitem"},Y_={class:"ao-card-template-item__subitem-number"},J_={class:"ao-card-template-item__secondary"},Yc=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(fp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",K_,[(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",G_,[i.createVNode(ve,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",Y_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",J_,[i.createVNode(me,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const X_=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?Mp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Yc,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"]))}}),Q_=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(Yc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),eC={class:"ao-list__footer"},tC=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(ho),{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(ct,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(Q_,{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",eC,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),nC=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(Yc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),oC={class:"ao-list__footer"},rC=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(ho),{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(ct,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(nC,{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",oC,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),iC={class:"ao-modal"},sC={key:0,class:"ao-modal__header"},aC={class:"ao-modal__header-meta"},lC={class:"ao-modal__title-group"},cC={class:"ao-modal__body"},uC={key:1,class:"ao-modal__footer"},Ma=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",iC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",sC,[i.createElementVNode("div",aC,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",lC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",cC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",uC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Js=Math.round,Ss=Math.floor,co=t=>({x:t,y:t}),dC={left:"right",right:"left",bottom:"top",top:"bottom"},fC={start:"end",end:"start"};function Jc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Ba(t){return t.split("-")[1]}function pC(t){return t==="x"?"y":"x"}function Op(t){return t==="y"?"height":"width"}function Xc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Lp(t){return pC(Xc(t))}function mC(t,e,n){n===void 0&&(n=!1);const o=Ba(t),r=Lp(t),s=Op(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Xs(a)),[a,Xs(a)]}function hC(t){const e=Xs(t);return[lc(t),e,lc(e)]}function lc(t){return t.replace(/start|end/g,e=>fC[e])}function gC(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 vC(t,e,n,o){const r=Ba(t);let s=gC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(lc)))),s}function Xs(t){return t.replace(/left|right|bottom|top/g,e=>dC[e])}function yC(t){return{top:0,right:0,bottom:0,left:0,...t}}function _C(t){return typeof t!="number"?yC(t):{top:t,right:t,bottom:t,left:t}}function Qs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xd(t,e,n){let{reference:o,floating:r}=t;const s=Xc(e),a=Lp(e),l=Op(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let 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 CC=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}=xd(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}=xd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Ip(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}=Jc(e,t),h=_C(m),y=l[p?f==="floating"?"reference":"floating":f],C=Qs(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=Qs(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 bC=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}=Jc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Nr(r),v=Nr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Xs(l)]:hC(l));!p&&h!=="none"&&k.push(...vC(l,g,h,_));const w=[l,...k],b=await Ip(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=mC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var S,N;const A=(((S=s.flip)==null?void 0:S.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,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:N.placement;if(!M)switch(m){case"bestFit":{var O;const L=(O=T.map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,R)=>j+R,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:O[0];L&&(M=L);break}case"initialPlacement":M=l;break}if(r!==M)return{reset:{placement:M}}}return{}}}},kC=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}=Jc(t,e),c=await Ip(e,l),u=Nr(n),d=Ba(n),f=Xc(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?Ii(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Ii(y,b):b}if(v&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),T=Ft(c.top,0),S=Ft(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Ft(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 uo(t){return Pp(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Hn(t){var e;return(e=(Pp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pp(t){return t instanceof Node||t instanceof Bt(t).Node}function Vn(t){return t instanceof Element||t instanceof Bt(t).Element}function _n(t){return t instanceof HTMLElement||t instanceof Bt(t).HTMLElement}function Sd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function ts(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function wC(t){return["table","td","th"].includes(uo(t))}function Qc(t){const e=eu(),n=Ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function EC(t){let e=Dr(t);for(;_n(e)&&!$a(e);){if(Qc(e))return e;e=Dr(e)}return null}function eu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $a(t){return["html","body","#document"].includes(uo(t))}function Ht(t){return Bt(t).getComputedStyle(t)}function Oa(t){return Vn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(uo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sd(t)&&t.host||Hn(t);return Sd(e)?e.host:e}function Fp(t){const e=Dr(t);return $a(e)?t.ownerDocument?t.ownerDocument.body:t.body:_n(e)&&ts(e)?e:Fp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Fp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Bt(r);return s?e.concat(a,a.visualViewport||[],ts(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Vp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=_n(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Js(n)!==s||Js(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function tu(t){return Vn(t)?t:t.contextElement}function br(t){const e=tu(t);if(!_n(e))return co(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Vp(e);let a=(s?Js(n.width):n.width)/o,l=(s?Js(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xC=co(0);function Rp(t){const e=Bt(t);return!eu()||!e.visualViewport?xC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function SC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Bt(t)?!1:e}function qo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=tu(t);let a=co(1);e&&(o?Vn(o)&&(a=br(o)):a=br(t));const l=SC(s,n,o)?Rp(s):co(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Bt(s),m=o&&Vn(o)?Bt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=br(h),y=h.getBoundingClientRect(),C=Ht(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=Bt(h).frameElement}}return Qs({width:d,height:f,x:c,y:u})}function TC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=_n(n),s=Hn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=co(1);const c=co(0);if((r||!r&&o!=="fixed")&&((uo(n)!=="body"||ts(s))&&(a=Oa(n)),_n(n))){const u=qo(n);l=br(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function AC(t){return Array.from(t.getClientRects())}function zp(t){return qo(Hn(t)).left+Oa(t).scrollLeft}function NC(t){const e=Hn(t),n=Oa(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+zp(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function DC(t,e){const n=Bt(t),o=Hn(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=eu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function MC(t,e){const n=qo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=_n(t)?br(t):co(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Td(t,e,n){let o;if(e==="viewport")o=DC(t,n);else if(e==="document")o=NC(Hn(t));else if(Vn(e))o=MC(e,n);else{const r=Rp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Qs(o)}function Up(t,e){const n=Dr(t);return n===e||!Vn(n)||$a(n)?!1:Ht(n).position==="fixed"||Up(n,e)}function BC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>Vn(l)&&uo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Dr(t):t;for(;Vn(a)&&!$a(a);){const l=Ht(a),c=Qc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ts(a)&&!c&&Up(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function $C(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=Td(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},Td(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function OC(t){return Vp(t)}function LC(t,e,n){const o=_n(e),r=Hn(e),s=n==="fixed",a=qo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=co(0);if(o||!o&&!s)if((uo(e)!=="body"||ts(r))&&(l=Oa(e)),o){const u=qo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=zp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ad(t,e){return!_n(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function qp(t,e){const n=Bt(t);if(!_n(t))return n;let o=Ad(t,e);for(;o&&wC(o)&&Ht(o).position==="static";)o=Ad(o,e);return o&&(uo(o)==="html"||uo(o)==="body"&&Ht(o).position==="static"&&!Qc(o))?n:o||EC(t)||n}const IC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||qp,s=this.getDimensions;return{reference:LC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function PC(t){return Ht(t).direction==="rtl"}const FC={convertOffsetParentRelativeRectToViewportRelativeRect:TC,getDocumentElement:Hn,getClippingRect:$C,getOffsetParent:qp,getElementRects:IC,getClientRects:AC,getDimensions:OC,getScale:br,isElement:Vn,isRTL:PC};function VC(t,e){let n=null,o;const r=Hn(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=Ss(d),h=Ss(r.clientWidth-(u+f)),g=Ss(r.clientHeight-(d+p)),y=Ss(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Ft(0,Ii(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 RC(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=tu(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?VC(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?qo(t):null;c&&y();function y(){const C=qo(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 zC=(t,e,n)=>{const o=new Map,r={platform:FC,...n},s={...r.platform,_c:o};return CC(t,e,{...r,platform:s})},UC=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=RC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||zC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[bC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),kC({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 dn(t){return[null,void 0].indexOf(t)!==-1}function qC(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||dn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>dn(f)?s.value==="single"?{}:[]:f;return{update:c}}function HC(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 jC(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 WC(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 bl(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 ZC(t){return Object.prototype.toString.call(t)==="[object Object]"}function KC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function GC(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:S,max:N,strict:O,closeOnSelect:A,closeOnDeselect:D,groups:M,reverse:L,infinite:I,groupOptions:j,groupHideEmpty:R,groupSelect:q,onCreate:F,disabledProp:Q,searchStart:P,searchFilter:re}=i.toRefs(t),oe=i.getCurrentInstance().proxy,G=n.iv,z=n.ev,te=n.search,de=n.clearSearch,xe=n.update,V=n.pointer,ee=n.setPointer,ae=n.clearPointer,Ze=n.focus,ye=n.deactivate,_e=n.close,Se=n.localize,it=i.ref([]),bt=i.ref([]),Fe=i.ref(!1),mt=i.ref(null),kt=i.ref(I.value&&a.value===-1?10:a.value),Wn=i.computed(()=>c.value||u.value||!1),bo=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Ve=i.computed(()=>{if(M.value){let B=Zt.value||[],Y=[];return B.forEach(ge=>{ti(ge[j.value]).forEach(Be=>{Y.push(Object.assign({},Be,ge[Q.value]?{[Q.value]:!0}:{}))})}),Y}else{let B=ti(bt.value||[]);return it.value.length&&(B=B.concat(it.value)),B}}),ht=i.computed(()=>{let B=Ve.value;return L.value&&(B=B.reverse()),Tn.value.length&&(B=Tn.value.concat(B)),ei(B)}),st=i.computed(()=>{let B=ht.value;return kt.value>0&&(B=B.slice(0,kt.value)),B}),Zt=i.computed(()=>{if(!M.value)return[];let B=[],Y=bt.value||[];return it.value.length&&B.push({[T.value]:" ",[j.value]:[...it.value],__CREATE__:!0}),B.concat(Y)}),Sn=i.computed(()=>{let B=[...Zt.value].map(Y=>({...Y}));return Tn.value.length&&(B[0]&&B[0].__CREATE__?B[0][j.value]=[...Tn.value,...B[0][j.value]]:B=[{[T.value]:" ",[j.value]:[...Tn.value],__CREATE__:!0}].concat(B)),B}),Zn=i.computed(()=>{if(!M.value)return[];let B=Sn.value;return Eo((B||[]).map((Y,ge)=>{const Be=ti(Y[j.value]);return{...Y,index:ge,group:!0,[j.value]:ei(Be,!1).map(An=>Object.assign({},An,Y[Q.value]?{[Q.value]:!0}:{})),__VISIBLE__:ei(Be).map(An=>Object.assign({},An,Y[Q.value]?{[Q.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!dn(G.value[b.value]);case"multiple":case"tags":return!dn(G.value)&&G.value.length>0}}),Kn=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(G.value,oe):G.value&&G.value.length>1?`${G.value.length} options selected`:"1 option selected"),ir=i.computed(()=>!Ve.value.length&&!Fe.value&&!Tn.value.length),sr=i.computed(()=>Ve.value.length>0&&st.value.length==0&&(te.value&&M.value||!M.value)),Tn=i.computed(()=>Wn.value===!1||!te.value?[]:vs(te.value)!==-1?[]:[{[b.value]:te.value,[cn.value[0]]:te.value,[d.value]:te.value,__CREATE__:!0}]),cn=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ms=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Fe.value),Kt=B=>{switch(typeof B!="object"&&(B=Tt(B)),r.value){case"single":xe(B);break;case"multiple":case"tags":xe(G.value.concat(B));break}e.emit("select",Et(B),B,oe)},wt=B=>{switch(typeof B!="object"&&(B=Tt(B)),r.value){case"single":Jr();break;case"tags":case"multiple":xe(Array.isArray(B)?G.value.filter(Y=>B.map(ge=>ge[b.value]).indexOf(Y[b.value])===-1):G.value.filter(Y=>Y[b.value]!=B[b.value]));break}e.emit("deselect",Et(B),B,oe)},Et=B=>h.value?B:B[b.value],ar=B=>{wt(B)},hs=(B,Y)=>{if(Y.button!==0){Y.preventDefault();return}ar(B)},Jr=()=>{xe(ms.value),e.emit("clear",oe)},xt=B=>{if(B.group!==void 0)return r.value==="single"?!1:gs(B[j.value])&&B[j.value].length;switch(r.value){case"single":return!dn(G.value)&&G.value[b.value]==B[b.value];case"tags":case"multiple":return!dn(G.value)&&G.value.map(Y=>Y[b.value]).indexOf(B[b.value])!==-1}},lr=B=>B[Q.value]===!0,Gn=()=>N===void 0||N.value===-1||!ko.value&&N.value>0?!1:G.value.length>=N.value,cr=B=>{if(!lr(B)){if(F&&F.value&&!xt(B)&&B.__CREATE__&&(B={...B},delete B.__CREATE__,B=F.value(B,oe),B instanceof Promise)){Fe.value=!0,B.then(Y=>{Fe.value=!1,St(Y)});return}St(B)}},St=B=>{switch(B.__CREATE__&&(B={...B},delete B.__CREATE__),r.value){case"single":if(B&&xt(B)){S.value&&wt(B),D.value&&(ae(),_e());return}B&&wo(B),w.value&&de(),A.value&&(ae(),_e()),B&&Kt(B);break;case"multiple":if(B&&xt(B)){wt(B),D.value&&(ae(),_e());return}if(Gn()){e.emit("max",oe);return}B&&(wo(B),Kt(B)),w.value&&de(),l.value&&ae(),A.value&&_e();break;case"tags":if(B&&xt(B)){wt(B),D.value&&(ae(),_e());return}if(Gn()){e.emit("max",oe);return}B&&wo(B),w.value&&de(),B&&Kt(B),l.value&&ae(),A.value&&_e();break}A.value||Ze()},Yn=B=>{if(!(lr(B)||r.value==="single"||!q.value)){switch(r.value){case"multiple":case"tags":pl(B[j.value])?wt(B[j.value]):Kt(B[j.value].filter(Y=>G.value.map(ge=>ge[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[Q.value]).filter((Y,ge)=>G.value.length+1+ge<=N.value||N.value===-1)),l.value&&V.value&&ee(Zn.value.filter(Y=>!Y[Q.value])[V.value.index]);break}A.value&&ye()}},wo=B=>{Tt(B[b.value])===void 0&&Wn.value&&(e.emit("tag",B[b.value],oe),e.emit("option",B[b.value],oe),e.emit("create",B[b.value],oe),bo.value&&ml(B),de())},Xr=()=>{r.value!=="single"&&Kt(st.value.filter(B=>!B.disabled&&!xt(B)))},pl=B=>B.find(Y=>!xt(Y)&&!Y[Q.value])===void 0,gs=B=>B.find(Y=>!xt(Y))===void 0,Tt=B=>Ve.value[Ve.value.map(Y=>String(Y[b.value])).indexOf(String(B))],vs=B=>Ve.value.findIndex(Y=>cn.value.some(ge=>(parseInt(Y[ge])==Y[ge]?parseInt(Y[ge]):Y[ge])===(parseInt(B)==B?parseInt(B):B))),Qr=B=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&xt(B),ml=B=>{it.value.push(B)},Eo=B=>R.value?B.filter(Y=>te.value?Y.__VISIBLE__.length:Y[j.value].length):B.filter(Y=>te.value?Y.__VISIBLE__.length:!0),ei=(B,Y=!0)=>{let ge=B;if(te.value&&_.value){let Be=re.value;Be||(Be=(An,Yt,ri)=>cn.value.some(Nn=>{let _s=bl(Se(An[Nn]),O.value);return P.value?_s.startsWith(bl(Yt,O.value)):_s.indexOf(bl(Yt,O.value))!==-1})),ge=ge.filter(An=>Be(An,te.value,oe))}return l.value&&Y&&(ge=ge.filter(Be=>!Qr(Be))),ge},ti=B=>{let Y=B;return ZC(Y)&&(Y=Object.keys(Y).map(ge=>{let Be=Y[ge];return{[b.value]:ge,[cn.value[0]]:Be,[d.value]:Be}})),Y=Y.map(ge=>typeof ge=="object"?ge:{[b.value]:ge,[cn.value[0]]:ge,[d.value]:ge}),Y},Ne=()=>{dn(z.value)||(G.value=Jn(z.value))},Gt=B=>(Fe.value=!0,new Promise((Y,ge)=>{o.value(te.value,oe).then(Be=>{bt.value=Be||[],typeof B=="function"&&B(Be),Fe.value=!1}).catch(Be=>{console.error(Be),bt.value=[],Fe.value=!1}).finally(()=>{Y()})})),ni=()=>{if(ko.value)if(r.value==="single"){let B=Tt(G.value[b.value]);if(B!==void 0){let Y=B[d.value];G.value[d.value]=Y,h.value&&(z.value[d.value]=Y)}}else G.value.forEach((B,Y)=>{let ge=Tt(G.value[Y][b.value]);if(ge!==void 0){let Be=ge[d.value];G.value[Y][d.value]=Be,h.value&&(z.value[Y][d.value]=Be)}})},ys=B=>{Gt(B)},Jn=B=>dn(B)?r.value==="single"?{}:[]:h.value?B:r.value==="single"?Tt(B)||(E.value?{[d.value]:B,[b.value]:B,[cn.value[0]]:B}:{}):B.filter(Y=>!!Tt(Y)||E.value).map(Y=>Tt(Y)||{[d.value]:Y,[b.value]:Y,[cn.value[0]]:Y}),oi=()=>{mt.value=i.watch(te,B=>{B.length<v.value||!B&&v.value!==0||(Fe.value=!0,k.value&&(bt.value=[]),setTimeout(()=>{B==te.value&&o.value(te.value,oe).then(Y=>{(B==te.value||!te.value)&&(bt.value=Y,V.value=st.value.filter(ge=>ge[Q.value]!==!0)[0]||null,Fe.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!dn(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?Gt(Ne):h.value==!0&&Ne():(bt.value=o.value,Ne()),y.value>-1&&oi(),i.watch(y,(B,Y)=>{mt.value&&mt.value(),B>=0&&oi()}),i.watch(z,B=>{if(dn(B)){xe(Jn(B),!1);return}switch(r.value){case"single":(h.value?B[b.value]!=G.value[b.value]:B!=G.value[b.value])&&xe(Jn(B),!1);break;case"multiple":case"tags":KC(h.value?B.map(Y=>Y[b.value]):B,G.value.map(Y=>Y[b.value]))||xe(Jn(B),!1);break}},{deep:!0}),i.watch(o,(B,Y)=>{typeof t.options=="function"?C.value&&(!Y||B&&B.toString()!==Y.toString())&&Gt():(bt.value=t.options,Object.keys(G.value).length||Ne(),ni())}),i.watch(d,ni),i.watch(a,(B,Y)=>{kt.value=I.value&&B===-1?10:B}),{pfo:ht,fo:st,filteredOptions:st,hasSelected:ko,multipleLabelText:Kn,eo:Ve,extendedOptions:Ve,eg:Zt,extendedGroups:Zt,fg:Zn,filteredGroups:Zn,noOptions:ir,noResults:sr,resolving:Fe,busy:Yr,offset:kt,select:Kt,deselect:wt,remove:ar,selectAll:Xr,clear:Jr,isSelected:xt,isDisabled:lr,isMax:Gn,getOption:Tt,handleOptionClick:cr,handleGroupClick:Yn,handleTagRemove:hs,refreshOptions:ys,resolveOptions:Gt,refreshLabels:ni}}function YC(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),S=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>oe(C.value)),O=i.computed(()=>{const z=S.value?C.value:oe(C.value),te=E.value.map(xe=>xe[a.value]).indexOf(z[a.value]);let de=E.value[te-1];return de===void 0&&(de=D.value),de}),A=i.computed(()=>{let z=E.value.map(te=>te.label).indexOf(S.value?C.value[a.value]:oe(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(te=>!te[d.value]);return z[z.map(te=>te[o.value]).indexOf(C.value[o.value])-1]}),I=i.computed(()=>{const z=oe(C.value).__VISIBLE__.filter(te=>!te[d.value]);return z[z.map(te=>te[o.value]).indexOf(C.value[o.value])+1]}),j=i.computed(()=>[...O.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),R=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)},Q=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},P=()=>{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=S.value?M.value:I.value;z===void 0&&(z=A.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=b.value.map(te=>te[o.value]).indexOf(C.value[o.value])+1;b.value.length<=z&&(z=0),v(b.value[z]||null)}i.nextTick(()=>{G()})},re=()=>{if(C.value===null){let z=b.value[b.value.length-1];l.value&&T.value&&(z=R.value,z===void 0&&(z=D.value)),v(z||null)}else if(l.value&&T.value){let z=S.value?j.value:L.value;z===void 0&&(z=S.value?O.value:N.value,z.__CREATE__&&(z=j.value,z===void 0&&(z=O.value))),v(z||null)}else{let z=b.value.map(te=>te[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=b.value.length-1),v(b.value[z]||null)}i.nextTick(()=>{G()})},oe=z=>E.value.find(te=>te.__VISIBLE__.map(de=>de[o.value]).indexOf(z[o.value])!==-1),G=()=>{let z=k.value.querySelector("[data-pointed]");if(!z)return;let te=z.parentElement.parentElement;l.value&&(te=S.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=z.offsetTop+z.offsetHeight-te.clientHeight),z.offsetTop<te.scrollTop&&(te.scrollTop=z.offsetTop)};return i.watch(y,z=>{s.value&&(z.length&&r.value?F():_())}),i.watch(w,z=>{if(z){let te=k.value.querySelectorAll("[data-selected]")[0];if(!te)return;let de=te.parentElement.parentElement;i.nextTick(()=>{de.scrollTop>0||(de.scrollTop=te.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:F,selectPointer:Q,forwardPointer:P,backwardPointer:re}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ho(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function nu(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Fo=Math.max,ea=Math.min,Mr=Math.round;function cc(){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 Hp(){return!/^((?!chrome|android).)*safari/i.test(cc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Ho(t)?$t(t):window,l=a.visualViewport,c=!Hp()&&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 ou(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function JC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function XC(t){return t===$t(t)||!Ut(t)?ou(t):JC(t)}function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function vo(t){return((Ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function ru(t){return Br(vo(t)).left+ou(t).scrollLeft}function Rn(t){return $t(t).getComputedStyle(t)}function iu(t){var e=Rn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function QC(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function eb(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&QC(e),s=vo(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Cn(e)!=="body"||iu(s))&&(l=XC(e)),Ut(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=ru(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function jp(t){var e=Br(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function La(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(nu(t)?t.host:null)||vo(t)}function Wp(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:Ut(t)&&iu(t)?t:Wp(La(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=Wp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],iu(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(La(a)))}function tb(t){return["table","td","th"].indexOf(Cn(t))>=0}function Nd(t){return!Ut(t)||Rn(t).position==="fixed"?null:t.offsetParent}function nb(t){var e=/firefox/i.test(cc()),n=/Trident/i.test(cc());if(n&&Ut(t)){var o=Rn(t);if(o.position==="fixed")return null}var r=La(t);for(nu(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(Cn(r))<0;){var s=Rn(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Ia(t){for(var e=$t(t),n=Nd(t);n&&tb(n)&&Rn(n).position==="static";)n=Nd(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&Rn(n).position==="static")?e:n||nb(t)||e}var Qt="top",bn="bottom",fo="right",In="left",su="auto",Pa=[Qt,bn,fo,In],$r="start",Fi="end",ob="clippingParents",Zp="viewport",fi="popper",rb="reference",Dd=Pa.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),ib=[].concat(Pa,[su]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),sb="beforeRead",ab="read",lb="afterRead",cb="beforeMain",ub="main",db="afterMain",fb="beforeWrite",pb="write",mb="afterWrite",hb=[sb,ab,lb,cb,ub,db,fb,pb,mb];function gb(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 vb(t){var e=gb(t);return hb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function yb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function _b(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 Cb(t,e){var n=$t(t),o=vo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Hp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+ru(t),y:c}}function bb(t){var e,n=vo(t),o=ou(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Fo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Fo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ru(t),c=-o.scrollTop;return Rn(r||n).direction==="rtl"&&(l+=Fo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function kb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&nu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function uc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wb(t,e){var n=Br(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Md(t,e,n){return e===Zp?uc(Cb(t,n)):Ho(e)?wb(e,n):uc(bb(vo(t)))}function Eb(t){var e=Ei(La(t)),n=["absolute","fixed"].indexOf(Rn(t).position)>=0,o=n&&Ut(t)?Ia(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&kb(r,o)&&Cn(r)!=="body"}):[]}function xb(t,e,n,o){var r=e==="clippingParents"?Eb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=Md(t,u,o);return c.top=Fo(d.top,c.top),c.right=ea(d.right,c.right),c.bottom=ea(d.bottom,c.bottom),c.left=Fo(d.left,c.left),c},Md(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function io(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gp(t){var e=t.reference,n=t.element,o=t.placement,r=o?io(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case bn:c={x:a,y:e.y+e.height};break;case fo:c={x:e.x+e.width,y:l};break;case In:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Kp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Yp(){return{top:0,right:0,bottom:0,left:0}}function Sb(t){return Object.assign({},Yp(),t)}function Tb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function au(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?ob:l,u=n.rootBoundary,d=u===void 0?Zp:u,f=n.elementContext,p=f===void 0?fi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Sb(typeof y!="number"?y:Tb(y,Pa)),v=p===fi?rb:fi,_=t.rects.popper,k=t.elements[h?v:p],w=xb(Ho(k)?k:k.contextElement||vo(t.elements.popper),c,d,a),b=Br(t.elements.reference),E=Gp({reference:b,element:_,strategy:"absolute",placement:r}),T=uc(Object.assign({},_,E)),S=p===fi?T:b,N={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},O=t.modifiersData.offset;if(p===fi&&O){var A=O[r];Object.keys(N).forEach(function(D){var M=[fo,bn].indexOf(D)>=0?1:-1,L=[Qt,bn].indexOf(D)>=0?"y":"x";N[D]+=A[L]*M})}return N}var Bd={placement:"bottom",modifiers:[],strategy:"absolute"};function $d(){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 Ab(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Bd:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bd,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:Ho(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var _=vb(_b([].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($d(v,_)){d.rects={reference:eb(v,Ia(_),d.options.strategy==="fixed"),popper:jp(_)},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,S=w.name;typeof b=="function"&&(d=b({state:d,options:T,name:S,instance:m})||d)}}}},update:yb(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!$d(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 Ts={passive:!0};function Nb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ts)}),l&&c.addEventListener("resize",n.update,Ts),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ts)}),l&&c.removeEventListener("resize",n.update,Ts)}}var Db={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nb,data:{}};function Mb(t){var e=t.state,n=t.name;e.modifiersData[n]=Gp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Bb={name:"popperOffsets",enabled:!0,phase:"read",fn:Mb,data:{}},$b={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ob(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function Od(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"),_=In,k=Qt,w=window;if(u){var b=Ia(n),E="clientHeight",T="clientWidth";if(b===$t(n)&&(b=vo(n),Rn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===Qt||(r===In||r===fo)&&s===Fi){k=bn;var S=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=S-o.height,g*=c?1:-1}if(r===In||(r===Qt||r===bn)&&s===Fi){_=fo;var N=f&&b===w&&w.visualViewport?w.visualViewport.width:b[T];m-=N-o.width,m*=c?1:-1}}var O=Object.assign({position:l},u&&$b),A=d===!0?Ob({x:m,y:g},$t(n)):{x:m,y:g};if(m=A.x,g=A.y,c){var D;return Object.assign({},O,(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({},O,(e={},e[k]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Lb(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:io(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Od(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,Od(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 Ib={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lb,data:{}};function Pb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!Cn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Fb(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ut(r)||!Cn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Vb={name:"applyStyles",enabled:!0,phase:"write",fn:Pb,effect:Fb,requires:["computeStyles"]},Rb=[Db,Bb,Ib,Vb],zb=Ab({defaultModifiers:Rb});function Ub(t){return t==="x"?"y":"x"}function Us(t,e,n){return Fo(t,ea(e,n))}function qb(t,e,n){var o=Us(t,e,n);return o>n?n:o}function Hb(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=au(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=io(e.placement),v=Or(e.placement),_=!v,k=Kp(C),w=Ub(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,M=k==="y"?Qt:In,L=k==="y"?bn:fo,I=k==="y"?"height":"width",j=b[k],R=j+y[M],q=j-y[L],F=m?-T[I]/2:0,Q=v===$r?E[I]:T[I],P=v===$r?-T[I]:-E[I],re=e.elements.arrow,oe=m&&re?jp(re):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yp(),z=G[M],te=G[L],de=Us(0,E[I],oe[I]),xe=_?E[I]/2-F-de-z-N.mainAxis:Q-de-z-N.mainAxis,V=_?-E[I]/2+F+de+te+N.mainAxis:P+de+te+N.mainAxis,ee=e.elements.arrow&&Ia(e.elements.arrow),ae=ee?k==="y"?ee.clientTop||0:ee.clientLeft||0:0,Ze=(D=O==null?void 0:O[k])!=null?D:0,ye=j+xe-Ze-ae,_e=j+V-Ze,Se=Us(m?ea(R,ye):R,j,m?Fo(q,_e):q);b[k]=Se,A[k]=Se-j}if(l){var it,bt=k==="x"?Qt:In,Fe=k==="x"?bn:fo,mt=b[w],kt=w==="y"?"height":"width",Wn=mt+y[bt],bo=mt-y[Fe],Ve=[Qt,In].indexOf(C)!==-1,ht=(it=O==null?void 0:O[w])!=null?it:0,st=Ve?Wn:mt-E[kt]-T[kt]-ht+N.altAxis,Zt=Ve?mt+E[kt]+T[kt]-ht-N.altAxis:bo,Sn=m&&Ve?qb(st,mt,Zt):Us(m?st:Wn,mt,m?Zt:bo);b[w]=Sn,A[w]=Sn-mt}e.modifiersData[o]=A}}var jb={name:"preventOverflow",enabled:!0,phase:"main",fn:Hb,requiresIfExists:["offset"]},Wb={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(t){return t.replace(/left|right|bottom|top/g,function(e){return Wb[e]})}var Zb={start:"end",end:"start"};function Ld(t){return t.replace(/start|end/g,function(e){return Zb[e]})}function Kb(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?ib:c,d=Or(o),f=d?l?Dd:Dd.filter(function(h){return Or(h)===d}):Pa,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]=au(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[io(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Gb(t){if(io(t)===su)return[];var e=qs(t);return[Ld(t),e,Ld(e)]}function Yb(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=io(y),v=C===y,_=c||(v||!h?[qs(y)]:Gb(y)),k=[y].concat(_).reduce(function(oe,G){return oe.concat(io(G)===su?Kb(e,{placement:G,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):G)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,S=k[0],N=0;N<k.length;N++){var O=k[N],A=io(O),D=Or(O)===$r,M=[Qt,bn].indexOf(A)>=0,L=M?"width":"height",I=au(e,{placement:O,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=M?D?fo:In:D?bn:Qt;w[L]>b[L]&&(j=qs(j));var R=qs(j),q=[];if(s&&q.push(I[A]<=0),l&&q.push(I[j]<=0,I[R]<=0),q.every(function(oe){return oe})){S=O,T=!1;break}E.set(O,q)}if(T)for(var F=h?3:1,Q=function(G){var z=k.find(function(te){var de=E.get(te);if(de)return de.slice(0,G).every(function(xe){return xe})});if(z)return S=z,"break"},P=F;P>0;P--){var re=Q(P);if(re==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var Jb={name:"flip",enabled:!0,phase:"main",fn:Yb,requiresIfExists:["offset"],data:{_skip:!1}};function Xb(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=zb(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[jb,Jb,{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 Qb(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 e9(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,S=n.tags,N=n.isOpen,O=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"]),I=()=>{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,Q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(F=[...E.value.querySelectorAll("[data-tags] > *")].filter(P=>P!==S.value),Q=F.findIndex(P=>P===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let P=g.value.filter(re=>!re.disabled&&re.remove!==!1);P.length&&C(P[P.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(Q!==-1&&Q!==void 0){y([...g.value].filter((re,oe)=>oe!==Q)),Q===F.length-1&&(F.length-1?F[F.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(L.value.indexOf("enter")===-1&&M.value)return;I(),k();break;case" ":if(!M.value&&!a.value){q.preventDefault(),I(),k();return}if(!M.value)return!1;if(L.value.indexOf("space")===-1&&M.value)return;q.preventDefault(),I(),k();break;case"Tab":case";":case",":if(L.value.indexOf(q.key.toLowerCase())===-1||!M.value)return;I(),k(),q.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;N.value||O(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;N.value||O(),b();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),Q===-1?F[F.length-1].focus():Q>0&&F[Q-1].focus();break;case"ArrowRight":if(Q===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),F.length>Q+1?F[Q+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:I}}function t9(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 n9(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 o9(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("-")},S=A=>{let D=[];return D.push(A),D.join(" ")},N=A=>{let D=[];return D.push(A),D.join(" ")},O=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:S,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:O}}function r9(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 i9(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 s9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var to={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return s9(t,e,[i9,r9,HC,WC,Xb,jC,qC,Qb,GC,n9,YC,e9,t9,o9])},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 a9=["id","dir"],l9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],c9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],u9=["onKeyup","aria-label"],d9=["onClick"],f9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],p9=["innerHTML"],m9=["id"],h9=["id"],g9=["id","aria-label","aria-selected"],v9=["data-pointed","onMouseenter","onMousedown"],y9=["innerHTML"],_9=["aria-label"],C9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["innerHTML"],w9=["innerHTML"],E9=["value"],x9=["name","value"],S9=["name","value"],T9=["id"];function A9(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,c9)):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,d9)):i.createCommentVNode("v-if",!0)],42,u9))])),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,f9)):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,p9)]):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,l9),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,y9)])],42,v9)),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,C9))),128))],10,_9)],10,g9))),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,b9))),128))],10,h9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,k9)]):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,w9)]):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,m9)],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,E9)):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,S9))),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,T9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,a9)}to.render=A9;to.__file="src/Multiselect.vue";const Dt=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&UC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(to),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Id;function wn(){const t=N9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function N9(){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=Id.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Id.lastIndex}return o.push(n.substring(s)),o}}});async function Pn(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 D9={class:"ao-tasks"},M9={class:"ao-tasks__list"},B9=["id","value","readonly","onChange"],$9={class:"ao-tasks__list-footer"},O9=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}=wn(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{Pn(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",D9,[i.createElementVNode("ul",M9,[(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(Dt,{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(qn,{"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",$9,[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 L9={class:"ao-files__placeholder"},I9={key:0,class:"ao-files__list"},P9=["onClick"],F9={class:"ao-file__title"},V9={class:"ao-file__actions"},R9={key:0},z9={class:"ao-files__input"},U9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},q9={class:"ao-button__label"},H9={class:"ao-files__dropzone"},j9={class:"ao-files__dropzone-label"},W9=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",L9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",I9,[(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(ve,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",F9,i.toDisplayString(y.name),1)],8,P9),i.createElementVNode("div",V9,[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",R9,[i.createElementVNode("label",z9,[i.createElementVNode("div",U9,[i.createVNode(ve,{name:"Add",size:"sm"}),i.createElementVNode("span",q9,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",H9,[i.createElementVNode("span",j9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ee={};const Z9="Á",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="⩜",x4="⩘",S4="⩚",T4="∠",A4="⦤",N4="∠",D4="⦨",M4="⦩",B4="⦪",$4="⦫",O4="⦬",L4="⦭",I4="⦮",P4="⦯",F4="∡",V4="∟",R4="⊾",z4="⦝",U4="∢",q4="Å",H4="⍼",j4="Ą",W4="ą",Z4="𝔸",K4="𝕒",G4="⩯",Y4="≈",J4="⩰",X4="≊",Q4="≋",e8="'",t8="",n8="≈",o8="≊",r8="Å",i8="å",s8="𝒜",a8="𝒶",l8="≔",c8="*",u8="≈",d8="≍",f8="Ã",p8="ã",m8="Ä",h8="ä",g8="∳",v8="⨑",y8="≌",_8="϶",C8="‵",b8="∽",k8="⋍",w8="∖",E8="⫧",x8="⊽",S8="⌅",T8="⌆",A8="⌅",N8="⎵",D8="⎶",M8="≌",B8="Б",$8="б",O8="„",L8="∵",I8="∵",P8="∵",F8="⦰",V8="϶",R8="ℬ",z8="ℬ",U8="Β",q8="β",H8="ℶ",j8="≬",W8="𝔅",Z8="𝔟",K8="⋂",G8="◯",Y8="⋃",J8="⨀",X8="⨁",Q8="⨂",ek="⨆",tk="★",nk="▽",ok="△",rk="⨄",ik="⋁",sk="⋀",ak="⤍",lk="⧫",ck="▪",uk="▴",dk="▾",fk="◂",pk="▸",mk="␣",hk="▒",gk="░",vk="▓",yk="█",_k="=⃥",Ck="≡⃥",bk="⫭",kk="⌐",wk="𝔹",Ek="𝕓",xk="⊥",Sk="⊥",Tk="⋈",Ak="⧉",Nk="┐",Dk="╕",Mk="╖",Bk="╗",$k="┌",Ok="╒",Lk="╓",Ik="╔",Pk="─",Fk="═",Vk="┬",Rk="╤",zk="╥",Uk="╦",qk="┴",Hk="╧",jk="╨",Wk="╩",Zk="⊟",Kk="⊞",Gk="⊠",Yk="┘",Jk="╛",Xk="╜",Qk="╝",e6="└",t6="╘",n6="╙",o6="╚",r6="│",i6="║",s6="┼",a6="╪",l6="╫",c6="╬",u6="┤",d6="╡",f6="╢",p6="╣",m6="├",h6="╞",g6="╟",v6="╠",y6="‵",_6="˘",C6="˘",b6="¦",k6="𝒷",w6="ℬ",E6="⁏",x6="∽",S6="⋍",T6="⧅",A6="\\",N6="⟈",D6="•",M6="•",B6="≎",$6="⪮",O6="≏",L6="≎",I6="≏",P6="Ć",F6="ć",V6="⩄",R6="⩉",z6="⩋",U6="∩",q6="⋒",H6="⩇",j6="⩀",W6="ⅅ",Z6="∩︀",K6="⁁",G6="ˇ",Y6="ℭ",J6="⩍",X6="Č",Q6="č",ew="Ç",tw="ç",nw="Ĉ",ow="ĉ",rw="∰",iw="⩌",sw="⩐",aw="Ċ",lw="ċ",cw="¸",uw="¸",dw="⦲",fw="¢",pw="·",mw="·",hw="𝔠",gw="ℭ",vw="Ч",yw="ч",_w="✓",Cw="✓",bw="Χ",kw="χ",ww="ˆ",Ew="≗",xw="↺",Sw="↻",Tw="⊛",Aw="⊚",Nw="⊝",Dw="⊙",Mw="®",Bw="Ⓢ",$w="⊖",Ow="⊕",Lw="⊗",Iw="○",Pw="⧃",Fw="≗",Vw="⨐",Rw="⫯",zw="⧂",Uw="∲",qw="”",Hw="’",jw="♣",Ww="♣",Zw=":",Kw="∷",Gw="⩴",Yw="≔",Jw="≔",Xw=",",Qw="@",eE="∁",tE="∘",nE="∁",oE="ℂ",rE="≅",iE="⩭",sE="≡",aE="∮",lE="∯",cE="∮",uE="𝕔",dE="ℂ",fE="∐",pE="∐",mE="©",hE="©",gE="℗",vE="∳",yE="↵",_E="✗",CE="⨯",bE="𝒞",kE="𝒸",wE="⫏",EE="⫑",xE="⫐",SE="⫒",TE="⋯",AE="⤸",NE="⤵",DE="⋞",ME="⋟",BE="↶",$E="⤽",OE="⩈",LE="⩆",IE="≍",PE="∪",FE="⋓",VE="⩊",RE="⊍",zE="⩅",UE="∪︀",qE="↷",HE="⤼",jE="⋞",WE="⋟",ZE="⋎",KE="⋏",GE="¤",YE="↶",JE="↷",XE="⋎",QE="⋏",ex="∲",tx="∱",nx="⌭",ox="†",rx="‡",ix="ℸ",sx="↓",ax="↡",lx="⇓",cx="‐",ux="⫤",dx="⊣",fx="⤏",px="˝",mx="Ď",hx="ď",gx="Д",vx="д",yx="‡",_x="⇊",Cx="ⅅ",bx="ⅆ",kx="⤑",wx="⩷",Ex="°",xx="∇",Sx="Δ",Tx="δ",Ax="⦱",Nx="⥿",Dx="𝔇",Mx="𝔡",Bx="⥥",$x="⇃",Ox="⇂",Lx="´",Ix="˙",Px="˝",Fx="`",Vx="˜",Rx="⋄",zx="⋄",Ux="⋄",qx="♦",Hx="♦",jx="¨",Wx="ⅆ",Zx="ϝ",Kx="⋲",Gx="÷",Yx="÷",Jx="⋇",Xx="⋇",Qx="Ђ",eS="ђ",tS="⌞",nS="⌍",oS="$",rS="𝔻",iS="𝕕",sS="¨",aS="˙",lS="⃜",cS="≐",uS="≑",dS="≐",fS="∸",pS="∔",mS="⊡",hS="⌆",gS="∯",vS="¨",yS="⇓",_S="⇐",CS="⇔",bS="⫤",kS="⟸",wS="⟺",ES="⟹",xS="⇒",SS="⊨",TS="⇑",AS="⇕",NS="∥",DS="⤓",MS="↓",BS="↓",$S="⇓",OS="⇵",LS="̑",IS="⇊",PS="⇃",FS="⇂",VS="⥐",RS="⥞",zS="⥖",US="↽",qS="⥟",HS="⥗",jS="⇁",WS="↧",ZS="⊤",KS="⤐",GS="⌟",YS="⌌",JS="𝒟",XS="𝒹",QS="Ѕ",eT="ѕ",tT="⧶",nT="Đ",oT="đ",rT="⋱",iT="▿",sT="▾",aT="⇵",lT="⥯",cT="⦦",uT="Џ",dT="џ",fT="⟿",pT="É",mT="é",hT="⩮",gT="Ě",vT="ě",yT="Ê",_T="ê",CT="≖",bT="≕",kT="Э",wT="э",ET="⩷",xT="Ė",ST="ė",TT="≑",AT="ⅇ",NT="≒",DT="𝔈",MT="𝔢",BT="⪚",$T="È",OT="è",LT="⪖",IT="⪘",PT="⪙",FT="∈",VT="⏧",RT="ℓ",zT="⪕",UT="⪗",qT="Ē",HT="ē",jT="∅",WT="∅",ZT="◻",KT="∅",GT="▫",YT=" ",JT=" ",XT=" ",QT="Ŋ",eA="ŋ",tA=" ",nA="Ę",oA="ę",rA="𝔼",iA="𝕖",sA="⋕",aA="⧣",lA="⩱",cA="ε",uA="Ε",dA="ε",fA="ϵ",pA="≖",mA="≕",hA="≂",gA="⪖",vA="⪕",yA="⩵",_A="=",CA="≂",bA="≟",kA="⇌",wA="≡",EA="⩸",xA="⧥",SA="⥱",TA="≓",AA="ℯ",NA="ℰ",DA="≐",MA="⩳",BA="≂",$A="Η",OA="η",LA="Ð",IA="ð",PA="Ë",FA="ë",VA="€",RA="!",zA="∃",UA="∃",qA="ℰ",HA="ⅇ",jA="ⅇ",WA="≒",ZA="Ф",KA="ф",GA="♀",YA="ffi",JA="ff",XA="ffl",QA="𝔉",eN="𝔣",tN="fi",nN="◼",oN="▪",rN="fj",iN="♭",sN="fl",aN="▱",lN="ƒ",cN="𝔽",uN="𝕗",dN="∀",fN="∀",pN="⋔",mN="⫙",hN="ℱ",gN="⨍",vN="½",yN="⅓",_N="¼",CN="⅕",bN="⅙",kN="⅛",wN="⅔",EN="⅖",xN="¾",SN="⅗",TN="⅜",AN="⅘",NN="⅚",DN="⅝",MN="⅞",BN="⁄",$N="⌢",ON="𝒻",LN="ℱ",IN="ǵ",PN="Γ",FN="γ",VN="Ϝ",RN="ϝ",zN="⪆",UN="Ğ",qN="ğ",HN="Ģ",jN="Ĝ",WN="ĝ",ZN="Г",KN="г",GN="Ġ",YN="ġ",JN="≥",XN="≧",QN="⪌",eD="⋛",tD="≥",nD="≧",oD="⩾",rD="⪩",iD="⩾",sD="⪀",aD="⪂",lD="⪄",cD="⋛︀",uD="⪔",dD="𝔊",fD="𝔤",pD="≫",mD="⋙",hD="⋙",gD="ℷ",vD="Ѓ",yD="ѓ",_D="⪥",CD="≷",bD="⪒",kD="⪤",wD="⪊",ED="⪊",xD="⪈",SD="≩",TD="⪈",AD="≩",ND="⋧",DD="𝔾",MD="𝕘",BD="`",$D="≥",OD="⋛",LD="≧",ID="⪢",PD="≷",FD="⩾",VD="≳",RD="𝒢",zD="ℊ",UD="≳",qD="⪎",HD="⪐",jD="⪧",WD="⩺",ZD=">",KD=">",GD="≫",YD="⋗",JD="⦕",XD="⩼",QD="⪆",eM="⥸",tM="⋗",nM="⋛",oM="⪌",rM="≷",iM="≳",sM="≩︀",aM="≩︀",lM="ˇ",cM=" ",uM="½",dM="ℋ",fM="Ъ",pM="ъ",mM="⥈",hM="↔",gM="⇔",vM="↭",yM="^",_M="ℏ",CM="Ĥ",bM="ĥ",kM="♥",wM="♥",EM="…",xM="⊹",SM="𝔥",TM="ℌ",AM="ℋ",NM="⤥",DM="⤦",MM="⇿",BM="∻",$M="↩",OM="↪",LM="𝕙",IM="ℍ",PM="―",FM="─",VM="𝒽",RM="ℋ",zM="ℏ",UM="Ħ",qM="ħ",HM="≎",jM="≏",WM="⁃",ZM="‐",KM="Í",GM="í",YM="",JM="Î",XM="î",QM="И",eB="и",tB="İ",nB="Е",oB="е",rB="¡",iB="⇔",sB="𝔦",aB="ℑ",lB="Ì",cB="ì",uB="ⅈ",dB="⨌",fB="∭",pB="⧜",mB="℩",hB="IJ",gB="ij",vB="Ī",yB="ī",_B="ℑ",CB="ⅈ",bB="ℐ",kB="ℑ",wB="ı",EB="ℑ",xB="⊷",SB="Ƶ",TB="⇒",AB="℅",NB="∞",DB="⧝",MB="ı",BB="⊺",$B="∫",OB="∬",LB="ℤ",IB="∫",PB="⊺",FB="⋂",VB="⨗",RB="⨼",zB="",UB="",qB="Ё",HB="ё",jB="Į",WB="į",ZB="𝕀",KB="𝕚",GB="Ι",YB="ι",JB="⨼",XB="¿",QB="𝒾",e$="ℐ",t$="∈",n$="⋵",o$="⋹",r$="⋴",i$="⋳",s$="∈",a$="",l$="Ĩ",c$="ĩ",u$="І",d$="і",f$="Ï",p$="ï",m$="Ĵ",h$="ĵ",g$="Й",v$="й",y$="𝔍",_$="𝔧",C$="ȷ",b$="𝕁",k$="𝕛",w$="𝒥",E$="𝒿",x$="Ј",S$="ј",T$="Є",A$="є",N$="Κ",D$="κ",M$="ϰ",B$="Ķ",$$="ķ",O$="К",L$="к",I$="𝔎",P$="𝔨",F$="ĸ",V$="Х",R$="х",z$="Ќ",U$="ќ",q$="𝕂",H$="𝕜",j$="𝒦",W$="𝓀",Z$="⇚",K$="Ĺ",G$="ĺ",Y$="⦴",J$="ℒ",X$="Λ",Q$="λ",eO="⟨",tO="⟪",nO="⦑",oO="⟨",rO="⪅",iO="ℒ",sO="«",aO="⇤",lO="⤟",cO="←",uO="↞",dO="⇐",fO="⤝",pO="↩",mO="↫",hO="⤹",gO="⥳",vO="↢",yO="⤙",_O="⤛",CO="⪫",bO="⪭",kO="⪭︀",wO="⤌",EO="⤎",xO="❲",SO="{",TO="[",AO="⦋",NO="⦏",DO="⦍",MO="Ľ",BO="ľ",$O="Ļ",OO="ļ",LO="⌈",IO="{",PO="Л",FO="л",VO="⤶",RO="“",zO="„",UO="⥧",qO="⥋",HO="↲",jO="≤",WO="≦",ZO="⟨",KO="⇤",GO="←",YO="←",JO="⇐",XO="⇆",QO="↢",eL="⌈",tL="⟦",nL="⥡",oL="⥙",rL="⇃",iL="⌊",sL="↽",aL="↼",lL="⇇",cL="↔",uL="↔",dL="⇔",fL="⇆",pL="⇋",mL="↭",hL="⥎",gL="↤",vL="⊣",yL="⥚",_L="⋋",CL="⧏",bL="⊲",kL="⊴",wL="⥑",EL="⥠",xL="⥘",SL="↿",TL="⥒",AL="↼",NL="⪋",DL="⋚",ML="≤",BL="≦",$L="⩽",OL="⪨",LL="⩽",IL="⩿",PL="⪁",FL="⪃",VL="⋚︀",RL="⪓",zL="⪅",UL="⋖",qL="⋚",HL="⪋",jL="⋚",WL="≦",ZL="≶",KL="≶",GL="⪡",YL="≲",JL="⩽",XL="≲",QL="⥼",eI="⌊",tI="𝔏",nI="𝔩",oI="≶",rI="⪑",iI="⥢",sI="↽",aI="↼",lI="⥪",cI="▄",uI="Љ",dI="љ",fI="⇇",pI="≪",mI="⋘",hI="⌞",gI="⇚",vI="⥫",yI="◺",_I="Ŀ",CI="ŀ",bI="⎰",kI="⎰",wI="⪉",EI="⪉",xI="⪇",SI="≨",TI="⪇",AI="≨",NI="⋦",DI="⟬",MI="⇽",BI="⟦",$I="⟵",OI="⟵",LI="⟸",II="⟷",PI="⟷",FI="⟺",VI="⟼",RI="⟶",zI="⟶",UI="⟹",qI="↫",HI="↬",jI="⦅",WI="𝕃",ZI="𝕝",KI="⨭",GI="⨴",YI="∗",JI="_",XI="↙",QI="↘",eP="◊",tP="◊",nP="⧫",oP="(",rP="⦓",iP="⇆",sP="⌟",aP="⇋",lP="⥭",cP="",uP="⊿",dP="‹",fP="𝓁",pP="ℒ",mP="↰",hP="↰",gP="≲",vP="⪍",yP="⪏",_P="[",CP="‘",bP="‚",kP="Ł",wP="ł",EP="⪦",xP="⩹",SP="<",TP="<",AP="≪",NP="⋖",DP="⋋",MP="⋉",BP="⥶",$P="⩻",OP="◃",LP="⊴",IP="◂",PP="⦖",FP="⥊",VP="⥦",RP="≨︀",zP="≨︀",UP="¯",qP="♂",HP="✠",jP="✠",WP="↦",ZP="↦",KP="↧",GP="↤",YP="↥",JP="▮",XP="⨩",QP="М",eF="м",tF="—",nF="∺",oF="∡",rF=" ",iF="ℳ",sF="𝔐",aF="𝔪",lF="℧",cF="µ",uF="*",dF="⫰",fF="∣",pF="·",mF="⊟",hF="−",gF="∸",vF="⨪",yF="∓",_F="⫛",CF="…",bF="∓",kF="⊧",wF="𝕄",EF="𝕞",xF="∓",SF="𝓂",TF="ℳ",AF="∾",NF="Μ",DF="μ",MF="⊸",BF="⊸",$F="∇",OF="Ń",LF="ń",IF="∠⃒",PF="≉",FF="⩰̸",VF="≋̸",RF="ʼn",zF="≉",UF="♮",qF="ℕ",HF="♮",jF=" ",WF="≎̸",ZF="≏̸",KF="⩃",GF="Ň",YF="ň",JF="Ņ",XF="ņ",QF="≇",eV="⩭̸",tV="⩂",nV="Н",oV="н",rV="–",iV="⤤",sV="↗",aV="⇗",lV="↗",cV="≠",uV="≐̸",dV="",fV="",pV="",mV="",hV="≢",gV="⤨",vV="≂̸",yV="≫",_V="≪",CV=`
|
|
2
|
-
`,bV="∄",kV="∄",wV="𝔑",EV="𝔫",xV="≧̸",SV="≱",TV="≱",AV="≧̸",NV="⩾̸",DV="⩾̸",MV="⋙̸",BV="≵",$V="≫⃒",OV="≯",LV="≯",IV="≫̸",PV="↮",FV="⇎",VV="⫲",RV="∋",zV="⋼",UV="⋺",qV="∋",HV="Њ",jV="њ",WV="↚",ZV="⇍",KV="‥",GV="≦̸",YV="≰",JV="↚",XV="⇍",QV="↮",eR="⇎",tR="≰",nR="≦̸",oR="⩽̸",rR="⩽̸",iR="≮",sR="⋘̸",aR="≴",lR="≪⃒",cR="≮",uR="⋪",dR="⋬",fR="≪̸",pR="∤",mR="",hR=" ",gR="𝕟",vR="ℕ",yR="⫬",_R="¬",CR="≢",bR="≭",kR="∦",wR="∉",ER="≠",xR="≂̸",SR="∄",TR="≯",AR="≱",NR="≧̸",DR="≫̸",MR="≹",BR="⩾̸",$R="≵",OR="≎̸",LR="≏̸",IR="∉",PR="⋵̸",FR="⋹̸",VR="∉",RR="⋷",zR="⋶",UR="⧏̸",qR="⋪",HR="⋬",jR="≮",WR="≰",ZR="≸",KR="≪̸",GR="⩽̸",YR="≴",JR="⪢̸",XR="⪡̸",QR="∌",ez="∌",tz="⋾",nz="⋽",oz="⊀",rz="⪯̸",iz="⋠",sz="∌",az="⧐̸",lz="⋫",cz="⋭",uz="⊏̸",dz="⋢",fz="⊐̸",pz="⋣",mz="⊂⃒",hz="⊈",gz="⊁",vz="⪰̸",yz="⋡",_z="≿̸",Cz="⊃⃒",bz="⊉",kz="≁",wz="≄",Ez="≇",xz="≉",Sz="∤",Tz="∦",Az="∦",Nz="⫽⃥",Dz="∂̸",Mz="⨔",Bz="⊀",$z="⋠",Oz="⊀",Lz="⪯̸",Iz="⪯̸",Pz="⤳̸",Fz="↛",Vz="⇏",Rz="↝̸",zz="↛",Uz="⇏",qz="⋫",Hz="⋭",jz="⊁",Wz="⋡",Zz="⪰̸",Kz="𝒩",Gz="𝓃",Yz="∤",Jz="∦",Xz="≁",Qz="≄",eU="≄",tU="∤",nU="∦",oU="⋢",rU="⋣",iU="⊄",sU="⫅̸",aU="⊈",lU="⊂⃒",cU="⊈",uU="⫅̸",dU="⊁",fU="⪰̸",pU="⊅",mU="⫆̸",hU="⊉",gU="⊃⃒",vU="⊉",yU="⫆̸",_U="≹",CU="Ñ",bU="ñ",kU="≸",wU="⋪",EU="⋬",xU="⋫",SU="⋭",TU="Ν",AU="ν",NU="#",DU="№",MU=" ",BU="≍⃒",$U="⊬",OU="⊭",LU="⊮",IU="⊯",PU="≥⃒",FU=">⃒",VU="⤄",RU="⧞",zU="⤂",UU="≤⃒",qU="<⃒",HU="⊴⃒",jU="⤃",WU="⊵⃒",ZU="∼⃒",KU="⤣",GU="↖",YU="⇖",JU="↖",XU="⤧",QU="Ó",eq="ó",tq="⊛",nq="Ô",oq="ô",rq="⊚",iq="О",sq="о",aq="⊝",lq="Ő",cq="ő",uq="⨸",dq="⊙",fq="⦼",pq="Œ",mq="œ",hq="⦿",gq="𝔒",vq="𝔬",yq="˛",_q="Ò",Cq="ò",bq="⧁",kq="⦵",wq="Ω",Eq="∮",xq="↺",Sq="⦾",Tq="⦻",Aq="‾",Nq="⧀",Dq="Ō",Mq="ō",Bq="Ω",$q="ω",Oq="Ο",Lq="ο",Iq="⦶",Pq="⊖",Fq="𝕆",Vq="𝕠",Rq="⦷",zq="“",Uq="‘",qq="⦹",Hq="⊕",jq="↻",Wq="⩔",Zq="∨",Kq="⩝",Gq="ℴ",Yq="ℴ",Jq="ª",Xq="º",Qq="⊶",eH="⩖",tH="⩗",nH="⩛",oH="Ⓢ",rH="𝒪",iH="ℴ",sH="Ø",aH="ø",lH="⊘",cH="Õ",uH="õ",dH="⨶",fH="⨷",pH="⊗",mH="Ö",hH="ö",gH="⌽",vH="‾",yH="⏞",_H="⎴",CH="⏜",bH="¶",kH="∥",wH="∥",EH="⫳",xH="⫽",SH="∂",TH="∂",AH="П",NH="п",DH="%",MH=".",BH="‰",$H="⊥",OH="‱",LH="𝔓",IH="𝔭",PH="Φ",FH="φ",VH="ϕ",RH="ℳ",zH="☎",UH="Π",qH="π",HH="⋔",jH="ϖ",WH="ℏ",ZH="ℎ",KH="ℏ",GH="⨣",YH="⊞",JH="⨢",XH="+",QH="∔",ej="⨥",tj="⩲",nj="±",oj="±",rj="⨦",ij="⨧",sj="±",aj="ℌ",lj="⨕",cj="𝕡",uj="ℙ",dj="£",fj="⪷",pj="⪻",mj="≺",hj="≼",gj="⪷",vj="≺",yj="≼",_j="≺",Cj="⪯",bj="≼",kj="≾",wj="⪯",Ej="⪹",xj="⪵",Sj="⋨",Tj="⪯",Aj="⪳",Nj="≾",Dj="′",Mj="″",Bj="ℙ",$j="⪹",Oj="⪵",Lj="⋨",Ij="∏",Pj="∏",Fj="⌮",Vj="⌒",Rj="⌓",zj="∝",Uj="∝",qj="∷",Hj="∝",jj="≾",Wj="⊰",Zj="𝒫",Kj="𝓅",Gj="Ψ",Yj="ψ",Jj=" ",Xj="𝔔",Qj="𝔮",eW="⨌",tW="𝕢",nW="ℚ",oW="⁗",rW="𝒬",iW="𝓆",sW="ℍ",aW="⨖",lW="?",cW="≟",uW='"',dW='"',fW="⇛",pW="∽̱",mW="Ŕ",hW="ŕ",gW="√",vW="⦳",yW="⟩",_W="⟫",CW="⦒",bW="⦥",kW="⟩",wW="»",EW="⥵",xW="⇥",SW="⤠",TW="⤳",AW="→",NW="↠",DW="⇒",MW="⤞",BW="↪",$W="↬",OW="⥅",LW="⥴",IW="⤖",PW="↣",FW="↝",VW="⤚",RW="⤜",zW="∶",UW="ℚ",qW="⤍",HW="⤏",jW="⤐",WW="❳",ZW="}",KW="]",GW="⦌",YW="⦎",JW="⦐",XW="Ř",QW="ř",eZ="Ŗ",tZ="ŗ",nZ="⌉",oZ="}",rZ="Р",iZ="р",sZ="⤷",aZ="⥩",lZ="”",cZ="”",uZ="↳",dZ="ℜ",fZ="ℛ",pZ="ℜ",mZ="ℝ",hZ="ℜ",gZ="▭",vZ="®",yZ="®",_Z="∋",CZ="⇋",bZ="⥯",kZ="⥽",wZ="⌋",EZ="𝔯",xZ="ℜ",SZ="⥤",TZ="⇁",AZ="⇀",NZ="⥬",DZ="Ρ",MZ="ρ",BZ="ϱ",$Z="⟩",OZ="⇥",LZ="→",IZ="→",PZ="⇒",FZ="⇄",VZ="↣",RZ="⌉",zZ="⟧",UZ="⥝",qZ="⥕",HZ="⇂",jZ="⌋",WZ="⇁",ZZ="⇀",KZ="⇄",GZ="⇌",YZ="⇉",JZ="↝",XZ="↦",QZ="⊢",eK="⥛",tK="⋌",nK="⧐",oK="⊳",rK="⊵",iK="⥏",sK="⥜",aK="⥔",lK="↾",cK="⥓",uK="⇀",dK="˚",fK="≓",pK="⇄",mK="⇌",hK="",gK="⎱",vK="⎱",yK="⫮",_K="⟭",CK="⇾",bK="⟧",kK="⦆",wK="𝕣",EK="ℝ",xK="⨮",SK="⨵",TK="⥰",AK=")",NK="⦔",DK="⨒",MK="⇉",BK="⇛",$K="›",OK="𝓇",LK="ℛ",IK="↱",PK="↱",FK="]",VK="’",RK="’",zK="⋌",UK="⋊",qK="▹",HK="⊵",jK="▸",WK="⧎",ZK="⧴",KK="⥨",GK="℞",YK="Ś",JK="ś",XK="‚",QK="⪸",eG="Š",tG="š",nG="⪼",oG="≻",rG="≽",iG="⪰",sG="⪴",aG="Ş",lG="ş",cG="Ŝ",uG="ŝ",dG="⪺",fG="⪶",pG="⋩",mG="⨓",hG="≿",gG="С",vG="с",yG="⊡",_G="⋅",CG="⩦",bG="⤥",kG="↘",wG="⇘",EG="↘",xG="§",SG=";",TG="⤩",AG="∖",NG="∖",DG="✶",MG="𝔖",BG="𝔰",$G="⌢",OG="♯",LG="Щ",IG="щ",PG="Ш",FG="ш",VG="↓",RG="←",zG="∣",UG="∥",qG="→",HG="↑",jG="",WG="Σ",ZG="σ",KG="ς",GG="ς",YG="∼",JG="⩪",XG="≃",QG="≃",eY="⪞",tY="⪠",nY="⪝",oY="⪟",rY="≆",iY="⨤",sY="⥲",aY="←",lY="∘",cY="∖",uY="⨳",dY="⧤",fY="∣",pY="⌣",mY="⪪",hY="⪬",gY="⪬︀",vY="Ь",yY="ь",_Y="⌿",CY="⧄",bY="/",kY="𝕊",wY="𝕤",EY="♠",xY="♠",SY="∥",TY="⊓",AY="⊓︀",NY="⊔",DY="⊔︀",MY="√",BY="⊏",$Y="⊑",OY="⊏",LY="⊑",IY="⊐",PY="⊒",FY="⊐",VY="⊒",RY="□",zY="□",UY="⊓",qY="⊏",HY="⊑",jY="⊐",WY="⊒",ZY="⊔",KY="▪",GY="□",YY="▪",JY="→",XY="𝒮",QY="𝓈",eJ="∖",tJ="⌣",nJ="⋆",oJ="⋆",rJ="☆",iJ="★",sJ="ϵ",aJ="ϕ",lJ="¯",cJ="⊂",uJ="⋐",dJ="⪽",fJ="⫅",pJ="⊆",mJ="⫃",hJ="⫁",gJ="⫋",vJ="⊊",yJ="⪿",_J="⥹",CJ="⊂",bJ="⋐",kJ="⊆",wJ="⫅",EJ="⊆",xJ="⊊",SJ="⫋",TJ="⫇",AJ="⫕",NJ="⫓",DJ="⪸",MJ="≻",BJ="≽",$J="≻",OJ="⪰",LJ="≽",IJ="≿",PJ="⪰",FJ="⪺",VJ="⪶",RJ="⋩",zJ="≿",UJ="∋",qJ="∑",HJ="∑",jJ="♪",WJ="¹",ZJ="²",KJ="³",GJ="⊃",YJ="⋑",JJ="⪾",XJ="⫘",QJ="⫆",eX="⊇",tX="⫄",nX="⊃",oX="⊇",rX="⟉",iX="⫗",sX="⥻",aX="⫂",lX="⫌",cX="⊋",uX="⫀",dX="⊃",fX="⋑",pX="⊇",mX="⫆",hX="⊋",gX="⫌",vX="⫈",yX="⫔",_X="⫖",CX="⤦",bX="↙",kX="⇙",wX="↙",EX="⤪",xX="ß",SX=" ",TX="⌖",AX="Τ",NX="τ",DX="⎴",MX="Ť",BX="ť",$X="Ţ",OX="ţ",LX="Т",IX="т",PX="⃛",FX="⌕",VX="𝔗",RX="𝔱",zX="∴",UX="∴",qX="∴",HX="Θ",jX="θ",WX="ϑ",ZX="ϑ",KX="≈",GX="∼",YX=" ",JX=" ",XX=" ",QX="≈",eQ="∼",tQ="Þ",nQ="þ",oQ="˜",rQ="∼",iQ="≃",sQ="≅",aQ="≈",lQ="⨱",cQ="⊠",uQ="×",dQ="⨰",fQ="∭",pQ="⤨",mQ="⌶",hQ="⫱",gQ="⊤",vQ="𝕋",yQ="𝕥",_Q="⫚",CQ="⤩",bQ="‴",kQ="™",wQ="™",EQ="▵",xQ="▿",SQ="◃",TQ="⊴",AQ="≜",NQ="▹",DQ="⊵",MQ="◬",BQ="≜",$Q="⨺",OQ="⃛",LQ="⨹",IQ="⧍",PQ="⨻",FQ="⏢",VQ="𝒯",RQ="𝓉",zQ="Ц",UQ="ц",qQ="Ћ",HQ="ћ",jQ="Ŧ",WQ="ŧ",ZQ="≬",KQ="↞",GQ="↠",YQ="Ú",JQ="ú",XQ="↑",QQ="↟",eee="⇑",tee="⥉",nee="Ў",oee="ў",ree="Ŭ",iee="ŭ",see="Û",aee="û",lee="У",cee="у",uee="⇅",dee="Ű",fee="ű",pee="⥮",mee="⥾",hee="𝔘",gee="𝔲",vee="Ù",yee="ù",_ee="⥣",Cee="↿",bee="↾",kee="▀",wee="⌜",Eee="⌜",xee="⌏",See="◸",Tee="Ū",Aee="ū",Nee="¨",Dee="_",Mee="⏟",Bee="⎵",$ee="⏝",Oee="⋃",Lee="⊎",Iee="Ų",Pee="ų",Fee="𝕌",Vee="𝕦",Ree="⤒",zee="↑",Uee="↑",qee="⇑",Hee="⇅",jee="↕",Wee="↕",Zee="⇕",Kee="⥮",Gee="↿",Yee="↾",Jee="⊎",Xee="↖",Qee="↗",ete="υ",tte="ϒ",nte="ϒ",ote="Υ",rte="υ",ite="↥",ste="⊥",ate="⇈",lte="⌝",cte="⌝",ute="⌎",dte="Ů",fte="ů",pte="◹",mte="𝒰",hte="𝓊",gte="⋰",vte="Ũ",yte="ũ",_te="▵",Cte="▴",bte="⇈",kte="Ü",wte="ü",Ete="⦧",xte="⦜",Ste="ϵ",Tte="ϰ",Ate="∅",Nte="ϕ",Dte="ϖ",Mte="∝",Bte="↕",$te="⇕",Ote="ϱ",Lte="ς",Ite="⊊︀",Pte="⫋︀",Fte="⊋︀",Vte="⫌︀",Rte="ϑ",zte="⊲",Ute="⊳",qte="⫨",Hte="⫫",jte="⫩",Wte="В",Zte="в",Kte="⊢",Gte="⊨",Yte="⊩",Jte="⊫",Xte="⫦",Qte="⊻",ene="∨",tne="⋁",nne="≚",one="⋮",rne="|",ine="‖",sne="|",ane="‖",lne="∣",cne="|",une="❘",dne="≀",fne=" ",pne="𝔙",mne="𝔳",hne="⊲",gne="⊂⃒",vne="⊃⃒",yne="𝕍",_ne="𝕧",Cne="∝",bne="⊳",kne="𝒱",wne="𝓋",Ene="⫋︀",xne="⊊︀",Sne="⫌︀",Tne="⊋︀",Ane="⊪",Nne="⦚",Dne="Ŵ",Mne="ŵ",Bne="⩟",$ne="∧",One="⋀",Lne="≙",Ine="℘",Pne="𝔚",Fne="𝔴",Vne="𝕎",Rne="𝕨",zne="℘",Une="≀",qne="≀",Hne="𝒲",jne="𝓌",Wne="⋂",Zne="◯",Kne="⋃",Gne="▽",Yne="𝔛",Jne="𝔵",Xne="⟷",Qne="⟺",eoe="Ξ",toe="ξ",noe="⟵",ooe="⟸",roe="⟼",ioe="⋻",soe="⨀",aoe="𝕏",loe="𝕩",coe="⨁",uoe="⨂",doe="⟶",foe="⟹",poe="𝒳",moe="𝓍",hoe="⨆",goe="⨄",voe="△",yoe="⋁",_oe="⋀",Coe="Ý",boe="ý",koe="Я",woe="я",Eoe="Ŷ",xoe="ŷ",Soe="Ы",Toe="ы",Aoe="¥",Noe="𝔜",Doe="𝔶",Moe="Ї",Boe="ї",$oe="𝕐",Ooe="𝕪",Loe="𝒴",Ioe="𝓎",Poe="Ю",Foe="ю",Voe="ÿ",Roe="Ÿ",zoe="Ź",Uoe="ź",qoe="Ž",Hoe="ž",joe="З",Woe="з",Zoe="Ż",Koe="ż",Goe="ℨ",Yoe="",Joe="Ζ",Xoe="ζ",Qoe="𝔷",ere="ℨ",tre="Ж",nre="ж",ore="⇝",rre="𝕫",ire="ℤ",sre="𝒵",are="𝓏",lre="",cre="",ure={Aacute:Z9,aacute:K9,Abreve:G9,abreve:Y9,ac:J9,acd:X9,acE:Q9,Acirc:e4,acirc:t4,acute:n4,Acy:o4,acy:r4,AElig:i4,aelig:s4,af:a4,Afr:l4,afr:c4,Agrave:u4,agrave:d4,alefsym:f4,aleph:p4,Alpha:m4,alpha:h4,Amacr:g4,amacr:v4,amalg:y4,amp:_4,AMP:C4,andand:b4,And:k4,and:w4,andd:E4,andslope:x4,andv:S4,ang:T4,ange:A4,angle:N4,angmsdaa:D4,angmsdab:M4,angmsdac:B4,angmsdad:$4,angmsdae:O4,angmsdaf:L4,angmsdag:I4,angmsdah:P4,angmsd:F4,angrt:V4,angrtvb:R4,angrtvbd:z4,angsph:U4,angst:q4,angzarr:H4,Aogon:j4,aogon:W4,Aopf:Z4,aopf:K4,apacir:G4,ap:Y4,apE:J4,ape:X4,apid:Q4,apos:e8,ApplyFunction:t8,approx:n8,approxeq:o8,Aring:r8,aring:i8,Ascr:s8,ascr:a8,Assign:l8,ast:c8,asymp:u8,asympeq:d8,Atilde:f8,atilde:p8,Auml:m8,auml:h8,awconint:g8,awint:v8,backcong:y8,backepsilon:_8,backprime:C8,backsim:b8,backsimeq:k8,Backslash:w8,Barv:E8,barvee:x8,barwed:S8,Barwed:T8,barwedge:A8,bbrk:N8,bbrktbrk:D8,bcong:M8,Bcy:B8,bcy:$8,bdquo:O8,becaus:L8,because:I8,Because:P8,bemptyv:F8,bepsi:V8,bernou:R8,Bernoullis:z8,Beta:U8,beta:q8,beth:H8,between:j8,Bfr:W8,bfr:Z8,bigcap:K8,bigcirc:G8,bigcup:Y8,bigodot:J8,bigoplus:X8,bigotimes:Q8,bigsqcup:ek,bigstar:tk,bigtriangledown:nk,bigtriangleup:ok,biguplus:rk,bigvee:ik,bigwedge:sk,bkarow:ak,blacklozenge:lk,blacksquare:ck,blacktriangle:uk,blacktriangledown:dk,blacktriangleleft:fk,blacktriangleright:pk,blank:mk,blk12:hk,blk14:gk,blk34:vk,block:yk,bne:_k,bnequiv:Ck,bNot:bk,bnot:kk,Bopf:wk,bopf:Ek,bot:xk,bottom:Sk,bowtie:Tk,boxbox:Ak,boxdl:Nk,boxdL:Dk,boxDl:Mk,boxDL:Bk,boxdr:$k,boxdR:Ok,boxDr:Lk,boxDR:Ik,boxh:Pk,boxH:Fk,boxhd:Vk,boxHd:Rk,boxhD:zk,boxHD:Uk,boxhu:qk,boxHu:Hk,boxhU:jk,boxHU:Wk,boxminus:Zk,boxplus:Kk,boxtimes:Gk,boxul:Yk,boxuL:Jk,boxUl:Xk,boxUL:Qk,boxur:e6,boxuR:t6,boxUr:n6,boxUR:o6,boxv:r6,boxV:i6,boxvh:s6,boxvH:a6,boxVh:l6,boxVH:c6,boxvl:u6,boxvL:d6,boxVl:f6,boxVL:p6,boxvr:m6,boxvR:h6,boxVr:g6,boxVR:v6,bprime:y6,breve:_6,Breve:C6,brvbar:b6,bscr:k6,Bscr:w6,bsemi:E6,bsim:x6,bsime:S6,bsolb:T6,bsol:A6,bsolhsub:N6,bull:D6,bullet:M6,bump:B6,bumpE:$6,bumpe:O6,Bumpeq:L6,bumpeq:I6,Cacute:P6,cacute:F6,capand:V6,capbrcup:R6,capcap:z6,cap:U6,Cap:q6,capcup:H6,capdot:j6,CapitalDifferentialD:W6,caps:Z6,caret:K6,caron:G6,Cayleys:Y6,ccaps:J6,Ccaron:X6,ccaron:Q6,Ccedil:ew,ccedil:tw,Ccirc:nw,ccirc:ow,Cconint:rw,ccups:iw,ccupssm:sw,Cdot:aw,cdot:lw,cedil:cw,Cedilla:uw,cemptyv:dw,cent:fw,centerdot:pw,CenterDot:mw,cfr:hw,Cfr:gw,CHcy:vw,chcy:yw,check:_w,checkmark:Cw,Chi:bw,chi:kw,circ:ww,circeq:Ew,circlearrowleft:xw,circlearrowright:Sw,circledast:Tw,circledcirc:Aw,circleddash:Nw,CircleDot:Dw,circledR:Mw,circledS:Bw,CircleMinus:$w,CirclePlus:Ow,CircleTimes:Lw,cir:Iw,cirE:Pw,cire:Fw,cirfnint:Vw,cirmid:Rw,cirscir:zw,ClockwiseContourIntegral:Uw,CloseCurlyDoubleQuote:qw,CloseCurlyQuote:Hw,clubs:jw,clubsuit:Ww,colon:Zw,Colon:Kw,Colone:Gw,colone:Yw,coloneq:Jw,comma:Xw,commat:Qw,comp:eE,compfn:tE,complement:nE,complexes:oE,cong:rE,congdot:iE,Congruent:sE,conint:aE,Conint:lE,ContourIntegral:cE,copf:uE,Copf:dE,coprod:fE,Coproduct:pE,copy:mE,COPY:hE,copysr:gE,CounterClockwiseContourIntegral:vE,crarr:yE,cross:_E,Cross:CE,Cscr:bE,cscr:kE,csub:wE,csube:EE,csup:xE,csupe:SE,ctdot:TE,cudarrl:AE,cudarrr:NE,cuepr:DE,cuesc:ME,cularr:BE,cularrp:$E,cupbrcap:OE,cupcap:LE,CupCap:IE,cup:PE,Cup:FE,cupcup:VE,cupdot:RE,cupor:zE,cups:UE,curarr:qE,curarrm:HE,curlyeqprec:jE,curlyeqsucc:WE,curlyvee:ZE,curlywedge:KE,curren:GE,curvearrowleft:YE,curvearrowright:JE,cuvee:XE,cuwed:QE,cwconint:ex,cwint:tx,cylcty:nx,dagger:ox,Dagger:rx,daleth:ix,darr:sx,Darr:ax,dArr:lx,dash:cx,Dashv:ux,dashv:dx,dbkarow:fx,dblac:px,Dcaron:mx,dcaron:hx,Dcy:gx,dcy:vx,ddagger:yx,ddarr:_x,DD:Cx,dd:bx,DDotrahd:kx,ddotseq:wx,deg:Ex,Del:xx,Delta:Sx,delta:Tx,demptyv:Ax,dfisht:Nx,Dfr:Dx,dfr:Mx,dHar:Bx,dharl:$x,dharr:Ox,DiacriticalAcute:Lx,DiacriticalDot:Ix,DiacriticalDoubleAcute:Px,DiacriticalGrave:Fx,DiacriticalTilde:Vx,diam:Rx,diamond:zx,Diamond:Ux,diamondsuit:qx,diams:Hx,die:jx,DifferentialD:Wx,digamma:Zx,disin:Kx,div:Gx,divide:Yx,divideontimes:Jx,divonx:Xx,DJcy:Qx,djcy:eS,dlcorn:tS,dlcrop:nS,dollar:oS,Dopf:rS,dopf:iS,Dot:sS,dot:aS,DotDot:lS,doteq:cS,doteqdot:uS,DotEqual:dS,dotminus:fS,dotplus:pS,dotsquare:mS,doublebarwedge:hS,DoubleContourIntegral:gS,DoubleDot:vS,DoubleDownArrow:yS,DoubleLeftArrow:_S,DoubleLeftRightArrow:CS,DoubleLeftTee:bS,DoubleLongLeftArrow:kS,DoubleLongLeftRightArrow:wS,DoubleLongRightArrow:ES,DoubleRightArrow:xS,DoubleRightTee:SS,DoubleUpArrow:TS,DoubleUpDownArrow:AS,DoubleVerticalBar:NS,DownArrowBar:DS,downarrow:MS,DownArrow:BS,Downarrow:$S,DownArrowUpArrow:OS,DownBreve:LS,downdownarrows:IS,downharpoonleft:PS,downharpoonright:FS,DownLeftRightVector:VS,DownLeftTeeVector:RS,DownLeftVectorBar:zS,DownLeftVector:US,DownRightTeeVector:qS,DownRightVectorBar:HS,DownRightVector:jS,DownTeeArrow:WS,DownTee:ZS,drbkarow:KS,drcorn:GS,drcrop:YS,Dscr:JS,dscr:XS,DScy:QS,dscy:eT,dsol:tT,Dstrok:nT,dstrok:oT,dtdot:rT,dtri:iT,dtrif:sT,duarr:aT,duhar:lT,dwangle:cT,DZcy:uT,dzcy:dT,dzigrarr:fT,Eacute:pT,eacute:mT,easter:hT,Ecaron:gT,ecaron:vT,Ecirc:yT,ecirc:_T,ecir:CT,ecolon:bT,Ecy:kT,ecy:wT,eDDot:ET,Edot:xT,edot:ST,eDot:TT,ee:AT,efDot:NT,Efr:DT,efr:MT,eg:BT,Egrave:$T,egrave:OT,egs:LT,egsdot:IT,el:PT,Element:FT,elinters:VT,ell:RT,els:zT,elsdot:UT,Emacr:qT,emacr:HT,empty:jT,emptyset:WT,EmptySmallSquare:ZT,emptyv:KT,EmptyVerySmallSquare:GT,emsp13:YT,emsp14:JT,emsp:XT,ENG:QT,eng:eA,ensp:tA,Eogon:nA,eogon:oA,Eopf:rA,eopf:iA,epar:sA,eparsl:aA,eplus:lA,epsi:cA,Epsilon:uA,epsilon:dA,epsiv:fA,eqcirc:pA,eqcolon:mA,eqsim:hA,eqslantgtr:gA,eqslantless:vA,Equal:yA,equals:_A,EqualTilde:CA,equest:bA,Equilibrium:kA,equiv:wA,equivDD:EA,eqvparsl:xA,erarr:SA,erDot:TA,escr:AA,Escr:NA,esdot:DA,Esim:MA,esim:BA,Eta:$A,eta:OA,ETH:LA,eth:IA,Euml:PA,euml:FA,euro:VA,excl:RA,exist:zA,Exists:UA,expectation:qA,exponentiale:HA,ExponentialE:jA,fallingdotseq:WA,Fcy:ZA,fcy:KA,female:GA,ffilig:YA,fflig:JA,ffllig:XA,Ffr:QA,ffr:eN,filig:tN,FilledSmallSquare:nN,FilledVerySmallSquare:oN,fjlig:rN,flat:iN,fllig:sN,fltns:aN,fnof:lN,Fopf:cN,fopf:uN,forall:dN,ForAll:fN,fork:pN,forkv:mN,Fouriertrf:hN,fpartint:gN,frac12:vN,frac13:yN,frac14:_N,frac15:CN,frac16:bN,frac18:kN,frac23:wN,frac25:EN,frac34:xN,frac35:SN,frac38:TN,frac45:AN,frac56:NN,frac58:DN,frac78:MN,frasl:BN,frown:$N,fscr:ON,Fscr:LN,gacute:IN,Gamma:PN,gamma:FN,Gammad:VN,gammad:RN,gap:zN,Gbreve:UN,gbreve:qN,Gcedil:HN,Gcirc:jN,gcirc:WN,Gcy:ZN,gcy:KN,Gdot:GN,gdot:YN,ge:JN,gE:XN,gEl:QN,gel:eD,geq:tD,geqq:nD,geqslant:oD,gescc:rD,ges:iD,gesdot:sD,gesdoto:aD,gesdotol:lD,gesl:cD,gesles:uD,Gfr:dD,gfr:fD,gg:pD,Gg:mD,ggg:hD,gimel:gD,GJcy:vD,gjcy:yD,gla:_D,gl:CD,glE:bD,glj:kD,gnap:wD,gnapprox:ED,gne:xD,gnE:SD,gneq:TD,gneqq:AD,gnsim:ND,Gopf:DD,gopf:MD,grave:BD,GreaterEqual:$D,GreaterEqualLess:OD,GreaterFullEqual:LD,GreaterGreater:ID,GreaterLess:PD,GreaterSlantEqual:FD,GreaterTilde:VD,Gscr:RD,gscr:zD,gsim:UD,gsime:qD,gsiml:HD,gtcc:jD,gtcir:WD,gt:ZD,GT:KD,Gt:GD,gtdot:YD,gtlPar:JD,gtquest:XD,gtrapprox:QD,gtrarr:eM,gtrdot:tM,gtreqless:nM,gtreqqless:oM,gtrless:rM,gtrsim:iM,gvertneqq:sM,gvnE:aM,Hacek:lM,hairsp:cM,half:uM,hamilt:dM,HARDcy:fM,hardcy:pM,harrcir:mM,harr:hM,hArr:gM,harrw:vM,Hat:yM,hbar:_M,Hcirc:CM,hcirc:bM,hearts:kM,heartsuit:wM,hellip:EM,hercon:xM,hfr:SM,Hfr:TM,HilbertSpace:AM,hksearow:NM,hkswarow:DM,hoarr:MM,homtht:BM,hookleftarrow:$M,hookrightarrow:OM,hopf:LM,Hopf:IM,horbar:PM,HorizontalLine:FM,hscr:VM,Hscr:RM,hslash:zM,Hstrok:UM,hstrok:qM,HumpDownHump:HM,HumpEqual:jM,hybull:WM,hyphen:ZM,Iacute:KM,iacute:GM,ic:YM,Icirc:JM,icirc:XM,Icy:QM,icy:eB,Idot:tB,IEcy:nB,iecy:oB,iexcl:rB,iff:iB,ifr:sB,Ifr:aB,Igrave:lB,igrave:cB,ii:uB,iiiint:dB,iiint:fB,iinfin:pB,iiota:mB,IJlig:hB,ijlig:gB,Imacr:vB,imacr:yB,image:_B,ImaginaryI:CB,imagline:bB,imagpart:kB,imath:wB,Im:EB,imof:xB,imped:SB,Implies:TB,incare:AB,in:"∈",infin:NB,infintie:DB,inodot:MB,intcal:BB,int:$B,Int:OB,integers:LB,Integral:IB,intercal:PB,Intersection:FB,intlarhk:VB,intprod:RB,InvisibleComma:zB,InvisibleTimes:UB,IOcy:qB,iocy:HB,Iogon:jB,iogon:WB,Iopf:ZB,iopf:KB,Iota:GB,iota:YB,iprod:JB,iquest:XB,iscr:QB,Iscr:e$,isin:t$,isindot:n$,isinE:o$,isins:r$,isinsv:i$,isinv:s$,it:a$,Itilde:l$,itilde:c$,Iukcy:u$,iukcy:d$,Iuml:f$,iuml:p$,Jcirc:m$,jcirc:h$,Jcy:g$,jcy:v$,Jfr:y$,jfr:_$,jmath:C$,Jopf:b$,jopf:k$,Jscr:w$,jscr:E$,Jsercy:x$,jsercy:S$,Jukcy:T$,jukcy:A$,Kappa:N$,kappa:D$,kappav:M$,Kcedil:B$,kcedil:$$,Kcy:O$,kcy:L$,Kfr:I$,kfr:P$,kgreen:F$,KHcy:V$,khcy:R$,KJcy:z$,kjcy:U$,Kopf:q$,kopf:H$,Kscr:j$,kscr:W$,lAarr:Z$,Lacute:K$,lacute:G$,laemptyv:Y$,lagran:J$,Lambda:X$,lambda:Q$,lang:eO,Lang:tO,langd:nO,langle:oO,lap:rO,Laplacetrf:iO,laquo:sO,larrb:aO,larrbfs:lO,larr:cO,Larr:uO,lArr:dO,larrfs:fO,larrhk:pO,larrlp:mO,larrpl:hO,larrsim:gO,larrtl:vO,latail:yO,lAtail:_O,lat:CO,late:bO,lates:kO,lbarr:wO,lBarr:EO,lbbrk:xO,lbrace:SO,lbrack:TO,lbrke:AO,lbrksld:NO,lbrkslu:DO,Lcaron:MO,lcaron:BO,Lcedil:$O,lcedil:OO,lceil:LO,lcub:IO,Lcy:PO,lcy:FO,ldca:VO,ldquo:RO,ldquor:zO,ldrdhar:UO,ldrushar:qO,ldsh:HO,le:jO,lE:WO,LeftAngleBracket:ZO,LeftArrowBar:KO,leftarrow:GO,LeftArrow:YO,Leftarrow:JO,LeftArrowRightArrow:XO,leftarrowtail:QO,LeftCeiling:eL,LeftDoubleBracket:tL,LeftDownTeeVector:nL,LeftDownVectorBar:oL,LeftDownVector:rL,LeftFloor:iL,leftharpoondown:sL,leftharpoonup:aL,leftleftarrows:lL,leftrightarrow:cL,LeftRightArrow:uL,Leftrightarrow:dL,leftrightarrows:fL,leftrightharpoons:pL,leftrightsquigarrow:mL,LeftRightVector:hL,LeftTeeArrow:gL,LeftTee:vL,LeftTeeVector:yL,leftthreetimes:_L,LeftTriangleBar:CL,LeftTriangle:bL,LeftTriangleEqual:kL,LeftUpDownVector:wL,LeftUpTeeVector:EL,LeftUpVectorBar:xL,LeftUpVector:SL,LeftVectorBar:TL,LeftVector:AL,lEg:NL,leg:DL,leq:ML,leqq:BL,leqslant:$L,lescc:OL,les:LL,lesdot:IL,lesdoto:PL,lesdotor:FL,lesg:VL,lesges:RL,lessapprox:zL,lessdot:UL,lesseqgtr:qL,lesseqqgtr:HL,LessEqualGreater:jL,LessFullEqual:WL,LessGreater:ZL,lessgtr:KL,LessLess:GL,lesssim:YL,LessSlantEqual:JL,LessTilde:XL,lfisht:QL,lfloor:eI,Lfr:tI,lfr:nI,lg:oI,lgE:rI,lHar:iI,lhard:sI,lharu:aI,lharul:lI,lhblk:cI,LJcy:uI,ljcy:dI,llarr:fI,ll:pI,Ll:mI,llcorner:hI,Lleftarrow:gI,llhard:vI,lltri:yI,Lmidot:_I,lmidot:CI,lmoustache:bI,lmoust:kI,lnap:wI,lnapprox:EI,lne:xI,lnE:SI,lneq:TI,lneqq:AI,lnsim:NI,loang:DI,loarr:MI,lobrk:BI,longleftarrow:$I,LongLeftArrow:OI,Longleftarrow:LI,longleftrightarrow:II,LongLeftRightArrow:PI,Longleftrightarrow:FI,longmapsto:VI,longrightarrow:RI,LongRightArrow:zI,Longrightarrow:UI,looparrowleft:qI,looparrowright:HI,lopar:jI,Lopf:WI,lopf:ZI,loplus:KI,lotimes:GI,lowast:YI,lowbar:JI,LowerLeftArrow:XI,LowerRightArrow:QI,loz:eP,lozenge:tP,lozf:nP,lpar:oP,lparlt:rP,lrarr:iP,lrcorner:sP,lrhar:aP,lrhard:lP,lrm:cP,lrtri:uP,lsaquo:dP,lscr:fP,Lscr:pP,lsh:mP,Lsh:hP,lsim:gP,lsime:vP,lsimg:yP,lsqb:_P,lsquo:CP,lsquor:bP,Lstrok:kP,lstrok:wP,ltcc:EP,ltcir:xP,lt:SP,LT:TP,Lt:AP,ltdot:NP,lthree:DP,ltimes:MP,ltlarr:BP,ltquest:$P,ltri:OP,ltrie:LP,ltrif:IP,ltrPar:PP,lurdshar:FP,luruhar:VP,lvertneqq:RP,lvnE:zP,macr:UP,male:qP,malt:HP,maltese:jP,Map:"⤅",map:WP,mapsto:ZP,mapstodown:KP,mapstoleft:GP,mapstoup:YP,marker:JP,mcomma:XP,Mcy:QP,mcy:eF,mdash:tF,mDDot:nF,measuredangle:oF,MediumSpace:rF,Mellintrf:iF,Mfr:sF,mfr:aF,mho:lF,micro:cF,midast:uF,midcir:dF,mid:fF,middot:pF,minusb:mF,minus:hF,minusd:gF,minusdu:vF,MinusPlus:yF,mlcp:_F,mldr:CF,mnplus:bF,models:kF,Mopf:wF,mopf:EF,mp:xF,mscr:SF,Mscr:TF,mstpos:AF,Mu:NF,mu:DF,multimap:MF,mumap:BF,nabla:$F,Nacute:OF,nacute:LF,nang:IF,nap:PF,napE:FF,napid:VF,napos:RF,napprox:zF,natural:UF,naturals:qF,natur:HF,nbsp:jF,nbump:WF,nbumpe:ZF,ncap:KF,Ncaron:GF,ncaron:YF,Ncedil:JF,ncedil:XF,ncong:QF,ncongdot:eV,ncup:tV,Ncy:nV,ncy:oV,ndash:rV,nearhk:iV,nearr:sV,neArr:aV,nearrow:lV,ne:cV,nedot:uV,NegativeMediumSpace:dV,NegativeThickSpace:fV,NegativeThinSpace:pV,NegativeVeryThinSpace:mV,nequiv:hV,nesear:gV,nesim:vV,NestedGreaterGreater:yV,NestedLessLess:_V,NewLine:CV,nexist:bV,nexists:kV,Nfr:wV,nfr:EV,ngE:xV,nge:SV,ngeq:TV,ngeqq:AV,ngeqslant:NV,nges:DV,nGg:MV,ngsim:BV,nGt:$V,ngt:OV,ngtr:LV,nGtv:IV,nharr:PV,nhArr:FV,nhpar:VV,ni:RV,nis:zV,nisd:UV,niv:qV,NJcy:HV,njcy:jV,nlarr:WV,nlArr:ZV,nldr:KV,nlE:GV,nle:YV,nleftarrow:JV,nLeftarrow:XV,nleftrightarrow:QV,nLeftrightarrow:eR,nleq:tR,nleqq:nR,nleqslant:oR,nles:rR,nless:iR,nLl:sR,nlsim:aR,nLt:lR,nlt:cR,nltri:uR,nltrie:dR,nLtv:fR,nmid:pR,NoBreak:mR,NonBreakingSpace:hR,nopf:gR,Nopf:vR,Not:yR,not:_R,NotCongruent:CR,NotCupCap:bR,NotDoubleVerticalBar:kR,NotElement:wR,NotEqual:ER,NotEqualTilde:xR,NotExists:SR,NotGreater:TR,NotGreaterEqual:AR,NotGreaterFullEqual:NR,NotGreaterGreater:DR,NotGreaterLess:MR,NotGreaterSlantEqual:BR,NotGreaterTilde:$R,NotHumpDownHump:OR,NotHumpEqual:LR,notin:IR,notindot:PR,notinE:FR,notinva:VR,notinvb:RR,notinvc:zR,NotLeftTriangleBar:UR,NotLeftTriangle:qR,NotLeftTriangleEqual:HR,NotLess:jR,NotLessEqual:WR,NotLessGreater:ZR,NotLessLess:KR,NotLessSlantEqual:GR,NotLessTilde:YR,NotNestedGreaterGreater:JR,NotNestedLessLess:XR,notni:QR,notniva:ez,notnivb:tz,notnivc:nz,NotPrecedes:oz,NotPrecedesEqual:rz,NotPrecedesSlantEqual:iz,NotReverseElement:sz,NotRightTriangleBar:az,NotRightTriangle:lz,NotRightTriangleEqual:cz,NotSquareSubset:uz,NotSquareSubsetEqual:dz,NotSquareSuperset:fz,NotSquareSupersetEqual:pz,NotSubset:mz,NotSubsetEqual:hz,NotSucceeds:gz,NotSucceedsEqual:vz,NotSucceedsSlantEqual:yz,NotSucceedsTilde:_z,NotSuperset:Cz,NotSupersetEqual:bz,NotTilde:kz,NotTildeEqual:wz,NotTildeFullEqual:Ez,NotTildeTilde:xz,NotVerticalBar:Sz,nparallel:Tz,npar:Az,nparsl:Nz,npart:Dz,npolint:Mz,npr:Bz,nprcue:$z,nprec:Oz,npreceq:Lz,npre:Iz,nrarrc:Pz,nrarr:Fz,nrArr:Vz,nrarrw:Rz,nrightarrow:zz,nRightarrow:Uz,nrtri:qz,nrtrie:Hz,nsc:jz,nsccue:Wz,nsce:Zz,Nscr:Kz,nscr:Gz,nshortmid:Yz,nshortparallel:Jz,nsim:Xz,nsime:Qz,nsimeq:eU,nsmid:tU,nspar:nU,nsqsube:oU,nsqsupe:rU,nsub:iU,nsubE:sU,nsube:aU,nsubset:lU,nsubseteq:cU,nsubseteqq:uU,nsucc:dU,nsucceq:fU,nsup:pU,nsupE:mU,nsupe:hU,nsupset:gU,nsupseteq:vU,nsupseteqq:yU,ntgl:_U,Ntilde:CU,ntilde:bU,ntlg:kU,ntriangleleft:wU,ntrianglelefteq:EU,ntriangleright:xU,ntrianglerighteq:SU,Nu:TU,nu:AU,num:NU,numero:DU,numsp:MU,nvap:BU,nvdash:$U,nvDash:OU,nVdash:LU,nVDash:IU,nvge:PU,nvgt:FU,nvHarr:VU,nvinfin:RU,nvlArr:zU,nvle:UU,nvlt:qU,nvltrie:HU,nvrArr:jU,nvrtrie:WU,nvsim:ZU,nwarhk:KU,nwarr:GU,nwArr:YU,nwarrow:JU,nwnear:XU,Oacute:QU,oacute:eq,oast:tq,Ocirc:nq,ocirc:oq,ocir:rq,Ocy:iq,ocy:sq,odash:aq,Odblac:lq,odblac:cq,odiv:uq,odot:dq,odsold:fq,OElig:pq,oelig:mq,ofcir:hq,Ofr:gq,ofr:vq,ogon:yq,Ograve:_q,ograve:Cq,ogt:bq,ohbar:kq,ohm:wq,oint:Eq,olarr:xq,olcir:Sq,olcross:Tq,oline:Aq,olt:Nq,Omacr:Dq,omacr:Mq,Omega:Bq,omega:$q,Omicron:Oq,omicron:Lq,omid:Iq,ominus:Pq,Oopf:Fq,oopf:Vq,opar:Rq,OpenCurlyDoubleQuote:zq,OpenCurlyQuote:Uq,operp:qq,oplus:Hq,orarr:jq,Or:Wq,or:Zq,ord:Kq,order:Gq,orderof:Yq,ordf:Jq,ordm:Xq,origof:Qq,oror:eH,orslope:tH,orv:nH,oS:oH,Oscr:rH,oscr:iH,Oslash:sH,oslash:aH,osol:lH,Otilde:cH,otilde:uH,otimesas:dH,Otimes:fH,otimes:pH,Ouml:mH,ouml:hH,ovbar:gH,OverBar:vH,OverBrace:yH,OverBracket:_H,OverParenthesis:CH,para:bH,parallel:kH,par:wH,parsim:EH,parsl:xH,part:SH,PartialD:TH,Pcy:AH,pcy:NH,percnt:DH,period:MH,permil:BH,perp:$H,pertenk:OH,Pfr:LH,pfr:IH,Phi:PH,phi:FH,phiv:VH,phmmat:RH,phone:zH,Pi:UH,pi:qH,pitchfork:HH,piv:jH,planck:WH,planckh:ZH,plankv:KH,plusacir:GH,plusb:YH,pluscir:JH,plus:XH,plusdo:QH,plusdu:ej,pluse:tj,PlusMinus:nj,plusmn:oj,plussim:rj,plustwo:ij,pm:sj,Poincareplane:aj,pointint:lj,popf:cj,Popf:uj,pound:dj,prap:fj,Pr:pj,pr:mj,prcue:hj,precapprox:gj,prec:vj,preccurlyeq:yj,Precedes:_j,PrecedesEqual:Cj,PrecedesSlantEqual:bj,PrecedesTilde:kj,preceq:wj,precnapprox:Ej,precneqq:xj,precnsim:Sj,pre:Tj,prE:Aj,precsim:Nj,prime:Dj,Prime:Mj,primes:Bj,prnap:$j,prnE:Oj,prnsim:Lj,prod:Ij,Product:Pj,profalar:Fj,profline:Vj,profsurf:Rj,prop:zj,Proportional:Uj,Proportion:qj,propto:Hj,prsim:jj,prurel:Wj,Pscr:Zj,pscr:Kj,Psi:Gj,psi:Yj,puncsp:Jj,Qfr:Xj,qfr:Qj,qint:eW,qopf:tW,Qopf:nW,qprime:oW,Qscr:rW,qscr:iW,quaternions:sW,quatint:aW,quest:lW,questeq:cW,quot:uW,QUOT:dW,rAarr:fW,race:pW,Racute:mW,racute:hW,radic:gW,raemptyv:vW,rang:yW,Rang:_W,rangd:CW,range:bW,rangle:kW,raquo:wW,rarrap:EW,rarrb:xW,rarrbfs:SW,rarrc:TW,rarr:AW,Rarr:NW,rArr:DW,rarrfs:MW,rarrhk:BW,rarrlp:$W,rarrpl:OW,rarrsim:LW,Rarrtl:IW,rarrtl:PW,rarrw:FW,ratail:VW,rAtail:RW,ratio:zW,rationals:UW,rbarr:qW,rBarr:HW,RBarr:jW,rbbrk:WW,rbrace:ZW,rbrack:KW,rbrke:GW,rbrksld:YW,rbrkslu:JW,Rcaron:XW,rcaron:QW,Rcedil:eZ,rcedil:tZ,rceil:nZ,rcub:oZ,Rcy:rZ,rcy:iZ,rdca:sZ,rdldhar:aZ,rdquo:lZ,rdquor:cZ,rdsh:uZ,real:dZ,realine:fZ,realpart:pZ,reals:mZ,Re:hZ,rect:gZ,reg:vZ,REG:yZ,ReverseElement:_Z,ReverseEquilibrium:CZ,ReverseUpEquilibrium:bZ,rfisht:kZ,rfloor:wZ,rfr:EZ,Rfr:xZ,rHar:SZ,rhard:TZ,rharu:AZ,rharul:NZ,Rho:DZ,rho:MZ,rhov:BZ,RightAngleBracket:$Z,RightArrowBar:OZ,rightarrow:LZ,RightArrow:IZ,Rightarrow:PZ,RightArrowLeftArrow:FZ,rightarrowtail:VZ,RightCeiling:RZ,RightDoubleBracket:zZ,RightDownTeeVector:UZ,RightDownVectorBar:qZ,RightDownVector:HZ,RightFloor:jZ,rightharpoondown:WZ,rightharpoonup:ZZ,rightleftarrows:KZ,rightleftharpoons:GZ,rightrightarrows:YZ,rightsquigarrow:JZ,RightTeeArrow:XZ,RightTee:QZ,RightTeeVector:eK,rightthreetimes:tK,RightTriangleBar:nK,RightTriangle:oK,RightTriangleEqual:rK,RightUpDownVector:iK,RightUpTeeVector:sK,RightUpVectorBar:aK,RightUpVector:lK,RightVectorBar:cK,RightVector:uK,ring:dK,risingdotseq:fK,rlarr:pK,rlhar:mK,rlm:hK,rmoustache:gK,rmoust:vK,rnmid:yK,roang:_K,roarr:CK,robrk:bK,ropar:kK,ropf:wK,Ropf:EK,roplus:xK,rotimes:SK,RoundImplies:TK,rpar:AK,rpargt:NK,rppolint:DK,rrarr:MK,Rrightarrow:BK,rsaquo:$K,rscr:OK,Rscr:LK,rsh:IK,Rsh:PK,rsqb:FK,rsquo:VK,rsquor:RK,rthree:zK,rtimes:UK,rtri:qK,rtrie:HK,rtrif:jK,rtriltri:WK,RuleDelayed:ZK,ruluhar:KK,rx:GK,Sacute:YK,sacute:JK,sbquo:XK,scap:QK,Scaron:eG,scaron:tG,Sc:nG,sc:oG,sccue:rG,sce:iG,scE:sG,Scedil:aG,scedil:lG,Scirc:cG,scirc:uG,scnap:dG,scnE:fG,scnsim:pG,scpolint:mG,scsim:hG,Scy:gG,scy:vG,sdotb:yG,sdot:_G,sdote:CG,searhk:bG,searr:kG,seArr:wG,searrow:EG,sect:xG,semi:SG,seswar:TG,setminus:AG,setmn:NG,sext:DG,Sfr:MG,sfr:BG,sfrown:$G,sharp:OG,SHCHcy:LG,shchcy:IG,SHcy:PG,shcy:FG,ShortDownArrow:VG,ShortLeftArrow:RG,shortmid:zG,shortparallel:UG,ShortRightArrow:qG,ShortUpArrow:HG,shy:jG,Sigma:WG,sigma:ZG,sigmaf:KG,sigmav:GG,sim:YG,simdot:JG,sime:XG,simeq:QG,simg:eY,simgE:tY,siml:nY,simlE:oY,simne:rY,simplus:iY,simrarr:sY,slarr:aY,SmallCircle:lY,smallsetminus:cY,smashp:uY,smeparsl:dY,smid:fY,smile:pY,smt:mY,smte:hY,smtes:gY,SOFTcy:vY,softcy:yY,solbar:_Y,solb:CY,sol:bY,Sopf:kY,sopf:wY,spades:EY,spadesuit:xY,spar:SY,sqcap:TY,sqcaps:AY,sqcup:NY,sqcups:DY,Sqrt:MY,sqsub:BY,sqsube:$Y,sqsubset:OY,sqsubseteq:LY,sqsup:IY,sqsupe:PY,sqsupset:FY,sqsupseteq:VY,square:RY,Square:zY,SquareIntersection:UY,SquareSubset:qY,SquareSubsetEqual:HY,SquareSuperset:jY,SquareSupersetEqual:WY,SquareUnion:ZY,squarf:KY,squ:GY,squf:YY,srarr:JY,Sscr:XY,sscr:QY,ssetmn:eJ,ssmile:tJ,sstarf:nJ,Star:oJ,star:rJ,starf:iJ,straightepsilon:sJ,straightphi:aJ,strns:lJ,sub:cJ,Sub:uJ,subdot:dJ,subE:fJ,sube:pJ,subedot:mJ,submult:hJ,subnE:gJ,subne:vJ,subplus:yJ,subrarr:_J,subset:CJ,Subset:bJ,subseteq:kJ,subseteqq:wJ,SubsetEqual:EJ,subsetneq:xJ,subsetneqq:SJ,subsim:TJ,subsub:AJ,subsup:NJ,succapprox:DJ,succ:MJ,succcurlyeq:BJ,Succeeds:$J,SucceedsEqual:OJ,SucceedsSlantEqual:LJ,SucceedsTilde:IJ,succeq:PJ,succnapprox:FJ,succneqq:VJ,succnsim:RJ,succsim:zJ,SuchThat:UJ,sum:qJ,Sum:HJ,sung:jJ,sup1:WJ,sup2:ZJ,sup3:KJ,sup:GJ,Sup:YJ,supdot:JJ,supdsub:XJ,supE:QJ,supe:eX,supedot:tX,Superset:nX,SupersetEqual:oX,suphsol:rX,suphsub:iX,suplarr:sX,supmult:aX,supnE:lX,supne:cX,supplus:uX,supset:dX,Supset:fX,supseteq:pX,supseteqq:mX,supsetneq:hX,supsetneqq:gX,supsim:vX,supsub:yX,supsup:_X,swarhk:CX,swarr:bX,swArr:kX,swarrow:wX,swnwar:EX,szlig:xX,Tab:SX,target:TX,Tau:AX,tau:NX,tbrk:DX,Tcaron:MX,tcaron:BX,Tcedil:$X,tcedil:OX,Tcy:LX,tcy:IX,tdot:PX,telrec:FX,Tfr:VX,tfr:RX,there4:zX,therefore:UX,Therefore:qX,Theta:HX,theta:jX,thetasym:WX,thetav:ZX,thickapprox:KX,thicksim:GX,ThickSpace:YX,ThinSpace:JX,thinsp:XX,thkap:QX,thksim:eQ,THORN:tQ,thorn:nQ,tilde:oQ,Tilde:rQ,TildeEqual:iQ,TildeFullEqual:sQ,TildeTilde:aQ,timesbar:lQ,timesb:cQ,times:uQ,timesd:dQ,tint:fQ,toea:pQ,topbot:mQ,topcir:hQ,top:gQ,Topf:vQ,topf:yQ,topfork:_Q,tosa:CQ,tprime:bQ,trade:kQ,TRADE:wQ,triangle:EQ,triangledown:xQ,triangleleft:SQ,trianglelefteq:TQ,triangleq:AQ,triangleright:NQ,trianglerighteq:DQ,tridot:MQ,trie:BQ,triminus:$Q,TripleDot:OQ,triplus:LQ,trisb:IQ,tritime:PQ,trpezium:FQ,Tscr:VQ,tscr:RQ,TScy:zQ,tscy:UQ,TSHcy:qQ,tshcy:HQ,Tstrok:jQ,tstrok:WQ,twixt:ZQ,twoheadleftarrow:KQ,twoheadrightarrow:GQ,Uacute:YQ,uacute:JQ,uarr:XQ,Uarr:QQ,uArr:eee,Uarrocir:tee,Ubrcy:nee,ubrcy:oee,Ubreve:ree,ubreve:iee,Ucirc:see,ucirc:aee,Ucy:lee,ucy:cee,udarr:uee,Udblac:dee,udblac:fee,udhar:pee,ufisht:mee,Ufr:hee,ufr:gee,Ugrave:vee,ugrave:yee,uHar:_ee,uharl:Cee,uharr:bee,uhblk:kee,ulcorn:wee,ulcorner:Eee,ulcrop:xee,ultri:See,Umacr:Tee,umacr:Aee,uml:Nee,UnderBar:Dee,UnderBrace:Mee,UnderBracket:Bee,UnderParenthesis:$ee,Union:Oee,UnionPlus:Lee,Uogon:Iee,uogon:Pee,Uopf:Fee,uopf:Vee,UpArrowBar:Ree,uparrow:zee,UpArrow:Uee,Uparrow:qee,UpArrowDownArrow:Hee,updownarrow:jee,UpDownArrow:Wee,Updownarrow:Zee,UpEquilibrium:Kee,upharpoonleft:Gee,upharpoonright:Yee,uplus:Jee,UpperLeftArrow:Xee,UpperRightArrow:Qee,upsi:ete,Upsi:tte,upsih:nte,Upsilon:ote,upsilon:rte,UpTeeArrow:ite,UpTee:ste,upuparrows:ate,urcorn:lte,urcorner:cte,urcrop:ute,Uring:dte,uring:fte,urtri:pte,Uscr:mte,uscr:hte,utdot:gte,Utilde:vte,utilde:yte,utri:_te,utrif:Cte,uuarr:bte,Uuml:kte,uuml:wte,uwangle:Ete,vangrt:xte,varepsilon:Ste,varkappa:Tte,varnothing:Ate,varphi:Nte,varpi:Dte,varpropto:Mte,varr:Bte,vArr:$te,varrho:Ote,varsigma:Lte,varsubsetneq:Ite,varsubsetneqq:Pte,varsupsetneq:Fte,varsupsetneqq:Vte,vartheta:Rte,vartriangleleft:zte,vartriangleright:Ute,vBar:qte,Vbar:Hte,vBarv:jte,Vcy:Wte,vcy:Zte,vdash:Kte,vDash:Gte,Vdash:Yte,VDash:Jte,Vdashl:Xte,veebar:Qte,vee:ene,Vee:tne,veeeq:nne,vellip:one,verbar:rne,Verbar:ine,vert:sne,Vert:ane,VerticalBar:lne,VerticalLine:cne,VerticalSeparator:une,VerticalTilde:dne,VeryThinSpace:fne,Vfr:pne,vfr:mne,vltri:hne,vnsub:gne,vnsup:vne,Vopf:yne,vopf:_ne,vprop:Cne,vrtri:bne,Vscr:kne,vscr:wne,vsubnE:Ene,vsubne:xne,vsupnE:Sne,vsupne:Tne,Vvdash:Ane,vzigzag:Nne,Wcirc:Dne,wcirc:Mne,wedbar:Bne,wedge:$ne,Wedge:One,wedgeq:Lne,weierp:Ine,Wfr:Pne,wfr:Fne,Wopf:Vne,wopf:Rne,wp:zne,wr:Une,wreath:qne,Wscr:Hne,wscr:jne,xcap:Wne,xcirc:Zne,xcup:Kne,xdtri:Gne,Xfr:Yne,xfr:Jne,xharr:Xne,xhArr:Qne,Xi:eoe,xi:toe,xlarr:noe,xlArr:ooe,xmap:roe,xnis:ioe,xodot:soe,Xopf:aoe,xopf:loe,xoplus:coe,xotime:uoe,xrarr:doe,xrArr:foe,Xscr:poe,xscr:moe,xsqcup:hoe,xuplus:goe,xutri:voe,xvee:yoe,xwedge:_oe,Yacute:Coe,yacute:boe,YAcy:koe,yacy:woe,Ycirc:Eoe,ycirc:xoe,Ycy:Soe,ycy:Toe,yen:Aoe,Yfr:Noe,yfr:Doe,YIcy:Moe,yicy:Boe,Yopf:$oe,yopf:Ooe,Yscr:Loe,yscr:Ioe,YUcy:Poe,yucy:Foe,yuml:Voe,Yuml:Roe,Zacute:zoe,zacute:Uoe,Zcaron:qoe,zcaron:Hoe,Zcy:joe,zcy:Woe,Zdot:Zoe,zdot:Koe,zeetrf:Goe,ZeroWidthSpace:Yoe,Zeta:Joe,zeta:Xoe,zfr:Qoe,Zfr:ere,ZHcy:tre,zhcy:nre,zigrarr:ore,zopf:rre,Zopf:ire,Zscr:sre,zscr:are,zwj:lre,zwnj:cre};var Jp=ure,lu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zr={},Pd={};function dre(t){var e,n,o=Pd[t];if(o)return o;for(o=Pd[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 Fa(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Fa.defaultChars),typeof n>"u"&&(n=!0),l=dre(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}Fa.defaultChars=";/?:@&=+$,-_.!~*'()#";Fa.componentChars="-_.!~*'()";var fre=Fa,Fd={};function pre(t){var e,n,o=Fd[t];if(o)return o;for(o=Fd[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 Va(t,e){var n;return typeof e!="string"&&(e=Va.defaultChars),n=pre(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})}Va.defaultChars=";/?:@&=+$,#";Va.componentChars="";var mre=Va,hre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ta(){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 gre=/^([a-z0-9.+-]+:)/i,vre=/:[0-9]*$/,yre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_re=["<",">",'"',"`"," ","\r",`
|
|
3
|
-
`," "],Cre=["{","}","|","\\","^","`"].concat(_re),bre=["'"].concat(Cre),
|
|
4
|
-
`};
|
|
1
|
+
"use strict";var Kg=Object.defineProperty;var Gg=(t,e,n)=>e in t?Kg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var H=(t,e,n)=>(Gg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),go=require("vuedraggable");const Yg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ie=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return i.openBlock(),i.createElementBlock("svg",Xg,[...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 e0=ie(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return i.openBlock(),i.createElementBlock("svg",n0,[...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 r0=ie(t0,[["render",o0]]),i0={},s0={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",s0,[...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 l0=ie(i0,[["render",a0]]),c0={},u0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,[...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 f0=ie(c0,[["render",d0]]),p0={},m0={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",m0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const g0=ie(p0,[["render",h0]]),v0={},y0={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",y0,[...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 C0=ie(v0,[["render",_0]]),b0={},k0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w0(t,e){return i.openBlock(),i.createElementBlock("svg",k0,[...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 E0=ie(b0,[["render",w0]]),x0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",S0,[...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 A0=ie(x0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B0(t,e){return i.openBlock(),i.createElementBlock("svg",D0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const M0=ie(N0,[["render",B0]]),$0={},O0={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",O0,[...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 I0=ie($0,[["render",L0]]),P0={},V0={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",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 R0=ie(P0,[["render",F0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return i.openBlock(),i.createElementBlock("svg",U0,[...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 H0=ie(z0,[["render",q0]]),j0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return i.openBlock(),i.createElementBlock("svg",W0,[...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 K0=ie(j0,[["render",Z0]]),G0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,[...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 X0=ie(G0,[["render",J0]]),Q0={},ev={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tv(t,e){return i.openBlock(),i.createElementBlock("svg",ev,[...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 nv=ie(Q0,[["render",tv]]),ov={},rv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iv(t,e){return i.openBlock(),i.createElementBlock("svg",rv,[...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 sv=ie(ov,[["render",iv]]),av={},lv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cv(t,e){return i.openBlock(),i.createElementBlock("svg",lv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const uv=ie(av,[["render",cv]]),dv={},fv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pv(t,e){return i.openBlock(),i.createElementBlock("svg",fv,[...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 mv=ie(dv,[["render",pv]]),hv={},gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vv(t,e){return i.openBlock(),i.createElementBlock("svg",gv,[...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 yv=ie(hv,[["render",vv]]),_v={},Cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bv(t,e){return i.openBlock(),i.createElementBlock("svg",Cv,[...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 kv=ie(_v,[["render",bv]]),wv={},Ev={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",Ev,[...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 Sv=ie(wv,[["render",xv]]),Tv={},Av={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",Av,[...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 Dv=ie(Tv,[["render",Nv]]),Bv={},Mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $v(t,e){return i.openBlock(),i.createElementBlock("svg",Mv,[...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 Ov=ie(Bv,[["render",$v]]),Lv={},Iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pv(t,e){return i.openBlock(),i.createElementBlock("svg",Iv,[...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=ie(Lv,[["render",Pv]]),Fv={},Rv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zv(t,e){return i.openBlock(),i.createElementBlock("svg",Rv,[...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 Uv=ie(Fv,[["render",zv]]),qv={},Hv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jv(t,e){return i.openBlock(),i.createElementBlock("svg",Hv,[...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 Wv=ie(qv,[["render",jv]]),Zv={},Kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gv(t,e){return i.openBlock(),i.createElementBlock("svg",Kv,[...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 Yv=ie(Zv,[["render",Gv]]),Jv={},Xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qv(t,e){return i.openBlock(),i.createElementBlock("svg",Xv,[...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 e2=ie(Jv,[["render",Qv]]),t2={},n2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o2(t,e){return i.openBlock(),i.createElementBlock("svg",n2,[...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 r2=ie(t2,[["render",o2]]),i2={},s2={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",s2,[...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 l2=ie(i2,[["render",a2]]),c2={},u2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d2(t,e){return i.openBlock(),i.createElementBlock("svg",u2,[...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 f2=ie(c2,[["render",d2]]),p2={},m2={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",m2,[...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 g2=ie(p2,[["render",h2]]),v2={},y2={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",y2,[...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 C2=ie(v2,[["render",_2]]),b2={},k2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w2(t,e){return i.openBlock(),i.createElementBlock("svg",k2,[...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 E2=ie(b2,[["render",w2]]),x2={},S2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T2(t,e){return i.openBlock(),i.createElementBlock("svg",S2,[...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 A2=ie(x2,[["render",T2]]),N2={},D2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B2(t,e){return i.openBlock(),i.createElementBlock("svg",D2,[...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 M2=ie(N2,[["render",B2]]),$2={},O2={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",O2,[...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 I2=ie($2,[["render",L2]]),P2={},V2={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",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 R2=ie(P2,[["render",F2]]),z2={},U2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q2(t,e){return i.openBlock(),i.createElementBlock("svg",U2,[...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 H2=ie(z2,[["render",q2]]),j2={},W2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z2(t,e){return i.openBlock(),i.createElementBlock("svg",W2,[...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 K2=ie(j2,[["render",Z2]]),G2={},Y2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J2(t,e){return i.openBlock(),i.createElementBlock("svg",Y2,[...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 X2=ie(G2,[["render",J2]]),Q2=i.defineComponent({name:"LoadingIcon"});const e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",e3,[...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 n3=ie(Q2,[["render",t3],["__scopeId","data-v-ad6da4a9"]]),o3={},r3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function i3(t,e){return i.openBlock(),i.createElementBlock("svg",r3,[...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 s3=ie(o3,[["render",i3]]),a3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return i.openBlock(),i.createElementBlock("svg",l3,[...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 u3=ie(a3,[["render",c3]]),d3={},f3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p3(t,e){return i.openBlock(),i.createElementBlock("svg",f3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const m3=ie(d3,[["render",p3]]),h3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v3(t,e){return i.openBlock(),i.createElementBlock("svg",g3,[...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 y3=ie(h3,[["render",v3]]),_3={},C3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return i.openBlock(),i.createElementBlock("svg",C3,[...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 k3=ie(_3,[["render",b3]]),w3={},E3={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",E3,[...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 S3=ie(w3,[["render",x3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return i.openBlock(),i.createElementBlock("svg",A3,[...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 D3=ie(T3,[["render",N3]]),B3={},M3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return i.openBlock(),i.createElementBlock("svg",M3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const O3=ie(B3,[["render",$3]]),L3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return i.openBlock(),i.createElementBlock("svg",I3,[...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=ie(L3,[["render",P3]]),F3={},R3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return i.openBlock(),i.createElementBlock("svg",R3,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const U3=ie(F3,[["render",z3]]),q3={},H3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j3(t,e){return i.openBlock(),i.createElementBlock("svg",H3,[...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 W3=ie(q3,[["render",j3]]),Z3={},K3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return i.openBlock(),i.createElementBlock("svg",K3,[...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 Y3=ie(Z3,[["render",G3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return i.openBlock(),i.createElementBlock("svg",X3,[...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 e5=ie(J3,[["render",Q3]]),t5={},n5={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o5(t,e){return i.openBlock(),i.createElementBlock("svg",n5,[...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 r5=ie(t5,[["render",o5]]),i5={},s5={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",s5,[...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 l5=ie(i5,[["render",a5]]),c5={},u5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(t,e){return i.openBlock(),i.createElementBlock("svg",u5,[...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 f5=ie(c5,[["render",d5]]),p5={},m5={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",m5,[...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 g5=ie(p5,[["render",h5]]),v5={},y5={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",y5,[...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 C5=ie(v5,[["render",_5]]),b5={},k5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w5(t,e){return i.openBlock(),i.createElementBlock("svg",k5,[...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 E5=ie(b5,[["render",w5]]),x5={},S5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(t,e){return i.openBlock(),i.createElementBlock("svg",S5,[...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 A5=ie(x5,[["render",T5]]),N5={},D5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B5(t,e){return i.openBlock(),i.createElementBlock("svg",D5,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const M5=ie(N5,[["render",B5]]),$5={},O5={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",O5,[...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 I5=ie($5,[["render",L5]]),P5={},V5={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",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 R5=ie(P5,[["render",F5]]),z5={},U5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q5(t,e){return i.openBlock(),i.createElementBlock("svg",U5,[...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 H5=ie(z5,[["render",q5]]),j5={},W5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z5(t,e){return i.openBlock(),i.createElementBlock("svg",W5,[...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 K5=ie(j5,[["render",Z5]]),G5={},Y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J5(t,e){return i.openBlock(),i.createElementBlock("svg",Y5,[...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 X5=ie(G5,[["render",J5]]),Q5={},ey={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ty(t,e){return i.openBlock(),i.createElementBlock("svg",ey,[...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 ny=ie(Q5,[["render",ty]]),oy={},ry={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iy(t,e){return i.openBlock(),i.createElementBlock("svg",ry,[...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 sy=ie(oy,[["render",iy]]),ay=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:e0,AccountCircle:r0,AccountTreeOutlineRounded:l0,AccountTreeRounded:f0,Add:g0,AddBoxOutlineRounded:C0,ArchiveOutlineRounded:E0,ArrowBackRounded:A0,ArrowDropDownRounded:M0,ArrowForwardRounded:I0,AssignmentOutlineRounded:R0,AttachFileRounded:H0,CalendarTodayOutlineRounded:K0,CancelRounded:X0,ChatOutline:nv,CheckBoxOutlineBlank:sv,CheckBoxOutlineBlankSharp:uv,CheckBoxOutlineRounded:mv,CheckSmallRounded:yv,ChecklistRounded:kv,ChevronLeft:Sv,ChevronRight:Dv,CloseRounded:Ov,ContactsOutlineRounded:Vv,ContentCopyOutline:Uv,DeleteOutlineRounded:Wv,DownloadRounded:Yv,DragIndicator:e2,EditDocumentRounded:r2,EditOutline:l2,ErrorOutlineRounded:f2,FilterListRounded:g2,FlagRounded:C2,FlowsheetOutlineRounded:E2,GifBox:A2,GroupsOutline:M2,HomeOutlineRounded:I2,ImageRounded:R2,Info:H2,KeyboardArrowDown:K2,KeyboardArrowUp:X2,Loading:n3,Lock:s3,LogoutRounded:u3,Menu:m3,MoreHoriz:y3,MoreTimeRounded:k3,MoreVert:S3,MountainFlagOutlineRounded:D3,PersonAddOutlineRounded:O3,PictureAsPdfRounded:V3,RadioButtonChecked:U3,RadioButtonCheckedOutline:W3,RadioButtonUnchecked:Y3,RemoveRounded:e5,SearchRounded:r5,SelectCheckBox:l5,SendRounded:f5,Settings:g5,SlideshowRounded:C5,Target:E5,TaskOutlineRounded:A5,TextSnippetRounded:M5,TimerOutline:I5,ViewComfyAltRounded:R5,ViewCompactAltRounded:H5,ViewTimelineRounded:K5,WarningOutlineRounded:X5,WarningRounded:ny,WaterfallChartRounded:sy},Symbol.toStringTag,{value:"Module"})),ly={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Ea={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Zc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},cy={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Zc,...cy});const dp={ROUND:"round",ROUNDED:"rounded"},uy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},_e=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Ea.MD}},setup(t){const e=t,n=i.computed(()=>ay[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 dy=["type"],fy={key:0,class:"ao-button__label"},pe=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ly.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>dp.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",fy,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(_e,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,dy))}});function py(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 ct=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}=py(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 my={key:0,class:"ao-card-horiz__drag ao-card__drag"},hy={class:"ao-card-horiz__header"},gy={key:0,class:"ao-card-horiz__avatar"},vy={class:"ao-card-horiz__title-group"},yy={key:0,class:"ao-card-horiz__subtitle"},_y={key:1,class:"ao-card-horiz__header"},Cy={key:1,class:"ao-card-horiz__body"},by={key:2,class:"ao-card-horiz__footer"},ky={key:3,class:"ao-card-horiz__secondary"},fp=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",my,[i.createVNode(_e,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",hy,[t.icon?(i.openBlock(),i.createElementBlock("div",gy,[i.createVNode(_e,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",vy,[i.createVNode(ct,{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",yy,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",_y,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",Cy,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",by,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",ky,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Mi=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(uy).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(_e,{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(_e,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},wy={months:"months",weeks:"weeks",days:"days"},Ey={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},pp={BEFORE:"before",AFTER:"after"},mp={START:"start",end:"end"},hp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Le={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var gp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(gp||{});const xy={add:"add",remove:"remove",moved:"moved"};var vp=(t=>(t.HOURS="hours",t.DAYS="days",t))(vp||{});const No={project:"projectId",type:"typeId",assignee:"assigneeId"};function Ks(t){"@babel/helpers - typeof";return Ks=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},Ks(t)}function Rn(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 je(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ht(t){je(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Ks(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 Sy(t,e){je(2,arguments);var n=ht(t).getTime(),o=Rn(e);return new Date(n+o)}var Ty={};function Gi(){return Ty}function Oi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function gd(t){je(1,arguments);var e=ht(t);return e.setHours(0,0,0,0),e}var Ay=864e5;function Ny(t,e){je(2,arguments);var n=gd(t),o=gd(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/Ay)}function Dy(t,e){je(2,arguments);var n=ht(t),o=ht(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var yp=6e4,_p=36e5;function By(t){return je(1,arguments),t instanceof Date||Ks(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Cp(t){if(je(1,arguments),!By(t)&&typeof t!="number")return!1;var e=ht(t);return!isNaN(Number(e))}function ac(t,e){je(2,arguments);var n=Rn(e);return Sy(t,-n)}var My=864e5;function $y(t){je(1,arguments);var e=ht(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/My)+1}function Gs(t){je(1,arguments);var e=1,n=ht(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 bp(t){je(1,arguments);var e=ht(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Gs(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Gs(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Oy(t){je(1,arguments);var e=bp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Gs(n);return o}var Ly=6048e5;function Iy(t){je(1,arguments);var e=ht(t),n=Gs(e).getTime()-Oy(e).getTime();return Math.round(n/Ly)+1}function Ys(t,e){var n,o,r,s,a,l,c,u;je(1,arguments);var d=Gi(),f=Rn((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=ht(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 kp(t,e){var n,o,r,s,a,l,c,u;je(1,arguments);var d=ht(t),f=d.getUTCFullYear(),p=Gi(),m=Rn((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=Ys(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Ys(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Py(t,e){var n,o,r,s,a,l,c,u;je(1,arguments);var d=Gi(),f=Rn((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=kp(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Ys(m,e);return h}var Vy=6048e5;function Fy(t,e){je(1,arguments);var n=ht(t),o=Ys(n,e).getTime()-Py(n,e).getTime();return Math.round(o/Vy)+1}function Ae(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var Ry={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return Ae(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Ae(o+1,2)},d:function(e,n){return Ae(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 Ae(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ae(e.getUTCHours(),n.length)},m:function(e,n){return Ae(e.getUTCMinutes(),n.length)},s:function(e,n){return Ae(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 Ae(s,n.length)}};const Qn=Ry;var dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zy={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 Qn.y(e,n)},Y:function(e,n,o,r){var s=kp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Ae(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Ae(a,n.length)},R:function(e,n){var o=bp(e);return Ae(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Ae(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 Ae(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 Ae(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 Qn.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 Ae(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=Fy(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Ae(s,n.length)},I:function(e,n,o){var r=Iy(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):Ae(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qn.d(e,n)},D:function(e,n,o){var r=$y(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):Ae(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 Ae(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 Ae(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 Ae(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var r=e.getUTCHours(),s;switch(r===12?s=dr.noon:r===0?s=dr.midnight:s=r/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var r=e.getUTCHours(),s;switch(r>=17?s=dr.evening:r>=12?s=dr.afternoon:r>=4?s=dr.morning:s=dr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Qn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):Ae(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qn.s(e,n)},S:function(e,n){return Qn.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 yd(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return yd(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+vd(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+vd(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return Ae(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return Ae(a,n.length)}};function vd(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+Ae(s,2)}function yd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Ae(Math.abs(t)/60,2)}return Do(t,e)}function Do(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=Ae(Math.floor(r/60),2),a=Ae(r%60,2);return o+s+n+a}const Uy=zy;var _d=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"})}},wp=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"})}},qy=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return _d(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}}",_d(r,n)).replace("{{time}}",wp(s,n))},Hy={p:wp,P:qy};const jy=Hy;var Wy=["D","DD"],Zy=["YY","YYYY"];function Ky(t){return Wy.indexOf(t)!==-1}function Gy(t){return Zy.indexOf(t)!==-1}function Cd(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 Yy={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"}},Jy=function(e,n,o){var r,s=Yy[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 Xy=Jy;function yl(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 Qy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},n7={date:yl({formats:Qy,defaultWidth:"full"}),time:yl({formats:e7,defaultWidth:"full"}),dateTime:yl({formats:t7,defaultWidth:"full"})};const o7=n7;var r7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i7=function(e,n,o,r){return r7[e]};const s7=i7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var a7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},c7={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"]},u7={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"]},d7={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"}},f7={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"}},p7=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"},m7={ordinalNumber:p7,era:ai({values:a7,defaultWidth:"wide"}),quarter:ai({values:l7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:c7,defaultWidth:"wide"}),day:ai({values:u7,defaultWidth:"wide"}),dayPeriod:ai({values:d7,defaultWidth:"wide",formattingValues:f7,defaultFormattingWidth:"wide"})};const h7=m7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?v7(l,function(f){return f.test(a)}):g7(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 g7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function v7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function y7(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 _7=/^(\d+)(th|st|nd|rd)?/i,C7=/\d+/i,b7={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},k7={any:[/^b/i,/^(a|c)/i]},w7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},E7={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},S7={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]},T7={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},A7={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]},N7={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},D7={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}},B7={ordinalNumber:y7({matchPattern:_7,parsePattern:C7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:b7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),quarter:li({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:S7,defaultParseWidth:"any"}),day:li({matchPatterns:T7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:D7,defaultParseWidth:"any"})};const M7=B7;var $7={code:"en-US",formatDistance:Xy,formatLong:o7,formatRelative:s7,localize:h7,match:M7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ep=$7;var O7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I7=/^'([^]*?)'?$/,P7=/''/g,V7=/[a-zA-Z]/;function xp(t,e,n){var o,r,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,k;je(2,arguments);var w=String(e),b=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:Ep,T=Rn((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 S=Rn((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(!(S>=0&&S<=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=ht(t);if(!Cp(N))throw new RangeError("Invalid time value");var L=Oi(N),A=ac(N,L),D={firstWeekContainsDate:T,weekStartsOn:S,locale:E,_originalDate:N},B=w.match(L7).map(function(I){var V=I[0];if(V==="p"||V==="P"){var j=jy[V];return j(I,E.formatLong)}return I}).join("").match(O7).map(function(I){if(I==="''")return"'";var V=I[0];if(V==="'")return F7(I);var j=Uy[V];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Gy(I)&&Cd(I,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ky(I)&&Cd(I,e,String(t)),j(A,I,E.localize,D);if(V.match(V7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return I}).join("");return B}function F7(t){var e=t.match(I7);return e?e[1].replace(P7,"'"):t}function R7(t,e,n){var o,r,s,a,l,c,u,d,f,p;je(2,arguments);var m=ht(t),h=ht(e),g=Gi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:Ep,C=Rn((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=Ny(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=ac(m,Oi(m)),w=ac(h,Oi(h)),b=y.formatRelative(_,k,w,{locale:y,weekStartsOn:C});return xp(m,b,{locale:y,weekStartsOn:C})}function Li(t,e){var n;je(1,arguments);var o=Rn((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=H7(t),s;if(r.date){var a=j7(r.date,o);s=W7(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=Z7(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=K7(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 ws={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},z7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,U7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,q7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function H7(t){var e={},n=t.split(ws.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ws.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ws.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ws.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function j7(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 W7(t,e){if(e===null)return new Date(NaN);var n=t.match(z7);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return Q7(e,l,c)?G7(e,l,c):new Date(NaN);var u=new Date(0);return!J7(e,s,a)||!X7(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function Z7(t){var e=t.match(U7);if(!e)return NaN;var n=_l(e[1]),o=_l(e[2]),r=_l(e[3]);return e_(n,o,r)?n*_p+o*yp+r*1e3:NaN}function _l(t){return t&&parseFloat(t.replace(",","."))||0}function K7(t){if(t==="Z")return 0;var e=t.match(q7);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return t_(o,r)?n*(o*_p+r*yp):NaN}function G7(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 Y7=[31,null,31,30,31,30,31,31,30,31,30,31];function Sp(t){return t%400===0||t%4===0&&t%100!==0}function J7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Y7[e]||(Sp(t)?29:28))}function X7(t,e){return e>=1&&e<=(Sp(t)?366:365)}function Q7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function e_(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function t_(t,e){return e>=0&&e<=59}var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function n_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o_(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 Xe={},Tp={},ui={},Yi={},Rr={},xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.lexoHelper=void 0;xa.lexoHelper={arrayCopy:r_};function r_(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class i_{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}Ji.default=i_;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.LexoInteger=void 0;const Es=xa,s_=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return Es.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Es.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=fe.add(this.sys,this.mag,e.mag);return fe.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return Es.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Es.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new s_.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Rr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Rr,a_=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(di.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new a_.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),r&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}Yi.LexoDecimal=Pt;var xs={},bd;function Ap(){if(bd)return xs;bd=1,Object.defineProperty(xs,"__esModule",{value:!0});const t=Rr,e=Dp();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 Kc={},Np={};Object.defineProperty(Np,"__esModule",{value:!0});var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.LexoNumeralSystem10=void 0;class l_{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)}}Sa.LexoNumeralSystem10=l_;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.LexoNumeralSystem36=void 0;class c_{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]}}Ta.LexoNumeralSystem36=c_;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LexoNumeralSystem64=void 0;class u_{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]}}Aa.LexoNumeralSystem64=u_;(function(t){var e=bt&&bt.__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=bt&&bt.__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(Sa,t),n(Ta,t),n(Aa,t)})(Kc);var kd;function Dp(){if(kd)return ui;kd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Ap(),n=Ji,o=Kc;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 ui.LexoRank=r,ui}(function(t){var e=bt&&bt.__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=bt&&bt.__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(Dp(),t),n(Ap(),t),n(Yi,t),n(Rr,t)})(Tp);(function(t){var e=bt&&bt.__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=bt&&bt.__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(Tp,t),n(Kc,t)})(Xe);const _i=60,d_=8,wd=_i*d_;function Na(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/wd),r=Math.floor(t%wd/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function 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 f_(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 p_(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 m_(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Xe.LexoRank.parse(n.rank).genPrev().format()}else return Xe.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Xe.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Xe.LexoRank.parse(o.rank).between(Xe.LexoRank.parse(n.rank)).format()}}function Qi(t){if(t.length===0)return Xe.LexoRank.middle().format();const e=t[0];return Xe.LexoRank.parse(e.rank).genPrev().format()}function Da(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return Cp(n)?xp(n,e):""}function Gc(t,e){return t.status.id===e.id}function h_(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!Gc(n,e))}function g_(t,e){return{...t,status:h_(t,e)?$i.done:$i.todo}}const Mp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function v_(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 y_(t,e=.15){var n;if(t.startsWith("#"))return v_(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 $p(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Ed(t,e){const n=e.filter(r=>r.firstName||r.lastName).map(r=>({id:r.id,name:$p(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 __=["title"],C_={key:0,className:"ao-avatar__initials"},b_=["src"],jn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Ea.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=m_(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",C_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,b_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(pe,{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,__))}});const k_={class:"ao-card-template__subitems"},w_={class:"ao-card-template__subitem"},E_={class:"ao-card-template__subitem-number"},x_={class:"ao-card-template__subitem"},S_={class:"ao-card-template__subitem"},T_={class:"ao-card-template__body"},A_={class:"ao-card-template__col ao-card-template__col--phases"},N_={class:"ao-card-template__col-title"},D_={class:"ao-card-template__col-label"},B_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},M_={class:"ao-card-template__footer"},$_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},O_={class:"ao-card-template__col-title"},L_={class:"ao-card-template__col-label"},I_={class:"ao-card-template__col-body"},P_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},V_={class:"ao-card-template__col-title"},F_={class:"ao-card-template__col-label"},R_={class:"ao-card-template__col-body"},z_={class:"ao-card-template-item__secondary"},Cl=5,U_=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,Cl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>Cl?n.phases.length-Cl:0);return(c,u)=>(i.openBlock(),i.createBlock(fp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",k_,[i.createElementVNode("li",w_,[i.createVNode(_e,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",E_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",x_,[i.createVNode(_e,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",S_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",T_,[i.createElementVNode("div",A_,[i.createElementVNode("div",N_,[i.createVNode(_e,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",D_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",B_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Mi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Mi,{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",z_,[i.createVNode(pe,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",M_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",$_,[i.createElementVNode("div",O_,[i.createElementVNode("span",L_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",I_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",P_,[i.createElementVNode("div",V_,[i.createElementVNode("span",F_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",R_,[i.createVNode(jn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const q_={class:"ao-page-header"},H_={class:"ao-page-header-main"},j_={key:0,class:"ao-page-header-secondary"},es=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",q_,[i.createElementVNode("div",H_,[t.canGoBack?(i.openBlock(),i.createBlock(pe,{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",j_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const W_=["type"],Z_={key:0,class:"ao-button-card__label"},vo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Zc.BLACK},size:{default:()=>Ea.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>dp.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",Z_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(_e,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,W_))}});const K_={class:"ao-card-template-item__footer"},G_={key:0,class:"ao-card-template-item__subitem"},Y_={class:"ao-card-template-item__subitem-number"},J_={class:"ao-card-template-item__secondary"},Yc=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(fp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",K_,[(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",G_,[i.createVNode(_e,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",Y_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",J_,[i.createVNode(pe,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const X_=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(Yc,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"]))}}),Q_=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(Yc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),eC={class:"ao-list__footer"},tC=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(go),{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(ct,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(Q_,{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",eC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),nC=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(Yc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),oC={class:"ao-list__footer"},rC=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(go),{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(ct,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(nC,{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",oC,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),iC={class:"ao-modal"},sC={key:0,class:"ao-modal__header"},aC={class:"ao-modal__header-meta"},lC={class:"ao-modal__title-group"},cC={class:"ao-modal__body"},uC={key:1,class:"ao-modal__footer"},Ba=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",iC,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",sC,[i.createElementVNode("div",aC,[i.createVNode(pe,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",lC,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",cC,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",uC,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Vt=Math.max,Js=Math.round,Ss=Math.floor,uo=t=>({x:t,y:t}),dC={left:"right",right:"left",bottom:"top",top:"bottom"},fC={start:"end",end:"start"};function Jc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Ma(t){return t.split("-")[1]}function pC(t){return t==="x"?"y":"x"}function Op(t){return t==="y"?"height":"width"}function Xc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Lp(t){return pC(Xc(t))}function mC(t,e,n){n===void 0&&(n=!1);const o=Ma(t),r=Lp(t),s=Op(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Xs(a)),[a,Xs(a)]}function hC(t){const e=Xs(t);return[lc(t),e,lc(e)]}function lc(t){return t.replace(/start|end/g,e=>fC[e])}function gC(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 vC(t,e,n,o){const r=Ma(t);let s=gC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(lc)))),s}function Xs(t){return t.replace(/left|right|bottom|top/g,e=>dC[e])}function yC(t){return{top:0,right:0,bottom:0,left:0,...t}}function _C(t){return typeof t!="number"?yC(t):{top:t,right:t,bottom:t,left:t}}function Qs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xd(t,e,n){let{reference:o,floating:r}=t;const s=Xc(e),a=Lp(e),l=Op(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let 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(Ma(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const CC=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}=xd(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}=xd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:m}};async function Ip(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}=Jc(e,t),h=_C(m),y=l[p?f==="floating"?"reference":"floating":f],C=Qs(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=Qs(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 bC=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}=Jc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Nr(r),v=Nr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(v||!g?[Xs(l)]:hC(l));!p&&h!=="none"&&k.push(...vC(l,g,h,_));const w=[l,...k],b=await Ip(e,y),E=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[C]),f){const A=mC(r,a,_);E.push(b[A[0]],b[A[1]])}if(T=[...T,{placement:r,overflows:E}],!E.every(A=>A<=0)){var S,N;const A=(((S=s.flip)==null?void 0:S.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:T},reset:{placement:D}};let B=(N=T.filter(I=>I.overflows[0]<=0).sort((I,V)=>I.overflows[1]-V.overflows[1])[0])==null?void 0:N.placement;if(!B)switch(m){case"bestFit":{var L;const I=(L=T.map(V=>[V.placement,V.overflows.filter(j=>j>0).reduce((j,R)=>j+R,0)]).sort((V,j)=>V[1]-j[1])[0])==null?void 0:L[0];I&&(B=I);break}case"initialPlacement":B=l;break}if(r!==B)return{reset:{placement:B}}}return{}}}},kC=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}=Jc(t,e),c=await Ip(e,l),u=Nr(n),d=Ma(n),f=Xc(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?Ii(C,b):b}else{const b=m-c.top-c.bottom;_=d||v?Ii(y,b):b}if(v&&!d){const b=Vt(c.left,0),E=Vt(c.right,0),T=Vt(c.top,0),S=Vt(c.bottom,0);f?k=p-2*(b!==0||E!==0?b+E:Vt(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Vt(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 fo(t){return Pp(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wn(t){var e;return(e=(Pp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pp(t){return t instanceof Node||t instanceof Mt(t).Node}function zn(t){return t instanceof Element||t instanceof Mt(t).Element}function Cn(t){return t instanceof HTMLElement||t instanceof Mt(t).HTMLElement}function Sd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function ts(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function wC(t){return["table","td","th"].includes(fo(t))}function Qc(t){const e=eu(),n=Ht(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function EC(t){let e=Dr(t);for(;Cn(e)&&!$a(e);){if(Qc(e))return e;e=Dr(e)}return null}function eu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $a(t){return["html","body","#document"].includes(fo(t))}function Ht(t){return Mt(t).getComputedStyle(t)}function Oa(t){return zn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(fo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sd(t)&&t.host||Wn(t);return Sd(e)?e.host:e}function Vp(t){const e=Dr(t);return $a(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&ts(e)?e:Vp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Vp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Mt(r);return s?e.concat(a,a.visualViewport||[],ts(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Fp(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Cn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Js(n)!==s||Js(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function tu(t){return zn(t)?t:t.contextElement}function br(t){const e=tu(t);if(!Cn(e))return uo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Fp(e);let a=(s?Js(n.width):n.width)/o,l=(s?Js(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xC=uo(0);function Rp(t){const e=Mt(t);return!eu()||!e.visualViewport?xC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function SC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function qo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=tu(t);let a=uo(1);e&&(o?zn(o)&&(a=br(o)):a=br(t));const l=SC(s,n,o)?Rp(s):uo(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=Mt(s),m=o&&zn(o)?Mt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=br(h),y=h.getBoundingClientRect(),C=Ht(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=Mt(h).frameElement}}return Qs({width:d,height:f,x:c,y:u})}function TC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=Cn(n),s=Wn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=uo(1);const c=uo(0);if((r||!r&&o!=="fixed")&&((fo(n)!=="body"||ts(s))&&(a=Oa(n)),Cn(n))){const u=qo(n);l=br(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function AC(t){return Array.from(t.getClientRects())}function zp(t){return qo(Wn(t)).left+Oa(t).scrollLeft}function NC(t){const e=Wn(t),n=Oa(t),o=t.ownerDocument.body,r=Vt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Vt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+zp(t);const l=-n.scrollTop;return Ht(o).direction==="rtl"&&(a+=Vt(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function DC(t,e){const n=Mt(t),o=Wn(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=eu();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function BC(t,e){const n=qo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=Cn(t)?br(t):uo(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 Td(t,e,n){let o;if(e==="viewport")o=DC(t,n);else if(e==="document")o=NC(Wn(t));else if(zn(e))o=BC(e,n);else{const r=Rp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Qs(o)}function Up(t,e){const n=Dr(t);return n===e||!zn(n)||$a(n)?!1:Ht(n).position==="fixed"||Up(n,e)}function MC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>zn(l)&&fo(l)!=="body"),r=null;const s=Ht(t).position==="fixed";let a=s?Dr(t):t;for(;zn(a)&&!$a(a);){const l=Ht(a),c=Qc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ts(a)&&!c&&Up(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function $C(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?MC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Td(e,d,r);return u.top=Vt(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Vt(f.left,u.left),u},Td(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function OC(t){return Fp(t)}function LC(t,e,n){const o=Cn(e),r=Wn(e),s=n==="fixed",a=qo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=uo(0);if(o||!o&&!s)if((fo(e)!=="body"||ts(r))&&(l=Oa(e)),o){const u=qo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=zp(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ad(t,e){return!Cn(t)||Ht(t).position==="fixed"?null:e?e(t):t.offsetParent}function qp(t,e){const n=Mt(t);if(!Cn(t))return n;let o=Ad(t,e);for(;o&&wC(o)&&Ht(o).position==="static";)o=Ad(o,e);return o&&(fo(o)==="html"||fo(o)==="body"&&Ht(o).position==="static"&&!Qc(o))?n:o||EC(t)||n}const IC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||qp,s=this.getDimensions;return{reference:LC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function PC(t){return Ht(t).direction==="rtl"}const VC={convertOffsetParentRelativeRectToViewportRelativeRect:TC,getDocumentElement:Wn,getClippingRect:$C,getOffsetParent:qp,getElementRects:IC,getClientRects:AC,getDimensions:OC,getScale:br,isElement:zn,isRTL:PC};function FC(t,e){let n=null,o;const r=Wn(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=Ss(d),h=Ss(r.clientWidth-(u+f)),g=Ss(r.clientHeight-(d+p)),y=Ss(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Vt(0,Ii(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 RC(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=tu(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?FC(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?qo(t):null;c&&y();function y(){const C=qo(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 zC=(t,e,n)=>{const o=new Map,r={platform:VC,...n},s={...r.platform,_c:o};return CC(t,e,{...r,platform:s})},UC=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=RC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||zC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[bC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),kC({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 fn(t){return[null,void 0].indexOf(t)!==-1}function qC(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||fn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>fn(f)?s.value==="single"?{}:[]:f;return{update:c}}function HC(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 jC(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 WC(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 bl(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 ZC(t){return Object.prototype.toString.call(t)==="[object Object]"}function KC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function GC(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:S,max:N,strict:L,closeOnSelect:A,closeOnDeselect:D,groups:B,reverse:I,infinite:V,groupOptions:j,groupHideEmpty:R,groupSelect:q,onCreate:F,disabledProp:ee,searchStart:P,searchFilter:re}=i.toRefs(t),oe=i.getCurrentInstance().proxy,G=n.iv,z=n.ev,te=n.search,ue=n.clearSearch,xe=n.update,Ve=n.pointer,ut=n.setPointer,ye=n.clearPointer,dt=n.focus,Se=n.deactivate,gt=n.close,$=n.localize,Y=i.ref([]),me=i.ref([]),Be=i.ref(!1),Fe=i.ref(null),ge=i.ref(V.value&&a.value===-1?10:a.value),cn=i.computed(()=>c.value||u.value||!1),Tn=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),ze=i.computed(()=>{if(B.value){let M=Zt.value||[],J=[];return M.forEach(ve=>{ti(ve[j.value]).forEach($e=>{J.push(Object.assign({},$e,ve[ee.value]?{[ee.value]:!0}:{}))})}),J}else{let M=ti(me.value||[]);return Y.value.length&&(M=M.concat(Y.value)),M}}),vt=i.computed(()=>{let M=ze.value;return I.value&&(M=M.reverse()),Nn.value.length&&(M=Nn.value.concat(M)),ei(M)}),st=i.computed(()=>{let M=vt.value;return ge.value>0&&(M=M.slice(0,ge.value)),M}),Zt=i.computed(()=>{if(!B.value)return[];let M=[],J=me.value||[];return Y.value.length&&M.push({[T.value]:" ",[j.value]:[...Y.value],__CREATE__:!0}),M.concat(J)}),An=i.computed(()=>{let M=[...Zt.value].map(J=>({...J}));return Nn.value.length&&(M[0]&&M[0].__CREATE__?M[0][j.value]=[...Nn.value,...M[0][j.value]]:M=[{[T.value]:" ",[j.value]:[...Nn.value],__CREATE__:!0}].concat(M)),M}),Kn=i.computed(()=>{if(!B.value)return[];let M=An.value;return Eo((M||[]).map((J,ve)=>{const $e=ti(J[j.value]);return{...J,index:ve,group:!0,[j.value]:ei($e,!1).map(Dn=>Object.assign({},Dn,J[ee.value]?{[ee.value]:!0}:{})),__VISIBLE__:ei($e).map(Dn=>Object.assign({},Dn,J[ee.value]?{[ee.value]:!0}:{}))}}))}),ko=i.computed(()=>{switch(r.value){case"single":return!fn(G.value[b.value]);case"multiple":case"tags":return!fn(G.value)&&G.value.length>0}}),Gn=i.computed(()=>m!==void 0&&m.value!==void 0?m.value(G.value,oe):G.value&&G.value.length>1?`${G.value.length} options selected`:"1 option selected"),ir=i.computed(()=>!ze.value.length&&!Be.value&&!Nn.value.length),sr=i.computed(()=>ze.value.length>0&&st.value.length==0&&(te.value&&B.value||!B.value)),Nn=i.computed(()=>cn.value===!1||!te.value?[]:vs(te.value)!==-1?[]:[{[b.value]:te.value,[un.value[0]]:te.value,[d.value]:te.value,__CREATE__:!0}]),un=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ms=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Be.value),Kt=M=>{switch(typeof M!="object"&&(M=At(M)),r.value){case"single":xe(M);break;case"multiple":case"tags":xe(G.value.concat(M));break}e.emit("select",xt(M),M,oe)},Et=M=>{switch(typeof M!="object"&&(M=At(M)),r.value){case"single":Jr();break;case"tags":case"multiple":xe(Array.isArray(M)?G.value.filter(J=>M.map(ve=>ve[b.value]).indexOf(J[b.value])===-1):G.value.filter(J=>J[b.value]!=M[b.value]));break}e.emit("deselect",xt(M),M,oe)},xt=M=>h.value?M:M[b.value],ar=M=>{Et(M)},hs=(M,J)=>{if(J.button!==0){J.preventDefault();return}ar(M)},Jr=()=>{xe(ms.value),e.emit("clear",oe)},St=M=>{if(M.group!==void 0)return r.value==="single"?!1:gs(M[j.value])&&M[j.value].length;switch(r.value){case"single":return!fn(G.value)&&G.value[b.value]==M[b.value];case"tags":case"multiple":return!fn(G.value)&&G.value.map(J=>J[b.value]).indexOf(M[b.value])!==-1}},lr=M=>M[ee.value]===!0,Yn=()=>N===void 0||N.value===-1||!ko.value&&N.value>0?!1:G.value.length>=N.value,cr=M=>{if(!lr(M)){if(F&&F.value&&!St(M)&&M.__CREATE__&&(M={...M},delete M.__CREATE__,M=F.value(M,oe),M instanceof Promise)){Be.value=!0,M.then(J=>{Be.value=!1,Tt(J)});return}Tt(M)}},Tt=M=>{switch(M.__CREATE__&&(M={...M},delete M.__CREATE__),r.value){case"single":if(M&&St(M)){S.value&&Et(M),D.value&&(ye(),gt());return}M&&wo(M),w.value&&ue(),A.value&&(ye(),gt()),M&&Kt(M);break;case"multiple":if(M&&St(M)){Et(M),D.value&&(ye(),gt());return}if(Yn()){e.emit("max",oe);return}M&&(wo(M),Kt(M)),w.value&&ue(),l.value&&ye(),A.value&>();break;case"tags":if(M&&St(M)){Et(M),D.value&&(ye(),gt());return}if(Yn()){e.emit("max",oe);return}M&&wo(M),w.value&&ue(),M&&Kt(M),l.value&&ye(),A.value&>();break}A.value||dt()},Jn=M=>{if(!(lr(M)||r.value==="single"||!q.value)){switch(r.value){case"multiple":case"tags":pl(M[j.value])?Et(M[j.value]):Kt(M[j.value].filter(J=>G.value.map(ve=>ve[b.value]).indexOf(J[b.value])===-1).filter(J=>!J[ee.value]).filter((J,ve)=>G.value.length+1+ve<=N.value||N.value===-1)),l.value&&Ve.value&&ut(Kn.value.filter(J=>!J[ee.value])[Ve.value.index]);break}A.value&&Se()}},wo=M=>{At(M[b.value])===void 0&&cn.value&&(e.emit("tag",M[b.value],oe),e.emit("option",M[b.value],oe),e.emit("create",M[b.value],oe),Tn.value&&ml(M),ue())},Xr=()=>{r.value!=="single"&&Kt(st.value.filter(M=>!M.disabled&&!St(M)))},pl=M=>M.find(J=>!St(J)&&!J[ee.value])===void 0,gs=M=>M.find(J=>!St(J))===void 0,At=M=>ze.value[ze.value.map(J=>String(J[b.value])).indexOf(String(M))],vs=M=>ze.value.findIndex(J=>un.value.some(ve=>(parseInt(J[ve])==J[ve]?parseInt(J[ve]):J[ve])===(parseInt(M)==M?parseInt(M):M))),Qr=M=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&St(M),ml=M=>{Y.value.push(M)},Eo=M=>R.value?M.filter(J=>te.value?J.__VISIBLE__.length:J[j.value].length):M.filter(J=>te.value?J.__VISIBLE__.length:!0),ei=(M,J=!0)=>{let ve=M;if(te.value&&_.value){let $e=re.value;$e||($e=(Dn,Yt,ri)=>un.value.some(Bn=>{let _s=bl($(Dn[Bn]),L.value);return P.value?_s.startsWith(bl(Yt,L.value)):_s.indexOf(bl(Yt,L.value))!==-1})),ve=ve.filter(Dn=>$e(Dn,te.value,oe))}return l.value&&J&&(ve=ve.filter($e=>!Qr($e))),ve},ti=M=>{let J=M;return ZC(J)&&(J=Object.keys(J).map(ve=>{let $e=J[ve];return{[b.value]:ve,[un.value[0]]:$e,[d.value]:$e}})),J=J.map(ve=>typeof ve=="object"?ve:{[b.value]:ve,[un.value[0]]:ve,[d.value]:ve}),J},Ne=()=>{fn(z.value)||(G.value=Xn(z.value))},Gt=M=>(Be.value=!0,new Promise((J,ve)=>{o.value(te.value,oe).then($e=>{me.value=$e||[],typeof M=="function"&&M($e),Be.value=!1}).catch($e=>{console.error($e),me.value=[],Be.value=!1}).finally(()=>{J()})})),ni=()=>{if(ko.value)if(r.value==="single"){let M=At(G.value[b.value]);if(M!==void 0){let J=M[d.value];G.value[d.value]=J,h.value&&(z.value[d.value]=J)}}else G.value.forEach((M,J)=>{let ve=At(G.value[J][b.value]);if(ve!==void 0){let $e=ve[d.value];G.value[J][d.value]=$e,h.value&&(z.value[J][d.value]=$e)}})},ys=M=>{Gt(M)},Xn=M=>fn(M)?r.value==="single"?{}:[]:h.value?M:r.value==="single"?At(M)||(E.value?{[d.value]:M,[b.value]:M,[un.value[0]]:M}:{}):M.filter(J=>!!At(J)||E.value).map(J=>At(J)||{[d.value]:J,[b.value]:J,[un.value[0]]:J}),oi=()=>{Fe.value=i.watch(te,M=>{M.length<v.value||!M&&v.value!==0||(Be.value=!0,k.value&&(me.value=[]),setTimeout(()=>{M==te.value&&o.value(te.value,oe).then(J=>{(M==te.value||!te.value)&&(me.value=J,Ve.value=st.value.filter(ve=>ve[ee.value]!==!0)[0]||null,Be.value=!1)}).catch(J=>{console.error(J)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!fn(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?Gt(Ne):h.value==!0&&Ne():(me.value=o.value,Ne()),y.value>-1&&oi(),i.watch(y,(M,J)=>{Fe.value&&Fe.value(),M>=0&&oi()}),i.watch(z,M=>{if(fn(M)){xe(Xn(M),!1);return}switch(r.value){case"single":(h.value?M[b.value]!=G.value[b.value]:M!=G.value[b.value])&&xe(Xn(M),!1);break;case"multiple":case"tags":KC(h.value?M.map(J=>J[b.value]):M,G.value.map(J=>J[b.value]))||xe(Xn(M),!1);break}},{deep:!0}),i.watch(o,(M,J)=>{typeof t.options=="function"?C.value&&(!J||M&&M.toString()!==J.toString())&&Gt():(me.value=t.options,Object.keys(G.value).length||Ne(),ni())}),i.watch(d,ni),i.watch(a,(M,J)=>{ge.value=V.value&&M===-1?10:M}),{pfo:vt,fo:st,filteredOptions:st,hasSelected:ko,multipleLabelText:Gn,eo:ze,extendedOptions:ze,eg:Zt,extendedGroups:Zt,fg:Kn,filteredGroups:Kn,noOptions:ir,noResults:sr,resolving:Be,busy:Yr,offset:ge,select:Kt,deselect:Et,remove:ar,selectAll:Xr,clear:Jr,isSelected:St,isDisabled:lr,isMax:Yn,getOption:At,handleOptionClick:cr,handleGroupClick:Jn,handleTagRemove:hs,refreshOptions:ys,resolveOptions:Gt,refreshLabels:ni}}function YC(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),S=i.computed(()=>C.value&&C.value.group),N=i.computed(()=>oe(C.value)),L=i.computed(()=>{const z=S.value?C.value:oe(C.value),te=E.value.map(xe=>xe[a.value]).indexOf(z[a.value]);let ue=E.value[te-1];return ue===void 0&&(ue=D.value),ue}),A=i.computed(()=>{let z=E.value.map(te=>te.label).indexOf(S.value?C.value[a.value]:oe(C.value)[a.value])+1;return E.value.length<=z&&(z=0),E.value[z]}),D=i.computed(()=>[...E.value].slice(-1)[0]),B=i.computed(()=>C.value.__VISIBLE__.filter(z=>!z[d.value])[0]),I=i.computed(()=>{const z=N.value.__VISIBLE__.filter(te=>!te[d.value]);return z[z.map(te=>te[o.value]).indexOf(C.value[o.value])-1]}),V=i.computed(()=>{const z=oe(C.value).__VISIBLE__.filter(te=>!te[d.value]);return z[z.map(te=>te[o.value]).indexOf(C.value[o.value])+1]}),j=i.computed(()=>[...L.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),R=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)},ee=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},P=()=>{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=S.value?B.value:V.value;z===void 0&&(z=A.value,z.__CREATE__&&(z=z[f.value][0])),v(z||null)}else{let z=b.value.map(te=>te[o.value]).indexOf(C.value[o.value])+1;b.value.length<=z&&(z=0),v(b.value[z]||null)}i.nextTick(()=>{G()})},re=()=>{if(C.value===null){let z=b.value[b.value.length-1];l.value&&T.value&&(z=R.value,z===void 0&&(z=D.value)),v(z||null)}else if(l.value&&T.value){let z=S.value?j.value:I.value;z===void 0&&(z=S.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(te=>te[o.value]).indexOf(C.value[o.value])-1;z<0&&(z=b.value.length-1),v(b.value[z]||null)}i.nextTick(()=>{G()})},oe=z=>E.value.find(te=>te.__VISIBLE__.map(ue=>ue[o.value]).indexOf(z[o.value])!==-1),G=()=>{let z=k.value.querySelector("[data-pointed]");if(!z)return;let te=z.parentElement.parentElement;l.value&&(te=S.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=z.offsetTop+z.offsetHeight-te.clientHeight),z.offsetTop<te.scrollTop&&(te.scrollTop=z.offsetTop)};return i.watch(y,z=>{s.value&&(z.length&&r.value?F():_())}),i.watch(w,z=>{if(z){let te=k.value.querySelectorAll("[data-selected]")[0];if(!te)return;let ue=te.parentElement.parentElement;i.nextTick(()=>{ue.scrollTop>0||(ue.scrollTop=te.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:F,selectPointer:ee,forwardPointer:P,backwardPointer:re}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ho(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Ut(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function nu(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Vo=Math.max,ea=Math.min,Br=Math.round;function cc(){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 Hp(){return!/^((?!chrome|android).)*safari/i.test(cc())}function Mr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Ut(t)&&(r=t.offsetWidth>0&&Br(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Br(o.height)/t.offsetHeight||1);var a=Ho(t)?$t(t):window,l=a.visualViewport,c=!Hp()&&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 ou(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function JC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function XC(t){return t===$t(t)||!Ut(t)?ou(t):JC(t)}function bn(t){return t?(t.nodeName||"").toLowerCase():null}function yo(t){return((Ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function ru(t){return Mr(yo(t)).left+ou(t).scrollLeft}function Un(t){return $t(t).getComputedStyle(t)}function iu(t){var e=Un(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function QC(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 eb(t,e,n){n===void 0&&(n=!1);var o=Ut(e),r=Ut(e)&&QC(e),s=yo(e),a=Mr(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((bn(e)!=="body"||iu(s))&&(l=XC(e)),Ut(e)?(c=Mr(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=ru(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function jp(t){var e=Mr(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 La(t){return bn(t)==="html"?t:t.assignedSlot||t.parentNode||(nu(t)?t.host:null)||yo(t)}function Wp(t){return["html","body","#document"].indexOf(bn(t))>=0?t.ownerDocument.body:Ut(t)&&iu(t)?t:Wp(La(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=Wp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],iu(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(La(a)))}function tb(t){return["table","td","th"].indexOf(bn(t))>=0}function Nd(t){return!Ut(t)||Un(t).position==="fixed"?null:t.offsetParent}function nb(t){var e=/firefox/i.test(cc()),n=/Trident/i.test(cc());if(n&&Ut(t)){var o=Un(t);if(o.position==="fixed")return null}var r=La(t);for(nu(r)&&(r=r.host);Ut(r)&&["html","body"].indexOf(bn(r))<0;){var s=Un(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 Ia(t){for(var e=$t(t),n=Nd(t);n&&tb(n)&&Un(n).position==="static";)n=Nd(n);return n&&(bn(n)==="html"||bn(n)==="body"&&Un(n).position==="static")?e:n||nb(t)||e}var Qt="top",kn="bottom",po="right",Vn="left",su="auto",Pa=[Qt,kn,po,Vn],$r="start",Vi="end",ob="clippingParents",Zp="viewport",fi="popper",rb="reference",Dd=Pa.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Vi])},[]),ib=[].concat(Pa,[su]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Vi])},[]),sb="beforeRead",ab="read",lb="afterRead",cb="beforeMain",ub="main",db="afterMain",fb="beforeWrite",pb="write",mb="afterWrite",hb=[sb,ab,lb,cb,ub,db,fb,pb,mb];function gb(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 vb(t){var e=gb(t);return hb.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function yb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function _b(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 Cb(t,e){var n=$t(t),o=yo(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Hp();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+ru(t),y:c}}function bb(t){var e,n=yo(t),o=ou(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Vo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ru(t),c=-o.scrollTop;return Un(r||n).direction==="rtl"&&(l+=Vo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function kb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&nu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function uc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wb(t,e){var n=Mr(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===Zp?uc(Cb(t,n)):Ho(e)?wb(e,n):uc(bb(yo(t)))}function Eb(t){var e=Ei(La(t)),n=["absolute","fixed"].indexOf(Un(t).position)>=0,o=n&&Ut(t)?Ia(t):t;return Ho(o)?e.filter(function(r){return Ho(r)&&kb(r,o)&&bn(r)!=="body"}):[]}function xb(t,e,n,o){var r=e==="clippingParents"?Eb(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=Vo(d.top,c.top),c.right=ea(d.right,c.right),c.bottom=ea(d.bottom,c.bottom),c.left=Vo(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 so(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gp(t){var e=t.reference,n=t.element,o=t.placement,r=o?so(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Qt:c={x:a,y:e.y-n.height};break;case kn:c={x:a,y:e.y+e.height};break;case po:c={x:e.x+e.width,y:l};break;case Vn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Kp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Vi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Yp(){return{top:0,right:0,bottom:0,left:0}}function Sb(t){return Object.assign({},Yp(),t)}function Tb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function au(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?ob:l,u=n.rootBoundary,d=u===void 0?Zp:u,f=n.elementContext,p=f===void 0?fi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=Sb(typeof y!="number"?y:Tb(y,Pa)),v=p===fi?rb:fi,_=t.rects.popper,k=t.elements[h?v:p],w=xb(Ho(k)?k:k.contextElement||yo(t.elements.popper),c,d,a),b=Mr(t.elements.reference),E=Gp({reference:b,element:_,strategy:"absolute",placement:r}),T=uc(Object.assign({},_,E)),S=p===fi?T:b,N={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},L=t.modifiersData.offset;if(p===fi&&L){var A=L[r];Object.keys(N).forEach(function(D){var B=[po,kn].indexOf(D)>=0?1:-1,I=[Qt,kn].indexOf(D)>=0?"y":"x";N[D]+=A[I]*B})}return N}var Md={placement:"bottom",modifiers:[],strategy:"absolute"};function $d(){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 Ab(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?Md:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,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:Ho(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var _=vb(_b([].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($d(v,_)){d.rects={reference:eb(v,Ia(_),d.options.strategy==="fixed"),popper:jp(_)},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,S=w.name;typeof b=="function"&&(d=b({state:d,options:T,name:S,instance:m})||d)}}}},update:yb(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!$d(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 Ts={passive:!0};function Nb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ts)}),l&&c.addEventListener("resize",n.update,Ts),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ts)}),l&&c.removeEventListener("resize",n.update,Ts)}}var Db={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nb,data:{}};function Bb(t){var e=t.state,n=t.name;e.modifiersData[n]=Gp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Mb={name:"popperOffsets",enabled:!0,phase:"read",fn:Bb,data:{}},$b={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ob(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 Od(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"),_=Vn,k=Qt,w=window;if(u){var b=Ia(n),E="clientHeight",T="clientWidth";if(b===$t(n)&&(b=yo(n),Un(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),b=b,r===Qt||(r===Vn||r===po)&&s===Vi){k=kn;var S=f&&b===w&&w.visualViewport?w.visualViewport.height:b[E];g-=S-o.height,g*=c?1:-1}if(r===Vn||(r===Qt||r===kn)&&s===Vi){_=po;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&&$b),A=d===!0?Ob({x:m,y:g},$t(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 Lb(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:so(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Od(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,Od(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 Ib={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lb,data:{}};function Pb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Ut(s)||!bn(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},{});!Ut(r)||!bn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Fb={name:"applyStyles",enabled:!0,phase:"write",fn:Pb,effect:Vb,requires:["computeStyles"]},Rb=[Db,Mb,Ib,Fb],zb=Ab({defaultModifiers:Rb});function Ub(t){return t==="x"?"y":"x"}function Us(t,e,n){return Vo(t,ea(e,n))}function qb(t,e,n){var o=Us(t,e,n);return o>n?n:o}function Hb(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=au(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=so(e.placement),v=Or(e.placement),_=!v,k=Kp(C),w=Ub(k),b=e.modifiersData.popperOffsets,E=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(b){if(s){var D,B=k==="y"?Qt:Vn,I=k==="y"?kn:po,V=k==="y"?"height":"width",j=b[k],R=j+y[B],q=j-y[I],F=m?-T[V]/2:0,ee=v===$r?E[V]:T[V],P=v===$r?-T[V]:-E[V],re=e.elements.arrow,oe=m&&re?jp(re):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yp(),z=G[B],te=G[I],ue=Us(0,E[V],oe[V]),xe=_?E[V]/2-F-ue-z-N.mainAxis:ee-ue-z-N.mainAxis,Ve=_?-E[V]/2+F+ue+te+N.mainAxis:P+ue+te+N.mainAxis,ut=e.elements.arrow&&Ia(e.elements.arrow),ye=ut?k==="y"?ut.clientTop||0:ut.clientLeft||0:0,dt=(D=L==null?void 0:L[k])!=null?D:0,Se=j+xe-dt-ye,gt=j+Ve-dt,$=Us(m?ea(R,Se):R,j,m?Vo(q,gt):q);b[k]=$,A[k]=$-j}if(l){var Y,me=k==="x"?Qt:Vn,Be=k==="x"?kn:po,Fe=b[w],ge=w==="y"?"height":"width",cn=Fe+y[me],Tn=Fe-y[Be],ze=[Qt,Vn].indexOf(C)!==-1,vt=(Y=L==null?void 0:L[w])!=null?Y:0,st=ze?cn:Fe-E[ge]-T[ge]-vt+N.altAxis,Zt=ze?Fe+E[ge]+T[ge]-vt-N.altAxis:Tn,An=m&&ze?qb(st,Fe,Zt):Us(m?st:cn,Fe,m?Zt:Tn);b[w]=An,A[w]=An-Fe}e.modifiersData[o]=A}}var jb={name:"preventOverflow",enabled:!0,phase:"main",fn:Hb,requiresIfExists:["offset"]},Wb={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(t){return t.replace(/left|right|bottom|top/g,function(e){return Wb[e]})}var Zb={start:"end",end:"start"};function Ld(t){return t.replace(/start|end/g,function(e){return Zb[e]})}function Kb(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?ib:c,d=Or(o),f=d?l?Dd:Dd.filter(function(h){return Or(h)===d}):Pa,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]=au(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[so(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function Gb(t){if(so(t)===su)return[];var e=qs(t);return[Ld(t),e,Ld(e)]}function Yb(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=so(y),v=C===y,_=c||(v||!h?[qs(y)]:Gb(y)),k=[y].concat(_).reduce(function(oe,G){return oe.concat(so(G)===su?Kb(e,{placement:G,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):G)},[]),w=e.rects.reference,b=e.rects.popper,E=new Map,T=!0,S=k[0],N=0;N<k.length;N++){var L=k[N],A=so(L),D=Or(L)===$r,B=[Qt,kn].indexOf(A)>=0,I=B?"width":"height",V=au(e,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=B?D?po:Vn:D?kn:Qt;w[I]>b[I]&&(j=qs(j));var R=qs(j),q=[];if(s&&q.push(V[A]<=0),l&&q.push(V[j]<=0,V[R]<=0),q.every(function(oe){return oe})){S=L,T=!1;break}E.set(L,q)}if(T)for(var F=h?3:1,ee=function(G){var z=k.find(function(te){var ue=E.get(te);if(ue)return ue.slice(0,G).every(function(xe){return xe})});if(z)return S=z,"break"},P=F;P>0;P--){var re=ee(P);if(re==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var Jb={name:"flip",enabled:!0,phase:"main",fn:Yb,requiresIfExists:["offset"],data:{_skip:!1}};function Xb(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=zb(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[jb,Jb,{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 Qb(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 e9(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,S=n.tags,N=n.isOpen,L=n.open,A=n.blur,D=n.fo,B=i.computed(()=>f.value||p.value||!1),I=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),V=()=>{o.value==="tags"&&!l.value&&B.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,ee;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(F=[...E.value.querySelectorAll("[data-tags] > *")].filter(P=>P!==S.value),ee=F.findIndex(P=>P===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let P=g.value.filter(re=>!re.disabled&&re.remove!==!1);P.length&&C(P[P.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(ee!==-1&&ee!==void 0){y([...g.value].filter((re,oe)=>oe!==ee)),ee===F.length-1&&(F.length-1?F[F.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(I.value.indexOf("enter")===-1&&B.value)return;V(),k();break;case" ":if(!B.value&&!a.value){q.preventDefault(),V(),k();return}if(!B.value)return!1;if(I.value.indexOf("space")===-1&&B.value)return;q.preventDefault(),V(),k();break;case"Tab":case";":case",":if(I.value.indexOf(q.key.toLowerCase())===-1||!B.value)return;V(),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&&S.value&&S.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),ee===-1?F[F.length-1].focus():ee>0&&F[ee-1].focus();break;case"ArrowRight":if(ee===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),F.length>ee+1?F[ee+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:V}}function t9(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 n9(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 o9(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("-")},S=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:S,ariaGroupId:T,ariaGroupLabel:N,ariaTagLabel:L}}function r9(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 i9(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 s9(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var no={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 s9(t,e,[i9,r9,HC,WC,Xb,jC,qC,Qb,GC,n9,YC,e9,t9,o9])},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 a9=["id","dir"],l9=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],c9=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],u9=["onKeyup","aria-label"],d9=["onClick"],f9=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],p9=["innerHTML"],m9=["id"],h9=["id"],g9=["id","aria-label","aria-selected"],v9=["data-pointed","onMouseenter","onMousedown"],y9=["innerHTML"],_9=["aria-label"],C9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],b9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],k9=["innerHTML"],w9=["innerHTML"],E9=["value"],x9=["name","value"],S9=["name","value"],T9=["id"];function A9(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,c9)):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,d9)):i.createCommentVNode("v-if",!0)],42,u9))])),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,f9)):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,p9)]):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,l9),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,y9)])],42,v9)),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,C9))),128))],10,_9)],10,g9))),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,b9))),128))],10,h9),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,k9)]):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,w9)]):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,m9)],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,E9)):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,S9))),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,T9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,a9)}no.render=A9;no.__file="src/Multiselect.vue";const Ct=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&&UC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(no),{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 Id;function En(){const t=N9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function N9(){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=Id.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Id.lastIndex}return o.push(n.substring(s)),o}}});async function Fn(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 D9={class:"ao-tasks"},B9={class:"ao-tasks__list"},M9=["id","value","readonly","onChange"],$9={class:"ao-tasks__list-footer"},O9=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}=En(),o=t,r=e;i.watch(()=>o.tasks,(p,m)=>{Fn(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",D9,[i.createElementVNode("ul",B9,[(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(pe,{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,M9),m[0]||(m[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Ct,{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(pe,{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",$9,[t.isEditable?(i.openBlock(),i.createBlock(pe,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const L9={class:"ao-files__placeholder"},I9={key:0,class:"ao-files__list"},P9=["onClick"],V9={class:"ao-file__title"},F9={class:"ao-file__actions"},R9={key:0},z9={class:"ao-files__input"},U9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},q9={class:"ao-button__label"},H9={class:"ao-files__dropzone"},j9={class:"ao-files__dropzone-label"},W9=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",L9,i.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(i.openBlock(),i.createElementBlock("ul",I9,[(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(_e,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",V9,i.toDisplayString(y.name),1)],8,P9),i.createElementVNode("div",F9,[i.createVNode(pe,{"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(pe,{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",R9,[i.createElementVNode("label",z9,[i.createElementVNode("div",U9,[i.createVNode(_e,{name:"Add",size:"sm"}),i.createElementVNode("span",q9,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",H9,[i.createElementVNode("span",j9,i.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,r.value]])],34)}}});var Ee={};const Z9="Á",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="⩜",x4="⩘",S4="⩚",T4="∠",A4="⦤",N4="∠",D4="⦨",B4="⦩",M4="⦪",$4="⦫",O4="⦬",L4="⦭",I4="⦮",P4="⦯",V4="∡",F4="∟",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="⫧",x8="⊽",S8="⌅",T8="⌆",A8="⌅",N8="⎵",D8="⎶",B8="≌",M8="Б",$8="б",O8="„",L8="∵",I8="∵",P8="∵",V8="⦰",F8="϶",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="𝕓",xk="⊥",Sk="⊥",Tk="⋈",Ak="⧉",Nk="┐",Dk="╕",Bk="╖",Mk="╗",$k="┌",Ok="╒",Lk="╓",Ik="╔",Pk="─",Vk="═",Fk="┬",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="⁏",x6="∽",S6="⋍",T6="⧅",A6="\\",N6="⟈",D6="•",B6="•",M6="≎",$6="⪮",O6="≏",L6="≎",I6="≏",P6="Ć",V6="ć",F6="⩄",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="≗",xw="↺",Sw="↻",Tw="⊛",Aw="⊚",Nw="⊝",Dw="⊙",Bw="®",Mw="Ⓢ",$w="⊖",Ow="⊕",Lw="⊗",Iw="○",Pw="⧃",Vw="≗",Fw="⨐",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="⫑",xE="⫐",SE="⫒",TE="⋯",AE="⤸",NE="⤵",DE="⋞",BE="⋟",ME="↶",$E="⤽",OE="⩈",LE="⩆",IE="≍",PE="∪",VE="⋓",FE="⩊",RE="⊍",zE="⩅",UE="∪︀",qE="↷",HE="⤼",jE="⋞",WE="⋟",ZE="⋎",KE="⋏",GE="¤",YE="↶",JE="↷",XE="⋎",QE="⋏",ex="∲",tx="∱",nx="⌭",ox="†",rx="‡",ix="ℸ",sx="↓",ax="↡",lx="⇓",cx="‐",ux="⫤",dx="⊣",fx="⤏",px="˝",mx="Ď",hx="ď",gx="Д",vx="д",yx="‡",_x="⇊",Cx="ⅅ",bx="ⅆ",kx="⤑",wx="⩷",Ex="°",xx="∇",Sx="Δ",Tx="δ",Ax="⦱",Nx="⥿",Dx="𝔇",Bx="𝔡",Mx="⥥",$x="⇃",Ox="⇂",Lx="´",Ix="˙",Px="˝",Vx="`",Fx="˜",Rx="⋄",zx="⋄",Ux="⋄",qx="♦",Hx="♦",jx="¨",Wx="ⅆ",Zx="ϝ",Kx="⋲",Gx="÷",Yx="÷",Jx="⋇",Xx="⋇",Qx="Ђ",eS="ђ",tS="⌞",nS="⌍",oS="$",rS="𝔻",iS="𝕕",sS="¨",aS="˙",lS="⃜",cS="≐",uS="≑",dS="≐",fS="∸",pS="∔",mS="⊡",hS="⌆",gS="∯",vS="¨",yS="⇓",_S="⇐",CS="⇔",bS="⫤",kS="⟸",wS="⟺",ES="⟹",xS="⇒",SS="⊨",TS="⇑",AS="⇕",NS="∥",DS="⤓",BS="↓",MS="↓",$S="⇓",OS="⇵",LS="̑",IS="⇊",PS="⇃",VS="⇂",FS="⥐",RS="⥞",zS="⥖",US="↽",qS="⥟",HS="⥗",jS="⇁",WS="↧",ZS="⊤",KS="⤐",GS="⌟",YS="⌌",JS="𝒟",XS="𝒹",QS="Ѕ",eT="ѕ",tT="⧶",nT="Đ",oT="đ",rT="⋱",iT="▿",sT="▾",aT="⇵",lT="⥯",cT="⦦",uT="Џ",dT="џ",fT="⟿",pT="É",mT="é",hT="⩮",gT="Ě",vT="ě",yT="Ê",_T="ê",CT="≖",bT="≕",kT="Э",wT="э",ET="⩷",xT="Ė",ST="ė",TT="≑",AT="ⅇ",NT="≒",DT="𝔈",BT="𝔢",MT="⪚",$T="È",OT="è",LT="⪖",IT="⪘",PT="⪙",VT="∈",FT="⏧",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="⩸",xA="⧥",SA="⥱",TA="≓",AA="ℯ",NA="ℰ",DA="≐",BA="⩳",MA="≂",$A="Η",OA="η",LA="Ð",IA="ð",PA="Ë",VA="ë",FA="€",RA="!",zA="∃",UA="∃",qA="ℰ",HA="ⅇ",jA="ⅇ",WA="≒",ZA="Ф",KA="ф",GA="♀",YA="ffi",JA="ff",XA="ffl",QA="𝔉",eN="𝔣",tN="fi",nN="◼",oN="▪",rN="fj",iN="♭",sN="fl",aN="▱",lN="ƒ",cN="𝔽",uN="𝕗",dN="∀",fN="∀",pN="⋔",mN="⫙",hN="ℱ",gN="⨍",vN="½",yN="⅓",_N="¼",CN="⅕",bN="⅙",kN="⅛",wN="⅔",EN="⅖",xN="¾",SN="⅗",TN="⅜",AN="⅘",NN="⅚",DN="⅝",BN="⅞",MN="⁄",$N="⌢",ON="𝒻",LN="ℱ",IN="ǵ",PN="Γ",VN="γ",FN="Ϝ",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="⪊",xD="⪈",SD="≩",TD="⪈",AD="≩",ND="⋧",DD="𝔾",BD="𝕘",MD="`",$D="≥",OD="⋛",LD="≧",ID="⪢",PD="≷",VD="⩾",FD="≳",RD="𝒢",zD="ℊ",UD="≳",qD="⪎",HD="⪐",jD="⪧",WD="⩺",ZD=">",KD=">",GD="≫",YD="⋗",JD="⦕",XD="⩼",QD="⪆",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="…",xB="⊹",SB="𝔥",TB="ℌ",AB="ℋ",NB="⤥",DB="⤦",BB="⇿",MB="∻",$B="↩",OB="↪",LB="𝕙",IB="ℍ",PB="―",VB="─",FB="𝒽",RB="ℋ",zB="ℏ",UB="Ħ",qB="ħ",HB="≎",jB="≏",WB="⁃",ZB="‐",KB="Í",GB="í",YB="",JB="Î",XB="î",QB="И",eM="и",tM="İ",nM="Е",oM="е",rM="¡",iM="⇔",sM="𝔦",aM="ℑ",lM="Ì",cM="ì",uM="ⅈ",dM="⨌",fM="∭",pM="⧜",mM="℩",hM="IJ",gM="ij",vM="Ī",yM="ī",_M="ℑ",CM="ⅈ",bM="ℐ",kM="ℑ",wM="ı",EM="ℑ",xM="⊷",SM="Ƶ",TM="⇒",AM="℅",NM="∞",DM="⧝",BM="ı",MM="⊺",$M="∫",OM="∬",LM="ℤ",IM="∫",PM="⊺",VM="⋂",FM="⨗",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$="Й",v$="й",y$="𝔍",_$="𝔧",C$="ȷ",b$="𝕁",k$="𝕛",w$="𝒥",E$="𝒿",x$="Ј",S$="ј",T$="Є",A$="є",N$="Κ",D$="κ",B$="ϰ",M$="Ķ",$$="ķ",O$="К",L$="к",I$="𝔎",P$="𝔨",V$="ĸ",F$="Х",R$="х",z$="Ќ",U$="ќ",q$="𝕂",H$="𝕜",j$="𝒦",W$="𝓀",Z$="⇚",K$="Ĺ",G$="ĺ",Y$="⦴",J$="ℒ",X$="Λ",Q$="λ",eO="⟨",tO="⟪",nO="⦑",oO="⟨",rO="⪅",iO="ℒ",sO="«",aO="⇤",lO="⤟",cO="←",uO="↞",dO="⇐",fO="⤝",pO="↩",mO="↫",hO="⤹",gO="⥳",vO="↢",yO="⤙",_O="⤛",CO="⪫",bO="⪭",kO="⪭︀",wO="⤌",EO="⤎",xO="❲",SO="{",TO="[",AO="⦋",NO="⦏",DO="⦍",BO="Ľ",MO="ľ",$O="Ļ",OO="ļ",LO="⌈",IO="{",PO="Л",VO="л",FO="⤶",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="⥠",xL="⥘",SL="↿",TL="⥒",AL="↼",NL="⪋",DL="⋚",BL="≤",ML="≦",$L="⩽",OL="⪨",LL="⩽",IL="⩿",PL="⪁",VL="⪃",FL="⋚︀",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="⪉",xI="⪇",SI="≨",TI="⪇",AI="≨",NI="⋦",DI="⟬",BI="⇽",MI="⟦",$I="⟵",OI="⟵",LI="⟸",II="⟷",PI="⟷",VI="⟺",FI="⟼",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="⪦",xP="⩹",SP="<",TP="<",AP="≪",NP="⋖",DP="⋋",BP="⋉",MP="⥶",$P="⩻",OP="◃",LP="⊴",IP="◂",PP="⦖",VP="⥊",FP="⥦",RP="≨︀",zP="≨︀",UP="¯",qP="♂",HP="✠",jP="✠",WP="↦",ZP="↦",KP="↧",GP="↤",YP="↥",JP="▮",XP="⨩",QP="М",eV="м",tV="—",nV="∺",oV="∡",rV=" ",iV="ℳ",sV="𝔐",aV="𝔪",lV="℧",cV="µ",uV="*",dV="⫰",fV="∣",pV="·",mV="⊟",hV="−",gV="∸",vV="⨪",yV="∓",_V="⫛",CV="…",bV="∓",kV="⊧",wV="𝕄",EV="𝕞",xV="∓",SV="𝓂",TV="ℳ",AV="∾",NV="Μ",DV="μ",BV="⊸",MV="⊸",$V="∇",OV="Ń",LV="ń",IV="∠⃒",PV="≉",VV="⩰̸",FV="≋̸",RV="ʼn",zV="≉",UV="♮",qV="ℕ",HV="♮",jV=" ",WV="≎̸",ZV="≏̸",KV="⩃",GV="Ň",YV="ň",JV="Ņ",XV="ņ",QV="≇",eF="⩭̸",tF="⩂",nF="Н",oF="н",rF="–",iF="⤤",sF="↗",aF="⇗",lF="↗",cF="≠",uF="≐̸",dF="",fF="",pF="",mF="",hF="≢",gF="⤨",vF="≂̸",yF="≫",_F="≪",CF=`
|
|
2
|
+
`,bF="∄",kF="∄",wF="𝔑",EF="𝔫",xF="≧̸",SF="≱",TF="≱",AF="≧̸",NF="⩾̸",DF="⩾̸",BF="⋙̸",MF="≵",$F="≫⃒",OF="≯",LF="≯",IF="≫̸",PF="↮",VF="⇎",FF="⫲",RF="∋",zF="⋼",UF="⋺",qF="∋",HF="Њ",jF="њ",WF="↚",ZF="⇍",KF="‥",GF="≦̸",YF="≰",JF="↚",XF="⇍",QF="↮",eR="⇎",tR="≰",nR="≦̸",oR="⩽̸",rR="⩽̸",iR="≮",sR="⋘̸",aR="≴",lR="≪⃒",cR="≮",uR="⋪",dR="⋬",fR="≪̸",pR="∤",mR="",hR=" ",gR="𝕟",vR="ℕ",yR="⫬",_R="¬",CR="≢",bR="≭",kR="∦",wR="∉",ER="≠",xR="≂̸",SR="∄",TR="≯",AR="≱",NR="≧̸",DR="≫̸",BR="≹",MR="⩾̸",$R="≵",OR="≎̸",LR="≏̸",IR="∉",PR="⋵̸",VR="⋹̸",FR="∉",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="≇",xz="≉",Sz="∤",Tz="∦",Az="∦",Nz="⫽⃥",Dz="∂̸",Bz="⨔",Mz="⊀",$z="⋠",Oz="⊀",Lz="⪯̸",Iz="⪯̸",Pz="⤳̸",Vz="↛",Fz="⇏",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="⋬",xU="⋫",SU="⋭",TU="Ν",AU="ν",NU="#",DU="№",BU=" ",MU="≍⃒",$U="⊬",OU="⊭",LU="⊮",IU="⊯",PU="≥⃒",VU=">⃒",FU="⤄",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="∮",xq="↺",Sq="⦾",Tq="⦻",Aq="‾",Nq="⧀",Dq="Ō",Bq="ō",Mq="Ω",$q="ω",Oq="Ο",Lq="ο",Iq="⦶",Pq="⊖",Vq="𝕆",Fq="𝕠",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="⫳",xH="⫽",SH="∂",TH="∂",AH="П",NH="п",DH="%",BH=".",MH="‰",$H="⊥",OH="‱",LH="𝔓",IH="𝔭",PH="Φ",VH="φ",FH="ϕ",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="⪹",xj="⪵",Sj="⋨",Tj="⪯",Aj="⪳",Nj="≾",Dj="′",Bj="″",Mj="ℙ",$j="⪹",Oj="⪵",Lj="⋨",Ij="∏",Pj="∏",Vj="⌮",Fj="⌒",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="⥵",xW="⇥",SW="⤠",TW="⤳",AW="→",NW="↠",DW="⇒",BW="⤞",MW="↪",$W="↬",OW="⥅",LW="⥴",IW="⤖",PW="↣",VW="↝",FW="⤚",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="𝔯",xZ="ℜ",SZ="⥤",TZ="⇁",AZ="⇀",NZ="⥬",DZ="Ρ",BZ="ρ",MZ="ϱ",$Z="⟩",OZ="⇥",LZ="→",IZ="→",PZ="⇒",VZ="⇄",FZ="↣",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="ℝ",xK="⨮",SK="⨵",TK="⥰",AK=")",NK="⦔",DK="⨒",BK="⇉",MK="⇛",$K="›",OK="𝓇",LK="ℛ",IK="↱",PK="↱",VK="]",FK="’",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="↘",xG="§",SG=";",TG="⤩",AG="∖",NG="∖",DG="✶",BG="𝔖",MG="𝔰",$G="⌢",OG="♯",LG="Щ",IG="щ",PG="Ш",VG="ш",FG="↓",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="♠",xY="♠",SY="∥",TY="⊓",AY="⊓︀",NY="⊔",DY="⊔︀",BY="√",MY="⊏",$Y="⊑",OY="⊏",LY="⊑",IY="⊐",PY="⊒",VY="⊐",FY="⊒",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="⊆",xJ="⊊",SJ="⫋",TJ="⫇",AJ="⫕",NJ="⫓",DJ="⪸",BJ="≻",MJ="≽",$J="≻",OJ="⪰",LJ="≽",IJ="≿",PJ="⪰",VJ="⪺",FJ="⪶",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="⤪",xX="ß",SX=" ",TX="⌖",AX="Τ",NX="τ",DX="⎴",BX="Ť",MX="ť",$X="Ţ",OX="ţ",LX="Т",IX="т",PX="⃛",VX="⌕",FX="𝔗",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="▵",xQ="▿",SQ="◃",TQ="⊴",AQ="≜",NQ="▹",DQ="⊵",BQ="◬",MQ="≜",$Q="⨺",OQ="⃛",LQ="⨹",IQ="⧍",PQ="⨻",VQ="⏢",FQ="𝒯",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="⌜",xee="⌏",See="◸",Tee="Ū",Aee="ū",Nee="¨",Dee="_",Bee="⏟",Mee="⎵",$ee="⏝",Oee="⋃",Lee="⊎",Iee="Ų",Pee="ų",Vee="𝕌",Fee="𝕦",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="⦧",xte="⦜",Ste="ϵ",Tte="ϰ",Ate="∅",Nte="ϕ",Dte="ϖ",Bte="∝",Mte="↕",$te="⇕",Ote="ϱ",Lte="ς",Ite="⊊︀",Pte="⫋︀",Vte="⊋︀",Fte="⫌︀",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="⫋︀",xne="⊊︀",Sne="⫌︀",Tne="⊋︀",Ane="⊪",Nne="⦚",Dne="Ŵ",Bne="ŵ",Mne="⩟",$ne="∧",One="⋀",Lne="≙",Ine="℘",Pne="𝔚",Vne="𝔴",Fne="𝕎",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="Ŷ",xoe="ŷ",Soe="Ы",Toe="ы",Aoe="¥",Noe="𝔜",Doe="𝔶",Boe="Ї",Moe="ї",$oe="𝕐",Ooe="𝕪",Loe="𝒴",Ioe="𝓎",Poe="Ю",Voe="ю",Foe="ÿ",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={Aacute:Z9,aacute:K9,Abreve:G9,abreve:Y9,ac:J9,acd:X9,acE:Q9,Acirc:e4,acirc:t4,acute:n4,Acy:o4,acy:r4,AElig:i4,aelig:s4,af:a4,Afr:l4,afr:c4,Agrave:u4,agrave:d4,alefsym:f4,aleph:p4,Alpha:m4,alpha:h4,Amacr:g4,amacr:v4,amalg:y4,amp:_4,AMP:C4,andand:b4,And:k4,and:w4,andd:E4,andslope:x4,andv:S4,ang:T4,ange:A4,angle:N4,angmsdaa:D4,angmsdab:B4,angmsdac:M4,angmsdad:$4,angmsdae:O4,angmsdaf:L4,angmsdag:I4,angmsdah:P4,angmsd:V4,angrt:F4,angrtvb:R4,angrtvbd:z4,angsph:U4,angst:q4,angzarr:H4,Aogon:j4,aogon:W4,Aopf:Z4,aopf:K4,apacir:G4,ap:Y4,apE:J4,ape:X4,apid:Q4,apos:e8,ApplyFunction:t8,approx:n8,approxeq:o8,Aring:r8,aring:i8,Ascr:s8,ascr:a8,Assign:l8,ast:c8,asymp:u8,asympeq:d8,Atilde:f8,atilde:p8,Auml:m8,auml:h8,awconint:g8,awint:v8,backcong:y8,backepsilon:_8,backprime:C8,backsim:b8,backsimeq:k8,Backslash:w8,Barv:E8,barvee:x8,barwed:S8,Barwed:T8,barwedge:A8,bbrk:N8,bbrktbrk:D8,bcong:B8,Bcy:M8,bcy:$8,bdquo:O8,becaus:L8,because:I8,Because:P8,bemptyv:V8,bepsi:F8,bernou:R8,Bernoullis:z8,Beta:U8,beta:q8,beth:H8,between:j8,Bfr:W8,bfr:Z8,bigcap:K8,bigcirc:G8,bigcup:Y8,bigodot:J8,bigoplus:X8,bigotimes:Q8,bigsqcup:ek,bigstar:tk,bigtriangledown:nk,bigtriangleup:ok,biguplus:rk,bigvee:ik,bigwedge:sk,bkarow:ak,blacklozenge:lk,blacksquare:ck,blacktriangle:uk,blacktriangledown:dk,blacktriangleleft:fk,blacktriangleright:pk,blank:mk,blk12:hk,blk14:gk,blk34:vk,block:yk,bne:_k,bnequiv:Ck,bNot:bk,bnot:kk,Bopf:wk,bopf:Ek,bot:xk,bottom:Sk,bowtie:Tk,boxbox:Ak,boxdl:Nk,boxdL:Dk,boxDl:Bk,boxDL:Mk,boxdr:$k,boxdR:Ok,boxDr:Lk,boxDR:Ik,boxh:Pk,boxH:Vk,boxhd:Fk,boxHd:Rk,boxhD:zk,boxHD:Uk,boxhu:qk,boxHu:Hk,boxhU:jk,boxHU:Wk,boxminus:Zk,boxplus:Kk,boxtimes:Gk,boxul:Yk,boxuL:Jk,boxUl:Xk,boxUL:Qk,boxur:e6,boxuR:t6,boxUr:n6,boxUR:o6,boxv:r6,boxV:i6,boxvh:s6,boxvH:a6,boxVh:l6,boxVH:c6,boxvl:u6,boxvL:d6,boxVl:f6,boxVL:p6,boxvr:m6,boxvR:h6,boxVr:g6,boxVR:v6,bprime:y6,breve:_6,Breve:C6,brvbar:b6,bscr:k6,Bscr:w6,bsemi:E6,bsim:x6,bsime:S6,bsolb:T6,bsol:A6,bsolhsub:N6,bull:D6,bullet:B6,bump:M6,bumpE:$6,bumpe:O6,Bumpeq:L6,bumpeq:I6,Cacute:P6,cacute:V6,capand:F6,capbrcup:R6,capcap:z6,cap:U6,Cap:q6,capcup:H6,capdot:j6,CapitalDifferentialD:W6,caps:Z6,caret:K6,caron:G6,Cayleys:Y6,ccaps:J6,Ccaron:X6,ccaron:Q6,Ccedil:ew,ccedil:tw,Ccirc:nw,ccirc:ow,Cconint:rw,ccups:iw,ccupssm:sw,Cdot:aw,cdot:lw,cedil:cw,Cedilla:uw,cemptyv:dw,cent:fw,centerdot:pw,CenterDot:mw,cfr:hw,Cfr:gw,CHcy:vw,chcy:yw,check:_w,checkmark:Cw,Chi:bw,chi:kw,circ:ww,circeq:Ew,circlearrowleft:xw,circlearrowright:Sw,circledast:Tw,circledcirc:Aw,circleddash:Nw,CircleDot:Dw,circledR:Bw,circledS:Mw,CircleMinus:$w,CirclePlus:Ow,CircleTimes:Lw,cir:Iw,cirE:Pw,cire:Vw,cirfnint:Fw,cirmid:Rw,cirscir:zw,ClockwiseContourIntegral:Uw,CloseCurlyDoubleQuote:qw,CloseCurlyQuote:Hw,clubs:jw,clubsuit:Ww,colon:Zw,Colon:Kw,Colone:Gw,colone:Yw,coloneq:Jw,comma:Xw,commat:Qw,comp:eE,compfn:tE,complement:nE,complexes:oE,cong:rE,congdot:iE,Congruent:sE,conint:aE,Conint:lE,ContourIntegral:cE,copf:uE,Copf:dE,coprod:fE,Coproduct:pE,copy:mE,COPY:hE,copysr:gE,CounterClockwiseContourIntegral:vE,crarr:yE,cross:_E,Cross:CE,Cscr:bE,cscr:kE,csub:wE,csube:EE,csup:xE,csupe:SE,ctdot:TE,cudarrl:AE,cudarrr:NE,cuepr:DE,cuesc:BE,cularr:ME,cularrp:$E,cupbrcap:OE,cupcap:LE,CupCap:IE,cup:PE,Cup:VE,cupcup:FE,cupdot:RE,cupor:zE,cups:UE,curarr:qE,curarrm:HE,curlyeqprec:jE,curlyeqsucc:WE,curlyvee:ZE,curlywedge:KE,curren:GE,curvearrowleft:YE,curvearrowright:JE,cuvee:XE,cuwed:QE,cwconint:ex,cwint:tx,cylcty:nx,dagger:ox,Dagger:rx,daleth:ix,darr:sx,Darr:ax,dArr:lx,dash:cx,Dashv:ux,dashv:dx,dbkarow:fx,dblac:px,Dcaron:mx,dcaron:hx,Dcy:gx,dcy:vx,ddagger:yx,ddarr:_x,DD:Cx,dd:bx,DDotrahd:kx,ddotseq:wx,deg:Ex,Del:xx,Delta:Sx,delta:Tx,demptyv:Ax,dfisht:Nx,Dfr:Dx,dfr:Bx,dHar:Mx,dharl:$x,dharr:Ox,DiacriticalAcute:Lx,DiacriticalDot:Ix,DiacriticalDoubleAcute:Px,DiacriticalGrave:Vx,DiacriticalTilde:Fx,diam:Rx,diamond:zx,Diamond:Ux,diamondsuit:qx,diams:Hx,die:jx,DifferentialD:Wx,digamma:Zx,disin:Kx,div:Gx,divide:Yx,divideontimes:Jx,divonx:Xx,DJcy:Qx,djcy:eS,dlcorn:tS,dlcrop:nS,dollar:oS,Dopf:rS,dopf:iS,Dot:sS,dot:aS,DotDot:lS,doteq:cS,doteqdot:uS,DotEqual:dS,dotminus:fS,dotplus:pS,dotsquare:mS,doublebarwedge:hS,DoubleContourIntegral:gS,DoubleDot:vS,DoubleDownArrow:yS,DoubleLeftArrow:_S,DoubleLeftRightArrow:CS,DoubleLeftTee:bS,DoubleLongLeftArrow:kS,DoubleLongLeftRightArrow:wS,DoubleLongRightArrow:ES,DoubleRightArrow:xS,DoubleRightTee:SS,DoubleUpArrow:TS,DoubleUpDownArrow:AS,DoubleVerticalBar:NS,DownArrowBar:DS,downarrow:BS,DownArrow:MS,Downarrow:$S,DownArrowUpArrow:OS,DownBreve:LS,downdownarrows:IS,downharpoonleft:PS,downharpoonright:VS,DownLeftRightVector:FS,DownLeftTeeVector:RS,DownLeftVectorBar:zS,DownLeftVector:US,DownRightTeeVector:qS,DownRightVectorBar:HS,DownRightVector:jS,DownTeeArrow:WS,DownTee:ZS,drbkarow:KS,drcorn:GS,drcrop:YS,Dscr:JS,dscr:XS,DScy:QS,dscy:eT,dsol:tT,Dstrok:nT,dstrok:oT,dtdot:rT,dtri:iT,dtrif:sT,duarr:aT,duhar:lT,dwangle:cT,DZcy:uT,dzcy:dT,dzigrarr:fT,Eacute:pT,eacute:mT,easter:hT,Ecaron:gT,ecaron:vT,Ecirc:yT,ecirc:_T,ecir:CT,ecolon:bT,Ecy:kT,ecy:wT,eDDot:ET,Edot:xT,edot:ST,eDot:TT,ee:AT,efDot:NT,Efr:DT,efr:BT,eg:MT,Egrave:$T,egrave:OT,egs:LT,egsdot:IT,el:PT,Element:VT,elinters:FT,ell:RT,els:zT,elsdot:UT,Emacr:qT,emacr:HT,empty:jT,emptyset:WT,EmptySmallSquare:ZT,emptyv:KT,EmptyVerySmallSquare:GT,emsp13:YT,emsp14:JT,emsp:XT,ENG:QT,eng:eA,ensp:tA,Eogon:nA,eogon:oA,Eopf:rA,eopf:iA,epar:sA,eparsl:aA,eplus:lA,epsi:cA,Epsilon:uA,epsilon:dA,epsiv:fA,eqcirc:pA,eqcolon:mA,eqsim:hA,eqslantgtr:gA,eqslantless:vA,Equal:yA,equals:_A,EqualTilde:CA,equest:bA,Equilibrium:kA,equiv:wA,equivDD:EA,eqvparsl:xA,erarr:SA,erDot:TA,escr:AA,Escr:NA,esdot:DA,Esim:BA,esim:MA,Eta:$A,eta:OA,ETH:LA,eth:IA,Euml:PA,euml:VA,euro:FA,excl:RA,exist:zA,Exists:UA,expectation:qA,exponentiale:HA,ExponentialE:jA,fallingdotseq:WA,Fcy:ZA,fcy:KA,female:GA,ffilig:YA,fflig:JA,ffllig:XA,Ffr:QA,ffr:eN,filig:tN,FilledSmallSquare:nN,FilledVerySmallSquare:oN,fjlig:rN,flat:iN,fllig:sN,fltns:aN,fnof:lN,Fopf:cN,fopf:uN,forall:dN,ForAll:fN,fork:pN,forkv:mN,Fouriertrf:hN,fpartint:gN,frac12:vN,frac13:yN,frac14:_N,frac15:CN,frac16:bN,frac18:kN,frac23:wN,frac25:EN,frac34:xN,frac35:SN,frac38:TN,frac45:AN,frac56:NN,frac58:DN,frac78:BN,frasl:MN,frown:$N,fscr:ON,Fscr:LN,gacute:IN,Gamma:PN,gamma:VN,Gammad:FN,gammad:RN,gap:zN,Gbreve:UN,gbreve:qN,Gcedil:HN,Gcirc:jN,gcirc:WN,Gcy:ZN,gcy:KN,Gdot:GN,gdot:YN,ge:JN,gE:XN,gEl:QN,gel:eD,geq:tD,geqq:nD,geqslant:oD,gescc:rD,ges:iD,gesdot:sD,gesdoto:aD,gesdotol:lD,gesl:cD,gesles:uD,Gfr:dD,gfr:fD,gg:pD,Gg:mD,ggg:hD,gimel:gD,GJcy:vD,gjcy:yD,gla:_D,gl:CD,glE:bD,glj:kD,gnap:wD,gnapprox:ED,gne:xD,gnE:SD,gneq:TD,gneqq:AD,gnsim:ND,Gopf:DD,gopf:BD,grave:MD,GreaterEqual:$D,GreaterEqualLess:OD,GreaterFullEqual:LD,GreaterGreater:ID,GreaterLess:PD,GreaterSlantEqual:VD,GreaterTilde:FD,Gscr:RD,gscr:zD,gsim:UD,gsime:qD,gsiml:HD,gtcc:jD,gtcir:WD,gt:ZD,GT:KD,Gt:GD,gtdot:YD,gtlPar:JD,gtquest:XD,gtrapprox:QD,gtrarr:eB,gtrdot:tB,gtreqless:nB,gtreqqless:oB,gtrless:rB,gtrsim:iB,gvertneqq:sB,gvnE:aB,Hacek:lB,hairsp:cB,half:uB,hamilt:dB,HARDcy:fB,hardcy:pB,harrcir:mB,harr:hB,hArr:gB,harrw:vB,Hat:yB,hbar:_B,Hcirc:CB,hcirc:bB,hearts:kB,heartsuit:wB,hellip:EB,hercon:xB,hfr:SB,Hfr:TB,HilbertSpace:AB,hksearow:NB,hkswarow:DB,hoarr:BB,homtht:MB,hookleftarrow:$B,hookrightarrow:OB,hopf:LB,Hopf:IB,horbar:PB,HorizontalLine:VB,hscr:FB,Hscr:RB,hslash:zB,Hstrok:UB,hstrok:qB,HumpDownHump:HB,HumpEqual:jB,hybull:WB,hyphen:ZB,Iacute:KB,iacute:GB,ic:YB,Icirc:JB,icirc:XB,Icy:QB,icy:eM,Idot:tM,IEcy:nM,iecy:oM,iexcl:rM,iff:iM,ifr:sM,Ifr:aM,Igrave:lM,igrave:cM,ii:uM,iiiint:dM,iiint:fM,iinfin:pM,iiota:mM,IJlig:hM,ijlig:gM,Imacr:vM,imacr:yM,image:_M,ImaginaryI:CM,imagline:bM,imagpart:kM,imath:wM,Im:EM,imof:xM,imped:SM,Implies:TM,incare:AM,in:"∈",infin:NM,infintie:DM,inodot:BM,intcal:MM,int:$M,Int:OM,integers:LM,Integral:IM,intercal:PM,Intersection:VM,intlarhk:FM,intprod:RM,InvisibleComma:zM,InvisibleTimes:UM,IOcy:qM,iocy:HM,Iogon:jM,iogon:WM,Iopf:ZM,iopf:KM,Iota:GM,iota:YM,iprod:JM,iquest:XM,iscr:QM,Iscr:e$,isin:t$,isindot:n$,isinE:o$,isins:r$,isinsv:i$,isinv:s$,it:a$,Itilde:l$,itilde:c$,Iukcy:u$,iukcy:d$,Iuml:f$,iuml:p$,Jcirc:m$,jcirc:h$,Jcy:g$,jcy:v$,Jfr:y$,jfr:_$,jmath:C$,Jopf:b$,jopf:k$,Jscr:w$,jscr:E$,Jsercy:x$,jsercy:S$,Jukcy:T$,jukcy:A$,Kappa:N$,kappa:D$,kappav:B$,Kcedil:M$,kcedil:$$,Kcy:O$,kcy:L$,Kfr:I$,kfr:P$,kgreen:V$,KHcy:F$,khcy:R$,KJcy:z$,kjcy:U$,Kopf:q$,kopf:H$,Kscr:j$,kscr:W$,lAarr:Z$,Lacute:K$,lacute:G$,laemptyv:Y$,lagran:J$,Lambda:X$,lambda:Q$,lang:eO,Lang:tO,langd:nO,langle:oO,lap:rO,Laplacetrf:iO,laquo:sO,larrb:aO,larrbfs:lO,larr:cO,Larr:uO,lArr:dO,larrfs:fO,larrhk:pO,larrlp:mO,larrpl:hO,larrsim:gO,larrtl:vO,latail:yO,lAtail:_O,lat:CO,late:bO,lates:kO,lbarr:wO,lBarr:EO,lbbrk:xO,lbrace:SO,lbrack:TO,lbrke:AO,lbrksld:NO,lbrkslu:DO,Lcaron:BO,lcaron:MO,Lcedil:$O,lcedil:OO,lceil:LO,lcub:IO,Lcy:PO,lcy:VO,ldca:FO,ldquo:RO,ldquor:zO,ldrdhar:UO,ldrushar:qO,ldsh:HO,le:jO,lE:WO,LeftAngleBracket:ZO,LeftArrowBar:KO,leftarrow:GO,LeftArrow:YO,Leftarrow:JO,LeftArrowRightArrow:XO,leftarrowtail:QO,LeftCeiling:eL,LeftDoubleBracket:tL,LeftDownTeeVector:nL,LeftDownVectorBar:oL,LeftDownVector:rL,LeftFloor:iL,leftharpoondown:sL,leftharpoonup:aL,leftleftarrows:lL,leftrightarrow:cL,LeftRightArrow:uL,Leftrightarrow:dL,leftrightarrows:fL,leftrightharpoons:pL,leftrightsquigarrow:mL,LeftRightVector:hL,LeftTeeArrow:gL,LeftTee:vL,LeftTeeVector:yL,leftthreetimes:_L,LeftTriangleBar:CL,LeftTriangle:bL,LeftTriangleEqual:kL,LeftUpDownVector:wL,LeftUpTeeVector:EL,LeftUpVectorBar:xL,LeftUpVector:SL,LeftVectorBar:TL,LeftVector:AL,lEg:NL,leg:DL,leq:BL,leqq:ML,leqslant:$L,lescc:OL,les:LL,lesdot:IL,lesdoto:PL,lesdotor:VL,lesg:FL,lesges:RL,lessapprox:zL,lessdot:UL,lesseqgtr:qL,lesseqqgtr:HL,LessEqualGreater:jL,LessFullEqual:WL,LessGreater:ZL,lessgtr:KL,LessLess:GL,lesssim:YL,LessSlantEqual:JL,LessTilde:XL,lfisht:QL,lfloor:eI,Lfr:tI,lfr:nI,lg:oI,lgE:rI,lHar:iI,lhard:sI,lharu:aI,lharul:lI,lhblk:cI,LJcy:uI,ljcy:dI,llarr:fI,ll:pI,Ll:mI,llcorner:hI,Lleftarrow:gI,llhard:vI,lltri:yI,Lmidot:_I,lmidot:CI,lmoustache:bI,lmoust:kI,lnap:wI,lnapprox:EI,lne:xI,lnE:SI,lneq:TI,lneqq:AI,lnsim:NI,loang:DI,loarr:BI,lobrk:MI,longleftarrow:$I,LongLeftArrow:OI,Longleftarrow:LI,longleftrightarrow:II,LongLeftRightArrow:PI,Longleftrightarrow:VI,longmapsto:FI,longrightarrow:RI,LongRightArrow:zI,Longrightarrow:UI,looparrowleft:qI,looparrowright:HI,lopar:jI,Lopf:WI,lopf:ZI,loplus:KI,lotimes:GI,lowast:YI,lowbar:JI,LowerLeftArrow:XI,LowerRightArrow:QI,loz:eP,lozenge:tP,lozf:nP,lpar:oP,lparlt:rP,lrarr:iP,lrcorner:sP,lrhar:aP,lrhard:lP,lrm:cP,lrtri:uP,lsaquo:dP,lscr:fP,Lscr:pP,lsh:mP,Lsh:hP,lsim:gP,lsime:vP,lsimg:yP,lsqb:_P,lsquo:CP,lsquor:bP,Lstrok:kP,lstrok:wP,ltcc:EP,ltcir:xP,lt:SP,LT:TP,Lt:AP,ltdot:NP,lthree:DP,ltimes:BP,ltlarr:MP,ltquest:$P,ltri:OP,ltrie:LP,ltrif:IP,ltrPar:PP,lurdshar:VP,luruhar:FP,lvertneqq:RP,lvnE:zP,macr:UP,male:qP,malt:HP,maltese:jP,Map:"⤅",map:WP,mapsto:ZP,mapstodown:KP,mapstoleft:GP,mapstoup:YP,marker:JP,mcomma:XP,Mcy:QP,mcy:eV,mdash:tV,mDDot:nV,measuredangle:oV,MediumSpace:rV,Mellintrf:iV,Mfr:sV,mfr:aV,mho:lV,micro:cV,midast:uV,midcir:dV,mid:fV,middot:pV,minusb:mV,minus:hV,minusd:gV,minusdu:vV,MinusPlus:yV,mlcp:_V,mldr:CV,mnplus:bV,models:kV,Mopf:wV,mopf:EV,mp:xV,mscr:SV,Mscr:TV,mstpos:AV,Mu:NV,mu:DV,multimap:BV,mumap:MV,nabla:$V,Nacute:OV,nacute:LV,nang:IV,nap:PV,napE:VV,napid:FV,napos:RV,napprox:zV,natural:UV,naturals:qV,natur:HV,nbsp:jV,nbump:WV,nbumpe:ZV,ncap:KV,Ncaron:GV,ncaron:YV,Ncedil:JV,ncedil:XV,ncong:QV,ncongdot:eF,ncup:tF,Ncy:nF,ncy:oF,ndash:rF,nearhk:iF,nearr:sF,neArr:aF,nearrow:lF,ne:cF,nedot:uF,NegativeMediumSpace:dF,NegativeThickSpace:fF,NegativeThinSpace:pF,NegativeVeryThinSpace:mF,nequiv:hF,nesear:gF,nesim:vF,NestedGreaterGreater:yF,NestedLessLess:_F,NewLine:CF,nexist:bF,nexists:kF,Nfr:wF,nfr:EF,ngE:xF,nge:SF,ngeq:TF,ngeqq:AF,ngeqslant:NF,nges:DF,nGg:BF,ngsim:MF,nGt:$F,ngt:OF,ngtr:LF,nGtv:IF,nharr:PF,nhArr:VF,nhpar:FF,ni:RF,nis:zF,nisd:UF,niv:qF,NJcy:HF,njcy:jF,nlarr:WF,nlArr:ZF,nldr:KF,nlE:GF,nle:YF,nleftarrow:JF,nLeftarrow:XF,nleftrightarrow:QF,nLeftrightarrow:eR,nleq:tR,nleqq:nR,nleqslant:oR,nles:rR,nless:iR,nLl:sR,nlsim:aR,nLt:lR,nlt:cR,nltri:uR,nltrie:dR,nLtv:fR,nmid:pR,NoBreak:mR,NonBreakingSpace:hR,nopf:gR,Nopf:vR,Not:yR,not:_R,NotCongruent:CR,NotCupCap:bR,NotDoubleVerticalBar:kR,NotElement:wR,NotEqual:ER,NotEqualTilde:xR,NotExists:SR,NotGreater:TR,NotGreaterEqual:AR,NotGreaterFullEqual:NR,NotGreaterGreater:DR,NotGreaterLess:BR,NotGreaterSlantEqual:MR,NotGreaterTilde:$R,NotHumpDownHump:OR,NotHumpEqual:LR,notin:IR,notindot:PR,notinE:VR,notinva:FR,notinvb:RR,notinvc:zR,NotLeftTriangleBar:UR,NotLeftTriangle:qR,NotLeftTriangleEqual:HR,NotLess:jR,NotLessEqual:WR,NotLessGreater:ZR,NotLessLess:KR,NotLessSlantEqual:GR,NotLessTilde:YR,NotNestedGreaterGreater:JR,NotNestedLessLess:XR,notni:QR,notniva:ez,notnivb:tz,notnivc:nz,NotPrecedes:oz,NotPrecedesEqual:rz,NotPrecedesSlantEqual:iz,NotReverseElement:sz,NotRightTriangleBar:az,NotRightTriangle:lz,NotRightTriangleEqual:cz,NotSquareSubset:uz,NotSquareSubsetEqual:dz,NotSquareSuperset:fz,NotSquareSupersetEqual:pz,NotSubset:mz,NotSubsetEqual:hz,NotSucceeds:gz,NotSucceedsEqual:vz,NotSucceedsSlantEqual:yz,NotSucceedsTilde:_z,NotSuperset:Cz,NotSupersetEqual:bz,NotTilde:kz,NotTildeEqual:wz,NotTildeFullEqual:Ez,NotTildeTilde:xz,NotVerticalBar:Sz,nparallel:Tz,npar:Az,nparsl:Nz,npart:Dz,npolint:Bz,npr:Mz,nprcue:$z,nprec:Oz,npreceq:Lz,npre:Iz,nrarrc:Pz,nrarr:Vz,nrArr:Fz,nrarrw:Rz,nrightarrow:zz,nRightarrow:Uz,nrtri:qz,nrtrie:Hz,nsc:jz,nsccue:Wz,nsce:Zz,Nscr:Kz,nscr:Gz,nshortmid:Yz,nshortparallel:Jz,nsim:Xz,nsime:Qz,nsimeq:eU,nsmid:tU,nspar:nU,nsqsube:oU,nsqsupe:rU,nsub:iU,nsubE:sU,nsube:aU,nsubset:lU,nsubseteq:cU,nsubseteqq:uU,nsucc:dU,nsucceq:fU,nsup:pU,nsupE:mU,nsupe:hU,nsupset:gU,nsupseteq:vU,nsupseteqq:yU,ntgl:_U,Ntilde:CU,ntilde:bU,ntlg:kU,ntriangleleft:wU,ntrianglelefteq:EU,ntriangleright:xU,ntrianglerighteq:SU,Nu:TU,nu:AU,num:NU,numero:DU,numsp:BU,nvap:MU,nvdash:$U,nvDash:OU,nVdash:LU,nVDash:IU,nvge:PU,nvgt:VU,nvHarr:FU,nvinfin:RU,nvlArr:zU,nvle:UU,nvlt:qU,nvltrie:HU,nvrArr:jU,nvrtrie:WU,nvsim:ZU,nwarhk:KU,nwarr:GU,nwArr:YU,nwarrow:JU,nwnear:XU,Oacute:QU,oacute:eq,oast:tq,Ocirc:nq,ocirc:oq,ocir:rq,Ocy:iq,ocy:sq,odash:aq,Odblac:lq,odblac:cq,odiv:uq,odot:dq,odsold:fq,OElig:pq,oelig:mq,ofcir:hq,Ofr:gq,ofr:vq,ogon:yq,Ograve:_q,ograve:Cq,ogt:bq,ohbar:kq,ohm:wq,oint:Eq,olarr:xq,olcir:Sq,olcross:Tq,oline:Aq,olt:Nq,Omacr:Dq,omacr:Bq,Omega:Mq,omega:$q,Omicron:Oq,omicron:Lq,omid:Iq,ominus:Pq,Oopf:Vq,oopf:Fq,opar:Rq,OpenCurlyDoubleQuote:zq,OpenCurlyQuote:Uq,operp:qq,oplus:Hq,orarr:jq,Or:Wq,or:Zq,ord:Kq,order:Gq,orderof:Yq,ordf:Jq,ordm:Xq,origof:Qq,oror:eH,orslope:tH,orv:nH,oS:oH,Oscr:rH,oscr:iH,Oslash:sH,oslash:aH,osol:lH,Otilde:cH,otilde:uH,otimesas:dH,Otimes:fH,otimes:pH,Ouml:mH,ouml:hH,ovbar:gH,OverBar:vH,OverBrace:yH,OverBracket:_H,OverParenthesis:CH,para:bH,parallel:kH,par:wH,parsim:EH,parsl:xH,part:SH,PartialD:TH,Pcy:AH,pcy:NH,percnt:DH,period:BH,permil:MH,perp:$H,pertenk:OH,Pfr:LH,pfr:IH,Phi:PH,phi:VH,phiv:FH,phmmat:RH,phone:zH,Pi:UH,pi:qH,pitchfork:HH,piv:jH,planck:WH,planckh:ZH,plankv:KH,plusacir:GH,plusb:YH,pluscir:JH,plus:XH,plusdo:QH,plusdu:ej,pluse:tj,PlusMinus:nj,plusmn:oj,plussim:rj,plustwo:ij,pm:sj,Poincareplane:aj,pointint:lj,popf:cj,Popf:uj,pound:dj,prap:fj,Pr:pj,pr:mj,prcue:hj,precapprox:gj,prec:vj,preccurlyeq:yj,Precedes:_j,PrecedesEqual:Cj,PrecedesSlantEqual:bj,PrecedesTilde:kj,preceq:wj,precnapprox:Ej,precneqq:xj,precnsim:Sj,pre:Tj,prE:Aj,precsim:Nj,prime:Dj,Prime:Bj,primes:Mj,prnap:$j,prnE:Oj,prnsim:Lj,prod:Ij,Product:Pj,profalar:Vj,profline:Fj,profsurf:Rj,prop:zj,Proportional:Uj,Proportion:qj,propto:Hj,prsim:jj,prurel:Wj,Pscr:Zj,pscr:Kj,Psi:Gj,psi:Yj,puncsp:Jj,Qfr:Xj,qfr:Qj,qint:eW,qopf:tW,Qopf:nW,qprime:oW,Qscr:rW,qscr:iW,quaternions:sW,quatint:aW,quest:lW,questeq:cW,quot:uW,QUOT:dW,rAarr:fW,race:pW,Racute:mW,racute:hW,radic:gW,raemptyv:vW,rang:yW,Rang:_W,rangd:CW,range:bW,rangle:kW,raquo:wW,rarrap:EW,rarrb:xW,rarrbfs:SW,rarrc:TW,rarr:AW,Rarr:NW,rArr:DW,rarrfs:BW,rarrhk:MW,rarrlp:$W,rarrpl:OW,rarrsim:LW,Rarrtl:IW,rarrtl:PW,rarrw:VW,ratail:FW,rAtail:RW,ratio:zW,rationals:UW,rbarr:qW,rBarr:HW,RBarr:jW,rbbrk:WW,rbrace:ZW,rbrack:KW,rbrke:GW,rbrksld:YW,rbrkslu:JW,Rcaron:XW,rcaron:QW,Rcedil:eZ,rcedil:tZ,rceil:nZ,rcub:oZ,Rcy:rZ,rcy:iZ,rdca:sZ,rdldhar:aZ,rdquo:lZ,rdquor:cZ,rdsh:uZ,real:dZ,realine:fZ,realpart:pZ,reals:mZ,Re:hZ,rect:gZ,reg:vZ,REG:yZ,ReverseElement:_Z,ReverseEquilibrium:CZ,ReverseUpEquilibrium:bZ,rfisht:kZ,rfloor:wZ,rfr:EZ,Rfr:xZ,rHar:SZ,rhard:TZ,rharu:AZ,rharul:NZ,Rho:DZ,rho:BZ,rhov:MZ,RightAngleBracket:$Z,RightArrowBar:OZ,rightarrow:LZ,RightArrow:IZ,Rightarrow:PZ,RightArrowLeftArrow:VZ,rightarrowtail:FZ,RightCeiling:RZ,RightDoubleBracket:zZ,RightDownTeeVector:UZ,RightDownVectorBar:qZ,RightDownVector:HZ,RightFloor:jZ,rightharpoondown:WZ,rightharpoonup:ZZ,rightleftarrows:KZ,rightleftharpoons:GZ,rightrightarrows:YZ,rightsquigarrow:JZ,RightTeeArrow:XZ,RightTee:QZ,RightTeeVector:eK,rightthreetimes:tK,RightTriangleBar:nK,RightTriangle:oK,RightTriangleEqual:rK,RightUpDownVector:iK,RightUpTeeVector:sK,RightUpVectorBar:aK,RightUpVector:lK,RightVectorBar:cK,RightVector:uK,ring:dK,risingdotseq:fK,rlarr:pK,rlhar:mK,rlm:hK,rmoustache:gK,rmoust:vK,rnmid:yK,roang:_K,roarr:CK,robrk:bK,ropar:kK,ropf:wK,Ropf:EK,roplus:xK,rotimes:SK,RoundImplies:TK,rpar:AK,rpargt:NK,rppolint:DK,rrarr:BK,Rrightarrow:MK,rsaquo:$K,rscr:OK,Rscr:LK,rsh:IK,Rsh:PK,rsqb:VK,rsquo:FK,rsquor:RK,rthree:zK,rtimes:UK,rtri:qK,rtrie:HK,rtrif:jK,rtriltri:WK,RuleDelayed:ZK,ruluhar:KK,rx:GK,Sacute:YK,sacute:JK,sbquo:XK,scap:QK,Scaron:eG,scaron:tG,Sc:nG,sc:oG,sccue:rG,sce:iG,scE:sG,Scedil:aG,scedil:lG,Scirc:cG,scirc:uG,scnap:dG,scnE:fG,scnsim:pG,scpolint:mG,scsim:hG,Scy:gG,scy:vG,sdotb:yG,sdot:_G,sdote:CG,searhk:bG,searr:kG,seArr:wG,searrow:EG,sect:xG,semi:SG,seswar:TG,setminus:AG,setmn:NG,sext:DG,Sfr:BG,sfr:MG,sfrown:$G,sharp:OG,SHCHcy:LG,shchcy:IG,SHcy:PG,shcy:VG,ShortDownArrow:FG,ShortLeftArrow:RG,shortmid:zG,shortparallel:UG,ShortRightArrow:qG,ShortUpArrow:HG,shy:jG,Sigma:WG,sigma:ZG,sigmaf:KG,sigmav:GG,sim:YG,simdot:JG,sime:XG,simeq:QG,simg:eY,simgE:tY,siml:nY,simlE:oY,simne:rY,simplus:iY,simrarr:sY,slarr:aY,SmallCircle:lY,smallsetminus:cY,smashp:uY,smeparsl:dY,smid:fY,smile:pY,smt:mY,smte:hY,smtes:gY,SOFTcy:vY,softcy:yY,solbar:_Y,solb:CY,sol:bY,Sopf:kY,sopf:wY,spades:EY,spadesuit:xY,spar:SY,sqcap:TY,sqcaps:AY,sqcup:NY,sqcups:DY,Sqrt:BY,sqsub:MY,sqsube:$Y,sqsubset:OY,sqsubseteq:LY,sqsup:IY,sqsupe:PY,sqsupset:VY,sqsupseteq:FY,square:RY,Square:zY,SquareIntersection:UY,SquareSubset:qY,SquareSubsetEqual:HY,SquareSuperset:jY,SquareSupersetEqual:WY,SquareUnion:ZY,squarf:KY,squ:GY,squf:YY,srarr:JY,Sscr:XY,sscr:QY,ssetmn:eJ,ssmile:tJ,sstarf:nJ,Star:oJ,star:rJ,starf:iJ,straightepsilon:sJ,straightphi:aJ,strns:lJ,sub:cJ,Sub:uJ,subdot:dJ,subE:fJ,sube:pJ,subedot:mJ,submult:hJ,subnE:gJ,subne:vJ,subplus:yJ,subrarr:_J,subset:CJ,Subset:bJ,subseteq:kJ,subseteqq:wJ,SubsetEqual:EJ,subsetneq:xJ,subsetneqq:SJ,subsim:TJ,subsub:AJ,subsup:NJ,succapprox:DJ,succ:BJ,succcurlyeq:MJ,Succeeds:$J,SucceedsEqual:OJ,SucceedsSlantEqual:LJ,SucceedsTilde:IJ,succeq:PJ,succnapprox:VJ,succneqq:FJ,succnsim:RJ,succsim:zJ,SuchThat:UJ,sum:qJ,Sum:HJ,sung:jJ,sup1:WJ,sup2:ZJ,sup3:KJ,sup:GJ,Sup:YJ,supdot:JJ,supdsub:XJ,supE:QJ,supe:eX,supedot:tX,Superset:nX,SupersetEqual:oX,suphsol:rX,suphsub:iX,suplarr:sX,supmult:aX,supnE:lX,supne:cX,supplus:uX,supset:dX,Supset:fX,supseteq:pX,supseteqq:mX,supsetneq:hX,supsetneqq:gX,supsim:vX,supsub:yX,supsup:_X,swarhk:CX,swarr:bX,swArr:kX,swarrow:wX,swnwar:EX,szlig:xX,Tab:SX,target:TX,Tau:AX,tau:NX,tbrk:DX,Tcaron:BX,tcaron:MX,Tcedil:$X,tcedil:OX,Tcy:LX,tcy:IX,tdot:PX,telrec:VX,Tfr:FX,tfr:RX,there4:zX,therefore:UX,Therefore:qX,Theta:HX,theta:jX,thetasym:WX,thetav:ZX,thickapprox:KX,thicksim:GX,ThickSpace:YX,ThinSpace:JX,thinsp:XX,thkap:QX,thksim:eQ,THORN:tQ,thorn:nQ,tilde:oQ,Tilde:rQ,TildeEqual:iQ,TildeFullEqual:sQ,TildeTilde:aQ,timesbar:lQ,timesb:cQ,times:uQ,timesd:dQ,tint:fQ,toea:pQ,topbot:mQ,topcir:hQ,top:gQ,Topf:vQ,topf:yQ,topfork:_Q,tosa:CQ,tprime:bQ,trade:kQ,TRADE:wQ,triangle:EQ,triangledown:xQ,triangleleft:SQ,trianglelefteq:TQ,triangleq:AQ,triangleright:NQ,trianglerighteq:DQ,tridot:BQ,trie:MQ,triminus:$Q,TripleDot:OQ,triplus:LQ,trisb:IQ,tritime:PQ,trpezium:VQ,Tscr:FQ,tscr:RQ,TScy:zQ,tscy:UQ,TSHcy:qQ,tshcy:HQ,Tstrok:jQ,tstrok:WQ,twixt:ZQ,twoheadleftarrow:KQ,twoheadrightarrow:GQ,Uacute:YQ,uacute:JQ,uarr:XQ,Uarr:QQ,uArr:eee,Uarrocir:tee,Ubrcy:nee,ubrcy:oee,Ubreve:ree,ubreve:iee,Ucirc:see,ucirc:aee,Ucy:lee,ucy:cee,udarr:uee,Udblac:dee,udblac:fee,udhar:pee,ufisht:mee,Ufr:hee,ufr:gee,Ugrave:vee,ugrave:yee,uHar:_ee,uharl:Cee,uharr:bee,uhblk:kee,ulcorn:wee,ulcorner:Eee,ulcrop:xee,ultri:See,Umacr:Tee,umacr:Aee,uml:Nee,UnderBar:Dee,UnderBrace:Bee,UnderBracket:Mee,UnderParenthesis:$ee,Union:Oee,UnionPlus:Lee,Uogon:Iee,uogon:Pee,Uopf:Vee,uopf:Fee,UpArrowBar:Ree,uparrow:zee,UpArrow:Uee,Uparrow:qee,UpArrowDownArrow:Hee,updownarrow:jee,UpDownArrow:Wee,Updownarrow:Zee,UpEquilibrium:Kee,upharpoonleft:Gee,upharpoonright:Yee,uplus:Jee,UpperLeftArrow:Xee,UpperRightArrow:Qee,upsi:ete,Upsi:tte,upsih:nte,Upsilon:ote,upsilon:rte,UpTeeArrow:ite,UpTee:ste,upuparrows:ate,urcorn:lte,urcorner:cte,urcrop:ute,Uring:dte,uring:fte,urtri:pte,Uscr:mte,uscr:hte,utdot:gte,Utilde:vte,utilde:yte,utri:_te,utrif:Cte,uuarr:bte,Uuml:kte,uuml:wte,uwangle:Ete,vangrt:xte,varepsilon:Ste,varkappa:Tte,varnothing:Ate,varphi:Nte,varpi:Dte,varpropto:Bte,varr:Mte,vArr:$te,varrho:Ote,varsigma:Lte,varsubsetneq:Ite,varsubsetneqq:Pte,varsupsetneq:Vte,varsupsetneqq:Fte,vartheta:Rte,vartriangleleft:zte,vartriangleright:Ute,vBar:qte,Vbar:Hte,vBarv:jte,Vcy:Wte,vcy:Zte,vdash:Kte,vDash:Gte,Vdash:Yte,VDash:Jte,Vdashl:Xte,veebar:Qte,vee:ene,Vee:tne,veeeq:nne,vellip:one,verbar:rne,Verbar:ine,vert:sne,Vert:ane,VerticalBar:lne,VerticalLine:cne,VerticalSeparator:une,VerticalTilde:dne,VeryThinSpace:fne,Vfr:pne,vfr:mne,vltri:hne,vnsub:gne,vnsup:vne,Vopf:yne,vopf:_ne,vprop:Cne,vrtri:bne,Vscr:kne,vscr:wne,vsubnE:Ene,vsubne:xne,vsupnE:Sne,vsupne:Tne,Vvdash:Ane,vzigzag:Nne,Wcirc:Dne,wcirc:Bne,wedbar:Mne,wedge:$ne,Wedge:One,wedgeq:Lne,weierp:Ine,Wfr:Pne,wfr:Vne,Wopf:Fne,wopf:Rne,wp:zne,wr:Une,wreath:qne,Wscr:Hne,wscr:jne,xcap:Wne,xcirc:Zne,xcup:Kne,xdtri:Gne,Xfr:Yne,xfr:Jne,xharr:Xne,xhArr:Qne,Xi:eoe,xi:toe,xlarr:noe,xlArr:ooe,xmap:roe,xnis:ioe,xodot:soe,Xopf:aoe,xopf:loe,xoplus:coe,xotime:uoe,xrarr:doe,xrArr:foe,Xscr:poe,xscr:moe,xsqcup:hoe,xuplus:goe,xutri:voe,xvee:yoe,xwedge:_oe,Yacute:Coe,yacute:boe,YAcy:koe,yacy:woe,Ycirc:Eoe,ycirc:xoe,Ycy:Soe,ycy:Toe,yen:Aoe,Yfr:Noe,yfr:Doe,YIcy:Boe,yicy:Moe,Yopf:$oe,yopf:Ooe,Yscr:Loe,yscr:Ioe,YUcy:Poe,yucy:Voe,yuml:Foe,Yuml:Roe,Zacute:zoe,zacute:Uoe,Zcaron:qoe,zcaron:Hoe,Zcy:joe,zcy:Woe,Zdot:Zoe,zdot:Koe,zeetrf:Goe,ZeroWidthSpace:Yoe,Zeta:Joe,zeta:Xoe,zfr:Qoe,Zfr:ere,ZHcy:tre,zhcy:nre,zigrarr:ore,zopf:rre,Zopf:ire,Zscr:sre,zscr:are,zwj:lre,zwnj:cre};var Jp=ure,lu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zr={},Pd={};function dre(t){var e,n,o=Pd[t];if(o)return o;for(o=Pd[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=dre(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 fre=Va,Vd={};function pre(t){var e,n,o=Vd[t];if(o)return o;for(o=Vd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function Fa(t,e){var n;return typeof e!="string"&&(e=Fa.defaultChars),n=pre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),(l&192)===128&&(c&192)===128)){d=a<<12&61440|l<<6&4032|c&63,d<2048||d>=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+12),16),(l&192)===128&&(c&192)===128&&(u&192)===128)){d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63,d<65536||d>1114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),r+=9;continue}f+="�"}return f})}Fa.defaultChars=";/?:@&=+$,#";Fa.componentChars="";var mre=Fa,hre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ta(){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 gre=/^([a-z0-9.+-]+:)/i,vre=/:[0-9]*$/,yre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_re=["<",">",'"',"`"," ","\r",`
|
|
3
|
+
`," "],Cre=["{","}","|","\\","^","`"].concat(_re),bre=["'"].concat(Cre),Fd=["%","/","?",";","#"].concat(bre),Rd=["/","?","#"],kre=255,zd=/^[+a-z0-9A-Z_-]{0,63}$/,wre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ud={javascript:!0,"javascript:":!0},qd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ere(t,e){if(t&&t instanceof ta)return t;var n=new ta;return n.parse(t,e),n}ta.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=yre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=gre.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&&Ud[u])&&(l=l.substr(2),this.slashes=!0)),!Ud[u]&&(a||u&&!qd[u])){var d=-1;for(n=0;n<Rd.length;n++)s=l.indexOf(Rd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Fd.length;n++)s=l.indexOf(Fd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var 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(zd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(zd)){var k=g.slice(0,n),w=g.slice(n+1),b=y.match(wre);b&&(k.push(b[1]),w.unshift(b[2])),w.length&&(l=w.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>kre&&(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),qd[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ta.prototype.parseHost=function(t){var e=vre.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=Ere;zr.encode=fre;zr.decode=mre;zr.format=hre;zr.parse=xre;var xo={},kl,Hd;function Xp(){return Hd||(Hd=1,kl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),kl}var wl,jd;function Qp(){return jd||(jd=1,wl=/[\0-\x1F\x7F-\x9F]/),wl}var El,Wd;function Sre(){return Wd||(Wd=1,El=/[\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]/),El}var xl,Zd;function em(){return Zd||(Zd=1,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),xl}var Kd;function Tre(){return Kd||(Kd=1,xo.Any=Xp(),xo.Cc=Qp(),xo.Cf=Sre(),xo.P=lu,xo.Z=em()),xo}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(B,I){return o.call(B,I)}function s(B){var I=Array.prototype.slice.call(arguments,1);return I.forEach(function(V){if(V){if(typeof V!="object")throw new TypeError(V+"must be object");Object.keys(V).forEach(function(j){B[j]=V[j]})}}),B}function a(B,I,V){return[].concat(B.slice(0,I),V,B.slice(I+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var I=55296+(B>>10),V=56320+(B&1023);return String.fromCharCode(I,V)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=Jp;function h(B,I){var V;return r(m,I)?m[I]:I.charCodeAt(0)===35&&p.test(I)&&(V=I[1].toLowerCase()==="x"?parseInt(I.slice(2),16):parseInt(I.slice(1),10),l(V))?c(V):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function y(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(I,V,j){return V||h(I,j)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&","<":"<",">":">",'"':"""};function k(B){return _[B]}function w(B){return C.test(B)?B.replace(v,k):B}var b=/[.?*+^$[\]\\(){}|-]/g;function E(B){return B.replace(b,"\\$&")}function T(B){switch(B){case 9:case 32:return!0}return!1}function S(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var N=lu;function L(B){return N.test(B)}function A(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function D(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=Tre(),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=S,t.isMdAsciiPunct=A,t.isPunctChar=L,t.escapeRE=E,t.normalizeReference=D})(Ee);var Ra={},Are=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},Gd=Ee.unescapeAll,Nre=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=Gd(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=Gd(e.slice(n,a)),l.pos=a,l.ok=!0),l},Dre=Ee.unescapeAll,Bre=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=Dre(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};Ra.parseLinkLabel=Are;Ra.parseLinkDestination=Nre;Ra.parseLinkTitle=Bre;var Mre=Ee.assign,$re=Ee.unescapeAll,jo=Ee.escapeHtml,xn={};xn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+jo(s.content)+"</code>"};xn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+jo(t[e].content)+`</code></pre>
|
|
4
|
+
`};xn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?$re(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)||jo(s.content):u=jo(s.content),u.indexOf("<pre")===0?u+`
|
|
5
5
|
`:a?(d=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[],d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l),m={attrs:p},"<pre><code"+r.renderAttrs(m)+">"+u+`</code></pre>
|
|
6
6
|
`):"<pre><code"+r.renderAttrs(s)+">"+u+`</code></pre>
|
|
7
|
-
`};
|
|
7
|
+
`};xn.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)};xn.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
8
8
|
`:`<br>
|
|
9
|
-
`};
|
|
9
|
+
`};xn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
10
10
|
`:`<br>
|
|
11
11
|
`:`
|
|
12
|
-
`};
|
|
12
|
+
`};xn.text=function(t,e){return jo(t[e].content)};xn.html_block=function(t,e){return t[e].content};xn.html_inline=function(t,e){return t[e].content};function Ur(){this.rules=Mre({},xn)}Ur.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+jo(e.attrs[n][0])+'="'+jo(e.attrs[n][1])+'"';return r};Ur.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
14
|
`:">",s)};Ur.prototype.renderInline=function(t,e,n){for(var o,r="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?r+=s[o](t,a,e,n,this):r+=this.renderToken(t,a,e);return r};Ur.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,s=t.length;r<s;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
|
|
15
15
|
`);return o};Ur.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;o++)s=t[o].type,s==="inline"?a+=this.renderInline(t[o].children,e,n):typeof l[s]<"u"?a+=l[s](t,o,e,n,this):a+=this.renderToken(t,o,e,n);return a};var Ore=Ur;function sn(){this.__rules__=[],this.__cache__=null}sn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};sn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};sn.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null};sn.prototype.before=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.after=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};sn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};sn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};sn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};sn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};sn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var cu=sn,Lre=/\r\n?|\n/g,Ire=/\0/g,Pre=function(e){var n;n=e.src.replace(Lre,`
|
|
16
|
-
`),n=n.replace(Ire,"�"),e.src=n},
|
|
17
|
-
`,a.map=[n,e.line],!0},aie=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},lie=Ee.isSpace,cie=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,S=e.lineMax,N=e.bMarks[n]+e.tShift[n],O=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],O=e.eMarks[p],!(N>=O));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<O&&(a=e.src.charCodeAt(N),lie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;N++}d=N>=O,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=S,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},uie=Ee.isSpace,die=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(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&&!uie(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)},om=Ee.isSpace;function n1(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),!om(s))?-1:o}function o1(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),!om(n))?-1:r}function fie(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 pie=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,S,N,O,A,D,M,L,I=n,j=!1,R=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&(j=!0),(N=o1(e,I))>=0){if(f=!0,A=e.bMarks[I]+e.tShift[I],C=Number(e.src.slice(A,N-1)),j&&C!==1)return!1}else if((N=n1(e,I))>=0)f=!1;else return!1;if(j&&e.skipSpaces(N)>=e.eMarks[I])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=[I,0],L.markup=String.fromCharCode(y),O=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";I<o;){for(S=N,v=e.eMarks[I],d=_=e.sCount[I]+N-(e.bMarks[I]+e.tShift[I]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[I])%4;else if(s===32)_++;else break;S++}if(a=S,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=[I,0],f&&(L.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[I],b=e.sCount[I],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[I]=a-e.bMarks[I],e.sCount[I]=_,a>=v&&e.isEmpty(I+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,I,o,!0),(!e.tight||O)&&(R=!1),O=e.line-I>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[I]=E,e.sCount[I]=b,e.tight=T,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(y),I=e.line,p[1]=I,I>=o||e.sCount[I]<e.blkIndent||e.sCount[I]-e.blkIndent>=4)break;for(D=!1,l=0,m=M.length;l<m;l++)if(M[l](e,I,o,!0)){D=!0;break}if(D)break;if(f){if(N=o1(e,I),N<0)break;A=e.bMarks[I]+e.tShift[I]}else if(N=n1(e,I),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]=I,e.line=I,e.parentType=w,R&&fie(e,g),!0},mie=Ee.normalizeReference,Ns=Ee.isSpace,hie=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(!Ns(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(!Ns(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),!!Ns(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ns(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=mie(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)},gie=["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"],za={},vie="[a-zA-Z_:][a-zA-Z0-9:._-]*",yie="[^\"'=<>`\\x00-\\x20]+",_ie="'[^']*'",Cie='"[^"]*"',bie="(?:"+yie+"|"+_ie+"|"+Cie+")",kie="(?:\\s+"+vie+"(?:\\s*=\\s*"+bie+")?)",rm="<[A-Za-z][A-Za-z0-9\\-]*"+kie+"*\\s*\\/?>",im="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",wie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Eie="<[?][\\s\\S]*?[?]>",xie="<![A-Z]+\\s+[^>]*>",Sie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Tie=new RegExp("^(?:"+rm+"|"+im+"|"+wie+"|"+Eie+"|"+xie+"|"+Sie+")"),Aie=new RegExp("^(?:"+rm+"|"+im+")");za.HTML_TAG_RE=Tie;za.HTML_OPEN_CLOSE_TAG_RE=Aie;var Nie=gie,Die=za.HTML_OPEN_CLOSE_TAG_RE,fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Die.source+"\\s*$"),/^$/,!1]],Mie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<fr.length&&!fr[s][0].test(c);s++);if(s===fr.length)return!1;if(r)return fr[s][2];if(a=n+1,!fr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),fr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},r1=Ee.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&&!r1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&r1(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)},$ie=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},Oie=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},sm=uu,Ua=Ee.isSpace;function xn(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(Ua(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}xn.prototype.push=function(t,e,n){var o=new sm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};xn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};xn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};xn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ua(n));e++);return e};xn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ua(this.src.charCodeAt(--e)))return e+1;return e};xn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};xn.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};xn.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),Ua(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("")};xn.prototype.Token=sm;var Lie=xn,Iie=cu,Ds=[["table",iie,["paragraph","reference"]],["code",sie],["fence",aie,["paragraph","reference","blockquote","list"]],["blockquote",cie,["paragraph","reference","blockquote","list"]],["hr",die,["paragraph","reference","blockquote","list"]],["list",pie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Mie,["paragraph","reference","blockquote"]],["heading",Bie,["paragraph","reference","blockquote"]],["lheading",$ie],["paragraph",Oie]];function qa(){this.ruler=new Iie;for(var t=0;t<Ds.length;t++)this.ruler.push(Ds[t][0],Ds[t][1],{alt:(Ds[t][2]||[]).slice()})}qa.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)}};qa.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))};qa.prototype.State=Lie;var Pie=qa;function Fie(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 Vie=function(e,n){for(var o=e.pos;o<e.posMax&&!Fie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Rie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,zie=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(Rie),!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)},Uie=Ee.isSpace,qie=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&&Uie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Hie=Ee.isSpace,fu=[];for(var i1=0;i1<256;i1++)fu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){fu[t.charCodeAt(0)]=1});var jie=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),!!Hie(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&&fu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Wie=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},Ha={};Ha.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 s1(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)}}Ha.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(s1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&s1(e,o[n].delimiters)};var ja={};ja.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 a1(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--))}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(a1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&a1(e,o[n].delimiters)};var Zie=Ee.normalizeReference,Nl=Ee.isSpace,Kie=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),!(!Nl(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),!(!Nl(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),!(!Nl(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[Zie(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},Gie=Ee.normalizeReference,Dl=Ee.isSpace,Yie=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),!(!Dl(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),!(!Dl(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),!(!Dl(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[Gie(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},Jie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Xie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Qie=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),Xie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):Jie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},ese=za.HTML_TAG_RE;function tse(t){return/^<a[>\s]/i.test(t)}function nse(t){return/^<\/a\s*>/i.test(t)}function ose(t){var e=t|32;return e>=97&&e<=122}var rse=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&&!ose(o))||(r=e.src.slice(l).match(ese),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],tse(a.content)&&e.linkLevel++,nse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},l1=Jp,ise=Ee.has,sse=Ee.isValidEntityCode,c1=Ee.fromCodePoint,ase=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lse=/^&([a-z][a-z0-9]{1,31});/i,cse=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(ase),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=sse(r)?c1(r):c1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(lse),s&&ise(l1,s[1]))return n||(a=e.push("text_special","",0),a.content=l1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function u1(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 use=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(u1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&u1(o[n].delimiters)},dse=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)},pu=uu,d1=Ee.isWhiteSpace,f1=Ee.isPunctChar,p1=Ee.isMdAsciiPunct;function ns(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}ns.prototype.pushPending=function(){var t=new pu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ns.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new pu(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};ns.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=p1(o)||f1(String.fromCharCode(o)),f=p1(r)||f1(String.fromCharCode(r)),c=d1(o),d=d1(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}};ns.prototype.Token=pu;var fse=ns,m1=cu,Ml=[["text",Vie],["linkify",zie],["newline",qie],["escape",jie],["backticks",Wie],["strikethrough",Ha.tokenize],["emphasis",ja.tokenize],["link",Kie],["image",Yie],["autolink",Qie],["html_inline",rse],["entity",cse]],Bl=[["balance_pairs",use],["strikethrough",Ha.postProcess],["emphasis",ja.postProcess],["fragments_join",dse]];function os(){var t;for(this.ruler=new m1,t=0;t<Ml.length;t++)this.ruler.push(Ml[t][0],Ml[t][1]);for(this.ruler2=new m1,t=0;t<Bl.length;t++)this.ruler2.push(Bl[t][0],Bl[t][1])}os.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};os.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()};os.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)};os.prototype.State=fse;var pse=os,$l,h1;function mse(){return h1||(h1=1,$l=function(t){var e={};t=t||{},e.src_Any=Xp().source,e.src_Cc=Qp().source,e.src_Z=em().source,e.src_P=lu.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}),$l}function dc(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 Wa(t){return Object.prototype.toString.call(t)}function hse(t){return Wa(t)==="[object String]"}function gse(t){return Wa(t)==="[object Object]"}function vse(t){return Wa(t)==="[object RegExp]"}function g1(t){return Wa(t)==="[object Function]"}function yse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var am={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _se(t){return Object.keys(t||{}).reduce(function(e,n){return e||am.hasOwnProperty(n)},!1)}var Cse={"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}}},bse="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]",kse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function wse(t){t.__index__=-1,t.__text_cache__=""}function Ese(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function v1(){return function(t,e){e.normalize(t)}}function na(t){var e=t.re=mse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(bse),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,gse(c)){vse(c.validate)?u.validate=Ese(c.validate):g1(c.validate)?u.validate=c.validate:s(l,c),g1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=v1();return}if(hse(c)){r.push(l);return}s(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:v1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(yse).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"),wse(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 fc(t,e){var n=new xse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||_se(t)&&(e=t,t={}),this.__opts__=dc({},am,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=dc({},Cse,t),this.__compiled__={},this.__tlds__=kse,this.__tlds_replaced__=!1,this.re={},na(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,na(this),this};Ot.prototype.set=function(e){return this.__opts__=dc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(fc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(fc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,fc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),na(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,na(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Sse=Ot;const kr=2147483647,hn=36,mu=1,Vi=26,Tse=38,Ase=700,lm=72,cm=128,um="-",Nse=/^xn--/,Dse=/[^\0-\x7F]/,Mse=/[\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"},Ol=hn-mu,gn=Math.floor,Ll=String.fromCharCode;function eo(t){throw new RangeError(Bse[t])}function $se(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function dm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Mse,".");const r=t.split("."),s=$se(r,e).join(".");return o+s}function hu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const fm=t=>String.fromCodePoint(...t),Ose=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:hn},y1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},pm=function(t,e,n){let o=0;for(t=n?gn(t/Ase):t>>1,t+=gn(t/e);t>Ol*Vi>>1;o+=hn)t=gn(t/Ol);return gn(o+(Ol+1)*t/(t+Tse))},gu=function(t){const e=[],n=t.length;let o=0,r=cm,s=lm,a=t.lastIndexOf(um);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&eo("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=hn;;f+=hn){l>=n&&eo("invalid-input");const p=Ose(t.charCodeAt(l++));p>=hn&&eo("invalid-input"),p>gn((kr-o)/d)&&eo("overflow"),o+=p*d;const m=f<=s?mu:f>=s+Vi?Vi:f-s;if(p<m)break;const h=hn-m;d>gn(kr/h)&&eo("overflow"),d*=h}const u=e.length+1;s=pm(o-c,u,c==0),gn(o/u)>kr-r&&eo("overflow"),r+=gn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},vu=function(t){const e=[];t=hu(t);const n=t.length;let o=cm,r=0,s=lm;for(const c of t)c<128&&e.push(Ll(c));const a=e.length;let l=a;for(a&&e.push(um);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>gn((kr-r)/u)&&eo("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&eo("overflow"),d===o){let f=r;for(let p=hn;;p+=hn){const m=p<=s?mu:p>=s+Vi?Vi:p-s;if(f<m)break;const h=f-m,g=hn-m;e.push(Ll(y1(m+h%g,0))),f=gn(h/g)}e.push(Ll(y1(f,0))),s=pm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},mm=function(t){return dm(t,function(e){return Nse.test(e)?gu(e.slice(4).toLowerCase()):e})},hm=function(t){return dm(t,function(e){return Dse.test(e)?"xn--"+vu(e):e})},Lse={version:"2.1.0",ucs2:{decode:hu,encode:fm},decode:gu,encode:vu,toASCII:hm,toUnicode:mm},Ise=Object.freeze(Object.defineProperty({__proto__:null,decode:gu,default:Lse,encode:vu,toASCII:hm,toUnicode:mm,ucs2decode:hu,ucs2encode:fm},Symbol.toStringTag,{value:"Module"})),Pse=o_(Ise);var Fse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Vse={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"]}}},Rse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},xi=Ee,zse=Ra,Use=Ore,qse=rie,Hse=Pie,jse=pse,Wse=Sse,Oo=zr,gm=Pse,Zse={default:Fse,zero:Vse,commonmark:Rse},Kse=/^(vbscript|javascript|file|data):/,Gse=/^data:image\/(gif|png|jpeg|webp);/;function Yse(t){var e=t.trim().toLowerCase();return Kse.test(e)?!!Gse.test(e):!0}var vm=["http:","https:","mailto:"];function Jse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||vm.indexOf(e.protocol)>=0))try{e.hostname=gm.toASCII(e.hostname)}catch{}return Oo.encode(Oo.format(e))}function Xse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||vm.indexOf(e.protocol)>=0))try{e.hostname=gm.toUnicode(e.hostname)}catch{}return Oo.decode(Oo.format(e),Oo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new jse,this.block=new Hse,this.core=new qse,this.renderer=new Use,this.linkify=new Wse,this.validateLink=Yse,this.normalizeLink=Jse,this.normalizeLinkText=Xse,this.utils=xi,this.helpers=xi.assign({},zse),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return xi.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=Zse[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Qse=jt,eae=Qse;const tae=n_(eae);/*! @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 _1(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 nae(t){if(Array.isArray(t))return t}function oae(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 rae(){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 iae(t,e){return nae(t)||oae(t,e)||sae(t,e)||rae()}function sae(t,e){if(t){if(typeof t=="string")return _1(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)?_1(t,e):void 0}}const ym=Object.entries,C1=Object.setPrototypeOf,aae=Object.isFrozen,lae=Object.getPrototypeOf,cae=Object.getOwnPropertyDescriptor;let tt=Object.freeze,ot=Object.seal,vr=Object.create,_m=typeof Reflect<"u"&&Reflect,pc=_m.apply,mc=_m.construct;tt||(tt=function(e){return e});ot||(ot=function(e){return e});pc||(pc=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)});mc||(mc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const pr=ze(Array.prototype.forEach),uae=ze(Array.prototype.lastIndexOf),b1=ze(Array.prototype.pop),mr=ze(Array.prototype.push),dae=ze(Array.prototype.splice),no=Array.isArray,Ci=ze(String.prototype.toLowerCase),Il=ze(String.prototype.toString),k1=ze(String.prototype.match),pi=ze(String.prototype.replace),w1=ze(String.prototype.indexOf),fae=ze(String.prototype.trim),pae=ze(Number.prototype.toString),mae=ze(Boolean.prototype.toString),E1=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),x1=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Ge=ze(Object.prototype.hasOwnProperty),mi=ze(Object.prototype.toString),Ke=ze(RegExp.prototype.test),So=hae(TypeError);function ze(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return pc(t,e,o)}}function hae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return mc(t,n)}}function Ce(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(C1&&C1(t,null),!no(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(aae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function gae(t){for(let e=0;e<t.length;e++)Ge(t,e)||(t[e]=null);return t}function at(t){const e=vr(null);for(const o of ym(t)){var n=iae(o,2);const r=n[0],s=n[1];Ge(t,r)&&(no(s)?e[r]=gae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=at(s):e[r]=s)}return e}function vae(t){switch(typeof t){case"string":return t;case"number":return pae(t);case"boolean":return mae(t);case"bigint":return E1?E1(t):"0";case"symbol":return x1?x1(t):"Symbol()";case"undefined":return mi(t);case"function":case"object":{if(t===null)return mi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:mi(o)}return mi(t)}default:return mi(t)}}function Jt(t,e){for(;t!==null;){const o=cae(t,e);if(o){if(o.get)return ze(o.get);if(typeof o.value=="function")return ze(o.value)}t=lae(t)}function n(){return null}return n}function yae(t){try{return Ke(t,""),!0}catch{return!1}}const S1=tt(["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"]),Pl=tt(["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"]),Fl=tt(["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"]),_ae=tt(["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"]),Vl=tt(["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"]),Cae=tt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),T1=tt(["#text"]),A1=tt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rl=tt(["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"]),N1=tt(["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"]),Ms=tt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bae=ot(/{{[\w\W]*|^[\w\W]*}}/g),kae=ot(/<%[\w\W]*|^[\w\W]*%>/g),wae=ot(/\${[\w\W]*/g),Eae=ot(/^data-[\-\w.\u00B7-\uFFFF]+$/),xae=ot(/^aria-[\-\w]+$/),D1=ot(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sae=ot(/^(?:\w+script|data):/i),Tae=ot(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Aae=ot(/^html$/i),Nae=ot(/^[a-z][.\w]*(-[.\w]+)+$/i),M1=ot(/<[/\w!]/g),B1=ot(/<[/\w]/g),Dae=ot(/<\/no(script|embed|frames)/i),Mae=ot(/\/>/i),At={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Bae=function(){return typeof window>"u"?null:window},$ae=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}},$1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Qn=function(e,n,o,r){return Ge(e,n)&&no(e[n])?Ce(r.base?at(r.base):{},e[n],r.transform):o};function Cm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bae();const e=J=>Cm(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==At.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,p=l.prototype,m=Jt(p,"cloneNode"),h=Jt(p,"remove"),g=Jt(p,"nextSibling"),y=Jt(p,"childNodes"),C=Jt(p,"parentNode"),v=Jt(p,"shadowRoot"),_=Jt(p,"attributes"),k=a&&a.prototype?Jt(a.prototype,"nodeType"):null,w=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let E,T="",S,N=!1,O=0;const A=function(){if(O>0)throw So('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(x){A(),O++;try{return E.createHTML(x)}finally{O--}},M=function(x){A(),O++;try{return E.createScriptURL(x)}finally{O--}},L=function(){return N||(S=$ae(f,r),N=!0),S},I=n,j=I.implementation,R=I.createNodeIterator,q=I.createDocumentFragment,F=I.getElementsByTagName,Q=o.importNode;let P=$1();e.isSupported=typeof ym=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const re=bae,oe=kae,G=wae,z=Eae,te=xae,de=Sae,xe=Tae,V=Nae;let ee=D1,ae=null;const Ze=Ce({},[...S1,...Pl,...Fl,...Vl,...T1]);let ye=null;const _e=Ce({},[...A1,...Rl,...N1,...Ms]);let Se=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,bt=null;const Fe=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let mt=!0,kt=!0,Wn=!1,bo=!0,Ve=!1,ht=!0,st=!1,Zt=!1,Sn=null,Zn=null,ko=!1,Kn=!1,ir=!1,sr=!1,Tn=!0,cn=!1;const ms="user-content-";let Yr=!0,Kt=!1,wt={},Et=null;const ar=Ce({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let hs=null;const Jr=Ce({},["audio","video","img","source","image","track"]);let xt=null;const lr=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gn="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",St="http://www.w3.org/1999/xhtml";let Yn=St,wo=!1,Xr=null;const pl=Ce({},[Gn,cr,St],Il),gs=tt(["mi","mo","mn","ms","mtext"]);let Tt=Ce({},gs);const vs=tt(["annotation-xml"]);let Qr=Ce({},vs);const ml=Ce({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Ne=null,Gt=null;const ni=n.createElement("form"),ys=function(x){return x instanceof RegExp||x instanceof Function},Jn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===x)return;(!x||typeof x!="object")&&(x={}),x=at(x),Eo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Ne=Eo==="application/xhtml+xml"?Il:Ci,ae=Qn(x,"ALLOWED_TAGS",Ze,{transform:Ne}),ye=Qn(x,"ALLOWED_ATTR",_e,{transform:Ne}),Xr=Qn(x,"ALLOWED_NAMESPACES",pl,{transform:Il}),xt=Qn(x,"ADD_URI_SAFE_ATTR",lr,{transform:Ne,base:lr}),hs=Qn(x,"ADD_DATA_URI_TAGS",Jr,{transform:Ne,base:Jr}),Et=Qn(x,"FORBID_CONTENTS",ar,{transform:Ne}),it=Qn(x,"FORBID_TAGS",at({}),{transform:Ne}),bt=Qn(x,"FORBID_ATTR",at({}),{transform:Ne}),wt=Ge(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?at(x.USE_PROFILES):x.USE_PROFILES:!1,mt=x.ALLOW_ARIA_ATTR!==!1,kt=x.ALLOW_DATA_ATTR!==!1,Wn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,bo=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=x.SAFE_FOR_TEMPLATES||!1,ht=x.SAFE_FOR_XML!==!1,st=x.WHOLE_DOCUMENT||!1,Kn=x.RETURN_DOM||!1,ir=x.RETURN_DOM_FRAGMENT||!1,sr=x.RETURN_TRUSTED_TYPE||!1,ko=x.FORCE_BODY||!1,Tn=x.SANITIZE_DOM!==!1,cn=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,Kt=x.IN_PLACE||!1,ee=yae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:D1,Yn=typeof x.NAMESPACE=="string"?x.NAMESPACE:St,Tt=Ge(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?at(x.MATHML_TEXT_INTEGRATION_POINTS):Ce({},gs),Qr=Ge(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?at(x.HTML_INTEGRATION_POINTS):Ce({},vs);const $=Ge(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?at(x.CUSTOM_ELEMENT_HANDLING):vr(null);if(Se=vr(null),Ge($,"tagNameCheck")&&ys($.tagNameCheck)&&(Se.tagNameCheck=$.tagNameCheck),Ge($,"attributeNameCheck")&&ys($.attributeNameCheck)&&(Se.attributeNameCheck=$.attributeNameCheck),Ge($,"allowCustomizedBuiltInElements")&&typeof $.allowCustomizedBuiltInElements=="boolean"&&(Se.allowCustomizedBuiltInElements=$.allowCustomizedBuiltInElements),ot(Se),Ve&&(kt=!1),ir&&(Kn=!0),wt&&(ae=Ce({},T1),ye=vr(null),wt.html===!0&&(Ce(ae,S1),Ce(ye,A1)),wt.svg===!0&&(Ce(ae,Pl),Ce(ye,Rl),Ce(ye,Ms)),wt.svgFilters===!0&&(Ce(ae,Fl),Ce(ye,Rl),Ce(ye,Ms)),wt.mathMl===!0&&(Ce(ae,Vl),Ce(ye,N1),Ce(ye,Ms))),Fe.tagCheck=null,Fe.attributeCheck=null,Ge(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Fe.tagCheck=x.ADD_TAGS:no(x.ADD_TAGS)&&(ae===Ze&&(ae=at(ae)),Ce(ae,x.ADD_TAGS,Ne))),Ge(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Fe.attributeCheck=x.ADD_ATTR:no(x.ADD_ATTR)&&(ye===_e&&(ye=at(ye)),Ce(ye,x.ADD_ATTR,Ne))),Ge(x,"ADD_URI_SAFE_ATTR")&&no(x.ADD_URI_SAFE_ATTR)&&Ce(xt,x.ADD_URI_SAFE_ATTR,Ne),Ge(x,"FORBID_CONTENTS")&&no(x.FORBID_CONTENTS)&&(Et===ar&&(Et=at(Et)),Ce(Et,x.FORBID_CONTENTS,Ne)),Ge(x,"ADD_FORBID_CONTENTS")&&no(x.ADD_FORBID_CONTENTS)&&(Et===ar&&(Et=at(Et)),Ce(Et,x.ADD_FORBID_CONTENTS,Ne)),Yr&&(ae["#text"]=!0),st&&Ce(ae,["html","head","body"]),ae.table&&(Ce(ae,["tbody"]),delete it.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=E;E=x.TRUSTED_TYPES_POLICY;try{T=D("")}catch(le){throw E=W,le}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=L()),E&&typeof T=="string"&&(T=D("")));tt&&tt(x),Gt=x},oi=Ce({},[...Pl,...Fl,..._ae]),B=Ce({},[...Vl,...Cae]),Y=function(x,$,W){return $.namespaceURI===St?x==="svg":$.namespaceURI===Gn?x==="svg"&&(W==="annotation-xml"||Tt[W]):!!oi[x]},ge=function(x,$,W){return $.namespaceURI===St?x==="math":$.namespaceURI===cr?x==="math"&&Qr[W]:!!B[x]},Be=function(x,$,W){return $.namespaceURI===cr&&!Qr[W]||$.namespaceURI===Gn&&!Tt[W]?!1:!B[x]&&(ml[x]||!oi[x])},An=function(x){let $=C(x);(!$||!$.tagName)&&($={namespaceURI:Yn,tagName:"template"});const W=Ci(x.tagName),le=Ci($.tagName);return Xr[x.namespaceURI]?x.namespaceURI===cr?Y(W,$,le):x.namespaceURI===Gn?ge(W,$,le):x.namespaceURI===St?Be(W,$,le):!!(Eo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Yt=function(x){mr(e.removed,{element:x});try{C(x).removeChild(x)}catch{if(h(x),!C(x))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const $=y(x);if($){const le=[];pr($,ce=>{mr(le,ce)}),pr(le,ce=>{try{h(ce)}catch{}})}const W=_(x);if(W)for(let le=W.length-1;le>=0;--le){const ce=W[le],he=ce&&ce.name;if(typeof he=="string")try{x.removeAttribute(he)}catch{}}},Nn=function(x,$){try{mr(e.removed,{attribute:$.getAttributeNode(x),from:$})}catch{mr(e.removed,{attribute:null,from:$})}if($.removeAttribute(x),x==="is")if(Kn||ir)try{Yt($)}catch{}else try{$.setAttribute(x,"")}catch{}},_s=function(x){const $=_(x);if($)for(let W=$.length-1;W>=0;--W){const le=$[W],ce=le&&le.name;if(!(typeof ce!="string"||ye[Ne(ce)]))try{x.removeAttribute(ce)}catch{}}},ii=function(x){const $=[x];for(;$.length>0;){const W=$.pop();(k?k(W):W.nodeType)===At.element&&_s(W);const ce=y(W);if(ce)for(let he=ce.length-1;he>=0;--he)$.push(ce[he])}},Ug=function(x){if(!ht)return;const $=[x];for(;$.length>0;){const W=$.pop(),le=k?k(W):W.nodeType;if(le===At.processingInstruction||le===At.comment&&Ke(B1,W.data)){try{h(W)}catch{}continue}if(le===At.element){const he=W,De=Ne(w?w(W):W.nodeName);try{he.hasAttribute&&he.hasAttribute("patchsrc")&&he.removeAttribute("patchsrc"),he.hasAttribute&&he.hasAttribute("for")&&De!=="label"&&De!=="output"&&he.removeAttribute("for")}catch{}}const ce=y(W);if(ce)for(let he=ce.length-1;he>=0;--he)$.push(ce[he])}},cd=function(x){let $=null,W=null;if(ko)x="<remove></remove>"+x;else{const he=k1(x,/^[\r\n\t ]+/);W=he&&he[0]}Eo==="application/xhtml+xml"&&Yn===St&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const le=E?D(x):x;if(Yn===St)try{$=new d().parseFromString(le,Eo)}catch{}if(!$||!$.documentElement){$=j.createDocument(Yn,"template",null);try{$.documentElement.innerHTML=wo?T:le}catch{}}const ce=$.body||$.documentElement;return x&&W&&ce.insertBefore(n.createTextNode(W),ce.childNodes[0]||null),Yn===St?F.call($,st?"html":"body")[0]:st?$.documentElement:ce},ud=function(x){const $=b?b(x):x.ownerDocument;return R.call($||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Cs=function(x){return x=pi(x,re," "),x=pi(x,oe," "),x=pi(x,G," "),x},hl=function(x){var $;x.normalize();const W=b?b(x):x.ownerDocument,le=R.call(W||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ce=le.nextNode();for(;ce;)ce.data=Cs(ce.data),ce=le.nextNode();const he=($=x.querySelectorAll)===null||$===void 0?void 0:$.call(x,"template");he&&pr(he,De=>{ur(De.content)&&hl(De.content)})},bs=function(x){const $=w?w(x):null;return typeof $!="string"||Ne($)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==_(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==k(x)||x.childNodes!==y(x)},ur=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return k(x)===At.documentFragment}catch{return!1}},si=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return typeof k(x)=="number"}catch{return!1}};function un(J,x,$){J.length!==0&&pr(J,W=>{W.call(e,x,$,Gt)})}const qg=function(x,$){return!!(ht&&x.hasChildNodes()&&!si(x.firstElementChild)&&Ke(M1,x.textContent)&&Ke(M1,x.innerHTML)||ht&&x.namespaceURI===St&&$==="style"&&si(x.firstElementChild)||x.nodeType===At.processingInstruction||ht&&x.nodeType===At.comment&&Ke(B1,x.data))},Hg=function(x,$,W){if(!it[$]&&md($)&&(Se.tagNameCheck instanceof RegExp&&Ke(Se.tagNameCheck,$)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck($)))return!1;if(Yr&&!Et[$]){const le=C(x),ce=y(x);if(ce&&le){const he=ce.length;for(let De=he-1;De>=0;--De){const $e=x===W?m(ce[De],!0):ce[De];le.insertBefore($e,g(x))}}}return Yt(x),!0},dd=function(x,$,W,le){return x.length===0?$:$===W||$===le?at($):$},fd=function(x,$){if(un(P.beforeSanitizeElements,x,null),x!==$&&C(x)===null)return Kt&&ii(x),!0;if(bs(x))return Yt(x),!0;const W=Ne(w?w(x):x.nodeName);if(ae=dd(P.uponSanitizeElement,ae,Ze,Sn),un(P.uponSanitizeElement,x,{tagName:W,allowedTags:ae}),x!==$&&C(x)===null)return Kt&&ii(x),!0;if(qg(x,W))return Yt(x),!0;if(it[W]||!(Fe.tagCheck instanceof Function&&Fe.tagCheck(W))&&!ae[W]){const ce=Hg(x,W,$);return ce===!1&&un(P.afterSanitizeElements,x,null),ce}if((k?k(x):x.nodeType)===At.element&&!An(x)||(W==="noscript"||W==="noembed"||W==="noframes")&&Ke(Dae,x.innerHTML))return Yt(x),!0;if(Ve&&x.nodeType===At.text){const ce=Cs(x.textContent);x.textContent!==ce&&(mr(e.removed,{element:x.cloneNode()}),x.textContent=ce)}return un(P.afterSanitizeElements,x,null),!1},pd=function(x,$,W){if(bt[$]||ht&&$==="patchsrc"||ht&&$==="for"&&x!=="label"&&x!=="output"||Tn&&($==="id"||$==="name")&&(W in n||W in ni))return!1;const le=ye[$]||Fe.attributeCheck instanceof Function&&Fe.attributeCheck($,x);if(!(kt&&Ke(z,$))){if(!(mt&&Ke(te,$))){if(le){if(!xt[$]){if(!Ke(ee,pi(W,xe,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&x!=="script"&&w1(W,"data:")===0&&hs[x])){if(!(Wn&&!Ke(de,pi(W,xe,"")))){if(W)return!1}}}}}else if(!(md(x)&&(Se.tagNameCheck instanceof RegExp&&Ke(Se.tagNameCheck,x)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(x))&&(Se.attributeNameCheck instanceof RegExp&&Ke(Se.attributeNameCheck,$)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck($,x))||$==="is"&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&Ke(Se.tagNameCheck,W)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(W))))return!1}}return!0},jg=Ce({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),md=function(x){return!jg[Ci(x)]&&Ke(V,x)},Wg=function(x,$,W,le){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(x,$)){case"TrustedHTML":return D(le);case"TrustedScriptURL":return M(le)}return le},Zg=function(x,$,W,le){try{W?x.setAttributeNS(W,$,le):x.setAttribute($,le),bs(x)?Yt(x):b1(e.removed)}catch{Nn($,x)}},hd=function(x){un(P.beforeSanitizeAttributes,x,null);const $=x.attributes;if(!$||bs(x))return;ye=dd(P.uponSanitizeAttribute,ye,_e,Zn);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye,forceKeepAttr:void 0};let le=$.length;const ce=Ne(x.nodeName);for(;le--;){const he=$[le],De=he.name,$e=he.namespaceURI,gt=he.value,vt=Ne(De),vl=gt;let ut=De==="value"?vl:fae(vl);if(W.attrName=vt,W.attrValue=ut,W.keepAttr=!0,W.forceKeepAttr=void 0,un(P.uponSanitizeAttribute,x,W),ut=W.attrValue,cn&&(vt==="id"||vt==="name")&&w1(ut,ms)!==0&&(Nn(De,x),ut=ms+ut),ht&&Ke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ut)){Nn(De,x);continue}if(vt==="attributename"&&k1(ut,"href")){Nn(De,x);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Nn(De,x);continue}if(!bo&&Ke(Mae,ut)){Nn(De,x);continue}if(Ve&&(ut=Cs(ut)),!pd(ce,vt,ut)){Nn(De,x);continue}ut=Wg(ce,vt,$e,ut),ut!==vl&&Zg(x,De,$e,ut)}}un(P.afterSanitizeAttributes,x,null)},ks=function(x){let $=null;const W=ud(x);for(un(P.beforeSanitizeShadowDOM,x,null);$=W.nextNode();)if(un(P.uponSanitizeShadowNode,$,null),fd($,x),hd($),ur($.content)&&ks($.content),(k?k($):$.nodeType)===At.element){const ce=v($);ur(ce)&&(gl(ce),ks(ce))}un(P.afterSanitizeShadowDOM,x,null)},gl=function(x){const $=[{node:x,shadow:null}];for(;$.length>0;){const W=$.pop();if(W.shadow){ks(W.shadow);continue}const le=W.node,he=(k?k(le):le.nodeType)===At.element,De=y(le);if(De)for(let $e=De.length-1;$e>=0;--$e)$.push({node:De[$e],shadow:null});if(he){const $e=w?w(le):null;if(typeof $e=="string"&&Ne($e)==="template"){const gt=le.content;ur(gt)&&$.push({node:gt,shadow:null})}}if(he){const $e=v(le);ur($e)&&$.push({node:null,shadow:$e},{node:$e,shadow:null})}}};return e.sanitize=function(J){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,W=null,le=null,ce=null;if(wo=!J,wo&&(J="<!-->"),typeof J!="string"&&!si(J)&&(J=vae(J),typeof J!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return J;Zt?(ae=Sn,ye=Zn):Jn(x),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(ae=at(ae)),P.uponSanitizeAttribute.length>0&&(ye=at(ye)),e.removed=[];const he=Kt&&typeof J!="string"&&si(J);if(he){Ug(J);const gt=w?w(J):J.nodeName;if(typeof gt=="string"){const vt=Ne(gt);if(!ae[vt]||it[vt])throw ri(J),So("root node is forbidden and cannot be sanitized in-place")}if(bs(J))throw ri(J),So("root node is clobbered and cannot be sanitized in-place");try{gl(J)}catch(vt){throw ri(J),vt}}else if(si(J))$=cd("<!---->"),W=$.ownerDocument.importNode(J,!0),W.nodeType===At.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?$=W:$.appendChild(W),gl(W);else{if(!Kn&&!Ve&&!st&&J.indexOf("<")===-1)return E&&sr?D(J):J;if($=cd(J),!$)return Kn?null:sr?T:""}$&&ko&&Yt($.firstChild);const De=he?J:$;try{const gt=ud(De);for(;le=gt.nextNode();)fd(le,De),hd(le),ur(le.content)&&ks(le.content)}catch(gt){throw he&&(ri(J),pr(e.removed,vt=>{vt.element&&ii(vt.element)})),gt}if(he)return pr(e.removed,gt=>{gt.element&&ii(gt.element)}),Ve&&hl(J),J;if(Kn){if(Ve&&hl($),ir)for(ce=q.call($.ownerDocument);$.firstChild;)ce.appendChild($.firstChild);else ce=$;return(ye.shadowroot||ye.shadowrootmode)&&(ce=Q.call(o,ce,!0)),ce}let $e=st?$.outerHTML:$.innerHTML;return st&&ae["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&Ke(Aae,$.ownerDocument.doctype.name)&&($e="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
|
|
19
|
-
|
|
16
|
+
`),n=n.replace(Ire,"�"),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)},Fre=function(e){var n=e.tokens,o,r,s;for(r=0,s=n.length;r<s;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Rre=Ee.arrayReplaceAt;function zre(t){return/^<a[>\s]/i.test(t)}function Ure(t){return/^<\/a\s*>/i.test(t)}var qre=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"&&(zre(l.content)&&h>0&&h--,Ure(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=Rre(s,n,c)}}}},tm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Hre=/\((c|tm|r)\)/i,jre=/\((c|tm|r)\)/ig,Wre={c:"©",r:"®",tm:"™"};function Zre(t,e){return Wre[e.toLowerCase()]}function Kre(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(jre,Zre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Gre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&tm.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 Yre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Hre.test(e.tokens[n].content)&&Kre(e.tokens[n].children),tm.test(e.tokens[n].content)&&Gre(e.tokens[n].children))},Yd=Ee.isWhiteSpace,Jd=Ee.isPunctChar,Xd=Ee.isMdAsciiPunct,Jre=/['"]/,Qd=/['"]/g,e1="’";function As(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Xre(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&&(Qd.lastIndex=a,s=Qd.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=Xd(d)||Jd(String.fromCharCode(d)),m=Xd(f)||Jd(String.fromCharCode(f)),h=Yd(d),g=Yd(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=As(o.content,s.index,e1));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=As(o.content,s.index,b),t[u.token].content=As(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=As(o.content,s.index,e1))}}}}var Qre=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)||Xre(e.tokens[n].children,e)},eie=function(e){var n,o,r,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,a=r.length,s=0;s<a;s++)r[s].type==="text_special"&&(r[s].type="text");for(s=l=0;s<a;s++)r[s].type==="text"&&s+1<a&&r[s+1].type==="text"?r[s+1].content=r[s].content+r[s+1].content:(s!==l&&(r[l]=r[s]),l++);s!==l&&(r.length=l)}};function qr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}qr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1};qr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};qr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};qr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};qr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var uu=qr,tie=uu;function nm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}nm.prototype.Token=tie;var nie=nm,oie=cu,Sl=[["normalize",Pre],["block",Vre],["inline",Fre],["linkify",qre],["replacements",Yre],["smartquotes",Qre],["text_join",eie]];function du(){this.ruler=new oie;for(var t=0;t<Sl.length;t++)this.ruler.push(Sl[t][0],Sl[t][1])}du.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};du.prototype.State=nie;var rie=du,Tl=Ee.isSpace;function Al(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function t1(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 iie=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&&!Tl(b))||w===45&&Tl(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Tl(s))return!1;l++}for(a=Al(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=Al(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=t1(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=Al(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=t1(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},sie=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},aie=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},lie=Ee.isSpace,cie=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,S=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),lie(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=S,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},uie=Ee.isSpace,die=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(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&&!uie(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)},om=Ee.isSpace;function n1(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),!om(s))?-1:o}function o1(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),!om(n))?-1:r}function fie(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 pie=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,S,N,L,A,D,B,I,V=n,j=!1,R=!0;if(e.sCount[V]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[V]-e.listIndent>=4&&e.sCount[V]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[V]>=e.blkIndent&&(j=!0),(N=o1(e,V))>=0){if(f=!0,A=e.bMarks[V]+e.tShift[V],C=Number(e.src.slice(A,N-1)),j&&C!==1)return!1}else if((N=n1(e,V))>=0)f=!1;else return!1;if(j&&e.skipSpaces(N)>=e.eMarks[V])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=[V,0],I.markup=String.fromCharCode(y),L=!1,B=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";V<o;){for(S=N,v=e.eMarks[V],d=_=e.sCount[V]+N-(e.bMarks[V]+e.tShift[V]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[V])%4;else if(s===32)_++;else break;S++}if(a=S,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=[V,0],f&&(I.info=e.src.slice(A,N-1)),T=e.tight,E=e.tShift[V],b=e.sCount[V],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[V]=a-e.bMarks[V],e.sCount[V]=_,a>=v&&e.isEmpty(V+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,V,o,!0),(!e.tight||L)&&(R=!1),L=e.line-V>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[V]=E,e.sCount[V]=b,e.tight=T,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(y),V=e.line,p[1]=V,V>=o||e.sCount[V]<e.blkIndent||e.sCount[V]-e.blkIndent>=4)break;for(D=!1,l=0,m=B.length;l<m;l++)if(B[l](e,V,o,!0)){D=!0;break}if(D)break;if(f){if(N=o1(e,V),N<0)break;A=e.bMarks[V]+e.tShift[V]}else if(N=n1(e,V),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]=V,e.line=V,e.parentType=w,R&&fie(e,g),!0},mie=Ee.normalizeReference,Ns=Ee.isSpace,hie=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(!Ns(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(!Ns(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),!!Ns(s));)b++;if(b<E&&C.charCodeAt(b)!==10&&k)for(k="",b=a,w=l;b<E&&(s=C.charCodeAt(b),!!Ns(s));)b++;return b<E&&C.charCodeAt(b)!==10||(p=mie(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)},gie=["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"],za={},vie="[a-zA-Z_:][a-zA-Z0-9:._-]*",yie="[^\"'=<>`\\x00-\\x20]+",_ie="'[^']*'",Cie='"[^"]*"',bie="(?:"+yie+"|"+_ie+"|"+Cie+")",kie="(?:\\s+"+vie+"(?:\\s*=\\s*"+bie+")?)",rm="<[A-Za-z][A-Za-z0-9\\-]*"+kie+"*\\s*\\/?>",im="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",wie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Eie="<[?][\\s\\S]*?[?]>",xie="<![A-Z]+\\s+[^>]*>",Sie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Tie=new RegExp("^(?:"+rm+"|"+im+"|"+wie+"|"+Eie+"|"+xie+"|"+Sie+")"),Aie=new RegExp("^(?:"+rm+"|"+im+")");za.HTML_TAG_RE=Tie;za.HTML_OPEN_CLOSE_TAG_RE=Aie;var Nie=gie,Die=za.HTML_OPEN_CLOSE_TAG_RE,fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Die.source+"\\s*$"),/^$/,!1]],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||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<fr.length&&!fr[s][0].test(c);s++);if(s===fr.length)return!1;if(r)return fr[s][2];if(a=n+1,!fr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),fr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},r1=Ee.isSpace,Mie=function(e,n,o,r){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!r1(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&r1(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)},$ie=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},Oie=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},sm=uu,Ua=Ee.isSpace;function Sn(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(Ua(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}Sn.prototype.push=function(t,e,n){var o=new sm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Sn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Sn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Sn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ua(n));e++);return e};Sn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ua(this.src.charCodeAt(--e)))return e+1;return e};Sn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Sn.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};Sn.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),Ua(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("")};Sn.prototype.Token=sm;var Lie=Sn,Iie=cu,Ds=[["table",iie,["paragraph","reference"]],["code",sie],["fence",aie,["paragraph","reference","blockquote","list"]],["blockquote",cie,["paragraph","reference","blockquote","list"]],["hr",die,["paragraph","reference","blockquote","list"]],["list",pie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Bie,["paragraph","reference","blockquote"]],["heading",Mie,["paragraph","reference","blockquote"]],["lheading",$ie],["paragraph",Oie]];function qa(){this.ruler=new Iie;for(var t=0;t<Ds.length;t++)this.ruler.push(Ds[t][0],Ds[t][1],{alt:(Ds[t][2]||[]).slice()})}qa.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)}};qa.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))};qa.prototype.State=Lie;var Pie=qa;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 Fie=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)},Rie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,zie=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(Rie),!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)},Uie=Ee.isSpace,qie=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&&Uie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Hie=Ee.isSpace,fu=[];for(var i1=0;i1<256;i1++)fu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){fu[t.charCodeAt(0)]=1});var jie=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),!!Hie(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&&fu[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Wie=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},Ha={};Ha.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 s1(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)}}Ha.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(s1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&s1(e,o[n].delimiters)};var ja={};ja.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 a1(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--))}ja.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(a1(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&a1(e,o[n].delimiters)};var Zie=Ee.normalizeReference,Nl=Ee.isSpace,Kie=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),!(!Nl(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),!(!Nl(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),!(!Nl(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[Zie(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},Gie=Ee.normalizeReference,Dl=Ee.isSpace,Yie=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),!(!Dl(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),!(!Dl(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),!(!Dl(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[Gie(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},Jie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Xie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Qie=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),Xie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):Jie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},ese=za.HTML_TAG_RE;function tse(t){return/^<a[>\s]/i.test(t)}function nse(t){return/^<\/a\s*>/i.test(t)}function ose(t){var e=t|32;return e>=97&&e<=122}var rse=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&&!ose(o))||(r=e.src.slice(l).match(ese),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],tse(a.content)&&e.linkLevel++,nse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},l1=Jp,ise=Ee.has,sse=Ee.isValidEntityCode,c1=Ee.fromCodePoint,ase=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lse=/^&([a-z][a-z0-9]{1,31});/i,cse=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(ase),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=sse(r)?c1(r):c1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(lse),s&&ise(l1,s[1]))return n||(a=e.push("text_special","",0),a.content=l1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function u1(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 use=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(u1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&u1(o[n].delimiters)},dse=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)},pu=uu,d1=Ee.isWhiteSpace,f1=Ee.isPunctChar,p1=Ee.isMdAsciiPunct;function ns(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}ns.prototype.pushPending=function(){var t=new pu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ns.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new pu(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};ns.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=p1(o)||f1(String.fromCharCode(o)),f=p1(r)||f1(String.fromCharCode(r)),c=d1(o),d=d1(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}};ns.prototype.Token=pu;var fse=ns,m1=cu,Bl=[["text",Fie],["linkify",zie],["newline",qie],["escape",jie],["backticks",Wie],["strikethrough",Ha.tokenize],["emphasis",ja.tokenize],["link",Kie],["image",Yie],["autolink",Qie],["html_inline",rse],["entity",cse]],Ml=[["balance_pairs",use],["strikethrough",Ha.postProcess],["emphasis",ja.postProcess],["fragments_join",dse]];function os(){var t;for(this.ruler=new m1,t=0;t<Bl.length;t++)this.ruler.push(Bl[t][0],Bl[t][1]);for(this.ruler2=new m1,t=0;t<Ml.length;t++)this.ruler2.push(Ml[t][0],Ml[t][1])}os.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};os.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()};os.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)};os.prototype.State=fse;var pse=os,$l,h1;function mse(){return h1||(h1=1,$l=function(t){var e={};t=t||{},e.src_Any=Xp().source,e.src_Cc=Qp().source,e.src_Z=em().source,e.src_P=lu.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}),$l}function dc(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 Wa(t){return Object.prototype.toString.call(t)}function hse(t){return Wa(t)==="[object String]"}function gse(t){return Wa(t)==="[object Object]"}function vse(t){return Wa(t)==="[object RegExp]"}function g1(t){return Wa(t)==="[object Function]"}function yse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var am={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _se(t){return Object.keys(t||{}).reduce(function(e,n){return e||am.hasOwnProperty(n)},!1)}var Cse={"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}}},bse="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]",kse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function wse(t){t.__index__=-1,t.__text_cache__=""}function Ese(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function v1(){return function(t,e){e.normalize(t)}}function na(t){var e=t.re=mse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(bse),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,gse(c)){vse(c.validate)?u.validate=Ese(c.validate):g1(c.validate)?u.validate=c.validate:s(l,c),g1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=v1();return}if(hse(c)){r.push(l);return}s(l,c)}}),r.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:v1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(yse).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"),wse(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 fc(t,e){var n=new xse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||_se(t)&&(e=t,t={}),this.__opts__=dc({},am,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=dc({},Cse,t),this.__compiled__={},this.__tlds__=kse,this.__tlds_replaced__=!1,this.re={},na(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,na(this),this};Ot.prototype.set=function(e){return this.__opts__=dc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(fc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(fc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,fc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),na(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,na(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Sse=Ot;const kr=2147483647,gn=36,mu=1,Fi=26,Tse=38,Ase=700,lm=72,cm=128,um="-",Nse=/^xn--/,Dse=/[^\0-\x7F]/,Bse=/[\x2E\u3002\uFF0E\uFF61]/g,Mse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ol=gn-mu,vn=Math.floor,Ll=String.fromCharCode;function to(t){throw new RangeError(Mse[t])}function $se(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function dm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Bse,".");const r=t.split("."),s=$se(r,e).join(".");return o+s}function hu(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const fm=t=>String.fromCodePoint(...t),Ose=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:gn},y1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},pm=function(t,e,n){let o=0;for(t=n?vn(t/Ase):t>>1,t+=vn(t/e);t>Ol*Fi>>1;o+=gn)t=vn(t/Ol);return vn(o+(Ol+1)*t/(t+Tse))},gu=function(t){const e=[],n=t.length;let o=0,r=cm,s=lm,a=t.lastIndexOf(um);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&to("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=gn;;f+=gn){l>=n&&to("invalid-input");const p=Ose(t.charCodeAt(l++));p>=gn&&to("invalid-input"),p>vn((kr-o)/d)&&to("overflow"),o+=p*d;const m=f<=s?mu:f>=s+Fi?Fi:f-s;if(p<m)break;const h=gn-m;d>vn(kr/h)&&to("overflow"),d*=h}const u=e.length+1;s=pm(o-c,u,c==0),vn(o/u)>kr-r&&to("overflow"),r+=vn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},vu=function(t){const e=[];t=hu(t);const n=t.length;let o=cm,r=0,s=lm;for(const c of t)c<128&&e.push(Ll(c));const a=e.length;let l=a;for(a&&e.push(um);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>vn((kr-r)/u)&&to("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&to("overflow"),d===o){let f=r;for(let p=gn;;p+=gn){const m=p<=s?mu:p>=s+Fi?Fi:p-s;if(f<m)break;const h=f-m,g=gn-m;e.push(Ll(y1(m+h%g,0))),f=vn(h/g)}e.push(Ll(y1(f,0))),s=pm(r,u,l===a),r=0,++l}++r,++o}return e.join("")},mm=function(t){return dm(t,function(e){return Nse.test(e)?gu(e.slice(4).toLowerCase()):e})},hm=function(t){return dm(t,function(e){return Dse.test(e)?"xn--"+vu(e):e})},Lse={version:"2.1.0",ucs2:{decode:hu,encode:fm},decode:gu,encode:vu,toASCII:hm,toUnicode:mm},Ise=Object.freeze(Object.defineProperty({__proto__:null,decode:gu,default:Lse,encode:vu,toASCII:hm,toUnicode:mm,ucs2decode:hu,ucs2encode:fm},Symbol.toStringTag,{value:"Module"})),Pse=o_(Ise);var Vse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Fse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Rse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},xi=Ee,zse=Ra,Use=Ore,qse=rie,Hse=Pie,jse=pse,Wse=Sse,Oo=zr,gm=Pse,Zse={default:Vse,zero:Fse,commonmark:Rse},Kse=/^(vbscript|javascript|file|data):/,Gse=/^data:image\/(gif|png|jpeg|webp);/;function Yse(t){var e=t.trim().toLowerCase();return Kse.test(e)?!!Gse.test(e):!0}var vm=["http:","https:","mailto:"];function Jse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||vm.indexOf(e.protocol)>=0))try{e.hostname=gm.toASCII(e.hostname)}catch{}return Oo.encode(Oo.format(e))}function Xse(t){var e=Oo.parse(t,!0);if(e.hostname&&(!e.protocol||vm.indexOf(e.protocol)>=0))try{e.hostname=gm.toUnicode(e.hostname)}catch{}return Oo.decode(Oo.format(e),Oo.decode.defaultChars+"%")}function jt(t,e){if(!(this instanceof jt))return new jt(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new jse,this.block=new Hse,this.core=new qse,this.renderer=new Use,this.linkify=new Wse,this.validateLink=Yse,this.normalizeLink=Jse,this.normalizeLinkText=Xse,this.utils=xi,this.helpers=xi.assign({},zse),this.options={},this.configure(t),e&&this.set(e)}jt.prototype.set=function(t){return xi.assign(this.options,t),this};jt.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=Zse[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};jt.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};jt.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};jt.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};jt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};jt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};jt.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};jt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Qse=jt,eae=Qse;const tae=n_(eae);/*! @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 _1(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 nae(t){if(Array.isArray(t))return t}function oae(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 rae(){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 iae(t,e){return nae(t)||oae(t,e)||sae(t,e)||rae()}function sae(t,e){if(t){if(typeof t=="string")return _1(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)?_1(t,e):void 0}}const ym=Object.entries,C1=Object.setPrototypeOf,aae=Object.isFrozen,lae=Object.getPrototypeOf,cae=Object.getOwnPropertyDescriptor;let nt=Object.freeze,rt=Object.seal,vr=Object.create,_m=typeof Reflect<"u"&&Reflect,pc=_m.apply,mc=_m.construct;nt||(nt=function(e){return e});rt||(rt=function(e){return e});pc||(pc=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)});mc||(mc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const pr=qe(Array.prototype.forEach),uae=qe(Array.prototype.lastIndexOf),b1=qe(Array.prototype.pop),mr=qe(Array.prototype.push),dae=qe(Array.prototype.splice),oo=Array.isArray,Ci=qe(String.prototype.toLowerCase),Il=qe(String.prototype.toString),k1=qe(String.prototype.match),pi=qe(String.prototype.replace),w1=qe(String.prototype.indexOf),fae=qe(String.prototype.trim),pae=qe(Number.prototype.toString),mae=qe(Boolean.prototype.toString),E1=typeof BigInt>"u"?null:qe(BigInt.prototype.toString),x1=typeof Symbol>"u"?null:qe(Symbol.prototype.toString),Ye=qe(Object.prototype.hasOwnProperty),mi=qe(Object.prototype.toString),Ge=qe(RegExp.prototype.test),So=hae(TypeError);function qe(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 pc(t,e,o)}}function hae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return mc(t,n)}}function Ce(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(C1&&C1(t,null),!oo(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(aae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function gae(t){for(let e=0;e<t.length;e++)Ye(t,e)||(t[e]=null);return t}function at(t){const e=vr(null);for(const o of ym(t)){var n=iae(o,2);const r=n[0],s=n[1];Ye(t,r)&&(oo(s)?e[r]=gae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=at(s):e[r]=s)}return e}function vae(t){switch(typeof t){case"string":return t;case"number":return pae(t);case"boolean":return mae(t);case"bigint":return E1?E1(t):"0";case"symbol":return x1?x1(t):"Symbol()";case"undefined":return mi(t);case"function":case"object":{if(t===null)return mi(t);const e=t,n=Jt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:mi(o)}return mi(t)}default:return mi(t)}}function Jt(t,e){for(;t!==null;){const o=cae(t,e);if(o){if(o.get)return qe(o.get);if(typeof o.value=="function")return qe(o.value)}t=lae(t)}function n(){return null}return n}function yae(t){try{return Ge(t,""),!0}catch{return!1}}const S1=nt(["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"]),Pl=nt(["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=nt(["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"]),_ae=nt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fl=nt(["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"]),Cae=nt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),T1=nt(["#text"]),A1=nt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Rl=nt(["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"]),N1=nt(["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"]),Bs=nt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bae=rt(/{{[\w\W]*|^[\w\W]*}}/g),kae=rt(/<%[\w\W]*|^[\w\W]*%>/g),wae=rt(/\${[\w\W]*/g),Eae=rt(/^data-[\-\w.\u00B7-\uFFFF]+$/),xae=rt(/^aria-[\-\w]+$/),D1=rt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sae=rt(/^(?:\w+script|data):/i),Tae=rt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Aae=rt(/^html$/i),Nae=rt(/^[a-z][.\w]*(-[.\w]+)+$/i),B1=rt(/<[/\w!]/g),M1=rt(/<[/\w]/g),Dae=rt(/<\/no(script|embed|frames)/i),Bae=rt(/\/>/i),Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mae=function(){return typeof window>"u"?null:window},$ae=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}},$1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eo=function(e,n,o,r){return Ye(e,n)&&oo(e[n])?Ce(r.base?at(r.base):{},e[n],r.transform):o};function Cm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mae();const e=X=>Cm(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.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=Jt(p,"cloneNode"),h=Jt(p,"remove"),g=Jt(p,"nextSibling"),y=Jt(p,"childNodes"),C=Jt(p,"parentNode"),v=Jt(p,"shadowRoot"),_=Jt(p,"attributes"),k=a&&a.prototype?Jt(a.prototype,"nodeType"):null,w=a&&a.prototype?Jt(a.prototype,"nodeName"):null,b=a&&a.prototype?Jt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let E,T="",S,N=!1,L=0;const A=function(){if(L>0)throw So('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(x){A(),L++;try{return E.createHTML(x)}finally{L--}},B=function(x){A(),L++;try{return E.createScriptURL(x)}finally{L--}},I=function(){return N||(S=$ae(f,r),N=!0),S},V=n,j=V.implementation,R=V.createNodeIterator,q=V.createDocumentFragment,F=V.getElementsByTagName,ee=o.importNode;let P=$1();e.isSupported=typeof ym=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const re=bae,oe=kae,G=wae,z=Eae,te=xae,ue=Sae,xe=Tae,Ve=Nae;let ut=D1,ye=null;const dt=Ce({},[...S1,...Pl,...Vl,...Fl,...T1]);let Se=null;const gt=Ce({},[...A1,...Rl,...N1,...Bs]);let $=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,me=null;const Be=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Fe=!0,ge=!0,cn=!1,Tn=!0,ze=!1,vt=!0,st=!1,Zt=!1,An=null,Kn=null,ko=!1,Gn=!1,ir=!1,sr=!1,Nn=!0,un=!1;const ms="user-content-";let Yr=!0,Kt=!1,Et={},xt=null;const ar=Ce({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let hs=null;const Jr=Ce({},["audio","video","img","source","image","track"]);let St=null;const lr=Ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Jn=Tt,wo=!1,Xr=null;const pl=Ce({},[Yn,cr,Tt],Il),gs=nt(["mi","mo","mn","ms","mtext"]);let At=Ce({},gs);const vs=nt(["annotation-xml"]);let Qr=Ce({},vs);const ml=Ce({},["title","style","font","a","script"]);let Eo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Ne=null,Gt=null;const ni=n.createElement("form"),ys=function(x){return x instanceof RegExp||x instanceof Function},Xn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===x)return;(!x||typeof x!="object")&&(x={}),x=at(x),Eo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Ne=Eo==="application/xhtml+xml"?Il:Ci,ye=eo(x,"ALLOWED_TAGS",dt,{transform:Ne}),Se=eo(x,"ALLOWED_ATTR",gt,{transform:Ne}),Xr=eo(x,"ALLOWED_NAMESPACES",pl,{transform:Il}),St=eo(x,"ADD_URI_SAFE_ATTR",lr,{transform:Ne,base:lr}),hs=eo(x,"ADD_DATA_URI_TAGS",Jr,{transform:Ne,base:Jr}),xt=eo(x,"FORBID_CONTENTS",ar,{transform:Ne}),Y=eo(x,"FORBID_TAGS",at({}),{transform:Ne}),me=eo(x,"FORBID_ATTR",at({}),{transform:Ne}),Et=Ye(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?at(x.USE_PROFILES):x.USE_PROFILES:!1,Fe=x.ALLOW_ARIA_ATTR!==!1,ge=x.ALLOW_DATA_ATTR!==!1,cn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Tn=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ze=x.SAFE_FOR_TEMPLATES||!1,vt=x.SAFE_FOR_XML!==!1,st=x.WHOLE_DOCUMENT||!1,Gn=x.RETURN_DOM||!1,ir=x.RETURN_DOM_FRAGMENT||!1,sr=x.RETURN_TRUSTED_TYPE||!1,ko=x.FORCE_BODY||!1,Nn=x.SANITIZE_DOM!==!1,un=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,Kt=x.IN_PLACE||!1,ut=yae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:D1,Jn=typeof x.NAMESPACE=="string"?x.NAMESPACE:Tt,At=Ye(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?at(x.MATHML_TEXT_INTEGRATION_POINTS):Ce({},gs),Qr=Ye(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?at(x.HTML_INTEGRATION_POINTS):Ce({},vs);const O=Ye(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?at(x.CUSTOM_ELEMENT_HANDLING):vr(null);if($=vr(null),Ye(O,"tagNameCheck")&&ys(O.tagNameCheck)&&($.tagNameCheck=O.tagNameCheck),Ye(O,"attributeNameCheck")&&ys(O.attributeNameCheck)&&($.attributeNameCheck=O.attributeNameCheck),Ye(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),rt($),ze&&(ge=!1),ir&&(Gn=!0),Et&&(ye=Ce({},T1),Se=vr(null),Et.html===!0&&(Ce(ye,S1),Ce(Se,A1)),Et.svg===!0&&(Ce(ye,Pl),Ce(Se,Rl),Ce(Se,Bs)),Et.svgFilters===!0&&(Ce(ye,Vl),Ce(Se,Rl),Ce(Se,Bs)),Et.mathMl===!0&&(Ce(ye,Fl),Ce(Se,N1),Ce(Se,Bs))),Be.tagCheck=null,Be.attributeCheck=null,Ye(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Be.tagCheck=x.ADD_TAGS:oo(x.ADD_TAGS)&&(ye===dt&&(ye=at(ye)),Ce(ye,x.ADD_TAGS,Ne))),Ye(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Be.attributeCheck=x.ADD_ATTR:oo(x.ADD_ATTR)&&(Se===gt&&(Se=at(Se)),Ce(Se,x.ADD_ATTR,Ne))),Ye(x,"ADD_URI_SAFE_ATTR")&&oo(x.ADD_URI_SAFE_ATTR)&&Ce(St,x.ADD_URI_SAFE_ATTR,Ne),Ye(x,"FORBID_CONTENTS")&&oo(x.FORBID_CONTENTS)&&(xt===ar&&(xt=at(xt)),Ce(xt,x.FORBID_CONTENTS,Ne)),Ye(x,"ADD_FORBID_CONTENTS")&&oo(x.ADD_FORBID_CONTENTS)&&(xt===ar&&(xt=at(xt)),Ce(xt,x.ADD_FORBID_CONTENTS,Ne)),Yr&&(ye["#text"]=!0),st&&Ce(ye,["html","head","body"]),ye.table&&(Ce(ye,["tbody"]),delete Y.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw So('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=E;E=x.TRUSTED_TYPES_POLICY;try{T=D("")}catch(ae){throw E=W,ae}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,T=""):(E===void 0&&(E=I()),E&&typeof T=="string"&&(T=D("")));nt&&nt(x),Gt=x},oi=Ce({},[...Pl,...Vl,..._ae]),M=Ce({},[...Fl,...Cae]),J=function(x,O,W){return O.namespaceURI===Tt?x==="svg":O.namespaceURI===Yn?x==="svg"&&(W==="annotation-xml"||At[W]):!!oi[x]},ve=function(x,O,W){return O.namespaceURI===Tt?x==="math":O.namespaceURI===cr?x==="math"&&Qr[W]:!!M[x]},$e=function(x,O,W){return O.namespaceURI===cr&&!Qr[W]||O.namespaceURI===Yn&&!At[W]?!1:!M[x]&&(ml[x]||!oi[x])},Dn=function(x){let O=C(x);(!O||!O.tagName)&&(O={namespaceURI:Jn,tagName:"template"});const W=Ci(x.tagName),ae=Ci(O.tagName);return Xr[x.namespaceURI]?x.namespaceURI===cr?J(W,O,ae):x.namespaceURI===Yn?ve(W,O,ae):x.namespaceURI===Tt?$e(W,O,ae):!!(Eo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Yt=function(x){mr(e.removed,{element:x});try{C(x).removeChild(x)}catch{if(h(x),!C(x))throw So("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const O=y(x);if(O){const ae=[];pr(O,le=>{mr(ae,le)}),pr(ae,le=>{try{h(le)}catch{}})}const W=_(x);if(W)for(let ae=W.length-1;ae>=0;--ae){const le=W[ae],he=le&&le.name;if(typeof he=="string")try{x.removeAttribute(he)}catch{}}},Bn=function(x,O){try{mr(e.removed,{attribute:O.getAttributeNode(x),from:O})}catch{mr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(x),x==="is")if(Gn||ir)try{Yt(O)}catch{}else try{O.setAttribute(x,"")}catch{}},_s=function(x){const O=_(x);if(O)for(let W=O.length-1;W>=0;--W){const ae=O[W],le=ae&&ae.name;if(!(typeof le!="string"||Se[Ne(le)]))try{x.removeAttribute(le)}catch{}}},ii=function(x){const O=[x];for(;O.length>0;){const W=O.pop();(k?k(W):W.nodeType)===Nt.element&&_s(W);const le=y(W);if(le)for(let he=le.length-1;he>=0;--he)O.push(le[he])}},Ug=function(x){if(!vt)return;const O=[x];for(;O.length>0;){const W=O.pop(),ae=k?k(W):W.nodeType;if(ae===Nt.processingInstruction||ae===Nt.comment&&Ge(M1,W.data)){try{h(W)}catch{}continue}if(ae===Nt.element){const he=W,De=Ne(w?w(W):W.nodeName);try{he.hasAttribute&&he.hasAttribute("patchsrc")&&he.removeAttribute("patchsrc"),he.hasAttribute&&he.hasAttribute("for")&&De!=="label"&&De!=="output"&&he.removeAttribute("for")}catch{}}const le=y(W);if(le)for(let he=le.length-1;he>=0;--he)O.push(le[he])}},cd=function(x){let O=null,W=null;if(ko)x="<remove></remove>"+x;else{const he=k1(x,/^[\r\n\t ]+/);W=he&&he[0]}Eo==="application/xhtml+xml"&&Jn===Tt&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const ae=E?D(x):x;if(Jn===Tt)try{O=new d().parseFromString(ae,Eo)}catch{}if(!O||!O.documentElement){O=j.createDocument(Jn,"template",null);try{O.documentElement.innerHTML=wo?T:ae}catch{}}const le=O.body||O.documentElement;return x&&W&&le.insertBefore(n.createTextNode(W),le.childNodes[0]||null),Jn===Tt?F.call(O,st?"html":"body")[0]:st?O.documentElement:le},ud=function(x){const O=b?b(x):x.ownerDocument;return R.call(O||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Cs=function(x){return x=pi(x,re," "),x=pi(x,oe," "),x=pi(x,G," "),x},hl=function(x){var O;x.normalize();const W=b?b(x):x.ownerDocument,ae=R.call(W||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let le=ae.nextNode();for(;le;)le.data=Cs(le.data),le=ae.nextNode();const he=(O=x.querySelectorAll)===null||O===void 0?void 0:O.call(x,"template");he&&pr(he,De=>{ur(De.content)&&hl(De.content)})},bs=function(x){const O=w?w(x):null;return typeof O!="string"||Ne(O)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==_(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==k(x)||x.childNodes!==y(x)},ur=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return k(x)===Nt.documentFragment}catch{return!1}},si=function(x){if(!k||typeof x!="object"||x===null)return!1;try{return typeof k(x)=="number"}catch{return!1}};function dn(X,x,O){X.length!==0&&pr(X,W=>{W.call(e,x,O,Gt)})}const qg=function(x,O){return!!(vt&&x.hasChildNodes()&&!si(x.firstElementChild)&&Ge(B1,x.textContent)&&Ge(B1,x.innerHTML)||vt&&x.namespaceURI===Tt&&O==="style"&&si(x.firstElementChild)||x.nodeType===Nt.processingInstruction||vt&&x.nodeType===Nt.comment&&Ge(M1,x.data))},Hg=function(x,O,W){if(!Y[O]&&md(O)&&($.tagNameCheck instanceof RegExp&&Ge($.tagNameCheck,O)||$.tagNameCheck instanceof Function&&$.tagNameCheck(O)))return!1;if(Yr&&!xt[O]){const ae=C(x),le=y(x);if(le&&ae){const he=le.length;for(let De=he-1;De>=0;--De){const Oe=x===W?m(le[De],!0):le[De];ae.insertBefore(Oe,g(x))}}}return Yt(x),!0},dd=function(x,O,W,ae){return x.length===0?O:O===W||O===ae?at(O):O},fd=function(x,O){if(dn(P.beforeSanitizeElements,x,null),x!==O&&C(x)===null)return Kt&&ii(x),!0;if(bs(x))return Yt(x),!0;const W=Ne(w?w(x):x.nodeName);if(ye=dd(P.uponSanitizeElement,ye,dt,An),dn(P.uponSanitizeElement,x,{tagName:W,allowedTags:ye}),x!==O&&C(x)===null)return Kt&&ii(x),!0;if(qg(x,W))return Yt(x),!0;if(Y[W]||!(Be.tagCheck instanceof Function&&Be.tagCheck(W))&&!ye[W]){const le=Hg(x,W,O);return le===!1&&dn(P.afterSanitizeElements,x,null),le}if((k?k(x):x.nodeType)===Nt.element&&!Dn(x)||(W==="noscript"||W==="noembed"||W==="noframes")&&Ge(Dae,x.innerHTML))return Yt(x),!0;if(ze&&x.nodeType===Nt.text){const le=Cs(x.textContent);x.textContent!==le&&(mr(e.removed,{element:x.cloneNode()}),x.textContent=le)}return dn(P.afterSanitizeElements,x,null),!1},pd=function(x,O,W){if(me[O]||vt&&O==="patchsrc"||vt&&O==="for"&&x!=="label"&&x!=="output"||Nn&&(O==="id"||O==="name")&&(W in n||W in ni))return!1;const ae=Se[O]||Be.attributeCheck instanceof Function&&Be.attributeCheck(O,x);if(!(ge&&Ge(z,O))){if(!(Fe&&Ge(te,O))){if(ae){if(!St[O]){if(!Ge(ut,pi(W,xe,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&x!=="script"&&w1(W,"data:")===0&&hs[x])){if(!(cn&&!Ge(ue,pi(W,xe,"")))){if(W)return!1}}}}}else if(!(md(x)&&($.tagNameCheck instanceof RegExp&&Ge($.tagNameCheck,x)||$.tagNameCheck instanceof Function&&$.tagNameCheck(x))&&($.attributeNameCheck instanceof RegExp&&Ge($.attributeNameCheck,O)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(O,x))||O==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Ge($.tagNameCheck,W)||$.tagNameCheck instanceof Function&&$.tagNameCheck(W))))return!1}}return!0},jg=Ce({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),md=function(x){return!jg[Ci(x)]&&Ge(Ve,x)},Wg=function(x,O,W,ae){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(x,O)){case"TrustedHTML":return D(ae);case"TrustedScriptURL":return B(ae)}return ae},Zg=function(x,O,W,ae){try{W?x.setAttributeNS(W,O,ae):x.setAttribute(O,ae),bs(x)?Yt(x):b1(e.removed)}catch{Bn(O,x)}},hd=function(x){dn(P.beforeSanitizeAttributes,x,null);const O=x.attributes;if(!O||bs(x))return;Se=dd(P.uponSanitizeAttribute,Se,gt,Kn);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let ae=O.length;const le=Ne(x.nodeName);for(;ae--;){const he=O[ae],De=he.name,Oe=he.namespaceURI,yt=he.value,_t=Ne(De),vl=yt;let ft=De==="value"?vl:fae(vl);if(W.attrName=_t,W.attrValue=ft,W.keepAttr=!0,W.forceKeepAttr=void 0,dn(P.uponSanitizeAttribute,x,W),ft=W.attrValue,un&&(_t==="id"||_t==="name")&&w1(ft,ms)!==0&&(Bn(De,x),ft=ms+ft),vt&&Ge(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ft)){Bn(De,x);continue}if(_t==="attributename"&&k1(ft,"href")){Bn(De,x);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Bn(De,x);continue}if(!Tn&&Ge(Bae,ft)){Bn(De,x);continue}if(ze&&(ft=Cs(ft)),!pd(le,_t,ft)){Bn(De,x);continue}ft=Wg(le,_t,Oe,ft),ft!==vl&&Zg(x,De,Oe,ft)}}dn(P.afterSanitizeAttributes,x,null)},ks=function(x){let O=null;const W=ud(x);for(dn(P.beforeSanitizeShadowDOM,x,null);O=W.nextNode();)if(dn(P.uponSanitizeShadowNode,O,null),fd(O,x),hd(O),ur(O.content)&&ks(O.content),(k?k(O):O.nodeType)===Nt.element){const le=v(O);ur(le)&&(gl(le),ks(le))}dn(P.afterSanitizeShadowDOM,x,null)},gl=function(x){const O=[{node:x,shadow:null}];for(;O.length>0;){const W=O.pop();if(W.shadow){ks(W.shadow);continue}const ae=W.node,he=(k?k(ae):ae.nodeType)===Nt.element,De=y(ae);if(De)for(let Oe=De.length-1;Oe>=0;--Oe)O.push({node:De[Oe],shadow:null});if(he){const Oe=w?w(ae):null;if(typeof Oe=="string"&&Ne(Oe)==="template"){const yt=ae.content;ur(yt)&&O.push({node:yt,shadow:null})}}if(he){const Oe=v(ae);ur(Oe)&&O.push({node:null,shadow:Oe},{node:Oe,shadow:null})}}};return e.sanitize=function(X){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,W=null,ae=null,le=null;if(wo=!X,wo&&(X="<!-->"),typeof X!="string"&&!si(X)&&(X=vae(X),typeof X!="string"))throw So("dirty is not a string, aborting");if(!e.isSupported)return X;Zt?(ye=An,Se=Kn):Xn(x),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(ye=at(ye)),P.uponSanitizeAttribute.length>0&&(Se=at(Se)),e.removed=[];const he=Kt&&typeof X!="string"&&si(X);if(he){Ug(X);const yt=w?w(X):X.nodeName;if(typeof yt=="string"){const _t=Ne(yt);if(!ye[_t]||Y[_t])throw ri(X),So("root node is forbidden and cannot be sanitized in-place")}if(bs(X))throw ri(X),So("root node is clobbered and cannot be sanitized in-place");try{gl(X)}catch(_t){throw ri(X),_t}}else if(si(X))O=cd("<!---->"),W=O.ownerDocument.importNode(X,!0),W.nodeType===Nt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?O=W:O.appendChild(W),gl(W);else{if(!Gn&&!ze&&!st&&X.indexOf("<")===-1)return E&&sr?D(X):X;if(O=cd(X),!O)return Gn?null:sr?T:""}O&&ko&&Yt(O.firstChild);const De=he?X:O;try{const yt=ud(De);for(;ae=yt.nextNode();)fd(ae,De),hd(ae),ur(ae.content)&&ks(ae.content)}catch(yt){throw he&&(ri(X),pr(e.removed,_t=>{_t.element&&ii(_t.element)})),yt}if(he)return pr(e.removed,yt=>{yt.element&&ii(yt.element)}),ze&&hl(X),X;if(Gn){if(ze&&hl(O),ir)for(le=q.call(O.ownerDocument);O.firstChild;)le.appendChild(O.firstChild);else le=O;return(Se.shadowroot||Se.shadowrootmode)&&(le=ee.call(o,le,!0)),le}let Oe=st?O.outerHTML:O.innerHTML;return st&&ye["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&Ge(Aae,O.ownerDocument.doctype.name)&&(Oe="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
|
|
19
|
+
`+Oe),ze&&(Oe=Cs(Oe)),E&&sr?D(Oe):Oe},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(X),Zt=!0,An=ye,Kn=Se},e.clearConfig=function(){Gt=null,Zt=!1,An=null,Kn=null,E=S,T=""},e.isValidAttribute=function(X,x,O){Gt||Xn({});const W=Ne(X),ae=Ne(x);return pd(W,ae,O)},e.addHook=function(X,x){typeof x=="function"&&Ye(P,X)&&mr(P[X],x)},e.removeHook=function(X,x){if(Ye(P,X)){if(x!==void 0){const O=uae(P[X],x);return O===-1?void 0:dae(P[X],O,1)[0]}return b1(P[X])}},e.removeHooks=function(X){Ye(P,X)&&(P[X]=[])},e.removeAllHooks=function(){P=$1()},e}var Oae=Cm();const Lae=["innerHTML"],Iae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},bm=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new tae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Oae.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,Lae)):(i.openBlock(),i.createElementBlock("div",Iae,i.toDisplayString(t.placeholder),1))}});function K(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function km(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const an=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Pae=an&&"documentMode"in document?document.documentMode:null,Xt=an&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Wo=an&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),oa=!(!an||!("InputEvent"in window)||Pae)&&"getTargetRanges"in new window.InputEvent("input"),Ri=an&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=an&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Vae=an&&/Android/.test(navigator.userAgent),wm=an&&/^(?=.*Chrome).*/i.test(navigator.userAgent),O1=an&&Vae&&wm,zi=an&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xt&&!wm;function Em(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const Fae=0,Rae=1,zae=2,xm=128,Uae=1,qae=2,Hae=3,jae=4,Wae=5,Zae=6,Za=Ri||Lr||zi?" ":"",mo=`
|
|
20
20
|
|
|
21
|
-
`,Kae=Wo?" ":Za,dt={bold:1,capitalize:1024,code:16,highlight:xm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Gae={directionless:1,unmergeable:2},L1={center:2,end:6,justify:4,left:1,right:3,start:5},Yae={[qae]:"center",[Zae]:"end",[jae]:"justify",[Uae]:"left",[Hae]:"right",[Wae]:"start"},Jae={normal:0,segmented:2,token:1},Xae={[Vae]:"normal",[zae]:"segmented",[Rae]:"token"},I1="$config";function Sm(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(U(a)&&Sm(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let hc=!1,yu=0;function Qae(t){yu=t.timeStamp}function zl(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&nl(t,n)!==void 0}function ele(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Ou(e,a,r,s,!1)}function tle(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return jn(e)&&n.isAttached()}function nle(t,e,n,o){for(let r=t;r&&!ice(r);r=ds(r)){const s=nl(r,e);if(s!==void 0){const a=We(s,n);if(a)return ke(a)||!Ue(r)?void 0:[r,a]}else if(r===o)return[o,Ah(n)]}}function Tm(t,e,n){hc=!0;const o=performance.now()-yu>100;try{Mt(t,()=>{const r=ne()||function(p){return p.getEditorState().read(()=>{const m=ne();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=nle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&X(v)&&jn(g)&&tle(r,g,v)&&ele(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Sh(E),S=E.parentNode;if(S!=null&&E!==c&&T===null&&!zl(E,S,t)){if(Wo){const N=(Ue(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}S.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];(zl(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"||zl(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&rt(r),Wo&&Bh(t)&&r.insertRawText(d))})}finally{hc=!1}}function Am(t){const e=t._observer;e!==null&&Tm(t,e.takeRecords(),e)}function Nm(t){(function(e){yu===0&&Wt(e).addEventListener("textInput",Qae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Tm(t,e,n)})}let ole=class{constructor(e,n){H(this,"key");H(this,"parse");H(this,"unparse");H(this,"isEqual");H(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||ale).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function rle(t,e){return new ole(t,e)}function Dm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Ul(t,e,n){let o;if(Ye(),typeof n=="function"){const s=t.getLatest(),a=Dm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Bm(r).updateFromKnown(e,o),r}function ile(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}=il(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 sle=class Mm{constructor(e,n,o=void 0,r=new Map,s=void 0){H(this,"node");H(this,"knownState");H(this,"unknownState");H(this,"sharedNodeState");H(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 P1(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 Mm(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=P1(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 Bm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new sle(e,$m(e));return e.__state=n,n}function $m(t){return t.__state?t.__state.sharedNodeState:kh(rl(),t.getType()).sharedNodeState}function P1(t){if(t)for(const e in t)return t}function ale(t){return t}function F1(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 V1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function R1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function z1(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&&F1(p,d,f)||f&&F1(p,f,d)||d&&V1(p,d,f)||f&&V1(p,f,d))}(c,u))}function U1(t,e){const n=t.mergeWithSibling(e),o=Le()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function q1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(z1(e,o)){o=U1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(z1(o,n)){o=U1(o,n);break}break}n.remove()}}else o.remove()}function ra(t){return H1(t.anchor),H1(t.focus),t}function H1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!U(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Zo,lt,Ui,Ka,gc,vc,Ko,en,yc,qi,He="",fn=null,pn="",On="",yr=!1,ia=!1;function sa(t,e){const n=Ko.get(t);if(e!==null){const o=kc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||lt._keyToDOMMap.delete(t),U(n)){const o=la(n,Ko);_c(o,0,o.length-1,null)}n!==void 0&&Lu(qi,Ui,Ka,n,"destroyed")}function _c(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&sa(s,o)}}function To(t,e){t.setProperty("text-align",e)}const lle="40px";function Om(t,e){const n=Zo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||lle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Lm(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function Cc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Re(o))return null;const s=o.getParentOrThrow();return Re(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function aa(t,e){const n=en.get(t);n===void 0&&K(60);const o=n.createDOM(Zo,lt);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,lt),X(n)?o.setAttribute("data-lexical-text","true"):ke(n)&&o.setAttribute("data-lexical-decorator","true"),U(n)){const r=n.__indent,s=n.__size;if(Cc(o,n),r!==0&&Om(o,r),s!==0){const l=s-1;bc(la(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Lm(o,a),n.isInline()||Im(null,n,o),ol(n)&&(He+=po,On+=po)}else{const r=n.getTextContent();if(ke(n)){const s=n.decorate(lt,Zo);s!==null&&Pm(t,s),o.contentEditable="false"}He+=r,On+=r}return e!==null&&e.insertChild(o),Lu(qi,Ui,Ka,n,"created"),o}function bc(t,e,n,o,r){const s=He;He="";let a=n;for(;a<=o;++a){aa(t[a],r);const l=en.get(t[a]);l!==null&&X(l)&&(fn===null&&(fn=l.getFormat()),pn===""&&(pn=l.getStyle()))}ol(e)&&(He+=po),r.element.__lexicalTextContent=He,He=s+He}function j1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return so(o)?"line-break":ke(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Im(t,e,n){const o=j1(t,Ko),r=j1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function cle(t,e,n){var o;fn=null,pn="",function(r,s,a){const l=He,c=r.__size,u=s.__size;He="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const h=kc(f),g=aa(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}sa(f,null)}const m=en.get(p);X(m)&&(fn===null&&(fn=m.getFormat()),pn===""&&(pn=m.getStyle()))}else{const f=la(r,Ko),p=la(s,en);if(f.length!==c&&K(227),p.length!==u&&K(228),c===0)u!==0&&bc(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;_c(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,S=0;for(;T<=_&&S<=k;){const A=h[T],D=g[S];if(A===D)E=ql(bi(D,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const L=b.has(A),I=w.has(D);if(L)if(I){const j=Yo(lt,D);j===E?E=ql(bi(D,v.element)):(v.withBefore(E).insertChild(j),bi(D,v.element)),T++,S++}else aa(D,v.withBefore(E)),S++;else E=ql(kc(A)),sa(A,v.element),T++}const M=en.get(D);M!==null&&X(M)&&(fn===null&&(fn=M.getFormat()),pn===""&&(pn=M.getStyle()))}const N=T>_,O=S>k;if(N&&!O){const A=g[k+1],D=A===void 0?null:lt.getElementByKey(A);bc(g,m,S,k,v.withBefore(D))}else O&&!N&&_c(h,T,_,v.element)})(s,f,p,c,u,a)}ol(s)&&(He+=po),d.__lexicalTextContent=He,He=l+He}(t,e,e.getDOMSlot(n)),o=e,fn==null||fn===o.__textFormat||ia||o.setTextFormat(fn),function(r){pn===""||pn===r.__textStyle||ia||r.setTextStyle(pn)}(e)}function la(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&K(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Ko.get(t);let o=en.get(t);n!==void 0&&o!==void 0||K(61);const r=yr||vc.has(t)||gc.has(t),s=Yo(lt,t);if(n===o&&!r){if(U(n)){const a=s.__lexicalTextContent;a!==void 0&&(He+=a,On+=a)}else{const a=n.getTextContent();On+=a,He+=a}return s}if(n!==o&&r&&Lu(qi,Ui,Ka,o,"updated"),o.updateDOM(n,s,Zo)){const a=aa(t,null);return e===null&&K(62),e.replaceChild(a,s),sa(t,null),a}if(U(n)&&U(o)){const a=o.__indent;(yr||a!==n.__indent)&&Om(s,a);const l=o.__format;if((yr||l!==n.__format)&&Lm(s,l),r&&(cle(n,o,s),Re(o)||o.isInline()||Im(n,o,s)),ol(o)&&(He+=po,On+=po),(yr||o.__dir!==n.__dir)&&(Cc(s,o),Re(o)&&!yr))for(const c of o.getChildren())U(c)&&Cc(Yo(lt,c.getKey()),c)}else{const a=o.getTextContent();if(ke(o)){const l=o.decorate(lt,Zo);l!==null&&Pm(t,l)}He+=a,On+=a}if(!ia&&Re(o)&&o.__cachedText!==On){const a=o.getWritable();a.__cachedText=On,o=a}return s}function Pm(t,e){let n=lt._pendingDecorators;const o=lt._decorators;if(n===null){if(o[t]===e)return;n=Th(lt)}n[t]=e}function ql(t){let e=t.nextSibling;return e!==null&&e===lt._blockCursorElement&&(e=e.nextSibling),e}function ule(t,e,n,o,r,s){He="",On="",yr=o===2,lt=n,Zo=n._config,Ui=n._nodes,Ka=lt._listeners.mutation,gc=r,vc=s,Ko=t._nodeMap,en=e._nodeMap,ia=e._readOnly,yc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),lt=void 0,Ui=void 0,gc=void 0,vc=void 0,Ko=void 0,en=void 0,Zo=void 0,yc=void 0,qi=void 0,a}function kc(t){const e=yc.get(t);return e===void 0&&K(75,t),e}function ue(t){return{type:t}}const Fm=ue("SELECTION_CHANGE_COMMAND"),dle=ue("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Vm=ue("CLICK_COMMAND"),Vo=ue("DELETE_CHARACTER_COMMAND"),wr=ue("INSERT_LINE_BREAK_COMMAND"),Hi=ue("INSERT_PARAGRAPH_COMMAND"),Er=ue("CONTROLLED_TEXT_INSERTION_COMMAND"),_u=ue("PASTE_COMMAND"),wc=ue("REMOVE_TEXT_COMMAND"),ji=ue("DELETE_WORD_COMMAND"),Wi=ue("DELETE_LINE_COMMAND"),Rt=ue("FORMAT_TEXT_COMMAND"),Cu=ue("UNDO_COMMAND"),bu=ue("REDO_COMMAND"),fle=ue("KEYDOWN_COMMAND"),Rm=ue("KEY_ARROW_RIGHT_COMMAND"),ple=ue("MOVE_TO_END"),zm=ue("KEY_ARROW_LEFT_COMMAND"),mle=ue("MOVE_TO_START"),Um=ue("KEY_ARROW_UP_COMMAND"),qm=ue("KEY_ARROW_DOWN_COMMAND"),ca=ue("KEY_ENTER_COMMAND"),Hm=ue("KEY_SPACE_COMMAND"),jm=ue("KEY_BACKSPACE_COMMAND"),Wm=ue("KEY_ESCAPE_COMMAND"),Zm=ue("KEY_DELETE_COMMAND"),Km=ue("KEY_TAB_COMMAND"),hle=ue("INSERT_TAB_COMMAND"),gle=ue("INDENT_CONTENT_COMMAND"),W1=ue("OUTDENT_CONTENT_COMMAND"),Gm=ue("DROP_COMMAND"),vle=ue("FORMAT_ELEMENT_COMMAND"),Ym=ue("DRAGSTART_COMMAND"),Jm=ue("DRAGOVER_COMMAND"),yle=ue("DRAGEND_COMMAND"),Ga=ue("COPY_COMMAND"),ku=ue("CUT_COMMAND"),Ec=ue("SELECT_ALL_COMMAND"),_le=ue("CLEAR_EDITOR_COMMAND"),Cle=ue("CLEAR_HISTORY_COMMAND"),Bs=ue("CAN_REDO_COMMAND"),$s=ue("CAN_UNDO_COMMAND"),ble=ue("FOCUS_COMMAND"),kle=ue("BLUR_COMMAND"),wle=ue("KEY_MODIFIER_COMMAND"),Dn=Object.freeze({}),xc=[["keydown",function(t,e){if(Si=t.timeStamp,Xm=t.key,!e.isComposing()&&!se(e,fle,t)&&t.key!=null){if(Hl&&kf(t))return Mt(e,()=>{Os(e,jl)}),Hl=!1,void(jl="");if(function(n){return Te(n,"ArrowRight",{shiftKey:"any"})}(t))se(e,Rm,t);else if(function(n){return Te(n,"ArrowRight",Bn)}(t))se(e,ple,t);else if(function(n){return Te(n,"ArrowLeft",{shiftKey:"any"})}(t))se(e,zm,t);else if(function(n){return Te(n,"ArrowLeft",Bn)}(t))se(e,mle,t);else if(function(n){return Te(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))se(e,Um,t);else if(function(n){return Te(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))se(e,qm,t);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,se(e,ca,t);else if(function(n){return n.key===" "}(t))se(e,Hm,t);else if(function(n){return Xt&&Te(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,se(e,wr,!0);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,se(e,ca,t);else if(function(n){return Te(n,"Backspace",{shiftKey:"any"})||Xt&&Te(n,"h",{ctrlKey:!0})}(t))kf(t)?se(e,jm,t):(t.preventDefault(),se(e,Vo,!0));else if(function(n){return n.key==="Escape"}(t))se(e,Wm,t);else if(function(n){return Te(n,"Delete",{})||Xt&&Te(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?se(e,Zm,t):(t.preventDefault(),se(e,Vo,!1));else if(function(n){return Te(n,"Backspace",bf)}(t))t.preventDefault(),se(e,ji,!0);else if(function(n){return Te(n,"Delete",bf)}(t))t.preventDefault(),se(e,ji,!1);else if(function(n){return Xt&&Te(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),se(e,Wi,!0);else if(function(n){return Xt&&(Te(n,"Delete",{metaKey:!0})||Te(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),se(e,Wi,!1);else if(function(n){return Te(n,"b",Bn)}(t))t.preventDefault(),se(e,Rt,"bold");else if(function(n){return Te(n,"u",Bn)}(t))t.preventDefault(),se(e,Rt,"underline");else if(function(n){return Te(n,"i",Bn)}(t))t.preventDefault(),se(e,Rt,"italic");else if(function(n){return Te(n,"Tab",{shiftKey:"any"})}(t))se(e,Km,t);else if(function(n){return Te(n,"z",Bn)}(t))t.preventDefault(),se(e,Cu,void 0);else if(function(n){return Xt?Te(n,"z",{metaKey:!0,shiftKey:!0}):Te(n,"y",{ctrlKey:!0})||Te(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),se(e,bu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?wf(t)&&(t.preventDefault(),se(e,Ec,t)):function(o){return Te(o,"c",Bn)}(t)?(t.preventDefault(),se(e,Ga,t)):function(o){return Te(o,"x",Bn)}(t)?(t.preventDefault(),se(e,ku,t)):wf(t)&&(t.preventDefault(),se(e,Ec,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&se(e,wle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Mt(e,()=>{yf(n)||(Ac=!0)})}],["compositionstart",function(t,e){Mt(e,()=>{const n=ne();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();et(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&se(e,Er,Kae)}})}],["compositionend",function(t,e){Wo?hi=!0:Lr||!Ri&&!zi?Mt(e,()=>{Os(e,t.data)}):(Hl=!0,jl=t.data)}],["input",function(t,e){t.stopPropagation(),Mt(e,()=>{if(Ue(t.target)&&yf(t.target))return;const n=ne(),o=t.data,r=oh(t);if(o!=null&&Z(n)&&th(n,r,o,t.timeStamp,!1)){hi&&(Os(e,o),hi=!1);const s=n.anchor.getNode(),a=on(Wt(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;oa&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Mh(a.anchorNode)||se(e,Er,o);const d=o.length;Wo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Ri||Lr||zi||!e.isComposing()||(Si=0,et(null))}else $u(!1,e,o!==null?o:void 0),hi&&(Os(e,o||void 0),hi=!1);(function(){Ye();const s=Le();Am(s)})()},{event:t}),_r=null}],["click",function(t,e){Mt(e,()=>{const n=ne(),o=on(Wt(e)),r=jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Re(a)&&Ie().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>U(c)&&!c.isInline());U(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(Ue(s)||jn(s))&&rt(Eu(r,o,e,t))}}se(e,Vm,t)})}],["cut",Dn],["copy",Dn],["dragstart",Dn],["dragover",Dn],["dragend",Dn],["paste",Dn],["focus",Dn],["blur",Dn],["drop",Dn]];oa&&xc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=oh(n);r==="deleteCompositionText"||Wo&&Bh(o)||r!=="insertCompositionText"&&Mt(o,()=>{const a=ne();if(r==="deleteContentBackward"){if(a===null){const m=jr();if(!Z(m))return;rt(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,Xm==="MediaLast"&&l<Si+30&&o.isComposing()&&m){if(et(null),Si=0,setTimeout(()=>{Mt(o,()=>{et(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||K(142),nh(a,h)}}else{et(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=O1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!ke($c(a.anchor,!0))),!v){se(o,Vo,!0);const _=ne();O1&&Z(_)&&_.isCollapsed()&&($o=_,setTimeout(()=>$o=null))}}return}}var l;if(!Z(a))return;const c=n.data;_r!==null&&$u(!1,o,_r),a.dirty&&_r===null||!a.isCollapsed()||Re(a.anchor.getNode())||s===null||a.applyDOMRange(s),_r=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":se(o,Er,n);break;case"insertFromComposition":et(null),se(o,Er,n);break;case"insertLineBreak":et(null),se(o,wr,!1);break;case"insertParagraph":et(null),Ti&&!Lr?(Ti=!1,se(o,wr,!1)):se(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":se(o,_u,n);break;case"deleteByComposition":(function(m,h){return m!==h||U(m)||U(h)||!Ro(m)||!Ro(h)})(f,p)&&se(o,wc,n);break;case"deleteByDrag":case"deleteByCut":se(o,wc,n);break;case"deleteContent":se(o,Vo,!1);break;case"deleteWordBackward":se(o,ji,!0);break;case"deleteWordForward":se(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":se(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":se(o,Wi,!1);break;case"formatStrikeThrough":se(o,Rt,"strikethrough");break;case"formatBold":se(o,Rt,"bold");break;case"formatItalic":se(o,Rt,"italic");break;case"formatUnderline":se(o,Rt,"underline");break;case"historyUndo":se(o,Cu,void 0);break;case"historyRedo":se(o,bu,void 0)}else{if(c===`
|
|
22
|
-
`)n.preventDefault(),se(o,wr,!1);else if(c===
|
|
23
|
-
`){const o=ne();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void se(t,ca,null)}}}$u(!0,t,e)}function rh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function ih(t){const e=nce(t.target);if(e===null)return;const n=wh(e.anchorNode);if(n===null)return;Ac&&(Ac=!1,
|
|
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&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}return!1}(e)?null:{conversion:Dle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Dle(t){return{node:nn()}}function nn(){return ln(new rs)}function
|
|
21
|
+
`,Kae=Wo?" ":Za,pt={bold:1,capitalize:1024,code:16,highlight:xm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Gae={directionless:1,unmergeable:2},L1={center:2,end:6,justify:4,left:1,right:3,start:5},Yae={[qae]:"center",[Zae]:"end",[jae]:"justify",[Uae]:"left",[Hae]:"right",[Wae]:"start"},Jae={normal:0,segmented:2,token:1},Xae={[Fae]:"normal",[zae]:"segmented",[Rae]:"token"},I1="$config";function Sm(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(U(a)&&Sm(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let hc=!1,yu=0;function Qae(t){yu=t.timeStamp}function zl(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&nl(t,n)!==void 0}function ele(t,e,n){const o=on(Wt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Ou(e,a,r,s,!1)}function tle(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Zn(e)&&n.isAttached()}function nle(t,e,n,o){for(let r=t;r&&!ice(r);r=ds(r)){const s=nl(r,e);if(s!==void 0){const a=Ke(s,n);if(a)return ke(a)||!He(r)?void 0:[r,a]}else if(r===o)return[o,Ah(n)]}}function Tm(t,e,n){hc=!0;const o=performance.now()-yu>100;try{Bt(t,()=>{const r=ne()||function(p){return p.getEditorState().read(()=>{const m=ne();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=nle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&Q(v)&&Zn(g)&&tle(r,g,v)&&ele(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let b=0;b<_.length;b++){const E=_[b],T=Sh(E),S=E.parentNode;if(S!=null&&E!==c&&T===null&&!zl(E,S,t)){if(Wo){const N=(He(E)?E.innerText:null)||E.nodeValue;N&&(d+=N)}S.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];(zl(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"||zl(C,g,t)||v.removeChild(C)}}n.takeRecords()}r!==null&&(u&&it(r),Wo&&Mh(t)&&r.insertRawText(d))})}finally{hc=!1}}function Am(t){const e=t._observer;e!==null&&Tm(t,e.takeRecords(),e)}function Nm(t){(function(e){yu===0&&Wt(e).addEventListener("textInput",Qae,!0)})(t),t._observer=new MutationObserver((e,n)=>{Tm(t,e,n)})}let ole=class{constructor(e,n){H(this,"key");H(this,"parse");H(this,"unparse");H(this,"isEqual");H(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||ale).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function rle(t,e){return new ole(t,e)}function Dm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Ul(t,e,n){let o;if(Je(),typeof n=="function"){const s=t.getLatest(),a=Dm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Mm(r).updateFromKnown(e,o),r}function ile(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}=il(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 sle=class Bm{constructor(e,n,o=void 0,r=new Map,s=void 0){H(this,"node");H(this,"knownState");H(this,"unknownState");H(this,"sharedNodeState");H(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 P1(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=P1(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 Mm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new sle(e,$m(e));return e.__state=n,n}function $m(t){return t.__state?t.__state.sharedNodeState:kh(rl(),t.getType()).sharedNodeState}function P1(t){if(t)for(const e in t)return t}function ale(t){return t}function V1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function F1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function R1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function z1(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&&V1(p,d,f)||f&&V1(p,f,d)||d&&F1(p,d,f)||f&&F1(p,f,d))}(c,u))}function U1(t,e){const n=t.mergeWithSibling(e),o=Ie()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function q1(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(z1(e,o)){o=U1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(z1(o,n)){o=U1(o,n);break}break}n.remove()}}else o.remove()}function ra(t){return H1(t.anchor),H1(t.focus),t}function H1(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(!U(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let Zo,lt,Ui,Ka,gc,vc,Ko,en,yc,qi,We="",pn=null,mn="",In="",yr=!1,ia=!1;function sa(t,e){const n=Ko.get(t);if(e!==null){const o=kc(t);o.parentNode===e&&e.removeChild(o)}if(en.has(t)||lt._keyToDOMMap.delete(t),U(n)){const o=la(n,Ko);_c(o,0,o.length-1,null)}n!==void 0&&Lu(qi,Ui,Ka,n,"destroyed")}function _c(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&sa(s,o)}}function To(t,e){t.setProperty("text-align",e)}const lle="40px";function Om(t,e){const n=Zo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||lle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Lm(t,e){const n=t.style;e===0?To(n,""):e===1?To(n,"left"):e===2?To(n,"center"):e===3?To(n,"right"):e===4?To(n,"justify"):e===5?To(n,"start"):e===6&&To(n,"end")}function Cc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Ue(o))return null;const s=o.getParentOrThrow();return Ue(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function aa(t,e){const n=en.get(t);n===void 0&&K(60);const o=n.createDOM(Zo,lt);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,lt),Q(n)?o.setAttribute("data-lexical-text","true"):ke(n)&&o.setAttribute("data-lexical-decorator","true"),U(n)){const r=n.__indent,s=n.__size;if(Cc(o,n),r!==0&&Om(o,r),s!==0){const l=s-1;bc(la(n,en),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Lm(o,a),n.isInline()||Im(null,n,o),ol(n)&&(We+=mo,In+=mo)}else{const r=n.getTextContent();if(ke(n)){const s=n.decorate(lt,Zo);s!==null&&Pm(t,s),o.contentEditable="false"}We+=r,In+=r}return e!==null&&e.insertChild(o),Lu(qi,Ui,Ka,n,"created"),o}function bc(t,e,n,o,r){const s=We;We="";let a=n;for(;a<=o;++a){aa(t[a],r);const l=en.get(t[a]);l!==null&&Q(l)&&(pn===null&&(pn=l.getFormat()),mn===""&&(mn=l.getStyle()))}ol(e)&&(We+=mo),r.element.__lexicalTextContent=We,We=s+We}function j1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return ao(o)?"line-break":ke(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Im(t,e,n){const o=j1(t,Ko),r=j1(e,en);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function cle(t,e,n){var o;pn=null,mn="",function(r,s,a){const l=We,c=r.__size,u=s.__size;We="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const h=kc(f),g=aa(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}sa(f,null)}const m=en.get(p);Q(m)&&(pn===null&&(pn=m.getFormat()),mn===""&&(mn=m.getStyle()))}else{const f=la(r,Ko),p=la(s,en);if(f.length!==c&&K(227),p.length!==u&&K(228),c===0)u!==0&&bc(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;_c(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,S=0;for(;T<=_&&S<=k;){const A=h[T],D=g[S];if(A===D)E=ql(bi(D,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),b===void 0&&(b=new Set(g));const I=b.has(A),V=w.has(D);if(I)if(V){const j=Yo(lt,D);j===E?E=ql(bi(D,v.element)):(v.withBefore(E).insertChild(j),bi(D,v.element)),T++,S++}else aa(D,v.withBefore(E)),S++;else E=ql(kc(A)),sa(A,v.element),T++}const B=en.get(D);B!==null&&Q(B)&&(pn===null&&(pn=B.getFormat()),mn===""&&(mn=B.getStyle()))}const N=T>_,L=S>k;if(N&&!L){const A=g[k+1],D=A===void 0?null:lt.getElementByKey(A);bc(g,m,S,k,v.withBefore(D))}else L&&!N&&_c(h,T,_,v.element)})(s,f,p,c,u,a)}ol(s)&&(We+=mo),d.__lexicalTextContent=We,We=l+We}(t,e,e.getDOMSlot(n)),o=e,pn==null||pn===o.__textFormat||ia||o.setTextFormat(pn),function(r){mn===""||mn===r.__textStyle||ia||r.setTextStyle(mn)}(e)}function la(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&K(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Ko.get(t);let o=en.get(t);n!==void 0&&o!==void 0||K(61);const r=yr||vc.has(t)||gc.has(t),s=Yo(lt,t);if(n===o&&!r){if(U(n)){const a=s.__lexicalTextContent;a!==void 0&&(We+=a,In+=a)}else{const a=n.getTextContent();In+=a,We+=a}return s}if(n!==o&&r&&Lu(qi,Ui,Ka,o,"updated"),o.updateDOM(n,s,Zo)){const a=aa(t,null);return e===null&&K(62),e.replaceChild(a,s),sa(t,null),a}if(U(n)&&U(o)){const a=o.__indent;(yr||a!==n.__indent)&&Om(s,a);const l=o.__format;if((yr||l!==n.__format)&&Lm(s,l),r&&(cle(n,o,s),Ue(o)||o.isInline()||Im(n,o,s)),ol(o)&&(We+=mo,In+=mo),(yr||o.__dir!==n.__dir)&&(Cc(s,o),Ue(o)&&!yr))for(const c of o.getChildren())U(c)&&Cc(Yo(lt,c.getKey()),c)}else{const a=o.getTextContent();if(ke(o)){const l=o.decorate(lt,Zo);l!==null&&Pm(t,l)}We+=a,In+=a}if(!ia&&Ue(o)&&o.__cachedText!==In){const a=o.getWritable();a.__cachedText=In,o=a}return s}function Pm(t,e){let n=lt._pendingDecorators;const o=lt._decorators;if(n===null){if(o[t]===e)return;n=Th(lt)}n[t]=e}function ql(t){let e=t.nextSibling;return e!==null&&e===lt._blockCursorElement&&(e=e.nextSibling),e}function ule(t,e,n,o,r,s){We="",In="",yr=o===2,lt=n,Zo=n._config,Ui=n._nodes,Ka=lt._listeners.mutation,gc=r,vc=s,Ko=t._nodeMap,en=e._nodeMap,ia=e._readOnly,yc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),lt=void 0,Ui=void 0,gc=void 0,vc=void 0,Ko=void 0,en=void 0,Zo=void 0,yc=void 0,qi=void 0,a}function kc(t){const e=yc.get(t);return e===void 0&&K(75,t),e}function ce(t){return{type:t}}const Vm=ce("SELECTION_CHANGE_COMMAND"),dle=ce("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Fm=ce("CLICK_COMMAND"),Fo=ce("DELETE_CHARACTER_COMMAND"),wr=ce("INSERT_LINE_BREAK_COMMAND"),Hi=ce("INSERT_PARAGRAPH_COMMAND"),Er=ce("CONTROLLED_TEXT_INSERTION_COMMAND"),_u=ce("PASTE_COMMAND"),wc=ce("REMOVE_TEXT_COMMAND"),ji=ce("DELETE_WORD_COMMAND"),Wi=ce("DELETE_LINE_COMMAND"),Rt=ce("FORMAT_TEXT_COMMAND"),Cu=ce("UNDO_COMMAND"),bu=ce("REDO_COMMAND"),fle=ce("KEYDOWN_COMMAND"),Rm=ce("KEY_ARROW_RIGHT_COMMAND"),ple=ce("MOVE_TO_END"),zm=ce("KEY_ARROW_LEFT_COMMAND"),mle=ce("MOVE_TO_START"),Um=ce("KEY_ARROW_UP_COMMAND"),qm=ce("KEY_ARROW_DOWN_COMMAND"),ca=ce("KEY_ENTER_COMMAND"),Hm=ce("KEY_SPACE_COMMAND"),jm=ce("KEY_BACKSPACE_COMMAND"),Wm=ce("KEY_ESCAPE_COMMAND"),Zm=ce("KEY_DELETE_COMMAND"),Km=ce("KEY_TAB_COMMAND"),hle=ce("INSERT_TAB_COMMAND"),gle=ce("INDENT_CONTENT_COMMAND"),W1=ce("OUTDENT_CONTENT_COMMAND"),Gm=ce("DROP_COMMAND"),vle=ce("FORMAT_ELEMENT_COMMAND"),Ym=ce("DRAGSTART_COMMAND"),Jm=ce("DRAGOVER_COMMAND"),yle=ce("DRAGEND_COMMAND"),Ga=ce("COPY_COMMAND"),ku=ce("CUT_COMMAND"),Ec=ce("SELECT_ALL_COMMAND"),_le=ce("CLEAR_EDITOR_COMMAND"),Cle=ce("CLEAR_HISTORY_COMMAND"),Ms=ce("CAN_REDO_COMMAND"),$s=ce("CAN_UNDO_COMMAND"),ble=ce("FOCUS_COMMAND"),kle=ce("BLUR_COMMAND"),wle=ce("KEY_MODIFIER_COMMAND"),Mn=Object.freeze({}),xc=[["keydown",function(t,e){if(Si=t.timeStamp,Xm=t.key,!e.isComposing()&&!se(e,fle,t)&&t.key!=null){if(Hl&&kf(t))return Bt(e,()=>{Os(e,jl)}),Hl=!1,void(jl="");if(function(n){return Te(n,"ArrowRight",{shiftKey:"any"})}(t))se(e,Rm,t);else if(function(n){return Te(n,"ArrowRight",On)}(t))se(e,ple,t);else if(function(n){return Te(n,"ArrowLeft",{shiftKey:"any"})}(t))se(e,zm,t);else if(function(n){return Te(n,"ArrowLeft",On)}(t))se(e,mle,t);else if(function(n){return Te(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))se(e,Um,t);else if(function(n){return Te(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))se(e,qm,t);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,se(e,ca,t);else if(function(n){return n.key===" "}(t))se(e,Hm,t);else if(function(n){return Xt&&Te(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,se(e,wr,!0);else if(function(n){return Te(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,se(e,ca,t);else if(function(n){return Te(n,"Backspace",{shiftKey:"any"})||Xt&&Te(n,"h",{ctrlKey:!0})}(t))kf(t)?se(e,jm,t):(t.preventDefault(),se(e,Fo,!0));else if(function(n){return n.key==="Escape"}(t))se(e,Wm,t);else if(function(n){return Te(n,"Delete",{})||Xt&&Te(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?se(e,Zm,t):(t.preventDefault(),se(e,Fo,!1));else if(function(n){return Te(n,"Backspace",bf)}(t))t.preventDefault(),se(e,ji,!0);else if(function(n){return Te(n,"Delete",bf)}(t))t.preventDefault(),se(e,ji,!1);else if(function(n){return Xt&&Te(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),se(e,Wi,!0);else if(function(n){return Xt&&(Te(n,"Delete",{metaKey:!0})||Te(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),se(e,Wi,!1);else if(function(n){return Te(n,"b",On)}(t))t.preventDefault(),se(e,Rt,"bold");else if(function(n){return Te(n,"u",On)}(t))t.preventDefault(),se(e,Rt,"underline");else if(function(n){return Te(n,"i",On)}(t))t.preventDefault(),se(e,Rt,"italic");else if(function(n){return Te(n,"Tab",{shiftKey:"any"})}(t))se(e,Km,t);else if(function(n){return Te(n,"z",On)}(t))t.preventDefault(),se(e,Cu,void 0);else if(function(n){return Xt?Te(n,"z",{metaKey:!0,shiftKey:!0}):Te(n,"y",{ctrlKey:!0})||Te(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),se(e,bu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?wf(t)&&(t.preventDefault(),se(e,Ec,t)):function(o){return Te(o,"c",On)}(t)?(t.preventDefault(),se(e,Ga,t)):function(o){return Te(o,"x",On)}(t)?(t.preventDefault(),se(e,ku,t)):wf(t)&&(t.preventDefault(),se(e,Ec,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&se(e,wle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Bt(e,()=>{yf(n)||(Ac=!0)})}],["compositionstart",function(t,e){Bt(e,()=>{const n=ne();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();tt(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||Q(r)&&r.getStyle()!==n.style)&&se(e,Er,Kae)}})}],["compositionend",function(t,e){Wo?hi=!0:Lr||!Ri&&!zi?Bt(e,()=>{Os(e,t.data)}):(Hl=!0,jl=t.data)}],["input",function(t,e){t.stopPropagation(),Bt(e,()=>{if(He(t.target)&&yf(t.target))return;const n=ne(),o=t.data,r=oh(t);if(o!=null&&Z(n)&&th(n,r,o,t.timeStamp,!1)){hi&&(Os(e,o),hi=!1);const s=n.anchor.getNode(),a=on(Wt(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;oa&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Bh(a.anchorNode)||se(e,Er,o);const d=o.length;Wo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Ri||Lr||zi||!e.isComposing()||(Si=0,tt(null))}else $u(!1,e,o!==null?o:void 0),hi&&(Os(e,o||void 0),hi=!1);(function(){Je();const s=Ie();Am(s)})()},{event:t}),_r=null}],["click",function(t,e){Bt(e,()=>{const n=ne(),o=on(Wt(e)),r=jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Ue(a)&&Pe().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=qt(a,c=>U(c)&&!c.isInline());U(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(He(s)||Zn(s))&&it(Eu(r,o,e,t))}}se(e,Fm,t)})}],["cut",Mn],["copy",Mn],["dragstart",Mn],["dragover",Mn],["dragend",Mn],["paste",Mn],["focus",Mn],["blur",Mn],["drop",Mn]];oa&&xc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=oh(n);r==="deleteCompositionText"||Wo&&Mh(o)||r!=="insertCompositionText"&&Bt(o,()=>{const a=ne();if(r==="deleteContentBackward"){if(a===null){const m=jr();if(!Z(m))return;it(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,Xm==="MediaLast"&&l<Si+30&&o.isComposing()&&m){if(tt(null),Si=0,setTimeout(()=>{Bt(o,()=>{tt(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),Q(h)||K(142),nh(a,h)}}else{tt(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=O1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!ke($c(a.anchor,!0))),!v){se(o,Fo,!0);const _=ne();O1&&Z(_)&&_.isCollapsed()&&($o=_,setTimeout(()=>$o=null))}}return}}var l;if(!Z(a))return;const c=n.data;_r!==null&&$u(!1,o,_r),a.dirty&&_r===null||!a.isCollapsed()||Ue(a.anchor.getNode())||s===null||a.applyDOMRange(s),_r=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":se(o,Er,n);break;case"insertFromComposition":tt(null),se(o,Er,n);break;case"insertLineBreak":tt(null),se(o,wr,!1);break;case"insertParagraph":tt(null),Ti&&!Lr?(Ti=!1,se(o,wr,!1)):se(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":se(o,_u,n);break;case"deleteByComposition":(function(m,h){return m!==h||U(m)||U(h)||!Ro(m)||!Ro(h)})(f,p)&&se(o,wc,n);break;case"deleteByDrag":case"deleteByCut":se(o,wc,n);break;case"deleteContent":se(o,Fo,!1);break;case"deleteWordBackward":se(o,ji,!0);break;case"deleteWordForward":se(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":se(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":se(o,Wi,!1);break;case"formatStrikeThrough":se(o,Rt,"strikethrough");break;case"formatBold":se(o,Rt,"bold");break;case"formatItalic":se(o,Rt,"italic");break;case"formatUnderline":se(o,Rt,"underline");break;case"historyUndo":se(o,Cu,void 0);break;case"historyRedo":se(o,bu,void 0)}else{if(c===`
|
|
22
|
+
`)n.preventDefault(),se(o,wr,!1);else if(c===mo)n.preventDefault(),se(o,Hi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&th(a,s,c,n.timeStamp,!0)?(n.preventDefault(),se(o,Er,c)):_r=c;Qm=n.timeStamp}})}(t,e)]);let Si=0,Xm=null,Qm=0,_r=null;const Sc=new WeakMap,ua=new WeakMap;let Tc=!1,Ac=!1,Ti=!1,hi=!1,Hl=!1,jl="",$o=null,eh=[0,"",0,"root",0];function th(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=Ie(),u=on(Wt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!Q(l)||(!r&&(!oa||Qm<o+50)||l.isDirty()&&m<2||Nh(n))&&s.offset!==a.offset&&!l.isComposing()||Ln(l)||l.isDirty()&&m>1||(r||!oa)&&p!==null&&!l.isComposing()&&d!==Ir(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),v=Ro(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const k=_.getPreviousSibling();return(Q(k)||U(k)&&k.isInline())&&!k.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function Z1(t,e){return Zn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function K1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;Tc&&(Tc=!1,Z1(o,r)&&Z1(s,a)&&!$o)||Bt(e,()=>{if(!n)return void it(null);if(!us(e,o,s))return;let l=ne();if($o&&Z(l)&&l.isCollapsed()){const c=l.anchor,u=$o.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=$o.clone(),it(l))}if($o=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=Wt(e).event,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=eh,C=Pe(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)Hs(l,p,m);else if(c.type==="text")Q(u)||K(141),nh(l,u);else if(c.type==="element"&&!v){U(u)||K(259);const _=c.getNode();_.isEmpty()?function(k,w){const b=w.getTextFormat(),E=w.getTextStyle();Hs(k,b,E)}(l,_):Hs(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}}se(e,Vm,void 0)})}function Hs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function nh(t,e){Hs(t,e.getFormat(),e.getStyle())}function oh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Os(t,e){const n=t._compositionKey;if(tt(null),n!==null&&e!=null){if(e===""){const o=Ke(n),r=Ir(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&Q(o)&&Ou(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
23
|
+
`){const o=ne();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void se(t,ca,null)}}}$u(!0,t,e)}function rh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function ih(t){const e=nce(t.target);if(e===null)return;const n=wh(e.anchorNode);if(n===null)return;Ac&&(Ac=!1,Bt(n,()=>{const c=jr(),u=e.anchorNode;(He(u)||Zn(u))&&it(Eu(c,e,n,t))}));const o=Mu(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&K1(e,l,!1),K1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function G1(t){t._lexicalHandled=!0}function Y1(t){return t._lexicalHandled===!0}const J1=()=>{};function Ele(t){const e=Sc.get(t);if(e===void 0)return void J1();const n=ua.get(e);if(n===void 0)return void J1();const o=n-1;o>=0||K(164),Sc.delete(t),ua.set(e,o),o===0&&e.removeEventListener("selectionchange",ih);const r=tl(t);Bu(r)?(function(a){if(a._parentEditor!==null){const l=Mu(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&K(198);const s=rh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Nc(t,e,n){Je();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=ne();if(!Z(c)||!U(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Oc(f,l)&&u.set(l.__key,0,"element"),Oc(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&&(ma(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(ma(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Dt(s)&&e&&t.isSelected()&&t.selectPrevious();if(Z(s)&&e&&!a){const l=t.getIndexWithinParent();zo(t),pa(s,r,l,-1)}else zo(t);n||mt(r)||r.canBeEmpty()||!r.isEmpty()||Nc(r,e),e&&s&&Ue(r)&&r.isEmpty()&&r.selectEnd()}const sh=Symbol.for("ephemeral");function da(t){return t[sh]||!1}class tn{constructor(e){H(this,"__type");H(this,"__key");H(this,"__parent");H(this,"__prev");H(this,"__next");H(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}),Gle(this,e)}static getType(){const{ownNodeType:e}=il(this);return e===void 0&&K(64,this.name),e}static clone(e){K(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){K(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=Ke(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||ne();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(ke(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:Ke(e)}getParentOrThrow(){const e=this.getParent();return e===null&&K(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(mt(n))return U(e)||e===this&&ke(e)||K(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&K(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:Ke(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:Ke(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=U(this)?this:this.getParent(),o=U(e)?e:e.getParent(),r=n&&o?Ws(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Ws(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Vh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&K(279),!1)))}isParentOf(e){const n=Ws(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=U(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&K(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Ie()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(da(this))return this;const e=Ke(this.__key);return e===null&&K(113),e}getWritable(){if(da(this))return this;Je();const e=Co(),n=Ie(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ne();if(l!==null&&l.setCachedNodes(null),a.has(r))return ga(s),s;const c=Lh(s);return a.add(r),ga(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){K(70)}updateDOM(e,n,o){K(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){K(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of $m(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Mm(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){Nc(this,!0,e)}replace(e,n){Je();let o=ne();o!==null&&(o=o.clone()),Jl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;zo(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;if(Nc(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&&(U(this)&&U(l)||K(139),this.getChildren().forEach(g=>{l.append(g)})),Z(o)){it(o);const g=o.anchor,y=o.focus;g.key===s&&tf(g,l),y.key===s&&tf(y,l)}return ro()===s&&tt(a),l}insertAfter(e,n=!0){Je(),Jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=ne();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(zo(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();pa(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){Je(),Jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;zo(r);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=ne();return n&&Z(d)&&pa(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Me()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Je();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(U(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){Je();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(U(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()}}H(tn,"importDOM");const fa="historic",xle="history-push",Ai="history-merge",Sle="paste",ah="collaboration",Tle="skip-scroll-into-view",Ale="skip-dom-selection",Nle="skip-selection-focus";class rs extends tn{static getType(){return"linebreak"}static clone(e){return new rs(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&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&va(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Ls(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Ls(s))return!0}return!1}(e)?null:{conversion:Dle,priority:0}}}static importJSON(e){return nn().updateFromJSON(e)}}function Dle(t){return{node:nn()}}function nn(){return ln(new rs)}function ao(t){return t instanceof rs}function Ls(t){return Zn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Wl(t,e){return 16&e?"code":e&xm?"mark":32&e?"sub":64&e?"sup":null}function Zl(t,e){return 1&e?"strong":2&e?"em":"span"}function lh(t,e,n,o,r){const s=o.classList;let a=Sr(r,"base");a!==void 0&&s.add(...a),a=Sr(r,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in pt){const d=pt[u];if(a=Sr(r,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function ch(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Za:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Wo){const[l,c,u]=function(d,f){const p=d.length,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 X1(t,e,n,o,r,s){ch(r,t,e);const a=s.theme.text;a!==void 0&&lh(0,0,o,t,a)}function Is(t,e){const n=document.createElement(e);return n.appendChild(t),n}class _o extends tn{constructor(n="",o){super(o);H(this,"__text");H(this,"__format");H(this,"__style");H(this,"__mode");H(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 _o(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 Xae[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===ro()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=pt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ha(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Wl(0,r),a=Zl(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)),X1(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=Wl(0,a),u=Wl(0,l),d=Zl(0,a),f=Zl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&K(48);const C=document.createElement(f);return X1(C,this,0,l,s,r),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&K(49)),ch(s,p,this);const m=r.theme.text;m!==void 0&&a!==l&&lh(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:Ole,priority:0}),b:()=>({conversion:Mle,priority:0}),code:()=>({conversion:$n,priority:0}),em:()=>({conversion:$n,priority:0}),i:()=>({conversion:$n,priority:0}),mark:()=>({conversion:$n,priority:0}),s:()=>({conversion:$n,priority:0}),span:()=>({conversion:Ble,priority:0}),strong:()=>({conversion:$n,priority:0}),sub:()=>({conversion:$n,priority:0}),sup:()=>({conversion:$n,priority:0}),u:()=>({conversion:$n,priority:0})}}static importJSON(n){return Re().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 He(o)||K(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Is(o,"b")),this.hasFormat("italic")&&(o=Is(o,"i")),this.hasFormat("strikethrough")&&(o=Is(o,"s")),this.hasFormat("underline")&&(o=Is(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"?pt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Gae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ha(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=Jae[n];if(this.__mode===o)return this;const r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Je();let r=n,s=o;const a=ne(),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 fh(c,r,c,s,"text","text");{const u=ro();u!==a.anchor.key&&u!==a.focus.key||tt(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=ne();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){Je();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=ro(),l=r.length;n.sort((S,N)=>S-N),n.push(l);const c=[],u=n.length;for(let S=0,N=0;S<l&&N<=u;N++){const L=n[N];L>S&&(c.push(r.slice(S,L)),S=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=ne();if(Z(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===s&&(v=S),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Re(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=R1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const N=Re(c[S]);N.__format=h,N.__style=g,N.__detail=y,N.__state=R1(o,N);const L=N.__key;a===s&&tt(L),w.push(N)}const b=v?v.offset:null,E=_?_.offset:null;let T=0;for(const S of w){if(!v&&!_)break;const N=T+S.getTextContentSize();if(v!==null&&b!==null&&b<=N&&b>=T&&(v.set(S.getKey(),b-T,"text"),b<N&&(v=null)),_!==null&&E!==null&&E<=N&&E>=T){_.set(S.getKey(),E-T,"text");break}T=N}if(p!==null){(function(L){const A=L.getPreviousSibling(),D=L.getNextSibling();A!==null&&ga(A),D!==null&&ga(D)})(this);const S=p.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,w),this.remove()):S.splice(N,1,w),Z(k)&&pa(k,p,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||K(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;ro()===s&&tt(r);const c=ne();if(Z(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&cf(p,o,r,n,l),m!==null&&m.key===s&&cf(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 Ble(t){return{forChild:wu(t.style),node:null}}function Mle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:wu(e.style,n?void 0:"bold"),node:null}}const Q1=new WeakMap;function $le(t){if(!He(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Ole(t){const e=t;t.parentElement===null&&K(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=Q1.get(s))===void 0&&!$le(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)Q1.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
|
|
25
25
|
`||l===`\r
|
|
26
|
-
`?r.push(nn()):l===" "?r.push(Hr()):l!==""&&r.push(
|
|
27
|
-
`),d=!p.isEmpty();else if(d=!1,
|
|
26
|
+
`?r.push(nn()):l===" "?r.push(Hr()):l!==""&&r.push(Re(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=ef(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=ef(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:Re(n)}}function ef(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,He(n)){const s=n.style.display;if(s===""&&!Pc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Zn(n))return n;if(n.nodeName==="BR")return null}}const Lle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function $n(t){const e=Lle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:wu(t.style,e),node:null}}function Re(t=""){return ln(new _o(t))}function Q(t){return t instanceof _o}function wu(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 is extends _o{static getType(){return"tab"}static clone(e){return new is(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Sr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Hr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&km(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||K(286),this}setDetail(e){return e!==2&&K(127),this}setMode(e){return e!=="normal"&&K(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return ln(new is)}function Ya(t){return t instanceof is}class Ile{constructor(e,n,o){H(this,"key");H(this,"offset");H(this,"type");H(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:Ph(zt(qn(this,"next")),zt(qn(e,"next")))<0}getNode(){const e=Ke(this.key);return e===null&&K(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,ss()||(ro()===a&&tt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function wn(t,e,n){return new Ile(t,e,n)}function Kl(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(!U(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 tf(t,e){if(U(e)){const n=e.getLastDescendant();U(n)||Q(n)?Kl(t,n):Kl(t,e)}else Kl(t,e)}class Ja{constructor(e){H(this,"_nodes");H(this,"_cachedNodes");H(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Dt(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 Ja(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=Ke(r);s!==null&&o.push(s)}return ss()||(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((ne()||jr())===this&&e[0]){const n=ot(e[0],"next");hce(ho(n,n))}for(const n of e)n.remove()}}function Z(t){return t instanceof nr}class nr{constructor(e,n,o,r){H(this,"format");H(this,"style");H(this,"anchor");H(this,"focus");H(this,"_cachedNodes");H(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(_n(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;U(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Vr(o.focus)&&U(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=rn(o.focus.origin,"previous");_n(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Ru(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!U(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=zt(o.anchor),d=zt(o.anchor.getFlipped()),f=m=>lo(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Rh(Nf(this),"next"));return ss()||(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]=Dc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(U(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!ke(p)&&!ao(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=Ie(),o=n.getEditorState()._selection,r=dh(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),ra(this)}clone(){const e=this.anchor,n=this.focus;return new nr(wn(e.key,e.offset,e.type),wn(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ha(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=pt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let s=0;s<r;s++){const a=n[s];a===`
|
|
28
28
|
`||a===`\r
|
|
29
|
-
`?o.push(nn()):a===" "?o.push(Hr()):o.push(Pe(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=Pe();if(b.setFormat(v),b.setStyle(_),cs(w))w.splice(0,0,[b]);else{const E=Re(k)?Me().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"&&er(l,zt(zn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||K(26);const 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&&($n(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!$n(y)||(y=Pe(),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&&($n(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!$n(y)||(y=Pe(),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=Pe(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||U(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),uh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Ro(p)){const _=Pe(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ya(p)){const _=Pe(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Pe(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=U(p)?p:p.getParentOrThrow();let v=U(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(X(g)&&!Ro(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Pe(g.getTextContent());g.replace(T),g=T}Re(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 S=k[T];if(S.is(p)||U(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?b||E.insertAfter(S,!1):S.remove())}if(!b){let T=v,S=null;for(;T!==null;){const N=T.getChildren(),O=N.length;(O===0||N[O-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(Ro(p))if(c===m)p.select();else{const T=Pe(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 S=d[T],N=S.__key;y.has(N)||S.remove()}}}removeText(){const e=ne()===this;Zs(this,gce(Nf(this))),e&&ne()!==this&&rt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void et(null);const o=this.getNodes(),r=[];for(const k of o)X(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(U(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),et(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($n(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||$n(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||$n(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=ne();return Z(h)||K(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Vt),r=e[e.length-1];if(U(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Gl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(U(h)||ke(h))&&!h.isInline())){U(o)||K(211,n.constructor.name,n.getType());const h=Gl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Me();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=so(v);if(_||ke(v)&&v.isInline()||U(v)&&v.isInline()||X(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=!U(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;U(f=d)&&Vt(f)&&!f.isEmpty()&&U(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(U(o)||K(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&K(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||K(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=qt(a,Vt);c&&U(p)&&(c.canMergeWhenEmpty()||Vt(u))&&(p.append(...c.getChildren()),c.remove()),U(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=U(o)?o.getLastChild():null;so(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Me();return Ie().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Gl(this),n=qt(this.anchor.getNode(),Vt);U(n)||K(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=Dc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const p=o.splitText(d,f),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(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(uf(this,e,n,o))return;const r=e==="move",s=Le(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!U(u)||u.isInline()||u.canBeEmpty()||Lc(l,s,c),this.dirty){let d=Yo(s,this.anchor.key),f=Yo(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&mh(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=Re(f)?f:ece(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];Oc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];U(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];U(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"&&uf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&U(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(U(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=Uu(zn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if(yn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(U(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Zs(this,mo(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Fr(c)){if(U(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(ke(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&U(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=ph();u.add(c.origin.getKey()),rt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Zs(this,mo(!c.origin.isEmpty()&&u.isEmpty()?qu(nt(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&&of(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 rf(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 rf(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!(Nh(k)||Ple(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()&&Re(o.getParent())&&o.getPreviousSibling()===null&&of(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Nt(t){return t instanceof Ja}function nf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Dc(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]:[nf(n),nf(o)]}function of(t,e){for(let n=e;n;n=n.getParent()){if(U(n)){if(n.collapseAtStart(t))return!0;if(ft(n))break}if(n.getPreviousSibling())break}return!1}const Ple=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function rf(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 sf(t,e,n,o){let r,s=e;if(Ue(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(r=Cr(d),X(r))s=lo(r,a?"next":"previous");else{let p=Cr(t);if(p===null)return null;if(U(p)){const m=o.getElementByKey(p.getKey());m===null&&K(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),U(p)||K(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(U(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=U(g)?g:g.getParentOrThrow()),s=0}X(g)?(r=g,p=null,s=lo(g,a?"next":"previous")):g!==p&&a&&!f&&(U(p)||K(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&ke(p)&&Cr(t)===p?m:m+1,p=p.getParentOrThrow()}if(U(p))return kn(p.__key,s,"element")}}else r=Cr(t);return X(r)?kn(r.__key,lo(r,s,"clamp"),"text"):null}function af(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&&U(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else U(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&U(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&U(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function uh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);af(t,o,r),af(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Le();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 dh(t,e,n,o,r,s){if(t===null||n===null||!us(r,t,n))return null;const a=sf(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=sf(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Cr(t),u=Cr(n);if(ke(c)&&ke(u))return null}return uh(a,l,s),[a,l]}function Mc(t){return U(t)&&!t.isInline()}function fh(t,e,n,o,r,s){const a=_o(),l=new nr(kn(t,e,r),kn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Xa(){const t=kn("root",0,"element"),e=kn("root",0,"element");return new nr(t,e,0,"")}function ph(){return new Ja(new Set)}function Eu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!hc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(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)&&!us(n,u,d))return t.clone();const m=dh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new nr(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function ne(){return _o()._selection}function jr(){return Le()._editorState._selection}function pa(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"),lf(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")}}lf(t)}function lf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!U(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(U(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(U(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function ma(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):U(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(r)?l="text":U(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 cf(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 mh(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Fle(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(ah)&&f!==s||f!==null&&Du(f))return;if(!Z(e))return void(t!==null&&us(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=Yo(n,h),C=Yo(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,S=!1;if(p.type==="text"){E=Ir(y);const L=p.getNode();S=L.getFormat()!==k||L.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(S=!0);var N,O,A,D,M;if(m.type==="text"&&(T=Ir(C)),E!==null&&T!==null&&(b&&(t===null||S||Z(t)&&(t.format!==k||t.style!==w))&&(N=k,O=w,A=v,D=h,M=performance.now(),eh=[N,O,A,D,M]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Nle)||s.focus({preventScroll:!0}),p.type==="element"))){if(mh(o,E,v,T,_),!r.has(Tle)&&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 I;if(L instanceof Text){const j=document.createRange();j.selectNode(L),I=j.getBoundingClientRect()}else I=L.getBoundingClientRect();(function(j,R,q){const F=$h(q),Q=Iu(F);if(F===null||Q===null)return;let{top:P,bottom:re}=R,oe=0,G=0,z=q;for(;z!==null;){const te=z===F.body;if(te)oe=0,G=Wt(j).innerHeight;else{const xe=z.getBoundingClientRect();oe=xe.top,G=xe.bottom}let de=0;if(P<oe?de=-(oe-P):re>G&&(de=re-G),de!==0)if(te)Q.scrollBy(0,de);else{const xe=z.scrollTop;z.scrollTop+=de;const V=z.scrollTop-xe;P-=V,re-=V}if(te)break;z=ds(z)}})(n,I,s)}}Tc=!0}}function Vle(t){let e=ne()||jr();e===null&&(e=Ie().selectEnd()),e.insertNodes(t)}function Gl(t){let e=t;t.isCollapsed()||e.removeText();const n=ne();Z(n)&&(e=n),Z(e)||K(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Vt(r);){const a=r;if([r,s]=Rle(r,s),a.is(r))break}return s}function Rle(t,e){const n=t.getParent();if(!n){const r=Me();return Ie().append(r),r.select(),[Ie(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!U(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new nr(kn(t.__key,e,"element"),kn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function uf(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=zn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Vh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!ke(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Uu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(yn(d))d.origin.isInline()||(c=d);else{if(U(d.origin))continue;ke(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&ke(c.origin)&&c.origin.isKeyboardSelectable()){const d=ph();return d.add(c.origin.getKey()),rt(d),!0}return c=zt(c),l&&er(t.anchor,c),er(t.focus,c),u||!a}let Xe=null,Qe=null,_t=!1,Yl=!1,js=0;const df={characterData:!0,childList:!0,subtree:!0};function ss(){return _t||Xe!==null&&Xe._readOnly}function Ye(){_t&&K(13)}function hh(){js>99&&K(14)}function _o(){return Xe===null&&K(195,gh()),Xe}function Le(){return Qe===null&&K(196,gh()),Qe}function gh(){let t=0;const e=new Set,n=Go.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=tl(r);if(Mu(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 zle(){return Qe}function ff(t,e,n){const o=e.__type,r=kh(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 pf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function vh(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 Ule(t){return xu(t,Le()._nodes)}function xu(t,e){const n=t.type,o=e.get(n);o===void 0&&K(17,n);const r=o.klass;t.type!==r.getType()&&K(18,r.name);const s=r.importJSON(t),a=t.children;if(U(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=xu(a[l],e);s.append(c)}return s}function mf(t,e,n){const o=Xe,r=_t,s=Qe;Xe=e,_t=!0,Qe=t;try{return n()}finally{Xe=o,_t=r,Qe=s}}function Ln(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=Xe,d=_t,f=Qe,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){Qe=t,Xe=n,_t=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=ule(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Yl)throw b;return bh(t,null,o,n),Nm(t),t._dirtyType=2,Yl=!0,Ln(t,s),void(Yl=!1)}finally{m.observe(o,df),t._updating=p,Xe=u,_t=d,Qe=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 S=b._pendingDecorators||T;const N=E._nodeMap;let O;for(O in S)N.has(O)||(S===T&&(S=Th(b)),delete S[O])}(t,n);const k=r?null:on(Wt(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Ale)){Qe=t,Xe=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Lc(b,t,o),Fle(a,l,t,k,v,o)}(function(b,E,T){let S=b._blockCursorElement;if(Z(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,O=N.getNode(),A=N.offset;let D=!1,M=null;if(A===O.getChildrenSize())Xl(O.getChildAtIndex(A-1))&&(D=!0);else{const L=O.getChildAtIndex(A);if(L!==null&&Xl(L)){const I=L.getPreviousSibling();(I===null||Xl(I))&&(D=!0,M=b.getElementByKey(L.__key))}}if(D){const L=b.getElementByKey(O.__key);return S===null&&(b._blockCursorElement=S=function(I){const j=I.theme,R=document.createElement("div");R.contentEditable="false",R.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const F=Em(q);q=j.blockCursor=F}q!==void 0&&R.classList.add(...q)}return R}(b._config)),E.style.caretColor="transparent",void(M===null?L.appendChild(S):L.insertBefore(S,M))}}S!==null&&Lc(S,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,df),Qe=f,Xe=u}}h!==null&&function(b,E,T,S,N){const O=Array.from(b._listeners.mutation),A=O.length;for(let D=0;D<A;D++){const[M,L]=O[D];for(const I of L){const j=E.get(I);j!==void 0&&M(j,{dirtyLeaves:S,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Fm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Ni("decorator",t,!0,w)),function(b,E,T){const S=_f(E),N=_f(T);S!==N&&Ni("textcontent",b,!0,N)}(t,e||s,n),Ni("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 S=0;S<E.length;S++)E[S]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[S,N]=T;Qa(b,S,N)}}}(t)}function Ni(t,e,n,...o){const r=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=r}}function hf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&K(191),l._flushSync=!0),c&&t._deferred.push(c),vh(t,a.tag)),l==null?Qa(t,s,a):s()}}return o}function Qa(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,vh(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=_h(c||l),u=!0),c._flushSync=a;const d=Xe,f=_t,p=Qe,m=t._updating;Xe=c,_t=!1,t._updating=!0,Qe=t;const h=t._headless||t.getRootElement()===null;Au(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=on(Wt(v));return Z(k)||k==null?Eu(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=hf(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 S=E.getNode();T!==S&&S.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);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&q1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=oo(),T=new Map;let S=k,N=S.size,O=w,A=O.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of S){const M=b.get(D);X(M)&&M.isAttached()&&M.isSimpleText()&&!M.isUnmergeable()&&q1(M),M!==void 0&&pf(M,E)&&ff(_,M,T),k.add(D)}if(S=_._dirtyLeaves,N=S.size,N>0){js++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,O.delete("root")&&O.set("root",!0);for(const D of O){const M=D[0],L=D[1];if(w.set(M,L),!L)continue;const I=b.get(M);I!==void 0&&pf(I,E)&&ff(_,I,T)}S=_._dirtyLeaves,N=S.size,O=_._dirtyElements,A=O.size,js++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),hf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[S]of w){const N=E.get(S);N!==void 0&&(N.isAttached()||(U(N)&&Sm(N,S,b,E,T,w),b.has(S)||w.delete(S),T.push(S)))}for(const S of T)E.delete(S);for(const S of k){const N=E.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),E.delete(S))}}(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||K(19)}else Nt(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 Ln(t)}finally{Xe=d,_t=f,Qe=p,t._updating=m,js=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,Ln(t)):u&&Kle(()=>{Ln(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Mt(t,e,n){Qe===t&&n===void 0?e():Qa(t,e,n)}class Di{constructor(e,n,o){H(this,"element");H(this,"before");H(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&K(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&K(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&K(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(zi||Lr||Ri);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=gf(n,o);s.push(r);const a=gf(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 gf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&K(225),n.reverse()}class Lt extends tn{constructor(n){super(n);H(this,"__first");H(this,"__last");H(this,"__size");H(this,"__format");H(this,"__style");H(this,"__indent");H(this,"__dir");H(this,"__textFormat");H(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 Yae[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=Le()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(X(o)&&n.push(o),U(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;U(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;U(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 U(a)&&a.getLastDescendant()||a||null}const s=o[n];return U(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:We(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&K(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&K(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),U(a)&&s!==r-1&&!a.isInline()&&(n+=po)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),U(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=L1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=dt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ha(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Ye();const r=ne();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||U(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(X(u)||U(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):fh(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!==""?L1[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){da(this)&&K(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||K(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const 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&&K(100);const y=h.getNextSibling(),C=h.__key;zo(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--,zo(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&&K(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=ne();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;vf(C,g,y)&&ma(C,C.getNode(),this,f,d),vf(v,g,y)&&ma(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||ft(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ue(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function U(t){return t instanceof Lt}function vf(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 yh extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ke(t){return t instanceof yh}class as extends Lt{constructor(){super("root");H(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new as}getTopLevelElementOrThrow(){K(51)}getTextContent(){const n=this.__cachedText;return!ss()&&Le()._dirtyType!==0||n===null?super.getTextContent():n}remove(){K(52)}replace(n){K(53)}insertBefore(n){K(54)}insertAfter(n){K(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)U(s)||ke(s)||K(282);return super.splice(n,o,r)}static importJSON(n){return Ie().updateFromJSON(n)}collapseAtStart(){return!0}}function Re(t){return t instanceof as}function _h(t){return new el(new Map(t._nodeMap))}function Su(){return new el(new Map([["root",new as]]))}function Ch(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&K(130,n.name),U(t)){const o=e.children;Array.isArray(o)||K(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=Ch(r[s]);o.push(a)}}return e}class el{constructor(e,n){H(this,"_nodeMap");H(this,"_selection");H(this,"_flushSync");H(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 mf(n&&n.editor||null,this,e)}clone(e){const n=new el(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return mf(null,this,()=>({root:Ch(Ie())}))}}class Tu extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ls extends Lt{static getType(){return"paragraph"}static clone(e){return new ls(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:qle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ue(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Me().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Me();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||X(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function qle(t){const e=Me();return t.style&&(e.setFormat(t.style.textAlign),Pu(t,e)),{node:e}}function Me(){return ln(new ls)}function cs(t){return t instanceof ls}const be=0,gi=1,Hle=4;function bh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Su(),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 jle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=il(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Wle(t){const e=t||{},n=zle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Su(),l=e.namespace||(r!==null?r._config.namespace:Dh()),c=e.editorState,u=[as,yo,rs,is,ls,Tu,...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}il(y);const _=y.getType(),k=jle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:ile(u[g]),transforms:k})}}const h=new Go(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 Go{constructor(e,n,o,r,s,a,l,c){H(this,"_headless");H(this,"_parentEditor");H(this,"_rootElement");H(this,"_editorState");H(this,"_pendingEditorState");H(this,"_compositionKey");H(this,"_deferred");H(this,"_keyToDOMMap");H(this,"_updates");H(this,"_updating");H(this,"_listeners");H(this,"_commands");H(this,"_nodes");H(this,"_decorators");H(this,"_pendingDecorators");H(this,"_config");H(this,"_dirtyType");H(this,"_cloneNotNeeded");H(this,"_dirtyLeaves");H(this,"_dirtyElements");H(this,"_normalizedNodes");H(this,"_updateTags");H(this,"_observer");H(this,"_key");H(this,"_onError");H(this,"_htmlConversions");H(this,"_window");H(this,"_editable");H(this,"_blockCursorElement");H(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=Dh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&K(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&K(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&K(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Sf(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=Sf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=We(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return se(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,bh(this,n,e,r),n!==null&&(this._config.disableEvents||Ele(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Iu(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,Nm(this),this._updateTags.add(Ai),Ln(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Sc.set(l,u);const d=ua.get(u)??0;d<1&&u.addEventListener("selectionchange",ih),ua.set(u,d+1),l.__lexicalEditor=c;const f=rh(l);for(let p=0;p<xc.length;p++){const[m,h]=xc[p],g=typeof h=="function"?y=>{Y1(y)||(G1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(Y1(y))return;G1(y);const C=c.isEditable();switch(m){case"cut":return C&&se(c,ku,y);case"copy":return se(c,Ga,y);case"paste":return C&&se(c,_u,y);case"dragstart":return C&&se(c,Ym,y);case"dragover":return C&&se(c,Jm,y);case"dragend":return C&&se(c,yle,y);case"focus":return C&&se(c,ble,y);case"blur":return C&&se(c,kle,y);case"drop":return C&&se(c,Gm,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(Ai),Ln(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&K(38);let o=e;o._readOnly&&(o=_h(e),o._selection=e._selection?e._selection.clone():null),Am(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Ln(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Ln(this)}parseEditorState(e,n){return function(o,r,s){const a=Su(),l=Xe,c=_t,u=Qe,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,Xe=a,_t=!1,Qe=r,Au(null);try{const h=r._nodes;xu(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,Xe=l,_t=c,Qe=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Ln(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Qa(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Mt(this,()=>{const r=ne(),s=Ie();r!==null?r.dirty||rt(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Xle("focus"),Qle(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}H(Go,"version");Go.version="0.38.1+prod.esm";let Bc=null;function Au(t){Bc=t}let Zle=1;function kh(t,e){const n=Nu(t,e);return n===void 0&&K(30,e),n}function Nu(t,e){return t._nodes.get(e)}const Kle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function yf(t){return ke(Pr(t))}function Du(t){const e=document.activeElement;if(!Ue(e))return!1;const n=e.nodeName;return ke(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&tl(e)==null)}function us(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Du(e)&&wh(e)===t}catch{return!1}}function Mu(t){return t instanceof Go}function wh(t){let e=t;for(;e!=null;){const n=tl(e);if(Mu(n))return n;e=ds(e)}return null}function tl(t){return t?t.__lexicalEditor:null}function Ro(t){return Ya(t)||t.isToken()}function $n(t){return Ro(t)||t.isSegmented()}function jn(t){return Wr(t)&&t.nodeType===3}function Eh(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(jn(e))return e;e=e.firstChild}return null}function ha(t,e,n){const o=dt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~dt.superscript:e==="superscript"?r&=~dt.subscript:e==="lowercase"?(r&=~dt.uppercase,r&=~dt.capitalize):e==="uppercase"?(r&=~dt.lowercase,r&=~dt.capitalize):e==="capitalize"&&(r&=~dt.lowercase,r&=~dt.uppercase),r}function xh(t){return X(t)||so(t)||ke(t)}function Gle(t,e){const n=function(){const a=Bc;return Bc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Ye(),hh();const o=Le(),r=_o(),s=""+Zle++;r._nodeMap.set(s,t),U(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function ga(t){hh(),da(t)&&K(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=_o(),r=Le(),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,U(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function et(t){Ye();const e=Le(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=We(n);o!==null&&o.getWritable()}if(t!==null){const o=We(t);o!==null&&o.getWritable()}}}function oo(){return ss()?null:Le()._compositionKey}function We(t,e){const n=(e||_o())._nodeMap.get(t);return n===void 0?null:n}function Sh(t,e){const n=nl(t,Le());return n!==void 0?We(n,e):null}function nl(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=Sh(n,e);if(o!==null)return o;n=ds(n)}return null}function Th(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function _f(t){return t.read(()=>Ie().getTextContent())}function Ie(){return Ah(_o())}function Ah(t){return t._nodeMap.get("root")}function rt(t){Ye();const e=_o();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Cr(t){const e=Le(),n=function(o,r){let s=o;for(;s!=null;){const a=nl(s,r);if(a!==void 0)return a;s=ds(s)}return null}(t,e);return n===null?t===e.getRootElement()?We("root"):null:We(n)}function Nh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Bu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Dh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Mh(t){return jn(t)?t.nodeValue:null}function $u(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Mh(r);const c=Pr(r);if(l!==null&&X(c)){if(l===Za&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Ou(c,l,s,a,t)}}}function Ou(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]===Za&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(et(null),Ri||Lr||zi)s.remove();else{const g=Le();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=oo(),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=ne();if(!Z(h)||n===null||o===null)return void Cf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Pe(s.getTextContent());s.replace(g),s=g}Cf(s,l,h)}}}function Cf(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=lo(t,s.offset,"clamp"))}}}function Ps(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Yle(t,e){return Ps(t,e,"altKey")&&Ps(t,e,"ctrlKey")&&Ps(t,e,"shiftKey")&&Ps(t,e,"metaKey")}function Te(t,e,n){return Yle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Bn={ctrlKey:!Xt,metaKey:Xt},bf={altKey:Xt,ctrlKey:!Xt};function kf(t){return t.key==="Backspace"}function wf(t){return Te(t,"a",Bn)}function Jle(t){const e=Ie();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"),ra(t),t}{const n=e.select(0,e.getChildrenSize());return rt(ra(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=Em(r);return n[e]=s,s}return r}function Lu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&K(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function Ef(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 $c(t,e){const n=t.offset;if(t.type==="element")return Ef(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?Ef(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Bh(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function se(t,e,n){return function(o,r,s){const a=Bu(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(Mt(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 ol(t){return!Re(t)&&!t.isLastChild()&&!t.isInline()}function Yo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&K(75,e),n}function ds(t){const e=t.assignedSlot||t.parentElement;return Ic(e)?e.host:e}function $h(t){return Eh(t)?t:Ue(t)?t.ownerDocument:null}function Xle(t){Ye(),Le()._updateTags.add(t)}function Qle(t){Ye(),Le()._deferred.push(t)}function Oc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Iu(t){const e=$h(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&K(78),e}function ece(t){let e=t.getParentOrThrow();for(;e!==null;){if(ft(e))return e;e=e.getParentOrThrow()}return e}function ft(t){return Re(t)||U(t)&&t.isShadowRoot()}function ln(t){const e=Le(),n=t.getType(),o=Nu(e,n);o===void 0&&K(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||K(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||K(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&K(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Jl(t,e){!Re(t.getParent())||U(e)||ke(e)||K(99)}function tce(t){const e=We(t);return e===null&&K(63,t),e}function Xl(t){return(ke(t)||U(t)&&!t.canBeEmpty())&&!t.isInline()}function Lc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function nce(t){const e=Iu(t);return e?e.getSelection():null}function Oh(t){return Ue(t)&&t.tagName==="A"}function Ue(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Ic(t){return Wr(t)&&t.nodeType===11}function Pc(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 va(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Vt(t){if(ke(t)&&!t.isInline())return!0;if(!U(t)||ft(t))return!1;const e=t.getFirstChild(),n=e===null||so(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function rl(){return Le()}const xf=new WeakMap,oce=new Map;function Sf(t){if(!t._readOnly&&t.isEmpty())return oce;t._readOnly||K(192);let e=xf.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),xf.set(t,e)),e}function Lh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function rce(t){return(e=Lh(t))[sh]=!0,e;var e}function Pu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function ice(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function il(t){const e=I1 in t.prototype?t.prototype[I1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Go.version&&(c=JSON.parse(Go.version))}catch{}K(290,a.name,l,c)}return a===yh||a===Lt||a===tn}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Au(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function sce(t){const e=rl();return Ye(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!Re(n);){if(e(n))return n;n=n.getParent()}return null},ace={next:"previous",previous:"next"};class Fu{constructor(e){H(this,"origin");this.origin=e}[Symbol.iterator](){return Ih({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return nt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return nt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of r){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&K(263,Array.from(l).join(" "))}else s.insert(c);s=nt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Fu{constructor(){super(...arguments);H(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return nt(Vu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return nt(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const lce={root:Re,shadowRoot:ft};function Zr(t){return ace[t]}function Vu(t,e="root"){return lce[e](t)?null:t}class Jo extends Fu{constructor(){super(...arguments);H(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:nt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return U(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return nt(Vu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return nt(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Xo extends Fu{constructor(n,o){super(n);H(this,"type","text");H(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Qo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return nt(Vu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Qo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return nt(this.origin,this.direction)}}function ao(t){return t instanceof Xo}function Fr(t){return t instanceof Jo}function yn(t){return t instanceof Zi}const cce={next:class extends Xo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},uce={next:class extends Jo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Jo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Zi{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function nt(t,e){return t?new uce[e](t):null}function Qo(t,e,n){return t?new cce[e](t,lo(t,n)):null}function lo(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&km(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Tf(t,e){return new pce(t,e)}function rn(t,e){return U(t)?new dce[e](t):null}function fce(t){return t&&t.getChildCaret()||t}function Ru(t){return t&&fce(t.getAdjacentCaret())}class zu{constructor(e,n,o){H(this,"type","node-caret-range");H(this,"direction");H(this,"anchor");H(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 zu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return ao(s)?function(a,l){const{direction:c,origin:u}=a,d=lo(u,l==="focus"?Zr(c):c);return Tf(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[Tf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=ao(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=ao(o),s=a=>a.isSameNodeCaret(o)?null:Ru(a)||a.getParentCaret(e);return Ih({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 pce{constructor(e,n){H(this,"type","slice");H(this,"caret");H(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),s=e.getTextContent();return Qo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Uu(t){return mo(t,nt(Ie(),t.direction))}function mce(t){return mo(t,t)}function mo(t,e){return t.direction!==e.direction&&K(265),new zu(t,e,t.direction)}function Ih(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 Ph(t,e){const n=Ws(t.origin,e.origin);switch(n===null&&K(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Fh(n)}}function Fh(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 Fs(t,e){return e.is(t)}function Af(t){return U(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ws(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Af(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Af(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Fs(t,o)||K(276),{commonAncestor:o,type:"ancestor"}):r===null?(Fs(e,o)||K(277),{commonAncestor:o,type:"descendant"}):((U(s)||Fs(t,s))&&(U(r)||Fs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||K(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function zn(t,e){const{type:n,key:o,offset:r}=t,s=tce(t.key);return n==="text"?(X(s)||K(266,s.getType(),o),Qo(s,e,r)):(U(s)||K(267,s.getType(),o),vce(s,t.offset,e))}function er(t,e){const{origin:n,direction:o}=e,r=o==="next";ao(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?X(n)?t.set(n.getKey(),lo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(yn(e)&&U(n)||K(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function hce(t){const e=ne(),n=Z(e)?e:Xa();return Zs(n,t),rt(n),n}function Zs(t,e){er(t.anchor,e.anchor),er(t.focus,e.focus)}function Nf(t){const{anchor:e,focus:n}=t,o=zn(e,"next"),r=zn(n,"next"),s=Ph(o,r)<=0?"next":"previous";return mo(Vr(o,s),Vr(r,s))}function qu(t){const{direction:e,origin:n}=t,o=nt(n,Zr(e)).getNodeAtCaret();return o?nt(o,e):rn(n.getParentOrThrow(),e)}function Df(t,e="root"){const n=[t];for(let o=yn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(qu(o));return n}function Ql(t){return!!t&&t.origin.isAttached()}function gce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Rh(t,o),a=Df(s.anchor,n),l=Df(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(yn(h))c.add(h.origin.getKey());else if(Fr(h)){const{origin:g}=h;U(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=qu(nt(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=Pe(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=Qo(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(Ql(h)){d=zt(h);break}for(const h of l)if(Ql(h)){f=zt(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,O)=>{let A;for(let D=b;D<N.length;D++){const M=N[D];if(ft(M))return;!A&&O(M)&&(A=M)}return A},T=E(_,Vt),S=T&&E(k,N=>y.has(N.getKey())&&Vt(N));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;rn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(Ql);if(m)return mce(Vr(zt(m),t.direction));K(269,JSON.stringify(a.map(h=>h.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;yn(s);){const a=Ru(s);if(!yn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return ao(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&X(o.origin)?Qo(o.origin,n,Zr(n)):e}function Vh(t){return ao(t)&&t.offset!==lo(t.origin,t.direction)}function Vr(t,e){return t.direction===e?t:t.getFlipped()}function Rh(t,e){return t.direction===e?t:mo(Vr(t.focus,e),Vr(t.anchor,e))}function vce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Vr(o,n)}const Fc=new Map;function zh(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 Mf(t){let e=Fc.get(t);return e===void 0&&(e=zh(t),Fc.set(t,e)),e}function Uh(t){const e=rl().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function qh(t){return Uh(Re(t)?t:t.getParentOrThrow())}function Bf(t){const e=qh(t);return e!==null&&e.direction==="rtl"}function Hh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!$n(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]=Dc(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=rce(e)),e.__text=v)}}return e}function yce(t){const e=t.getStyle(),n=zh(e);Fc.set(e,n)}function _ce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function ec(t,e,n=_ce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Xa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Vt),u=qt(l.getNode(),Vt);U(c)&&r.set(c.getKey(),c),U(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(U(a)&&Vt(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Vt);U(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(ne())&&rt(s)}function jh(t){const e=Wh(t);return e!==null&&e.writingMode==="vertical-rl"}function Wh(t){const e=t.anchor.getNode();return U(e)?Uh(e):qh(e)}function $f(t,e){let n=jh(t)?!e:e;Zh(t)&&(n=!n);const o=zn(t.focus,n?"previous":"next");if(Vh(o))return!1;for(const r of Uu(o)){if(yn(r))return!r.origin.isInline();if(!U(r.origin)){if(ke(r.origin))return!0;break}}return!1}function Cce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Zh(t){const e=Wh(t);return e!==null&&e.direction==="rtl"}function Of(t,e,n){const o=Zh(t);let r;r=jh(t)||o?!n:n,Cce(t,e,r,"character")}function bce(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 Hu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,kce=Hu&&"documentMode"in document?document.documentMode:null;!(!Hu||!("InputEvent"in window)||kce)&&"getTargetRanges"in new window.InputEvent("input");function Kh(...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 fs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const wce=Hu;function Un(t,...e){const n=Kh(...e);n.length>0&&t.classList.add(...n)}function ju(t,...e){const n=Kh(...e);n.length>0&&t.classList.remove(...n)}function Ece(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 Sce(t){const e=qt(t,n=>U(n)&&!n.isInline());return U(e)||bce(4,t.__key),e}function Lo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ro(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Vc(t){let e=1,n=t.getParent();for(;n!=null;){if(we(n)){const o=n.getParent();if(fe(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function Rc(t){let e=t.getParent();fe(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),fe(n)&&(e=n);return e}function Gh(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();fe(s)?e=e.concat(Gh(s)):e.push(r)}return e}function mn(t){return we(t)&&fe(t.getFirstChild())}function Lf(t){return It().append(t)}function Yh(t,e){return we(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function If(t){const e=ne();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&ro(143);const[s]=r,a=s.getNode(),l=a.getParent();if(ft(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Me();a.append(u),n=u.select().getNodes()}}else if(Yh(a,n)){const c=Ct(t);if(ft(l)){a.replace(c);const u=It();U(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(we(a)){const u=a.getParentOrThrow();tr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(U(s)&&s.isEmpty()&&!we(s)&&!o.has(s.getKey())){Pf(s,t);continue}let a=xh(s)?s.getParent():we(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(fe(a)){if(!o.has(l)){const c=Ct(t);tr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(ft(c)&&!o.has(l)){o.add(l),Pf(a,t);break}a=c}}}}}function tr(t,e){t.splice(t.getChildrenSize(),0,e)}function Pf(t,e){if(fe(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),fe(n)&&e===n.getListType())n.append(r),fe(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(fe(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=Ct(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Wu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&mn(n)&&mn(o)&&(Wu(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Tce(){const t=ne();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Yh(o,n))e.add(Rc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(xh(s)){const a=xce(s,Co);a!=null&&e.add(Rc(a))}}for(const r of e){let s=r;const a=Gh(r);for(const l of a){const c=Me().setTextStyle(t.style).setTextFormat(t.format);tr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&er(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&er(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Jh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),fe(o.getFirstChild())||n++)}function Ace(t){const e=new Set;if(mn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(mn(o)&&mn(r)){const s=r.getFirstChild();if(fe(s)){s.append(t);const a=o.getFirstChild();fe(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(mn(o)){const s=o.getFirstChild();if(fe(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(mn(r)){const s=r.getFirstChild();fe(s)&&s.append(t)}else if(fe(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Ct(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Nce(t){if(mn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(fe(n?n.getParent():void 0)&&we(n)&&fe(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=Ct(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=Ct(s);c.append(u),tr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Dce(){const t=ne();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Rc(e),o=e.getParent();fe(o)||ro(40);const r=o.getParent();let s;if(ft(r))s=Me(),n.insertAfter(s);else{if(!we(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Ct(o.getListType());if(we(s)){const c=It();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!we(u)&&!fe(u))break;c=u}c.remove()}(e),!0}function ya(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let Co=class extends Lt{constructor(n=1,o=void 0,r){super(r);H(this,"__value");H(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();fe(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Mce,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();!fe(d)||d.getListType()!=="check"||fe(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(...ya(m)),p){const g=u.getParent(),y=fe(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=ya(h);u.getChildren().some(y=>fe(y))?d.push(...g):f.push(...g)}f.length>0&&ju(l,...f),d.length>0&&Un(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=Mf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Mf(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(U(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!fe(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=Ct(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(U(n)||ro(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(fe(r)||ro(39),we(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=Ct(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&mn(o)&&mn(r)&&(Wu(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Me();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=we(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return fe(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;we(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ro(117),(n=Math.floor(n))>=0||ro(199);let o=this.getIndent();for(;o!==n;)o<n?(Ace(this),o++):(Nce(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(n)||cs(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 Ct("bullet")}canMergeWhenEmpty(){return!0}};function Mce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Ff(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 Ff(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Ff(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new Co(void 0,t))}function we(t){return t instanceof Co}let or=class extends Lt{constructor(n="number",o=1,r){super(r);H(this,"__tag");H(this,"__start");H(this,"__listType");const s=$ce[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();fe(r)&&o.getListType()===r.getListType()&&Wu(o,r)})(n),Jh(n)},extends:Lt,importDOM:{ol:()=>({conversion:Rf,priority:0}),ul:()=>({conversion:Rf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Vf(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Vf(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return Ue(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];we(l)||(s===r&&(s=[...r]),s[a]=It().append(!U(l)||fe(l)||l.isInline()?l:Pe(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return we(n)}};function Vf(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Vc(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(...ya(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=ya(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&ju(t,...r),o.length>0&&Un(t,...o)}function Bce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{fe(s)&&e.push(Lf(s))})}else e.push(Lf(o))}return e}function Rf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Ct("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const r of o.childNodes)if(Ue(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?Ct("check"):Ct("bullet")),{after:Bce,node:n}}const $ce={ol:"number",ul:"bullet"};function Ct(t="number",e=1){return ln(new or(t,e))}function fe(t){return t instanceof or}const Oce=ue("UPDATE_LIST_START_COMMAND"),Xh=ue("INSERT_UNORDERED_LIST_COMMAND"),Qh=ue("INSERT_ORDERED_LIST_COMMAND"),Lce=ue("REMOVE_LIST_COMMAND");function Ice(t){return fs(t.registerCommand(Qh,()=>(If("number"),!0),gi),t.registerCommand(Oce,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!fe(r)&&(r.getListType()==="number"&&(r.setStart(o),Jh(r)),!0)},gi),t.registerCommand(Xh,()=>(If("bullet"),!0),gi),t.registerCommand(Lce,()=>(Tce(),!0),gi),t.registerCommand(Hi,()=>Dce(),gi),t.registerNodeTransform(Co,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=ne();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(yo,e=>{const n=e.getParent();if(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Pce(t){const e=n=>{const o=n.getParent();if(fe(n.getFirstChild())||!fe(o))return;const r=qt(n,s=>we(s)&&fe(s.getParent())&&we(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const s=r.getPreviousSibling();if(we(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;fe(d);){const f=d.getLastChild();if(!we(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(fe(l)){const c=Vc(l);c+1<Vc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(or,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(fe(r)){for(const s of r.getChildren())if(we(s)){e(s);const a=s.getFirstChild();fe(a)&&o.push(a)}}}})}function Fce(t,e){const n=Eh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!tg.has(s.nodeName)){const a=ng(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Tu&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Vce(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=Ie().getChildren();for(let r=0;r<o.length;r++)eg(t,o[r],n,e);return n.innerHTML}function eg(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=U(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Hh(o,e,"clone"));const l=U(a)?a.getChildren():[],c=Nu(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=eg(t,h,p,o);!r&&U(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((Ue(d)||Ic(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Ic(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const tg=new Set(["STYLE","SCRIPT"]);function ng(t,e,n,o,r=new Map,s){let a=[];if(tg.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||!ft(l))&&(l!=null&&Mc(l)||o);for(let h=0;h<f.length;h++)p.push(...ng(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),va(t)&&(p=Rce(t,p,m?()=>{const h=new Tu;return n.push(h),h}:Me)),l==null?p.length>0?a=a.concat(p):va(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Pc(h.nextSibling)&&Pc(h.previousSibling)}(t)&&(a=a.concat(nn())):U(l)&&l.append(...p),a}function Rce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Mc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Mc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function _a(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 zce(t,e=ne()){return e==null&&_a(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":Vce(t,e)}function Uce(t,e=ne()){return e==null&&_a(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(qce(t,e))}function zf(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 Uf(n,Hce(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 Uf(n,Fce(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=ne();if(Z(u)){const d=l[c];d===`
|
|
29
|
+
`?o.push(nn()):a===" "?o.push(Hr()):o.push(Re(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=Re();if(b.setFormat(v),b.setStyle(_),cs(w))w.splice(0,0,[b]);else{const E=Ue(k)?Me().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"&&er(l,zt(qn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];Q(p)||K(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&&(Ln(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(Q(y)&&y.canInsertTextBefore()&&!Ln(y)||(y=Re(),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&&(Ln(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(Q(y)&&!Ln(y)||(y=Re(),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=Re(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||U(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),uh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Ro(p)){const _=Re(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===r&&C===s){if(Ya(p)){const _=Re(e);return _.setFormat(r),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Re(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=U(p)?p:p.getParentOrThrow();let v=U(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)&&!Ro(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Re(g.getTextContent());g.replace(T),g=T}Ue(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 S=k[T];if(S.is(p)||U(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?b||E.insertAfter(S,!1):S.remove())}if(!b){let T=v,S=null;for(;T!==null;){const N=T.getChildren(),L=N.length;(L===0||N[L-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(Ro(p))if(c===m)p.select();else{const T=Re(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 S=d[T],N=S.__key;y.has(N)||S.remove()}}}removeText(){const e=ne()===this;Zs(this,gce(Nf(this))),e&&ne()!==this&&it(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void tt(null);const o=this.getNodes(),r=[];for(const k of o)Q(k)&&r.push(k);const s=k=>{o.forEach(w=>{if(U(w)){const b=w.getFormatFlags(e,k);w.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),tt(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(Ln(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||Ln(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Ln(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=ne();return Z(h)||K(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=qt(n,Ft),r=e[e.length-1];if(U(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Gl(this);o.splice(h,0,e),r.selectEnd()}return}if(!e.some(h=>(U(h)||ke(h))&&!h.isInline())){U(o)||K(211,n.constructor.name,n.getType());const h=Gl(this);return o.splice(h,0,e),void r.selectEnd()}const s=function(h){const g=Me();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=ao(v);if(_||ke(v)&&v.isInline()||U(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=!U(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;U(f=d)&&Ft(f)&&!f.isEmpty()&&U(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(U(o)||K(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&K(212,n.constructor.name,n.getType()),function(h,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||K(140),C=C.getNextSibling(),v.push(C);let _=h;for(const k of v)_=_.insertAfter(k)}(o,d));const p=qt(a,Ft);c&&U(p)&&(c.canMergeWhenEmpty()||Ft(u))&&(p.append(...c.getChildren()),c.remove()),U(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=U(o)?o.getLastChild():null;ao(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Me();return Pe().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Gl(this),n=qt(this.anchor.getNode(),Ft);U(n)||K(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=nn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=Dc(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(uf(this,e,n,o))return;const r=e==="move",s=Ie(),a=on(Wt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!U(u)||u.isInline()||u.canBeEmpty()||Lc(l,s,c),this.dirty){let d=Yo(s,this.anchor.key),f=Yo(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&mh(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=Ue(f)?f:ece(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];Oc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];U(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];U(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"&&uf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&U(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(U(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=Uu(qn(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(_n(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(U(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=zt(c);Zs(this,ho(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Vr(c)){if(U(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(ke(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&U(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=ph();u.add(c.origin.getKey()),it(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Zs(this,ho(!c.origin.isEmpty()&&u.isEmpty()?qu(ot(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&&of(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 rf(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 rf(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!(Nh(k)||Ple(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()&&Ue(o.getParent())&&o.getPreviousSibling()===null&&of(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 Dt(t){return t instanceof Ja}function nf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Dc(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]:[nf(n),nf(o)]}function of(t,e){for(let n=e;n;n=n.getParent()){if(U(n)){if(n.collapseAtStart(t))return!0;if(mt(n))break}if(n.getPreviousSibling())break}return!1}const Ple=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function rf(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 sf(t,e,n,o){let r,s=e;if(He(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(r=Cr(d),Q(r))s=co(r,a?"next":"previous");else{let p=Cr(t);if(p===null)return null;if(U(p)){const m=o.getElementByKey(p.getKey());m===null&&K(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),U(p)||K(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(U(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=U(g)?g:g.getParentOrThrow()),s=0}Q(g)?(r=g,p=null,s=co(g,a?"next":"previous")):g!==p&&a&&!f&&(U(p)||K(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&ke(p)&&Cr(t)===p?m:m+1,p=p.getParentOrThrow()}if(U(p))return wn(p.__key,s,"element")}}else r=Cr(t);return Q(r)?wn(r.__key,co(r,s,"clamp"),"text"):null}function af(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&&U(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else U(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&&U(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&U(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function uh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);af(t,o,r),af(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=Ie();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 dh(t,e,n,o,r,s){if(t===null||n===null||!us(r,t,n))return null;const a=sf(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=sf(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Cr(t),u=Cr(n);if(ke(c)&&ke(u))return null}return uh(a,l,s),[a,l]}function Bc(t){return U(t)&&!t.isInline()}function fh(t,e,n,o,r,s){const a=Co(),l=new nr(wn(t,e,r),wn(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function Xa(){const t=wn("root",0,"element"),e=wn("root",0,"element");return new nr(t,e,0,"")}function ph(){return new Ja(new Set)}function Eu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!hc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(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)&&!us(n,u,d))return t.clone();const m=dh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new nr(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function ne(){return Co()._selection}function jr(){return Ie()._editorState._selection}function pa(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"),lf(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")}}lf(t)}function lf(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!U(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(U(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(U(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 ma(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):U(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,Q(r)?l="text":U(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 cf(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 mh(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(ah)&&f!==s||f!==null&&Du(f))return;if(!Z(e))return void(t!==null&&us(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=Yo(n,h),C=Yo(n,g),v=p.offset,_=m.offset,k=e.format,w=e.style,b=e.isCollapsed();let E=y,T=C,S=!1;if(p.type==="text"){E=Ir(y);const I=p.getNode();S=I.getFormat()!==k||I.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(S=!0);var N,L,A,D,B;if(m.type==="text"&&(T=Ir(C)),E!==null&&T!==null&&(b&&(t===null||S||Z(t)&&(t.format!==k||t.style!==w))&&(N=k,L=w,A=v,D=h,B=performance.now(),eh=[N,L,A,D,B]),u!==v||d!==_||l!==E||c!==T||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Nle)||s.focus({preventScroll:!0}),p.type==="element"))){if(mh(o,E,v,T,_),!r.has(Tle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const I=Z(e)&&e.anchor.type==="element"?E.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(I!==null){let V;if(I instanceof Text){const j=document.createRange();j.selectNode(I),V=j.getBoundingClientRect()}else V=I.getBoundingClientRect();(function(j,R,q){const F=$h(q),ee=Iu(F);if(F===null||ee===null)return;let{top:P,bottom:re}=R,oe=0,G=0,z=q;for(;z!==null;){const te=z===F.body;if(te)oe=0,G=Wt(j).innerHeight;else{const xe=z.getBoundingClientRect();oe=xe.top,G=xe.bottom}let ue=0;if(P<oe?ue=-(oe-P):re>G&&(ue=re-G),ue!==0)if(te)ee.scrollBy(0,ue);else{const xe=z.scrollTop;z.scrollTop+=ue;const Ve=z.scrollTop-xe;P-=Ve,re-=Ve}if(te)break;z=ds(z)}})(n,V,s)}}Tc=!0}}function Fle(t){let e=ne()||jr();e===null&&(e=Pe().selectEnd()),e.insertNodes(t)}function Gl(t){let e=t;t.isCollapsed()||e.removeText();const n=ne();Z(n)&&(e=n),Z(e)||K(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!Ft(r);){const a=r;if([r,s]=Rle(r,s),a.is(r))break}return s}function Rle(t,e){const n=t.getParent();if(!n){const r=Me();return Pe().append(r),r.select(),[Pe(),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(!U(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new nr(wn(t.__key,e,"element"),wn(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function uf(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=qn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Fh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!ke(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Uu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(_n(d))d.origin.isInline()||(c=d);else{if(U(d.origin))continue;ke(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&ke(c.origin)&&c.origin.isKeyboardSelectable()){const d=ph();return d.add(c.origin.getKey()),it(d),!0}return c=zt(c),l&&er(t.anchor,c),er(t.focus,c),u||!a}let Qe=null,et=null,kt=!1,Yl=!1,js=0;const df={characterData:!0,childList:!0,subtree:!0};function ss(){return kt||Qe!==null&&Qe._readOnly}function Je(){kt&&K(13)}function hh(){js>99&&K(14)}function Co(){return Qe===null&&K(195,gh()),Qe}function Ie(){return et===null&&K(196,gh()),et}function gh(){let t=0;const e=new Set,n=Go.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=tl(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 zle(){return et}function ff(t,e,n){const o=e.__type,r=kh(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 pf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function vh(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 Ule(t){return xu(t,Ie()._nodes)}function xu(t,e){const n=t.type,o=e.get(n);o===void 0&&K(17,n);const r=o.klass;t.type!==r.getType()&&K(18,r.name);const s=r.importJSON(t),a=t.children;if(U(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=xu(a[l],e);s.append(c)}return s}function mf(t,e,n){const o=Qe,r=kt,s=et;Qe=e,kt=!0,et=t;try{return n()}finally{Qe=o,kt=r,et=s}}function Pn(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=Qe,d=kt,f=et,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&m!==null){et=t,Qe=n,kt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=ule(s,n,t,b,E,T)}catch(b){if(b instanceof Error&&t._onError(b),Yl)throw b;return bh(t,null,o,n),Nm(t),t._dirtyType=2,Yl=!0,Pn(t,s),void(Yl=!1)}finally{m.observe(o,df),t._updating=p,Qe=u,kt=d,et=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 S=b._pendingDecorators||T;const N=E._nodeMap;let L;for(L in S)N.has(L)||(S===T&&(S=Th(b)),delete S[L])}(t,n);const k=r?null:on(Wt(t));if(t._editable&&k!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Ale)){et=t,Qe=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Lc(b,t,o),Vle(a,l,t,k,v,o)}(function(b,E,T){let S=b._blockCursorElement;if(Z(T)&&T.isCollapsed()&&T.anchor.type==="element"&&E.contains(document.activeElement)){const N=T.anchor,L=N.getNode(),A=N.offset;let D=!1,B=null;if(A===L.getChildrenSize())Xl(L.getChildAtIndex(A-1))&&(D=!0);else{const I=L.getChildAtIndex(A);if(I!==null&&Xl(I)){const V=I.getPreviousSibling();(V===null||Xl(V))&&(D=!0,B=b.getElementByKey(I.__key))}}if(D){const I=b.getElementByKey(L.__key);return S===null&&(b._blockCursorElement=S=function(V){const j=V.theme,R=document.createElement("div");R.contentEditable="false",R.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const F=Em(q);q=j.blockCursor=F}q!==void 0&&R.classList.add(...q)}return R}(b._config)),E.style.caretColor="transparent",void(B===null?I.appendChild(S):I.insertBefore(S,B))}}S!==null&&Lc(S,b,E)})(t,o,l)}finally{m!==null&&m.observe(o,df),et=f,Qe=u}}h!==null&&function(b,E,T,S,N){const L=Array.from(b._listeners.mutation),A=L.length;for(let D=0;D<A;D++){const[B,I]=L[D];for(const V of I){const j=E.get(V);j!==void 0&&B(j,{dirtyLeaves:S,prevEditorState:N,updateTags:T})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Vm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Ni("decorator",t,!0,w)),function(b,E,T){const S=_f(E),N=_f(T);S!==N&&Ni("textcontent",b,!0,N)}(t,e||s,n),Ni("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 S=0;S<E.length;S++)E[S]()}finally{b._updating=T}}}(t,_),function(b){const E=b._updates;if(E.length!==0){const T=E.shift();if(T){const[S,N]=T;Qa(b,S,N)}}}(t)}function Ni(t,e,n,...o){const r=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=r}}function hf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&K(191),l._flushSync=!0),c&&t._deferred.push(c),vh(t,a.tag)),l==null?Qa(t,s,a):s()}}return o}function Qa(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,vh(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=_h(c||l),u=!0),c._flushSync=a;const d=Qe,f=kt,p=et,m=t._updating;Qe=c,kt=!1,t._updating=!0,et=t;const h=t._headless||t.getRootElement()===null;Au(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const k=v.getEditorState()._selection,w=on(Wt(v));return Z(k)||k==null?Eu(k,w,v,_):k.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=hf(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 S=E.getNode();T!==S&&S.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()&&q1(E)}}(c,t):function(v,_){const k=_._dirtyLeaves,w=_._dirtyElements,b=v._nodeMap,E=ro(),T=new Map;let S=k,N=S.size,L=w,A=L.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const D of S){const B=b.get(D);Q(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&q1(B),B!==void 0&&pf(B,E)&&ff(_,B,T),k.add(D)}if(S=_._dirtyLeaves,N=S.size,N>0){js++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,L.delete("root")&&L.set("root",!0);for(const D of L){const B=D[0],I=D[1];if(w.set(B,I),!I)continue;const V=b.get(B);V!==void 0&&pf(V,E)&&ff(_,V,T)}S=_._dirtyLeaves,N=S.size,L=_._dirtyElements,A=L.size,js++}_._dirtyLeaves=k,_._dirtyElements=w}(c,t),hf(t),function(v,_,k,w){const b=v._nodeMap,E=_._nodeMap,T=[];for(const[S]of w){const N=E.get(S);N!==void 0&&(N.isAttached()||(U(N)&&Sm(N,S,b,E,T,w),b.has(S)||w.delete(S),T.push(S)))}for(const S of T)E.delete(S);for(const S of k){const N=E.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),E.delete(S))}}(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||K(19)}else Dt(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 Pn(t)}finally{Qe=d,kt=f,et=p,t._updating=m,js=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,Pn(t)):u&&Kle(()=>{Pn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Bt(t,e,n){et===t&&n===void 0?e():Qa(t,e,n)}class Di{constructor(e,n,o){H(this,"element");H(this,"before");H(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&K(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&K(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&K(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(zi||Lr||Ri);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=gf(n,o);s.push(r);const a=gf(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 gf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&K(225),n.reverse()}class Lt extends tn{constructor(n){super(n);H(this,"__first");H(this,"__last");H(this,"__size");H(this,"__format");H(this,"__style");H(this,"__indent");H(this,"__dir");H(this,"__textFormat");H(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 Yae[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=Ie()._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),U(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;U(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;U(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 U(a)&&a.getLastDescendant()||a||null}const s=o[n];return U(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:Ke(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&K(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:Ke(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&K(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),U(a)&&s!==r-1&&!a.isInline()&&(n+=mo)}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(),U(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=L1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=pt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ha(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Je();const r=ne();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||U(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)||U(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):fh(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!==""?L1[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){da(this)&&K(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||K(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const 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&&K(100);const y=h.getNextSibling(),C=h.__key;zo(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--,zo(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&&K(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=ne();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;vf(C,g,y)&&ma(C,C.getNode(),this,f,d),vf(v,g,y)&&ma(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||mt(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(He(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 U(t){return t instanceof Lt}function vf(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 yh extends tn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ke(t){return t instanceof yh}class as extends Lt{constructor(){super("root");H(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new as}getTopLevelElementOrThrow(){K(51)}getTextContent(){const n=this.__cachedText;return!ss()&&Ie()._dirtyType!==0||n===null?super.getTextContent():n}remove(){K(52)}replace(n){K(53)}insertBefore(n){K(54)}insertAfter(n){K(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)U(s)||ke(s)||K(282);return super.splice(n,o,r)}static importJSON(n){return Pe().updateFromJSON(n)}collapseAtStart(){return!0}}function Ue(t){return t instanceof as}function _h(t){return new el(new Map(t._nodeMap))}function Su(){return new el(new Map([["root",new as]]))}function Ch(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&K(130,n.name),U(t)){const o=e.children;Array.isArray(o)||K(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=Ch(r[s]);o.push(a)}}return e}class el{constructor(e,n){H(this,"_nodeMap");H(this,"_selection");H(this,"_flushSync");H(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 mf(n&&n.editor||null,this,e)}clone(e){const n=new el(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return mf(null,this,()=>({root:Ch(Pe())}))}}class Tu extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ls extends Lt{static getType(){return"paragraph"}static clone(e){return new ls(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:qle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(He(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Me().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Me();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 qle(t){const e=Me();return t.style&&(e.setFormat(t.style.textAlign),Pu(t,e)),{node:e}}function Me(){return ln(new ls)}function cs(t){return t instanceof ls}const be=0,gi=1,Hle=4;function bh(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=Su(),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 jle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=il(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof tn&&a!==tn?a:void 0}}return e}function Wle(t){const e=t||{},n=zle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Su(),l=e.namespace||(r!==null?r._config.namespace:Dh()),c=e.editorState,u=[as,_o,rs,is,ls,Tu,...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}il(y);const _=y.getType(),k=jle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:ile(u[g]),transforms:k})}}const h=new Go(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 Go{constructor(e,n,o,r,s,a,l,c){H(this,"_headless");H(this,"_parentEditor");H(this,"_rootElement");H(this,"_editorState");H(this,"_pendingEditorState");H(this,"_compositionKey");H(this,"_deferred");H(this,"_keyToDOMMap");H(this,"_updates");H(this,"_updating");H(this,"_listeners");H(this,"_commands");H(this,"_nodes");H(this,"_decorators");H(this,"_pendingDecorators");H(this,"_config");H(this,"_dirtyType");H(this,"_cloneNotNeeded");H(this,"_dirtyLeaves");H(this,"_dirtyElements");H(this,"_normalizedNodes");H(this,"_updateTags");H(this,"_observer");H(this,"_key");H(this,"_onError");H(this,"_htmlConversions");H(this,"_window");H(this,"_editable");H(this,"_blockCursorElement");H(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=Dh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&K(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&K(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&K(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=Sf(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=Sf(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=Ke(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return se(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,bh(this,n,e,r),n!==null&&(this._config.disableEvents||Ele(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Iu(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,Nm(this),this._updateTags.add(Ai),Pn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Sc.set(l,u);const d=ua.get(u)??0;d<1&&u.addEventListener("selectionchange",ih),ua.set(u,d+1),l.__lexicalEditor=c;const f=rh(l);for(let p=0;p<xc.length;p++){const[m,h]=xc[p],g=typeof h=="function"?y=>{Y1(y)||(G1(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(Y1(y))return;G1(y);const C=c.isEditable();switch(m){case"cut":return C&&se(c,ku,y);case"copy":return se(c,Ga,y);case"paste":return C&&se(c,_u,y);case"dragstart":return C&&se(c,Ym,y);case"dragover":return C&&se(c,Jm,y);case"dragend":return C&&se(c,yle,y);case"focus":return C&&se(c,ble,y);case"blur":return C&&se(c,kle,y);case"drop":return C&&se(c,Gm,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(Ai),Pn(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&K(38);let o=e;o._readOnly&&(o=_h(e),o._selection=e._selection?e._selection.clone():null),Am(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Pn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Pn(this)}parseEditorState(e,n){return function(o,r,s){const a=Su(),l=Qe,c=kt,u=et,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,Qe=a,kt=!1,et=r,Au(null);try{const h=r._nodes;xu(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,Qe=l,kt=c,et=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Pn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Qa(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Bt(this,()=>{const r=ne(),s=Pe();r!==null?r.dirty||it(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Xle("focus"),Qle(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=on(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}H(Go,"version");Go.version="0.38.1+prod.esm";let Mc=null;function Au(t){Mc=t}let Zle=1;function kh(t,e){const n=Nu(t,e);return n===void 0&&K(30,e),n}function Nu(t,e){return t._nodes.get(e)}const Kle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function yf(t){return ke(Pr(t))}function Du(t){const e=document.activeElement;if(!He(e))return!1;const n=e.nodeName;return ke(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&tl(e)==null)}function us(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Du(e)&&wh(e)===t}catch{return!1}}function Bu(t){return t instanceof Go}function wh(t){let e=t;for(;e!=null;){const n=tl(e);if(Bu(n))return n;e=ds(e)}return null}function tl(t){return t?t.__lexicalEditor:null}function Ro(t){return Ya(t)||t.isToken()}function Ln(t){return Ro(t)||t.isSegmented()}function Zn(t){return Wr(t)&&t.nodeType===3}function Eh(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(Zn(e))return e;e=e.firstChild}return null}function ha(t,e,n){const o=pt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~pt.superscript:e==="superscript"?r&=~pt.subscript:e==="lowercase"?(r&=~pt.uppercase,r&=~pt.capitalize):e==="uppercase"?(r&=~pt.lowercase,r&=~pt.capitalize):e==="capitalize"&&(r&=~pt.lowercase,r&=~pt.uppercase),r}function xh(t){return Q(t)||ao(t)||ke(t)}function Gle(t,e){const n=function(){const a=Mc;return Mc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Je(),hh();const o=Ie(),r=Co(),s=""+Zle++;r._nodeMap.set(s,t),U(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function ga(t){hh(),da(t)&&K(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Co(),r=Ie(),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,U(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function tt(t){Je();const e=Ie(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=Ke(n);o!==null&&o.getWritable()}if(t!==null){const o=Ke(t);o!==null&&o.getWritable()}}}function ro(){return ss()?null:Ie()._compositionKey}function Ke(t,e){const n=(e||Co())._nodeMap.get(t);return n===void 0?null:n}function Sh(t,e){const n=nl(t,Ie());return n!==void 0?Ke(n,e):null}function nl(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=Sh(n,e);if(o!==null)return o;n=ds(n)}return null}function Th(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function _f(t){return t.read(()=>Pe().getTextContent())}function Pe(){return Ah(Co())}function Ah(t){return t._nodeMap.get("root")}function it(t){Je();const e=Co();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Cr(t){const e=Ie(),n=function(o,r){let s=o;for(;s!=null;){const a=nl(s,r);if(a!==void 0)return a;s=ds(s)}return null}(t,e);return n===null?t===e.getRootElement()?Ke("root"):null:Ke(n)}function Nh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Mu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Dh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Bh(t){return Zn(t)?t.nodeValue:null}function $u(t,e,n){const o=on(Wt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=Bh(r);const c=Pr(r);if(l!==null&&Q(c)){if(l===Za&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Ou(c,l,s,a,t)}}}function Ou(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]===Za&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(tt(null),Ri||Lr||zi)s.remove();else{const g=Ie();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=ro(),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=ne();if(!Z(h)||n===null||o===null)return void Cf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Re(s.getTextContent());s.replace(g),s=g}Cf(s,l,h)}}}function Cf(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=co(t,s.offset,"clamp"))}}}function Ps(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Yle(t,e){return Ps(t,e,"altKey")&&Ps(t,e,"ctrlKey")&&Ps(t,e,"shiftKey")&&Ps(t,e,"metaKey")}function Te(t,e,n){return Yle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const On={ctrlKey:!Xt,metaKey:Xt},bf={altKey:Xt,ctrlKey:!Xt};function kf(t){return t.key==="Backspace"}function wf(t){return Te(t,"a",On)}function Jle(t){const e=Pe();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"),ra(t),t}{const n=e.select(0,e.getChildrenSize());return it(ra(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=Em(r);return n[e]=s,s}return r}function Lu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&K(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),f=d==="destroyed"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function Ef(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 $c(t,e){const n=t.offset;if(t.type==="element")return Ef(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?Ef(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Mh(t){const e=Wt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function se(t,e,n){return function(o,r,s){const a=Mu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(Bt(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 ol(t){return!Ue(t)&&!t.isLastChild()&&!t.isInline()}function Yo(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&K(75,e),n}function ds(t){const e=t.assignedSlot||t.parentElement;return Ic(e)?e.host:e}function $h(t){return Eh(t)?t:He(t)?t.ownerDocument:null}function Xle(t){Je(),Ie()._updateTags.add(t)}function Qle(t){Je(),Ie()._deferred.push(t)}function Oc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Iu(t){const e=$h(t);return e?e.defaultView:null}function Wt(t){const e=t._window;return e===null&&K(78),e}function ece(t){let e=t.getParentOrThrow();for(;e!==null;){if(mt(e))return e;e=e.getParentOrThrow()}return e}function mt(t){return Ue(t)||U(t)&&t.isShadowRoot()}function ln(t){const e=Ie(),n=t.getType(),o=Nu(e,n);o===void 0&&K(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||K(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||K(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&K(203,t.constructor.name,n,l.name,l.getType()),a}return t}function Jl(t,e){!Ue(t.getParent())||U(e)||ke(e)||K(99)}function tce(t){const e=Ke(t);return e===null&&K(63,t),e}function Xl(t){return(ke(t)||U(t)&&!t.canBeEmpty())&&!t.isInline()}function Lc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function on(t){return an?(t||window).getSelection():null}function nce(t){const e=Iu(t);return e?e.getSelection():null}function Oh(t){return He(t)&&t.tagName==="A"}function He(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Ic(t){return Wr(t)&&t.nodeType===11}function Pc(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 va(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 Ft(t){if(ke(t)&&!t.isInline())return!0;if(!U(t)||mt(t))return!1;const e=t.getFirstChild(),n=e===null||ao(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function rl(){return Ie()}const xf=new WeakMap,oce=new Map;function Sf(t){if(!t._readOnly&&t.isEmpty())return oce;t._readOnly||K(192);let e=xf.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),xf.set(t,e)),e}function Lh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function rce(t){return(e=Lh(t))[sh]=!0,e;var e}function Pu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function ice(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==tn[e]}function il(t){const e=I1 in t.prototype?t.prototype[I1]():void 0,n=function(a){if(!(a===tn||a.prototype instanceof tn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Go.version&&(c=JSON.parse(Go.version))}catch{}K(290,a.name,l,c)}return a===yh||a===Lt||a===tn}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Au(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function sce(t){const e=rl();return Je(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const qt=(t,e)=>{let n=t;for(;n!=null&&!Ue(n);){if(e(n))return n;n=n.getParent()}return null},ace={next:"previous",previous:"next"};class Vu{constructor(e){H(this,"origin");this.origin=e}[Symbol.iterator](){return Ih({hasNext:Vr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ot(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ot(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const r=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of r){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&K(263,Array.from(l).join(" "))}else s.insert(c);s=ot(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Vu{constructor(){super(...arguments);H(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rn(n,this.direction)}getParentCaret(n="root"){return ot(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return ot(this.getNodeAtCaret(),n)||rn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const lce={root:Ue,shadowRoot:mt};function Zr(t){return ace[t]}function Fu(t,e="root"){return lce[e](t)?null:t}class Jo extends Vu{constructor(){super(...arguments);H(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:ot(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return U(this.origin)?rn(this.origin,this.direction):null}getParentCaret(n="root"){return ot(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return ot(this.getNodeAtCaret(),n)||rn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Jo&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Xo extends Vu{constructor(n,o){super(n);H(this,"type","text");H(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Qo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return ot(Fu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Qo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Xo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Jo||n instanceof Xo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return ot(this.origin,this.direction)}}function lo(t){return t instanceof Xo}function Vr(t){return t instanceof Jo}function _n(t){return t instanceof Zi}const cce={next:class extends Xo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},uce={next:class extends Jo{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Jo{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Zi{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function ot(t,e){return t?new uce[e](t):null}function Qo(t,e,n){return t?new cce[e](t,co(t,n)):null}function co(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&km(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function Tf(t,e){return new pce(t,e)}function rn(t,e){return U(t)?new dce[e](t):null}function fce(t){return t&&t.getChildCaret()||t}function Ru(t){return t&&fce(t.getAdjacentCaret())}class zu{constructor(e,n,o){H(this,"type","node-caret-range");H(this,"direction");H(this,"anchor");H(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 zu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return lo(s)?function(a,l){const{direction:c,origin:u}=a,d=co(u,l==="focus"?Zr(c):c);return Tf(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[Tf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=lo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=lo(o),s=a=>a.isSameNodeCaret(o)?null:Ru(a)||a.getParentCaret(e);return Ih({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 pce{constructor(e,n){H(this,"type","slice");H(this,"caret");H(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,r]=this.getSliceIndices(),s=e.getTextContent();return Qo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Uu(t){return ho(t,ot(Pe(),t.direction))}function mce(t){return ho(t,t)}function ho(t,e){return t.direction!==e.direction&&K(265),new zu(t,e,t.direction)}function Ih(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 Ph(t,e){const n=Ws(t.origin,e.origin);switch(n===null&&K(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Vh(n)}}function Vh(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 Af(t){return U(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ws(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=Af(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=Af(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Vs(t,o)||K(276),{commonAncestor:o,type:"ancestor"}):r===null?(Vs(e,o)||K(277),{commonAncestor:o,type:"descendant"}):((U(s)||Vs(t,s))&&(U(r)||Vs(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||K(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function qn(t,e){const{type:n,key:o,offset:r}=t,s=tce(t.key);return n==="text"?(Q(s)||K(266,s.getType(),o),Qo(s,e,r)):(U(s)||K(267,s.getType(),o),vce(s,t.offset,e))}function er(t,e){const{origin:n,direction:o}=e,r=o==="next";lo(e)?t.set(n.getKey(),e.offset,"text"):Vr(e)?Q(n)?t.set(n.getKey(),co(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(_n(e)&&U(n)||K(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function hce(t){const e=ne(),n=Z(e)?e:Xa();return Zs(n,t),it(n),n}function Zs(t,e){er(t.anchor,e.anchor),er(t.focus,e.focus)}function Nf(t){const{anchor:e,focus:n}=t,o=qn(e,"next"),r=qn(n,"next"),s=Ph(o,r)<=0?"next":"previous";return ho(Fr(o,s),Fr(r,s))}function qu(t){const{direction:e,origin:n}=t,o=ot(n,Zr(e)).getNodeAtCaret();return o?ot(o,e):rn(n.getParentOrThrow(),e)}function Df(t,e="root"){const n=[t];for(let o=_n(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(qu(o));return n}function Ql(t){return!!t&&t.origin.isAttached()}function gce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Rh(t,o),a=Df(s.anchor,n),l=Df(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(_n(h))c.add(h.origin.getKey());else if(Vr(h)){const{origin:g}=h;U(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=qu(ot(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=Re(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(b),_=Qo(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(Ql(h)){d=zt(h);break}for(const h of l)if(Ql(h)){f=zt(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 B=N[D];if(mt(B))return;!A&&L(B)&&(A=B)}return A},T=E(_,Ft),S=T&&E(k,N=>y.has(N.getKey())&&Ft(N));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;rn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(Ql);if(m)return mce(Fr(zt(m),t.direction));K(269,JSON.stringify(a.map(h=>h.origin.__key)))}function zt(t){const e=function(r){let s=r;for(;_n(s);){const a=Ru(s);if(!_n(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return lo(e)?e:Qo(e.origin,n,n);const o=e.getAdjacentCaret();return Vr(o)&&Q(o.origin)?Qo(o.origin,n,Zr(n)):e}function Fh(t){return lo(t)&&t.offset!==co(t.origin,t.direction)}function Fr(t,e){return t.direction===e?t:t.getFlipped()}function Rh(t,e){return t.direction===e?t:ho(Fr(t.focus,e),Fr(t.anchor,e))}function vce(t,e,n){let o=rn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Fr(o,n)}const Vc=new Map;function zh(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=zh(t),Vc.set(t,e)),e}function Uh(t){const e=rl().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function qh(t){return Uh(Ue(t)?t:t.getParentOrThrow())}function Mf(t){const e=qh(t);return e!==null&&e.direction==="rtl"}function Hh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Ln(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]=Dc(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=rce(e)),e.__text=v)}}return e}function yce(t){const e=t.getStyle(),n=zh(e);Vc.set(e,n)}function _ce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function ec(t,e,n=_ce){if(t===null)return;const o=t.getStartEndPoints(),r=new Map;let s=null;if(o){const[a,l]=o;s=Xa(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=qt(a.getNode(),Ft),u=qt(l.getNode(),Ft);U(c)&&r.set(c.getKey(),c),U(u)&&r.set(u.getKey(),u)}for(const a of t.getNodes())if(U(a)&&Ft(a))r.set(a.getKey(),a);else if(o===null){const l=qt(a,Ft);U(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(ne())&&it(s)}function jh(t){const e=Wh(t);return e!==null&&e.writingMode==="vertical-rl"}function Wh(t){const e=t.anchor.getNode();return U(e)?Uh(e):qh(e)}function $f(t,e){let n=jh(t)?!e:e;Zh(t)&&(n=!n);const o=qn(t.focus,n?"previous":"next");if(Fh(o))return!1;for(const r of Uu(o)){if(_n(r))return!r.origin.isInline();if(!U(r.origin)){if(ke(r.origin))return!0;break}}return!1}function Cce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Zh(t){const e=Wh(t);return e!==null&&e.direction==="rtl"}function Of(t,e,n){const o=Zh(t);let r;r=jh(t)||o?!n:n,Cce(t,e,r,"character")}function bce(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 Hu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,kce=Hu&&"documentMode"in document?document.documentMode:null;!(!Hu||!("InputEvent"in window)||kce)&&"getTargetRanges"in new window.InputEvent("input");function Kh(...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 fs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const wce=Hu;function Hn(t,...e){const n=Kh(...e);n.length>0&&t.classList.add(...n)}function ju(t,...e){const n=Kh(...e);n.length>0&&t.classList.remove(...n)}function Ece(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 Sce(t){const e=qt(t,n=>U(n)&&!n.isInline());return U(e)||bce(4,t.__key),e}function Lo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function io(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Fc(t){let e=1,n=t.getParent();for(;n!=null;){if(we(n)){const o=n.getParent();if(de(o)){e++,n=o.getParent();continue}io(40)}return e}return e}function Rc(t){let e=t.getParent();de(e)||io(40);let n=e;for(;n!==null;)n=n.getParent(),de(n)&&(e=n);return e}function Gh(t){let e=[];const n=t.getChildren().filter(we);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();de(s)?e=e.concat(Gh(s)):e.push(r)}return e}function hn(t){return we(t)&&de(t.getFirstChild())}function Lf(t){return It().append(t)}function Yh(t,e){return we(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function If(t){const e=ne();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&io(143);const[s]=r,a=s.getNode(),l=a.getParent();if(mt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Me();a.append(u),n=u.select().getNodes()}}else if(Yh(a,n)){const c=wt(t);if(mt(l)){a.replace(c);const u=It();U(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(we(a)){const u=a.getParentOrThrow();tr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(U(s)&&s.isEmpty()&&!we(s)&&!o.has(s.getKey())){Pf(s,t);continue}let a=xh(s)?s.getParent():we(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(de(a)){if(!o.has(l)){const c=wt(t);tr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(mt(c)&&!o.has(l)){o.add(l),Pf(a,t);break}a=c}}}}}function tr(t,e){t.splice(t.getChildrenSize(),0,e)}function Pf(t,e){if(de(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(tr(r,t.getChildren()),de(n)&&e===n.getListType())n.append(r),de(o)&&e===o.getListType()&&(tr(n,o.getChildren()),o.remove()),s=n;else if(de(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=wt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Wu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&hn(n)&&hn(o)&&(Wu(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Tce(){const t=ne();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Yh(o,n))e.add(Rc(o));else for(let r=0;r<n.length;r++){const s=n[r];if(xh(s)){const a=xce(s,bo);a!=null&&e.add(Rc(a))}}for(const r of e){let s=r;const a=Gh(r);for(const l of a){const c=Me().setTextStyle(t.style).setTextFormat(t.format);tr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&er(t.anchor,zt(rn(c,"next"))),l.__key===t.focus.key&&er(t.focus,zt(rn(c,"next"))),l.remove()}r.remove()}}}function Jh(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())we(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),de(o.getFirstChild())||n++)}function Ace(t){const e=new Set;if(hn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(hn(o)&&hn(r)){const s=r.getFirstChild();if(de(s)){s.append(t);const a=o.getFirstChild();de(a)&&(tr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(hn(o)){const s=o.getFirstChild();if(de(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(hn(r)){const s=r.getFirstChild();de(s)&&s.append(t)}else if(de(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=wt(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 Nce(t){if(hn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(de(n?n.getParent():void 0)&&we(n)&&de(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=wt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=wt(s);c.append(u),tr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Dce(){const t=ne();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!we(e)||e.getChildrenSize()!==0)return!1;const n=Rc(e),o=e.getParent();de(o)||io(40);const r=o.getParent();let s;if(mt(r))s=Me(),n.insertAfter(s);else{if(!we(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=wt(o.getListType());if(we(s)){const c=It();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!we(u)&&!de(u))break;c=u}c.remove()}(e),!0}function ya(...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 bo=class extends Lt{constructor(n=1,o=void 0,r){super(r);H(this,"__value");H(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();de(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Bce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,r){(function(l,c,u){const d=c.getParent();!de(d)||d.getListType()!=="check"||de(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],f=[],p=c.list,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(...ya(m)),p){const g=u.getParent(),y=de(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=ya(h);u.getChildren().some(y=>de(y))?d.push(...g):f.push(...g)}f.length>0&&ju(l,...f),d.length>0&&Hn(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(U(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(we(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!de(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=wt(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&&(U(n)||io(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(de(r)||io(39),we(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=wt(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&hn(o)&&hn(r)&&(Wu(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Me();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=we(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else r.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const r=this.getParent();return de(r)&&(o=r.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),r=0;for(;we(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&io(117),(n=Math.floor(n))>=0||io(199);let o=this.getIndent();for(;o!==n;)o<n?(Ace(this),o++):(Nce(this),o--);return this}canInsertAfter(n){return we(n)}canReplaceWith(n){return we(n)}canMergeWith(n){return we(n)||cs(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 wt("bullet")}canMergeWhenEmpty(){return!0}};function Bce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Vf(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 Vf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Vf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return ln(new bo(void 0,t))}function we(t){return t instanceof bo}let or=class extends Lt{constructor(n="number",o=1,r){super(r);H(this,"__tag");H(this,"__start");H(this,"__listType");const s=$ce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();de(r)&&o.getListType()===r.getListType()&&Wu(o,r)})(n),Jh(n)},extends:Lt,importDOM:{ol:()=>({conversion:Rf,priority:0}),ul:()=>({conversion:Rf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Ff(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Ff(o,r.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return He(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];we(l)||(s===r&&(s=[...r]),s[a]=It().append(!U(l)||de(l)||l.isInline()?l:Re(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return we(n)}};function Ff(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Fc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,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(...ya(u));for(let h=0;h<a.length;h++)h!==c&&r.push(n.__tag+h)}if(f!==void 0){const h=ya(f);l>1?o.push(...h):r.push(...h)}}r.length>0&&ju(t,...r),o.length>0&&Hn(t,...o)}function Mce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(we(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{de(s)&&e.push(Lf(s))})}else e.push(Lf(o))}return e}function Rf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=wt("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(He(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?wt("check"):wt("bullet")),{after:Mce,node:n}}const $ce={ol:"number",ul:"bullet"};function wt(t="number",e=1){return ln(new or(t,e))}function de(t){return t instanceof or}const Oce=ce("UPDATE_LIST_START_COMMAND"),Xh=ce("INSERT_UNORDERED_LIST_COMMAND"),Qh=ce("INSERT_ORDERED_LIST_COMMAND"),Lce=ce("REMOVE_LIST_COMMAND");function Ice(t){return fs(t.registerCommand(Qh,()=>(If("number"),!0),gi),t.registerCommand(Oce,e=>{const{listNodeKey:n,newStart:o}=e,r=Ke(n);return!!de(r)&&(r.getListType()==="number"&&(r.setStart(o),Jh(r)),!0)},gi),t.registerCommand(Xh,()=>(If("bullet"),!0),gi),t.registerCommand(Lce,()=>(Tce(),!0),gi),t.registerCommand(Hi,()=>Dce(),gi),t.registerNodeTransform(bo,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=ne();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(_o,e=>{const n=e.getParent();if(we(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Pce(t){const e=n=>{const o=n.getParent();if(de(n.getFirstChild())||!de(o))return;const r=qt(n,s=>we(s)&&de(s.getParent())&&we(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(we(r)){const s=r.getPreviousSibling();if(we(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;de(d);){const f=d.getLastChild();if(!we(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(de(l)){const c=Fc(l);c+1<Fc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(or,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(de(r)){for(const s of r.getChildren())if(we(s)){e(s);const a=s.getFirstChild();de(a)&&o.push(a)}}}})}function Vce(t,e){const n=Eh(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!tg.has(s.nodeName)){const a=ng(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Tu&&a.insertAfter(nn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Fce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=Pe().getChildren();for(let r=0;r<o.length;r++)eg(t,o[r],n,e);return n.innerHTML}function eg(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=U(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=Hh(o,e,"clone"));const l=U(a)?a.getChildren():[],c=Nu(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=eg(t,h,p,o);!r&&U(e)&&g&&e.extractWithChild(h,o,"html")&&(r=!0)}if(r&&!s){if((He(d)||Ic(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Ic(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return r}const tg=new Set(["STYLE","SCRIPT"]);function ng(t,e,n,o,r=new Map,s){let a=[];if(tg.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||!mt(l))&&(l!=null&&Bc(l)||o);for(let h=0;h<f.length;h++)p.push(...ng(f[h],e,n,m,new Map(r),l));return d!=null&&(p=d(p)),va(t)&&(p=Rce(t,p,m?()=>{const h=new Tu;return n.push(h),h}:Me)),l==null?p.length>0?a=a.concat(p):va(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Pc(h.nextSibling)&&Pc(h.previousSibling)}(t)&&(a=a.concat(nn())):U(l)&&l.append(...p),a}function Rce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Bc(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Bc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function _a(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 zce(t,e=ne()){return e==null&&_a(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":Fce(t,e)}function Uce(t,e=ne()){return e==null&&_a(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(qce(t,e))}function zf(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 Uf(n,Hce(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 Uf(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=ne();if(Z(u)){const d=l[c];d===`
|
|
30
30
|
`||d===`\r
|
|
31
|
-
`?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function Uf(t,e,n){t.dispatchCommand(dle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=zn(r,"previous");if(a)if(ao(a))s=a.origin;else{const l=mo(a,rn(Ie(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(U(c.origin)&&!c.origin.isInline())break}}if(s&&X(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function og(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=U(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Hh(e,a,"clone"));const l=U(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&_a(58,f.name),U(u)){const p=d.children;Array.isArray(p)||_a(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=og(t,e,d,c.children);!r&&U(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 qce(t,e){const n=[],o=Ie().getChildren();for(let r=0;r<o.length;r++)og(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Hce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=Ule(o);X(r)&&yce(r),e.push(r)}return e}let hr=null;async function qf(t,e,n){if(hr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Hf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Ga,p=>(Lo(p,ClipboardEvent)&&(f(),hr!==null&&(r.clearTimeout(hr),hr=null),u(Hf(t,p,n))),!0),Hle);hr=r.setTimeout(()=>{f(),hr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Hf(t,e,n){if(n===void 0){const r=on(t._window),s=ne();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!us(t,a,l))return!1;n=jce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Wce(o,n),!0)}const rg=[["text/html",zce],["application/x-lexical-editor",Uce]];function jce(t=ne()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=rl();for(const[o,r]of rg){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Wce(t,e){for(const[n]of rg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,m]=c;t.update(()=>{const h=ne();if(Z(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(X(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()),X(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 jf(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const rr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kce=rr&&"documentMode"in document?document.documentMode:null,Gce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Yce=!(!rr||!("InputEvent"in window)||Kce)&&"getTargetRanges"in new window.InputEvent("input"),Jce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Qce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Gce&&!Xce,Zf=ue("DRAG_DROP_PASTE_FILE");let Zu=class ig extends Lt{static getType(){return"quote"}static clone(e){return new ig(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Un(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:eue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(Ue(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Ku().updateFromJSON(e)}insertNewAfter(e,n){const o=Me(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Me();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Ku(){return ln(new Zu)}function zc(t){return t instanceof Zu}let sl=class sg extends Lt{constructor(n,o){super(o);H(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new sg(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];Un(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:gr,priority:0}),h2:n=>({conversion:gr,priority:0}),h3:n=>({conversion:gr,priority:0}),h4:n=>({conversion:gr,priority:0}),h5:n=>({conversion:gr,priority:0}),h6:n=>({conversion:gr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Kf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Kf(n)?{conversion:o=>({node:Io("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(Ue(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Io(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Me():Io(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Me();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Me():Io(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Kf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Io(e),t.style!==null&&(Pu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function eue(t){const e=Ku();return t.style!==null&&(e.setFormat(t.style.textAlign),Pu(t,e)),{node:e}}function Io(t="h1"){return ln(new sl(t))}function ag(t){return t instanceof sl}function Vs(t){let e=null;if(Lo(t,DragEvent)?e=t.dataTransfer:Lo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Gf(t){const e=ne();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=qt(s,u=>U(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 Yf(t){const e=Pr(t);return ke(e)}function tc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function tue(t){return fs(t.registerCommand(Vm,e=>{const n=ne();return!!Nt(n)&&(n.clear(),!0)},be),t.registerCommand(Vo,e=>{const n=ne();return Z(n)?(n.deleteCharacter(e),!0):!!Nt(n)&&(n.deleteNodes(),!0)},be),t.registerCommand(ji,e=>{const n=ne();return!!Z(n)&&(n.deleteWord(e),!0)},be),t.registerCommand(Wi,e=>{const n=ne();return!!Z(n)&&(n.deleteLine(e),!0)},be),t.registerCommand(Er,e=>{const n=ne();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)zf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},be),t.registerCommand(wc,()=>{const e=ne();return!!Z(e)&&(e.removeText(),!0)},be),t.registerCommand(Rt,e=>{const n=ne();return!!Z(n)&&(n.formatText(e),!0)},be),t.registerCommand(vle,e=>{const n=ne();if(!Z(n)&&!Nt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>U(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},be),t.registerCommand(wr,e=>{const n=ne();return!!Z(n)&&(n.insertLineBreak(e),!0)},be),t.registerCommand(Hi,()=>{const e=ne();return!!Z(e)&&(e.insertParagraph(),!0)},be),t.registerCommand(hle,()=>(Vle([Hr()]),!0),be),t.registerCommand(gle,()=>Gf(e=>{const n=e.getIndent();e.setIndent(n+1)}),be),t.registerCommand(W1,()=>Gf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),be),t.registerCommand(Um,e=>{const n=ne();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=$c(n.focus,!0);if(!e.shiftKey&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},be),t.registerCommand(qm,e=>{const n=ne();if(Nt(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===Ie().getChildrenSize()}(n))return e.preventDefault(),!0;const o=$c(n.focus,!1);if(!e.shiftKey&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},be),t.registerCommand(zm,e=>{const n=ne();if(Nt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Bf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if($f(n,!0)){const o=e.shiftKey;return e.preventDefault(),Of(n,o,!0),!0}return!1},be),t.registerCommand(Rm,e=>{const n=ne();if(Nt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Bf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!$f(n,!1)&&(e.preventDefault(),Of(n,o,!1),!0)},be),t.registerCommand(jm,e=>{if(Yf(e.target))return!1;const n=ne();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(Re(s))return!1;const a=Sce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(W1,void 0);if(Wf&&navigator.language==="ko-KR")return!1}else if(!Nt(n))return!1;return e.preventDefault(),t.dispatchCommand(Vo,!0)},be),t.registerCommand(Zm,e=>{if(Yf(e.target))return!1;const n=ne();return!(!Z(n)&&!Nt(n))&&(e.preventDefault(),t.dispatchCommand(Vo,!1))},be),t.registerCommand(ca,e=>{const n=ne();if(!Z(n))return!1;if(tc(n),e!==null){if((Wf||Jce||Qce)&&Yce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},be),t.registerCommand(Wm,()=>{const e=ne();return!!Z(e)&&(t.blur(),!0)},be),t.registerCommand(Gm,e=>{const[,n]=Vs(e);if(n.length>0){const r=jf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=Xa();if(X(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=ra(c);rt(u)}t.dispatchCommand(Zf,n)}return e.preventDefault(),!0}const o=ne();return!!Z(o)},be),t.registerCommand(Ym,e=>{const[n]=Vs(e),o=ne();return!(n&&!Z(o))},be),t.registerCommand(Jm,e=>{const[n]=Vs(e),o=ne();if(n&&!Z(o))return!1;const r=jf(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);ke(s)&&e.preventDefault()}return!0},be),t.registerCommand(Ec,()=>(Jle(),!0),be),t.registerCommand(Ga,e=>(qf(t,Lo(e,ClipboardEvent)?e:null),!0),be),t.registerCommand(ku,e=>(async function(n,o){await qf(o,Lo(n,ClipboardEvent)?n:null),o.update(()=>{const r=ne();Z(r)?r.removeText():Nt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),be),t.registerCommand(_u,e=>{const[,n,o]=Vs(e);return n.length>0&&!o?(t.dispatchCommand(Zf,n),!0):Wr(e.target)&&Du(e.target)?!1:ne()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=ne(),l=Lo(r,InputEvent)||Lo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&zf(l,a,s)},{tag:Sle})}(e,t),!0)},be),t.registerCommand(Hm,e=>{const n=ne();return Z(n)&&tc(n),!1},be),t.registerCommand(Km,e=>{const n=ne();return Z(n)&&tc(n),!1},be))}var nue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
31
|
+
`?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function Uf(t,e,n){t.dispatchCommand(dle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=qn(r,"previous");if(a)if(lo(a))s=a.origin;else{const l=ho(a,rn(Pe(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(U(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 og(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=U(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=Hh(e,a,"clone"));const l=U(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&_a(58,f.name),U(u)){const p=d.children;Array.isArray(p)||_a(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=og(t,e,d,c.children);!r&&U(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 qce(t,e){const n=[],o=Pe().getChildren();for(let r=0;r<o.length;r++)og(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Hce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=Ule(o);Q(r)&&yce(r),e.push(r)}return e}let hr=null;async function qf(t,e,n){if(hr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Hf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=on(r);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const f=t.registerCommand(Ga,p=>(Lo(p,ClipboardEvent)&&(f(),hr!==null&&(r.clearTimeout(hr),hr=null),u(Hf(t,p,n))),!0),Hle);hr=r.setTimeout(()=>{f(),hr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Hf(t,e,n){if(n===void 0){const r=on(t._window),s=ne();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!us(t,a,l))return!1;n=jce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Wce(o,n),!0)}const rg=[["text/html",zce],["application/x-lexical-editor",Uce]];function jce(t=ne()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=rl();for(const[o,r]of rg){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Wce(t,e){for(const[n]of rg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,f,p,m]=c;t.update(()=>{const h=ne();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 jf(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const rr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kce=rr&&"documentMode"in document?document.documentMode:null,Gce=rr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Yce=!(!rr||!("InputEvent"in window)||Kce)&&"getTargetRanges"in new window.InputEvent("input"),Jce=rr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wf=rr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xce=rr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Qce=rr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Gce&&!Xce,Zf=ce("DRAG_DROP_PASTE_FILE");let Zu=class ig extends Lt{static getType(){return"quote"}static clone(e){return new ig(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Hn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:eue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(He(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 Ku().updateFromJSON(e)}insertNewAfter(e,n){const o=Me(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Me();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Ku(){return ln(new Zu)}function zc(t){return t instanceof Zu}let sl=class sg extends Lt{constructor(n,o){super(o);H(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new sg(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];Hn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:gr,priority:0}),h2:n=>({conversion:gr,priority:0}),h3:n=>({conversion:gr,priority:0}),h4:n=>({conversion:gr,priority:0}),h5:n=>({conversion:gr,priority:0}),h6:n=>({conversion:gr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Kf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Kf(n)?{conversion:o=>({node:Io("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(He(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Io(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Me():Io(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Me();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Me():Io(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Kf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Io(e),t.style!==null&&(Pu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function eue(t){const e=Ku();return t.style!==null&&(e.setFormat(t.style.textAlign),Pu(t,e)),{node:e}}function Io(t="h1"){return ln(new sl(t))}function ag(t){return t instanceof sl}function Fs(t){let e=null;if(Lo(t,DragEvent)?e=t.dataTransfer:Lo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Gf(t){const e=ne();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=qt(s,u=>U(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 Yf(t){const e=Pr(t);return ke(e)}function tc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function tue(t){return fs(t.registerCommand(Fm,e=>{const n=ne();return!!Dt(n)&&(n.clear(),!0)},be),t.registerCommand(Fo,e=>{const n=ne();return Z(n)?(n.deleteCharacter(e),!0):!!Dt(n)&&(n.deleteNodes(),!0)},be),t.registerCommand(ji,e=>{const n=ne();return!!Z(n)&&(n.deleteWord(e),!0)},be),t.registerCommand(Wi,e=>{const n=ne();return!!Z(n)&&(n.deleteLine(e),!0)},be),t.registerCommand(Er,e=>{const n=ne();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)zf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},be),t.registerCommand(wc,()=>{const e=ne();return!!Z(e)&&(e.removeText(),!0)},be),t.registerCommand(Rt,e=>{const n=ne();return!!Z(n)&&(n.formatText(e),!0)},be),t.registerCommand(vle,e=>{const n=ne();if(!Z(n)&&!Dt(n))return!1;const o=n.getNodes();for(const r of o){const s=qt(r,a=>U(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},be),t.registerCommand(wr,e=>{const n=ne();return!!Z(n)&&(n.insertLineBreak(e),!0)},be),t.registerCommand(Hi,()=>{const e=ne();return!!Z(e)&&(e.insertParagraph(),!0)},be),t.registerCommand(hle,()=>(Fle([Hr()]),!0),be),t.registerCommand(gle,()=>Gf(e=>{const n=e.getIndent();e.setIndent(n+1)}),be),t.registerCommand(W1,()=>Gf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),be),t.registerCommand(Um,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=$c(n.focus,!0);if(!e.shiftKey&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},be),t.registerCommand(qm,e=>{const n=ne();if(Dt(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===Pe().getChildrenSize()}(n))return e.preventDefault(),!0;const o=$c(n.focus,!1);if(!e.shiftKey&&ke(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},be),t.registerCommand(zm,e=>{const n=ne();if(Dt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Mf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if($f(n,!0)){const o=e.shiftKey;return e.preventDefault(),Of(n,o,!0),!0}return!1},be),t.registerCommand(Rm,e=>{const n=ne();if(Dt(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),Mf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!$f(n,!1)&&(e.preventDefault(),Of(n,o,!1),!0)},be),t.registerCommand(jm,e=>{if(Yf(e.target))return!1;const n=ne();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(Ue(s))return!1;const a=Sce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(W1,void 0);if(Wf&&navigator.language==="ko-KR")return!1}else if(!Dt(n))return!1;return e.preventDefault(),t.dispatchCommand(Fo,!0)},be),t.registerCommand(Zm,e=>{if(Yf(e.target))return!1;const n=ne();return!(!Z(n)&&!Dt(n))&&(e.preventDefault(),t.dispatchCommand(Fo,!1))},be),t.registerCommand(ca,e=>{const n=ne();if(!Z(n))return!1;if(tc(n),e!==null){if((Wf||Jce||Qce)&&Yce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},be),t.registerCommand(Wm,()=>{const e=ne();return!!Z(e)&&(t.blur(),!0)},be),t.registerCommand(Gm,e=>{const[,n]=Fs(e);if(n.length>0){const r=jf(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=Xa();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=ra(c);it(u)}t.dispatchCommand(Zf,n)}return e.preventDefault(),!0}const o=ne();return!!Z(o)},be),t.registerCommand(Ym,e=>{const[n]=Fs(e),o=ne();return!(n&&!Z(o))},be),t.registerCommand(Jm,e=>{const[n]=Fs(e),o=ne();if(n&&!Z(o))return!1;const r=jf(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);ke(s)&&e.preventDefault()}return!0},be),t.registerCommand(Ec,()=>(Jle(),!0),be),t.registerCommand(Ga,e=>(qf(t,Lo(e,ClipboardEvent)?e:null),!0),be),t.registerCommand(ku,e=>(async function(n,o){await qf(o,Lo(n,ClipboardEvent)?n:null),o.update(()=>{const r=ne();Z(r)?r.removeText():Dt(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),be),t.registerCommand(_u,e=>{const[,n,o]=Fs(e);return n.length>0&&!o?(t.dispatchCommand(Zf,n),!0):Wr(e.target)&&Du(e.target)?!1:ne()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=ne(),l=Lo(r,InputEvent)||Lo(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&zf(l,a,s)},{tag:Sle})}(e,t),!0)},be),t.registerCommand(Hm,e=>{const n=ne();return Z(n)&&tc(n),!1},be),t.registerCommand(Km,e=>{const n=ne();return Z(n)&&tc(n),!1},be))}var nue={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,"&").replace(/</g,"<").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,S){w[S]=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 S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);k.hasOwnProperty(T)||(E[T]=b[T])}var N=w[v];return w[v]=E,l.languages.DFS(l.languages,function(O,A){A===N&&O!=v&&(this[O]=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 S=_[T],N=l.util.type(S);N==="Object"&&!b[E(S)]?(b[E(S)]=!0,v(S,k,null,b)):N==="Array"&&!b[E(S)]&&(b[E(S)]=!0,v(S,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,S={element:v,language:w,grammar:b,code:T};function N(A){S.highlightedCode=A,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),k&&k.call(S.element)}if(l.hooks.run("before-sanity-check",S),E=S.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),k&&k.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){N(l.util.encode(S.code));return}if(_&&o.Worker){var O=new Worker(l.filename);O.onmessage=function(A){N(A.data)},O.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else N(l.highlight(S.code,S.grammar,S.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 S in b.attributes)T+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,""")+'"';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 S=k[T];S=Array.isArray(S)?S:[S];for(var N=0;N<S.length;++N){if(E&&E.cause==T+","+N)return;var O=S[N],A=O.inside,D=!!O.lookbehind,M=!!O.greedy,L=O.alias;if(M&&!O.pattern.global){var I=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,I+"g")}for(var j=O.pattern||O,R=w.next,q=b;R!==_.tail&&!(E&&q>=E.reach);q+=R.value.length,R=R.next){var F=R.value;if(_.length>v.length)return;if(!(F instanceof c)){var Q=1,P;if(M){if(P=u(j,q,v,D),!P||P.index>=v.length)break;var z=P.index,re=P.index+P[0].length,oe=q;for(oe+=R.value.length;z>=oe;)R=R.next,oe+=R.value.length;if(oe-=R.value.length,q=oe,R.value instanceof c)continue;for(var G=R;G!==_.tail&&(oe<re||typeof G.value=="string");G=G.next)Q++,oe+=G.value.length;Q--,F=v.slice(q,oe),P.index-=q}else if(P=u(j,0,F,D),!P)continue;var z=P.index,te=P[0],de=F.slice(0,z),xe=F.slice(z+te.length),V=q+F.length;E&&V>E.reach&&(E.reach=V);var ee=R.prev;de&&(ee=p(_,ee,de),q+=de.length),m(_,ee,Q);var ae=new c(T,A?l.tokenize(te,A):te,L,te);if(R=p(_,ee,ae),xe&&p(_,R,xe),Q>1){var Ze={cause:T+","+N,reach:V};d(v,_,k,R.prev,q,Ze),E&&Ze.reach>E.reach&&(E.reach=Ze.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 yt<"u"&&(yt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&/,"&"))}),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),S=E[0],N=E[1]==null?T.length:E[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(S,N).join(`
|
|
39
|
-
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+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)}}()})(nue);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(/&/,"&"))});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://,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 lg(t,e){for(const n of t.childNodes){if(Ue(n)&&n.tagName===e)return!0;lg(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let al=class cg extends Lt{constructor(n,o){super(o);H(this,"__language");H(this,"__theme");H(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new cg(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");Un(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Un(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||lg(n,"BR"))?{conversion:Jf,priority:1}:null,div:()=>({conversion:oue,priority:1}),pre:()=>({conversion:Jf,priority:0}),table:n=>nc(n)?{conversion:rue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&nc(r)?{conversion:Xf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&nc(o)?{conversion:Xf,priority:3}:null}}}static importJSON(n){return vn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
|
|
38
|
+
*/var n=function(o){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&").replace(/</g,"<").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,S){w[S]=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 S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);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 S=_[T],N=l.util.type(S);N==="Object"&&!b[E(S)]?(b[E(S)]=!0,v(S,k,null,b)):N==="Array"&&!b[E(S)]&&(b[E(S)]=!0,v(S,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,S={element:v,language:w,grammar:b,code:T};function N(A){S.highlightedCode=A,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),k&&k.call(S.element)}if(l.hooks.run("before-sanity-check",S),E=S.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),k&&k.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){N(l.util.encode(S.code));return}if(_&&o.Worker){var L=new Worker(l.filename);L.onmessage=function(A){N(A.data)},L.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else N(l.highlight(S.code,S.grammar,S.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 S in b.attributes)T+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,""")+'"';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 S=k[T];S=Array.isArray(S)?S:[S];for(var N=0;N<S.length;++N){if(E&&E.cause==T+","+N)return;var L=S[N],A=L.inside,D=!!L.lookbehind,B=!!L.greedy,I=L.alias;if(B&&!L.pattern.global){var V=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,V+"g")}for(var j=L.pattern||L,R=w.next,q=b;R!==_.tail&&!(E&&q>=E.reach);q+=R.value.length,R=R.next){var F=R.value;if(_.length>v.length)return;if(!(F instanceof c)){var ee=1,P;if(B){if(P=u(j,q,v,D),!P||P.index>=v.length)break;var z=P.index,re=P.index+P[0].length,oe=q;for(oe+=R.value.length;z>=oe;)R=R.next,oe+=R.value.length;if(oe-=R.value.length,q=oe,R.value instanceof c)continue;for(var G=R;G!==_.tail&&(oe<re||typeof G.value=="string");G=G.next)ee++,oe+=G.value.length;ee--,F=v.slice(q,oe),P.index-=q}else if(P=u(j,0,F,D),!P)continue;var z=P.index,te=P[0],ue=F.slice(0,z),xe=F.slice(z+te.length),Ve=q+F.length;E&&Ve>E.reach&&(E.reach=Ve);var ut=R.prev;ue&&(ut=p(_,ut,ue),q+=ue.length),m(_,ut,ee);var ye=new c(T,A?l.tokenize(te,A):te,I,te);if(R=p(_,ut,ye),xe&&p(_,R,xe),ee>1){var dt={cause:T+","+N,reach:Ve};d(v,_,k,R.prev,q,dt),E&&dt.reach>E.reach&&(E.reach=dt.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 bt<"u"&&(bt.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(/&/,"&"))}),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),S=E[0],N=E[1]==null?T.length:E[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),N<0&&(N+=T.length),N=Math.max(0,Math.min(N,T.length)),b=T.slice(S,N).join(`
|
|
39
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+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)}}()})(nue);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(/&/,"&"))});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://,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 lg(t,e){for(const n of t.childNodes){if(He(n)&&n.tagName===e)return!0;lg(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let al=class cg extends Lt{constructor(n,o){super(o);H(this,"__language");H(this,"__theme");H(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new cg(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");Hn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Hn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||lg(n,"BR"))?{conversion:Jf,priority:1}:null,div:()=>({conversion:oue,priority:1}),pre:()=>({conversion:Jf,priority:0}),table:n=>nc(n)?{conversion:rue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&nc(r)?{conversion:Xf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&nc(o)?{conversion:Xf,priority:3}:null}}}static importJSON(n){return yn().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=Me();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(
|
|
41
|
+
`&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Me();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(Q(c)){let u=sue(c);const d=[];for(;;)if(Ya(u))d.push(Hr()),u=u.getNextSibling();else{if(!pg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(fg(" ".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=[nn(),...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(ll(c)){const{offset:u}=n.anchor;c.splice(u,0,[nn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Me();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 yn(t,e){return sce(al).setLanguage(t).setTheme(e)}function ll(t){return t instanceof al}function Jf(t){return{node:yn(t.getAttribute(ki))}}function oue(t){const e=t,n=Qf(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(Qf(r))return!0;r=r.parentElement}return!1}(e)?{node:n?yn():null}:{node:null}}function rue(){return{node:yn()}}function Xf(){return{node:null}}function Qf(t){return t.style.fontFamily.match("monospace")!==null}function nc(t){return t.classList.contains("js-file-line-container")}let ug=class dg extends _o{constructor(n="",o,r){super(n,r);H(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new dg(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=oc(n.theme,this.__highlightType);return Hn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=oc(r.theme,n.__highlightType),l=oc(r.theme,this.__highlightType);return a!==l&&(a&&ju(o,a),l&&Hn(o,l)),s}static importJSON(n){return fg().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 yn()}};function oc(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function fg(t="",e){return ln(new ug(t,e))}function pg(t){return t instanceof ug}function iue(t,e){let n=t;for(let o=ot(t,e);o&&(pg(o.origin)||Ya(o.origin));o=Ece(o))n=o.origin;return n}function sue(t){return iue(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 aue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);H(this,"__url");H(this,"__target");H(this,"__rel");H(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Kr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),
|
|
44
|
-
`):
|
|
45
|
-
`),l=a.length,c=s||
|
|
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 aue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);H(this,"__url");H(this,"__target");H(this,"__rel");H(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Kr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Hn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Oh(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:lue,priority:1})}}static importJSON(n){return Ca().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=tp(n);try{const o=new URL(tp(n));if(!aue.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=Ca(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 lue(t){let e=null;if(Oh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=Ca(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function Ca(t="",e){return ln(new Kr(t,e))}function cue(t){return t instanceof Kr}class cl extends Kr{constructor(n="",o={},r){super(n,o,r);H(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new cl(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 ep().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(U(r)){const s=ep(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function ep(t="",e){return ln(new cl(t,e))}function uue(t){return t instanceof cl}const due=/^\+?[0-9\s()-]{5,}$/;function tp(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:due.test(t)?`tel:${t}`:`https://${t}`}function Uc(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 Gu(t){const e=Uc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const ba=/[!-/:-@[-`{-~\s]/,fue=/^\s{0,3}$/;function qc(t){if(!cs(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&fue.test(e.getTextContent())}function pue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>ka(a,n,o));if(s!=null)return s}return U(t)?ka(t,n,o):ke(t)?t.getTextContent():null}function ka(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=>ka(d,e,n,o,[...r,...o]),(d,f)=>np(d,f,e,o,r));if(u!=null){s.push(u);continue e}}ao(l)?s.push(`
|
|
44
|
+
`):Q(l)?s.push(np(l,l.getTextContent(),e,o,r)):U(l)?s.push(ka(l,e,n,o,r)):ke(l)&&s.push(l.getTextContent())}return s.join("")}function np(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=op(t,!0),d=op(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;zs(t,m)&&!f.has(m)&&(f.add(m),zs(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=zs(t,o[p].format),h=zs(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 op(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(U(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(!U(n))return null}return null}function zs(t,e){return Q(t)&&t.hasFormat(e)}function mue(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||ba.test(m))&&(!h||ba.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 Bo(t){return Q(t)&&!t.hasFormat("code")}function Mo(t,e,n){let o=mue(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);Bo(a.nodeAfter)&&Mo(a.nodeAfter,e,n),Bo(a.nodeBefore)&&Mo(a.nodeBefore,e,n),Bo(a.transformedNode)&&Mo(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;Bo(a.nodeAfter)&&Mo(a.nodeAfter,e,n),Bo(a.nodeBefore)&&Mo(a.nodeBefore,e,n),Bo(a.transformedNode)&&Mo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function hue(t,e=!1){const n=Gu(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||Pe();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=gue(a,d,n.multilineElement,c);p?d=m:vue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&qc(d)&&c.getChildrenSize()>1&&d.remove();ne()!==null&&c.selectStart()}}function gue(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 vue(t,e,n,o,r,s){const a=Re(t),l=Me();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(Mo(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(cs(c)||zc(c)||de(c))){let u=c;if(de(c)){const d=c.getLastDescendant();u=d==null?null:qt(d,we)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[nn(),...l.getChildren()]),l.remove())}}}function yue(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 mg=/^(\s*)(\d{1,})\.\s/,hg=/^(\s*)[-*+]\s/,_ue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Hc=/^(#{1,6})\s/,gg=/^>\s/,vg=/^[ \t]*```([\w-]+)?/,jc=/[ \t]*```$/,Cue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,bue=/^(?:\|)(.+)(?:\|)\s?$/,kue=/^(\| ?:?-*:? ?)+\|\s?$/,rp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,ip=/^<\/[a-z_][\w-]*\s*>/i,sp=t=>new RegExp(`(?:${t.source})$`,t.flags),wi=rle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),yg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},_g=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=It(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==wi.parse(c)?void 0:c;if(de(a)&&a.getListType()===t){u&&Ul(a,wi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(de(s)&&s.getListType()===t)u&&Ul(s,wi,u),s.append(l),e.remove();else{const f=wt(t,t==="number"?Number(o[2]):void 0);u&&Ul(f,wi,u),f.append(l),e.replace(f)}l.append(...n),r||l.select(0,0);const d=function(f){const p=f.match(/\t/g),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)},Yu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(we(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(de(f)){o.push(Yu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Dm(t,wi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
|
|
46
46
|
`)},Cg={dependencies:[sl],export:(t,e)=>{if(!ag(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Hc,replace:yg(t=>{const e="h"+t[1].length;return Io(e)}),type:"element"},wue={dependencies:[Zu],export:(t,e)=>{if(!zc(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:gg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(zc(s))return s.splice(s.getChildrenSize(),0,[nn(),...e]),void t.remove()}const r=Ku();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},bg={dependencies:[al],export:t=>{if(!ll(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
|
49
|
-
`+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:jc},regExpStart:vg,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=
|
|
50
|
-
`)}const c=
|
|
49
|
+
`+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:jc},regExpStart:vg,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=yn(),l=n[1]+r[0]):(a=yn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=yn(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=Re(l);a.append(c),t.append(a)}else e&&yg(c=>yn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},kg={dependencies:[or,bo],export:(t,e)=>de(t)?Yu(t,e,0):null,regExp:hg,replace:_g("bullet"),type:"element"},wg={dependencies:[or,bo],export:(t,e)=>de(t)?Yu(t,e,0):null,regExp:mg,replace:_g("number"),type:"element"},Eg={format:["code"],tag:"`",type:"text-format"},Eue={format:["highlight"],tag:"==",type:"text-format"},xg={format:["bold","italic"],tag:"***",type:"text-format"},xue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Sg={format:["bold"],tag:"**",type:"text-format"},Sue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Tg={format:["strikethrough"],tag:"~~",type:"text-format"},Ag={format:["italic"],tag:"*",type:"text-format"},Tue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Aue={dependencies:[Kr],export:(t,e,n)=>{if(!cue(t)||uue(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=Ca(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=Re(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Re(u)),d},trigger:")",type:"text-match"},Nue=[Cg,wue,kg,wg],Due=[bg],Bue=[Eg,xg,xue,Sg,Sue,Eue,Ag,Tue,Tg],Mue=[Aue],Ju=[...Nue,...Due,...Bue,...Mue];function ap(t,e,n){const o=n.length;for(let r=e;r>=o;r--){const s=r-o;if(Ng(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Ng(t,e,n,o,r){for(let s=0;s<r;s++)if(t[e+s]!==n[o+s])return!1;return!0}function $ue(t,e=Ju){const n=Gu(e),o=Uc(n.textFormat,({tag:a})=>a[a.length-1]),r=Uc(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)||yue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!mt(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(!mt(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&&!Ng(p,_,C,0,v)||p[_-1]===" ")continue;const k=p[m+1];if(y.intraword===!1&&k&&!ba.test(k))continue;const w=u;let b=w,E=ap(p,_,C),T=b;for(;E<0&&(T=T.getPreviousSibling())&&!ao(T);)if(Q(T)){if(T.hasFormat("code"))continue;const j=T.getTextContent();b=T,E=ap(j,j.length,C)}if(E<0||b===w&&E+v===_)continue;const S=b.getTextContent();if(E>0&&S[E-1]===h)continue;const N=S[E-1];if(y.intraword===!1&&N&&!ba.test(N))continue;const L=w.getTextContent(),A=L.slice(0,_)+L.slice(m+1);w.setTextContent(A);const D=b===w?A:S;b.setTextContent(D.slice(0,E)+D.slice(E+v));const B=ne(),I=Xa();it(I);const V=m-v*(b===w?2:1)+1;I.anchor.set(b.__key,E,"text"),I.focus.set(w.__key,V,"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 Z(B)&&(I.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(ah)||a.has(fa)||t.isComposing())return;const d=c.read(ne),f=u.read(ne);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(!Bo(h))return;const g=h.getParent();g===null||ll(g)||s(g,h,d.anchor.offset)})})}function Oue(t,e=Ju,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];Cue.test(p)?d.push(p):vg.test(p)||jc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||Hc.test(m)||Hc.test(p)||gg.test(p)||mg.test(p)||hg.test(p)||_ue.test(p)||bue.test(p)||kue.test(p)||!l||rp.test(p)||ip.test(p)||sp(ip).test(m)||sp(rp).test(m)||jc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
|
|
52
|
-
`)}(t,r);return hue(e,o)(s,n)}function Lue(t=Ju,e,n=!1){return function(r,s=!1){const a=Gu(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||
|
|
52
|
+
`)}(t,r);return hue(e,o)(s,n)}function Lue(t=Ju,e,n=!1){return function(r,s=!1){const a=Gu(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||Pe()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=pue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!qc(h)&&!qc(p[m-1])?`
|
|
53
53
|
`.concat(g):g)}return f.join(`
|
|
54
|
-
`)}}(t,n)(e)}var Iue=process.env.NODE_ENV==="production",rc="Invariant failed";function Pue(t,e){if(!t){if(Iue)throw new Error(rc);var n=typeof e=="function"?e():e,o=n?"".concat(rc,": ").concat(n):rc;throw new Error(o)}}const Dg=Symbol("LexicalEditor"),Fue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Wle({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=Ie();if(v.isEmpty()){const _=Me();v.append(_);const k=wce?document.activeElement:null;(ne()!==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(()=>{Ie().isEmpty()&&C(y)},l);break}}}return i.provide(Dg,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 Gr(){const t=i.inject(Dg,null);return t||Pue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Vue(t,e){if(t==null)return{};var n=Rue(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 Rue(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 zue=(()=>{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(()=>Vue(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 Uue(){return Ie().getTextContent()}function que(t,e=!0){if(t)return!1;let n=Uue();return e&&(n=n.trim()),n===""}function Hue(t){if(!que(t,!1))return!1;const e=Ie().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(ke(r))return!1;if(U(r)){if(!cs(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function Mg(t){return()=>Hue(t)}function jue(t){return t.getEditorState().read(Mg(t.isComposing()))}function Bg(t){const e=t.getEditorState().read(Mg(t.isComposing())),n=i.ref(e);function o(){const r=jue(t);n.value=r}return i.onMounted(()=>{const r=fs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Wue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Wue(t,r,n[r])})}return t}function Kue(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 Gue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Yue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const s=Gr(),a=i.ref(!1),l=Bg(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(zue),i.mergeProps({editor:i.unref(s)},Gue(Zue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function Jue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(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||Re(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)&&X(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,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 Xue(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(fa))return o=0,n=d,2;const f=Jue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(xle);if(!h&&m&&u.has(Ai))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const 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"||!X(k)||!X(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 lp(t){t.undoStack=[],t.redoStack=[],t.current=null}function Que(t,e,n){const o=Xue(t,n);return fs(t.registerCommand(Cu,()=>(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($s,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),be),t.registerCommand(bu,()=>(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($s,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),be),t.registerCommand(_le,()=>(lp(e),!1),be),t.registerCommand(Cle,()=>(lp(e),t.dispatchCommand(Bs,!1),t.dispatchCommand($s,!1),!0),be),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($s,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function ede(){return{current:null,redoStack:[],undoStack:[]}}function tde(t,e,n){const o=i.computed(()=>i.toValue(e)||ede());i.watchEffect(r=>{const s=Que(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const nde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return tde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ode(t){i.onMounted(()=>{const e=Ice(t);i.onUnmounted(()=>{e()})})}const rde=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([or,Co]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Pce(s);a(l)}),ode(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function ide(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 sde=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=ide(t);return()=>e.value}});function ade(t){i.onMounted(()=>{const e=fs(tue(t),Zce(t));i.onUnmounted(e)})}const lde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Bg(r);return ade(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(sde))],64))}});return t.__vue_vine=!0,t})(),ic=[Cg,bg,kg,wg,xg,Sg,Ag,Tg,Eg],cde={class:"ao-lexical-editor__placeholder"},$g=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:[or,Co,sl,al],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:()=>{Oue(o.initialMarkdown||"",ic)},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=Gr();let L=null,I=null;function j(){M.getEditorState().read(()=>{const R=ne();if(!Z(R))return;D("selectionChange",R.clone());const q=R.anchor.getNode(),F=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(ag(F)){const Q=F.getTag();if(Q==="h1"||Q==="h2"||Q==="h3"){D("blockStyleChange",Q);return}}if(ll(F)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",M),j(),I=$ue(M,ic),L=M.registerUpdateListener(()=>{j()})}),i.onUnmounted(()=>{I==null||I(),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 I of L)if(I.kind==="file"&&I.type.startsWith("image/")){const j=I.getAsFile();if(j){const R=g(j);M.push(R)}}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(),I=String(M.getMonth()+1).padStart(2,"0"),j=String(M.getDate()).padStart(2,"0"),R=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 Q=`pasted-image-${L}-${I}-${j}-${R}${q}.${F}`;return new File([A],Q,{type:A.type})}function y(){a.value&&rt(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(Rt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Xh,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Qh,void 0),A.focus())}function T(A){C(()=>{const D=ne();if(Z(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){ec(D,()=>Me());return}if(A==="code"){ec(D,()=>vn());return}ec(D,()=>Io(A))}}),l.value=A}function S(){const A=s.value;return A?A.getEditorState().read(()=>Lue(ic)):""}function N(){const A=s.value;A&&A.update(()=>{const D=Ie();D.clear(),D.append(Me())})}function O(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:k,toggleInlineCode:w,insertBulletList:b,insertNumberedList:E,setBlockStyle:T,getMarkdown:S,clear:N,focus:O,blockStyle:l}),(A,D)=>(i.openBlock(),i.createBlock(i.unref(Fue),{"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(lde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Yue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",cde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(nde)),i.createVNode(i.unref(rde)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=M=>l.value=M),onSelectionChange:p})]),_:3}))}});function ude(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:$p(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=ne();if(!Z(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(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=ne();if(!Z(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!X(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 S=b+E.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"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 dde={key:0,class:"ao-comment-editor__toolbar"},fde=["onClick"],Og=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}=ude(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(),S()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function S(){g(),r("cancel")}function N(){var A;(A=s.value)==null||A.clear(),g()}function O(){var A;(A=s.value)==null||A.focus()}return e({submit:T,cancel:S,reset:N,focus:O}),(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",dde,[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($g,{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:I=>i.unref(m)(M.name)}," @"+i.toDisplayString(M.name),43,fde))),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(ve,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const pde={class:"ao-comment"},mde={class:"ao-comment__created-at"},hde={class:"ao-comment__body"},gde={class:"ao-comment__content-wrapper"},vde={key:0,class:"ao-comment__footer"},yde=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&&Li(n.editedAt),g=Li(n.createdAt),y=new Date,C=h??g;return C&&R7(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",pde,[i.createElementVNode("span",mde,i.toDisplayString(c.value),1),r.value?(i.openBlock(),i.createBlock(qn,{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",hde,[i.createElementVNode("div",gde,[s.value?(i.openBlock(),i.createBlock(Og,{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(bm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",vde,[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 _de={class:"ao-comments__new"},Cde={key:0,class:"ao-comments__list"},bde=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)=>Dy(Li(f.createdAt),Li(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var m;if(!f.trim())return;const p=Ed(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=Ed(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",_de,[i.createVNode(Og,{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",Cde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(yde,{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 kde=["aria-label"],wde={class:"ao-file-preview__actions"},Ede=["aria-label"],xde={key:0,class:"ao-file-preview__loading"},Sde=["src","alt"],Tde=["src","title"],Ade={key:3,class:"ao-file-preview__fallback"},Nde={class:"ao-file-preview__fallback-title"},Dde={class:"ao-file-preview__fallback-filename"},Mde=["aria-label"],Bde={key:2,class:"ao-file-preview__info"},$de=["title"],Ode={key:0,class:"ao-file-preview__info-counter"},Lde={key:3,class:"ao-file-preview__info"},Ide={class:"ao-file-preview__info-counter"},Pde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){wn();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,O;return((O=(N=c.value)==null?void 0:N.mimeType)==null?void 0:O.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,O=++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(O!==l)return;if(!A.size)throw new Error("Empty file received");r.value=URL.createObjectURL(A)}catch(A){if(O!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{O===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 O=document.createElement("a");O.href=N.url,O.download=N.name,O.target="_blank",O.rel="noopener noreferrer",document.body.appendChild(O),O.click(),O.remove()}function E(){v(),a.value=!0}function T(){++l,v(),o("close")}function S(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",S)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(N,O)=>{var A,D,M,L,I,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",wde,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(ve,{name:"DownloadRounded",size:"sm"}),O[2]||(O[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(ve,{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(ve,{name:"ArrowBackRounded",size:"lg"})],8,Ede)),i.createElementVNode("div",{class:"ao-file-preview__content",onClick:O[1]||(O[1]=i.withModifiers(()=>{},["stop"]))},[s.value?(i.openBlock(),i.createElementBlock("div",xde,[...O[3]||(O[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,Sde)):g.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:O[0]||(O[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,Tde)])):(i.openBlock(),i.createElementBlock("div",Ade,[i.createVNode(ve,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Nde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Dde,i.toDisplayString((L=c.value)==null?void 0:L.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(ve,{name:"ArrowForwardRounded",size:"lg"})],8,Mde)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Bde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(I=c.value)==null?void 0:I.name},i.toDisplayString((j=c.value)==null?void 0:j.name),9,$de),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Ode,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Lde,[i.createElementVNode("span",Ide,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,kde)])}}});const Lg=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(Zc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),Fde=i.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const Vde=["onClick"],Rde={class:"tab-button__label"},zde={key:0,class:"tab-button__badge"};function Ude(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",Rde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",zde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,Vde))),128))],2)}const ps=ie(Fde,[["render",Ude],["__scopeId","data-v-3d268d7b"]]),qde={class:"ao-rich-text-editor"},Hde={class:"ao-rich-text-editor__toolbar"},jde=["value"],Wde={class:"ao-rich-text-editor__actions"},Zde=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",qde,[i.createVNode($g,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Hde,[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,jde),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",Wde,[i.createVNode(me,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(me,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Kde={class:"ao-activity-details"},Gde={class:"ao-activity-details__main"},Yde={class:"ao-activity-details__header"},Jde={key:1,class:"ao-activity__category"},Xde={class:"ao-feed__activity-details__header"},Qde={key:0,class:"ao-field ao-feed__activity-details__project"},e1e={class:"ao-field__label"},t1e={key:1,class:"ao-field ao-feed__activity-details__project"},n1e={class:"ao-field__label"},o1e={class:"ao-activity-details__content"},r1e={class:"ao-activity-details__tab-content"},i1e={class:"ao-fieldset"},s1e={class:"ao-field__row"},a1e={class:"ao-activity-details__tab-content"},l1e={class:"ao-fieldset"},c1e={class:"ao-fieldset__body"},u1e={class:"ao-activity-details__tab-content"},d1e={key:0,class:"ao-fieldset"},f1e={class:"ao-activity-details__aside"},p1e={class:"ao-activity-details__close-button"},m1e={key:0,class:"ao-activity-details__aside-section"},h1e={class:"ao-field"},g1e={class:"ao-field__label"},v1e={class:"ao-activity-details__aside-section"},y1e={class:"ao-field ao-field--multiselect"},_1e={class:"assignee-inline"},C1e={class:"ao-field__label"},b1e={class:"ao-activity-details__aside-section"},k1e={key:0,class:"ao-field__row"},w1e={class:"ao-field"},E1e={class:"ao-field__label"},x1e=["readonly"],S1e={class:"ao-activity-details__aside-section"},T1e={class:"ao-field__row"},A1e={class:"ao-field ao-field--inline"},N1e={class:"ao-field__label"},D1e=["readonly"],M1e={class:"ao-field__row"},B1e={class:"ao-field ao-field--inline"},$1e={class:"ao-field__label"},O1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},L1e={class:"ao-activity-details__aside-section"},I1e={class:"ao-fieldset ao-activity-details__aside-section"},P1e={class:"ao-fieldset__title"},F1e={class:"ao-fieldset__body"},V1e={class:"ao-field__row"},R1e={class:"ao-field ao-field--multiselect"},z1e={class:"ao-field__label"},U1e={class:"ao-field__row"},q1e={class:"ao-field ao-field--multiselect"},H1e={class:"ao-field__label"},Xu=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{},loadAttachmentPreview:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=wn(),s=i.ref("description"),a=i.computed(()=>{var V,ee;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((V=n.activity.tasks)==null?void 0:V.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((ee=n.activity.comments)==null?void 0:ee.length)??0}]}),l=i.computed(()=>{var V;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((V=n.activity.assignee)==null?void 0:V.id):!1}),c=i.ref(!1),u=i.ref(null),d=V=>{o("update:activity",{id:n.activity.id,name:V})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=V=>{o("update:activity",{id:n.activity.id,description:V}),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(V){o("update:activity",{id:n.activity.id,estimation:V})}}),y=i.computed({get(){var ee;const V=(ee=n.timeTrackingData)==null?void 0:ee[n.activity.id];return(V==null?void 0:V.timeSpent)??0},set(){}}),C=i.computed(()=>{var ee;return((ee=n.activity.project)==null?void 0:ee.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var ee;const V=(ee=n.activity.project)==null?void 0:ee.estimationUnit;return Na(y.value,V)}),_=i.computed({get(){return n.activity.important??!1},set(V){o("update:activity",{id:n.activity.id,important:V})}});i.computed({get(){return n.activity.private??!1},set(V){o("update:activity",{id:n.activity.id,private:V})}});const k=i.computed({get(){return n.activity.deadline},set(V){o("update:activity",{id:n.activity.id,deadline:V})}});i.computed(()=>{var V;return(V=n.activityTypes)==null?void 0:V.map(ee=>({label:ee.name,value:ee.id}))}),i.computed({get(){var V;return(V=n.activity.type)==null?void 0:V.id},set(V){o("update:activity",{id:n.activity.id,typeId:V})}});const w=i.computed(()=>n.templateActivities.filter(V=>V.id!==n.activity.id).map(V=>({label:V.name,value:V.id}))),b=i.computed({get(){var V;return(V=n.activity.dependingOn)==null?void 0:V.map(ee=>ee.id)},set(V){V&&o("update:activity",{id:n.activity.id,dependingOn:V})}}),E=i.computed(()=>w.value.map(V=>{var ee;return{...V,disabled:(ee=n.activity.blocking)==null?void 0:ee.some(ae=>ae.id===V.value)}})),T=i.computed({get(){var V;return(V=n.activity.blocking)==null?void 0:V.map(ee=>ee.id)},set(V){V&&o("update:activity",{id:n.activity.id,blocking:V})}}),S=i.computed(()=>w.value.map(V=>{var ee;return{...V,disabled:(ee=n.activity.dependingOn)==null?void 0:ee.some(ae=>ae.id===V.value)}})),N=V=>{o("addSubtask",V)},O=V=>{o("updateSubtask",V)},A=V=>{o("deleteSubtask",V)};function D(){n.userId?I.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function M(V){I.value=[V]}const L=i.computed(()=>{var ee;const V=new Map;return(ee=n.users)==null||ee.forEach(ae=>{V.has(ae.id)||V.set(ae.id,ae)}),Array.from(V.values()).map(ae=>({label:`${ae.firstName} ${ae.lastName}`,value:ae.id,avatar:ae.avatarUrl}))}),I=i.computed({get(){var V,ee;return(V=n.activity.assignee)!=null&&V.id?[(ee=n.activity.assignee)==null?void 0:ee.id]:[]},set(V){o("update:activity",{id:n.activity.id,assigneeId:V[0]??null})}}),j=V=>{o("addFiles",{activityId:n.activity.id,files:V})},R=V=>{j(V)},q=V=>{o("removeFile",{activityId:n.activity.id,file:V})},F=i.computed(()=>n.projects.map(V=>({value:V.id,label:V.name}))),Q=i.computed(()=>{var ee,ae,Ze;const V=(Ze=(ae=(ee=n.activity)==null?void 0:ee.project)==null?void 0:ae.phases)==null?void 0:Ze.reduce((ye,_e)=>[...ye,..._e.milestones],[]);return V==null?void 0:V.map(ye=>({value:ye.id,label:ye.name}))}),P=V=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:V})},re=V=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:V})},oe=i.computed(()=>{var V;return(V=n.statuses)==null?void 0:V.map(ee=>({value:ee.id,label:ee.name}))}),G=V=>{o("update:activity",{id:n.activity.id,statusId:V})},z=V=>{o("addComment",{...V,activityId:n.activity.id})},te=V=>{o("updateComment",V)},de=V=>{o("removeComment",V)};i.computed(()=>{var V,ee;return((V=n.activity.createdBy)==null?void 0:V.firstName)&&((ee=n.activity.createdBy)==null?void 0:ee.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function xe(){const V=window.location.origin,ee=n.activity.slug,ae=`${V}/activity-feed/slug/${ee}`;navigator.clipboard.writeText(ae).then(()=>{console.log(`Link copied to clipboard: ${ae}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(V,ee)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ma,{onClose:ee[9]||(ee[9]=ae=>V.$emit("close"))},{default:i.withCtx(()=>{var ae,Ze,ye;return[i.createElementVNode("div",Kde,[i.createElementVNode("div",Gde,[i.createElementVNode("div",Yde,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:xe},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",Jde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(ct,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),i.createElementVNode("div",Xde,[F.value?(i.openBlock(),i.createElementBlock("label",Qde,[i.createElementVNode("span",e1e,i.toDisplayString(V.$t("activity.project.label")),1),i.createVNode(Dt,{options:F.value,value:(ae=t.activity.project)==null?void 0:ae.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:P},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),Q.value?(i.openBlock(),i.createElementBlock("label",t1e,[i.createElementVNode("span",n1e,i.toDisplayString(V.$t("activity.milestone.label")),1),i.createVNode(Dt,{options:Q.value,value:(Ze=t.activity.milestone)==null?void 0:Ze.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:re},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(V.$slots,"header")]),i.createElementVNode("div",o1e,[i.createVNode(ps,{modelValue:s.value,"onUpdate:modelValue":ee[0]||(ee[0]=_e=>s.value=_e),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",r1e,[i.createElementVNode("fieldset",i1e,[i.createElementVNode("div",s1e,[i.createVNode(W9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:j,onRemove:q,onPreview:ee[1]||(ee[1]=_e=>u.value=_e)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Zde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:R},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(bm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",a1e,[i.createElementVNode("fieldset",l1e,[i.createElementVNode("div",c1e,[i.createVNode(O9,{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:N,onUpdate:O,onDelete:A},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",u1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",d1e,[i.createVNode(bde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:z,onUpdateComment:te,onRemoveComment:de},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",f1e,[i.createElementVNode("div",p1e,[i.createVNode(ve,{name:"CloseRounded",onClick:ee[2]||(ee[2]=_e=>V.$emit("close"))})]),oe.value?(i.openBlock(),i.createElementBlock("div",m1e,[i.createElementVNode("label",h1e,[i.createElementVNode("span",g1e,i.toDisplayString(V.$t("activity.status.label")),1),i.createVNode(Dt,{class:"ao-activity-details__multiselect",options:oe.value,value:(ye=t.activity.status)==null?void 0:ye.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:G},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",v1e,[i.createElementVNode("div",y1e,[i.createElementVNode("div",_1e,[i.createElementVNode("span",C1e,i.toDisplayString(V.$t("activity.assignee.label")),1),i.createVNode(me,{label:V.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:D},null,8,["label"])]),i.createVNode(Dt,{modelValue:I.value,"onUpdate:modelValue":ee[3]||(ee[3]=_e=>I.value=_e),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:L.value,"close-on-select":!0,searchable:!0,placeholder:V.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:M},{tag:i.withCtx(({option:_e,handleTagRemove:Se})=>[i.createVNode(qn,{"user-name":_e.label,"avatar-url":_e.avatar,"is-closable":!0,onClose:it=>Se(_e,it)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",b1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",k1e,[i.createElementVNode("label",w1e,[i.createElementVNode("span",E1e,i.toDisplayString(V.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[4]||(ee[4]=_e=>k.value=_e),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,x1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",S1e,[i.createElementVNode("div",T1e,[i.createElementVNode("label",A1e,[i.createElementVNode("span",N1e,i.toDisplayString(V.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":ee[5]||(ee[5]=_e=>g.value=_e),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,D1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",M1e,[i.createElementVNode("label",B1e,[i.createElementVNode("span",$1e,i.toDisplayString(V.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",O1e,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",L1e,[i.createVNode(Lg,{modelValue:_.value,"onUpdate:modelValue":ee[6]||(ee[6]=_e=>_.value=_e),modelModifiers:{lazy:!0},label:V.$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",I1e,[i.createElementVNode("div",P1e,[i.createVNode(ve,{name:"FlowsheetOutlineRounded"}),i.createVNode(ct,{level:4,title:V.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",F1e,[i.createElementVNode("div",V1e,[i.createElementVNode("label",R1e,[i.createElementVNode("span",z1e,i.toDisplayString(V.$t("activity.dependingOn.label")),1),i.createVNode(Dt,{modelValue:b.value,"onUpdate:modelValue":ee[7]||(ee[7]=_e=>b.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:E.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",U1e,[i.createElementVNode("label",q1e,[i.createElementVNode("span",H1e,i.toDisplayString(V.$t("activity.blocking.label")),1),i.createVNode(Dt,{modelValue:T.value,"onUpdate:modelValue":ee[8]||(ee[8]=_e=>T.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(V.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Pde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":ee[10]||(ee[10]=ae=>u.value=ae),onClose:ee[11]||(ee[11]=ae=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const j1e=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||Oe.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(Oe)),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:(_={[Oe.ACTIVITIES]:n.templateActivities,[Oe.MILESTONES]:n.templateMilestones,[Oe.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(pp)),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(mp)),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(hp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(to),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(to),{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(to),{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 W1e={class:"ao-template-rules__body"},Z1e={class:"ao-template-rules__list"},K1e=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(Ma,null,{header:i.withCtx(()=>[i.createVNode(ct,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",W1e,[i.createElementVNode("ul",Z1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(j1e,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(go,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Uo(t,e,n){const o=t.length,r=t.at(-1),s=r?Je.LexoRank.parse(r.rank).genNext():Je.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const G1e={key:0,class:"ao-template-details"},Y1e={class:"ao-template-details__body"},J1e={class:"ao-template-details__cols"},X1e={class:"ao-template-details__col"},Q1e={class:"ao-list__footer"},efe={class:"ao-template-details__col"},tfe={class:"ao-template-details__col"},Ig=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}=wn(),o=t,r=e,s=i.computed(()=>{var R;return(R=o.templates)==null?void 0:R.find(q=>q.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var R;return(R=s.value)==null?void 0:R.phases},(R,q)=>{a.value&&Pn(R,q)});const l=i.computed(()=>{var R,q;return(q=(R=s==null?void 0:s.value)==null?void 0:R.phases)==null?void 0:q.find(F=>F.id===o.phaseId)});i.watch(()=>{var R;return(R=l.value)==null?void 0:R.milestones},(R,q)=>{a.value&&Pn(R,q)});const c=i.computed(()=>{var R,q;return(q=(R=l.value)==null?void 0:R.milestones)==null?void 0:q.find(F=>F.id===o.milestoneId)});i.watch(()=>{var R;return(R=c.value)==null?void 0:R.activities},(R,q)=>{a.value&&Pn(R,q)});const u=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((F,Q)=>{const P=Q.milestones||[];return[...F,...P]},[]))||[]}),d=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((F,Q)=>{const re=(Q.milestones||[]).reduce((oe,G)=>G.activities?[...oe,...G.activities]:oe,[]);return[...F,...re]},[]))||[]}),f=i.computed(()=>{var R,q;return(q=(R=c.value)==null?void 0:R.activities)==null?void 0:q.find(F=>F.id===o.activityId)}),p=i.computed(()=>{var R;return((R=s.value)==null?void 0:R.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:R,rank:q}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Oe.PHASES,templateId:o.templateId,item:{name:R,rank:q}})},h=R=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Oe.TEMPLATES,data:{name:R}})},g=R=>{r("removeItem",{itemType:Oe.PHASES,templateId:o.templateId,data:{id:R}})},y=(R,q)=>{r("updateItem",{templateId:o.templateId,id:R,itemType:Oe.PHASES,data:{name:q}})},C=R=>{r("updateItem",R)},v=R=>{if(!l.value)return;const{name:q,rank:F}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Oe.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,item:{name:q,rank:F,phaseId:R.phaseId}})},_=R=>{r("removeItem",{itemType:Oe.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,data:{id:R.id}})},k=R=>{const{id:q,...F}=R;r("updateItem",{itemType:Oe.MILESTONES,id:q,templateId:o.templateId,data:F})},w=R=>{const{milestoneId:q}=R;if(!c.value)return;const{name:F,rank:Q}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Oe.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:F,rank:Q,milestoneId:q}})},b=R=>{var q,F;r("removeItem",{itemType:Oe.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(F=c.value)==null?void 0:F.id,data:{id:R.id}})},E=R=>{const{id:q,...F}=R;r("updateItem",{itemType:Oe.ACTIVITIES,id:q,templateId:o.templateId,data:F})},T=i.ref(!1),S=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},O=R=>{r("removeRule",{id:R,templateId:o.templateId})},A=R=>{var q;if(R.moved){const F=Xi(R,((q=s.value)==null?void 0:q.phases)??[]);r("updateItem",{itemType:Oe.PHASES,id:R.moved.element.id,templateId:o.templateId,data:{rank:F}})}},D=R=>{!l.value||!c.value||!f.value||r("addItem",{type:Oe.TASKS,activityId:R.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:R})},M=R=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Oe.TASKS,id:R.id,templateId:o.templateId,data:R})},L=R=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Oe.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:R})},I=R=>{r("addFiles",R)},j=R=>{r("removeFile",R)};return(R,q)=>{var F,Q,P,re,oe,G;return s.value?(i.openBlock(),i.createElementBlock("div",G1e,[i.createVNode(es,{"can-go-back":!0,onGoBack:q[1]||(q[1]=z=>R.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(ct,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=z=>{h(z)})},null,8,["title"])]),_:1}),i.createElementVNode("div",Y1e,[i.createElementVNode("ol",J1e,[i.createElementVNode("li",X1e,[i.createVNode(i.unref(ho),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(ct,{title:R.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:z})=>{var te;return[i.createVNode(X_,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((te=l.value)==null?void 0:te.id)===z.id,"is-draggable":!0,onClick:de=>R.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":de=>{y(z.id,de)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",Q1e,[i.createVNode(go,{"icon-name":"AddBoxOutlineRounded",label:R.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",efe,[l.value?(i.openBlock(),i.createBlock(tC,{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",tfe,[l.value&&c.value?(i.openBlock(),i.createBlock(rC,{key:0,"template-id":t.templateId,"phase-id":(Q=l.value)==null?void 0:Q.id,milestone:c.value,"activity-id":(P=f.value)==null?void 0:P.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(Xu,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(re=l.value)==null?void 0:re.name} / ${(oe=c.value)==null?void 0:oe.name}`,"milestone-id":(G=c.value)==null?void 0:G.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,"onUpdate:activity":q[2]||(q[2]=z=>{f.value&&E(z)}),onClose:R.$router.back,onAddSubtask:D,onUpdateSubtask:M,onDeleteSubtask:L,onAddFiles:I,onRemoveFile:j},{default:i.withCtx(z=>[i.renderSlot(R.$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(K1e,{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:S,onAddRule:N,onRemoveRule:O},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const nfe={class:"ao-card__content"},ofe={key:0,class:"ao-card__header"},rfe={class:"ao-card__body"},ife={key:1,class:"ao-card__footer"},ul=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",nfe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",ofe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",rfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",ife,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const dl=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 Iue=process.env.NODE_ENV==="production",rc="Invariant failed";function Pue(t,e){if(!t){if(Iue)throw new Error(rc);var n=typeof e=="function"?e():e,o=n?"".concat(rc,": ").concat(n):rc;throw new Error(o)}}const Dg=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:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:m}=a.initialConfig,h=Wle({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=Pe();if(v.isEmpty()){const _=Me();v.append(_);const k=wce?document.activeElement:null;(ne()!==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(()=>{Pe().isEmpty()&&C(y)},l);break}}}return i.provide(Dg,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 Gr(){const t=i.inject(Dg,null);return t||Pue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Fue(t,e){if(t==null)return{};var n=Rue(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 Rue(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 zue=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=i.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>Fue(s,["editor"]));i.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function Uue(){return Pe().getTextContent()}function que(t,e=!0){if(t)return!1;let n=Uue();return e&&(n=n.trim()),n===""}function Hue(t){if(!que(t,!1))return!1;const e=Pe().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(ke(r))return!1;if(U(r)){if(!cs(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()=>Hue(t)}function jue(t){return t.getEditorState().read(Bg(t.isComposing()))}function Mg(t){const e=t.getEditorState().read(Bg(t.isComposing())),n=i.ref(e);function o(){const r=jue(t);n.value=r}return i.onMounted(()=>{const r=fs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.readonly(n)}function Wue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Wue(t,r,n[r])})}return t}function Kue(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 Gue(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const Yue=(()=>{const t={key:0,"aria-hidden":"true"},e=i.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:r}=o;r();const s=Gr(),a=i.ref(!1),l=Mg(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(zue),i.mergeProps({editor:i.unref(s)},Gue(Zue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function Jue(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(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||Ue(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 Xue(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(fa))return o=0,n=d,2;const f=Jue(r,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(xle);if(!h&&m&&u.has(Ai))return 0;if(r===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const 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 lp(t){t.undoStack=[],t.redoStack=[],t.current=null}function Que(t,e,n){const o=Xue(t,n);return fs(t.registerCommand(Cu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Ms,!0)),c.length===0&&s.dispatchCommand($s,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),be),t.registerCommand(bu,()=>(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($s,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ms,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:fa})}}(t,e),!0),be),t.registerCommand(_le,()=>(lp(e),!1),be),t.registerCommand(Cle,()=>(lp(e),t.dispatchCommand(Ms,!1),t.dispatchCommand($s,!1),!0),be),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(Ms,!1)),d!==null&&(p.push({...d}),t.dispatchCommand($s,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function ede(){return{current:null,redoStack:[],undoStack:[]}}function tde(t,e,n){const o=i.computed(()=>i.toValue(e)||ede());i.watchEffect(r=>{const s=Que(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const nde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return tde(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ode(t){i.onMounted(()=>{const e=Ice(t);i.onUnmounted(()=>{e()})})}const rde=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([or,bo]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Pce(s);a(l)}),ode(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function ide(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 sde=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=ide(t);return()=>e.value}});function ade(t){i.onMounted(()=>{const e=fs(tue(t),Zce(t));i.onUnmounted(e)})}const lde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=Mg(r);return ade(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(sde))],64))}});return t.__vue_vine=!0,t})(),ic=[Cg,bg,kg,wg,xg,Sg,Ag,Tg,Eg],cde={class:"ao-lexical-editor__placeholder"},$g=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:[or,bo,sl,al],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:()=>{Oue(o.initialMarkdown||"",ic)},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 B=Gr();let I=null,V=null;function j(){B.getEditorState().read(()=>{const R=ne();if(!Z(R))return;D("selectionChange",R.clone());const q=R.anchor.getNode(),F=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(ag(F)){const ee=F.getTag();if(ee==="h1"||ee==="h2"||ee==="h3"){D("blockStyleChange",ee);return}}if(ll(F)){D("blockStyleChange","code");return}D("blockStyleChange","paragraph")})}return i.onMounted(()=>{D("ready",B),j(),V=$ue(B,ic),I=B.registerUpdateListener(()=>{j()})}),i.onUnmounted(()=>{V==null||V(),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 B=[],I=D.items;if(I){for(const V of I)if(V.kind==="file"&&V.type.startsWith("image/")){const j=V.getAsFile();if(j){const R=g(j);B.push(R)}}B.length>0&&(A.preventDefault(),r("paste",B))}}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 B=new Date,I=B.getFullYear(),V=String(B.getMonth()+1).padStart(2,"0"),j=String(B.getDate()).padStart(2,"0"),R=String(B.getHours()).padStart(2,"0"),q=String(B.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 ee=`pasted-image-${I}-${V}-${j}-${R}${q}.${F}`;return new File([A],ee,{type:A.type})}function y(){a.value&&it(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(Rt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"italic"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Rt,"code"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Xh,void 0),A.focus())}function E(){const A=s.value;A&&(A.update(()=>{y()}),A.dispatchCommand(Qh,void 0),A.focus())}function T(A){C(()=>{const D=ne();if(Z(D)){if(D.isCollapsed()||D.focus.set(D.anchor.key,D.anchor.offset,D.anchor.type),A==="paragraph"){ec(D,()=>Me());return}if(A==="code"){ec(D,()=>yn());return}ec(D,()=>Io(A))}}),l.value=A}function S(){const A=s.value;return A?A.getEditorState().read(()=>Lue(ic)):""}function N(){const A=s.value;A&&A.update(()=>{const D=Pe();D.clear(),D.append(Me())})}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:S,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(lde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(Yue),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:i.withCtx(()=>[i.createElementVNode("div",cde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),i.createVNode(i.unref(nde)),i.createVNode(i.unref(rde)),i.createVNode(i.unref(d),{onReady:f,onBlockStyleChange:D[0]||(D[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function ude(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:$p(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=ne();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=ne();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 S=b+E.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"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 dde={key:0,class:"ao-comment-editor__toolbar"},fde=["onClick"],Og=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}=ude(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 B;v=void 0;const A=(B=a.value)==null?void 0:B.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(),S()}}}function T(){const A=s.value;if(!A)return;const D=A.getMarkdown();D.trim()&&r("submit",D)}function S(){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:S,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",dde,[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]=B=>{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]=B=>{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]=B=>{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]=B=>{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]=B=>{var I;return(I=s.value)==null?void 0:I.insertBulletList()})}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:D[10]||(D[10]=i.withModifiers(()=>{},["prevent"])),onClick:D[11]||(D[11]=B=>{var I;return(I=s.value)==null?void 0:I.insertNumberedList()})}," 1. ",32)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:b},[i.createVNode($g,{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),(B,I)=>(i.openBlock(),i.createElementBlock("li",{key:B.id,class:i.normalizeClass({"ao-comment-editor__mention-item--selected":I===i.unref(p)}),onMousedown:D[12]||(D[12]=i.withModifiers(()=>{},["prevent"])),onClick:V=>i.unref(m)(B.name)}," @"+i.toDisplayString(B.name),43,fde))),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(_e,{name:"SendRounded"})],32)):i.createCommentVNode("",!0)],32)],2))}});const pde={class:"ao-comment"},mde={class:"ao-comment__created-at"},hde={class:"ao-comment__body"},gde={class:"ao-comment__content-wrapper"},vde={key:0,class:"ao-comment__footer"},yde=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&&Li(n.editedAt),g=Li(n.createdAt),y=new Date,C=h??g;return C&&R7(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",pde,[i.createElementVNode("span",mde,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",hde,[i.createElementVNode("div",gde,[s.value?(i.openBlock(),i.createBlock(Og,{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(bm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(i.openBlock(),i.createElementBlock("div",vde,[s.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(pe,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),i.createVNode(pe,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(pe,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),i.createVNode(pe,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):i.createCommentVNode("",!0)])])}}});const _de={class:"ao-comments__new"},Cde={key:0,class:"ao-comments__list"},bde=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)=>Dy(Li(f.createdAt),Li(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=i.ref(null);i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.ref(null);function c(f){var m;if(!f.trim())return;const p=Ed(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=Ed(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",_de,[i.createVNode(Og,{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",Cde,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,m=>(i.openBlock(),i.createBlock(yde,{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 kde=["aria-label"],wde={class:"ao-file-preview__actions"},Ede=["aria-label"],xde={key:0,class:"ao-file-preview__loading"},Sde=["src","alt"],Tde=["src","title"],Ade={key:3,class:"ao-file-preview__fallback"},Nde={class:"ao-file-preview__fallback-title"},Dde={class:"ao-file-preview__fallback-filename"},Bde=["aria-label"],Mde={key:2,class:"ao-file-preview__info"},$de=["title"],Ode={key:0,class:"ao-file-preview__info-counter"},Lde={key:3,class:"ao-file-preview__info"},Ide={class:"ao-file-preview__info-counter"},Pde=i.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){En();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 S(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",S)}),i.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(N,L)=>{var A,D,B,I,V,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",wde,[i.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:i.withModifiers(b,["stop"])},[i.createVNode(_e,{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(_e,{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(_e,{name:"ArrowBackRounded",size:"lg"})],8,Ede)),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,Sde)):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:(B=c.value)==null?void 0:B.name,class:"ao-file-preview__pdf"},null,8,Tde)])):(i.openBlock(),i.createElementBlock("div",Ade,[i.createVNode(_e,{name:C.value,size:"xl"},null,8,["name"]),i.createElementVNode("p",Nde,i.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),i.createElementVNode("p",Dde,i.toDisplayString((I=c.value)==null?void 0:I.name),1),i.createVNode(pe,{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(_e,{name:"ArrowForwardRounded",size:"lg"})],8,Bde)),h.value&&r.value&&!a.value?(i.openBlock(),i.createElementBlock("div",Mde,[i.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(V=c.value)==null?void 0:V.name},i.toDisplayString((j=c.value)==null?void 0:j.name),9,$de),t.attachments.length>1?(i.openBlock(),i.createElementBlock("span",Ode,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)):i.createCommentVNode("",!0)])):t.attachments.length>1?(i.openBlock(),i.createElementBlock("div",Lde,[i.createElementVNode("span",Ide,i.toDisplayString(t.currentIndex+1)+" / "+i.toDisplayString(t.attachments.length),1)])):i.createCommentVNode("",!0)],8,kde)])}}});const Lg=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(pe,{color:t.modelValue?t.color:i.unref(Zc).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 Fde={class:"toggle-wrapper"};function Rde(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",Fde,[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 zde=ie(Vde,[["render",Rde],["__scopeId","data-v-cbe33527"]]),Ude=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 qde=["onClick"],Hde={class:"tab-button__label"},jde={key:0,class:"tab-button__badge"};function Wde(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",Hde,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",jde,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,qde))),128))],2)}const ps=ie(Ude,[["render",Wde],["__scopeId","data-v-3d268d7b"]]),Zde={class:"ao-rich-text-editor"},Kde={class:"ao-rich-text-editor__toolbar"},Gde=["value"],Yde={class:"ao-rich-text-editor__actions"},Jde=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",Zde,[i.createVNode($g,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:i.withCtx(()=>{var d;return[i.createElementVNode("div",Kde,[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,Gde),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",Yde,[i.createVNode(pe,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),i.createVNode(pe,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const Xde={class:"ao-activity-details"},Qde={class:"ao-activity-details__main"},e1e={class:"ao-activity-details__header"},t1e={key:1,class:"ao-activity__category"},n1e={key:2,class:"ao-activity-details__created-by"},o1e={class:"ao-feed__activity-details__header"},r1e={key:0,class:"ao-field ao-feed__activity-details__project"},i1e={class:"ao-field__label"},s1e={key:1,class:"ao-field ao-feed__activity-details__project"},a1e={class:"ao-field__label"},l1e={class:"ao-activity-details__content"},c1e={class:"ao-activity-details__tab-content"},u1e={class:"ao-fieldset"},d1e={class:"ao-field__row"},f1e={class:"ao-activity-details__tab-content"},p1e={class:"ao-fieldset"},m1e={class:"ao-fieldset__body"},h1e={class:"ao-activity-details__tab-content"},g1e={key:0,class:"ao-fieldset"},v1e={class:"ao-activity-details__aside"},y1e={class:"ao-activity-details__close-button"},_1e={key:0,class:"ao-activity-details__aside-section"},C1e={class:"ao-field"},b1e={class:"ao-field__label"},k1e={class:"ao-activity-details__aside-section"},w1e={class:"ao-field__label"},E1e={key:1,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},S1e={class:"ao-field__label"},T1e={class:"ao-activity-details__aside-section"},A1e={class:"ao-field ao-field--multiselect"},N1e={class:"assignee-inline"},D1e={class:"ao-field__label"},B1e={class:"ao-activity-details__aside-section"},M1e={key:0,class:"ao-field__row"},$1e={class:"ao-field"},O1e={class:"ao-field__label"},L1e=["readonly"],I1e={class:"ao-activity-details__aside-section"},P1e={class:"ao-field__row"},V1e={class:"ao-field ao-field--inline"},F1e={class:"ao-field__label"},R1e=["readonly"],z1e={class:"ao-field__row"},U1e={class:"ao-field ao-field--inline"},q1e={class:"ao-field__label"},H1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},j1e={class:"ao-activity-details__aside-section"},W1e={class:"ao-fieldset ao-activity-details__aside-section"},Z1e={class:"ao-fieldset__title"},K1e={class:"ao-fieldset__body"},G1e={class:"ao-field__row"},Y1e={class:"ao-field ao-field--multiselect"},J1e={class:"ao-field__label"},X1e={class:"ao-field__row"},Q1e={class:"ao-field ao-field--multiselect"},efe={class:"ao-field__label"},Xu=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},devStatuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{},loadAttachmentPreview:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=En(),s=i.ref("description"),a=i.computed(()=>{var $,Y;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:(($=n.activity.tasks)==null?void 0:$.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((Y=n.activity.comments)==null?void 0:Y.length)??0}]}),l=i.computed(()=>{var $;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===(($=n.activity.assignee)==null?void 0:$.id):!1}),c=i.ref(!1),u=i.ref(null),d=$=>{o("update:activity",{id:n.activity.id,name:$})},f=i.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=$=>{o("update:activity",{id:n.activity.id,description:$}),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($){o("update:activity",{id:n.activity.id,estimation:$})}}),y=i.computed({get(){var Y;const $=(Y=n.timeTrackingData)==null?void 0:Y[n.activity.id];return($==null?void 0:$.timeSpent)??0},set(){}}),C=i.computed(()=>{var Y;return((Y=n.activity.project)==null?void 0:Y.estimationUnit)==="days"?"d":"h"}),v=i.computed(()=>{var Y;const $=(Y=n.activity.project)==null?void 0:Y.estimationUnit;return Na(y.value,$)}),_=i.computed({get(){return n.activity.important??!1},set($){o("update:activity",{id:n.activity.id,important:$})}});i.computed({get(){return n.activity.private??!1},set($){o("update:activity",{id:n.activity.id,private:$})}});const k=i.computed({get(){return n.activity.deadline},set($){o("update:activity",{id:n.activity.id,deadline:$})}});i.computed(()=>{var $;return($=n.activityTypes)==null?void 0:$.map(Y=>({label:Y.name,value:Y.id}))}),i.computed({get(){var $;return($=n.activity.type)==null?void 0:$.id},set($){o("update:activity",{id:n.activity.id,typeId:$})}});const w=i.computed({get(){return n.activity.activityType!=="dev"},set($){var me;const Y=$?"standard":"dev";n.activity.activityType!=="dev"&&Y==="dev"&&!n.activity.devStatus&&((me=n.devStatuses)!=null&&me.length)?o("update:activity",{id:n.activity.id,type:Y,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:Y})}}),b=i.computed(()=>{var $;return(($=n.devStatuses)==null?void 0:$.map(Y=>({value:Y.id,label:Y.name})))??[]}),E=i.computed({get(){var $;return($=n.activity.devStatus)==null?void 0:$.id},set($){o("update:activity",{id:n.activity.id,statusDevId:$})}}),T=i.computed(()=>n.templateActivities.filter($=>$.id!==n.activity.id).map($=>({label:$.name,value:$.id}))),S=i.computed({get(){var $;return($=n.activity.dependingOn)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,dependingOn:$})}}),N=i.computed(()=>T.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.blocking)==null?void 0:Y.some(me=>me.id===$.value)}})),L=i.computed({get(){var $;return($=n.activity.blocking)==null?void 0:$.map(Y=>Y.id)},set($){$&&o("update:activity",{id:n.activity.id,blocking:$})}}),A=i.computed(()=>T.value.map($=>{var Y;return{...$,disabled:(Y=n.activity.dependingOn)==null?void 0:Y.some(me=>me.id===$.value)}})),D=$=>{o("addSubtask",$)},B=$=>{o("updateSubtask",$)},I=$=>{o("deleteSubtask",$)};function V(){n.userId?q.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function j($){q.value=[$]}const R=i.computed(()=>{var Y;const $=new Map;return(Y=n.users)==null||Y.forEach(me=>{$.has(me.id)||$.set(me.id,me)}),Array.from($.values()).map(me=>({label:`${me.firstName} ${me.lastName}`,value:me.id,avatar:me.avatarUrl}))}),q=i.computed({get(){var $,Y;return($=n.activity.assignee)!=null&&$.id?[(Y=n.activity.assignee)==null?void 0:Y.id]:[]},set($){o("update:activity",{id:n.activity.id,assigneeId:$[0]??null})}}),F=$=>{o("addFiles",{activityId:n.activity.id,files:$})},ee=$=>{F($)},P=$=>{o("removeFile",{activityId:n.activity.id,file:$})},re=i.computed(()=>n.projects.map($=>({value:$.id,label:$.name}))),oe=i.computed(()=>{var Y,me,Be;const $=(Be=(me=(Y=n.activity)==null?void 0:Y.project)==null?void 0:me.phases)==null?void 0:Be.reduce((Fe,ge)=>[...Fe,...ge.milestones],[]);return $==null?void 0:$.map(Fe=>({value:Fe.id,label:Fe.name}))}),G=$=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:$})},z=$=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:$})},te=i.computed(()=>{var $;return($=n.statuses)==null?void 0:$.map(Y=>({value:Y.id,label:Y.name}))}),ue=$=>{o("update:activity",{id:n.activity.id,statusId:$})},xe=$=>{o("update:activity",{id:n.activity.id,statusDevId:$})},Ve=$=>{o("addComment",{...$,activityId:n.activity.id})},ut=$=>{o("updateComment",$)},ye=$=>{o("removeComment",$)},dt=i.computed(()=>{var $,Y;return(($=n.activity.createdBy)==null?void 0:$.firstName)&&((Y=n.activity.createdBy)==null?void 0:Y.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),Se=i.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function gt(){const $=window.location.origin,Y=n.activity.slug,me=`${$}/activity-feed/slug/${Y}`;navigator.clipboard.writeText(me).then(()=>{console.log(`Link copied to clipboard: ${me}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return($,Y)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ba,{onClose:Y[10]||(Y[10]=me=>$.$emit("close"))},{default:i.withCtx(()=>{var me,Be,Fe;return[i.createElementVNode("div",Xde,[i.createElementVNode("div",Qde,[i.createElementVNode("div",e1e,[t.activity.slug?(i.openBlock(),i.createBlock(Mi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:gt},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",t1e,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(ct,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),dt.value?(i.openBlock(),i.createElementBlock("div",n1e,i.toDisplayString($.$t("activity.createdBy.label",{name:dt.value,date:Se.value})),1)):i.createCommentVNode("",!0),i.createElementVNode("div",o1e,[re.value?(i.openBlock(),i.createElementBlock("label",r1e,[i.createElementVNode("span",i1e,i.toDisplayString($.$t("activity.project.label")),1),i.createVNode(Ct,{options:re.value,value:(me=t.activity.project)==null?void 0:me.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:G},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),oe.value?(i.openBlock(),i.createElementBlock("label",s1e,[i.createElementVNode("span",a1e,i.toDisplayString($.$t("activity.milestone.label")),1),i.createVNode(Ct,{options:oe.value,value:(Be=t.activity.milestone)==null?void 0:Be.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:z},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot($.$slots,"header")]),i.createElementVNode("div",l1e,[i.createVNode(ps,{modelValue:s.value,"onUpdate:modelValue":Y[0]||(Y[0]=ge=>s.value=ge),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",c1e,[i.createElementVNode("fieldset",u1e,[i.createElementVNode("div",d1e,[i.createVNode(W9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:F,onRemove:P,onPreview:Y[1]||(Y[1]=ge=>u.value=ge)},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(Jde,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:ee},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(bm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",f1e,[i.createElementVNode("fieldset",p1e,[i.createElementVNode("div",m1e,[i.createVNode(O9,{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:D,onUpdate:B,onDelete:I},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",h1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",g1e,[i.createVNode(bde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Ve,onUpdateComment:ut,onRemoveComment:ye},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",v1e,[i.createElementVNode("div",y1e,[i.createVNode(_e,{name:"CloseRounded",onClick:Y[2]||(Y[2]=ge=>$.$emit("close"))})]),te.value?(i.openBlock(),i.createElementBlock("div",_1e,[i.createElementVNode("label",C1e,[i.createElementVNode("span",b1e,i.toDisplayString($.$t("activity.status.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:te.value,value:(Fe=t.activity.status)==null?void 0:Fe.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ue},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",k1e,[i.createElementVNode("span",w1e,i.toDisplayString($.$t("activity.type.label")),1),i.createVNode(zde,{modelValue:w.value,"onUpdate:modelValue":Y[3]||(Y[3]=ge=>w.value=ge),"left-label":"Standard","right-label":"Development"},null,8,["modelValue"])]),t.activity.activityType==="dev"&&b.value.length?(i.openBlock(),i.createElementBlock("div",E1e,[i.createElementVNode("label",x1e,[i.createElementVNode("span",S1e,i.toDisplayString($.$t("activity.devStatus.label")),1),i.createVNode(Ct,{class:"ao-activity-details__multiselect",options:b.value,value:E.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:xe},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",T1e,[i.createElementVNode("div",A1e,[i.createElementVNode("div",N1e,[i.createElementVNode("span",D1e,i.toDisplayString($.$t("activity.assignee.label")),1),i.createVNode(pe,{label:$.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:V},null,8,["label"])]),i.createVNode(Ct,{modelValue:q.value,"onUpdate:modelValue":Y[4]||(Y[4]=ge=>q.value=ge),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:R.value,"close-on-select":!0,searchable:!0,placeholder:$.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:j},{tag:i.withCtx(({option:ge,handleTagRemove:cn})=>[i.createVNode(jn,{"user-name":ge.label,"avatar-url":ge.avatar,"is-closable":!0,onClose:Tn=>cn(ge,Tn)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",B1e,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",M1e,[i.createElementVNode("label",$1e,[i.createElementVNode("span",O1e,i.toDisplayString($.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[5]||(Y[5]=ge=>k.value=ge),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,L1e),[[i.vModelText,k.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",I1e,[i.createElementVNode("div",P1e,[i.createElementVNode("label",V1e,[i.createElementVNode("span",F1e,i.toDisplayString($.$t("activity.estimation.label"))+" ("+i.toDisplayString(C.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":Y[6]||(Y[6]=ge=>g.value=ge),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,R1e),[[i.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",z1e,[i.createElementVNode("label",U1e,[i.createElementVNode("span",q1e,i.toDisplayString($.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(C.value)+")",1),i.createElementVNode("span",H1e,i.toDisplayString(v.value),1)])])]),i.createElementVNode("div",j1e,[i.createVNode(Lg,{modelValue:_.value,"onUpdate:modelValue":Y[7]||(Y[7]=ge=>_.value=ge),modelModifiers:{lazy:!0},label:$.$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",W1e,[i.createElementVNode("div",Z1e,[i.createVNode(_e,{name:"FlowsheetOutlineRounded"}),i.createVNode(ct,{level:4,title:$.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",K1e,[i.createElementVNode("div",G1e,[i.createElementVNode("label",Y1e,[i.createElementVNode("span",J1e,i.toDisplayString($.$t("activity.dependingOn.label")),1),i.createVNode(Ct,{modelValue:S.value,"onUpdate:modelValue":Y[8]||(Y[8]=ge=>S.value=ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:N.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",X1e,[i.createElementVNode("label",Q1e,[i.createElementVNode("span",efe,i.toDisplayString($.$t("activity.blocking.label")),1),i.createVNode(Ct,{modelValue:L.value,"onUpdate:modelValue":Y[9]||(Y[9]=ge=>L.value=ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:A.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot($.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(i.openBlock(),i.createBlock(Pde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":Y[11]||(Y[11]=me=>u.value=me),onClose:Y[12]||(Y[12]=me=>u.value=null)},null,8,["attachments","current-index","load-preview"])):i.createCommentVNode("",!0)],64))}});const tfe=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||Le.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(Le)),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:(_={[Le.ACTIVITIES]:n.templateActivities,[Le.MILESTONES]:n.templateMilestones,[Le.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(pp)),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(mp)),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(hp));return(v,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(no),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=k=>s.value=k),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=k=>l.value=k),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=k=>m.value=k),options:h.value},null,8,["modelValue","options"]),i.createVNode(i.unref(no),{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(no),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=k=>y.value=k),options:C.value},null,8,["modelValue","options"]),i.createVNode(pe,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=k=>v.$emit("close"))})]),_:1}))}});const nfe={class:"ao-template-rules__body"},ofe={class:"ao-template-rules__list"},rfe=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(Ba,null,{header:i.withCtx(()=>[i.createVNode(ct,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",nfe,[i.createElementVNode("ul",ofe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(tfe,{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(vo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Uo(t,e,n){const o=t.length,r=t.at(-1),s=r?Xe.LexoRank.parse(r.rank).genNext():Xe.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const ife={key:0,class:"ao-template-details"},sfe={class:"ao-template-details__body"},afe={class:"ao-template-details__cols"},lfe={class:"ao-template-details__col"},cfe={class:"ao-list__footer"},ufe={class:"ao-template-details__col"},dfe={class:"ao-template-details__col"},Ig=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}=En(),o=t,r=e,s=i.computed(()=>{var R;return(R=o.templates)==null?void 0:R.find(q=>q.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var R;return(R=s.value)==null?void 0:R.phases},(R,q)=>{a.value&&Fn(R,q)});const l=i.computed(()=>{var R,q;return(q=(R=s==null?void 0:s.value)==null?void 0:R.phases)==null?void 0:q.find(F=>F.id===o.phaseId)});i.watch(()=>{var R;return(R=l.value)==null?void 0:R.milestones},(R,q)=>{a.value&&Fn(R,q)});const c=i.computed(()=>{var R,q;return(q=(R=l.value)==null?void 0:R.milestones)==null?void 0:q.find(F=>F.id===o.milestoneId)});i.watch(()=>{var R;return(R=c.value)==null?void 0:R.activities},(R,q)=>{a.value&&Fn(R,q)});const u=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((F,ee)=>{const P=ee.milestones||[];return[...F,...P]},[]))||[]}),d=i.computed(()=>{var R,q;return((q=(R=s.value)==null?void 0:R.phases)==null?void 0:q.reduce((F,ee)=>{const re=(ee.milestones||[]).reduce((oe,G)=>G.activities?[...oe,...G.activities]:oe,[]);return[...F,...re]},[]))||[]}),f=i.computed(()=>{var R,q;return(q=(R=c.value)==null?void 0:R.activities)==null?void 0:q.find(F=>F.id===o.activityId)}),p=i.computed(()=>{var R;return((R=s.value)==null?void 0:R.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:R,rank:q}=Uo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Le.PHASES,templateId:o.templateId,item:{name:R,rank:q}})},h=R=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Le.TEMPLATES,data:{name:R}})},g=R=>{r("removeItem",{itemType:Le.PHASES,templateId:o.templateId,data:{id:R}})},y=(R,q)=>{r("updateItem",{templateId:o.templateId,id:R,itemType:Le.PHASES,data:{name:q}})},C=R=>{r("updateItem",R)},v=R=>{if(!l.value)return;const{name:q,rank:F}=Uo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,item:{name:q,rank:F,phaseId:R.phaseId}})},_=R=>{r("removeItem",{itemType:Le.MILESTONES,templateId:o.templateId,phaseId:R.phaseId,data:{id:R.id}})},k=R=>{const{id:q,...F}=R;r("updateItem",{itemType:Le.MILESTONES,id:q,templateId:o.templateId,data:F})},w=R=>{const{milestoneId:q}=R;if(!c.value)return;const{name:F,rank:ee}=Uo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Le.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:F,rank:ee,milestoneId:q}})},b=R=>{var q,F;r("removeItem",{itemType:Le.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(F=c.value)==null?void 0:F.id,data:{id:R.id}})},E=R=>{const{id:q,...F}=R;r("updateItem",{itemType:Le.ACTIVITIES,id:q,templateId:o.templateId,data:F})},T=i.ref(!1),S=()=>{T.value=!T.value},N=()=>{r("addRule",{templateId:o.templateId})},L=R=>{r("removeRule",{id:R,templateId:o.templateId})},A=R=>{var q;if(R.moved){const F=Xi(R,((q=s.value)==null?void 0:q.phases)??[]);r("updateItem",{itemType:Le.PHASES,id:R.moved.element.id,templateId:o.templateId,data:{rank:F}})}},D=R=>{!l.value||!c.value||!f.value||r("addItem",{type:Le.TASKS,activityId:R.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:R})},B=R=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Le.TASKS,id:R.id,templateId:o.templateId,data:R})},I=R=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Le.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:R})},V=R=>{r("addFiles",R)},j=R=>{r("removeFile",R)};return(R,q)=>{var F,ee,P,re,oe,G;return s.value?(i.openBlock(),i.createElementBlock("div",ife,[i.createVNode(es,{"can-go-back":!0,onGoBack:q[1]||(q[1]=z=>R.$router.push({name:i.unref(Po).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(ct,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=z=>{h(z)})},null,8,["title"])]),_:1}),i.createElementVNode("div",sfe,[i.createElementVNode("ol",afe,[i.createElementVNode("li",lfe,[i.createVNode(i.unref(go),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:i.withCtx(()=>[i.createVNode(ct,{title:R.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:z})=>{var te;return[i.createVNode(X_,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((te=l.value)==null?void 0:te.id)===z.id,"is-draggable":!0,onClick:ue=>R.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":ue=>{y(z.id,ue)},onRemove:()=>g(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",cfe,[i.createVNode(vo,{"icon-name":"AddBoxOutlineRounded",label:R.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",ufe,[l.value?(i.openBlock(),i.createBlock(tC,{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",dfe,[l.value&&c.value?(i.openBlock(),i.createBlock(rC,{key:0,"template-id":t.templateId,"phase-id":(ee=l.value)==null?void 0:ee.id,milestone:c.value,"activity-id":(P=f.value)==null?void 0:P.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(Xu,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(re=l.value)==null?void 0:re.name} / ${(oe=c.value)==null?void 0:oe.name}`,"milestone-id":(G=c.value)==null?void 0:G.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,"onUpdate:activity":q[2]||(q[2]=z=>{f.value&&E(z)}),onClose:R.$router.back,onAddSubtask:D,onUpdateSubtask:B,onDeleteSubtask:I,onAddFiles:V,onRemoveFile:j},{default:i.withCtx(z=>[i.renderSlot(R.$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(rfe,{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:S,onAddRule:N,onRemoveRule:L},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const ffe={class:"ao-card__content"},pfe={key:0,class:"ao-card__header"},mfe={class:"ao-card__body"},hfe={key:1,class:"ao-card__footer"},ul=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",ffe,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",pfe,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",mfe,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",hfe,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const dl=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
|
|
55
55
|
* vue-color-kit v1.0.6
|
|
56
56
|
* (c) 2023
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/function Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=afe(t):/rgb/.test(t)?e=cp(t):typeof t=="string"?e=cp(`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}=lfe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function Qu(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 Wc(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 sfe({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 afe(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 cp(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 lfe({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 ed=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),Wc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Wc("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 cfe={ref:"canvasSaturation"};function ufe(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",cfe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}ed.render=ufe;ed.__file="src/color/Saturation.vue";var td=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 dfe={ref:"canvasHue"};function ffe(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",dfe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}td.render=ffe;td.__file="src/color/Hue.vue";var nd=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=Qu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Wc("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 pfe={ref:"canvasAlpha"};function mfe(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",pfe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}nd.render=mfe;nd.__file="src/color/Alpha.vue";var od=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=Qu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function hfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}od.render=hfe;od.__file="src/color/Preview.vue";var rd=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 gfe=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),vfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},yfe=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 _fe(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))},[gfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",vfe,[yfe])):i.createCommentVNode("v-if",!0)])}rd.render=_fe;rd.__file="src/color/Sucker.vue";var id=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 Cfe={class:"color-type"},bfe={class:"name"};function kfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",Cfe,[i.createVNode("span",bfe,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]])])}id.render=kfe;id.__file="src/color/Box.vue";var sd=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=Qu(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"},Efe={key:0,class:"colors history"};function xfe(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",Efe,[(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)])}sd.render=xfe;sd.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:ed,Hue:td,Alpha:nd,Preview:od,Sucker:rd,Box:id,Colors:sd},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 sfe(this.rgba,!0)}},created(){Object.assign(this,Ao(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Sfe={class:"color-set"};function Tfe(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",Sfe,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=Tfe;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Afe={class:"color-picker-wrapper"},fl=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",Afe,[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(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Nfe={class:"ao-card-project-phase__header"},Dfe={class:"ao-card-project-item__title-line"},Mfe={key:0,class:"ao-card-project-item-phase__estimation"},Bfe={class:"ao-card-project-phase__footer"},$fe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Ofe={class:"ao-card-project-phase__subitem"},Lfe={class:"ao-card-project-phase__subitem"},Ife={key:0,class:"ao-card-project-phase__secondary"},Pfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Ffe=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(()=>Na(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===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),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(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{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",Dfe,[i.createVNode(ct,{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",Mfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Bfe,[u.value?(i.openBlock(),i.createElementBlock("div",$fe,[i.createElementVNode("div",Ofe,[i.createVNode(ve,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Lfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Ife,[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",Pfe,i.toDisplayString(i.unref(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Nfe,[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 Vfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const Rfe={class:"ao-card-project-milestone__default"},zfe={class:"ao-title-with-badge-wrapper"},Ufe={class:"ao-card-project-item__title-line"},qfe={key:0,class:"ao-card-project-item-milestone__estimation"},Hfe={key:0,class:"ao-card-project-milestone__archive"},jfe={class:"ao-card-project-milestone__activities"},Wfe={class:"ao-card-project-milestone__activities-row"},Zfe={class:"ao-card-project-milestone__subitem"},Kfe={class:"ao-card-project-milestone__subitem"},Gfe={key:1,class:"ao-card-project-milestone__secondary"},Yfe={class:"ao-card-project-milestone__footer"},Jfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Xfe={class:"ao-field__label"},Qfe={key:2,class:"ao-card-project-milestone__assignee"},epe=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(()=>Na(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=>Gc(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(ul,{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",Rfe,[i.createElementVNode("div",zfe,[i.createVNode(Vfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Ufe,[i.createVNode(ct,{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",qfe," ("+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",Hfe,[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",jfe,[i.createElementVNode("div",Wfe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Zfe,[i.createVNode(ve,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Kfe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(dl,{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",Gfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",Yfe,[t.important?(i.openBlock(),i.createBlock(ve,{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",Jfe,[i.createElementVNode("span",Xfe,i.toDisplayString(i.unref(Da)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Qfe,[i.createVNode(qn,{"user-name":i.unref(Bp)(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 tpe={class:"ao-mapping-card-project-phase__header"},npe={class:"ao-card-project-item__title-line"},ope={key:0,class:"ao-card-project-item-phase__estimation"},rpe={class:"ao-mapping-card-project-phase__footer"},ipe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},spe={class:"ao-mapping-card-project-phase__subitem"},ape={class:"ao-mapping-card-project-phase__subitem"},lpe={key:0,class:"ao-mapping-card-project-phase__secondary"},cpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},upe=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(()=>Na(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===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),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(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{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",npe,[i.createVNode(ct,{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",ope," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",rpe,[u.value?(i.openBlock(),i.createElementBlock("div",ipe,[i.createElementVNode("div",spe,[i.createVNode(ve,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",ape,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{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",lpe,[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",cpe,i.toDisplayString(i.unref(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",tpe,[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 dpe={class:"ao-project-phase"},fpe={key:0,class:"ao-project-phase__drag ao-card__drag"},ppe={key:1,class:"ao-project-phase__col-phase"},mpe={key:2,class:"ao-mapping-project-phase__col-phase"},hpe={key:0,class:"ao-project-phase__col-milestones"},gpe=["title"],vpe={class:"ao-project-phase__milestones-list-footer"},ype=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}=wn(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{Pn(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=>g_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=Uo(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=Qi(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:Ar(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Ar(c.value,w.moved.newIndex)})},C=Ki.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:y_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",dpe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",fpe,[i.createVNode(ve,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",mpe,[i.createVNode(upe,{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",ppe,[i.createVNode(Ffe,{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",hpe,[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(ve,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,gpe)):i.createCommentVNode("",!0),i.createVNode(i.unref(ho),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(epe,{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:S=>!t.readonly&&w.$router.push({name:i.unref(je).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",vpe,[t.isEditable?(i.openBlock(),i.createBlock(go,{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 _pe={class:"ao-project__phases"},Cpe={key:0,class:"ao-project-phase__phases-list-footer"},bpe={class:"ao-project-phase__col-phase"},ad=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)=>{Pn(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=Xi(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",_pe,[i.createVNode(i.unref(ho),{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(ype,{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",Cpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",bpe,[i.createVNode(go,{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 kpe={class:"ao-add-template-modal__form-body"},wpe={class:"field__row"},Epe={class:"ao-add-template-modal__form-footer"},Pg=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(Ma,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ct,{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",kpe,[i.createElementVNode("div",wpe,[i.createVNode(Dt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Epe,[i.createVNode(me,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const xpe={class:"ao-save-template-modal__form-body"},Spe={class:"field__row"},Tpe={class:"ao-field ao-field--inline"},Ape={class:"ao-field__label"},Npe={class:"ao-save-template-modal__phases"},Dpe={class:"ao-field__label"},Mpe={class:"ao-save-template-modal__phases-list"},Bpe=["value"],$pe={class:"ao-save-template-modal__form-footer"},Fg=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(Ma,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ct,{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",xpe,[i.createElementVNode("div",Spe,[i.createElementVNode("label",Tpe,[i.createElementVNode("span",Ape,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",Npe,[i.createElementVNode("div",Dpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",Mpe,[(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,Bpe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",$pe,[i.createVNode(me,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const Ope={class:"ao-project"},Lpe={class:"ao-project__body"},Ipe=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}=wn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:Q}=Uo(o.phases,"phase",n);r("addPhase",{name:F,rank:Q,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),Q=Qi(o.phases);r("addPhase",{name:F,rank:Q,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)},S=F=>{r("removeFile",F)},N=F=>{r("addComment",F)},O=F=>{r("updateComment",F)},A=F=>{r("removeComment",F)},D=i.ref(!1),M=i.ref(!1),L=(F,Q)=>{r("applyTemplate",{templateId:F,projectId:Q}),D.value=!1},I=(F,Q)=>{var oe;const P=(oe=o.templates)==null?void 0:oe.at(-1),re=P?Je.LexoRank.parse(P.rank).genNext():Je.LexoRank.middle();r("saveTemplate",{templateName:F,rank:re.format(),phaseIds:Q}),M.value=!1},j=Ki.useRouter(),R=i.ref("overview"),q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(R,F=>{F==="feed"?(j.push({name:je.feed}),console.log("Navigating to feed...")):F==="overview"?(j.push({name:je.project}),console.log("Navigating to feed...")):F==="mapping"&&(j.push({name:je.mapping}),console.log("Navigating to feed..."))}),(F,Q)=>{var re;const P=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",Ope,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{modelValue:R.value,"onUpdate:modelValue":Q[0]||(Q[0]=oe=>R.value=oe),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:Q[1]||(Q[1]=oe=>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:Q[2]||(Q[2]=oe=>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:Q[3]||(Q[3]=oe=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",Lpe,[i.createVNode(ad,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(re=t.project)==null?void 0:re.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(P,{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:Q[4]||(Q[4]=oe=>F.$router.push({name:i.unref(je).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(P,{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:S,onAddComment:N,onUpdateComment:O,onRemoveComment:A},{default:i.withCtx(({Component:oe})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(oe),null,{default:i.withCtx(G=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(G)))]),_: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(Fg,{key:0,phases:t.phases,onClose:Q[5]||(Q[5]=oe=>M.value=!1),onSave:I},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Pg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:Q[6]||(Q[6]=oe=>D.value=!1),onApply:L},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Ppe={class:"ao-card-feed__header"},Fpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Vpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Rpe={class:"ao-card-feed__body"},zpe={key:0,class:"ao-card-feed__breadcrumbs"},Upe={class:i.normalizeClass(["ao-card-feed__title-group"])},qpe={class:"ao-card-feed__title-line"},Hpe={key:0,class:"ao-card-feed__slug"},jpe={key:1,class:"ao-card-feed__deadline"},Wpe={class:"ao-card-feed__footer"},Zpe={class:"ao-card-feed__footer-row"},Kpe={class:"ao-assignees"},Gpe={key:0,class:"ao-assignee"},Ype={key:0,class:"ao-card-feed__subitems"},Jpe={key:0,class:"ao-card-feed__subitem"},Xpe={class:"ao-card-feed__subitem"},Qpe={key:1,class:"ao-card-feed__subitem"},eme={class:"ao-card-feed__subitem"},tme={class:"ao-card-feed__timer-wrapper"},nme={class:"ao-card-feed__footer-row"},ome={key:0,class:"ao-card-feed__progress-wrapper"},rme={class:"ao-card-feed__subitem"},ime={class:"ao-card-feed__subitem"},ld=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(()=>Da(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(ul,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",Ppe,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",Fpe,[t.isPrivate?(i.openBlock(),i.createBlock(ve,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(ve,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(ve,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Vpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Rpe,[l.value?(i.openBlock(),i.createElementBlock("span",zpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Upe,[i.createElementVNode("div",qpe,[t.slug?(i.openBlock(),i.createElementBlock("span",Hpe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(ct,{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",jpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Wpe,[i.createElementVNode("div",Zpe,[i.createElementVNode("ul",Kpe,[(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",Gpe,[i.createVNode(qn,{"user-name":i.unref(Bp)(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",Ype,[t.comments?(i.openBlock(),i.createElementBlock("li",Jpe,[i.createVNode(ve,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",Xpe,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",Qpe,[i.createVNode(ve,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",eme,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",tme,[i.createVNode(ve,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",nme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",ome,[i.createElementVNode("div",rme,[i.createVNode(ve,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",ime,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(dl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const sme={class:"ao-project-milestone"},ame={class:"ao-project-milestone__header"},lme={class:"ao-project-milestone__header_line"},cme={class:"ao-project-milestone__header_line"},ume={class:"ao-project-milestone__title"},dme={key:0,class:"ao-fieldset ao-milestone__fieldset"},fme={class:"ao-field__row ao-milestone__field-row"},pme={class:"ao-field ao-field--inline"},mme={class:"ao-field__row ao-milestone__field-row"},hme={class:"ao-field ao-milestone__field-multiselect"},gme={class:"ao-milestone__color-actions"},vme=["onClick"],yme=["title"],_me={class:"ao-project-milestone__body"},Cme={key:0,class:"ao-project-milestone__footer"},up=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}=wn(),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)=>{Pn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=Uo(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=Qi(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:Ar(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?Gc(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",sme,[i.createElementVNode("header",ame,[i.createElementVNode("div",lme,[i.createVNode(me,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",cme,[i.createElementVNode("div",ume,[i.createVNode(ct,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Lg,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=S=>k.value=S),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",dme,[i.createElementVNode("div",fme,[i.createElementVNode("label",pme,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=S=>y.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",mme,[i.createElementVNode("label",hme,[i.createVNode(Dt,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=S=>_.value=S),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:S,handleTagRemove:N})=>[i.createVNode(qn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:O=>N(S,O)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",gme,[i.createVNode(fl,{color:g.value,"onUpdate:color":E[3]||(E[3]=S=>g.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:O=>w(O,S)},null,12,vme)]),_: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(ve,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,yme)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",_me,[i.createVNode(i.unref(ho),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:S})=>{var N,O,A,D,M;return[i.createVNode(ld,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(O=c.value)==null?void 0:O.name,"milestone-color":(A=c.value)==null?void 0:A.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(D=S.comments)==null?void 0:D.length,attachments:(M=S.attachments)==null?void 0:M.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:L=>b.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(me,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:i.withModifiers(()=>b.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(me,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>b.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Cme,[i.createVNode(go,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const bme=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var 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(Xu,{key:0,activity:l.value,"activity-types":t.activityTypes,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(_=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,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y},{default:i.withCtx(w=>[i.renderSlot(C.$slots,"default",i.normalizeProps(i.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","onClose"])):i.createCommentVNode("",!0)}}}),kme={class:"ao-col-header"},wme=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",kme,[i.createVNode(ct,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Eme(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function wa(t){return typeof t=="function"?t():i.unref(t)}const xme=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sme=t=>t!=null,Mi=()=>{};function Tme(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 Ame(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=wa(t),u=wa(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 Nme(t,e=200,n={}){return Tme(Ame(e,n),t)}function sc(t){var e;const n=wa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Dme=xme?window:void 0;function Mme(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function Bme(t){const e=Mme();return i.computed(()=>(e.value,!!t()))}function $me(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Dme,immediate:l=!0}=n,c=Bme(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=wa(t);return(Array.isArray(h)?h:[h]).map(sc).filter(Sme)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,sc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:sc(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,m=()=>{d(),p(),f.value=!1};return Eme(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const Ome={class:i.normalizeClass(["ao-list-kanban"])},Lme={class:"ao-list-kanban__header"},Ime=["title"],Pme={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Fme={key:1,class:"ao-list-kanban__end"},Vme={key:0,class:"ao-list-kanban__no-more"},Rme={key:1,class:"ao-list-kanban__divider"},zme={key:1,class:"ao-list-kanban__footer"},Ume=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}},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);$me(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",Ome,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",Lme,[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(ve,{name:"Add"})],8,Ime)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(ho),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(ld,{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",Pme,[i.createVNode(ve,{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",Fme,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Vme,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Rme)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",zme,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(go,{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 qme={class:"ao-field ao-search-field"},Hme=["value","placeholder"],jme=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=Nme(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",qme,[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,Hme),i.createVNode(ve,{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 Wme={class:"ao-feed"},Zme={class:"ao-feed__filters"},Kme={class:"ao-feed__body"},Vg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{},loadAttachmentPreview:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=wn(),o=t,r=e;function s(P,re){r("toast",P,re)}const a=i.toRef(o,"activities"),l=async(P,re)=>{await r("selectActivity",P,re)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([P,re,oe,G],[z,te])=>{c.value=Object.fromEntries(P.map(de=>[de.id,re.filter(xe=>{var V;return((V=xe.status)==null?void 0:V.id)===de.id})])),oe&&!u.value?(l(oe,null),u.value=!0):G&&!u.value&&(l(null,G),u.value=!0),d.value&&Pn(re,te)},{immediate:!0});const p=i.computed(()=>{var P;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((P=o.selectedActivity.milestone.phase)==null?void 0:P.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=P=>{var te,de;const re=(te=o.activities)==null?void 0:te.at(-1),oe=re?Je.LexoRank.parse(re.rank).genNext():Je.LexoRank.middle(),G=((de=o.activities)==null?void 0:de.length)??0,z={name:n("activity.defaultName",{idx:G+1}),rank:oe.format(),statusId:P.id};o.filters.assigneeId.length>0&&(z.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(z.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(z.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",z)},h=P=>{var te,de;const re=((te=o.activities)==null?void 0:te.filter(xe=>{var V;return((V=xe.status)==null?void 0:V.id)===P.id}))??[],oe=Qi(re),G=((de=o.activities)==null?void 0:de.length)??0,z={name:n("activity.defaultName",{idx:G+1}),rank:oe,statusId:P.id};o.filters.assigneeId.length>0&&(z.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(z.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(z.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",z)},g=(P,re)=>{d.value=!1,r("update:filters",{...o.filters,[P]:re})},y=i.computed(()=>o.project?[o.project]:o.projects??[]),C=i.computed(()=>y.value.map(P=>({value:P.id,label:P.name}))),v=i.computed(()=>{var P;return(P=o.activityTypes)==null?void 0:P.map(re=>({value:re.id,label:re.name}))}),_=i.computed(()=>o.users.map(P=>({value:P.id,label:`${P.firstName} ${P.lastName}`,avatar:P.avatarUrl}))),k=P=>{o.selectedActivity&&r("update:activity",P)},w=P=>{r("update:activity",P)},b=P=>{r("archiveActivity",P)},E=P=>{r("unarchiveActivity",P)},T=P=>{var re;r("startTimer",P),(re=window.parent)==null||re.postMessage({type:"startTimer",data:P},"*")},S=P=>{d.value=!1,r("update:searchText",P)},N=P=>{d.value=!1,r("clear:searchText",P)},O=P=>{o.selectedActivity&&r("addSubtask",P)},A=P=>{o.selectedActivity&&r("updateSubtask",P)},D=P=>{o.selectedActivity&&r("deleteSubtask",P)},M=P=>{r("addFiles",P)},L=P=>{r("removeFile",P)},I=P=>{o.selectedActivity&&r("addComment",{...P,activityId:o.selectedActivity.id})},j=P=>{const{id:re}=o.selectedActivity||{};re&&r("updateComment",P)},R=P=>{const{id:re}=o.selectedActivity||{};re&&r("removeComment",P)},q=Ki.useRouter(),F=i.ref("feed"),Q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(F,P=>{P==="feed"?(q.push({name:je.feed}),console.log("Navigating to feed...")):P==="overview"?(q.push({name:je.project}),console.log("Navigating to feed...")):P==="mapping"&&(q.push({name:je.mapping}),console.log("Navigating to feed..."))}),(P,re)=>{var oe;return i.openBlock(),i.createElementBlock("div",Wme,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createElementVNode("div",Zme,[i.createVNode(ps,{modelValue:F.value,"onUpdate:modelValue":re[0]||(re[0]=G=>F.value=G),tabs:Q},null,8,["modelValue"]),i.createVNode(jme,{"model-value":t.searchText,placeholder:P.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:N},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Dt,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:P.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":re[1]||(re[1]=G=>g(i.unref(No).project,G))},null,8,["model-value","options","placeholder"])),v.value?(i.openBlock(),i.createBlock(Dt,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:P.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":re[2]||(re[2]=G=>g(i.unref(No).type,G))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),_.value.length?(i.openBlock(),i.createBlock(Dt,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:P.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":re[3]||(re[3]=G=>g(i.unref(No).assignee,G))},{tag:i.withCtx(({option:G,handleTagRemove:z})=>[i.createVNode(qn,{"user-name":G.label,"avatar-url":G.avatar,"is-closable":!0,onClose:te=>z(G,te)},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:P.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:re[4]||(re[4]=G=>P.$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:P.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:re[5]||(re[5]=G=>P.$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:P.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:re[6]||(re[6]=G=>P.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",Kme,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,G=>(i.openBlock(),i.createBlock(Ume,{key:G.id,status:G,list:c.value[G.id],title:G.name,"footer-label":P.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":f.value,"show-header-add":t.isEditable,onAdd:()=>m(G),onAddAtBeginning:()=>h(G),onSelectActivity:l,onArchiveActivity:b,onUnarchiveActivity:E,onUpdateActivity:w,onStartTimer:T},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Xu,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(oe=t.selectedActivity.milestone)==null?void 0:oe.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:y.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,onClose:re[7]||(re[7]=()=>l(null,null)),"onUpdate:activity":k,onAddSubtask:O,onUpdateSubtask:A,onDeleteSubtask:D,onAddFiles:M,onRemoveFile:L,onAddComment:I,onUpdateComment:j,onRemoveComment:R,onToast:s},{default:i.withCtx(G=>[i.renderSlot(P.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(G)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview"])):i.createCommentVNode("",!0)]))])}}});const Gme={class:"ao-project-mapping"},Yme={class:"ao-project-mapping-mapping__body"},Jme={class:"ao-project-mapping-mapping__phases"},Xme={key:0,class:"ao-project-mapping-mapping__image-wrapper"},Qme=["src","alt"],ehe=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}=wn(),o=t,r=e,s=()=>{const{name:v,rank:_}=Uo(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=Qi(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?Je.LexoRank.parse(k.rank).genNext():Je.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Ki.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:je.feed}),console.log("Navigating to feed...")):v==="overview"?(g.push({name:je.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:je.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",Gme,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{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",Yme,[i.createElementVNode("div",Jme,[i.createVNode(ad,{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",Xme,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,Qme)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[p.value?(i.openBlock(),i.createBlock(Fg,{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(Pg,{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 Po={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},the=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Rg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Ig,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},nhe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:Ipe,props:!0,children:[{path:":phaseId/:milestoneId",name:je.milestone,component:up,props:!0},{path:":phaseId/:milestoneId/:activityId",name:je.activity,props:{default:!0,modal:!0},components:{default:up,modal:bme}}]},{path:"feed",name:je.feed,component:Vg,props:!0},{path:"mapping",name:je.mapping,component:ehe,props:!0}]}],ohe={class:"ao-templates"},Rg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=wn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{Pn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Je.LexoRank.parse(u.rank).genNext():Je.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:Oe.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Oe.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:Oe.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",ohe,[i.createVNode(es,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(ho),{"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(U_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(f_)(f.phases):0,activities:f.phases?i.unref(p_)(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(Po).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 rhe={class:"ao-field__label"},zg=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",rhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),ihe=["type","value","disabled","readonly"],she=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(zg,{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,ihe)]),_:1},8,["label"]))}}),ahe={class:"ao-field"},lhe={class:"ao-field__label"},che=["checked","disabled"],uhe=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",ahe,[i.createElementVNode("span",lhe,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,che)]))}});exports.AoAvatar=qn;exports.AoCardFeed=ld;exports.AoCheckboxField=uhe;exports.AoColorPicker=fl;exports.AoFeed=Vg;exports.AoField=zg;exports.AoInputField=she;exports.AoMultiselect=Dt;exports.AoProjectPhases=ad;exports.AoTabBar=ps;exports.AoTemplateDetails=Ig;exports.AoTemplates=Yg;exports.AoTemplatesList=Rg;exports.EstimationUnit=vp;exports.TemplateItemTypeEnum=gp;exports.activityFeedStatus=Ey;exports.durationTypes=wy;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=nhe;exports.getTemplateRoutes=the;exports.listUpdateTypes=xy;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=pp;exports.ruleDurationUnits=hp;exports.ruleTriggerTypes=mp;exports.templateItemType=Oe;exports.templateRouteNames=Po;
|
|
58
|
+
*/function Ao(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=vfe(t):/rgb/.test(t)?e=cp(t):typeof t=="string"?e=cp(`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}=yfe(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function Qu(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 Wc(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 gfe({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 vfe(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 cp(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 yfe({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 ed=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),Wc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Wc("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 Cfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",_fe,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}ed.render=Cfe;ed.__file="src/color/Saturation.vue";var td=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 bfe={ref:"canvasHue"};function kfe(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",bfe,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}td.render=kfe;td.__file="src/color/Hue.vue";var nd=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=Qu(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Wc("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 wfe={ref:"canvasAlpha"};function Efe(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",wfe,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}nd.render=Efe;nd.__file="src/color/Alpha.vue";var od=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=Qu(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 xfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}od.render=xfe;od.__file="src/color/Preview.vue";var rd=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 Sfe=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),Tfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Afe=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 Nfe(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))},[Sfe],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",Tfe,[Afe])):i.createCommentVNode("v-if",!0)])}rd.render=Nfe;rd.__file="src/color/Sucker.vue";var id=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 Dfe={class:"color-type"},Bfe={class:"name"};function Mfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",Dfe,[i.createVNode("span",Bfe,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]])])}id.render=Mfe;id.__file="src/color/Box.vue";var sd=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=Qu(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 $fe={class:"colors"},Ofe={key:0,class:"colors history"};function Lfe(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",$fe,[(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",Ofe,[(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)])}sd.render=Lfe;sd.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:ed,Hue:td,Alpha:nd,Preview:od,Sucker:rd,Box:id,Colors:sd},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 gfe(this.rgba,!0)}},created(){Object.assign(this,Ao(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:r,s,v:a}=Ao(t);Object.assign(this,{r:e,g:n,b:o,h:r,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:r,h:s,s:a,v:l}=Ao(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Ife={class:"color-set"};function Pfe(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",Ife,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(p,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=Pfe;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Vfe={class:"color-picker-wrapper"},fl=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",Vfe,[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(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const Ffe={class:"ao-card-project-phase__header"},Rfe={class:"ao-card-project-item__title-line"},zfe={key:0,class:"ao-card-project-item-phase__estimation"},Ufe={class:"ao-card-project-phase__footer"},qfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Hfe={class:"ao-card-project-phase__subitem"},jfe={class:"ao-card-project-phase__subitem"},Wfe={key:0,class:"ao-card-project-phase__secondary"},Zfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Kfe=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(()=>Na(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===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),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(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{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",Rfe,[i.createVNode(ct,{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",zfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Ufe,[u.value?(i.openBlock(),i.createElementBlock("div",qfe,[i.createElementVNode("div",Hfe,[i.createVNode(_e,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",jfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Wfe,[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",Zfe,i.toDisplayString(i.unref(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Ffe,[i.createVNode(pe,{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 Gfe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const Yfe={class:"ao-card-project-milestone__default"},Jfe={class:"ao-title-with-badge-wrapper"},Xfe={class:"ao-card-project-item__title-line"},Qfe={key:0,class:"ao-card-project-item-milestone__estimation"},epe={key:0,class:"ao-card-project-milestone__archive"},tpe={class:"ao-card-project-milestone__activities"},npe={class:"ao-card-project-milestone__activities-row"},ope={class:"ao-card-project-milestone__subitem"},rpe={class:"ao-card-project-milestone__subitem"},ipe={key:1,class:"ao-card-project-milestone__secondary"},spe={class:"ao-card-project-milestone__footer"},ape={key:1,class:"ao-field ao-card-project-milestone__deadline"},lpe={class:"ao-field__label"},cpe={key:2,class:"ao-card-project-milestone__assignee"},upe=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(()=>Na(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=>Gc(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(ul,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",Yfe,[i.createElementVNode("div",Jfe,[i.createVNode(Gfe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",Xfe,[i.createVNode(ct,{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",Qfe," ("+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",epe,[i.createVNode(pe,{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",tpe,[i.createElementVNode("div",npe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",ope,[i.createVNode(_e,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",rpe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(dl,{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",ipe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",spe,[t.important?(i.openBlock(),i.createBlock(_e,{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",ape,[i.createElementVNode("span",lpe,i.toDisplayString(i.unref(Da)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",cpe,[i.createVNode(jn,{"user-name":i.unref(Mp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const dpe={class:"ao-mapping-card-project-phase__header"},fpe={class:"ao-card-project-item__title-line"},ppe={key:0,class:"ao-card-project-item-phase__estimation"},mpe={class:"ao-mapping-card-project-phase__footer"},hpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},gpe={class:"ao-mapping-card-project-phase__subitem"},vpe={class:"ao-mapping-card-project-phase__subitem"},ype={key:0,class:"ao-mapping-card-project-phase__secondary"},_pe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Cpe=i.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((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(()=>Na(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===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),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(fl,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:i.withCtx(({openPicker:C,bgColor:v})=>[i.createVNode(ul,{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",fpe,[i.createVNode(ct,{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",ppe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",mpe,[u.value?(i.openBlock(),i.createElementBlock("div",hpe,[i.createElementVNode("div",gpe,[i.createVNode(_e,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",vpe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(dl,{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",ype,[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(Da)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",dpe,[i.createVNode(pe,{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 bpe={class:"ao-project-phase"},kpe={key:0,class:"ao-project-phase__drag ao-card__drag"},wpe={key:1,class:"ao-project-phase__col-phase"},Epe={key:2,class:"ao-mapping-project-phase__col-phase"},xpe={key:0,class:"ao-project-phase__col-milestones"},Spe=["title"],Tpe={class:"ao-project-phase__milestones-list-footer"},Ape=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}=En(),o=t,r=e;i.watch(()=>o.phase.milestones,(w,b)=>{Fn(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=>g_(w,o.closedStatus))),u=w=>{const{name:b,rank:E}=Uo(c.value??[],"milestone",n);r("addMilestone",{name:b,rank:E,phaseId:w})},d=w=>{const b=n("template.defaultName.milestone",{idx:1}),E=Qi(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:Ar(c.value,w.added.newIndex)}):"removed"in w||"moved"in w&&r("updateMilestone",{id:w.moved.element.id,rank:Ar(c.value,w.moved.newIndex)})},C=Ki.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:y_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(w,b)=>(i.openBlock(),i.createElementBlock("li",bpe,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(k.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",kpe,[i.createVNode(_e,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createElementBlock("div",Epe,[i.createVNode(Cpe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",wpe,[i.createVNode(Kfe,{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",xpe,[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(_e,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],10,Spe)):i.createCommentVNode("",!0),i.createVNode(i.unref(go),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(upe,{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:S=>!t.readonly&&w.$router.push({name:i.unref(Ze).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",Tpe,[t.isEditable?(i.openBlock(),i.createBlock(vo,{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 Npe={class:"ao-project__phases"},Dpe={key:0,class:"ao-project-phase__phases-list-footer"},Bpe={class:"ao-project-phase__col-phase"},ad=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)=>{Fn(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=Xi(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",Npe,[i.createVNode(i.unref(go),{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(Ape,{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",Dpe,[h[0]||(h[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",Bpe,[i.createVNode(vo,{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 Mpe={class:"ao-add-template-modal__form-body"},$pe={class:"field__row"},Ope={class:"ao-add-template-modal__form-footer"},Pg=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(Ba,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ct,{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",Mpe,[i.createElementVNode("div",$pe,[i.createVNode(Ct,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Ope,[i.createVNode(pe,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Lpe={class:"ao-save-template-modal__form-body"},Ipe={class:"field__row"},Ppe={class:"ao-field ao-field--inline"},Vpe={class:"ao-field__label"},Fpe={class:"ao-save-template-modal__phases"},Rpe={class:"ao-field__label"},zpe={class:"ao-save-template-modal__phases-list"},Upe=["value"],qpe={class:"ao-save-template-modal__form-footer"},Vg=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(Ba,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(ct,{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",Lpe,[i.createElementVNode("div",Ipe,[i.createElementVNode("label",Ppe,[i.createElementVNode("span",Vpe,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",Fpe,[i.createElementVNode("div",Rpe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",zpe,[(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,Upe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",qpe,[i.createVNode(pe,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const Hpe={class:"ao-project"},jpe={class:"ao-project__body"},Wpe=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}=En(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:ee}=Uo(o.phases,"phase",n);r("addPhase",{name:F,rank:ee,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),ee=Qi(o.phases);r("addPhase",{name:F,rank:ee,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)},S=F=>{r("removeFile",F)},N=F=>{r("addComment",F)},L=F=>{r("updateComment",F)},A=F=>{r("removeComment",F)},D=i.ref(!1),B=i.ref(!1),I=(F,ee)=>{r("applyTemplate",{templateId:F,projectId:ee}),D.value=!1},V=(F,ee)=>{var oe;const P=(oe=o.templates)==null?void 0:oe.at(-1),re=P?Xe.LexoRank.parse(P.rank).genNext():Xe.LexoRank.middle();r("saveTemplate",{templateName:F,rank:re.format(),phaseIds:ee}),B.value=!1},j=Ki.useRouter(),R=i.ref("overview"),q=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(R,F=>{F==="feed"?(j.push({name:Ze.feed}),console.log("Navigating to feed...")):F==="overview"?(j.push({name:Ze.project}),console.log("Navigating to feed...")):F==="mapping"&&(j.push({name:Ze.mapping}),console.log("Navigating to feed..."))}),(F,ee)=>{var re;const P=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",Hpe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{modelValue:R.value,"onUpdate:modelValue":ee[0]||(ee[0]=oe=>R.value=oe),tabs:q},null,8,["modelValue"]),i.createVNode(pe,{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:ee[1]||(ee[1]=oe=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{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(pe,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:ee[2]||(ee[2]=oe=>B.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(pe,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:ee[3]||(ee[3]=oe=>D.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",jpe,[i.createVNode(ad,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(re=t.project)==null?void 0:re.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(P,{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:ee[4]||(ee[4]=oe=>F.$router.push({name:i.unref(Ze).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(P,{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:S,onAddComment:N,onUpdateComment:L,onRemoveComment:A},{default:i.withCtx(({Component:oe})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(oe),null,{default:i.withCtx(G=>[i.renderSlot(F.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(G)))]),_: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"},[B.value?(i.openBlock(),i.createBlock(Vg,{key:0,phases:t.phases,onClose:ee[5]||(ee[5]=oe=>B.value=!1),onSave:V},null,8,["phases"])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createBlock(Pg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:ee[6]||(ee[6]=oe=>D.value=!1),onApply:I},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Zpe={class:"ao-card-feed__header"},Kpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Gpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Ype={class:"ao-card-feed__body"},Jpe={key:0,class:"ao-card-feed__breadcrumbs"},Xpe={class:i.normalizeClass(["ao-card-feed__title-group"])},Qpe={class:"ao-card-feed__title-line"},eme={key:0,class:"ao-card-feed__slug"},tme={key:1,class:"ao-card-feed__deadline"},nme={class:"ao-card-feed__footer"},ome={class:"ao-card-feed__footer-row"},rme={class:"ao-assignees"},ime={key:0,class:"ao-assignee"},sme={key:0,class:"ao-card-feed__subitems"},ame={key:0,class:"ao-card-feed__subitem"},lme={class:"ao-card-feed__subitem"},cme={key:1,class:"ao-card-feed__subitem"},ume={class:"ao-card-feed__subitem"},dme={class:"ao-card-feed__timer-wrapper"},fme={class:"ao-card-feed__footer-row"},pme={key:0,class:"ao-card-feed__progress-wrapper"},mme={class:"ao-card-feed__subitem"},hme={class:"ao-card-feed__subitem"},ld=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(()=>Da(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(ul,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",Zpe,[r.value?(i.openBlock(),i.createBlock(Mi,{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",Kpe,[t.isPrivate?(i.openBlock(),i.createBlock(_e,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(_e,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(_e,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Gpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",Ype,[l.value?(i.openBlock(),i.createElementBlock("span",Jpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",Xpe,[i.createElementVNode("div",Qpe,[t.slug?(i.openBlock(),i.createElementBlock("span",eme,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(ct,{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",tme,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",nme,[i.createElementVNode("div",ome,[i.createElementVNode("ul",rme,[(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",ime,[i.createVNode(jn,{"user-name":i.unref(Mp)(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",sme,[t.comments?(i.openBlock(),i.createElementBlock("li",ame,[i.createVNode(_e,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",lme,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",cme,[i.createVNode(_e,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",ume,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",dme,[i.createVNode(_e,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",fme,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",pme,[i.createElementVNode("div",mme,[i.createVNode(_e,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",hme,i.toDisplayString(m.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(dl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const gme={class:"ao-project-milestone"},vme={class:"ao-project-milestone__header"},yme={class:"ao-project-milestone__header_line"},_me={class:"ao-project-milestone__header_line"},Cme={class:"ao-project-milestone__title"},bme={key:0,class:"ao-fieldset ao-milestone__fieldset"},kme={class:"ao-field__row ao-milestone__field-row"},wme={class:"ao-field ao-field--inline"},Eme={class:"ao-field__row ao-milestone__field-row"},xme={class:"ao-field ao-milestone__field-multiselect"},Sme={class:"ao-milestone__color-actions"},Tme=["onClick"],Ame=["title"],Nme={class:"ao-project-milestone__body"},Dme={key:0,class:"ao-project-milestone__footer"},up=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}=En(),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)=>{Fn(b,E)});const d=b=>{r("close",b)},f=()=>{const{name:b,rank:E}=Uo(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=Qi(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:Ar(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?Gc(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",gme,[i.createElementVNode("header",vme,[i.createElementVNode("div",yme,[i.createVNode(pe,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",_me,[i.createElementVNode("div",Cme,[i.createVNode(ct,{title:((T=c.value)==null?void 0:T.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(Lg,{modelValue:k.value,"onUpdate:modelValue":E[0]||(E[0]=S=>k.value=S),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",bme,[i.createElementVNode("div",kme,[i.createElementVNode("label",wme,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=S=>y.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,y.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Eme,[i.createElementVNode("label",xme,[i.createVNode(Ct,{modelValue:_.value,"onUpdate:modelValue":E[2]||(E[2]=S=>_.value=S),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:S,handleTagRemove:N})=>[i.createVNode(jn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:L=>N(S,L)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Sme,[i.createVNode(fl,{color:g.value,"onUpdate:color":E[3]||(E[3]=S=>g.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:N})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:N}),class:"color-button",onClick:L=>w(L,S)},null,12,Tme)]),_: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(_e,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Ame)):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Nme,[i.createVNode(i.unref(go),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:S})=>{var N,L,A,D,B;return[i.createVNode(ld,{id:S.id,name:S.name||S.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:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(D=S.comments)==null?void 0:D.length,attachments:(B=S.attachments)==null?void 0:B.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":C(S),onClick:I=>b.$router.push({name:i.unref(Ze).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(pe,{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:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(pe,{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:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Dme,[i.createVNode(vo,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const Bme=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}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],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(Xu,{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,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y},{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","onClose"])):i.createCommentVNode("",!0)}}}),Mme={class:"ao-col-header"},$me=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Mme,[i.createVNode(ct,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Mi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Ome(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function wa(t){return typeof t=="function"?t():i.unref(t)}const Lme=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ime=t=>t!=null,Bi=()=>{};function Pme(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 Vme(t,e={}){let n,o,r=Bi;const s=l=>{clearTimeout(l),r(),r=Bi};return l=>{const c=wa(t),u=wa(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 Fme(t,e=200,n={}){return Pme(Vme(e,n),t)}function sc(t){var e;const n=wa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Rme=Lme?window:void 0;function zme(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function Ume(t){const e=zme();return i.computed(()=>(e.value,!!t()))}function qme(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Rme,immediate:l=!0}=n,c=Ume(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const h=wa(t);return(Array.isArray(h)?h:[h]).map(sc).filter(Ime)});let d=Bi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,sc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:sc(g),rootMargin:r,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Bi}},{immediate:l,flush:"post"}):Bi,m=()=>{d(),p(),f.value=!1};return Ome(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const Hme={class:i.normalizeClass(["ao-list-kanban"])},jme={class:"ao-list-kanban__header"},Wme=["title"],Zme={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Kme={key:1,class:"ao-list-kanban__end"},Gme={key:0,class:"ao-list-kanban__no-more"},Yme={key:1,class:"ao-list-kanban__divider"},Jme={key:1,class:"ao-list-kanban__footer"},Xme=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}},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);qme(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",Hme,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var m;return[i.createElementVNode("div",jme,[t.title?(i.openBlock(),i.createBlock($me,{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(_e,{name:"Add"})],8,Wme)):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(go),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(ld,{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(pe,{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(pe,{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",Zme,[i.createVNode(_e,{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",Kme,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",Gme,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",Yme)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",Jme,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(vo,{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 Qme={class:"ao-field ao-search-field"},ehe=["value","placeholder"],the=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=Fme(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",Qme,[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,ehe),i.createVNode(_e,{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(pe,{"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 nhe={class:"ao-feed"},ohe={class:"ao-feed__filters"},rhe={class:"ao-feed__body"},Fg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{},loadAttachmentPreview:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;function s(P,re){r("toast",P,re)}const a=i.toRef(o,"activities"),l=async(P,re)=>{await r("selectActivity",P,re)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([P,re,oe,G],[z,te])=>{c.value=Object.fromEntries(P.map(ue=>[ue.id,re.filter(xe=>{var Ve;return((Ve=xe.status)==null?void 0:Ve.id)===ue.id})])),oe&&!u.value?(l(oe,null),u.value=!0):G&&!u.value&&(l(null,G),u.value=!0),d.value&&Fn(re,te)},{immediate:!0});const p=i.computed(()=>{var P;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((P=o.selectedActivity.milestone.phase)==null?void 0:P.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=P=>{var te,ue;const re=(te=o.activities)==null?void 0:te.at(-1),oe=re?Xe.LexoRank.parse(re.rank).genNext():Xe.LexoRank.middle(),G=((ue=o.activities)==null?void 0:ue.length)??0,z={name:n("activity.defaultName",{idx:G+1}),rank:oe.format(),statusId:P.id};o.filters.assigneeId.length>0&&(z.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(z.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(z.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",z)},h=P=>{var te,ue;const re=((te=o.activities)==null?void 0:te.filter(xe=>{var Ve;return((Ve=xe.status)==null?void 0:Ve.id)===P.id}))??[],oe=Qi(re),G=((ue=o.activities)==null?void 0:ue.length)??0,z={name:n("activity.defaultName",{idx:G+1}),rank:oe,statusId:P.id};o.filters.assigneeId.length>0&&(z.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(z.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(z.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",z)},g=(P,re)=>{d.value=!1,r("update:filters",{...o.filters,[P]:re})},y=i.computed(()=>o.project?[o.project]:o.projects??[]),C=i.computed(()=>y.value.map(P=>({value:P.id,label:P.name}))),v=i.computed(()=>{var P;return(P=o.activityTypes)==null?void 0:P.map(re=>({value:re.id,label:re.name}))}),_=i.computed(()=>o.users.map(P=>({value:P.id,label:`${P.firstName} ${P.lastName}`,avatar:P.avatarUrl}))),k=P=>{o.selectedActivity&&r("update:activity",P)},w=P=>{r("update:activity",P)},b=P=>{r("archiveActivity",P)},E=P=>{r("unarchiveActivity",P)},T=P=>{var re;r("startTimer",P),(re=window.parent)==null||re.postMessage({type:"startTimer",data:P},"*")},S=P=>{d.value=!1,r("update:searchText",P)},N=P=>{d.value=!1,r("clear:searchText",P)},L=P=>{o.selectedActivity&&r("addSubtask",P)},A=P=>{o.selectedActivity&&r("updateSubtask",P)},D=P=>{o.selectedActivity&&r("deleteSubtask",P)},B=P=>{r("addFiles",P)},I=P=>{r("removeFile",P)},V=P=>{o.selectedActivity&&r("addComment",{...P,activityId:o.selectedActivity.id})},j=P=>{const{id:re}=o.selectedActivity||{};re&&r("updateComment",P)},R=P=>{const{id:re}=o.selectedActivity||{};re&&r("removeComment",P)},q=Ki.useRouter(),F=i.ref("feed"),ee=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(F,P=>{P==="feed"?(q.push({name:Ze.feed}),console.log("Navigating to feed...")):P==="overview"?(q.push({name:Ze.project}),console.log("Navigating to feed...")):P==="mapping"&&(q.push({name:Ze.mapping}),console.log("Navigating to feed..."))}),(P,re)=>{var oe;return i.openBlock(),i.createElementBlock("div",nhe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createElementVNode("div",ohe,[i.createVNode(ps,{modelValue:F.value,"onUpdate:modelValue":re[0]||(re[0]=G=>F.value=G),tabs:ee},null,8,["modelValue"]),i.createVNode(the,{"model-value":t.searchText,placeholder:P.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:N},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Ct,{key:0,"model-value":t.filters[i.unref(No).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:P.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":re[1]||(re[1]=G=>g(i.unref(No).project,G))},null,8,["model-value","options","placeholder"])),v.value?(i.openBlock(),i.createBlock(Ct,{key:1,"model-value":t.filters[i.unref(No).type],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:P.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":re[2]||(re[2]=G=>g(i.unref(No).type,G))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),_.value.length?(i.openBlock(),i.createBlock(Ct,{key:2,"model-value":t.filters[i.unref(No).assignee],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:P.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":re[3]||(re[3]=G=>g(i.unref(No).assignee,G))},{tag:i.withCtx(({option:G,handleTagRemove:z})=>[i.createVNode(jn,{"user-name":G.label,"avatar-url":G.avatar,"is-closable":!0,onClose:te=>z(G,te)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(pe,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:re[4]||(re[4]=G=>P.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(pe,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:re[5]||(re[5]=G=>P.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(pe,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:re[6]||(re[6]=G=>P.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",rhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,G=>(i.openBlock(),i.createBlock(Xme,{key:G.id,status:G,list:c.value[G.id],title:G.name,"footer-label":P.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":f.value,"show-header-add":t.isEditable,onAdd:()=>m(G),onAddAtBeginning:()=>h(G),onSelectActivity:l,onArchiveActivity:b,onUnarchiveActivity:E,onUpdateActivity:w,onStartTimer:T},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","onAdd","onAddAtBeginning"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Xu,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(oe=t.selectedActivity.milestone)==null?void 0:oe.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:y.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,onClose:re[7]||(re[7]=()=>l(null,null)),"onUpdate:activity":k,onAddSubtask:L,onUpdateSubtask:A,onDeleteSubtask:D,onAddFiles:B,onRemoveFile:I,onAddComment:V,onUpdateComment:j,onRemoveComment:R,onToast:s},{default:i.withCtx(G=>[i.renderSlot(P.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(G)))]),_: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"])):i.createCommentVNode("",!0)]))])}}});const ihe={class:"ao-project-mapping"},she={class:"ao-project-mapping-mapping__body"},ahe={class:"ao-project-mapping-mapping__phases"},lhe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},che=["src","alt"],uhe=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}=En(),o=t,r=e,s=()=>{const{name:v,rank:_}=Uo(o.phases,"phase",n);r("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=Qi(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?Xe.LexoRank.parse(k.rank).genNext():Xe.LexoRank.middle();r("saveTemplate",{templateName:v,rank:w.format(),phaseIds:_}),p.value=!1},g=Ki.useRouter(),y=i.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(y,v=>{v==="feed"?(g.push({name:Ze.feed}),console.log("Navigating to feed...")):v==="overview"?(g.push({name:Ze.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Ze.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",ihe,[i.createVNode(es,null,{primary:i.withCtx(()=>[i.createVNode(ps,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),i.createVNode(pe,{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(pe,{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(pe,{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(pe,{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",she,[i.createElementVNode("div",ahe,[i.createVNode(ad,{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",lhe,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,che)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[p.value?(i.openBlock(),i.createBlock(Vg,{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(Pg,{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 Po={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},dhe=(t,e={})=>[{path:t,name:Po.TEMPLATES,redirect:{name:Po.TEMPLATES_LIST},...e,children:[{path:"",name:Po.TEMPLATES_LIST,component:Rg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Po.TEMPLATE_DETAILS,component:Ig,props:!0}]}],Ze={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},fhe=(t,e={})=>[{path:t,...e,redirect:{name:Ze.project},children:[{path:"",name:Ze.project,component:Wpe,props:!0,children:[{path:":phaseId/:milestoneId",name:Ze.milestone,component:up,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Ze.activity,props:{default:!0,modal:!0},components:{default:up,modal:Bme}}]},{path:"feed",name:Ze.feed,component:Fg,props:!0},{path:"mapping",name:Ze.mapping,component:uhe,props:!0}]}],phe={class:"ao-templates"},Rg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=En(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{Fn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Xe.LexoRank.parse(u.rank).genNext():Xe.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:Le.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Le.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:Le.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",phe,[i.createVNode(es,null,{secondary:i.withCtx(()=>[i.createVNode(pe,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(go),{"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(U_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(f_)(f.phases):0,activities:f.phases?i.unref(p_)(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(Po).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 mhe={class:"ao-field__label"},zg=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",mhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),hhe=["type","value","disabled","readonly"],ghe=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(zg,{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,hhe)]),_:1},8,["label"]))}}),vhe={class:"ao-field"},yhe={class:"ao-field__label"},_he=["checked","disabled"],Che=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",vhe,[i.createElementVNode("span",yhe,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=ld;exports.AoCheckboxField=Che;exports.AoColorPicker=fl;exports.AoFeed=Fg;exports.AoField=zg;exports.AoInputField=ghe;exports.AoMultiselect=Ct;exports.AoProjectPhases=ad;exports.AoTabBar=ps;exports.AoTemplateDetails=Ig;exports.AoTemplates=Yg;exports.AoTemplatesList=Rg;exports.EstimationUnit=vp;exports.TemplateItemTypeEnum=gp;exports.activityFeedStatus=Ey;exports.durationTypes=wy;exports.feedFilterTypes=No;exports.getProjectOverviewRoutes=fhe;exports.getTemplateRoutes=dhe;exports.listUpdateTypes=xy;exports.milestoneStatus=$i;exports.projectOverviewRoutes=Ze;exports.ruleComparators=pp;exports.ruleDurationUnits=hp;exports.ruleTriggerTypes=mp;exports.templateItemType=Le;exports.templateRouteNames=Po;
|