(()=>{var e,t={104(e,t,n){"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>js,hasStandardBrowserEnv:()=>Zs,hasStandardBrowserWebWorkerEnv:()=>Xs,navigator:()=>Bs,origin:()=>Vs});var i={};n.r(i),n.d(i,{fetchApiData:()=>pu,saveSettings:()=>hu,setApiData:()=>cu,setLoading:()=>uu,setSaving:()=>du});var o={};n.r(o),n.d(o,{getApiData:()=>fu,getBlockVisibility:()=>gu,getDashboardSettings:()=>Ou,getEapShortcodes:()=>vu,getPluginSettings:()=>mu,isLoading:()=>bu,isSaving:()=>yu});const a=window.wp.element,s=window.wp.data,l=window.wp.i18n;var c=n(609),u=n.n(c);let d={data:""},p=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||d},h=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,f=/\/\*[^]*?\*\/| +/g,m=/\n+/g,g=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?g(a,o):o+"{"+g(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=g(a,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=g.p?g.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},O={},v=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+v(e[n]);return t}return e},b=(e,t,n,r,i)=>{let o=v(e),a=O[o]||(O[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!O[a]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=h.exec(e.replace(f,""));)t[4]?r.shift():t[3]?(n=t[3].replace(m," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(m," ").trim();return r[0]})(e);O[a]=g(i?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&O.g?O.g:null;return n&&(O.g=O[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(O[a],t,r,s),a};function y(e){let t=this||{},n=e.call?e(t.p):e;return b(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":g(e,""):!1===e?"":e}return e+r+(null==o?"":o)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,p(t.target),t.g,t.o,t.k)}y.bind({g:1});let w,x,S,E=y.bind({k:1});function k(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:x&&x()},s),n.o=/ *go\d+/.test(l),s.className=y.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),S&&c[0]&&S(s),w(c,s)}return t?t(i):i}}var R=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,C=(()=>{let e=0;return()=>(++e).toString()})(),P=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),A="default",Q=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return Q(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},T=[],M={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},_={},I=(e,t=A)=>{_[t]=Q(_[t]||M,e),T.forEach(([e,n])=>{e===t&&n(_[t])})},$=e=>Object.keys(_).forEach(t=>I(e,t)),D=(e=A)=>t=>{I(t,e)},L={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},N=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||C()}))(t,e,n);return D(r.toasterId||(e=>Object.keys(_).find(t=>_[t].toasts.some(t=>t.id===e)))(r.id))({type:2,toast:r}),r.id},z=(e,t)=>N("blank")(e,t);z.error=N("error"),z.success=N("success"),z.loading=N("loading"),z.custom=N("custom"),z.dismiss=(e,t)=>{let n={type:3,toastId:e};t?D(t)(n):$(n)},z.dismissAll=e=>z.dismiss(void 0,e),z.remove=(e,t)=>{let n={type:4,toastId:e};t?D(t)(n):$(n)},z.removeAll=e=>z.remove(void 0,e),z.promise=(e,t,n)=>{let r=z.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?R(t.success,e):void 0;return i?z.success(i,{id:r,...n,...null==n?void 0:n.success}):z.dismiss(r),e}).catch(e=>{let i=t.error?R(t.error,e):void 0;i?z.error(i,{id:r,...n,...null==n?void 0:n.error}):z.dismiss(r)}),e};var j=E` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,B=E` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Z=E` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,X=k("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${j} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${B} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Z} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,V=E` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,F=k("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${V} 1s linear infinite; `,q=E` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,W=E` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,G=k("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${q} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${W} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,H=k("div")` position: absolute; `,U=k("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Y=E` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,K=k("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Y} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,J=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?c.createElement(K,null,t):t:"blank"===n?null:c.createElement(U,null,c.createElement(F,{...r}),"loading"!==n&&c.createElement(H,null,"error"===n?c.createElement(X,{...r}):c.createElement(G,{...r})))},ee=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,te=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,ne=k("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,re=k("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,ie=c.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=P()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ee(n),te(n)];return{animation:t?`${E(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${E(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},o=c.createElement(J,{toast:e}),a=c.createElement(re,{...e.ariaProps},R(e.message,e));return c.createElement(ne,{className:e.className,style:{...i,...n,...e.style}},"function"==typeof r?r({icon:o,message:a}):c.createElement(c.Fragment,null,o,a))});!function(e){g.p=void 0,w=e,x=void 0,S=void 0}(c.createElement);var oe=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=c.useCallback(t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return c.createElement("div",{ref:o,className:t,style:n},i)},ae=y` z-index: 9999; > * { pointer-events: auto; } `,se=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:u}=((e,t="default")=>{let{toasts:n,pausedAt:r}=((e={},t=A)=>{let[n,r]=(0,c.useState)(_[t]||M),i=(0,c.useRef)(_[t]);(0,c.useEffect)(()=>(i.current!==_[t]&&r(_[t]),T.push([t,r]),()=>{let e=T.findIndex(([e])=>e===t);e>-1&&T.splice(e,1)}),[t]);let o=n.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||L[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...n,toasts:o}})(e,t),i=(0,c.useRef)(new Map).current,o=(0,c.useCallback)((e,t=1e3)=>{if(i.has(e))return;let n=setTimeout(()=>{i.delete(e),a({type:4,toastId:e})},t);i.set(e,n)},[]);(0,c.useEffect)(()=>{if(r)return;let e=Date.now(),i=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout(()=>z.dismiss(n.id,t),r);n.visible&&z.dismiss(n.id)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let a=(0,c.useCallback)(D(t),[t]),s=(0,c.useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,c.useCallback)((e,t)=>{a({type:1,toast:{id:e,height:t}})},[a]),u=(0,c.useCallback)(()=>{r&&a({type:6,time:Date.now()})},[r,a]),d=(0,c.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=t||{},a=n.filter(t=>(t.position||o)===(e.position||o)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>te.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[n]);return(0,c.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)o(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:u,calculateOffset:d}}})(n,o);return c.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(n=>{let o=n.position||t,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:P()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(o,u.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return c.createElement(oe,{id:n.id,key:n.id,onHeightUpdate:u.updateHeight,className:n.visible?ae:"",style:a},"custom"===n.type?R(n.message,n):i?i(n):c.createElement(ie,{toast:n,position:o}))}))},le=z;function ce(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return c.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function me(e){return e&&e.ownerDocument||document}function ge(e){return parseInt(c.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Oe=function(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t},ve=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function be(e){const t=[],n=[];return Array.from(e.querySelectorAll(ve)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ye(){return!0}const we=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=be,isEnabled:a=ye,open:s}=e,l=c.useRef(!1),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),h=c.useRef(null),f=c.useRef(!1),m=c.useRef(null),g=fe(ge(t),m),O=c.useRef(null);c.useEffect(()=>{s&&m.current&&(f.current=!n)},[n,s]),c.useEffect(()=>{if(!s||!m.current)return;const e=me(m.current),t=Oe(e);return m.current.contains(t)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),c.useEffect(()=>{if(!s||!m.current)return;const e=me(m.current),t=t=>{O.current=t,!r&&a()&&"Tab"===t.key&&Oe(e)===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;const n=Oe(e);if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(n))return;if(r&&n!==u.current&&n!==d.current)return;if(n!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let i=[];if(n!==u.current&&n!==d.current||(i=o(m.current)),i.length>0){const e=Boolean(O.current?.shiftKey&&"Tab"===O.current?.key),t=i[0],n=i[i.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{const t=Oe(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,a,s,o]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,pe.jsxs)(c.Fragment,{children:[(0,pe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,pe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})},xe=window.ReactDOM;var Se=n.n(xe);const Ee="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;function ke(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Re=c.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=c.useState(null),s=fe(c.isValidElement(n)?ge(n):null,t);if(Ee(()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,i]),Ee(()=>{if(o&&!i)return ke(t,o),()=>{ke(t,null)}},[t,o,i]),i){if(c.isValidElement(n)){const e={ref:s};return c.cloneElement(n,e)}return n}return o?xe.createPortal(n,o):o});function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?$e(Fe,--Xe):0,Be--,10===Ve&&(Be=1,je--),Ve}function He(){return Ve=Xe2||Je(Ve)>3?"":" "}function it(e,t){for(;--t&&He()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return Ke(e,Ye()+(t<6&&32==Ue()&&32==He()))}function ot(e){for(;He();)switch(Ve){case e:return Xe;case 34:case 39:34!==e&&39!==e&&ot(Ve);break;case 40:41===e&&ot(e);break;case 92:He()}return Xe}function at(e,t){for(;He()&&e+Ve!==57&&(e+Ve!==84||47!==Ue()););return"/*"+Ke(t,Xe-1)+"*"+Qe(47===e?e:He())}function st(e){for(;!Je(Ue());)He();return Ke(e,Xe)}var lt="-ms-",ct="-moz-",ut="-webkit-",dt="comm",pt="rule",ht="decl",ft="@keyframes";function mt(e,t){for(var n="",r=Ne(e),i=0;i0&&Le(S)-d&&ze(h>32?wt(S+";",r,n,d-1):wt(_e(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ze(x=bt(S,t,n,c,u,i,s,b,y=[],w=[],d),o),123===v)if(0===u)vt(S,t,x,x,y,o,d,s,w);else switch(99===p&&110===$e(S,3)?100:p){case 100:case 108:case 109:case 115:vt(e,x,x,r&&ze(bt(e,x,x,0,0,i,s,b,i,y=[],d),w),i,w,d,s,r?y:w);break;default:vt(S,x,x,x,[""],w,0,s,w)}}c=u=h=0,m=O=1,b=S="",d=a;break;case 58:d=1+Le(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Ge())continue;switch(S+=Qe(v),v*m){case 38:O=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Le(S)-1)*O,O=1;break;case 64:45===Ue()&&(S+=nt(He())),p=Ue(),u=d=Le(b=S+=st(Ye())),v++;break;case 45:45===f&&2==Le(S)&&(m=0)}}return o}function bt(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Ne(p),f=0,m=0,g=0;f0?p[O]+" "+v:_e(v,/&\f/g,p[O])))&&(l[g++]=b);return qe(e,t,n,0===i?pt:s,l,c,u)}function yt(e,t,n){return qe(e,t,n,dt,Qe(Ve),De(e,2,-2),0)}function wt(e,t,n,r){return qe(e,t,n,ht,De(e,0,r),De(e,r+1,-1),r)}var xt=function(e,t,n){for(var r=0,i=0;r=i,i=Ue(),38===r&&12===i&&(t[n]=1),!Je(i);)He();return Ke(e,Xe)},St=new WeakMap,Et=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||St.get(n))&&!r){St.set(e,!0);for(var i=[],o=function(e,t){return tt(function(e,t){var n=-1,r=44;do{switch(Je(r)){case 0:38===r&&12===Ue()&&(t[n]=1),e[n]+=xt(Xe-1,t,n);break;case 2:e[n]+=nt(r);break;case 4:if(44===r){e[++n]=58===Ue()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qe(r)}}while(r=He());return e}(et(e),t))}(t,i),a=n.props,s=0,l=0;s6)switch($e(e,t+1)){case 109:if(45!==$e(e,t+4))break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+ut+"$2-$3$1"+ct+(108==$e(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ie(e,"stretch")?Rt(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$e(e,t+1))break;case 6444:switch($e(e,Le(e)-3-(~Ie(e,"!important")&&10))){case 107:return _e(e,":",":"+ut)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ut+(45===$e(e,14)?"inline-":"")+"box$3$1"+ut+"$2$3$1"+lt+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return ut+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ut+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ut+e+lt+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ut+e+lt+e+e}return e}var Ct=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ht:e.return=Rt(e.value,e.length);break;case ft:return mt([We(e,{value:_e(e.value,"@","@"+ut)})],r);case pt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return mt([We(e,{props:[_e(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return mt([We(e,{props:[_e(t,/:(plac\w+)/,":"+ut+"input-$1")]}),We(e,{props:[_e(t,/:(plac\w+)/,":-moz-$1")]}),We(e,{props:[_e(t,/:(plac\w+)/,lt+"input-$1")]})],r)}return""})}}],Pt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Ct,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Bt}}var Vt=!!c.useInsertionEffect&&c.useInsertionEffect,Ft=Vt||function(e){return e()},qt=(Vt||c.useLayoutEffect,c.createContext("undefined"!=typeof HTMLElement?Pt({key:"css"}):null)),Wt=(qt.Provider,function(e){return(0,c.forwardRef)(function(t,n){var r=(0,c.useContext)(qt);return e(t,r,n)})}),Gt=c.createContext({}),Ht={}.hasOwnProperty,Ut="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Qt(t,n,r),Ft(function(){return Tt(t,n,r)}),null},Kt=Wt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ut],o=[r],a="";"string"==typeof e.className?a=At(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Xt(o,void 0,c.useContext(Gt));a+=t.key+"-"+s.name;var l={};for(var u in e)Ht.call(e,u)&&"css"!==u&&u!==Ut&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),c.createElement(c.Fragment,null,c.createElement(Yt,{cache:t,serialized:s,isStringTag:"string"==typeof i}),c.createElement(i,l))}),Jt=Kt,en=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tn=_t(function(e){return en.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),nn=function(e){return"theme"!==e},rn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tn:nn},on=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},an=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Qt(t,n,r),Ft(function(){return Tt(t,n,r)}),null},sn=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=on(t,n,o),l=s||rn(a),u=!l("as");return function(){var d=arguments,p=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var f=d.length,m=1;m{t[n]=pn(e[n])}),t}function hn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return dn(e)&&dn(t)&&Object.keys(t).forEach(i=>{c.isValidElement(t[i])||(0,un.Hy)(t[i])?r[i]=t[i]:dn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&dn(e[i])?r[i]=hn(e[i],t[i],n):n.clone?r[i]=dn(t[i])?pn(t[i]):t[i]:r[i]=t[i]}),r}function fn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const gn={borderRadius:4},On={xs:0,sm:600,md:900,lg:1200,xl:1536},vn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${On[e]}px)`},bn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:On[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||vn;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||vn;return Object.keys(t).reduce((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:bn,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||On).includes(o))i[e.up(o)]=n(t[o],o);else{const e=o;i[e]=t[e]}var a,s;return i},{})}return n(t)}function wn(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function xn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Sn(e){if("string"!=typeof e)throw new Error(xn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function En(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function kn(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:En(e,n)||r,t&&(i=t(i,r,e)),i}const Rn=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=En(e.theme,r)||{};return yn(e,o,e=>{let r=kn(a,i,e);return e===r&&"string"==typeof e&&(r=kn(a,i,`${t}${"default"===e?"":Sn(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},Cn=function(e,t){return t?hn(e,t,{clone:!1}):e},Pn={m:"margin",p:"padding"},An={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tn=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Qn[e])return[e];e=Qn[e]}const[t,n]=e.split(""),r=Pn[t],i=An[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]})(t)),e[t])}(),Mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],In=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$n=[...Mn,...In];function Dn(e,t,n,r){const i=En(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof i?i:()=>{}}function Ln(e){return Dn(e,"spacing",8)}function Nn(e,t){return"string"==typeof t||null==t?t:e(t)}function zn(e,t){const n=Ln(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Nn(t,n),e),{})}(Tn(n),r);return yn(e,e[n],i)}(e,t,r,n)).reduce(Cn,{})}function jn(e){return zn(e,Mn)}function Bn(e){return zn(e,In)}function Zn(e){return zn(e,$n)}function Xn(e=8,t=Ln({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}jn.propTypes={},jn.filterProps=Mn,Bn.propTypes={},Bn.filterProps=In,Zn.propTypes={},Zn.filterProps=$n;const Vn=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Cn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function Fn(e){return"number"!=typeof e?e:`${e}px solid`}function qn(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const Wn=qn("border",Fn),Gn=qn("borderTop",Fn),Hn=qn("borderRight",Fn),Un=qn("borderBottom",Fn),Yn=qn("borderLeft",Fn),Kn=qn("borderColor"),Jn=qn("borderTopColor"),er=qn("borderRightColor"),tr=qn("borderBottomColor"),nr=qn("borderLeftColor"),rr=qn("outline",Fn),ir=qn("outlineColor"),or=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Dn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Nn(t,e)});return yn(e,e.borderRadius,n)}return null};or.propTypes={},or.filterProps=["borderRadius"],Vn(Wn,Gn,Hn,Un,Yn,Kn,Jn,er,tr,nr,or,rr,ir);const ar=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Dn(e.theme,"spacing",8),n=e=>({gap:Nn(t,e)});return yn(e,e.gap,n)}return null};ar.propTypes={},ar.filterProps=["gap"];const sr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Dn(e.theme,"spacing",8),n=e=>({columnGap:Nn(t,e)});return yn(e,e.columnGap,n)}return null};sr.propTypes={},sr.filterProps=["columnGap"];const lr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Dn(e.theme,"spacing",8),n=e=>({rowGap:Nn(t,e)});return yn(e,e.rowGap,n)}return null};function cr(e,t){return"grey"===t?t:e}function ur(e){return e<=1&&0!==e?100*e+"%":e}lr.propTypes={},lr.filterProps=["rowGap"],Vn(ar,sr,lr,Rn({prop:"gridColumn"}),Rn({prop:"gridRow"}),Rn({prop:"gridAutoFlow"}),Rn({prop:"gridAutoColumns"}),Rn({prop:"gridAutoRows"}),Rn({prop:"gridTemplateColumns"}),Rn({prop:"gridTemplateRows"}),Rn({prop:"gridTemplateAreas"}),Rn({prop:"gridArea"})),Vn(Rn({prop:"color",themeKey:"palette",transform:cr}),Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cr}),Rn({prop:"backgroundColor",themeKey:"palette",transform:cr}));const dr=Rn({prop:"width",transform:ur}),pr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||On[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ur(t)}};return yn(e,e.maxWidth,t)}return null};pr.filterProps=["maxWidth"];const hr=Rn({prop:"minWidth",transform:ur}),fr=Rn({prop:"height",transform:ur}),mr=Rn({prop:"maxHeight",transform:ur}),gr=Rn({prop:"minHeight",transform:ur}),Or=(Rn({prop:"size",cssProperty:"width",transform:ur}),Rn({prop:"size",cssProperty:"height",transform:ur}),Vn(dr,pr,hr,fr,mr,gr,Rn({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Fn},borderTop:{themeKey:"borders",transform:Fn},borderRight:{themeKey:"borders",transform:Fn},borderBottom:{themeKey:"borders",transform:Fn},borderLeft:{themeKey:"borders",transform:Fn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:or},color:{themeKey:"palette",transform:cr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cr},backgroundColor:{themeKey:"palette",transform:cr},p:{style:Bn},pt:{style:Bn},pr:{style:Bn},pb:{style:Bn},pl:{style:Bn},px:{style:Bn},py:{style:Bn},padding:{style:Bn},paddingTop:{style:Bn},paddingRight:{style:Bn},paddingBottom:{style:Bn},paddingLeft:{style:Bn},paddingX:{style:Bn},paddingY:{style:Bn},paddingInline:{style:Bn},paddingInlineStart:{style:Bn},paddingInlineEnd:{style:Bn},paddingBlock:{style:Bn},paddingBlockStart:{style:Bn},paddingBlockEnd:{style:Bn},m:{style:jn},mt:{style:jn},mr:{style:jn},mb:{style:jn},ml:{style:jn},mx:{style:jn},my:{style:jn},margin:{style:jn},marginTop:{style:jn},marginRight:{style:jn},marginBottom:{style:jn},marginLeft:{style:jn},marginX:{style:jn},marginY:{style:jn},marginInline:{style:jn},marginInlineStart:{style:jn},marginInlineEnd:{style:jn},marginBlock:{style:jn},marginBlockStart:{style:jn},marginBlockEnd:{style:jn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:lr},columnGap:{style:sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ur},maxWidth:{style:pr},minWidth:{transform:ur},height:{transform:ur},maxHeight:{transform:ur},minHeight:{transform:ur},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),vr=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=En(n,s)||{};return c?c(i):yn(i,t,t=>{let n=kn(u,l,t);return t===n&&"string"==typeof t&&(n=kn(u,l,`${e}${"default"===t?"":Sn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Or;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(i.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])c=Cn(c,e(n,o,i,a));else{const e=yn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=Cn(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Cn(c,e(n,o,i,a))}),!o&&i.modularCssLayers?{"@layer sx":mn(i,wn(l,c))}:mn(i,wn(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();vr.filterProps=["sx"];const br=vr;function yr(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const wr=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e;let s=hn({breakpoints:fn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Xn(i),shape:{...gn,...o}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(s),s.applyStyles=yr,s=t.reduce((e,t)=>hn(e,t),s),s.unstable_sxConfig={...Or,...a?.unstable_sxConfig},s.unstable_sx=function(e){return br({sx:e,theme:this})},s};function xr(e){const{variants:t,...n}=e,r={variants:t,style:cn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=cn(e.style))}),r}const Sr=wr();function Er(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function kr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Rr(e){return e?(t,n)=>n[e]:null}function Cr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Cr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?kr(r.style,n):r.style;else{const{variants:e,...i}=r;t=n?kr(cn(i),n):i}return Pr(e,r.variants,[t],n)}return r?.isProcessed?n?kr(cn(r.style),n):r.style:n?kr(cn(r),n):r}function Pr(e,t,n=[],r=void 0){let i;e:for(let o=0;o=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(xn(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(xn(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const Mr=(e,t)=>{try{return(e=>{const t=Tr(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function _r(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ir(e){e=Tr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),_r({type:s,values:l})}function $r(e){let t="hsl"===(e=Tr(e)).type||"hsla"===e.type?Tr(Ir(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dr(e,t){return e=Tr(e),t=Qr(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,_r(e)}function Lr(e,t,n){try{return Dr(e,t)}catch(t){return e}}function Nr(e,t){if(e=Tr(e),t=Qr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _r(e)}function zr(e,t,n){try{return Nr(e,t)}catch(t){return e}}function jr(e,t){if(e=Tr(e),t=Qr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _r(e)}function Br(e,t,n){try{return jr(e,t)}catch(t){return e}}function Zr(e,t,n){try{return function(e,t=.15){return $r(e)>.5?Nr(e,t):jr(e,t)}(e,t)}catch(t){return e}}const Xr={black:"#000",white:"#fff"},Vr={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fr="#f3e5f5",qr="#ce93d8",Wr="#ba68c8",Gr="#ab47bc",Hr="#9c27b0",Ur="#7b1fa2",Yr="#e57373",Kr="#ef5350",Jr="#f44336",ei="#d32f2f",ti="#c62828",ni="#ffb74d",ri="#ffa726",ii="#ff9800",oi="#f57c00",ai="#e65100",si="#e3f2fd",li="#90caf9",ci="#42a5f5",ui="#1976d2",di="#1565c0",pi="#4fc3f7",hi="#29b6f6",fi="#03a9f4",mi="#0288d1",gi="#01579b",Oi="#81c784",vi="#66bb6a",bi="#4caf50",yi="#388e3c",wi="#2e7d32",xi="#1b5e20";function Si(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xr.white,default:Xr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Ei=Si();function ki(){return{text:{primary:Xr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ri=ki();function Ci(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=jr(e.main,i):"dark"===t&&(e.dark=Nr(e.main,o)))}function Pi(e,t,n,r,i){const o=i.light||i,a=i.dark||1.5*i;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*o).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function Ai(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=e,a=e.primary||function(e="light"){return"dark"===e?{main:li,light:si,dark:ci}:{main:ui,light:ci,dark:di}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:qr,light:Fr,dark:Gr}:{main:Hr,light:Wr,dark:Ur}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Jr,light:Yr,dark:ei}:{main:ei,light:Kr,dark:ti}}(t),c=e.info||function(e="light"){return"dark"===e?{main:hi,light:pi,dark:mi}:{main:mi,light:fi,dark:gi}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vi,light:Oi,dark:yi}:{main:wi,light:bi,dark:xi}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:ri,light:ni,dark:oi}:{main:"#ed6c02",light:ii,dark:ai}}(t);function p(e){if(i)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=$r(e),r=$r(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ri.text.primary)>=n?Ri.text.primary:Ei.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(xn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(xn(12,t?` (${t})`:"",JSON.stringify(e.main)));return i?(Pi(i,e,"light",o,r),Pi(i,e,"dark",a,r)):(Ci(e,"light",o,r),Ci(e,"dark",a,r)),e.contrastText||(e.contrastText=p(e.main)),e};let f;return"light"===t?f=Si():"dark"===t&&(f=ki()),hn({common:{...Xr},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Vr,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r,...f},o)}function Qi(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function Ti(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const Mi=(e,t,n,r=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})};function _i(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),Mi(o,e,`var(${r})`,s),Mi(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))})}(e),{css:i,vars:o,varsWithDefaults:a}}const Ii={textTransform:"uppercase"},$i='"Roboto", "Helvetica", "Arial", sans-serif';function Di(e,t){const{fontFamily:n=$i,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,h=u||(e=>e/l*p+"rem"),f=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r,...n===$i?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5+"em")}:{},...o,...c};var a},m={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(a,14,1.75,.4,Ii),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,Ii),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hn({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function Li(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ni=["none",Li(0,2,1,-1,0,1,1,0,0,1,3,0),Li(0,3,1,-2,0,2,2,0,0,1,5,0),Li(0,3,3,-2,0,3,4,0,0,1,8,0),Li(0,2,4,-1,0,4,5,0,0,1,10,0),Li(0,3,5,-1,0,5,8,0,0,1,14,0),Li(0,3,5,-1,0,6,10,0,0,1,18,0),Li(0,4,5,-2,0,7,10,1,0,2,16,1),Li(0,5,5,-3,0,8,10,1,0,3,14,2),Li(0,5,6,-3,0,9,12,1,0,3,16,2),Li(0,6,6,-3,0,10,14,1,0,4,18,3),Li(0,6,7,-4,0,11,15,1,0,4,20,3),Li(0,7,8,-4,0,12,17,2,0,5,22,4),Li(0,7,8,-4,0,13,19,2,0,5,24,4),Li(0,7,9,-4,0,14,21,2,0,5,26,4),Li(0,8,9,-5,0,15,22,2,0,6,28,5),Li(0,8,10,-5,0,16,24,2,0,6,30,5),Li(0,8,11,-5,0,17,26,2,0,6,32,5),Li(0,9,11,-5,0,18,28,2,0,7,34,6),Li(0,9,12,-6,0,19,29,2,0,7,36,6),Li(0,10,13,-6,0,20,31,3,0,8,38,7),Li(0,10,13,-6,0,21,33,3,0,8,40,7),Li(0,10,14,-6,0,22,35,3,0,8,42,7),Li(0,11,14,-7,0,23,36,3,0,9,44,8),Li(0,11,15,-7,0,24,38,3,0,9,46,8)],zi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ji={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bi(e){return`${Math.round(e)}ms`}function Zi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Xi(e){const t={...zi,...e.easing},n={...ji,...e.duration};return{getAutoHeightDuration:Zi,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Bi(i)} ${o} ${"string"==typeof a?a:Bi(a)}`).join(",")},...e,easing:t,duration:n}}const Vi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Fi(e){return dn(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function qi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;rhn(e,t),h),h.unstable_sxConfig={...Or,...u?.unstable_sxConfig},h.unstable_sx=function(e){return br({sx:e,theme:this})},h.toRuntimeSource=qi,function(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Dr(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e{if(0===t)return"none";const n=Hi(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Yi(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Ki(e){return"dark"===e?Ui:[]}function Ji(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const eo=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function to(e,t,n){!e[t]&&n&&(e[t]=n)}function no(e){return"string"==typeof e&&e.startsWith("hsl")?Ir(e):e}function ro(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mr(no(e[t])))}(Object.getOwnPropertyDescriptor(eo,"name")||{}).writable||Object.defineProperty(eo,"name",{value:"default",configurable:!0});const io=e=>{try{return e()}catch(e){}};function oo(e,t,n,r,i){if(!n)return;n=!0===n?{}:n;const o="dark"===i?"dark":"light";if(!r)return void(t[i]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...o}=e,a=Ai({...t,colorSpace:i});return{palette:a,opacity:{...Yi(a.mode),...n},overlays:r||Ki(a.mode),...o}}({...n,palette:{mode:o,...n?.palette},colorSpace:e}));const{palette:a,...s}=Gi({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...Yi(o),...n?.opacity},overlays:n?.overlays||Ki(o)},s}function ao(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ji,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&"light"!==d?"light":d),h=((e="mui")=>Qi(e))(o),{[p]:f,light:m,dark:g,...O}=n,v={...O};let b,y=f;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(y=!0),!y)throw new Error(xn(21,p));a&&(b="oklch");const w=oo(b,v,y,u,p);m&&!v.light&&oo(b,v,m,void 0,"light"),g&&!v.dark&&oo(b,v,g,void 0,"dark");let x={defaultColorScheme:p,...w,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:v,font:{...Ti(w.typography),...w.font},spacing:(S=u.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(x.colorSchemes).forEach(e=>{const t=x.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return h(e,t[r][i])};function r(e,t,n){if(b){let r;return e===Lr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===zr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Br&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(to(t.common,"background","#fff"),to(t.common,"onBackground","#000")),"dark"===t.mode&&(to(t.common,"background","#000"),to(t.common,"onBackground","#fff")),i=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{i[e]||(i[e]={})}),"light"===t.mode){to(t.Alert,"errorColor",r(zr,a?h("palette-error-light"):t.error.light,.6)),to(t.Alert,"infoColor",r(zr,a?h("palette-info-light"):t.info.light,.6)),to(t.Alert,"successColor",r(zr,a?h("palette-success-light"):t.success.light,.6)),to(t.Alert,"warningColor",r(zr,a?h("palette-warning-light"):t.warning.light,.6)),to(t.Alert,"errorFilledBg",n("palette-error-main")),to(t.Alert,"infoFilledBg",n("palette-info-main")),to(t.Alert,"successFilledBg",n("palette-success-main")),to(t.Alert,"warningFilledBg",n("palette-warning-main")),to(t.Alert,"errorFilledColor",io(()=>t.getContrastText(t.error.main))),to(t.Alert,"infoFilledColor",io(()=>t.getContrastText(t.info.main))),to(t.Alert,"successFilledColor",io(()=>t.getContrastText(t.success.main))),to(t.Alert,"warningFilledColor",io(()=>t.getContrastText(t.warning.main))),to(t.Alert,"errorStandardBg",r(Br,a?h("palette-error-light"):t.error.light,.9)),to(t.Alert,"infoStandardBg",r(Br,a?h("palette-info-light"):t.info.light,.9)),to(t.Alert,"successStandardBg",r(Br,a?h("palette-success-light"):t.success.light,.9)),to(t.Alert,"warningStandardBg",r(Br,a?h("palette-warning-light"):t.warning.light,.9)),to(t.Alert,"errorIconColor",n("palette-error-main")),to(t.Alert,"infoIconColor",n("palette-info-main")),to(t.Alert,"successIconColor",n("palette-success-main")),to(t.Alert,"warningIconColor",n("palette-warning-main")),to(t.AppBar,"defaultBg",n("palette-grey-100")),to(t.Avatar,"defaultBg",n("palette-grey-400")),to(t.Button,"inheritContainedBg",n("palette-grey-300")),to(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),to(t.Chip,"defaultBorder",n("palette-grey-400")),to(t.Chip,"defaultAvatarColor",n("palette-grey-700")),to(t.Chip,"defaultIconColor",n("palette-grey-700")),to(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),to(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),to(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),to(t.LinearProgress,"primaryBg",r(Br,a?h("palette-primary-main"):t.primary.main,.62)),to(t.LinearProgress,"secondaryBg",r(Br,a?h("palette-secondary-main"):t.secondary.main,.62)),to(t.LinearProgress,"errorBg",r(Br,a?h("palette-error-main"):t.error.main,.62)),to(t.LinearProgress,"infoBg",r(Br,a?h("palette-info-main"):t.info.main,.62)),to(t.LinearProgress,"successBg",r(Br,a?h("palette-success-main"):t.success.main,.62)),to(t.LinearProgress,"warningBg",r(Br,a?h("palette-warning-light"):t.warning.main,.62)),to(t.Skeleton,"bg",b?r(Lr,a?h("palette-text-primary"):t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),to(t.Slider,"primaryTrack",r(Br,a?h("palette-primary-main"):t.primary.main,.62)),to(t.Slider,"secondaryTrack",r(Br,a?h("palette-secondary-main"):t.secondary.main,.62)),to(t.Slider,"errorTrack",r(Br,a?h("palette-error-main"):t.error.main,.62)),to(t.Slider,"infoTrack",r(Br,a?h("palette-info-main"):t.info.main,.62)),to(t.Slider,"successTrack",r(Br,a?h("palette-success-main"):t.success.main,.62)),to(t.Slider,"warningTrack",r(Br,a?h("palette-warning-main"):t.warning.main,.62));const e=b?r(zr,a?h("palette-background-default"):t.background.default,.6825):Zr(t.background.default,.8);to(t.SnackbarContent,"bg",e),to(t.SnackbarContent,"color",io(()=>b?Ri.text.primary:t.getContrastText(e))),to(t.SpeedDialAction,"fabHoverBg",Zr(t.background.paper,.15)),to(t.StepConnector,"border",n("palette-grey-400")),to(t.StepContent,"border",n("palette-grey-400")),to(t.Switch,"defaultColor",n("palette-common-white")),to(t.Switch,"defaultDisabledColor",n("palette-grey-100")),to(t.Switch,"primaryDisabledColor",r(Br,a?h("palette-primary-main"):t.primary.main,.62)),to(t.Switch,"secondaryDisabledColor",r(Br,a?h("palette-secondary-main"):t.secondary.main,.62)),to(t.Switch,"errorDisabledColor",r(Br,a?h("palette-error-main"):t.error.main,.62)),to(t.Switch,"infoDisabledColor",r(Br,a?h("palette-info-main"):t.info.main,.62)),to(t.Switch,"successDisabledColor",r(Br,a?h("palette-success-main"):t.success.main,.62)),to(t.Switch,"warningDisabledColor",r(Br,a?h("palette-warning-main"):t.warning.main,.62)),to(t.TableCell,"border",r(Br,Lr(a?h("palette-divider"):t.divider,1),.88)),to(t.Tooltip,"bg",r(Lr,a?h("palette-grey-700"):t.grey[700],.92))}var i;if("dark"===t.mode){to(t.Alert,"errorColor",r(Br,a?h("palette-error-light"):t.error.light,.6)),to(t.Alert,"infoColor",r(Br,a?h("palette-info-light"):t.info.light,.6)),to(t.Alert,"successColor",r(Br,a?h("palette-success-light"):t.success.light,.6)),to(t.Alert,"warningColor",r(Br,a?h("palette-warning-light"):t.warning.light,.6)),to(t.Alert,"errorFilledBg",n("palette-error-dark")),to(t.Alert,"infoFilledBg",n("palette-info-dark")),to(t.Alert,"successFilledBg",n("palette-success-dark")),to(t.Alert,"warningFilledBg",n("palette-warning-dark")),to(t.Alert,"errorFilledColor",io(()=>t.getContrastText(t.error.dark))),to(t.Alert,"infoFilledColor",io(()=>t.getContrastText(t.info.dark))),to(t.Alert,"successFilledColor",io(()=>t.getContrastText(t.success.dark))),to(t.Alert,"warningFilledColor",io(()=>t.getContrastText(t.warning.dark))),to(t.Alert,"errorStandardBg",r(zr,a?h("palette-error-light"):t.error.light,.9)),to(t.Alert,"infoStandardBg",r(zr,a?h("palette-info-light"):t.info.light,.9)),to(t.Alert,"successStandardBg",r(zr,a?h("palette-success-light"):t.success.light,.9)),to(t.Alert,"warningStandardBg",r(zr,a?h("palette-warning-light"):t.warning.light,.9)),to(t.Alert,"errorIconColor",n("palette-error-main")),to(t.Alert,"infoIconColor",n("palette-info-main")),to(t.Alert,"successIconColor",n("palette-success-main")),to(t.Alert,"warningIconColor",n("palette-warning-main")),to(t.AppBar,"defaultBg",n("palette-grey-900")),to(t.AppBar,"darkBg",n("palette-background-paper")),to(t.AppBar,"darkColor",n("palette-text-primary")),to(t.Avatar,"defaultBg",n("palette-grey-600")),to(t.Button,"inheritContainedBg",n("palette-grey-800")),to(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),to(t.Chip,"defaultBorder",n("palette-grey-700")),to(t.Chip,"defaultAvatarColor",n("palette-grey-300")),to(t.Chip,"defaultIconColor",n("palette-grey-300")),to(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),to(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),to(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),to(t.LinearProgress,"primaryBg",r(zr,a?h("palette-primary-main"):t.primary.main,.5)),to(t.LinearProgress,"secondaryBg",r(zr,a?h("palette-secondary-main"):t.secondary.main,.5)),to(t.LinearProgress,"errorBg",r(zr,a?h("palette-error-main"):t.error.main,.5)),to(t.LinearProgress,"infoBg",r(zr,a?h("palette-info-main"):t.info.main,.5)),to(t.LinearProgress,"successBg",r(zr,a?h("palette-success-main"):t.success.main,.5)),to(t.LinearProgress,"warningBg",r(zr,a?h("palette-warning-main"):t.warning.main,.5)),to(t.Skeleton,"bg",b?r(Lr,a?h("palette-text-primary"):t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),to(t.Slider,"primaryTrack",r(zr,a?h("palette-primary-main"):t.primary.main,.5)),to(t.Slider,"secondaryTrack",r(zr,a?h("palette-secondary-main"):t.secondary.main,.5)),to(t.Slider,"errorTrack",r(zr,a?h("palette-error-main"):t.error.main,.5)),to(t.Slider,"infoTrack",r(zr,a?h("palette-info-main"):t.info.main,.5)),to(t.Slider,"successTrack",r(zr,a?h("palette-success-main"):t.success.main,.5)),to(t.Slider,"warningTrack",r(zr,a?h("palette-warning-light"):t.warning.main,.5));const e=b?r(Br,a?h("palette-background-default"):t.background.default,.985):Zr(t.background.default,.98);to(t.SnackbarContent,"bg",e),to(t.SnackbarContent,"color",io(()=>b?Ei.text.primary:t.getContrastText(e))),to(t.SpeedDialAction,"fabHoverBg",Zr(t.background.paper,.15)),to(t.StepConnector,"border",n("palette-grey-600")),to(t.StepContent,"border",n("palette-grey-600")),to(t.Switch,"defaultColor",n("palette-grey-300")),to(t.Switch,"defaultDisabledColor",n("palette-grey-600")),to(t.Switch,"primaryDisabledColor",r(zr,a?h("palette-primary-main"):t.primary.main,.55)),to(t.Switch,"secondaryDisabledColor",r(zr,a?h("palette-secondary-main"):t.secondary.main,.55)),to(t.Switch,"errorDisabledColor",r(zr,a?h("palette-error-main"):t.error.main,.55)),to(t.Switch,"infoDisabledColor",r(zr,a?h("palette-info-main"):t.info.main,.55)),to(t.Switch,"successDisabledColor",r(zr,a?h("palette-success-main"):t.success.main,.55)),to(t.Switch,"warningDisabledColor",r(zr,a?h("palette-warning-light"):t.warning.main,.55)),to(t.TableCell,"border",r(zr,Lr(a?h("palette-divider"):t.divider,1),.68)),to(t.Tooltip,"bg",r(Lr,a?h("palette-grey-700"):t.grey[700],.92))}a||(ro(t.background,"default"),ro(t.background,"paper"),ro(t.common,"background"),ro(t.common,"onBackground"),ro(t,"divider")),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&!a&&n&&"object"==typeof n&&(n.main&&to(t[e],"mainChannel",Mr(no(n.main))),n.light&&to(t[e],"lightChannel",Mr(no(n.light))),n.dark&&to(t[e],"darkChannel",Mr(no(n.dark))),n.contrastText&&to(t[e],"contrastTextChannel",Mr(no(n.contrastText))),"text"===e&&(ro(t[e],"primary"),ro(t[e],"secondary")),"action"===e&&(n.active&&ro(t[e],"active"),n.selected&&ro(t[e],"selected")))})}),x=t.reduce((e,t)=>hn(e,t),x);const E={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:eo(x),enableContrastVars:a},{vars:k,generateThemeVars:R,generateStyleSheets:C}=function(e,t={}){const{getSelector:n=O,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=_i(c,t);let h=p;const f={},{[l]:m,...g}=a;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=_i(n,t);h=hn(h,o),f[e]={css:i,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=_i(m,t);h=hn(h,r),f[l]={css:e,vars:n}}function O(t,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(f).forEach(([,{vars:t}])=>{e=hn(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[i]:l,...c}=f;if(l){const{css:e}=l,t=a[i]?.palette?.mode,o=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...o}),o)}return Object.entries(c).forEach(([e,{css:t}])=>{const i=a[e]?.palette?.mode,o=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...o}),o)}),o&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(x,E);return x.vars=k,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([e,t])=>{x[e]=t}),x.generateThemeVars=R,x.generateStyleSheets=C,x.generateSpacing=function(){return Xn(u.spacing,Ln(this))},x.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=s,x.unstable_sxConfig={...Or,...u?.unstable_sxConfig},x.unstable_sx=function(e){return br({sx:e,theme:this})},x.toRuntimeSource=qi,x}function so(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Ai({...!0===n?{}:n.palette,mode:t})})}const lo=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Gi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const i=Gi({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=c,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==c.light&&c.light,palette:i.palette},so(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},so(i,"light",c.light)),i}return n||"light"in c||"light"!==s||(c.light=!0),ao({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}(),co=lo,uo="$$material",po=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ho=function(e={}){const{themeId:t,defaultTheme:n=Sr,rootShouldForwardProp:r=Er,slotShouldForwardProp:i=Er}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter(e=>e!==br))(e.__emotion_styles))}(e);const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=Rr(Ar(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let f=Er;"Root"===a||"root"===a?f=r:a?f=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const m=function(e,t){return sn(e,t)}(e,{shouldForwardProp:f,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Cr(t,e,t.theme.modularCssLayers?d:void 0)};if(dn(e)){const t=xr(e);return function(e){return t.variants?Cr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?kr(t.style,d):t.style}}return e},O=(...t)=>{const r=[],i=t.map(g),a=[];if(r.push(o),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const i={};for(const t in r)i[t]=Cr(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,i)}),n&&!p&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Pr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),h||a.push(br),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(O.withConfig=m.withConfig),O}}({themeId:uo,defaultTheme:co,rootShouldForwardProp:po}),fo=ho,mo={theme:void 0},go=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(mo.theme=r.theme,i=xr(e(mo)),t=i,n=r.theme),i}};function Oo(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if("components"===o||"slots"===o)r[o]={...e[o],...r[o]};else if("componentsProps"===o||"slotProps"===o){const i=e[o],a=t[o];if(a)if(i){r[o]={...a};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=e;r[o][t]=Oo(i[t],a[t],n)}}else r[o]=a;else r[o]=i||{}}else"className"===o&&n&&t.className?r.className=ue(e?.className,t?.className):"style"===o&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[o]&&(r[o]=e[o])}return r}const vo=c.createContext(void 0);function bo(e){return function({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Oo(i.defaultProps,r,t.components.mergeClassNameAndStyle):i.styleOverrides||i.variants?r:Oo(i,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:c.useContext(vo)}})}(e)}const yo=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},wo=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n},xo=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t};function So(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||r,f=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],i),{props:{component:m,...g},internalRef:O}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=ue(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=wo({...i,...r}),s=xo(r),l=xo(i),c=t(a),u=ue(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f}),v=fe(O,f?.ref,t.ref),b="root"===e?m||c:m;return[h,yo(h,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},i)]}function Eo(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ko(e,t)}const Ro=u().createContext(null);var Co="unmounted",Po="exited",Ao="entering",Qo="entered",To="exiting",Mo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Po,r.appearStatus=Ao):i=Qo:i=t.unmountOnExit||t.mountOnEnter?Co:Po,r.state={status:i},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ko(e,t)}(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Co?{status:Po}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ao&&n!==Qo&&(t=Ao):n!==Ao&&n!==Qo||(t=To)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ao){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Se().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Po&&this.setState({status:Co})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Se().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:Ao},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Qo},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:Qo},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Se().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:To},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Po},function(){e.props.onExited(r)})})})):this.safeSetState({status:Po},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Se().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Co)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Eo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u().createElement(Ro.Provider,{value:null},"function"==typeof n?n(e,r):u().cloneElement(u().Children.only(n),r))},t}(u().Component);function _o(){}Mo.contextType=Ro,Mo.propTypes={},Mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_o,onEntering:_o,onEntered:_o,onExit:_o,onExiting:_o,onExited:_o},Mo.UNMOUNTED=Co,Mo.EXITED=Po,Mo.ENTERING=Ao,Mo.ENTERED=Qo,Mo.EXITING=To;const Io=Mo,$o=wr(),Do=function(e=$o){return function(e=null){const t=c.useContext(Gt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)};function Lo(){const e=Do(co);return e[uo]||e}const No=e=>e.scrollTop;function zo(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function jo(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}const Bo=fe,Zo={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Xo={opacity:0,visibility:"hidden"},Vo=c.forwardRef(function(e,t){const n=Lo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:O=r,...v}=e,b=c.useRef(null),y=Bo(b,ge(a),t),w=zo(b,p),x=zo(b,(e,t)=>{No(e);const r=jo({style:g,timeout:O,easing:s},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),S=zo(b,d),E=zo(b,m),k=zo(b,e=>{const t=jo({style:g,timeout:O,easing:s},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),R=zo(b,e=>{e.style.transition="",f&&f(e)});return(0,pe.jsx)(Io,{appear:o,in:l,nodeRef:b,onEnter:x,onEntered:S,onEntering:w,onExit:k,onExited:R,onExiting:E,addEndListener:e=>{i&&i(b.current,e)},timeout:O,...v,children:(e,{ownerState:t,...n})=>{const r=function(e,t,n,r,i,o){const a="exited"!==e||t?n[e]||n.exited:r;return i||o?{...a,...i,...o}:a}(e,l,Zo,Xo,g,a.props.style);return c.cloneElement(a,{style:r,ref:y,...n})}})}),Fo=Vo,qo=e=>e,Wo=(()=>{let e=qo;return{configure(t){e=t},generate:t=>e(t),reset(){e=qo}}})(),Go={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ho(e,t,n="Mui"){const r=Go[t];return r?`${n}-${r}`:`${Wo.generate(e)}-${t}`}function Uo(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ho(e,t,n)}),r}function Yo(e){return Ho("MuiBackdrop",e)}Uo("MuiBackdrop",["root","invisible"]);const Ko=fo("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Jo=c.forwardRef(function(e,t){const n=bo({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:h,...f}=n,m={...n,component:o,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return de({root:["root",n&&"invisible"]},Yo,t)})(m),O={component:o,slots:{transition:p,root:l.Root,...d},slotProps:{...c,...u}},[v,b]=So("root",{elementType:Ko,externalForwardedProps:O,className:ue(g.root,i),ownerState:m}),[y,w]=So("transition",{elementType:Fo,externalForwardedProps:O,ownerState:m});return(0,pe.jsx)(y,{in:s,timeout:h,...f,...w,children:(0,pe.jsx)(v,{"aria-hidden":!0,...b,ref:t,children:r})})}),ea=Jo,ta=function(e){const t=c.useRef(e);return Ee(()=>{t.current=e}),c.useRef((...e)=>(0,t.current)(...e)).current};function na(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ra(e){return me(e).defaultView||window}function ia(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oa(e){return parseFloat(ra(e).getComputedStyle(e).paddingRight)||0}function aa(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ia(e,i)})}function sa(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const la=()=>{},ca=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ia(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);aa(t,e.mount,e.modalRef,r,!0);const i=sa(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=sa(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=me(e);return t.body===e?ra(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(ra(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${oa(r)+e}px`;const t=me(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${oa(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=me(r).body;else{const t=r.parentElement,n=ra(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=sa(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&ia(e.modalRef,t),aa(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&ia(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ua(e){return Ho("MuiModal",e)}Uo("MuiModal",["root","hidden","backdrop"]);const da=fo("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(go(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),pa=fo(ea,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ha=c.forwardRef(function(e,t){const n=bo({name:"MuiModal",props:e}),{BackdropComponent:r=pa,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:d,components:p={},componentsProps:h={},disableAutoFocus:f=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:O=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:w=!1,onClose:x,onTransitionEnter:S,onTransitionExited:E,open:k,slotProps:R={},slots:C={},theme:P,...A}=n,Q={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:O,disableRestoreFocus:v,disableScrollLock:b,hideBackdrop:y,keepMounted:w},{getRootProps:T,getBackdropProps:M,getTransitionProps:_,portalRef:I,isTopModal:$,exited:D,hasTransition:L}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:d}=e,p=c.useRef({}),h=c.useRef(null),f=c.useRef(null),m=fe(f,d),[g,O]=c.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const y=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),w=()=>{ca.mount(y(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=ta(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||me(h.current).body;ca.add(y(),e),f.current&&w()}),S=()=>ca.isTopModal(y()),E=ta(e=>{h.current=e,e&&(u&&S()?w():f.current&&ia(f.current,b))}),k=c.useCallback(()=>{ca.remove(y(),b)},[b]);c.useEffect(()=>()=>{k()},[k]),c.useEffect(()=>{u?x():v&&i||k()},[u,k,v,i,x]);const R=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},C=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=wo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:R(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:C(t),open:u}},getTransitionProps:()=>({onEnter:na(()=>{O(!1),o&&o()},s?.props.onEnter??la),onExited:na(()=>{O(!0),a&&a(),i&&k()},s?.props.onExited??la)}),rootRef:m,portalRef:E,isTopModal:S,exited:g,hasTransition:v}}({...Q,rootRef:t}),N={...Q,exited:D},z=(e=>{const{open:t,exited:n,classes:r}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ua,r)})(N),j={};if(void 0===l.props.tabIndex&&(j.tabIndex="-1"),L){const{onEnter:e,onExited:t}=_();j.onEnter=e,j.onExited=t}const B={slots:{root:p.Root,backdrop:p.Backdrop,...C},slotProps:{...h,...R}},[Z,X]=So("root",{ref:t,elementType:da,externalForwardedProps:{...B,...A,component:d},getSlotProps:T,ownerState:N,className:ue(a,z?.root,!N.open&&N.exited&&z?.hidden)}),[V,F]=So("backdrop",{ref:i?.ref,elementType:r,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ue(i?.className,z?.backdrop),ownerState:N});return w||k||L&&!D?(0,pe.jsx)(Re,{ref:I,container:u,disablePortal:O,children:(0,pe.jsxs)(Z,{...X,children:[!y&&r?(0,pe.jsx)(V,{...F}):null,(0,pe.jsx)(we,{disableEnforceFocus:m,disableAutoFocus:f,disableRestoreFocus:v,isEnabled:$,open:k,children:c.cloneElement(l,j)})]})}):null}),fa=ha,ma=ra,ga={visibility:"hidden"};function Oa(e,t,n){var r;const i=function(e,t,n){const r=n&&n.getBoundingClientRect(),i=ma(t),o=t.style.transform,a=t.style.transition;t.style.transition="",t.style.transform="";const s=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform");t.style.transform=o,t.style.transition=a;let c=0,u=0;if(l&&"none"!==l&&"string"==typeof l){const e=l.split("(")[1].split(")")[0].split(",");c=parseInt(e[4],10),u=parseInt(e[5],10)}return"left"===e?r?`translateX(${r.right+c-s.left}px)`:`translateX(${i.innerWidth+c-s.left}px)`:"right"===e?r?`translateX(-${s.right-r.left-c}px)`:`translateX(-${s.left+s.width-c}px)`:"up"===e?r?`translateY(${r.bottom+u-s.top}px)`:`translateY(${i.innerHeight+u-s.top}px)`:r?`translateY(-${s.top-r.top+s.height-u}px)`:`translateY(-${s.top+s.height-u}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.transform=i)}const va=c.forwardRef(function(e,t){const n=Lo(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,container:l,direction:u="down",easing:d=r,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:O,onExiting:v,style:b,timeout:y=i,...w}=e,x=c.useRef(null),S=Bo(ge(s),x,t),E=zo(x,(e,t)=>{Oa(u,e,l),No(e),h&&h(e,t)}),k=zo(x,(e,t)=>{const r=jo({timeout:y,style:b,easing:d},{mode:"enter"});e.style.transition=n.transitions.create("transform",r),e.style.transform="none",m&&m(e,t)}),R=zo(x,f),C=zo(x,v),P=zo(x,e=>{const t=jo({timeout:y,style:b,easing:d},{mode:"exit"});e.style.transition=n.transitions.create("transform",t),Oa(u,e,l),g&&g(e)}),A=zo(x,e=>{e.style.transition="",O&&O(e)}),Q=c.useCallback(()=>{x.current&&Oa(u,x.current,l)},[u,l]);return c.useEffect(()=>{if(p||"down"===u||"right"===u)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{x.current&&Oa(u,x.current,l)}),t=ma(x.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,p,l]),c.useEffect(()=>{p||Q()},[p,Q]),(0,pe.jsx)(Io,{nodeRef:x,onEnter:E,onEntered:R,onEntering:k,onExit:P,onExited:A,onExiting:C,addEndListener:e=>{o&&o(x.current,e)},appear:a,in:p,timeout:y,...w,children:(e,{ownerState:t,...n})=>{let r;return r="exited"!==e||p?b&&s.props.style?{...b,...s.props.style}:b||s.props.style:b||s.props.style?{visibility:"hidden",...b,...s.props.style}:ga,c.cloneElement(s,{ref:S,style:r,...n})}})}),ba=va;function ya(e){return Ho("MuiPaper",e)}Uo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wa=fo("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(go(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xa=c.forwardRef(function(e,t){const n=bo({props:e,name:"MuiPaper"}),r=Lo(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:o,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return de({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ya,i)})(u);return(0,pe.jsx)(wa,{as:o,ownerState:u,className:ue(d.root,i),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Dr("#fff",Hi(a))}, ${Dr("#fff",Hi(a))})`}},...c.style}})}),Sa=xa,Ea=Sn;function ka(e){return Ho("MuiDrawer",e)}function Ra(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=ue(r?.className,i?.className,o?.className),s=n(o,i);return{...i,...o,...s,...!!a&&{className:a},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const r=t,i=n(e,r),o=ue(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Uo("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ca=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,"temporary"===n.variant&&t.modal]},Pa=fo(fa,{name:"MuiDrawer",slot:"Root",overridesResolver:Ca})(go(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Aa=fo("div",{shouldForwardProp:po,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ca})({flex:"0 0 auto"}),Qa=fo(Sa,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Ea(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${Ea(n.anchor)}`]]}})(go(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Ta={left:"right",right:"left",top:"down",bottom:"up"},Ma=c.forwardRef(function(e,t){const n=bo({props:e,name:"MuiDrawer"}),r=Lo(),i=c.useContext(he)??!1,o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h,...f}={},onClose:m,open:g=!1,PaperProps:O={},SlideProps:v,TransitionComponent:b,transitionDuration:y=o,variant:w="temporary",slots:x={},slotProps:S={},...E}=n,k=c.useRef(!1);c.useEffect(()=>{k.current=!0},[]);const R=function({direction:e},t){return"rtl"===e&&function(e){return["left","right"].includes(e)}(t)?Ta[t]:t}({direction:i?"rtl":"ltr"},a),C=a,P={...n,anchor:C,elevation:d,open:g,variant:w,...E},A=(e=>{const{classes:t,anchor:n,variant:r}=e;return de({root:["root",`anchor${Ea(n)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ea(n)}`,"temporary"!==r&&`paperAnchorDocked${Ea(n)}`]},ka,t)})(P),Q={slots:{transition:b,...x},slotProps:{paper:O,transition:v,...S,backdrop:Ra(S.backdrop||{...s,...h},{transitionDuration:y})}},[T,M]=So("root",{ref:t,elementType:Pa,className:ue(A.root,A.modal,u),shouldForwardComponentProp:!0,ownerState:P,externalForwardedProps:{...Q,...E,...f},additionalProps:{open:g,onClose:m,hideBackdrop:p,slots:{backdrop:Q.slots.backdrop},slotProps:{backdrop:Q.slotProps.backdrop}}}),[_,I]=So("paper",{elementType:Qa,shouldForwardComponentProp:!0,className:ue(A.paper,O.className),ownerState:P,externalForwardedProps:Q,additionalProps:{elevation:"temporary"===w?d:0,square:!0,..."temporary"===w&&{role:"dialog","aria-modal":"true"}}}),[$,D]=So("docked",{elementType:Aa,ref:t,className:ue(A.root,A.docked,u),ownerState:P,externalForwardedProps:Q,additionalProps:E}),[L,N]=So("transition",{elementType:ba,ownerState:P,externalForwardedProps:Q,additionalProps:{in:g,direction:Ta[R],timeout:y,appear:k.current}}),z=(0,pe.jsx)(_,{...I,children:l});if("permanent"===w)return(0,pe.jsx)($,{...D,children:z});const j=(0,pe.jsx)(L,{...N,children:z});return"persistent"===w?(0,pe.jsx)($,{...D,children:j}):(0,pe.jsx)(T,{...M,children:j})}),_a=Ma;function Ia(e,t){return function(){return e.apply(t,arguments)}}const{toString:$a}=Object.prototype,{getPrototypeOf:Da}=Object,{iterator:La,toStringTag:Na}=Symbol,za=(e=>t=>{const n=$a.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ja=e=>(e=e.toLowerCase(),t=>za(t)===e),Ba=e=>t=>typeof t===e,{isArray:Za}=Array,Xa=Ba("undefined");function Va(e){return null!==e&&!Xa(e)&&null!==e.constructor&&!Xa(e.constructor)&&Wa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fa=ja("ArrayBuffer"),qa=Ba("string"),Wa=Ba("function"),Ga=Ba("number"),Ha=e=>null!==e&&"object"==typeof e,Ua=e=>{if("object"!==za(e))return!1;const t=Da(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Na in e||La in e)},Ya=ja("Date"),Ka=ja("File"),Ja=ja("Blob"),es=ja("FileList"),ts="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},ns=void 0!==ts.FormData?ts.FormData:void 0,rs=ja("URLSearchParams"),[is,os,as,ss]=["ReadableStream","Request","Response","Headers"].map(ja);function ls(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Za(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const us="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,ds=e=>!Xa(e)&&e!==us,ps=(hs="undefined"!=typeof Uint8Array&&Da(Uint8Array),e=>hs&&e instanceof hs);var hs;const fs=ja("HTMLFormElement"),ms=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gs=ja("RegExp"),Os=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ls(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},vs=ja("AsyncFunction"),bs=(ys="function"==typeof setImmediate,ws=Wa(us.postMessage),ys?setImmediate:ws?((e,t)=>(us.addEventListener("message",({source:n,data:r})=>{n===us&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),us.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ys,ws;const xs="undefined"!=typeof queueMicrotask?queueMicrotask.bind(us):"undefined"!=typeof process&&process.nextTick||bs,Ss={isArray:Za,isArrayBuffer:Fa,isBuffer:Va,isFormData:e=>{if(!e)return!1;if(ns&&e instanceof ns)return!0;const t=Da(e);if(!t||t===Object.prototype)return!1;if(!Wa(e.append))return!1;const n=za(e);return"formdata"===n||"object"===n&&Wa(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Fa(e.buffer),t},isString:qa,isNumber:Ga,isBoolean:e=>!0===e||!1===e,isObject:Ha,isPlainObject:Ua,isEmptyObject:e=>{if(!Ha(e)||Va(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:is,isRequest:os,isResponse:as,isHeaders:ss,isUndefined:Xa,isDate:Ya,isFile:Ka,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Ja,isRegExp:gs,isFunction:Wa,isStream:e=>Ha(e)&&Wa(e.pipe),isURLSearchParams:rs,isTypedArray:ps,isFileList:es,forEach:ls,merge:function e(){const{caseless:t,skipUndefined:n}=ds(this)&&this||{},r={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const a=t&&cs(r,o)||o;Ua(r[a])&&Ua(i)?r[a]=e(r[a],i):Ua(i)?r[a]=e({},i):Za(i)?r[a]=i.slice():n&&Xa(i)||(r[a]=i)};for(let e=0,t=arguments.length;e(ls(t,(t,r)=>{n&&Wa(t)?Object.defineProperty(e,r,{value:Ia(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Da(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:za,kindOfTest:ja,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Za(e))return e;let t=e.length;if(!Ga(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[La]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:fs,hasOwnProperty:ms,hasOwnProp:ms,reduceDescriptors:Os,freezeMethods:e=>{Os(e,(t,n)=>{if(Wa(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Wa(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Za(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:cs,global:us,isContextDefined:ds,isSpecCompliantForm:function(e){return!!(e&&Wa(e.append)&&"FormData"===e[Na]&&e[La])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ha(e)){if(t.indexOf(e)>=0)return;if(Va(e))return e;if(!("toJSON"in e)){t[r]=e;const i=Za(e)?[]:{};return ls(e,(e,t)=>{const o=n(e,r+1);!Xa(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:vs,isThenable:e=>e&&(Ha(e)||Wa(e))&&Wa(e.then)&&Wa(e.catch),setImmediate:bs,asap:xs,isIterable:e=>null!=e&&Wa(e[La])};class Es extends Error{static from(e,t,n,r,i,o){const a=new Es(e.message,t||e.code,n,r,i);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ss.toJSONObject(this.config),code:this.code,status:this.status}}}Es.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Es.ERR_BAD_OPTION="ERR_BAD_OPTION",Es.ECONNABORTED="ECONNABORTED",Es.ETIMEDOUT="ETIMEDOUT",Es.ERR_NETWORK="ERR_NETWORK",Es.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Es.ERR_DEPRECATED="ERR_DEPRECATED",Es.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Es.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Es.ERR_CANCELED="ERR_CANCELED",Es.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Es.ERR_INVALID_URL="ERR_INVALID_URL",Es.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ks=Es;function Rs(e){return Ss.isPlainObject(e)||Ss.isArray(e)}function Cs(e){return Ss.endsWith(e,"[]")?e.slice(0,-2):e}function Ps(e,t,n){return e?e.concat(t).map(function(e,t){return e=Cs(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const As=Ss.toFlatObject(Ss,{},null,function(e){return/^is[A-Z]/.test(e)}),Qs=function(e,t,n){if(!Ss.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ss.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ss.isUndefined(t[e])})).metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&Ss.isSpecCompliantForm(t);if(!Ss.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Ss.isDate(e))return e.toISOString();if(Ss.isBoolean(e))return e.toString();if(!c&&Ss.isBlob(e))throw new ks("Blob is not supported. Use a Buffer instead.");return Ss.isArrayBuffer(e)||Ss.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(Ss.isReactNative(t)&&Ss.isReactNativeBlob(e))return t.append(Ps(i,n,o),u(e)),!1;if(e&&!i&&"object"==typeof e)if(Ss.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ss.isArray(e)&&function(e){return Ss.isArray(e)&&!e.some(Rs)}(e)||(Ss.isFileList(e)||Ss.endsWith(n,"[]"))&&(s=Ss.toArray(e)))return n=Cs(n),s.forEach(function(e,r){!Ss.isUndefined(e)&&null!==e&&t.append(!0===a?Ps([n],r,o):null===a?n:n+"[]",u(e))}),!1;return!!Rs(e)||(t.append(Ps(i,n,o),u(e)),!1)}const p=[],h=Object.assign(As,{defaultVisitor:d,convertValue:u,isVisitable:Rs});if(!Ss.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!Ss.isUndefined(n)){if(o>l)throw new ks("Object is too deeply nested ("+o+" levels). Max depth: "+l,ks.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),Ss.forEach(n,function(n,a){!0===(!(Ss.isUndefined(n)||null===n)&&i.call(t,n,Ss.isString(a)?a.trim():a,r,h))&&e(n,r?r.concat(a):[a],o+1)}),p.pop()}}(e),t};function Ts(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ms(e,t){this._pairs=[],e&&Qs(e,this,t)}const _s=Ms.prototype;_s.append=function(e,t){this._pairs.push([e,t])},_s.toString=function(e){const t=e?function(t){return e.call(this,t,Ts)}:Ts;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Is=Ms;function $s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ds(e,t,n){if(!t)return e;const r=n&&n.encode||$s,i=Ss.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let a;if(a=o?o(t,i):Ss.isURLSearchParams(t)?t.toString():new Is(t,i).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Ls=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ss.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ns={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},zs={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Is,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},js="undefined"!=typeof window&&"undefined"!=typeof document,Bs="object"==typeof navigator&&navigator||void 0,Zs=js&&(!Bs||["ReactNative","NativeScript","NS"].indexOf(Bs.product)<0),Xs="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Vs=js&&window.location.href||"http://localhost",Fs={...r,...zs},qs=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Ss.isArray(r)?r.length:o,s?(Ss.hasOwnProp(r,o)?r[o]=Ss.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!a):(r[o]&&Ss.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&Ss.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return Ss.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Ws=(e,t)=>null!=e&&Ss.hasOwnProp(e,t)?e[t]:void 0,Gs={transitional:Ns,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Ss.isObject(e);if(i&&Ss.isHTMLForm(e)&&(e=new FormData(e)),Ss.isFormData(e))return r?JSON.stringify(qs(e)):e;if(Ss.isArrayBuffer(e)||Ss.isBuffer(e)||Ss.isStream(e)||Ss.isFile(e)||Ss.isBlob(e)||Ss.isReadableStream(e))return e;if(Ss.isArrayBufferView(e))return e.buffer;if(Ss.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){const t=Ws(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Qs(e,new Fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return Fs.isNode&&Ss.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((o=Ss.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Ws(this,"env"),r=n&&n.FormData;return Qs(o?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e){if(Ss.isString(e))try{return(0,JSON.parse)(e),Ss.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Ws(this,"transitional")||Gs.transitional,n=t&&t.forcedJSONParsing,r=Ws(this,"responseType"),i="json"===r;if(Ss.isResponse(e)||Ss.isReadableStream(e))return e;if(e&&Ss.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Ws(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw ks.from(e,ks.ERR_BAD_RESPONSE,this,null,Ws(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fs.classes.FormData,Blob:Fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ss.forEach(["delete","get","head","post","put","patch"],e=>{Gs.headers[e]={}});const Hs=Gs,Us=Ss.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ys=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Us[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};(Object.getOwnPropertyDescriptor(Ys,"name")||{}).writable||Object.defineProperty(Ys,"name",{value:"default",configurable:!0});const Ks=Symbol("internals"),Js=/[^\x09\x20-\x7E\x80-\xFF]/g;function el(e){return e&&String(e).trim().toLowerCase()}function tl(e){return!1===e||null==e?e:Ss.isArray(e)?e.map(tl):function(e){let t=0,n=e.length;for(;tt;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(Js,""))}function nl(e,t,n,r,i){return Ss.isFunction(r)?r.call(this,t,n):(i&&(t=n),Ss.isString(t)?Ss.isString(r)?-1!==t.indexOf(r):Ss.isRegExp(r)?r.test(t):void 0:void 0)}class rl{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=el(t);if(!i)throw new Error("header name must be a non-empty string");const o=Ss.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=tl(e))}const o=(e,t)=>Ss.forEach(e,(e,n)=>i(e,n,t));if(Ss.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Ss.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(Ys(e),t);else if(Ss.isObject(e)&&Ss.isIterable(e)){let n,r,i={};for(const t of e){if(!Ss.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?Ss.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=el(e)){const n=Ss.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ss.isFunction(t))return t.call(this,e,n);if(Ss.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=el(e)){const n=Ss.findKey(this,e);return!(!n||void 0===this[n]||t&&!nl(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=el(e)){const i=Ss.findKey(n,e);!i||t&&!nl(0,n[i],i,t)||(delete n[i],r=!0)}}return Ss.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!nl(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Ss.forEach(this,(r,i)=>{const o=Ss.findKey(n,i);if(o)return t[o]=tl(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete t[i],t[a]=tl(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ss.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ss.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ks]=this[Ks]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=el(e);t[r]||(function(e,t){const n=Ss.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Ss.isArray(e)?e.forEach(r):r(e),this}}rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ss.reduceDescriptors(rl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ss.freezeMethods(rl);const il=rl;function ol(e,t){const n=this||Hs,r=t||n,i=il.from(r.headers);let o=r.data;return Ss.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function al(e){return!(!e||!e.__CANCEL__)}const sl=class extends ks{constructor(e,t,n){super(null==e?"canceled":e,ks.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ll(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ks("Request failed with status code "+n.status,[ks.ERR_BAD_REQUEST,ks.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const cl=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(o,a):o,l=Math.max(0,s-r),c=i(l);r=Math.max(r,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},ul=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dl=e=>(...t)=>Ss.asap(()=>e(...t)),pl=Fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Fs.origin),Fs.navigator&&/(msie|trident)/i.test(Fs.navigator.userAgent)):()=>!0,hl=Fs.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ss.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Ss.isString(r)&&s.push(`path=${r}`),Ss.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),Ss.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function fl(e,t,n){let r=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ml=e=>e instanceof il?{...e}:e;function gl(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Ss.isPlainObject(e)&&Ss.isPlainObject(t)?Ss.merge.call({caseless:r},e,t):Ss.isPlainObject(t)?Ss.merge({},t):Ss.isArray(t)?t.slice():t}function i(e,t,n,i){return Ss.isUndefined(t)?Ss.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!Ss.isUndefined(t))return r(void 0,t)}function a(e,t){return Ss.isUndefined(t)?Ss.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return Ss.hasOwnProp(t,o)?r(n,i):Ss.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(ml(e),ml(t),0,!0)};return Ss.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=Ss.hasOwnProp(l,r)?l[r]:i,a=o(Ss.hasOwnProp(e,r)?e[r]:void 0,Ss.hasOwnProp(t,r)?t[r]:void 0,r);Ss.isUndefined(a)&&o!==s||(n[r]=a)}),n}const Ol=e=>{const t=gl({},e),n=e=>Ss.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),a=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=il.from(s),t.url=Ds(fl(c,d,u),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ss.isFormData(r))if(Fs.hasStandardBrowserEnv||Fs.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Ss.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(Fs.hasStandardBrowserEnv&&(Ss.isFunction(i)&&(i=i(t)),!0===i||null==i&&pl(t.url))){const e=o&&a&&hl.read(a);e&&s.set(o,e)}return t};(Object.getOwnPropertyDescriptor(Ol,"name")||{}).writable||Object.defineProperty(Ol,"name",{value:"default",configurable:!0});const vl="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ol(e);let i=r.data;const o=il.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=il.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ll(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ks("Request aborted",ks.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new ks(r,ks.ERR_NETWORK,e,m);i.event=t||null,n(i),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ns;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ks(t,i.clarifyTimeoutError?ks.ETIMEDOUT:ks.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&Ss.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Ss.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=cl(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=cl(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new sl(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const O=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);O&&-1===Fs.protocols.indexOf(O)?n(new ks("Unsupported protocol "+O+":",ks.ERR_BAD_REQUEST,e)):m.send(i||null)})},bl=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ks?t:new sl(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new ks(`timeout of ${t}ms exceeded`,ks.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>Ss.asap(a),s}},yl=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*yl(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},{isFunction:xl}=Ss,Sl=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ss.global),{ReadableStream:El,TextEncoder:kl}=Ss.global,Rl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Cl=e=>{e=Ss.merge.call({skipUndefined:!0},Sl,e);const{fetch:t,Request:n,Response:r}=e,i=t?xl(t):"function"==typeof fetch,o=xl(n),a=xl(r);if(!i)return!1;const s=i&&xl(El),l=i&&("function"==typeof kl?(c=new kl,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=o&&s&&Rl(()=>{let e=!1;const t=new n(Fs.origin,{body:new El,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),d=a&&s&&Rl(()=>Ss.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ks(`Response type '${e}' is not supported`,ks.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:i,method:a,data:s,signal:c,cancelToken:h,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:O,headers:v,withCredentials:b="same-origin",fetchOptions:y}=Ol(e),w=t||fetch;O=O?(O+"").toLowerCase():"text";let x=bl([c,h&&h.toAbortSignal()],f),S=null;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let k;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(k=await(async(e,t)=>{const r=Ss.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Ss.isBlob(e))return e.size;if(Ss.isSpecCompliantForm(e)){const t=new n(Fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ss.isArrayBufferView(e)||Ss.isArrayBuffer(e)?e.byteLength:(Ss.isURLSearchParams(e)&&(e+=""),Ss.isString(e)?(await l(e)).byteLength:void 0)})(t):r})(v,s))){let e,t=new n(i,{method:"POST",body:s,duplex:"half"});if(Ss.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=ul(k,cl(dl(g)));s=wl(t.body,65536,e,n)}}Ss.isString(b)||(b=b?"include":"omit");const t=o&&"credentials"in n.prototype;if(Ss.isFormData(s)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}const c={...y,signal:x,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};S=o&&new n(i,c);let h=await(o?w(S,y):w(i,c));const f=d&&("stream"===O||"response"===O);if(d&&(m||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=Ss.toFiniteNumber(h.headers.get("content-length")),[n,i]=m&&ul(t,cl(dl(m),!0))||[];h=new r(wl(h.body,65536,n,()=>{i&&i(),E&&E()}),e)}O=O||"text";let R=await p[Ss.findKey(p,O)||"text"](h,e);return!f&&E&&E(),await new Promise((t,n)=>{ll(t,n,{data:R,headers:il.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:S})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ks("Network Error",ks.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw ks.from(t,t&&t.code,e,S,t&&t.response)}}},Pl=new Map,Al=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a,s,l=o.length,c=Pl;for(;l--;)a=o[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Cl(t)),c=s;return s},Ql=(Al(),{http:null,xhr:vl,fetch:{get:Al}});Ss.forEach(Ql,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Tl=e=>`- ${e}`,Ml=e=>Ss.isFunction(e)||null===e||!1===e,_l=function(e,t){e=Ss.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Tl).join("\n"):" "+Tl(e[0]):"as no adapter specified";throw new ks("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i};function Il(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sl(null,e)}function $l(e){return Il(e),e.headers=il.from(e.headers),e.data=ol.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_l(e.adapter||Hs.adapter,e)(e).then(function(t){return Il(e),t.data=ol.call(e,e.transformResponse,t),t.headers=il.from(t.headers),t},function(t){return al(t)||(Il(e),t&&t.response&&(t.response.data=ol.call(e,e.transformResponse,t.response),t.response.headers=il.from(t.response.headers))),Promise.reject(t)})}const Dl="1.15.2",Ll={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ll[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Nl={};Ll.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Dl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ks(r(i," has been removed"+(t?" in "+t:"")),ks.ERR_DEPRECATED);return t&&!Nl[i]&&(Nl[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Ll.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const zl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ks("options must be an object",ks.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ks("option "+o+" must be "+n,ks.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ks("Unknown option "+o,ks.ERR_BAD_OPTION)}},validators:Ll},jl=zl.validators;class Bl{constructor(e){this.defaults=e||{},this.interceptors={request:new Ls,response:new Ls}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),i=-1===r?"":n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=gl(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&zl.assertOptions(n,{silentJSONParsing:jl.transitional(jl.boolean),forcedJSONParsing:jl.transitional(jl.boolean),clarifyTimeoutError:jl.transitional(jl.boolean),legacyInterceptorReqResOrdering:jl.transitional(jl.boolean)},!1),null!=r&&(Ss.isFunction(r)?t.paramsSerializer={serialize:r}:zl.assertOptions(r,{encode:jl.function,serialize:jl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),zl.assertOptions(t,{baseUrl:jl.spelling("baseURL"),withXsrfToken:jl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Ss.merge(i.common,i[t.method]);i&&Ss.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=il.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ns;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[$l.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new sl(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Xl(function(t){e=t});return{token:t,cancel:e}}}const Vl=Xl,Fl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Fl).forEach(([e,t])=>{Fl[t]=e});const ql=Fl,Wl=function e(t){const n=new Zl(t),r=Ia(Zl.prototype.request,n);return Ss.extend(r,Zl.prototype,n,{allOwnKeys:!0}),Ss.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(gl(t,n))},r}(Hs);Wl.Axios=Zl,Wl.CanceledError=sl,Wl.CancelToken=Vl,Wl.isCancel=al,Wl.VERSION=Dl,Wl.toFormData=Qs,Wl.AxiosError=ks,Wl.Cancel=Wl.CanceledError,Wl.all=function(e){return Promise.all(e)},Wl.spread=function(e){return function(t){return e.apply(null,t)}},Wl.isAxiosError=function(e){return Ss.isObject(e)&&!0===e.isAxiosError},Wl.mergeConfig=gl,Wl.AxiosHeaders=il,Wl.formToJSON=e=>qs(Ss.isHTMLForm(e)?new FormData(e):e),Wl.getAdapter=_l,Wl.HttpStatusCode=ql,Wl.default=Wl;const Gl=Wl;function Hl(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ul(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ul(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ul(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ul(d,"constructor",c),Ul(c,"constructor",l),l.displayName="GeneratorFunction",Ul(c,i,"GeneratorFunction"),Ul(d),Ul(d,i,"Generator"),Ul(d,r,function(){return this}),Ul(d,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m:p}})()}function Ul(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Ul=function(e,t,n,r){function o(t,n){Ul(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Ul(e,t,n,r)}function Yl(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Kl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(au(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,au(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,au(d,"constructor",c),au(c,"constructor",l),l.displayName="GeneratorFunction",au(c,i,"GeneratorFunction"),au(d),au(d,i,"Generator"),au(d,r,function(){return this}),au(d,"toString",function(){return"[object Generator]"}),(ou=function(){return{w:o,m:p}})()}function au(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}au=function(e,t,n,r){function o(t,n){au(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},au(e,t,n,r)}function su(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function lu(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){su(o,r,i,a,s,"next",e)}function s(e){su(o,r,i,a,s,"throw",e)}a(void 0)})}}var cu=function(e){return{type:"SET_API_DATA",data:e}},uu=function(e){return{type:"SET_LOADING",isLoading:e}},du=function(e){return{type:"SET_SAVING",isSaving:e}},pu=function(){return function(){var e=lu(ou().m(function e(t){var n,r,i,o,a,s;return ou().w(function(e){for(;;)switch(e.p=e.n){case 0:return(n=t.dispatch)(uu(!0)),e.p=1,(o=new FormData).append("nonce",null===(r=sp_eab_admin_dashboard_localize)||void 0===r?void 0:r.nonce),o.append("action","sp_eab_admin_option_update"),o.append("queryData",JSON.stringify({})),e.n=2,Gl.post(null===(i=sp_eab_admin_dashboard_localize)||void 0===i?void 0:i.ajax_url,o);case 2:a=e.v,n(cu(a.data)),e.n=4;break;case 3:e.p=3,s=e.v,console.error("Error fetching data:",s.message);case 4:n(uu(!1));case 5:return e.a(2)}},e,null,[[1,3]])}));return function(_x){return e.apply(this,arguments)}}()},hu=function(e,t){return function(){var n=lu(ou().m(function n(r){var i,o,a,s,l,c;return ou().w(function(n){for(;;)switch(n.p=n.n){case 0:return(i=r.dispatch)(du(!0)),n.p=1,(s=new FormData).append("nonce",null===(o=sp_eab_admin_dashboard_localize)||void 0===o?void 0:o.nonce),s.append("action","sp_eab_admin_option_update"),s.append("queryData",JSON.stringify(e)),void 0!==t&&s.append("editorPreference",t),n.n=2,Gl.post(null===(a=sp_eab_admin_dashboard_localize)||void 0===a?void 0:a.ajax_url,s);case 2:l=n.v,i(cu(l.data)),n.n=4;break;case 3:n.p=3,c=n.v,console.error("Error saving data:",c.message);case 4:i(du(!1));case 5:return n.a(2)}},n,null,[[1,3]])}));return function(e){return n.apply(this,arguments)}}()},fu=function(e){return e.apiData},mu=function(e){var t;return null===(t=e.apiData)||void 0===t?void 0:t.pluginSettings},gu=function(e){var t;return null===(t=e.apiData)||void 0===t?void 0:t.blockVisibility},Ou=function(e){var t;return null===(t=e.apiData)||void 0===t?void 0:t.dashboardSettings},vu=function(e){var t;return null===(t=e.apiData)||void 0===t?void 0:t.eapShortcodes},bu=function(e){return e.isLoading},yu=function(e){return e.isSaving},wu=(0,s.createReduxStore)(Vc,{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_API_DATA":return nu(nu({},e),{},{apiData:t.data});case"SET_LOADING":return nu(nu({},e),{},{isLoading:t.isLoading});case"SET_SAVING":return nu(nu({},e),{},{isSaving:t.isSaving});default:return e}},actions:i,selectors:o});(0,s.register)(wu);var xu=function(){return React.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#ProIndicatorIcona)"},React.createElement("path",{d:"m15.35 2.387 6.263 6.262m-4.986 5.828.084.538a4.92 4.92 0 0 1-2.453 5.047l-4.09 2.444.51-3.369M9.523 7.373l-.538-.084a4.92 4.92 0 0 0-5.047 2.453l-2.445 4.09 3.37-.51m12.236-2.285a2.801 2.801 0 1 1-3.962-3.961 2.801 2.801 0 0 1 3.962 3.96m-5.313 3.524a1.537 1.537 0 1 1-2.173-2.172 1.537 1.537 0 0 1 2.173 2.172m-1.152 4.532-5.727-5.727 6.244-7.93A10.56 10.56 0 0 1 22.14 1.86a10.56 10.56 0 0 1-3.574 10.988zm-5.649-.078 1.498-4.072 2.574 2.574z",stroke:"#fff",strokeWidth:1.4,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement("defs",null,React.createElement("clipPath",{id:"ProIndicatorIcona"},React.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))},Su=function(){return React.createElement("svg",{width:45,height:20,viewBox:"0 0 45 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M34.8.4a9.4 9.4 0 0 1 0 18.8h-25A9.4 9.4 0 0 1 9.8.4z",fill:"#effff5"}),React.createElement("path",{d:"M34.8.4a9.4 9.4 0 0 1 0 18.8h-25A9.4 9.4 0 0 1 9.8.4z",stroke:"#93dcac",strokeWidth:.8}),React.createElement("path",{d:"m5.766 11.667-.56-4.449c-.041-.328.265-.552.483-.353l1.744 1.6c.192.175.464.117.597-.126l1.452-2.662c.154-.282.492-.282.646 0l1.452 2.662c.133.243.405.3.597.125l1.744-1.599c.218-.2.524.025.482.353l-.56 4.449zm7.656 2.468H6.187c-.232 0-.42-.23-.42-.515v-1.13h8.076v1.13c0 .284-.188.515-.42.515m9.131-3.187H20.54v-1.16h2.014q.495 0 .8-.161.312-.167.457-.452.145-.29.145-.66 0-.36-.145-.672a1.17 1.17 0 0 0-.456-.504q-.306-.194-.8-.194h-1.531V13.8h-1.477V5.98h3.007q.914 0 1.558.327.65.322.988.897.345.57.344 1.3 0 .758-.344 1.305a2.2 2.2 0 0 1-.988.844q-.645.295-1.558.295m4.05-4.968h2.842q.891 0 1.53.268.64.27.983.795.344.527.344 1.295 0 .606-.215 1.052a2.05 2.05 0 0 1-.607.747q-.387.3-.913.473l-.462.236h-2.508l-.01-1.166h1.874q.456 0 .757-.16.3-.162.451-.447.156-.284.156-.65 0-.39-.15-.676a1.02 1.02 0 0 0-.457-.446q-.306-.156-.773-.156H28.08V13.8h-1.477zm4.415 7.82-1.81-3.502 1.563-.005 1.832 3.432v.075zm8.91-4.109v.403q0 .886-.235 1.595-.237.704-.672 1.198a2.9 2.9 0 0 1-1.036.757 3.3 3.3 0 0 1-1.338.263q-.724 0-1.332-.263a3 3 0 0 1-1.042-.757 3.5 3.5 0 0 1-.682-1.198 5 5 0 0 1-.242-1.595V9.69q0-.891.242-1.595a3.5 3.5 0 0 1 .677-1.198q.435-.5 1.036-.763a3.3 3.3 0 0 1 1.333-.263q.735 0 1.337.263.6.264 1.036.763.441.495.677 1.198.242.703.242 1.595m-1.492.403V9.68q0-.639-.118-1.122a2.4 2.4 0 0 0-.35-.822 1.5 1.5 0 0 0-.569-.5 1.66 1.66 0 0 0-.762-.171q-.43 0-.763.172a1.5 1.5 0 0 0-.559.499 2.5 2.5 0 0 0-.354.822 4.8 4.8 0 0 0-.119 1.122v.414q0 .634.119 1.123.123.488.354.827.236.333.57.505.332.171.762.171t.763-.171q.333-.172.558-.505.23-.339.35-.828a4.8 4.8 0 0 0 .118-1.122",fill:"#4ab866"}))},Eu=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#AccordionFeaturedIcona)"}),React.createElement("path",{d:"M20.531 10.268c.696-1.119 2.371-1.081 3.001.113l3.256 6.17 6.874 1.189c1.373.238 1.918 1.916.947 2.915l-4.862 5.002.993 6.906c.198 1.379-1.23 2.416-2.48 1.802L22 31.285l-6.26 3.08c-1.25.614-2.678-.423-2.48-1.802l.992-6.906-4.861-5.002c-.971-1-.426-2.678.947-2.915l6.873-1.19 3.257-6.17zm-1.48 7.512c-.25.475-.708.808-1.237.9l-6.229 1.077 4.405 4.533c.375.385.55.922.473 1.454l-.9 6.255 5.672-2.788a1.73 1.73 0 0 1 1.345-.077l.185.077 5.67 2.788-.898-6.255a1.73 1.73 0 0 1 .473-1.454l4.404-4.533-6.228-1.078a1.73 1.73 0 0 1-1.237-.899L22 12.19z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AccordionFeaturedIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#00afff"}),React.createElement("stop",{offset:1,stopColor:"#2974ff"}))))};function ku(e){return ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ku(e)}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:x,t=Pu(Pu({},f),{},Au({},i,e));m({dashboardSettings:t}),R(!1)},P=function(){var e=Pu(Pu({},x),{},Au({},b,g[b]));C(e),S(e)},A=function(e,t){var n=Pu(Pu({},null==x?void 0:x[b]),{},Au({},e,t));R(!Wc(n,null==O?void 0:O[b])),S(Pu(Pu({},x),{},Au({},b,n)))};return(0,a.useEffect)(function(){S(O)},[f]),React.createElement("div",{className:"sp-eab-integrations-page-items-wrapper sp-d-grid ".concat(h)},null==n?void 0:n.map(function(e){var t,n=e.id,r=e.key,o=e.Icon,a=e.label,s=e.desc,u=e.demoLink,p=e.docLink,h=e.videoLink,f=e.upcoming,m=e.isPro,g=e.hideSettings;return React.createElement("div",{key:n,className:"sp-eap-integrations-card sp-d-flex".concat(f?" sp-eap-upcoming-card":"")},React.createElement("div",{className:"sp-eap-integrations-card__icon"},React.createElement(o,null)),React.createElement("div",{className:"sp-eap-integrations-card__content sp-d-flex sp-flex-col sp-justify-between"},React.createElement("div",{className:"sp-d-flex sp-flex-col sp-gap-8px"},React.createElement("div",{className:"sp-d-flex sp-align-center sp-justify-between"},React.createElement("h4",{className:"sp-eap-integrations-card__label"},a,!c&&f&&React.createElement("span",{className:"sp-eap-dashboard-upcoming-text small"},(0,l.__)("Upcoming","easy-accordion-free"))),r&&React.createElement(Sc.A,{icons:!1,defaultChecked:!f&&(null==x||null===(t=x[r])||void 0===t?void 0:t.is_active),onChange:function(){var e;f||function(e,t){C(Pu(Pu({},x),{},Au({},e,Pu(Pu({},x[e]),{},{is_active:t})))),function(e){var t=("modules"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"modules")?(0,l.__)("Module","easy-accordion-free"):(0,l.__)("Integration","easy-accordion-free"))+(e?(0,l.__)(" enabled successfully","easy-accordion-free"):(0,l.__)(" disabled successfully","easy-accordion-free"));z.success(t,{style:{marginTop:"20px",fontSize:"14px"}})}(t,i),"modules"===i&&function(e,t){var n=null==_u?void 0:_u.find(function(t){return t.key===e}),r=document.querySelector("#menu-posts-sp_easy_accordion .wp-submenu-wrap");if(n&&r){var i=r.querySelector('a[href="'.concat(n.href,'"]'));if(t){if(t&&!i){var o=document.createElement("li"),a=document.createElement("a");a.href=n.href,a.textContent=n.label,o.appendChild(a);var s=r.children[n.index];r.insertBefore(o,s)}}else if(i){var l=i.closest("li");null==l||l.remove()}}}(e,t)}(r,!(null!=x&&null!==(e=x[r])&&void 0!==e&&e.is_active))}}),m&&React.createElement(Su,null)),"quick-start"!==d&&React.createElement("span",{className:"sp-eap-integrations-card__desc"},s)),"quick-start"!==d&&React.createElement("div",{className:"sp-eap-integrations-card__links sp-d-flex sp-align-center sp-justify-between"},(p||u||h)&&React.createElement("div",{className:"sp-d-flex sp-align-center sp-gap-10px"},u&&React.createElement("a",Ru({className:"sp-d-flex sp-align-center sp-gap-4px",href:u,target:"_blank",rel:"noreferrer"},"#"===u&&{style:{pointerEvents:"none",cursor:"default"}}),React.createElement(nc,null)," Demo"),h&&React.createElement("a",Ru({className:"sp-d-flex sp-align-center sp-gap-4px",href:h,target:"_blank",rel:"noreferrer"},"#"===h&&{style:{pointerEvents:"none",cursor:"default"}}),React.createElement(rc,null)," Video"),p&&React.createElement("a",Ru({className:"sp-d-flex sp-align-center sp-gap-4px",href:p,target:"_blank",rel:"noreferrer"},"#"===p&&{style:{pointerEvents:"none",cursor:"default"}}),React.createElement(tc,null)," Docs")),"integrations"===i&&"page-builder"!==d&&!g&&React.createElement("div",{className:"sp-eap-integrations-card__settings sp-cursor-pointer"},React.createElement("span",{onClick:function(){f||y(r)}},React.createElement(ic,null))))),b===r&&React.createElement(Fc.Modal,{className:"sp-eap-integrations__modal",title:Mu[r],onRequestClose:function(){return y(null)}},React.createElement("div",{className:"sp-eap-integrations__modal-content"},"google_recaptcha"===b?React.createElement(Yc,{settings:null==x?void 0:x.google_recaptcha,updateSettingsOption:A}):React.createElement(Jc,{openedPopup:b,settings:null==x?void 0:x[b],updateSettingsOption:A}),React.createElement(Gc,{onSave:function(){return C()},onReset:P,isChanged:k}))))}))});var $u=[{id:3,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 6a6 6 0 0 1 6-6h32a6 6 0 0 1 6 6v32a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6z",fill:"url(#GenerateFaqsWithAIIcona)"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.411 18.615c-1.722-1.206-.629-3.569-.553-3.676.096-.253.37-.302.624-.205.253.097.301.372.204.625s-.823 1.749.253 2.502a.45.45 0 0 1 .113.641.45.45 0 0 1-.64.113",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m11.368 19.292-.054-.037c-.178-.205-.226-.48-.021-.657.075-.108 1.921-1.943 3.644-.737.215.15.263.425.112.64a.45.45 0 0 1-.64.114c-1.077-.754-2.438.618-2.438.618-.205.178-.442.172-.603.06m-.408-3.095a.45.45 0 0 1-.113-.64.45.45 0 0 1 .64-.114c1.076.754 2.438-.618 2.438-.618.205-.178.48-.226.657-.022s.226.48.022.657c-.076.107-1.976 1.905-3.644.737",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.367 19.287c-.162-.113-.248-.334-.151-.587s.824-1.749-.253-2.502a.45.45 0 0 1-.112-.641.45.45 0 0 1 .64-.113c1.668 1.168.63 3.569.554 3.676-.097.253-.372.302-.624.205zm9.391-6.911c-1.418-.993-.518-2.938-.456-3.026.08-.209.306-.248.514-.169.208.08.248.306.169.514-.08.209-.679 1.44.207 2.06a.37.37 0 0 1 .093.528.37.37 0 0 1-.527.093",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m18.255 12.944-.044-.03c-.147-.17-.186-.395-.018-.541.062-.089 1.582-1.6 3-.607a.37.37 0 0 1 .093.527.37.37 0 0 1-.528.093c-.886-.62-2.007.51-2.007.51-.168.146-.363.141-.496.048m-.333-2.547a.37.37 0 0 1-.093-.528.37.37 0 0 1 .528-.093c.886.62 2.007-.51 2.007-.51.168-.145.394-.185.54-.017.147.169.186.395.018.54-.062.09-1.626 1.57-3 .607",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.252 12.94c-.133-.093-.203-.275-.124-.483.08-.209.678-1.44-.208-2.06a.37.37 0 0 1-.093-.528.37.37 0 0 1 .528-.093c1.373.962.518 2.938.456 3.026-.08.209-.306.248-.514.169zm14.638 2.35c-1.722-1.207-.63-3.57-.554-3.677.097-.253.372-.301.625-.204.253.096.301.371.204.624s-.824 1.75.253 2.503a.45.45 0 0 1 .113.64.45.45 0 0 1-.64.113",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m29.845 15.967-.053-.038c-.178-.205-.226-.48-.022-.657.076-.107 1.922-1.943 3.644-.737a.45.45 0 0 1 .113.64.45.45 0 0 1-.64.114c-1.077-.754-2.439.618-2.439.618-.204.178-.441.173-.603.06m-.407-3.095a.45.45 0 0 1-.113-.64.45.45 0 0 1 .64-.114c1.077.754 2.44-.618 2.44-.618.204-.178.478-.226.656-.022s.226.48.021.657c-.075.108-1.975 1.905-3.644.737",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.845 15.961c-.161-.113-.247-.333-.15-.586s.823-1.75-.253-2.503a.45.45 0 0 1-.113-.64.45.45 0 0 1 .64-.114c1.67 1.168.63 3.569.555 3.677-.097.252-.372.3-.625.204zM27.32 29.537c-1.373-.962-.473-2.907-.41-2.996.079-.208.305-.248.513-.168s.248.306.168.514-.678 1.44.164 2.03a.37.37 0 0 1 .093.527.37.37 0 0 1-.527.093",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.859 30.126-.045-.032c-.146-.168-.186-.394-.017-.54.062-.089 1.582-1.6 2.955-.638a.37.37 0 0 1 .093.528.37.37 0 0 1-.527.093c-.842-.59-1.963.54-1.963.54-.169.146-.363.142-.496.048m-.332-2.547a.37.37 0 0 1-.093-.528.37.37 0 0 1 .527-.093c.887.62 2.008-.509 2.008-.509.168-.146.394-.186.54-.018.146.169.186.395.018.541-.062.089-1.626 1.568-3 .607",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.858 30.12c-.133-.092-.204-.274-.124-.482s.68-1.44-.207-2.06a.37.37 0 0 1-.093-.528.37.37 0 0 1 .527-.093c1.374.962.518 2.938.456 3.027-.08.208-.306.248-.514.168zm7.709-7.192c-1.33-.93-.518-2.937-.456-3.026.049-.164.306-.248.514-.168.164.048.248.305.168.514 0 0-.633 1.47.208 2.06a.37.37 0 0 1 .093.527.37.37 0 0 1-.527.093",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m30.094 23.442-.045-.031c-.146-.169-.155-.439-.017-.54.062-.09 1.64-1.494 2.97-.563a.37.37 0 0 1 .092.527.37.37 0 0 1-.527.093c-.842-.59-1.977.465-1.977.465-.168.146-.363.142-.496.049m-.317-2.472a.37.37 0 0 1-.093-.528.37.37 0 0 1 .528-.093c.841.59 1.963-.54 1.963-.54.168-.146.394-.186.54-.018.146.169.186.395.018.54-.062.09-1.582 1.6-2.956.639",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.094 23.442c-.133-.093-.205-.274-.125-.483 0 0 .647-1.395-.195-1.985a.37.37 0 0 1-.093-.527.37.37 0 0 1 .528-.093c1.329.93.504 2.863.442 2.951-.08.208-.305.248-.514.169z",fill:"#fff"}),React.createElement("path",{d:"m11.745 32.823 1.81 1.19L24.822 16.89l-1.81-1.19zm3.103 2.833-.08.108c-.423.52-1.18.645-1.751.269l-2.913-1.917a1.32 1.32 0 0 1-.378-1.83l11.994-18.23a1.32 1.32 0 0 1 1.83-.377l2.913 1.916c.61.402.78 1.221.379 1.831z",fill:"#fff"}),React.createElement("path",{d:"m23.19 20.868-1.09 1.656-3.875-2.55 1.09-1.655z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"GenerateFaqsWithAIIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#7a00df"}),React.createElement("stop",{offset:1,stopColor:"#1a74e4"}))))},key:"generate_faqs_with_ai",label:(0,l.__)("Generate FAQs with AI","easy-accordion-free"),desc:(0,l.__)("Automatically generate relevant FAQs from your content, keywords, or Prompts to save time and streamline content creation.","easy-accordion-free"),videoLink:"https://www.youtube.com/watch?v=xYL2HC6acgA",docLink:"https://easyaccordion.io/docs/generate-faqs-with-ai/"},{id:8,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#SaveTemplatesIcona)"}),React.createElement("path",{d:"M12.943 9.501c-1.888 0-3.442 1.545-3.442 3.433v18.122a3.46 3.46 0 0 0 3.442 3.442h18.122c1.888 0 3.433-1.553 3.433-3.442V17.741a.94.94 0 0 0-.166-.544l-5.158-7.299a.94.94 0 0 0-.766-.397zm0 1.873h14.976l4.706 6.653v13.03c0 .881-.678 1.568-1.56 1.568H12.943a1.55 1.55 0 0 1-1.569-1.569V12.934c0-.882.687-1.56 1.569-1.56",fill:"#fff"}),React.createElement("path",{d:"M16.69 21.377c-1.889 0-3.442 1.544-3.442 3.433v8.461a.937.937 0 0 0 .94.932.94.94 0 0 0 .942-.932V24.81c0-.882.677-1.56 1.56-1.56h10.62c.882 0 1.569.678 1.569 1.56v8.461a.937.937 0 0 0 1.873 0V24.81c0-1.888-1.554-3.433-3.442-3.433z",fill:"#fff"}),React.createElement("path",{d:"M17.926 25.123a.938.938 0 0 0 0 1.874h8.129a.937.937 0 0 0 0-1.874zm0 3.747a.937.937 0 0 0-.932.94.94.94 0 0 0 .932.942h8.129a.94.94 0 0 0 .932-.941.937.937 0 0 0-.932-.941zM14.189 9.889a.94.94 0 0 0-.941.941v4.06c0 1.888 1.553 3.433 3.441 3.433h6.958a3.44 3.44 0 0 0 3.432-3.433v-4.06a.936.936 0 1 0-1.873 0v4.06c0 .882-.677 1.56-1.56 1.56H16.69c-.882 0-1.56-.678-1.56-1.56v-4.06a.94.94 0 0 0-.94-.941",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"SaveTemplatesIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#00afff"}),React.createElement("stop",{offset:1,stopColor:"#2974ff"}))))},key:"saved_templates",label:(0,l.__)("Saved Templates","easy-accordion-free"),desc:(0,l.__)("Create unlimited templates by converting Gutenberg blocks into shortcodes for use anywhere, including Elementor, Divi, etc.","easy-accordion-free"),videoLink:"https://www.youtube.com/watch?v=HsbKNZ6NDKM",docLink:"https://easyaccordion.io/docs/saved-templates/"},{id:7,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#PatternLibraryIcona)"}),React.createElement("path",{d:"M22 33.25c-5.892 0-8.838 0-10.669-1.83-1.83-1.831-1.83-4.778-1.83-10.67v-3.82c0-2.27 0-3.405.475-4.257a3.75 3.75 0 0 1 1.447-1.448c.852-.475 1.987-.475 4.258-.475 1.455 0 2.182 0 2.819.239 1.453.545 2.053 1.865 2.709 3.177L22 15.75m-5 0h10.938c2.633 0 3.95 0 4.896.632.41.274.76.625 1.034 1.035.633.945.633 2.262.633 4.895",stroke:"#fff",strokeWidth:1.833,strokeLinecap:"round"}),React.createElement("path",{d:"M34.5 25.75h-8.75m8.75 3.75h-8.75m3.125 3.75H25.75",stroke:"#fff",strokeWidth:1.833,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"PatternLibraryIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},key:"pattern_library",label:(0,l.__)("Ready Patterns Library","easy-accordion-free"),desc:(0,l.__)("Access a large collection of pre-designed patterns to build layouts faster with consistent design quality.","easy-accordion-free"),demoLink:"https://easyaccordion.io/patterns/",docLink:"https://easyaccordion.io/docs/ready-patterns-library/"},{id:1,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#SEOSChemaMarkupModuleIcona)"}),React.createElement("path",{d:"M34.1 11A1.1 1.1 0 0 0 33 9.9H11A1.1 1.1 0 0 0 9.9 11v22a1.1 1.1 0 0 0 1.1 1.1h22a1.1 1.1 0 0 0 1.1-1.1zm1.8 22a2.9 2.9 0 0 1-2.9 2.9H11A2.9 2.9 0 0 1 8.1 33V11A2.9 2.9 0 0 1 11 8.1h22a2.9 2.9 0 0 1 2.9 2.9z",fill:"#fff"}),React.createElement("path",{d:"M11.7 18a2.8 2.8 0 0 1 2.8-2.8h6.2a.8.8 0 0 1 0 1.6h-6.2a1.2 1.2 0 0 0 0 2.4h6.2a.8.8 0 0 1 0 1.6h-6.2a2.8 2.8 0 0 1-2.8-2.8",fill:"#fff"}),React.createElement("path",{d:"M30.7 18a4.7 4.7 0 1 0-9.4 0 4.7 4.7 0 0 0 9.4 0m1.6 0a6.3 6.3 0 1 1-12.6 0 6.3 6.3 0 0 1 12.6 0",fill:"#fff"}),React.createElement("path",{d:"M25.1 31v-7a.9.9 0 0 1 1.8 0v7a.9.9 0 0 1-1.8 0m2.547-14.853a.5.5 0 0 1 .707 0l1.146 1.146a1 1 0 0 1 0 1.414l-1.146 1.146a.5.5 0 1 1-.707-.707L28.793 18l-1.146-1.146a.5.5 0 0 1 0-.707m-3.293 3.707a.5.5 0 0 1-.707 0L22.5 18.707a1 1 0 0 1 0-1.414l1.146-1.146a.5.5 0 1 1 .707.707L23.208 18l1.146 1.146a.5.5 0 0 1 0 .707m.713-.198.88-3.284a.5.5 0 0 1 .966.258l-.88 3.285a.5.5 0 0 1-.966-.259M19 23.2a.8.8 0 1 1 0 1.6h-6.5a.8.8 0 1 1 0-1.6zm0 3a.8.8 0 1 1 0 1.6h-6.5a.8.8 0 1 1 0-1.6zm-1.5 3a.8.8 0 1 1 0 1.6h-5a.8.8 0 1 1 0-1.6z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"SEOSChemaMarkupModuleIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#97abff"}),React.createElement("stop",{offset:1,stopColor:"#123597"}))))},key:"seo_schema_markup",label:(0,l.__)("SEO Schema Markup","easy-accordion-free"),desc:(0,l.__)("This allows you to add structured FAQ schema, improving search visibility and increasing clicks with rich results.","easy-accordion-free"),videoLink:"",docLink:"https://easyaccordion.io/docs/seo-schema-markup/"},{id:2,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#MultilevelAccordionModuleIcona)"}),React.createElement("path",{d:"M34.1 9.682a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v15.636a.28.28 0 0 0 .282.281h23.636a.28.28 0 0 0 .282-.28zm1.8 15.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 25.318V9.682c0-1.15.932-2.082 2.082-2.083h23.636c1.15 0 2.082.933 2.082 2.083z",fill:"#fff"}),React.createElement("path",{d:"M30.072 10.709a1.18 1.18 0 0 1 1.49-.008l.09.08.765.76a.591.591 0 0 1-.833.84l-.762-.758-.754.764a.591.591 0 1 1-.842-.829l.757-.767zm-7.484-.006a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM34.1 30.682a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v3.636c0 .156.126.281.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 3.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 34.318v-3.636c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.081z",fill:"#fff"}),React.createElement("path",{d:"M30.072 33.264c.43.357 1.056.36 1.49.008l.09-.081.765-.76a.591.591 0 0 0-.833-.839l-.762.758-.754-.765a.591.591 0 1 0-.842.83l.757.767zm-7.484-1.591a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zm7.484-14.894a1.18 1.18 0 0 1 1.49-.008l.09.08.765.76a.591.591 0 0 1-.833.84l-.762-.758-.754.764a.591.591 0 1 1-.842-.829l.757-.767zm-7.484-.006a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zm5.958 3.277a.75.75 0 0 1 0 1.5H14a.75.75 0 0 1 0-1.5zm0 2.5a.75.75 0 0 1 0 1.5H14a.75.75 0 0 1 0-1.5zM35 13.731a.769.769 0 0 1 0 1.537H9a.769.769 0 0 1 0-1.537z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"MultilevelAccordionModuleIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#f761a1"}),React.createElement("stop",{offset:1,stopColor:"#8c1bab"}))))},label:(0,l.__)("Multi-Level Accordions","easy-accordion-free"),desc:(0,l.__)("This enables you to organize complex content with nested accordions for better structure and navigation.","easy-accordion-free"),demoLink:"https://easyaccordion.io/multi-leve-accoridons/",docLink:"https://easyaccordion.io/docs/how-to-create-multi-level-or-nested-faq-accordion/"},{id:6,Icon:function(){return React.createElement("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ExportImportModuleIcona)"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20.234 19.323-.065.105zm1.802-.823.31.013a3 3 0 0 0-.31-.014m.05 5.704-.154-.012q.082 0 .154.012m-.308 1.284.06.007zm.154.012-.095-.005q.047.005.095.005",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20.234 19.323-.065.105zm1.802-.823.31.013a3 3 0 0 0-.31-.014m-.104 5.692q.082 0 .154.012zm-.095 1.303-.059-.007zm0 0q.047.005.095.005z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20.234 19.323-.065.105zm1.802-.823.31.013a3 3 0 0 0-.31-.014m-.847 1.848.01-.136q-.008.065-.01.136m.973-.84-.126-.006q.066 0 .126.006m.667.992.006-.123q0 .063-.006.123",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m21.189 20.348.01-.136q-.008.065-.01.136m1.641.152.006-.123q0 .063-.007.123",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.183 20.325q0 .325-.096.605l-.075.182a2.6 2.6 0 0 1-.44.63q-.266.285-.574.575a1.15 1.15 0 0 0-.336.473q-.088.254-.094.598v.099h-1.325l.001-.1a4 4 0 0 1 .073-.755l.043-.158q.05-.154.122-.292l.08-.134q.168-.262.448-.526l.203-.194q.095-.095.179-.183a1.5 1.5 0 0 0 .255-.356.9.9 0 0 0 .088-.413q-.002-.27-.084-.435a.53.53 0 0 0-.226-.248.76.76 0 0 0-.389-.092.9.9 0 0 0-.367.081q-.165.076-.269.24a.84.84 0 0 0-.11.43l-.004.097H19.84l.003-.103c.01-.425.11-.787.308-1.079q.294-.439.79-.652a2.7 2.7 0 0 1 1.095-.215q.661-.002 1.144.226.486.222.743.66.26.437.26 1.039m-3.949-1.002-.065.105zm1.802-.823.31.013a3 3 0 0 0-.31-.014m-.847 1.848.01-.136q-.008.065-.01.136m.973-.84-.126-.006q.066 0 .126.006m.667.992.006-.123q0 .063-.006.123m-.992 4.995-.059-.007.154.012z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.738 24.85a.72.72 0 0 1-.223.531c-.148.148-.346.218-.582.218-.237 0-.437-.068-.588-.216a.73.73 0 0 1-.218-.533c0-.213.072-.396.217-.54a.8.8 0 0 1 .589-.219c.236 0 .434.07.582.217a.73.73 0 0 1 .223.542m-.652-.646-.154-.012q.082 0 .154.012m-.308 1.284a1 1 0 0 0 .154.012z",fill:"#fff"}),React.createElement("path",{d:"M16.85 27.15h10.3v-10.3h-10.3zm12 .25c0 .8-.65 1.45-1.45 1.45H16.6a1.45 1.45 0 0 1-1.45-1.45V16.6c0-.8.649-1.45 1.45-1.45h10.8c.8 0 1.45.65 1.45 1.45zm-16.444-2.208a.85.85 0 0 1 1.188 1.217l-2.077 2.025a1.45 1.45 0 0 1-2.034 0l-2.077-2.026a.85.85 0 0 1 1.188-1.216L10.5 27.05z",fill:"#fff"}),React.createElement("path",{d:"M9.65 28V16a.85.85 0 1 1 1.7 0v12a.85.85 0 1 1-1.7 0m25.756-9.192a.85.85 0 0 0 1.188-1.216l-2.078-2.026a1.45 1.45 0 0 0-2.033 0l-2.077 2.026a.85.85 0 0 0 1.188 1.216L33.5 16.95z",fill:"#fff"}),React.createElement("path",{d:"M32.65 16v12a.85.85 0 1 0 1.7 0V16a.85.85 0 1 0-1.7 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ExportImportModuleIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},key:"eap_tools",label:(0,l.__)("Export / Import FAQs","easy-accordion-free"),desc:(0,l.__)("This enables you to transfer FAQs across websites easily, saving time during migration, backup, or content duplication.","easy-accordion-free"),videoLink:"https://www.youtube.com/watch?v=Yjycl8tAvIU",docLink:"https://easyaccordion.io/docs/export-import-faqs/"}],Du=[{id:1,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#BuiltinProTemplatesIcona)"}),React.createElement("path",{d:"M33.6 12a1.1 1.1 0 0 0-1.1-1.1h-17a1.1 1.1 0 0 0-1.1 1.1v16a1.1 1.1 0 0 0 1.1 1.1h17a1.1 1.1 0 0 0 1.1-1.1zm1.8 16a2.9 2.9 0 0 1-2.9 2.9h-17a2.9 2.9 0 0 1-2.9-2.9V12a2.9 2.9 0 0 1 2.9-2.9h17a2.9 2.9 0 0 1 2.9 2.9z",fill:"#fff"}),React.createElement("path",{d:"M29.325 14.064c.43.357 1.056.36 1.49.008l.09-.08.765-.76a.591.591 0 0 0-.834-.84l-.761.758-.754-.764a.591.591 0 1 0-.842.829l.757.767zm-5.315-1.591a.8.8 0 1 1 0 1.6H17a.8.8 0 1 1 0-1.6zM8.6 30V16a2.9 2.9 0 0 1 2.9-2.9h2v1.8h-2a1.1 1.1 0 0 0-1.1 1.1v14a3.1 3.1 0 0 0 3.1 3.1h15a1.1 1.1 0 0 0 1.1-1.1v-2h1.8v2a2.9 2.9 0 0 1-2.9 2.9h-15A4.9 4.9 0 0 1 8.6 30",fill:"#fff"}),React.createElement("path",{d:"M34.5 15.7a.8.8 0 1 1 0 1.6h-21a.8.8 0 1 1 0-1.6zM31 19.2a.8.8 0 1 1 0 1.6H17a.8.8 0 1 1 0-1.6zm0 3.3a.8.8 0 1 1 0 1.6H17a.8.8 0 1 1 0-1.6zm-2.6 3.3a.8.8 0 0 1 0 1.6H17a.8.8 0 1 1 0-1.6z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"BuiltinProTemplatesIcona",x1:1.833,y1:0,x2:42.167,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ffbd29"}),React.createElement("stop",{offset:1,stopColor:"#ff2db6"}))))},label:(0,l.__)("25+ Built-in Pro Templates","easy-accordion-free"),desc:(0,l.__)("Access professionally designed templates to quickly build attractive accordion layouts without starting from scratch.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:2,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#FAQTitlePrefixSuffixIcona)"}),React.createElement("path",{d:"M35.1 9.182a.28.28 0 0 0-.281-.282H9.182a.28.28 0 0 0-.281.282v15.136c0 .156.125.281.28.282H34.82a.28.28 0 0 0 .28-.282zm1.8 15.136c0 1.15-.932 2.082-2.081 2.082H9.182A2.08 2.08 0 0 1 7.1 24.318V9.182c0-1.15.932-2.082 2.082-2.082h25.637c1.15 0 2.081.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.572 10.969a1.18 1.18 0 0 1 1.49-.008l.09.08.765.76a.591.591 0 0 1-.833.84l-.762-.758-.754.764a.591.591 0 1 1-.842-.829l.757-.767zM12.7 11.2a.6.6 0 1 1 0 1.2h-1.2a.6.6 0 1 1 0-1.2zm7.04-.2a.8.8 0 1 1 0 1.6h-4.59a.8.8 0 1 1 0-1.6z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 10.6a.5.5 0 0 0-.5.5v1.4a.5.5 0 0 0 .5.5h2.6a.5.5 0 0 0 .5-.5v-1.4a.5.5 0 0 0-.5-.5zm1.8.7a.5.5 0 0 1 0 1h-1a.5.5 0 0 1 0-1z",fill:"#fff"}),React.createElement("path",{d:"M35.1 30.182a.28.28 0 0 0-.281-.282H9.182a.28.28 0 0 0-.281.282v4.636a.28.28 0 0 0 .28.282H34.82a.28.28 0 0 0 .28-.282zm1.8 4.636c0 1.15-.932 2.082-2.081 2.082H9.182A2.08 2.08 0 0 1 7.1 34.818v-4.636c0-1.15.932-2.082 2.082-2.082h25.637c1.15 0 2.081.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.572 33.226c.43.356 1.056.36 1.49.008l.09-.081.765-.76a.591.591 0 0 0-.833-.84l-.762.759-.754-.765a.591.591 0 1 0-.842.83l.757.767zM12.7 31.872a.6.6 0 1 1 0 1.199h-1.2a.6.6 0 1 1 0-1.2zm7.04-.2a.8.8 0 1 1 0 1.6h-4.59a.8.8 0 1 1 0-1.6z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 31.272a.5.5 0 0 0-.5.5v1.4a.5.5 0 0 0 .5.5h2.6a.5.5 0 0 0 .5-.5v-1.4a.5.5 0 0 0-.5-.5zm1.8.7a.5.5 0 0 1 0 1h-1a.5.5 0 1 1 0-1z",fill:"#fff"}),React.createElement("path",{d:"M32.05 18.25a.75.75 0 1 1 0 1.5H11.5a.75.75 0 0 1 0-1.5zm-4 3a.75.75 0 1 1 0 1.5H11.5a.75.75 0 0 1 0-1.5zM36 14.831a.769.769 0 0 1 0 1.538H8a.769.769 0 0 1 0-1.538z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"FAQTitlePrefixSuffixIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#97abff"}),React.createElement("stop",{offset:1,stopColor:"#123597"}))))},label:(0,l.__)("FAQ Title Prefix & Suffix","easy-accordion-free"),desc:(0,l.__)("Add custom text before or after titles to improve clarity and guide users through structured content.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:3,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#a)"}),React.createElement("path",{d:"M7.1 24v-4A1.9 1.9 0 0 1 9 18.1h6v1.8H9a.1.1 0 0 0-.1.1v4a.1.1 0 0 0 .1.1h6v1.8H9A1.9 1.9 0 0 1 7.1 24m28 0v-4a.1.1 0 0 0-.1-.1h-6v-1.8h6a1.9 1.9 0 0 1 1.9 1.9v4a1.9 1.9 0 0 1-1.9 1.9h-6v-1.8h6a.1.1 0 0 0 .1-.1",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.545 18.654a2 2 0 0 0-.09.131zm2.489-1.03.43.018a5 5 0 0 0-.43-.017m.07 7.131-.213-.014q.112 0 .212.014m-.426 1.606.082.01zm.213.014-.131-.005q.063.005.131.005",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.545 18.654a2 2 0 0 0-.09.131zm2.489-1.03.43.018a5 5 0 0 0-.43-.017m-.143 7.117q.112 0 .212.014zm-.131 1.63-.082-.01zm0 0q.063.004.131.004z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.545 18.654a2 2 0 0 0-.09.131zm2.489-1.03.43.018a5 5 0 0 0-.43-.017m-1.17 2.312.015-.17q-.012.08-.015.17m1.345-1.05-.175-.009q.09 0 .175.009m.921 1.24.009-.155q0 .08-.009.155",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20.864 19.936.015-.17q-.012.08-.015.17m2.266.19.009-.155q0 .08-.009.155",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 19.906q0 .407-.132.757l-.104.227a3.3 3.3 0 0 1-.607.789q-.368.356-.794.718-.348.285-.464.59-.121.319-.13.749v.123h-1.83l.001-.126q.007-.544.101-.942l.06-.198q.067-.192.168-.365l.11-.167q.232-.327.619-.658l.28-.243q.132-.119.248-.228.226-.218.352-.446.121-.224.122-.515a1.14 1.14 0 0 0-.116-.545.7.7 0 0 0-.313-.31 1.1 1.1 0 0 0-.537-.114q-.27 0-.507.1a.83.83 0 0 0-.37.3q-.14.19-.155.537l-.004.122H19l.004-.128q.018-.8.426-1.349.407-.548 1.092-.816.681-.269 1.512-.268.914-.001 1.58.282.672.279 1.027.825.36.548.359 1.3m-5.455-1.252a2 2 0 0 0-.09.131zm2.489-1.03.43.018a5 5 0 0 0-.43-.017m-1.17 2.312.015-.17q-.012.08-.015.17m1.345-1.05-.175-.009q.09 0 .175.009m.921 1.24.009-.155q0 .08-.009.155m-1.37 6.244-.082-.01.213.015z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.005 25.564q-.001.391-.31.664c-.204.185-.477.272-.804.272s-.603-.086-.812-.27a.87.87 0 0 1-.3-.666.88.88 0 0 1 .299-.677c.208-.184.486-.272.813-.272s.6.087.805.271c.205.181.308.41.308.678m-.902-.809-.212-.014q.112 0 .212.014m-.425 1.606a2 2 0 0 0 .213.014z",fill:"#fff"}),React.createElement("path",{d:"M29.1 22a7.1 7.1 0 1 0-14.2 0 7.1 7.1 0 1 0 14.2 0m1.8 0a8.9 8.9 0 1 1-17.8 0 8.9 8.9 0 0 1 17.8 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"a",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ff96f9"}),React.createElement("stop",{offset:1,stopColor:"#c32bac"}))))},label:(0,l.__)("FAQ Title Badges","easy-accordion-free"),desc:(0,l.__)("Highlight important FAQs with badges, helping users quickly identify featured or critical information within content.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:4,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#AccordionItemSubtitlesa)"}),React.createElement("path",{d:"M34.1 9.232a.28.28 0 0 0-.282-.281H10.182a.28.28 0 0 0-.282.28V23.37c0 .155.126.28.282.28h23.636a.28.28 0 0 0 .282-.28zm1.8 14.137c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 23.369V9.232c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.013 11.229a1.18 1.18 0 0 1 1.49-.008l.09.081.765.76a.591.591 0 0 1-.833.839l-.762-.758-.754.765a.591.591 0 1 1-.842-.83l.757-.767zm-7.425 1.094a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM18.59 10.1a.55.55 0 1 1 0 1.1H12a.55.55 0 1 1 0-1.1zM34.1 29.232a.28.28 0 0 0-.282-.281H10.182a.28.28 0 0 0-.282.28v5.537c0 .156.126.282.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 5.536c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 34.768v-5.536c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.013 32.815c.43.356 1.056.36 1.49.007l.09-.08.765-.76a.591.591 0 0 0-.833-.84l-.762.759-.754-.765a.591.591 0 1 0-.842.829l.757.768zm-7.425-.492a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM18.59 30.1a.55.55 0 1 1 0 1.1H12a.55.55 0 1 1 0-1.1zM31.05 18a.75.75 0 0 1 0 1.5H12.5a.75.75 0 1 1 0-1.5zm-3 2.7a.75.75 0 0 1 0 1.5H12.5a.75.75 0 0 1 0-1.5zM35 15.182a.769.769 0 0 1 0 1.537H9a.769.769 0 0 1 0-1.537z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AccordionItemSubtitlesa",x1:22,y1:0,x2:22,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#920523"}),React.createElement("stop",{offset:.25,stopColor:"#a61937"}),React.createElement("stop",{offset:.5,stopColor:"#ba2d4b"}),React.createElement("stop",{offset:.75,stopColor:"#ce415f"}),React.createElement("stop",{offset:1,stopColor:"#e25573"}))))},label:(0,l.__)("Accordion Item Subtitles","easy-accordion-free"),desc:(0,l.__)("Add descriptive subtitles to each item, providing additional context and improving readability for better understanding.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:5,Icon:Eu,label:(0,l.__)("Accordion Featured Icon","easy-accordion-free"),desc:(0,l.__)("Enhance accordion titles with icons to improve visual appeal and make content easier to scan quickly.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:6,Icon:Eu,label:(0,l.__)("Item Anchor Links","easy-accordion-free"),desc:(0,l.__)("Automatically generate unique anchor links for each item, enabling direct navigation using the item title or ID for easy sharing.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:7,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#AJAXFAQSearchIcona)"}),React.createElement("path",{d:"M21.19 22.38h-1.928q.009-.735.121-1.259a2.9 2.9 0 0 1 .396-.944q.274-.427.741-.87.371-.348.662-.654A2.7 2.7 0 0 0 21.65 18a1.76 1.76 0 0 0 .169-.782q0-.492-.161-.823a1.07 1.07 0 0 0-.46-.5q-.299-.177-.75-.177-.37 0-.702.153-.33.153-.532.476-.201.315-.218.822H16.86q.024-1.056.5-1.758a2.9 2.9 0 0 1 1.282-1.056Q19.449 14 20.449 14q1.105 0 1.887.371.79.363 1.202 1.065.42.701.419 1.693 0 .71-.274 1.274a4.3 4.3 0 0 1-.726 1.04q-.451.484-.976.976-.46.412-.62.88a3.5 3.5 0 0 0-.17 1.08m-2.13 2.507q0-.483.323-.806.331-.323.887-.323.558 0 .88.323.33.323.33.806 0 .468-.33.79-.322.323-.88.323-.555 0-.887-.323a1.08 1.08 0 0 1-.322-.79",fill:"#fff"}),React.createElement("path",{d:"M29.18 28.026A11.96 11.96 0 0 0 32.26 20c0-6.627-5.373-12-12-12-6.628 0-12 5.373-12 12 0 6.628 5.372 12 12 12 2.82 0 5.415-.974 7.464-2.603l6.31 6.31a1 1 0 1 0 1.414-1.414zM20.26 10c5.522 0 10 4.477 10 10s-4.478 10-10 10c-5.524 0-10-4.477-10-10s4.476-10 10-10",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AJAXFAQSearchIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3b2667"}),React.createElement("stop",{offset:1,stopColor:"#bc78ec"}))))},label:(0,l.__)("AJAX FAQ Search","easy-accordion-free"),desc:(0,l.__)("Enable instant FAQ search with real-time results, improving usability without requiring page reloads.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:8,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#FrontendLiveTaxonomyFilterIcona)"}),React.createElement("path",{d:"M10.498 23.89c0-.417.338-.755.756-.755h3.137a.755.755 0 1 1 0 1.51h-3.137a.755.755 0 0 1-.756-.755m7.637-.871a.545.545 0 0 1 .756.755l-.071.085-.779.78a.73.73 0 0 1-.912.092l-.116-.092-.778-.78-.07-.085a.545.545 0 0 1 .754-.756l.085.071.523.522.523-.522z",fill:"#fff"}),React.createElement("path",{d:"M19.85 21.564a.406.406 0 0 0-.405-.406H9.917a.406.406 0 0 0-.406.406v4.648c0 .224.182.406.406.406h9.528a.406.406 0 0 0 .406-.406zm1.511 4.648a1.917 1.917 0 0 1-1.916 1.917H9.917A1.92 1.92 0 0 1 8 26.212v-4.648c0-1.058.859-1.917 1.917-1.917h9.528c1.058 0 1.916.859 1.916 1.917zM16.888 15.87l.107.007a1.046 1.046 0 0 1 0 2.08l-.107.006H9.337a1.046 1.046 0 0 1 0-2.092zm14.347 0 .108.007a1.046 1.046 0 0 1 0 2.08l-.108.006h-7.143a1.046 1.046 0 0 1 0-2.092z",fill:"#fff"}),React.createElement("path",{d:"M10.498 23.89c0-.417.338-.755.756-.755h3.137a.755.755 0 1 1 0 1.51h-3.137a.755.755 0 0 1-.756-.755m14.639 0c0-.417.338-.755.756-.755h3.136a.755.755 0 1 1 0 1.51h-3.136a.755.755 0 0 1-.756-.755m7.637-.871a.545.545 0 0 1 .756.755l-.071.085-.779.78a.73.73 0 0 1-.912.092l-.116-.092-.778-.78-.07-.085a.545.545 0 0 1 .754-.756l.085.071.523.522.523-.522z",fill:"#fff"}),React.createElement("path",{d:"M34.49 21.564a.406.406 0 0 0-.406-.406h-9.528a.406.406 0 0 0-.406.406v4.648c0 .224.182.406.407.406h9.527a.406.406 0 0 0 .406-.406zM36 26.212a1.917 1.917 0 0 1-1.916 1.917h-9.528a1.92 1.92 0 0 1-1.917-1.917v-4.648c0-1.058.859-1.917 1.918-1.917h9.527c1.058 0 1.916.859 1.916 1.917z",fill:"#fff"}),React.createElement("path",{d:"M25.137 23.89c0-.417.338-.755.756-.755h3.136a.755.755 0 1 1 0 1.51h-3.136a.755.755 0 0 1-.756-.755",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"FrontendLiveTaxonomyFilterIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#374691"}),React.createElement("stop",{offset:1,stopColor:"#2160df"}))))},label:(0,l.__)("Frontend Live Taxonomy Filter","easy-accordion-free"),desc:(0,l.__)("Allow users to filter FAQs dynamically by categories or tags, improving content discovery and navigation.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:9,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#FAQAnalyticsIcona)"}),React.createElement("path",{d:"M34.1 11.182a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v21.636c0 .156.126.282.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 21.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 32.818V11.182c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M12 19.313v-6.228h4.252v1.223h-2.747v1.277h2.476v1.226h-2.476v2.502zm5.579 0h-1.618l2.101-6.228h2.005l2.101 6.228H20.55l-1.463-4.659h-.048zm-.216-2.45h3.382v1.143h-3.382zm7.564.212h1.217l.517.66.678.779 1.043 1.286h-1.363l-.73-.873-.431-.62zm3.497-.876q0 1.028-.395 1.743-.395.714-1.07 1.085-.672.372-1.509.372-.84 0-1.511-.375a2.73 2.73 0 0 1-1.068-1.085q-.392-.715-.392-1.74 0-1.028.392-1.742a2.7 2.7 0 0 1 1.068-1.086A3.1 3.1 0 0 1 25.45 13q.836 0 1.509.371.675.371 1.07 1.086.396.714.395 1.742m-1.538 0q0-.608-.174-1.028a1.35 1.35 0 0 0-.492-.635 1.34 1.34 0 0 0-.77-.216 1.35 1.35 0 0 0-.77.216q-.322.216-.495.635-.17.42-.17 1.028t.17 1.028q.173.42.496.636.322.216.77.216.45 0 .769-.216.322-.216.492-.636.174-.42.174-1.028M13.8 33.2h1.9v-4.4h-1.9zm3.5 1.6h-5.1v-6.5a1.1 1.1 0 0 1 1.1-1.1h2.9a1.1 1.1 0 0 1 1.1 1.1zm3.75-1.6h1.9v-7.4h-1.9zm3.5 1.6h-5.1v-9.5a1.1 1.1 0 0 1 1.1-1.1h2.9a1.1 1.1 0 0 1 1.1 1.1zm3.75-1.6h1.9V22.8h-1.9zm3.5 1.6h-5.1V22.3a1.1 1.1 0 0 1 1.1-1.1h2.9a1.1 1.1 0 0 1 1.1 1.1z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"FAQAnalyticsIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},label:(0,l.__)("FAQ Analytics","easy-accordion-free"),desc:(0,l.__)("Monitor FAQ clicks and impressions to understand user behavior and measure content performance effectively.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:10,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"#873eff"}),React.createElement("path",{d:"M8 33.275v-22.55A2.725 2.725 0 0 1 10.725 8h2.819a.846.846 0 0 1 0 1.692h-2.819c-.57 0-1.033.462-1.033 1.033v22.55c0 .57.462 1.033 1.033 1.033h22.55c.57 0 1.033-.462 1.033-1.033v-16.35a.846.846 0 0 1 1.692 0v16.35A2.725 2.725 0 0 1 33.275 36h-22.55A2.725 2.725 0 0 1 8 33.275",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.13 8c-.44 0-.726.158-.982.69l-1.167 2.43V8.96c0-.644-.277-.96-.788-.96-.512 0-.727.191-.983.734l-1.105 2.385V8.984c0-.69-.256-.984-.88-.984h-1.27c-.48 0-.746.249-.746.701s.255.723.726.723h.522v2.724c0 .769.471 1.221 1.146 1.221.676 0 .983-.294 1.32-.983l.738-1.526v1.288c0 .758.45 1.221 1.136 1.221s.941-.26 1.33-.983l1.7-3.165c.368-.69.112-1.22-.707-1.22zm3.192 0c-1.392 0-2.446 1.142-2.446 2.69s1.064 2.68 2.446 2.68 2.436-1.142 2.446-2.68c0-1.548-1.064-2.69-2.446-2.69m0 3.719c-.522 0-.88-.43-.88-1.029s.358-1.04.88-1.04.88.441.88 1.04c0 .6-.348 1.029-.88 1.029M33.554 8c-1.382 0-2.446 1.142-2.446 2.69s1.064 2.68 2.446 2.68S36 12.227 36 10.69 34.936 8 33.554 8m0 3.719c-.532 0-.87-.43-.87-1.029s.348-1.04.87-1.04.88.441.88 1.04c0 .6-.348 1.029-.88 1.029",fill:"#fff"}),React.createElement("path",{d:"M30.691 26.698a.235.235 0 0 0-.235-.235H13.544a.235.235 0 0 0-.235.235v3.758c0 .13.105.235.235.235h16.912c.13 0 .235-.105.235-.235zm1.41 3.758c0 .908-.737 1.644-1.645 1.644H13.544a1.644 1.644 0 0 1-1.644-1.644v-3.758c0-.908.736-1.645 1.644-1.645h16.912c.908 0 1.644.737 1.644 1.645z",fill:"#fff"}),React.createElement("path",{d:"M26.362 27.873a.47.47 0 0 1 .664-.008l.623.611q.003.004.015.005.013-.001.016-.005l.628-.604a.47.47 0 0 1 .652.677l-.63.605a.964.964 0 0 1-1.338-.007l-.623-.61a.47.47 0 0 1-.007-.664m-3.422-.001a.705.705 0 1 1 0 1.41h-7.517a.705.705 0 1 1 0-1.41zm7.751-10.1a.235.235 0 0 0-.235-.235H13.544a.235.235 0 0 0-.235.235v3.758c0 .13.105.235.235.235h16.912c.13 0 .235-.105.235-.235zm1.41 3.758c0 .908-.737 1.644-1.645 1.644H13.544A1.644 1.644 0 0 1 11.9 21.53v-3.758c0-.908.736-1.644 1.644-1.644h16.912c.908 0 1.644.736 1.644 1.644z",fill:"#fff"}),React.createElement("path",{d:"M26.362 18.947a.47.47 0 0 1 .664-.008l.623.611q.003.004.015.005.013-.001.016-.005l.628-.604a.47.47 0 0 1 .652.677l-.63.604a.964.964 0 0 1-1.338-.006l-.623-.61a.47.47 0 0 1-.007-.664m-3.422-.001a.705.705 0 1 1 0 1.41h-7.517a.705.705 0 1 1 0-1.41z",fill:"#fff"}))},label:(0,l.__)("WooCommerce Product FAQs","easy-accordion-free"),desc:(0,l.__)("Add FAQs directly to WooCommerce product pages to reduce customer doubts and increase conversions with clear information.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:11,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#MotionEffectsAnimationsIcona)"}),React.createElement("path",{d:"M36 25.1a.9.9 0 0 1 0 1.8H8a.9.9 0 0 1 0-1.8zm0 6a.9.9 0 0 1 0 1.8H20a.9.9 0 0 1 0-1.8z",fill:"#fff"}),React.createElement("path",{d:"M19.1 32a1.1 1.1 0 1 0-2.2 0 1.1 1.1 0 0 0 2.2 0m1.8 0a2.9 2.9 0 1 1-5.801 0 2.9 2.9 0 0 1 5.801 0",fill:"#fff"}),React.createElement("path",{d:"M16 31.1a.9.9 0 0 1 0 1.8H8a.9.9 0 0 1 0-1.8zM7.1 15.5a6.4 6.4 0 0 1 11.337-4.073.9.9 0 1 1-1.388 1.146 4.6 4.6 0 1 0 0 5.854.9.9 0 0 1 1.387 1.146A6.4 6.4 0 0 1 7.1 15.5",fill:"#fff"}),React.createElement("path",{d:"M15.6 15.5a6.4 6.4 0 0 1 11.337-4.073.9.9 0 1 1-1.388 1.146 4.6 4.6 0 1 0 0 5.854.9.9 0 0 1 1.387 1.146A6.4 6.4 0 0 1 15.6 15.5",fill:"#fff"}),React.createElement("path",{d:"M35.1 15.5a4.6 4.6 0 1 0-9.2 0 4.6 4.6 0 0 0 9.2 0m1.8 0a6.4 6.4 0 1 1-12.801 0 6.4 6.4 0 0 1 12.801 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"MotionEffectsAnimationsIcona",x1:44,y1:44,x2:0,y2:0,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ff4c4f"}),React.createElement("stop",{offset:1,stopColor:"#2402e3"}))))},label:(0,l.__)("Motion Effects & Animations","easy-accordion-free"),desc:(0,l.__)("Add modern motion effects and interactive behaviors to create engaging and visually dynamic user experiences.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:12,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#MultipleUserFAQFormsIcona)"}),React.createElement("path",{d:"M25.45 12a.2.2 0 0 0-.2-.2H9.75a.2.2 0 0 0-.2.2v11.5c0 .11.09.2.2.2h15.5a.2.2 0 0 0 .2-.2zm1.6 11.5a1.8 1.8 0 0 1-1.8 1.8H9.75a1.8 1.8 0 0 1-1.8-1.8V12a1.8 1.8 0 0 1 1.8-1.8h15.5a1.8 1.8 0 0 1 1.8 1.8z",fill:"#fff"}),React.createElement("path",{d:"M17.75 15.75a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5zm0 2.5a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5zm-3.5 2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5zm1.5-7.5a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5zm6.347 6.138h-1.4q.005-.534.087-.914.088-.381.287-.686.2-.31.54-.633.269-.252.48-.474.216-.228.34-.475.122-.252.122-.568 0-.357-.117-.598a.77.77 0 0 0-.334-.363 1.05 1.05 0 0 0-.545-.129q-.27 0-.51.111a.9.9 0 0 0-.386.346q-.146.228-.158.598H18.95q.018-.768.363-1.278.345-.515.932-.767.585-.258 1.312-.258.804 0 1.372.27a1.9 1.9 0 0 1 .873.773q.304.51.304 1.23 0 .516-.199.926-.2.405-.527.756-.329.351-.71.71-.333.297-.45.638-.119.34-.123.785M20.55 21.21q0-.352.234-.586.24-.234.645-.234.404 0 .638.234.24.235.24.586 0 .34-.24.574-.234.235-.639.235-.404 0-.644-.235a.78.78 0 0 1-.234-.574",fill:"#fff"}),React.createElement("path",{d:"M16.95 32v-7h1.6v7c0 .11.09.2.2.2h15.5a.2.2 0 0 0 .2-.2V20a.2.2 0 0 0-.2-.2H26.5v-1.6h7.75a1.8 1.8 0 0 1 1.8 1.8v12a1.8 1.8 0 0 1-1.8 1.8h-15.5a1.8 1.8 0 0 1-1.8-1.8",fill:"#fff"}),React.createElement("path",{d:"M26.75 26.75a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5zm-3.5 2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5zm7.847-1.862h-1.4q.005-.534.087-.914.088-.381.287-.686.2-.31.54-.633.269-.252.48-.474.216-.228.34-.475.122-.252.122-.568 0-.358-.117-.598a.77.77 0 0 0-.334-.363 1.05 1.05 0 0 0-.545-.129q-.27 0-.51.111a.9.9 0 0 0-.386.346q-.146.229-.158.598H27.95q.018-.768.363-1.278.345-.515.932-.767.585-.258 1.312-.258.804 0 1.372.27a1.9 1.9 0 0 1 .873.773q.304.51.304 1.23 0 .516-.199.926-.2.405-.527.756-.329.351-.71.71-.333.297-.45.638-.119.34-.123.785M29.55 29.21q0-.352.234-.586.24-.234.645-.234.404 0 .638.234.24.235.24.586 0 .34-.24.574-.234.235-.639.235-.404 0-.644-.235a.78.78 0 0 1-.234-.574",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"MultipleUserFAQFormsIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#374691"}),React.createElement("stop",{offset:1,stopColor:"#2160df"}))))},label:(0,l.__)("Multiple User FAQ Forms","easy-accordion-free"),desc:(0,l.__)("Allow users to submit FAQs from the frontend, helping collect user-generated content efficiently.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:13,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#SpamProtectionreCAPTCHAIcona)"}),React.createElement("path",{d:"M21.582 36.36c.276.053.56.053.837 0l.146-.033.144-.043.564-.195c5.729-2.066 8.683-5.45 10.144-9.243 1.48-3.844 1.39-8.035 1.323-11.407v-.026a28 28 0 0 1-.028-.888c-.026-1.656-1.375-2.947-3.01-3.035-3.473-.186-6.13-1.281-8.379-3.382l-.01-.008-.01-.01a1.975 1.975 0 0 0-2.605 0l-.01.01-.01.008c-2.109 1.97-4.576 3.055-7.737 3.336l-.642.046c-1.634.088-2.985 1.378-3.01 3.034l-.027.89-.001.012v.012c-.067 3.356-.165 7.547 1.31 11.394 1.504 3.922 4.604 7.41 10.722 9.453q.134.045.269.07v.002zm.339-1.767q-.03-.006-.057-.016c-5.635-1.883-8.31-4.997-9.61-8.39-1.33-3.465-1.261-7.298-1.193-10.712q.011-.23.018-.454l.01-.468.009-.12c.07-.592.586-1.108 1.299-1.146 3.841-.206 6.906-1.44 9.492-3.846a.175.175 0 0 1 .227.002c2.585 2.406 5.65 3.639 9.49 3.844.76.04 1.297.624 1.307 1.266l.011.467q.006.225.018.455c.067 3.428.129 7.262-1.204 10.723-1.304 3.389-3.98 6.497-9.6 8.38a.43.43 0 0 1-.216.015",fill:"#fff"}),React.createElement("path",{d:"M21.504 14.284a7.7 7.7 0 0 1 5.207 2.023 1 1 0 0 1 .03 1.445l-1.56 1.561a1 1 0 0 1-1.365.047 3.5 3.5 0 0 0-2.312-.87c-.969 0-1.846.393-2.481 1.028l-.001.001a3.5 3.5 0 0 0-.692.984 1 1 0 0 1 .437 1.641l-.111.102-2.89 2.268a1 1 0 0 1-1.547-.415l-1.368-3.409a1 1 0 0 1 1.188-1.34l.197.053a7.7 7.7 0 0 1 1.811-2.858 7.7 7.7 0 0 1 5.457-2.261m0 1.4a6.3 6.3 0 0 0-4.466 1.85 6.3 6.3 0 0 0-1.618 2.762.85.85 0 0 1-.975.609l.875 2.178 1.869-1.467a.85.85 0 0 1-.404-.979 4.9 4.9 0 0 1 1.247-2.108l.17-.162a4.9 4.9 0 0 1 3.302-1.277 4.9 4.9 0 0 1 2.94.979l1.002-1.002a6.3 6.3 0 0 0-3.942-1.383m5.786 3.732a1.002 1.002 0 0 1 1.447.485l1.368 3.408a1.001 1.001 0 0 1-1.188 1.341l-.2-.054q-.06.174-.129.343a.7.7 0 0 1-1.294-.534q.14-.342.241-.702a.85.85 0 0 1 .975-.608l-.875-2.18-1.869 1.468a.85.85 0 0 1 .404.98 4.9 4.9 0 0 1-1.037 1.886l-.21.222a4.9 4.9 0 0 1-3.471 1.439 4.9 4.9 0 0 1-2.94-.98l-1.003 1.002a6.3 6.3 0 0 0 3.943 1.384 6.3 6.3 0 0 0 4.75-2.153.7.7 0 1 1 1.052.923q-.167.19-.346.37a7.7 7.7 0 0 1-5.456 2.26 7.7 7.7 0 0 1-5.208-2.023 1 1 0 0 1-.03-1.445l1.56-1.56a1 1 0 0 1 1.288-.11l.078.061.24.194a3.5 3.5 0 0 0 2.072.677c.969 0 1.846-.392 2.481-1.028h.001c.285-.285.518-.619.691-.985a1 1 0 0 1-.325-1.742l2.89-2.269z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"SpamProtectionreCAPTCHAIcona",x1:44,y1:0,x2:0,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#1b39aa"}),React.createElement("stop",{offset:1,stopColor:"#5490f7"}))))},label:(0,l.__)("Spam Protection (reCAPTCHA)","easy-accordion-free"),desc:(0,l.__)("Protect forms from spam submissions using Google reCAPTCHA, ensuring secure and reliable data collection.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:14,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#FAQContentEqualHeightIcona)"}),React.createElement("path",{d:"M34.6 11.982a.28.28 0 0 0-.282-.281H9.682a.28.28 0 0 0-.282.281v20.036c0 .156.126.282.282.282h24.636a.28.28 0 0 0 .282-.282zm1.8 20.036c0 1.15-.932 2.082-2.082 2.082H9.682A2.08 2.08 0 0 1 7.6 32.018V11.982c0-1.15.932-2.082 2.082-2.082h24.636c1.15 0 2.082.933 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M29.572 13.01a1.18 1.18 0 0 1 1.49-.008l.09.08.765.76a.591.591 0 0 1-.833.84l-.762-.759-.754.765a.591.591 0 1 1-.842-.83l.757-.767zm-7.484-.006a.8.8 0 1 1 0 1.6H11.5a.8.8 0 1 1 0-1.6zm3.962 6.046a.75.75 0 0 1 0 1.5H11.5a.75.75 0 1 1 0-1.5zm0 2.6a.75.75 0 0 1 0 1.5H11.5a.75.75 0 0 1 0-1.5zm0 2.6a.75.75 0 0 1 0 1.5H11.5a.75.75 0 0 1 0-1.5zm-2 2.6a.75.75 0 0 1 0 1.5H11.5a.75.75 0 0 1 0-1.5zm-3 2.6a.75.75 0 0 1 0 1.5H11.5a.75.75 0 1 1 0-1.5zM34.5 16.032a.769.769 0 0 1 0 1.537h-26a.769.769 0 0 1 0-1.537zM30.4 29.8v-10a.6.6 0 1 1 1.2 0v10a.6.6 0 1 1-1.2 0",fill:"#fff"}),React.createElement("path",{d:"M30.037 19.602a1.35 1.35 0 0 1 1.911-.009l.975.97a.6.6 0 1 1-.846.85l-.974-.969a.147.147 0 0 0-.21.001l-.965.979a.6.6 0 0 1-.856-.842zm-.957 8.971a.6.6 0 0 1 .848.007l.965.978c.058.059.15.06.21.001l.974-.969a.6.6 0 1 1 .846.85l-.975.97a1.35 1.35 0 0 1-1.91-.01l-.966-.979a.6.6 0 0 1 .007-.848",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"FAQContentEqualHeightIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#023c71"}),React.createElement("stop",{offset:1,stopColor:"#17cfef"}))))},label:(0,l.__)("FAQ Content Equal Height","easy-accordion-free"),desc:(0,l.__)("Maintain consistent height across accordion items for a balanced layout and improved visual presentation.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:15,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ContentinCollapsedStateIcona)"}),React.createElement("path",{d:"M24.1 11.182a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v21.636c0 .156.126.282.282.282h13.636a.28.28 0 0 0 .282-.282zm1.8 21.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 32.818V11.182c0-1.15.932-2.082 2.082-2.082h13.636c1.15 0 2.082.932 2.082 2.082zm8.2-21.636a.28.28 0 0 0-.282-.282h-3.636a.28.28 0 0 0-.282.282v21.636c0 .156.126.282.282.282h3.636a.28.28 0 0 0 .282-.282zm1.8 21.636c0 1.15-.932 2.082-2.082 2.082h-3.636a2.08 2.08 0 0 1-2.082-2.082V11.182c0-1.15.932-2.082 2.082-2.082h3.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M31.2 30.59V16a.8.8 0 1 1 1.6 0v14.59a.8.8 0 1 1-1.6 0m-9.7-6.49a.9.9 0 0 1 0 1.8h-9a.9.9 0 0 1 0-1.8zm0 2.9a.8.8 0 1 1 0 1.6h-9a.8.8 0 1 1 0-1.6zM19 29.8a.8.8 0 1 1 0 1.6h-4a.8.8 0 1 1 0-1.6z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ContentinCollapsedStateIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},label:(0,l.__)("Content in Collapsed State","easy-accordion-free"),desc:(0,l.__)("Show partial content in collapsed items to encourage interaction while maintaining a clean and compact layout.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:16,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ContentinCollapsedStateIcona)"}),React.createElement("path",{d:"M34.308 22c0-6.798-5.51-12.308-12.308-12.308S9.692 15.202 9.692 22 15.202 34.308 22 34.308 34.308 28.798 34.308 22M36 22c0 7.732-6.268 14-14 14S8 29.732 8 22 14.268 8 22 8s14 6.268 14 14",fill:"#fff"}),React.createElement("path",{d:"M30.722 26.9C29.475 31.972 26.204 36 22 36s-7.475-4.028-8.722-9.1l1.642-.404c1.185 4.817 4.072 7.812 7.08 7.812s5.896-2.995 7.08-7.812zM22 8c4.204 0 7.475 4.028 8.722 9.1l-1.642.404c-1.184-4.817-4.072-7.812-7.08-7.812s-5.895 2.995-7.08 7.812l-1.642-.404C14.525 12.028 17.796 8 22 8",fill:"#fff"}),React.createElement("path",{d:"M34.214 25.852a.846.846 0 0 1 0 1.692H9.786a.846.846 0 0 1 0-1.692zm0-9.396a.846.846 0 0 1 0 1.692H9.786a.846.846 0 0 1 0-1.692zm-9.395 4.698a.846.846 0 0 1 0 1.692H12.604a.846.846 0 0 1 0-1.692zm4.602-1.734a1.34 1.34 0 0 1 1.86-.008l.869.834a.658.658 0 0 1-.911.949l-.868-.835-.004-.002-.01-.002-.011.002-.004.002-.86.843a.658.658 0 0 1-.92-.94zm-.052 5.162a1.34 1.34 0 0 0 1.86.01l.869-.834a.658.658 0 0 0-.911-.95l-.868.836-.004.002-.011.001-.01-.002-.004-.001-.86-.843a.658.658 0 0 0-.92.939z",fill:"#fff"}),React.createElement("path",{d:"M21.154 17.302V8.846a.846.846 0 0 1 1.692 0v8.456a.846.846 0 0 1-1.692 0m0 17.852v-8.456a.846.846 0 0 1 1.692 0v8.456a.846.846 0 0 1-1.692 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ContentinCollapsedStateIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3b2667"}),React.createElement("stop",{offset:1,stopColor:"#bc78ec"}))))},label:(0,l.__)("Global Toggle All Button","easy-accordion-free"),desc:(0,l.__)("Enable users to expand or collapse all accordion items at once for faster navigation and better usability.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:17,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ExtensiveCustomIconLibraryIcona)"}),React.createElement("path",{d:"M13.144 8.804a1.375 1.375 0 0 1 2.252 0l.108.18 1.223 2.427 2.57.466c1.135.206 1.486 1.576.765 2.352l-1.84 1.98.378 2.744c.142 1.038-.923 2.006-2 1.452l-2.33-1.2-2.33 1.2c-1.077.554-2.141-.414-1.999-1.452l.376-2.743-1.839-1.98c-.72-.777-.37-2.148.765-2.353l2.57-.466 1.224-2.428zm.186 3.597a1.39 1.39 0 0 1-.99.744l-2.067.373 1.488 1.601c.293.316.421.744.364 1.161l-.297 2.157 1.817-.933.15-.068c.307-.113.644-.113.951 0l.15.068 1.815.933-.296-2.157a1.42 1.42 0 0 1 .364-1.161l1.487-1.6-2.065-.374a1.39 1.39 0 0 1-.99-.744l-.94-1.866zm5.31 17.212a4.37 4.37 0 1 0-8.74 0 4.37 4.37 0 0 0 8.74 0m1.8 0a6.17 6.17 0 1 1-12.34 0 6.17 6.17 0 0 1 12.34 0M34.1 10.592a.27.27 0 0 0-.271-.27h-8.433a.27.27 0 0 0-.27.27v8.432c0 .15.12.272.27.272h8.433c.15 0 .271-.122.271-.272zm1.8 8.432a2.07 2.07 0 0 1-2.071 2.072h-8.433a2.07 2.07 0 0 1-2.071-2.072v-8.432c0-1.144.928-2.071 2.071-2.072h8.433c1.143 0 2.07.928 2.071 2.072zm-1.8 8.815c0 1.616-1.093 3.073-2.387 4.207a14 14 0 0 1-2.101 1.505 14 14 0 0 1-2.1-1.505c-1.293-1.134-2.386-2.59-2.386-4.207a2.058 2.058 0 0 1 3.749-1.175l.067.086a.9.9 0 0 0 1.41-.086 2.059 2.059 0 0 1 3.749 1.175m1.8 0a3.858 3.858 0 0 0-6.287-2.995 3.859 3.859 0 0 0-6.288 2.995c0 2.42 1.6 4.333 3 5.56a15.6 15.6 0 0 0 2.808 1.945l.053.028.015.008.005.002h.002l.265-.526-.264.528a.9.9 0 0 0 .807 0l-.403-.805.404.804.002-.001.005-.002.016-.008.052-.028q.069-.036.189-.102A15.6 15.6 0 0 0 32.9 33.4c1.4-1.227 2.999-3.14 2.999-5.56",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ExtensiveCustomIconLibraryIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},label:(0,l.__)("Extensive Custom Icon Library","easy-accordion-free"),desc:(0,l.__)("Choose from a wide range of icons to enhance design flexibility and improve visual communication within content.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:18,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ImageAccordionLightboxIcona)"}),React.createElement("path",{d:"M20.27 31.09c6.1 0 11.044-4.945 11.044-11.045S26.37 9 20.27 9 9.224 13.945 9.224 20.045 14.17 31.09 20.27 31.09ZM34.776 35l-6.482-6.482M15.488 19.99h9.579m-4.79 4.79V15.2",stroke:"#fff",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ImageAccordionLightboxIcona",x1:1.833,y1:0,x2:42.167,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ffbd29"}),React.createElement("stop",{offset:1,stopColor:"#ff2db6"}))))},label:(0,l.__)("Image Accordion Lightbox","easy-accordion-free"),desc:(0,l.__)("Open images in a popup view for distraction-free browsing and improved user focus on visual content.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:19,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#OneClickFAQCloseButtonIcona)"}),React.createElement("path",{d:"M34.1 10.432a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v13.636c0 .156.126.281.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 13.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 24.068V10.432c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082zm-1.8 5.864a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v3.636c0 .156.126.282.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 3.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 33.568v-3.636c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.452 20.05a.65.65 0 0 0-.652.652v1.826c0 .36.292.652.652.652h4.696c.36 0 .652-.291.652-.652v-1.826a.65.65 0 0 0-.652-.652zm3.652.913a.652.652 0 0 1 0 1.304h-2.608a.652.652 0 0 1 0-1.304z",fill:"#fff"}),React.createElement("path",{d:"M30.072 11.459a1.18 1.18 0 0 1 1.49-.008l.09.081.765.76a.591.591 0 0 1-.833.839l-.762-.758-.754.765a.591.591 0 1 1-.842-.83l.757-.767zm-7.484-.107a.9.9 0 0 1 0 1.801H12a.9.9 0 0 1 0-1.8zm7.484 21.192c.43.357 1.056.36 1.49.008l.09-.081.765-.76a.591.591 0 0 0-.833-.839l-.762.758-.754-.764a.591.591 0 1 0-.842.829l.757.767zm-7.484-1.692a.9.9 0 0 1 0 1.801H12a.9.9 0 0 1 0-1.8zM31.55 17.3a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zm-7 2.7a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM35 14.481a.769.769 0 0 1 0 1.538H9a.769.769 0 0 1 0-1.538z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"OneClickFAQCloseButtonIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ff96f9"}),React.createElement("stop",{offset:1,stopColor:"#c32bac"}))))},label:(0,l.__)("One-Click FAQ Close Button","easy-accordion-free"),desc:(0,l.__)("Allow users to quickly close open accordion items, improving browsing control and enhancing overall user experience.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:20,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ContentAnimationsIcona)"}),React.createElement("path",{d:"M35.843 9.457a1.155 1.155 0 0 1 0 2.31H18.66a1.155 1.155 0 0 1 0-2.31zm-4.909 10.666a1.534 1.534 0 0 1 0 3.069H13.752a1.534 1.534 0 0 1 0-3.069zm-4.91 10.739a1.84 1.84 0 1 1 0 3.682H8.843a1.84 1.84 0 1 1 0-3.682z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ContentAnimationsIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},label:(0,l.__)("25+ Content Animations","easy-accordion-free"),desc:(0,l.__)("Apply smooth animations to accordion content, creating dynamic interactions and improving user engagement.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:21,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ImageHoverEffectsIcona)"}),React.createElement("path",{d:"M34.25 12.278c0-.59-.48-1.069-1.07-1.069H10.82c-.59 0-1.07.478-1.07 1.069v19.444c0 .59.48 1.069 1.07 1.069h22.36c.59 0 1.07-.478 1.07-1.07zM36 31.722a2.82 2.82 0 0 1-2.82 2.82H10.82A2.82 2.82 0 0 1 8 31.722V12.278a2.82 2.82 0 0 1 2.82-2.82h22.36a2.82 2.82 0 0 1 2.82 2.82z",fill:"#fff"}),React.createElement("path",{d:"M24.93 23.428a1.166 1.166 0 0 1 1.503.011l9.26 7.917-1.137 1.33-8.887-7.599-5.785 4.802c-.338.28-.804.346-1.207.172l-3.991-1.719-5.206 4.984-1.21-1.264 5.485-5.25.134-.111c.282-.2.638-.263.97-.175l.165.057 4.017 1.73zm-12.885-5.771a4.348 4.348 0 0 1 7.7-2.767.718.718 0 1 1-1.108.915 2.91 2.91 0 1 0 0 3.703.72.72 0 0 1 1.108.915 4.347 4.347 0 0 1-7.7-2.767",fill:"#fff"}),React.createElement("path",{d:"M17.653 17.657a4.348 4.348 0 0 1 7.7-2.767.718.718 0 1 1-1.108.915 2.91 2.91 0 1 0 0 3.703.72.72 0 0 1 1.108.915 4.347 4.347 0 0 1-7.7-2.767",fill:"#fff"}),React.createElement("path",{d:"M30.518 17.657a2.91 2.91 0 1 0-5.82 0 2.91 2.91 0 0 0 5.82 0m1.436 0a4.347 4.347 0 1 1-8.693 0 4.347 4.347 0 0 1 8.693 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ImageHoverEffectsIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},label:(0,l.__)("Image Hover Effects","easy-accordion-free"),desc:(0,l.__)("Add interactive hover animations to images, increasing engagement and enhancing the visual experience.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:22,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#ExpandedAreaWidthControlIcona)"}),React.createElement("path",{d:"M34.1 10.682a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v3.636c0 .156.126.282.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 3.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 14.318v-3.636c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.072 13.264c.43.357 1.056.36 1.49.008l.09-.081.765-.76a.591.591 0 0 0-.833-.839l-.762.758-.754-.764a.591.591 0 1 0-.842.829l.757.767zm-7.484-1.591a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM34.1 20.682a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v3.636c0 .156.126.281.282.282h23.636a.28.28 0 0 0 .282-.282zm1.8 3.636c0 1.15-.932 2.082-2.082 2.082H10.182A2.08 2.08 0 0 1 8.1 24.318v-3.636c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M30.072 23.264c.43.357 1.056.36 1.49.008l.09-.081.765-.76a.591.591 0 0 0-.833-.839l-.762.758-.754-.764a.591.591 0 1 0-.842.829l.757.767zm-7.484-1.591a.8.8 0 1 1 0 1.6H12a.8.8 0 1 1 0-1.6zM23.1 32a1.6 1.6 0 1 0-3.199 0 1.6 1.6 0 0 0 3.199 0m1.8 0a3.4 3.4 0 1 1-6.8 0 3.4 3.4 0 0 1 6.8 0",fill:"#fff"}),React.createElement("path",{d:"M18.5 31.1a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1 0-1.8zm16.5 0a.9.9 0 0 1 0 1.8H24.5a.9.9 0 0 1 0-1.8z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ExpandedAreaWidthControlIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#79f1a4"}),React.createElement("stop",{offset:1,stopColor:"#0e5cad"}))))},label:(0,l.__)("Expanded Area Width Control","easy-accordion-free"),desc:(0,l.__)("Control the width of expanded content areas to improve readability and fit different layout requirements.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:23,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ImageFlipFocalPointIcona)"}),React.createElement("path",{d:"M34.6 12a1.1 1.1 0 0 0-1.1-1.1h-23A1.1 1.1 0 0 0 9.4 12v20a1.1 1.1 0 0 0 1.1 1.1h23a1.1 1.1 0 0 0 1.1-1.1zm1.8 20a2.9 2.9 0 0 1-2.9 2.9h-23A2.9 2.9 0 0 1 7.6 32V12a2.9 2.9 0 0 1 2.9-2.9h23a2.9 2.9 0 0 1 2.9 2.9z",fill:"#fff"}),React.createElement("path",{d:"M25.014 23.469a1.2 1.2 0 0 1 1.546.011l9.525 8.144-1.17 1.368-9.142-7.816-5.95 4.938a1.2 1.2 0 0 1-1.241.178l-4.105-1.769-5.355 5.127-1.244-1.3 5.642-5.4.137-.115a1.2 1.2 0 0 1 .998-.18l.17.059 4.131 1.78zM23 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0",fill:"#fff"}),React.createElement("path",{d:"M24.028 18a2.028 2.028 0 1 0-4.058 0 2.028 2.028 0 0 0 4.058 0m1.5 0a3.529 3.529 0 1 1-7.058-.001 3.529 3.529 0 0 1 7.058 0",fill:"#fff"}),React.createElement("path",{d:"M21.25 23v-2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-1.5 0m0-8v-2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-1.5 0M19 17.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zm8 0a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ImageFlipFocalPointIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#f761a1"}),React.createElement("stop",{offset:1,stopColor:"#8c1bab"}))))},label:(0,l.__)("Image Flip & Focal Point","easy-accordion-free"),desc:(0,l.__)("Flip images and adjust focal points to improve visual storytelling and highlight important content areas effectively.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:24,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#CustomReadMoreButtonIcona)"}),React.createElement("path",{d:"M26.1 18a4.1 4.1 0 1 0-8.2 0 4.1 4.1 0 0 0 8.2 0m1.8 0a5.9 5.9 0 1 1-11.8 0 5.9 5.9 0 0 1 11.8 0",fill:"#fff"}),React.createElement("path",{d:"M24 18.8a.8.8 0 1 0 0-1.6h-4a.8.8 0 1 0 0 1.6z",fill:"#fff"}),React.createElement("path",{d:"M22.8 16a.8.8 0 1 0-1.6 0v4a.8.8 0 1 0 1.6 0z",fill:"#fff"}),React.createElement("path",{d:"M8.1 29v-6a2.9 2.9 0 0 1 2.9-2.9h7v1.8h-7A1.1 1.1 0 0 0 9.9 23v6a1.1 1.1 0 0 0 1.1 1.1h22a1.1 1.1 0 0 0 1.1-1.1v-6a1.1 1.1 0 0 0-1.1-1.1h-7v-1.8h7a2.9 2.9 0 0 1 2.9 2.9v6a2.9 2.9 0 0 1-2.9 2.9H11A2.9 2.9 0 0 1 8.1 29",fill:"#fff"}),React.createElement("path",{d:"M30 25.1a.9.9 0 0 1 0 1.8H14a.9.9 0 0 1 0-1.8z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"CustomReadMoreButtonIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},label:(0,l.__)("Custom Read More Button","easy-accordion-free"),desc:(0,l.__)("Add expandable content sections with customizable buttons, helping users explore more without cluttering the layout.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:25,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#PostProductMetaDisplayIcona)"}),React.createElement("path",{d:"M35.557 11.996a.79.79 0 0 1 0 1.58h-11.53a.79.79 0 1 1 0-1.58zm-9.951-2.738a.685.685 0 0 1 0 1.37h-1.58a.685.685 0 0 1 0-1.37zm4.212 0a.685.685 0 0 1 0 1.37H28.24a.685.685 0 0 1 0-1.37zm3.212 5.582a.79.79 0 0 1 0 1.579h-9.003a.79.79 0 1 1 0-1.58zm-4.212 2.842a.79.79 0 1 1 0 1.58h-4.791a.79.79 0 1 1 0-1.58zM8.863 18.789h11.373V9.52H8.863zm12.636.185c0 .595-.482 1.077-1.077 1.077H8.678A1.08 1.08 0 0 1 7.6 18.974V9.336c0-.595.482-1.077 1.078-1.078h11.744c.595 0 1.077.483 1.077 1.078z",fill:"#fff"}),React.createElement("path",{d:"M16.464 13.638a.77.77 0 0 1 .753.052l.106.085 3.982 3.812-.874.913-3.683-3.527-3.122 2.243a.77.77 0 0 1-.75.081l-1.802-.776-2.406 2.303-.874-.914 2.644-2.53.088-.072a.77.77 0 0 1 .637-.115l.108.037 1.847.794 3.23-2.318zm-3.108-1.659a.983.983 0 1 1-1.965 0 .983.983 0 0 1 1.965 0M35.61 27.844a.79.79 0 1 1 0 1.58H24.027a.79.79 0 1 1 0-1.58zm-11.32-1.519-.451.237a.158.158 0 0 1-.23-.166l.087-.503a.34.34 0 0 0-.099-.303l-.365-.356a.158.158 0 0 1 .088-.27l.504-.072a.34.34 0 0 0 .258-.188l.226-.457a.158.158 0 0 1 .283 0l.226.457c.05.101.146.171.258.188l.505.073c.129.019.18.178.087.269l-.365.356a.34.34 0 0 0-.099.303l.086.503a.158.158 0 0 1-.228.166l-.452-.237a.34.34 0 0 0-.319 0m3.852 0-.452.237a.158.158 0 0 1-.229-.166l.086-.503a.34.34 0 0 0-.098-.303l-.365-.356a.158.158 0 0 1 .087-.27l.505-.072a.34.34 0 0 0 .258-.188l.226-.457a.158.158 0 0 1 .282 0l.226.457c.05.101.147.171.258.188l.505.073c.13.019.18.178.087.269l-.365.356a.34.34 0 0 0-.098.303l.086.503a.158.158 0 0 1-.229.166l-.451-.237a.34.34 0 0 0-.32 0m3.852 0-.452.237a.158.158 0 0 1-.228-.166l.086-.503a.34.34 0 0 0-.099-.303l-.365-.356a.158.158 0 0 1 .087-.27l.505-.072a.34.34 0 0 0 .258-.188l.226-.457a.158.158 0 0 1 .283 0l.226.457c.05.101.146.171.258.188l.504.073c.13.019.181.178.088.269l-.365.356a.34.34 0 0 0-.099.303l.086.503a.158.158 0 0 1-.229.166l-.451-.237a.34.34 0 0 0-.32 0m-1.647 4.31a.685.685 0 0 1 0 1.37h-6.318a.685.685 0 0 1 0-1.37zm0 2.685a.685.685 0 0 1 0 1.37h-6.318a.685.685 0 0 1 0-1.37zM16.24 28.705a.547.547 0 0 1 1.092-.055l.111-.063-.313-1.204a1.06 1.06 0 0 0-.57-.691l-.233-.11c-.113.214-.26.424-.444.604-.323.32-.776.572-1.334.572-.874 0-1.47-.59-1.78-1.177l-.229.11a1.06 1.06 0 0 0-.568.688l-.32 1.207.112.065a.547.547 0 0 1 1.093.054v3.4a.15.15 0 0 0 .102.14 5.15 5.15 0 0 0 3.177 0h.003l.04-.02a.14.14 0 0 0 .061-.12zm-1.019-2.334c-.186.033-.46.053-.677.053a4 4 0 0 1-.64-.053c.167.174.287.32.64.348.284 0 .51-.184.677-.348m2.118 5.734c0 .545-.35 1.02-.864 1.187l-.001-.002a6.23 6.23 0 0 1-3.853 0 1.25 1.25 0 0 1-.862-1.185v-2.189l-.858-.494-.007-.005a.8.8 0 0 1-.37-.862l.005-.019.38-1.437a2.16 2.16 0 0 1 1.157-1.4l1.04-.496.01-.005.01-.004a.8.8 0 0 1 .318-.068c.007 0 .074-.002.163.018h.032l.09.034q.417.149.816.148c.268 0 .481-.04.735-.12l.015-.003.013-.004.005-.002.016-.007h.002l.024-.01.012-.003.032-.017.02-.004.03-.011h.028a.8.8 0 0 1 .353.003l.137.046.009.004.01.005 1.042.495c.58.275 1.004.792 1.165 1.406l.238.913.04-.023v.173l.098.376a.79.79 0 0 1-.375.89l-.822.47v-.005l-.033.018z",fill:"#fff"}),React.createElement("path",{d:"M8.863 34.479h11.373v-10.32H8.863zm12.636.03c0 .68-.552 1.233-1.233 1.233H8.833A1.233 1.233 0 0 1 7.6 34.509v-10.38c0-.682.552-1.234 1.233-1.234h11.433c.681 0 1.233.552 1.233 1.233z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"PostProductMetaDisplayIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#374691"}),React.createElement("stop",{offset:1,stopColor:"#2160df"}))))},label:(0,l.__)("Post & Product Meta Display","easy-accordion-free"),desc:(0,l.__)("Display additional post or product metadata within accordion items to provide more context and useful information.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:26,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#PerItemCustomizationControlsIcona)"}),React.createElement("path",{d:"M34.1 25.818V10.182a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v15.636c0 .156.126.281.282.282H13v1.8h-2.818A2.08 2.08 0 0 1 8.1 25.818V10.182c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082v15.636c0 1.15-.932 2.082-2.082 2.082H31v-1.8h2.818a.28.28 0 0 0 .282-.282",fill:"#fff"}),React.createElement("path",{d:"M30.1 20.182a.28.28 0 0 0-.282-.282H14.182a.28.28 0 0 0-.282.282v13.636c0 .156.126.282.282.282h15.636a.28.28 0 0 0 .282-.282zm1.8 13.636c0 1.15-.932 2.082-2.082 2.082H14.182a2.08 2.08 0 0 1-2.082-2.082V20.182c0-1.15.932-2.082 2.082-2.082h15.636c1.15 0 2.082.932 2.082 2.082zm-1.828-22.609a1.18 1.18 0 0 1 1.49-.008l.09.081.765.76a.591.591 0 0 1-.833.839l-.762-.758-.754.765a.591.591 0 1 1-.842-.83l.757-.767zm-7.484-.107a.9.9 0 0 1 0 1.801H12a.9.9 0 0 1 0-1.8zM35 14.231a.769.769 0 0 1 0 1.538H9a.769.769 0 0 1 0-1.538z",fill:"#fff"}),React.createElement("path",{d:"M28 23.25a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1 0-1.5z",fill:"#fff"}),React.createElement("path",{d:"M21.25 24a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0m1.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0",fill:"#fff"}),React.createElement("path",{d:"M19 23.25a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5zm-3 6a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5z",fill:"#fff"}),React.createElement("path",{d:"M22.75 30a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m-1.5 0a2.25 2.25 0 1 0 4.5 0 2.25 2.25 0 0 0-4.5 0",fill:"#fff"}),React.createElement("path",{d:"M25 29.25a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"PerItemCustomizationControlsIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},label:(0,l.__)("Per-Item Customization Controls","easy-accordion-free"),desc:(0,l.__)("Customize each accordion item individually to achieve precise control over content, styling, and behavior.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:27,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#AJAXPaginationsIcona)"}),React.createElement("path",{d:"M35.15 18.388c.3-.3.786-.3 1.086 0l2.346 2.345c.699.7.699 1.835 0 2.534l-2.346 2.346a.768.768 0 0 1-1.085-1.086l2.345-2.346c.1-.1.1-.262 0-.362l-2.346-2.346c-.3-.3-.3-.785 0-1.085m-26.3 7.225c-.3.3-.786.3-1.086 0l-2.346-2.346a1.793 1.793 0 0 1 0-2.534l2.346-2.345a.768.768 0 0 1 1.085 1.085L6.504 21.82c-.1.1-.1.263 0 .363l2.345 2.345c.3.3.3.786 0 1.085m4.733-6.683v6.14h-1.115v-4.657l-1.476.484v-1.08l2.464-.887zm16.809 2.593h.612q.323 0 .533-.111a.74.74 0 0 0 .315-.312 1 1 0 0 0 .107-.463 1 1 0 0 0-.094-.447.65.65 0 0 0-.287-.296 1 1 0 0 0-.484-.106 1 1 0 0 0-.44.094.8.8 0 0 0-.315.27.73.73 0 0 0-.115.415h-1.086q0-.485.254-.849a1.75 1.75 0 0 1 .697-.578q.44-.21.98-.21.59 0 1.034.197.447.194.693.57.25.378.25.936 0 .266-.127.533a1.5 1.5 0 0 1-.365.475q-.238.21-.587.34a2.3 2.3 0 0 1-.791.128h-.784zm0 .836v-.578h.784q.504 0 .873.119.374.114.615.328.242.21.357.488.12.279.12.599 0 .417-.157.746-.156.324-.438.55-.279.225-.657.344a2.8 2.8 0 0 1-.816.115q-.381 0-.742-.103a2.1 2.1 0 0 1-.644-.315 1.56 1.56 0 0 1-.455-.534 1.6 1.6 0 0 1-.168-.75h1.086q0 .246.12.439a.86.86 0 0 0 .336.303q.217.107.488.107.3 0 .512-.107a.8.8 0 0 0 .332-.311 1 1 0 0 0 .115-.488q0-.338-.127-.546a.75.75 0 0 0-.365-.308 1.4 1.4 0 0 0-.557-.098z",fill:"#fff"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.593 18.47c0-.848.688-1.535 1.535-1.535h7.06c.848 0 1.535.687 1.535 1.535v7.06c0 .848-.687 1.535-1.534 1.535h-7.06a1.535 1.535 0 0 1-1.536-1.535zm7.277 5.59v1.01h-4.18v-.857l1.953-2.07q.275-.316.437-.556.166-.242.24-.437a1.08 1.08 0 0 0-.012-.823.63.63 0 0 0-.245-.287.74.74 0 0 0-.395-.1.7.7 0 0 0-.428.13.8.8 0 0 0-.274.357q-.096.225-.096.511h-1.305a1.95 1.95 0 0 1 1.01-1.733q.478-.275 1.118-.275.657 0 1.102.208.444.208.673.595.23.386.229.93 0 .309-.1.595a2.5 2.5 0 0 1-.279.57 5 5 0 0 1-.44.577q-.258.292-.582.615l-.915 1.04z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AJAXPaginationsIcona",x1:1.833,y1:0,x2:42.167,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ffbd29"}),React.createElement("stop",{offset:1,stopColor:"#ff2db6"}))))},label:(0,l.__)("AJAX Paginations","easy-accordion-free"),desc:(0,l.__)("Load content dynamically without refreshing pages, ensuring smoother browsing and improved performance.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:28,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#InfiniteScrollPaginationIcona)"}),React.createElement("path",{d:"M19.976 10.463a.7.7 0 0 1 .061-.987l1.37-1.21a1.2 1.2 0 0 1 1.587 0l1.37 1.21a.7.7 0 1 1-.928 1.048L22.2 9.434l-1.236 1.09a.7.7 0 0 1-.987-.061m4.047 23.074a.7.7 0 0 1-.061.987l-1.37 1.21a1.2 1.2 0 0 1-1.587 0l-1.37-1.21a.7.7 0 1 1 .928-1.048l1.237 1.09 1.236-1.09a.7.7 0 0 1 .987.061M26.6 18.5a4.6 4.6 0 1 0-9.2 0v7a4.6 4.6 0 1 0 9.2 0zm1.8 7a6.4 6.4 0 0 1-12.8 0v-7a6.4 6.4 0 0 1 12.8 0z",fill:"#fff"}),React.createElement("path",{d:"M15.6 19v-1h1.8v1a1.1 1.1 0 0 0 1.1 1.1h7a1.1 1.1 0 0 0 1.1-1.1v-1h1.8v1a2.9 2.9 0 0 1-2.9 2.9h-7a2.9 2.9 0 0 1-2.9-2.9",fill:"#fff"}),React.createElement("path",{d:"M21.2 18v-2a.8.8 0 1 1 1.6 0v2a.8.8 0 1 1-1.6 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"InfiniteScrollPaginationIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#3662b2"}),React.createElement("stop",{offset:1,stopColor:"#13d2c4"}))))},label:(0,l.__)("Infinite Scroll Pagination","easy-accordion-free"),desc:(0,l.__)("Automatically load additional content as users scroll, creating a seamless and uninterrupted browsing experience.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:29,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#FAQTitleCustomLinkingIcona)"}),React.createElement("path",{d:"M34.1 24.318V11.682a.28.28 0 0 0-.282-.282H10.182a.28.28 0 0 0-.282.282v12.636c0 .156.126.281.282.282H13v1.8h-2.818A2.08 2.08 0 0 1 8.1 24.318V11.682c0-1.15.932-2.082 2.082-2.082h23.636c1.15 0 2.082.932 2.082 2.082v12.636c0 1.15-.932 2.082-2.082 2.082H31v-1.8h2.818a.28.28 0 0 0 .282-.282",fill:"#fff"}),React.createElement("path",{d:"M30.072 12.879a1.18 1.18 0 0 1 1.49-.008l.09.081.765.76a.591.591 0 0 1-.833.839l-.762-.758-.754.764a.591.591 0 1 1-.842-.829l.757-.767zm-7.184-.107a.9.9 0 0 1 0 1.801H12.3a.9.9 0 0 1 0-1.8zm7.912 5.91a.28.28 0 0 0-.282-.282H13.482a.28.28 0 0 0-.282.282v13.636c0 .156.126.282.282.282h17.036a.28.28 0 0 0 .282-.282zm1.8 13.636c0 1.15-.933 2.082-2.082 2.082H13.482a2.08 2.08 0 0 1-2.082-2.082V18.682c0-1.15.932-2.082 2.082-2.082h17.036c1.15 0 2.082.932 2.082 2.082z",fill:"#fff"}),React.createElement("path",{d:"M21.051 21.51a3.45 3.45 0 0 1 4.879 4.878l-.62.62a.817.817 0 0 1-1.156-1.156l.62-.62a1.815 1.815 0 0 0-2.567-2.566l-.62.62a.817.817 0 0 1-1.155-1.156zm-2.481 2.482a.818.818 0 0 1 1.156 1.156l-.62.62a1.815 1.815 0 0 0 2.566 2.566l.62-.62a.817.817 0 0 1 1.156 1.156l-.62.62a3.45 3.45 0 0 1-4.878-4.879z",fill:"#fff"}),React.createElement("path",{d:"M22.913 23.371a.818.818 0 0 1 1.156 1.156l-3.102 3.101a.817.817 0 0 1-1.156-1.155z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"FAQTitleCustomLinkingIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#f761a1"}),React.createElement("stop",{offset:1,stopColor:"#8c1bab"}))))},label:(0,l.__)("FAQ Title Custom Linking","easy-accordion-free"),desc:(0,l.__)("Link accordion titles to external or internal pages, improving navigation and directing users to relevant resources.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:30,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#AJAXFormSubmissionIcona)"}),React.createElement("path",{d:"M28.425 14v-4a.1.1 0 0 0-.1-.1h-19a.1.1 0 0 0-.1.1v24a.1.1 0 0 0 .1.1h19a.1.1 0 0 0 .1-.1v-3.3a.9.9 0 0 1 1.8 0V34a1.9 1.9 0 0 1-1.9 1.9h-19a1.9 1.9 0 0 1-1.9-1.9V10a1.9 1.9 0 0 1 1.9-1.9h19a1.9 1.9 0 0 1 1.9 1.9v4a.9.9 0 0 1-1.8 0",fill:"#fff"}),React.createElement("path",{d:"M12.476 14.15h9.199v-1.2h-9.2zm10.5.35a.95.95 0 0 1-.95.95h-9.901a.95.95 0 0 1-.95-.95v-1.9a.95.95 0 0 1 .95-.95h9.9a.95.95 0 0 1 .95.95zm-10.5 4.65h9.199v-1.2h-9.2zm10.5.35a.95.95 0 0 1-.95.95h-9.901a.95.95 0 0 1-.95-.95v-1.9a.95.95 0 0 1 .95-.95h9.9a.95.95 0 0 1 .95.95zm-10.5 6.15h9.199v-2.7h-9.2zm10.5.35a.95.95 0 0 1-.95.95h-9.901a.95.95 0 0 1-.95-.95v-3.4a.95.95 0 0 1 .95-.95h9.9a.95.95 0 0 1 .95.95zm-10.5 5.15h12.699v-1.7h-12.7zm14 .35a.95.95 0 0 1-.95.95H12.124a.95.95 0 0 1-.95-.95v-2.4a.95.95 0 0 1 .95-.95h13.4a.95.95 0 0 1 .95.95z",fill:"#fff"}),React.createElement("path",{d:"M31.58 15.366c.832-1.007 2.298-1.1 3.236-.177l1.042 1.026c.895.881.957 2.35.16 3.313l-6.607 7.999a3.7 3.7 0 0 1-1.382 1.042l-3.77 1.612a.85.85 0 0 1-1.158-.99l1.082-4.259a4 4 0 0 1 .79-1.568zm-5.385 9.2a2.3 2.3 0 0 0-.286.535l-.079.25-.658 2.59 2.188-.935.203-.102q.299-.174.538-.46zm1.08-1.321 1.913 1.883 3.334-4.038-1.926-1.866zm6.347-6.845c-.214-.21-.523-.203-.731.048l-1.208 1.462 1.925 1.866 1.1-1.331c.243-.294.214-.766-.043-1.019z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AJAXFormSubmissionIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},label:(0,l.__)("AJAX Form Submission","easy-accordion-free"),desc:(0,l.__)("Submit forms instantly without page reload, improving user experience and increasing completion rates.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0},{id:31,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#EmailNotificationAndApprovalIcona)"}),React.createElement("path",{d:"M35.161 29.797a4.508 4.508 0 1 0-9.016 0 4.508 4.508 0 0 0 9.016 0m1.8 0a6.308 6.308 0 1 1-12.616 0 6.308 6.308 0 0 1 12.616 0",fill:"#fff"}),React.createElement("path",{d:"M32.3 28.104a.8.8 0 0 1 1.033 1.223l-2.885 2.433a.8.8 0 0 1-1.165-.143l-1.443-2.001a.8.8 0 0 1 1.3-.936l.936 1.3zM21.117 16.267v-3.785a1.82 1.82 0 1 0-3.642 0v3.785a.8.8 0 1 1-1.6 0v-3.785a3.42 3.42 0 0 1 6.843 0v3.785a.8.8 0 0 1-1.601 0",fill:"#fff"}),React.createElement("path",{d:"M23.082 15.466a.8.8 0 1 1 0 1.6h-7.571a.8.8 0 1 1 0-1.6zM18.496 9.86V8.695a.8.8 0 1 1 1.6 0V9.86a.8.8 0 0 1-1.6 0",fill:"#fff"}),React.createElement("path",{d:"M17.166 17.483v-1.217a.8.8 0 1 1 1.6 0v1.217a.526.526 0 0 0 1.05 0v-1.217a.8.8 0 0 1 1.6 0v1.217a2.125 2.125 0 0 1-4.25 0",fill:"#fff"}),React.createElement("path",{d:"M7.04 28.407V17.346c0-.692.313-1.345.849-1.78l4.652-4.036a.9.9 0 0 1 1.18 1.36l-4.654 4.037-.038.031a.49.49 0 0 0-.19.388v11.061c0 .271.22.49.491.49h15.915a.9.9 0 1 1 0 1.801H9.33a2.29 2.29 0 0 1-2.29-2.29m22.713-4.018v-7.043a.49.49 0 0 0-.19-.388l-.039-.031-4.652-4.037a.9.9 0 1 1 1.179-1.36l4.651 4.035a2.29 2.29 0 0 1 .85 1.78v7.044a.9.9 0 1 1-1.8 0",fill:"#fff"}),React.createElement("path",{d:"M18.83 20.989a.9.9 0 0 1 .933 0l7.03 4.255a.9.9 0 0 1-.933 1.54l-6.564-3.974-10.43 6.314a.9.9 0 1 1-.932-1.54z",fill:"#fff"}),React.createElement("path",{d:"M7.357 16.204a.9.9 0 0 1 1.262-.159l8.543 6.625a.9.9 0 0 1-1.103 1.423l-8.543-6.626a.9.9 0 0 1-.16-1.263m22.617-.159a.9.9 0 0 1 1.104 1.422l-8.543 6.626a.9.9 0 0 1-1.104-1.423z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"EmailNotificationAndApprovalIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#79f1a4"}),React.createElement("stop",{offset:1,stopColor:"#0e5cad"}))))},label:(0,l.__)("Email Notification & Approval","easy-accordion-free"),desc:(0,l.__)("Send instant notifications and manage approval workflows to control and moderate submitted content effectively.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:32,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("rect",{width:44,height:44,rx:5.5,fill:"url(#AdvancedPostQueryBuilderIcona)"}),React.createElement("path",{d:"M34.1 11.5a1.1 1.1 0 0 0-1.1-1.1H11a1.1 1.1 0 0 0-1.1 1.1v21a1.1 1.1 0 0 0 1.1 1.1h22a1.1 1.1 0 0 0 1.1-1.1zm1.8 21a2.9 2.9 0 0 1-2.9 2.9H11a2.9 2.9 0 0 1-2.9-2.9v-21A2.9 2.9 0 0 1 11 8.6h22a2.9 2.9 0 0 1 2.9 2.9z",fill:"#fff"}),React.createElement("path",{d:"M28.46 23.635a2.881 2.881 0 1 1-5.762 0 2.881 2.881 0 0 1 5.762 0m1.6 0a4.482 4.482 0 1 0-8.963 0 4.482 4.482 0 0 0 8.964 0",fill:"#fff"}),React.createElement("path",{d:"M30.516 30.342a.8.8 0 1 0 1.13-1.13l-3.084-3.085a.8.8 0 1 0-1.13 1.131zM22.16 26.36v1.98a.343.343 0 0 1-.457.322l-1.466-.523a.34.34 0 0 1-.227-.322v-4.378c0-.613-.29-1.19-.782-1.557l-5.37-4a.34.34 0 0 1-.138-.274v-2.566c0-.189.154-.342.343-.342h13.844c.19 0 .342.153.342.342v2.56a.34.34 0 0 1-.14.276l-2.076 1.521a.8.8 0 0 0 .947 1.29l2.075-1.52c.499-.366.794-.948.794-1.567v-2.56a1.94 1.94 0 0 0-1.942-1.942H14.063c-1.073 0-1.943.87-1.943 1.942v2.566c0 .613.29 1.19.782 1.557l5.37 4a.34.34 0 0 1 .138.274v4.378c0 .82.516 1.553 1.29 1.829l1.465.523a1.942 1.942 0 0 0 2.595-1.83V26.36a.8.8 0 1 0-1.6 0",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"AdvancedPostQueryBuilderIcona",x1:0,y1:0,x2:44,y2:44,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#79f1a4"}),React.createElement("stop",{offset:1,stopColor:"#0e5cad"}))))},label:(0,l.__)("Advanced Post Query Builder","easy-accordion-free"),desc:(0,l.__)("Fetch and display dynamic content using flexible query controls for better content management and automation.","easy-accordion-free"),videoLink:"#",docLink:"#",isPro:!0},{id:33,Icon:function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:44,height:44,viewBox:"0 0 44 44",fill:"none"},React.createElement("path",{d:"M0 5.5A5.5 5.5 0 0 1 5.5 0h33A5.5 5.5 0 0 1 44 5.5v33a5.5 5.5 0 0 1-5.5 5.5h-33A5.5 5.5 0 0 1 0 38.5z",fill:"url(#ReadyPatternsLibraryIcona)"}),React.createElement("path",{d:"M8.494 20.778v-3.735c0-1.092-.001-1.976.062-2.69.064-.726.2-1.37.53-1.96a4.67 4.67 0 0 1 1.8-1.801c.591-.33 1.235-.466 1.962-.53.713-.063 1.597-.062 2.69-.062 1.343 0 2.274-.015 3.107.297 1.858.697 2.6 2.415 3.192 3.597l.497.995h5.188c1.272 0 2.456-.003 3.436.077.943.077 1.898.24 2.592.703q.765.51 1.275 1.276c.824 1.232.67 2.47.67 2.855a1 1 0 1 1-2 0c0-.614.08-1.127-.332-1.744a2.6 2.6 0 0 0-.724-.725c-.231-.154-.725-.297-1.643-.372-.881-.071-1.972-.07-3.274-.07H16.827a1 1 0 0 1 0-2H20.1l-.051-.1c-.692-1.384-1.121-2.25-2.106-2.619-.412-.155-.904-.17-2.405-.17-1.128 0-1.908.002-2.514.055-.591.052-.92.148-1.162.283a2.67 2.67 0 0 0-1.029 1.03c-.135.242-.231.57-.283 1.161-.053.605-.055 1.386-.055 2.514v3.735c0 2.908.002 4.99.215 6.572.209 1.553.604 2.475 1.282 3.153.43.43.736.691 1.057.876.309.178.681.314 1.265.411 1.237.207 3.18.21 6.98.21a1 1 0 1 1 0 2c-3.698 0-5.864.004-7.31-.237-.758-.127-1.37-.326-1.934-.651-.552-.319-1.007-.73-1.472-1.195-1.112-1.112-1.612-2.526-1.85-4.3-.235-1.747-.233-3.987-.233-6.84",fill:"#fff"}),React.createElement("path",{d:"M33.694 24a.2.2 0 0 0-.2-.2h-8a.2.2 0 0 0-.2.2v8c0 .11.09.2.2.2h8a.2.2 0 0 0 .2-.2zm1.6 8a1.8 1.8 0 0 1-1.8 1.8h-8a1.8 1.8 0 0 1-1.8-1.8v-8a1.8 1.8 0 0 1 1.8-1.8h8a1.8 1.8 0 0 1 1.8 1.8z",fill:"#fff"}),React.createElement("path",{d:"M31.494 25.6a.9.9 0 0 1 0 1.8h-4a.9.9 0 0 1 0-1.8zm-1 3a.9.9 0 0 1 0 1.8h-3a.9.9 0 0 1 0-1.8z",fill:"#fff"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"ReadyPatternsLibraryIcona",x1:0,y1:22,x2:44,y2:22,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#ab4cfe"}),React.createElement("stop",{offset:1,stopColor:"#7317fe"}))))},label:(0,l.__)("200+ Ready Patterns Library","easy-accordion-free"),desc:(0,l.__)("Access a large collection of pre-designed patterns to build layouts faster with consistent design quality.","easy-accordion-free"),demoLink:"#",docLink:"#",isPro:!0}];const Lu=function(){return React.createElement("div",{className:"sp-eap-modules-page"},React.createElement("div",{className:"eap-dashboard-page-header sp-d-flex sp-flex-col sp-gap-10px"},React.createElement("span",{className:"eap-dashboard-page-header__label"},(0,l.__)("Manage Modules","easy-accordion-free")),React.createElement("span",{className:"eap-dashboard-page-header__desc"},(0,l.__)("Enable only the modules you need to keep your site fast and optimized.","easy-accordion-free"))),React.createElement(Iu,{items:$u,optionKey:"modules"}),React.createElement("div",{className:"eap-dashboard-page-header sp-d-flex sp-align-center sp-justify-between eaf-pro-modules"},React.createElement("span",{className:"sp-d-flex sp-flex-col sp-gap-10px"},React.createElement("span",{className:"eap-dashboard-page-header__label"},(0,l.__)("Unlock Powerful Features with Pro!","easy-accordion-free")),React.createElement("span",{className:"eap-dashboard-page-header__desc"},(0,l.__)("Upgrade now to unlock advanced features and streamline your workflow.","easy-accordion-free"))),React.createElement("a",{href:"https://easyaccordion.io/pricing/?ref=1",target:"_blank",rel:"noreferrer",className:"eaf-pro-modules-indicator-button sp-d-flex sp-align-center sp-gap-6px"},React.createElement(xu,null),(0,l.__)("Upgrade to Pro","easy-accordion-free"))),React.createElement(Iu,{items:Du,optionKey:"modules"}))};function Nu(e){return Nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nu(e)}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ju(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(td(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,td(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,td(d,"constructor",c),td(c,"constructor",l),l.displayName="GeneratorFunction",td(c,i,"GeneratorFunction"),td(d),td(d,i,"Generator"),td(d,r,function(){return this}),td(d,"toString",function(){return"[object Generator]"}),(ed=function(){return{w:o,m:p}})()}function td(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}td=function(e,t,n,r){function o(t,n){td(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},td(e,t,n,r)}function nd(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var rd=function(e){return le.success(e,{style:{marginTop:"28px",fontSize:"15px",padding:"10px 18px"}})},id=function(e){return le.error(e,{style:{marginTop:"28px",fontSize:"15px",padding:"10px 18px"}})},od=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){nd(o,r,i,a,s,"next",e)}function s(e){nd(o,r,i,a,s,"throw",e)}a(void 0)})}}(ed().m(function e(t){var n,r,i,o;return ed().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!navigator.clipboard||!navigator.clipboard.writeText){e.n=4;break}return e.p=1,e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2,!0);case 3:e.p=3,i=e.v,console.warn("Clipboard API failed, using fallback.",i);case 4:return e.p=4,(n=document.createElement("textarea")).value=t,n.style.position="fixed",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.select(),r=document.execCommand("copy"),document.body.removeChild(n),e.a(2,r);case 5:return e.p=5,o=e.v,console.error("Fallback copy failed:",o),e.a(2,!1)}},e,null,[[4,5],[1,3]])}));return function(_x){return e.apply(this,arguments)}}(),ad=function(e){return e?"1":"0"},sd=function(e){return"1"===e||"1"===e||1===e||!0===e},ld=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M10.1421 3.98828L11.0765 3.05377C11.5927 2.53766 12.4295 2.53766 12.9456 3.05377C13.4617 3.56989 13.4617 4.40667 12.9456 4.92279L12.0111 5.85729M10.1421 3.98828L4.65284 9.47755C3.95597 10.1744 3.60752 10.5228 3.37026 10.9474C3.133 11.372 2.89428 12.3746 2.66602 13.3334C3.62474 13.1051 4.62734 12.8664 5.05194 12.6291C5.47654 12.3918 5.82498 12.0434 6.52185 11.3466L12.0111 5.85729M10.1421 3.98828L12.0111 5.85729",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M7.33398 13.3333H11.334",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round"}))},cd=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_20469_150666)"},React.createElement("path",{d:"M6 10C6 8.1144 6 7.1716 6.58579 6.58579C7.1716 6 8.1144 6 10 6H10.6667C12.5523 6 13.4951 6 14.0809 6.58579C14.6667 7.1716 14.6667 8.1144 14.6667 10V10.6667C14.6667 12.5523 14.6667 13.4951 14.0809 14.0809C13.4951 14.6667 12.5523 14.6667 10.6667 14.6667H10C8.1144 14.6667 7.1716 14.6667 6.58579 14.0809C6 13.4951 6 12.5523 6 10.6667V10Z",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M11.3339 5.99998C11.3323 4.02859 11.3025 3.00745 10.7286 2.30827C10.6178 2.17324 10.494 2.04943 10.359 1.93862C9.62145 1.33331 8.52565 1.33331 6.33398 1.33331C4.14233 1.33331 3.0465 1.33331 2.30894 1.93862C2.17391 2.04943 2.0501 2.17324 1.93929 2.30827C1.33398 3.04583 1.33398 4.14166 1.33398 6.33331C1.33398 8.52498 1.33398 9.62078 1.93929 10.3584C2.0501 10.4934 2.17391 10.6172 2.30894 10.728C3.00812 11.3018 4.02926 11.3316 6.00065 11.3332",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_20469_150666"},React.createElement("rect",{width:16,height:16,fill:"white"}))))},ud=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M13 3.66669L12.5869 10.3501C12.4813 12.0576 12.4285 12.9114 12.0005 13.5253C11.7889 13.8288 11.5165 14.0849 11.2005 14.2774C10.5614 14.6667 9.706 14.6667 7.99513 14.6667C6.28208 14.6667 5.42553 14.6667 4.78603 14.2766C4.46987 14.0838 4.19733 13.8272 3.98579 13.5232C3.55792 12.9084 3.5063 12.0534 3.40307 10.3435L3 3.66669",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round"}),React.createElement("path",{d:"M2 3.66665H14M10.7038 3.66665L10.2487 2.7278C9.9464 2.10415 9.7952 1.79233 9.53447 1.59785C9.47667 1.55471 9.4154 1.51634 9.35133 1.48311C9.0626 1.33331 8.71607 1.33331 8.023 1.33331C7.31253 1.33331 6.95733 1.33331 6.66379 1.48939C6.59873 1.52399 6.53665 1.56391 6.47819 1.60876C6.21443 1.81111 6.06709 2.13435 5.77241 2.78082L5.36861 3.66665",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round"}),React.createElement("path",{d:"M6.33398 11V7",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round"}),React.createElement("path",{d:"M9.66602 11V7",stroke:"#757575",strokeWidth:1.25,strokeLinecap:"round"}))},dd=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:13,viewBox:"0 0 5 9",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.15403 0.865234L4.74524 4.81555L1.15403 8.76588L0.423828 8.10206L3.41156 4.81555L0.423829 1.52906L1.15403 0.865234Z",fill:"#757575"}))},pd=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:13,viewBox:"0 0 5 9",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.26589 0.865234L0.674678 4.81555L4.26589 8.76588L4.99609 8.10206L2.00836 4.81555L4.99609 1.52906L4.26589 0.865234Z",fill:"#757575"}))},hd=function(){return React.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M5.544 9.18a1.457 1.457 0 0 0 2.062 0l2.856-2.856a.53.53 0 1 0-.75-.75L6.856 8.428a.4.4 0 0 1-.561 0L5.289 7.423a.53.53 0 0 0-.75.75z",fill:"#317d46"}),React.createElement("path",{d:"M7.5 14c3.584 0 6.5-2.916 6.5-6.5S11.084 1 7.5 1A6.507 6.507 0 0 0 1 7.5C1 11.084 3.916 14 7.5 14m0-11.939A5.445 5.445 0 0 1 12.939 7.5 5.445 5.445 0 0 1 7.5 12.939 5.445 5.445 0 0 1 2.061 7.5 5.445 5.445 0 0 1 7.5 2.061",fill:"#317d46"}))};function fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(vd(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,vd(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,vd(d,"constructor",c),vd(c,"constructor",l),l.displayName="GeneratorFunction",vd(c,i,"GeneratorFunction"),vd(d),vd(d,i,"Generator"),vd(d,r,function(){return this}),vd(d,"toString",function(){return"[object Generator]"}),(Od=function(){return{w:o,m:p}})()}function vd(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}vd=function(e,t,n,r){function o(t,n){vd(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},vd(e,t,n,r)}function bd(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function yd(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){bd(o,r,i,a,s,"next",e)}function s(e){bd(o,r,i,a,s,"throw",e)}a(void 0)})}}function wd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||xd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xd(e,t){if(e){if("string"==typeof e)return Sd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sd(e,t):void 0}}function Sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==i[0]?i[0]:null)?[t]:O)?void 0:n.length)<1)){e.n=1;break}return e.a(2);case 1:if(!window.confirm("Are you sure you want to delete this saved template?")){e.n=3;break}return e.n=2,Promise.all(n.map(function(){var e=yd(Od().m(function e(t){var n;return Od().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,T("postType","sp_eap_template",t,{force:!0});case 1:e.n=3;break;case 2:e.p=2,n=e.v,id("Error deleting template ID: ".concat(t,": ").concat(n," "));case 3:return e.a(2)}},e,null,[[0,2]])}));return function(_x){return e.apply(this,arguments)}}()));case 2:r=t?null==O?void 0:O.filter(function(e){return e!==n[0]}):[],v(r),rd("Template deleted successfully.");case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=yd(Od().m(function e(){var t,n,r=arguments;return Od().w(function(e){for(;;)switch(e.n){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:"publish",!((null==(n=O)?void 0:n.length)<1)){e.n=1;break}return e.a(2);case 1:return e.n=2,Promise.all(null==n?void 0:n.map(function(){var e=yd(Od().m(function e(n){var r;return Od().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,n){e.n=1;break}return e.a(2);case 1:return e.n=2,(0,s.resolveSelect)("core").getEntityRecord("postType","sp_eap_template",n);case 2:if(e.v){e.n=3;break}return e.a(2);case 3:return e.n=4,M("postType","sp_eap_template",n,{status:t});case 4:return e.n=5,I("postType","sp_eap_template",n);case 5:e.n=7;break;case 6:e.p=6,r=e.v,id("Error while updating template ID: ".concat(n,": ").concat(r," "));case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()));case 2:rd("Template post status updated successfully."),v([]);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=yd(Od().m(function e(t){var n,r,i;return Od().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,s.resolveSelect)("core").getEntityRecord("postType","sp_eap_template",t.id);case 1:if(r=e.v){e.n=2;break}return id("Template not found"),e.a(2);case 2:return e.n=3,_("postType","sp_eap_template",{title:"".concat(r.title.raw||"(No title)"," (Copy)"),content:(null===(n=r.content)||void 0===n?void 0:n.raw)||"",meta:r.meta||{},status:"draft"});case 3:$("getEntityRecords",["postType","sp_eap_template",{status:"any",per_page:-1,search:o,_fields:["id","modified","title","status"]}]),rd("Template duplicated successfully."),e.n=5;break;case 4:e.p=4,i=e.v,id("Failed to duplicate template: ".concat(i.message));case 5:return e.a(2)}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}();(0,a.useEffect)(function(){if(y){var e=setTimeout(function(){w("")},2e3);return function(){return clearTimeout(e)}}},[y]),(0,a.useEffect)(function(){(null==A?void 0:A.length)<1&&(k.current&&clearTimeout(k.current),k.current=setTimeout(function(){E(!0)},1500))},[A]);var z=Math.ceil(C/10),j=Array.from({length:z},function(e,t){return t+1});return React.createElement("div",{className:"speap-saved-templates-page-wrapper"},React.createElement("div",{className:"sp-eab-saved-templates-page-container sp-d-flex sp-flex-col"},React.createElement("div",{className:"sp-eab-saved-template-header sp-d-flex sp-align-center sp-justify-between"},React.createElement("div",{className:"sp-eab-saved-template-header-left sp-d-flex"},React.createElement("select",{name:"bulk-action",className:"sp-eab-saved-template-select",value:n,onChange:function(e){return r(e.target.value)}},React.createElement("option",{value:""},"Bulk Action"),React.createElement("option",{value:"publish"},"Publish"),React.createElement("option",{value:"draft"},"Draft"),React.createElement("option",{value:"delete"},"Delete")),React.createElement("button",{className:"sp-eab-saved-template-select-apply",onClick:function(){if(""!==n){switch(n){case"publish":L("publish");break;case"draft":L("draft");break;case"delete":D()}v([]),m(!1),r("")}}},"Apply"),React.createElement("input",{name:"search-weather-template",className:"sp-eab-saved-template-search-field",type:"text",placeholder:"Search...",spellCheck:"false","data-ms-editor":"true",onChange:function(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.value;k.current&&clearTimeout(k.current),k.current=setTimeout(function(){c(n)},1e3)}})),React.createElement("div",{className:"sp-eab-saved-template-header-right"},React.createElement("a",{href:"".concat(null===(e=sp_eab_admin_dashboard_localize)||void 0===e?void 0:e.homeUrl,"wp-admin/post-new.php?post_type=sp_eap_template"),className:"sp-eab-saved-template-add-new sp-d-flex sp-align-center sp-justify-center sp-gap-8px sp-cursor-pointer",rel:"noreferrer"},React.createElement("i",{className:"dashicons dashicons-plus-alt2"}),"Add New Template"))),React.createElement("table",{className:"sp-eab-saved-template-content-table"},React.createElement("thead",{className:"sp-eab-saved-template-table-head"},React.createElement("tr",null,null==R?void 0:R.map(function(e,t){return React.createElement("th",{key:t,className:"sp-eab-saved-template-table-".concat(e)},"checkBox"===e?React.createElement("input",{type:"checkbox",onChange:function(){m(function(e){return!e}),v(f?[]:null==A?void 0:A.map(function(e){return e.id}))},checked:f}):e)}))),React.createElement("tbody",{className:"sp-eab-saved-template-table-body"},!S&&(!A||0===A.length)&&React.createElement("tr",null,React.createElement("td",{className:"sp-eab-saved-template-preloader-no-data"},React.createElement("span",{className:"sp-eab-saved-template-loading"},React.createElement(Fc.Spinner,null)))),null==A?void 0:A.map(function(e,t){var n,r,i,o=new Date(null==e?void 0:e.modified),a=!!f||(null==O?void 0:O.some(function(t){return t===(null==e?void 0:e.id)}));return React.createElement("tr",{key:t,className:"sp-eab-saved-template-table-row"},React.createElement("td",{id:null==e?void 0:e.id,className:"sp-eab-saved-template-table-checkBox"},React.createElement("input",{type:"checkbox",onChange:function(){return n=null==e?void 0:e.id,r=O.includes(n)?null==O?void 0:O.filter(function(e){return e!==n}):[].concat(function(e){if(Array.isArray(e))return Sd(e)}(t=O)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||xd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]),v(r),void m(!1);var t,n,r},checked:a})),React.createElement("td",{className:"sp-eab-saved-template-table-title"},React.createElement("a",{href:"".concat(null===(n=sp_eab_admin_dashboard_localize)||void 0===n?void 0:n.homeUrl,"wp-admin/post.php?post=").concat(null==e?void 0:e.id,"&action=edit"),rel:"noreferrer noopener"},React.createElement("span",{dangerouslySetInnerHTML:{__html:(null==e||null===(r=e.title)||void 0===r?void 0:r.rendered)||"(No Title)"}}))),React.createElement("td",{className:"sp-eab-saved-template-table-shortcode"},React.createElement("span",{className:"sp-eab-saved-template-shortcode-text",onClick:function(){return function(e){var t='[sp_eap_template id="'.concat(e.id,'"]');od(t)?w(e.id):id((0,l.__)("Failed to copy shortcode","easy-accordion-free"))}(e)}},'[sp_eap_template id="'.concat(null==e?void 0:e.id,'"]'))," ",React.createElement("span",{className:"sp-eab-shortcode-copy-tooltip",style:{opacity:y===e.id?1:0}},React.createElement(hd,null),"Copied!"),y!==e.id&&React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.35417 1.25H9.47917C9.53667 1.25 9.58333 1.29667 9.58333 1.35417V9.47917C9.58333 9.50679 9.57236 9.53329 9.55282 9.55282C9.53329 9.57236 9.50679 9.58333 9.47917 9.58333H1.35417C1.32654 9.58333 1.30004 9.57236 1.28051 9.55282C1.26097 9.53329 1.25 9.50679 1.25 9.47917V1.35417C1.25 1.29667 1.29667 1.25 1.35417 1.25ZM0 1.35417C0 0.606667 0.606667 0 1.35417 0H9.47917C10.2275 0 10.8333 0.606667 10.8333 1.35417V9.47917C10.8333 10.2275 10.2275 10.8333 9.47917 10.8333H1.35417C0.995019 10.8333 0.650582 10.6907 0.396626 10.4367C0.142671 10.1828 0 9.83831 0 9.47917V1.35417ZM12.0833 11.0675V3.5675H13.3333V11.0675C13.3333 12.3333 12.3083 13.3333 11.0425 13.3333H1.875V12.0833H11.0425C11.6175 12.0833 12.0833 11.6433 12.0833 11.0675Z",fill:"#757575"}))),React.createElement("td",{className:"sp-eab-saved-template-table-date"},React.createElement("div",null,null==e?void 0:e.status),React.createElement("div",null,null==o?void 0:o.toLocaleString("en-US"))),React.createElement("td",{className:"sp-eab-saved-template-table-action"},React.createElement("div",{className:"sp-eab-saved-template-table-action-btn"},React.createElement(Fc.Tooltip,{text:"Edit",delay:300,placement:"top"},React.createElement("a",{"aria-label":"Edit",href:"".concat(null===(i=sp_eab_admin_dashboard_localize)||void 0===i?void 0:i.homeUrl,"wp-admin/post.php?post=").concat(null==e?void 0:e.id,"&action=edit"),className:"sp-eab-saved-template-action sp-action-edit",rel:"noreferrer"},React.createElement(ld,null))),React.createElement(Fc.Tooltip,{text:"Duplicate",delay:300,placement:"top"},React.createElement("button",{"aria-label":"Duplicate",className:"sp-eab-saved-template-action sp-action-copy",onClick:function(){return N(e)}},React.createElement(cd,null))),React.createElement(Fc.Tooltip,{text:"Delete",delay:300,placement:"top"},React.createElement("button",{"aria-label":"Delete",className:"sp-eab-saved-template-action sp-action-delete",onClick:function(){return D(null==e?void 0:e.id)}},React.createElement(ud,null))))))}),S&&(!A||0===A.length)&&React.createElement("tr",null,React.createElement("td",{className:"sp-eab-saved-template-preloader-no-data"},React.createElement("span",{className:"sp-eab-saved-template-no-data"},(0,l.__)("No saved template found!","easy-accordion-free")))))),React.createElement("div",{className:"sp-eab-saved-template-footer"},React.createElement("div",{className:"sp-eab-saved-template-count"},"Page ",d," of ",Math.ceil(C/10)||1,"  "," ",React.createElement("span",null,"[ ",C," Items ]")),React.createElement("div",{className:"sp-eab-saved-template-pagination"},(null==j?void 0:j.length)>1&&React.createElement(React.Fragment,null,React.createElement("button",{className:"sp-eab-saved-template-pagination-btn sp-btn-prev ".concat(1===d?"btn-disabled":""),onClick:function(){return p(1!==d?d-1:1)}},React.createElement(pd,null)),j.map(function(e,t){return React.createElement("button",{key:t,className:"sp-eab-saved-template-pagination-btn ".concat(d===e?"btn-active":"sp-btn-numb"),onClick:function(e){var t;return p(Number(null===(t=e.target)||void 0===t?void 0:t.value))},value:e},e)}),React.createElement("button",{className:"sp-eab-saved-template-pagination-btn sp-btn-next ".concat(d===(null==j?void 0:j.length)?"btn-disabled":""),onClick:function(){return p(d!==(null==j?void 0:j.length)?d+1:null==j?void 0:j.length)}},React.createElement(dd,null)))))),React.createElement(gd,null))};function kd(e){return kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kd(e)}function Rd(e){var t=function(e){if("object"!=kd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kd(t)?t:t+""}function Cd(e,t,n){return(t=Rd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n({x:e,y:e});function Gd(){return"undefined"!=typeof window}function Hd(e){return Kd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ud(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Yd(e){var t;return null==(t=(Kd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kd(e){return!!Gd()&&(e instanceof Node||e instanceof Ud(e).Node)}function Jd(e){return!!Gd()&&(e instanceof Element||e instanceof Ud(e).Element)}function ep(e){return!!Gd()&&(e instanceof HTMLElement||e instanceof Ud(e).HTMLElement)}function tp(e){return!(!Gd()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ud(e).ShadowRoot)}function np(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ip(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}let rp;function ip(e){return Ud(e).getComputedStyle(e)}function op(e){const t=function(e){if("html"===Hd(e))return e;const t=e.assignedSlot||e.parentNode||tp(e)&&e.host||Yd(e);return tp(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(Hd(e))}(t)?(e.ownerDocument||e).body:ep(t)&&np(t)?t:op(t)}function ap(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=op(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Ud(i);if(o){const e=sp(a);return t.concat(a,a.visualViewport||[],np(i)?i:[],e&&n?ap(e):[])}return t.concat(i,ap(i,[],n))}function sp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lp(e){return Jd(e)?e:e.contextElement}function cp(e){const t=lp(e);if(!ep(t))return Wd(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=ip(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ep(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Fd(n)!==o||Fd(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?Fd(n.width):n.width)/r,s=(o?Fd(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const up=Wd(0);function dp(e){const t=Ud(e);return null==rp&&(rp="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rp&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:up}function pp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=lp(e);let a=Wd(1);t&&(r?Jd(r)&&(a=cp(r)):a=cp(e));const s=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Ud(e)}(o,n,r)?dp(o):Wd(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o&&r){const e=Ud(o),t=Jd(r)?Ud(r):r;let n=e,i=sp(n);for(;i&&t!==n;){const e=cp(i),t=i.getBoundingClientRect(),r=ip(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Ud(i),i=sp(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:d,x:l,y:c})}function hp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var fp=c.useLayoutEffect,mp=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],gp=function(){};function Op(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function vp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Ep(e){return Sp(e)?window.pageYOffset:e.scrollTop}function kp(e,t){Sp(e)?window.scrollTo(0,t):e.scrollTop=t}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gp,i=Ep(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);kp(e,s),an.bottom?kp(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=f)return{placement:"bottom",maxHeight:t};if(E>=f&&!a)return o&&Rp(l,k,C),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&x>=r)return o&&Rp(l,k,C),{placement:"bottom",maxHeight:a?x-b:E-b};if("auto"===i||a){var P=t,A=a?w:S;return A>=r&&(P=Math.min(A-b-s,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return o&&kp(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(S>=f&&!a)return o&&Rp(l,R,C),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var Q=t;return(!a&&S>=r||a&&w>=r)&&(Q=a?w-y:S-y),o&&Rp(l,R,C),{placement:"top",maxHeight:Q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:O});h(s.maxHeight),g(s.placement),null==l||l(s.placement)}},[r,i,o,a,n,l,O]),t({ref:u,placerProps:Ad(Ad({},e),{},{placement:m||Np(i),maxHeight:p})})},Bp=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return Ad({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Zp=Bp,Xp=Bp,Vp=["size"],Fp=["innerProps","isRtl","size"],qp={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Wp=function(e){var t=e.size,n=_d(e,Vp);return Bd("svg",Ce({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qp},n))},Gp=function(e){return Bd(Wp,Ce({size:20},e),Bd("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Hp=function(e){return Bd(Wp,Ce({size:20},e),Bd("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Up=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ad({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},Yp=Up,Kp=Up,Jp=function(){var e=Zd.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Lp||(Lp=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),eh=function(e){var t=e.delay,n=e.offset;return Bd("span",{css:Zd({animation:"".concat(Jp," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},th=["data"],nh=["innerRef","isDisabled","isHidden","inputClassName"],rh={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ih={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ad({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},rh)},oh=function(e){return Ad({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},rh)},ah=function(e){var t=e.children,n=e.innerProps;return Bd("div",n,t)},sh={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Bd("div",Ce({},xp(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Bd(Gp,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return Bd("div",Ce({ref:i},xp(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Bd("div",Ce({},xp(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Bd(Hp,null))},DownChevron:Hp,CrossIcon:Gp,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Bd("div",Ce({},xp(e,"group",{group:!0}),s),Bd(o,Ce({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:i,cx:n}),l),Bd("div",null,t))},GroupHeading:function(e){var t=yp(e);t.data;var n=_d(t,th);return Bd("div",Ce({},xp(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Bd("div",Ce({},xp(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Bd("span",Ce({},t,xp(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=yp(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=_d(r,nh);return Bd("div",Ce({},xp(e,"input",{"input-container":!0}),{"data-value":n||""}),Bd("input",Ce({className:t({input:!0},s),ref:i,style:oh(a),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=_d(e,Fp);return Bd("div",Ce({},xp(Ad(Ad({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Bd(eh,{delay:0,offset:n}),Bd(eh,{delay:160,offset:!0}),Bd(eh,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Bd("div",Ce({},xp(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Bd("div",Ce({},xp(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,a=e.menuPosition,s=(0,c.useRef)(null),l=(0,c.useRef)(null),u=Md((0,c.useState)(Np(o)),2),d=u[0],p=u[1],h=(0,c.useMemo)(function(){return{setPortalPlacement:p}},[]),f=Md((0,c.useState)(null),2),m=f[0],g=f[1],O=(0,c.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}},[r,a,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);fp(function(){O()},[O]);var v=(0,c.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=lp(e),u=i||o?[...c?ap(c):[],...t?ap(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n),o&&e.addEventListener("resize",n)});const d=c&&s?function(e,t,n){let r,i=null;const o=Yd(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function s(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(n||t(),!p||!h)return;const f={rootMargin:-qd(d)+"px "+-qd(o.clientWidth-(u+p))+"px "+-qd(o.clientHeight-(d+h))+"px "+-qd(u)+"px",threshold:Vd(0,Xd(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!hp(c,e.getBoundingClientRect()))return s();if(n!==l){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,f)}i.observe(e)}const l=Ud(e),c=()=>s(n);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(c,n,o):null;let p,h=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),t&&f.observe(t));let m=l?pp(e):null;return l&&function t(){const r=pp(e);m&&!hp(m,r)&&n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}(r,s.current,O,{elementResize:"ResizeObserver"in window}))},[r,O]);fp(function(){v()},[v]);var b=(0,c.useCallback)(function(e){s.current=e,v()},[v]);if(!t&&"fixed"!==a||!m)return null;var y=Bd("div",Ce({ref:b},xp(Ad(Ad({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Bd(zp.Provider,{value:h},t?(0,xe.createPortal)(y,t):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=_d(e,Dp);return Bd("div",Ce({},xp(Ad(Ad({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=_d(e,$p);return Bd("div",Ce({},xp(Ad(Ad({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Bd(l,{data:r,innerProps:Ad(Ad({},xp(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},Bd(c,{data:r,innerProps:Ad({},xp(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Bd(u,{data:r,innerProps:Ad(Ad({},xp(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ah,MultiValueLabel:ah,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Bd("div",Ce({role:"button"},n),t||Bd(Gp,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return Bd("div",Ce({},xp(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Bd("div",Ce({},xp(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Bd("div",Ce({},xp(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Bd("div",Ce({},xp(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Bd("div",Ce({},xp(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},lh=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ch(e,t){return e===t||!(!lh(e)||!lh(t))}function uh(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(o).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},fh=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,h=s.inputValue,f=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,O=s.menuIsOpen,v=s.options,b=s.screenReaderStatus,y=s.tabSelectsValue,w=s.isLoading,x=s["aria-label"],S=s["aria-live"],E=(0,c.useMemo)(function(){return Ad(Ad({},hh),d||{})},[d]),k=(0,c.useMemo)(function(){var e,n="";if(t&&E.onChange){var r=t.option,i=t.options,o=t.removedValue,s=t.removedValues,l=t.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=i||s||void 0,h=d?d.map(p):[],f=Ad({isDisabled:c&&m(c,a),label:u,labels:h},t);n=E.onChange(f)}return n},[t,E,m,a,p]),R=(0,c.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=E.onFocus(s)}return e},[n,r,p,m,E,i,a,u]),C=(0,c.useMemo)(function(){var e="";if(O&&v.length&&!w&&E.onFilter){var t=b({count:i.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,O,E,v,b,w]),P="initial-input-focus"===(null==t?void 0:t.action),A=(0,c.useMemo)(function(){var e="";if(E.guidance){var t=r?"value":O?"menu":"input";e=E.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:f,isSearchable:g,tabSelectsValue:y,isInitialFocus:P})}return e},[x,n,r,f,m,g,O,E,a,y,P]),Q=Bd(c.Fragment,null,Bd("span",{id:"aria-selection"},k),Bd("span",{id:"aria-focused"},R),Bd("span",{id:"aria-results"},C),Bd("span",{id:"aria-guidance"},A));return Bd(c.Fragment,null,Bd(ph,{id:l},P&&Q),Bd(ph,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!P&&Q))},mh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gh=new RegExp("["+mh.map(function(e){return e.letters}).join("")+"]","g"),Oh={},vh=0;vh1?t-1:0),r=1;r0,m=d-p-c,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),f&&s.current&&(o&&o(e),s.current=!1),f&&t>m?(n&&!a.current&&n(e),h.scrollTop=d,g=!0,a.current=!0):!f&&-t>c&&(i&&!s.current&&i(e),h.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,o]),p=(0,c.useCallback)(function(e){d(e,e.deltaY)},[d]),h=(0,c.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),f=(0,c.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=(0,c.useCallback)(function(e){if(e){var t=!!Mp&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}},[f,h,p]),g=(0,c.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))},[f,h,p]);return(0,c.useEffect)(function(){if(t){var e=u.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,c.useRef)({}),o=(0,c.useRef)(null),a=(0,c.useCallback)(function(e){if(_h){var t=document.body,n=t&&t.style;if(r&&Ch.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&Ih<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Ph).forEach(function(e){var t=Ph[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&Mh()&&(t.addEventListener("touchmove",Ah,$h),e&&(e.addEventListener("touchstart",Th,$h),e.addEventListener("touchmove",Qh,$h))),Ih+=1}},[r]),s=(0,c.useCallback)(function(e){if(_h){var t=document.body,n=t&&t.style;Ih=Math.max(Ih-1,0),r&&Ih<1&&Ch.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&Mh()&&(t.removeEventListener("touchmove",Ah,$h),e&&(e.removeEventListener("touchstart",Th,$h),e.removeEventListener("touchmove",Qh,$h)))}},[r]);return(0,c.useEffect)(function(){if(t){var e=o.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){o.current=e}}({isEnabled:n});return Bd(c.Fragment,null,n&&Bd("div",{onClick:Dh,css:Lh}),t(function(e){i(e),o(e)}))}var zh={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},jh=function(e){var t=e.name,n=e.onFocus;return Bd("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:zh,value:"",onChange:function(){}})};function Bh(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Zh(){return Bh(/^Mac/i)}var Xh={clearIndicator:Kp,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return Ad({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Yp,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return Ad({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Ad({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return Ad(Ad({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ih),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return Ad({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Xp,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return Ad((Cd(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Cd(n,"position","absolute"),Cd(n,"width","100%"),Cd(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ad({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return Ad({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return Ad({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return Ad({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:Zp,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return Ad({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return Ad({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return Ad({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return Ad({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Vh={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Fh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Pp(),captureMenuScroll:!Pp(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ad({ignoreCase:!0,ignoreAccents:!0,stringify:Eh,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?Sh(t):t,c=a?Sh(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=xh(l),c=wh(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qh(e,t,n,r){return{type:"option",data:t,isDisabled:ef(e,t,n),isSelected:tf(e,t,n),label:Kh(e,t),value:Jh(e,t),index:r}}function Wh(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return qh(e,n,t,r)}).filter(function(t){return Uh(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=qh(e,n,t,r);return Uh(e,o)?o:void 0}).filter(_p)}function Gh(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Nd(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Hh(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Nd(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Uh(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!rf(e)||!o)&&nf(e,{label:a,value:s,data:i},r)}var Yh=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Kh=function(e,t){return e.getOptionLabel(t)},Jh=function(e,t){return e.getOptionValue(t)};function ef(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tf(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Jh(e,t);return n.some(function(t){return Jh(e,t)===r})}function nf(e,t,n){return!e.filterOption||e.filterOption(t,n)}var rf=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},of=1,af=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(n,e);var t=function(e){var t=Ld();return function(){var n,r=Dd(e);if(t){var i=Dd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(Nd(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),a=Ip(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Ip(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=Ip(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Yh(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Hh(Wh(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return rf(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,h=r.state,f=h.focusedOption,m=h.focusedValue,g=h.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&r.isOptionSelected(f,g))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++of),r.state.selectValue=bp(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=Yh(i,o[a])}return r}return function(e,t,n){t&&$d(e.prototype,t),n&&$d(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Cp(this.menuListRef,this.focusedOptionRef),(Zh()||Bh(/^iPhone/i)||Bh(/^iPad/i)||Zh()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Cp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Vh):Ad(Ad({},Vh),this.props.theme):Vh}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ef(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tf(this.props,e,t)}},{key:"filterOption",value:function(e,t){return nf(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,h=d.ariaSelection,f=this.commonProps,m=r||this.getElementId("input"),g=Ad(Ad(Ad({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(u,Ce({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},g)):c.createElement(Rh,Ce({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:gp,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,h=u.isMulti,f=u.inputValue,m=u.placeholder,g=this.state,O=g.selectValue,v=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return f?null:c.createElement(s,Ce({},l,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return O.map(function(t,a){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,Ce({},l,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:p,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var y=O[0];return c.createElement(a,Ce({},l,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,Ce({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?c.createElement(e,Ce({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return c.createElement(n,Ce({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,Ce({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,h=this.props,f=h.captureMenuScroll,m=h.inputValue,g=h.isLoading,O=h.loadingMessage,v=h.minMenuHeight,b=h.maxMenuHeight,y=h.menuIsOpen,w=h.menuPlacement,x=h.menuPosition,S=h.menuPortalTarget,E=h.menuShouldBlockScroll,k=h.menuShouldScrollIntoView,R=h.noOptionsMessage,C=h.onMenuScrollToTop,P=h.onMenuScrollToBottom;if(!y)return null;var A,Q=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,h=p===i,f=o?void 0:function(){return e.onOptionHover(i)},m=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),O={id:g,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return c.createElement(u,Ce({},d,{innerProps:O,data:i,isDisabled:o,isSelected:a,key:g,label:s,type:r,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return c.createElement(n,Ce({},d,{key:s,data:i,options:o,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return Q(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return Q(t,"".concat(t.index))});else if(g){var T=O({inputValue:m});if(null===T)return null;A=c.createElement(s,d,T)}else{var M=R({inputValue:m});if(null===M)return null;A=c.createElement(l,d,M)}var _={minMenuHeight:v,maxMenuHeight:b,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:k},I=c.createElement(jp,Ce({},d,_),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return c.createElement(i,Ce({},d,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),c.createElement(Nh,{captureEnabled:f,onTopArrive:C,onBottomArrive:P,lockEnabled:E},function(t){return c.createElement(o,Ce({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:p}),A)}))});return S||"fixed"===x?c.createElement(a,Ce({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return c.createElement(jh,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return c.createElement("input",{name:o,type:"hidden",value:l})}var u=s.length>0?s.map(function(t,n){return c.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):c.createElement("input",{name:o,type:"hidden",value:""});return c.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return c.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return c.createElement(fh,Ce({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,l=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return c.createElement(r,Ce({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),c.createElement(t,Ce({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),c.createElement(i,Ce({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,Ce({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=bp(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return Gh(Wh(e,t))}(e,f):[],O=d?Hh(Wh(e,f),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:b,focusedOptionId:Yh(O,b),focusableOptionsWithIds:O,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,x=a&&s;return a&&!x&&(w={value:Ip(h,f,f[0]||null),options:f,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),Ad(Ad(Ad({},m),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:x})}}]),n}(c.Component);af.defaultProps=Fh;var sf=(0,c.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,a=void 0===o?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,d=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,f=e.value,m=_d(e,Id),g=Md((0,c.useState)(void 0!==s?s:n),2),O=g[0],v=g[1],b=Md((0,c.useState)(void 0!==l?l:i),2),y=b[0],w=b[1],x=Md((0,c.useState)(void 0!==f?f:a),2),S=x[0],E=x[1],k=(0,c.useCallback)(function(e,t){"function"==typeof u&&u(e,t),E(e)},[u]),R=(0,c.useCallback)(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)},[d]),C=(0,c.useCallback)(function(){"function"==typeof h&&h(),w(!0)},[h]),P=(0,c.useCallback)(function(){"function"==typeof p&&p(),w(!1)},[p]),A=void 0!==s?s:O,Q=void 0!==l?l:y,T=void 0!==f?f:S;return Ad(Ad({},m),{},{inputValue:A,menuIsOpen:Q,onChange:k,onInputChange:R,onMenuClose:P,onMenuOpen:C,value:T})}(e);return c.createElement(af,Ce({ref:t},n))}),lf=sf;window.wp.blockEditor,window.wp.blocks;const cf=window.wp.htmlEntities;var uf=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor"},React.createElement("path",{d:"M6.1443 6.15055C9.34843 2.94642 14.6518 2.94642 17.8559 6.15055L15.3147 8.69176H21.9439V2.06256L19.8446 4.16179C15.5357 -0.147191 8.46452 -0.147191 4.15554 4.16179C1.72485 6.59248 0.730475 9.90708 1.06193 13.1112H3.82408C3.49262 10.6805 4.26601 8.02884 6.1443 6.15055Z",fill:"currentColor"}),React.createElement("path",{d:"M22.9366 10.9017H20.1745C20.5059 13.3324 19.7325 15.9841 17.8542 17.8624C14.6501 21.0665 9.34676 21.0665 6.14268 17.8624L8.68389 15.3212H2.05469V21.9504L4.15392 19.8512C8.4629 24.1601 15.4236 24.1601 19.7325 19.8512C22.2737 17.4205 23.2681 14.1059 22.9366 10.9017Z",fill:"currentColor"}))},df=function(){return React.createElement("svg",{width:"34",height:"24",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10 17.5l-1.45-1.32C4.4 12.36 2 10.28 2 7.5 2 5.42 3.42 4 5.5 4c1.54 0 3.04 1 3.57 2.36h1.87C11.46 5 12.96 4 14.5 4 16.58 4 18 5.42 18 7.5c0 2.78-2.4 4.86-6.55 8.68L10 17.5z",fill:"none"}))},pf=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"21",viewBox:"0 0 23 21",fill:"currentColor"},React.createElement("path",{d:"M20.2913 2.61183C19.7805 2.10083 19.1741 1.69547 18.5066 1.41891C17.8392 1.14235 17.1238 1 16.4013 1C15.6788 1 14.9634 1.14235 14.2959 1.41891C13.6285 1.69547 13.022 2.10083 12.5113 2.61183L11.4513 3.67183L10.3913 2.61183C9.3596 1.58013 7.96032 1.00053 6.50129 1.00053C5.04226 1.00053 3.64298 1.58013 2.61129 2.61183C1.5796 3.64352 1 5.04279 1 6.50183C1 7.96086 1.5796 9.36013 2.61129 10.3918L11.4513 19.2318L20.2913 10.3918C20.8023 9.88107 21.2076 9.27464 21.4842 8.60718C21.7608 7.93972 21.9031 7.22431 21.9031 6.50183C21.9031 5.77934 21.7608 5.06393 21.4842 4.39647C21.2076 3.72901 20.8023 3.12258 20.2913 2.61183Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},hf=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M7.37544 2C7.37544 1.65482 7.65526 1.375 8.00044 1.375C8.34562 1.375 8.62544 1.65482 8.62544 2V9.49121L11.5356 6.58105C11.7797 6.33698 12.1753 6.33698 12.4194 6.58105C12.6635 6.82513 12.6635 7.22077 12.4194 7.46484L8.44282 11.4424C8.19875 11.6865 7.80214 11.6865 7.55806 11.4424L3.5815 7.46484C3.33742 7.22077 3.33742 6.82513 3.5815 6.58105C3.82557 6.33698 4.22121 6.33698 4.46528 6.58105L7.37544 9.49121V2Z",fill:"white"}),React.createElement("path",{d:"M1.375 13V10C1.375 9.65482 1.65482 9.375 2 9.375C2.34518 9.375 2.625 9.65482 2.625 10V13C2.625 13.2071 2.79289 13.375 3 13.375H13C13.2071 13.375 13.375 13.2071 13.375 13V10C13.375 9.65482 13.6548 9.375 14 9.375C14.3452 9.375 14.625 9.65482 14.625 10V13C14.625 13.8975 13.8975 14.625 13 14.625H3C2.10254 14.625 1.375 13.8975 1.375 13Z",fill:"white"}))},ff=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M10.2168 6.01685C10.4052 6.36235 10.7221 6.62112 11.1104 6.70239C11.5047 6.7848 11.908 6.66835 12.2129 6.38892C12.6721 5.96794 13.1316 5.54719 13.5908 5.12622C13.9105 4.83318 14.2301 4.53939 14.5498 4.24634C14.2969 6.25538 14.0439 8.26462 13.791 10.2737H2.22266C1.96972 8.26422 1.71583 6.25481 1.46289 4.24536C2.24239 4.9599 3.02238 5.67449 3.80176 6.38892C4.10679 6.66852 4.50974 6.785 4.9043 6.70239C5.29249 6.62111 5.60845 6.36227 5.79688 6.01685L8.00684 1.96509L10.2168 6.01685Z",stroke:"white",strokeWidth:"1.3545"}),React.createElement("path",{d:"M13.7234 14.8507H2.29045C1.92294 14.8507 1.625 14.4866 1.625 14.0374V12.2507H14.3889V14.0374C14.3888 14.4866 14.0909 14.8507 13.7234 14.8507Z",fill:"currentColor"}))},mf=(0,a.memo)(function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons dashicons-visibility"}),(0,l.__)("Live Preview","easy-accordion-free"))}),gf="Enter",Of=function(e){var t=e.type,n=e.size,r=e.loop,i=e.unit,o=e.c_s,a=e.classes,s=function(){var e={};switch(t){case"image":case"circle":e={width:n?n+"px":"300px",height:n?n+"px":"300px"};break;case"title":e={width:"".concat(n||"100").concat(i||"%")};break;case"button":e={width:n?n+"px":"90px"};break;case"custom_size":e={width:"".concat(o.size1?o.size1:"100").concat(o.unit1?o.unit1:"%"),height:"".concat(o.size2?o.size2:"20").concat(o.unit2?o.unit2:"px"),borderRadius:o.br?o.br+"px":"0px"}}return e};return React.createElement(React.Fragment,null,r?React.createElement(React.Fragment,null,Array(parseInt(r)).fill("1").map(function(e,n){return React.createElement("div",{key:n,className:"sp_eab_patterns_skeleton__".concat(t," sp-eap_patterns_frequency loop ").concat(a||""),style:s()})})):React.createElement("div",{className:"sp_eab_patterns_skeleton__".concat(t," sp-eap_patterns_frequency ").concat(a||""),style:s()}))},vf=(0,a.memo)(function(e){var t=e.data,n=e.wishListArr,r=e.setWListAction,i=e.reload,o=e.reloadId,s=e.onImport,c=null==n?void 0:n.includes(String(t.ID)),u=i&&o===t.ID,d=t.pro,p=(0,a.useCallback)(function(){r(t.ID,c?"remove":"")},[t.ID,c,r]),h=(0,a.useCallback)(function(){d||s(t.ID,t.pro)},[t.ID,t.pro,d,s]);return React.createElement("div",{className:"sp-eab-pattern-card-body"},React.createElement("div",{className:"sp-eap-patterns-item-list"},React.createElement("div",{className:"sp-eap-patterns-item-list-overlay"},React.createElement("a",{className:"sp-eap-pattern-img"},React.createElement("img",{src:t.image,loading:"lazy",alt:t.name})),React.createElement("div",{className:"sp-eap-pattern-overlay"},React.createElement("a",{className:"sp-eap-patterns-overlay-view",href:"https://easyaccordion.io/patterns/#demo".concat(t.ID),target:"_blank",rel:"noopener noreferrer","aria-label":(0,l.__)("Preview","easy-accordion-free")+" "+t.name},React.createElement(mf,null)))),React.createElement("div",{className:"sp-eap-patterns-item-list-info"},React.createElement("div",{className:"sp-eab-patterns-item-info"},React.createElement("span",null,(0,cf.decodeEntities)((null==t?void 0:t.name)||""))),React.createElement("span",{className:"sp-eap-patterns-action-btn"},React.createElement(Fc.Tooltip,{text:c?(0,l.__)("Remove from wishlist","easy-accordion-free"):(0,l.__)("Add to wishlist","easy-accordion-free"),delay:300,placement:"top"},React.createElement("span",{className:"sp-eap-pattern-wishlist",onClick:p,role:"button",tabIndex:0,onKeyPress:function(e){e.key!==gf&&" "!==e.key||p()},"aria-label":c?(0,l.__)("Remove from wishlist","easy-accordion-free"):(0,l.__)("Add to wishlist","easy-accordion-free")},c?React.createElement(pf,null):React.createElement(df,null))),d?React.createElement("a",{className:"sp-eap-patterns-btn-pro",target:"_blank",rel:"noopener noreferrer",href:"https://easyaccordion.io/pricing/","aria-label":(0,l.__)("Upgrade to Pro to access this pattern","easy-accordion-free")},React.createElement(ff,null)," ",(0,l.__)("PRO","easy-accordion-free")):React.createElement("span",{onClick:h,className:"sp-eap-patterns-import-btn",role:"button",tabIndex:0,onKeyPress:function(e){e.key!==gf&&" "!==e.key||h()},"aria-label":(0,l.__)("Import","easy-accordion-free")+" "+t.name,style:u?{pointerEvents:"none",opacity:.6}:{}},u?React.createElement("i",{className:" sp-rotate"},React.createElement(uf,null)):React.createElement(React.Fragment,null,React.createElement(hf,null)," ",(0,l.__)("Import","easy-accordion-free")))))))}),bf=(0,a.memo)(function(){return React.createElement("div",{className:"sp-eap-pattern-grid sp-eap-pattern-col3 skeletonOverflow"},Array(25).fill(null).map(function(e,t){return React.createElement("div",{key:t,className:"sp-eap-patterns-item-list"},React.createElement("div",{className:"sp-eap-patterns-item-list-overlay"},React.createElement(Of,{type:"custom_size",c_s:{size1:100,unit1:"%",size2:400,unit2:"px"}})),React.createElement("div",{className:"sp-eap-patterns-item-list-info"},React.createElement(Of,{type:"custom_size",c_s:{size1:50,unit1:"%",size2:25,unit2:"px",br:2}}),React.createElement("span",{className:"sp-eap-patterns-action-btn"},React.createElement("span",{className:"sp-eap-pattern-wishlist"},React.createElement(Of,{type:"custom_size",c_s:{size1:30,unit1:"px",size2:25,unit2:"px",br:2}})),React.createElement(Of,{type:"custom_size",c_s:{size1:70,unit1:"px",size2:25,unit2:"px",br:2}}))))}))}),yf=(0,a.memo)(function(){return React.createElement("span",{className:"sp-eap-patterns-image-rotate"},(0,l.__)("No Data found...","easy-accordion-free"))});(0,a.memo)(function(e){var t=e.premadeLists,n=e.column,r=e.searchQuery,i=e.freePro,o=e.showWishList,s=e.wishListArr,l=e.setWListAction,c=e.reload,u=e.reloadId,d=e.onImport,p=e.loading,h=(0,a.useMemo)(function(){return t.filter(function(e){var t,n=!r||(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(r.toLowerCase())),a="all"===i||"pro"===i&&e.pro||"free"===i&&!e.pro,l=!o||(null==s?void 0:s.includes(String(e.ID)));return n&&a&&l})},[t,r,i,o,s]);return p?React.createElement(bf,null):0===h.length?React.createElement(yf,null):React.createElement("div",{className:"sp-eap-pattern-grid sp-eap-pattern-col".concat(n)},h.map(function(e){return React.createElement(vf,{key:e.ID,data:e,wishListArr:s,setWListAction:l,reload:c,reloadId:u,onImport:d})}))});var wf=["children","className"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?(0,s.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType(e.target.closest("button").value):(0,s.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(e.target.closest("button").value)},t=qc(),n=function(){return"Desktop"===t?React.createElement(Ef,null):"Tablet"===t?React.createElement(kf,null):"Mobile"===t?React.createElement(Rf,null):void 0};return React.createElement("div",{className:"sp-eab-responsive-picker"},React.createElement("div",{className:"sp-eab-units-indicator"},React.createElement("span",null,React.createElement(n,null)),React.createElement("div",{className:"sp-eab-units-btn"},React.createElement(Fc.Button,{className:"Desktop"===t?"active":"",value:"Desktop",onClick:e},React.createElement(Ef,null)),React.createElement(Fc.Button,{className:"Tablet"===t?"active":"",value:"Tablet",onClick:e},React.createElement(kf,null)),React.createElement(Fc.Button,{className:"Mobile"===t?"active":"",value:"Mobile",onClick:e},React.createElement(Rf,null)))))};var Pf=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},React.createElement("path",{stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.333,d:"M8 3.333v9.333M3.333 8h9.334"}))};function Af(e){return Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Af(e)}function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(If(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,If(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,If(d,"constructor",c),If(c,"constructor",l),l.displayName="GeneratorFunction",If(c,i,"GeneratorFunction"),If(d),If(d,i,"Generator"),If(d,r,function(){return this}),If(d,"toString",function(){return"[object Generator]"}),(_f=function(){return{w:o,m:p}})()}function If(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}If=function(e,t,n,r){function o(t,n){If(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},If(e,t,n,r)}function $f(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Df(e){return function(e){if(Array.isArray(e))return zf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Nf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){if(e){if("string"==typeof e)return zf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zf(e,t):void 0}}function zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3&&React.createElement("span",{onClick:function(t){t.stopPropagation(),c("remove",null==e?void 0:e.name)},className:"sp-eab-color-remove-button"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",height:24,width:24},React.createElement("path",{fill:"#1E1E1E",d:"m12 13.06 3.712 3.713 1.06-1.061-3.712-3.713 3.713-3.712-1.061-1.06-3.713 3.712-3.712-3.712-1.06 1.06L10.939 12l-3.712 3.713 1.06 1.06L12 13.06Z"}))))}),a&&React.createElement("li",{title:(0,l.__)("Add this color to custom colors","easy-accordion-free"),className:"sp-d-flex sp-align-center sp-justify-center sp-cursor-pointer"},React.createElement("span",{className:"sp-d-flex sp-align-center sp-justify-center",onClick:function(e){e.stopPropagation(),c("add","color-".concat((null==r?void 0:r.length)+1))}},React.createElement(Pf,null)))))};(0,a.memo)(function(e){var t=e.setAttributes,n=e.value,r=e.attributesKey,i=e.label,o=e.onChange,s=e.defaultColor,c=void 0===s?"":s,u=e.resetButton,d=void 0===u||u,p=e.showThemeColors,h=void 0===p||p,f=e.activeState,m=void 0!==f&&f,g=m?n[m]:n,O=Lf((0,a.useState)(g),2),v=O[0],b=O[1],y=Lf((0,a.useState)([]),2),w=y[0],x=y[1],S=Lf((0,a.useState)([]),2),E=S[0],k=S[1],R=Lf((0,a.useState)(!1),2),C=R[0],P=R[1],A=[{name:"color-0",color:"#FF5B2E"},{name:"color-1",color:"#FFFFFF"},{name:"color-2",color:"#2F2F2F"},{name:"color-3",color:"#757575"}].concat(Df(E)),Q=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){$f(o,r,i,a,s,"next",e)}function s(e){$f(o,r,i,a,s,"throw",e)}a(void 0)})}}(_f().m(function e(t){var n,r,i,o,a;return _f().w(function(e){for(;;)switch(e.n){case 0:return(i=new FormData).append("action","sp_eab_color_settings_ajax"),i.append("colorSettingsData",JSON.stringify(t)),i.append("spEabAjaxNonce",null===(n=sp_eab_localize_data)||void 0===n?void 0:n.spEabAjaxNonce),e.n=1,Gl.post(sp_eab_localize_data.ajaxUrl,i);case 1:return o=e.v,e.n=2,null==o||null===(r=o.data)||void 0===r?void 0:r.data;case 2:a=e.v,k((null==a?void 0:a.custom_colors)||[]),x((null==a?void 0:a.theme_colors)||[]);case 3:return e.a(2)}},e)}));return function(_x){return e.apply(this,arguments)}}(),T=function(e,t){var n;n="add"===e?[].concat(Df(E),[{name:t,color:v}]):E.filter(function(e){return e.name!==t}),k(n),Q(n),P(!1)},M=function(e){var i=[].concat(Df(A),Df(w)),a=null==i?void 0:i.find(function(t){return t.color===e});P(!a),b(e),o?o(e):t(Mf({},r,m?Tf(Tf({},n),{},Mf({},m,e)):e))};return React.createElement("div",{className:"sp-eab-color-picker sp-eab-component-mb sp-d-flex sp-justify-between sp-align-center"},React.createElement("span",{className:"sp-eab-component-title"},i),React.createElement("div",{className:"sp-eab-color-picker-right-area sp-d-flex sp-align-center"},d&&React.createElement(Zf,{onClick:function(){M(c)}}),React.createElement(Fc.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return React.createElement(Fc.Button,{onClick:n,"aria-expanded":t},React.createElement(Fc.ColorIndicator,{colorValue:g,onClick:function(){return Q()}}))},onClose:function(e,t){t&&e.stopPropagation()},renderContent:function(){return React.createElement("div",{onMouseDown:function(e){e.stopPropagation()},className:"sp-eab-color-picker-renderer"},React.createElement(Fc.ColorPicker,{className:"sp-eab-color-picker",color:v,onChange:M,colors:A,enableAlpha:!0}),h&&(null==w?void 0:w.length)>0&&React.createElement(jf,{label:(0,l.__)("Theme colors","easy-accordion-free"),colors:w,onChangePanelColor:M,palateName:"theme"}),(null==A?void 0:A.length)>0&&React.createElement(jf,{label:(0,l.__)("Custom colors","easy-accordion-free"),colors:A,onChangePanelColor:M,showNewColorAdd:C,handleCustomColor:T}))}})))});var Bf=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:14,height:14,viewBox:"0 0 14 14",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_13968_266e)"},React.createElement("path",{d:"M2.26612 4.11595C3.37829 2.2925 5.49847 1.20166 7.74998 1.50927C10.7824 1.92355 12.9048 4.71765 12.4905 7.75006C12.0762 10.7825 9.2821 12.9049 6.24972 12.4906C3.99821 12.183 2.24836 10.5634 1.66601 8.5085M2.02244 2.49303L2.04627 4.36557L3.84791 4.2143",stroke:"#949494",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_13968_266e"},React.createElement("rect",{width:14,height:14,fill:"white"}))))};const Zf=function(e){var t=e.onClick;return React.createElement(Fc.Button,{className:"sp-eab-component-header-reset",onClick:t},React.createElement(Bf,null))};function Xf(e){return Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xf(e)}function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&r"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Pm=()=>Math.random().toString(36).substring(7).split("").join("."),Am={INIT:`@@redux/INIT${Pm()}`,REPLACE:`@@redux/REPLACE${Pm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pm()}`};function Qm(e,t,n){if("function"!=typeof e)throw new Error(Rm(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Rm(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Rm(1));return n(Qm)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function u(){if(l)throw new Error(Rm(3));return i}function d(e){if("function"!=typeof e)throw new Error(Rm(4));if(l)throw new Error(Rm(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Rm(6));t=!1,c(),a.delete(n),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Rm(7));if(void 0===e.type)throw new Error(Rm(8));if("string"!=typeof e.type)throw new Error(Rm(17));if(l)throw new Error(Rm(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach(e=>{e()}),e}return p({type:Am.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Rm(10));r=e,p({type:Am.REPLACE})},[Cm]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Rm(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Cm](){return this}}}}}function Tm(e,t){return function(...n){return t(e.apply(this,n))}}function Mm(e,t){if("function"==typeof e)return Tm(e,t);if("object"!=typeof e||null===e)throw new Error(Rm(16));const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=Tm(i,t))}return n}function _m(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}n(418);var Im=c.version.startsWith("19"),$m=Symbol.for(Im?"react.transitional.element":"react.element"),Dm=Symbol.for("react.portal"),Lm=Symbol.for("react.fragment"),Nm=Symbol.for("react.strict_mode"),zm=Symbol.for("react.profiler"),jm=Symbol.for("react.consumer"),Bm=Symbol.for("react.context"),Zm=Symbol.for("react.forward_ref"),Xm=Symbol.for("react.suspense"),Vm=Symbol.for("react.suspense_list"),Fm=Symbol.for("react.memo"),qm=Symbol.for("react.lazy"),Wm=Zm,Gm=Fm;function Hm(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,p=!1;return function(h,f){return p?function(p,h){const f=!o(h,l),m=!i(p,s,h,l);return s=p,l=h,f&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):f?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}(h,f):(s=h,l=f,c=e(s,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}function Um(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Ym(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Km(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ym(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=Ym(i),i=r(t,n)),i},r}}function Jm(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function eg(e,t,n){return{...n,...e,...t}}var tg={notify(){},get:()=>[]};function ng(e,t){let n,r=tg,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=tg)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}var rg=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),ig=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),og=(()=>rg||ig?c.useLayoutEffect:c.useEffect)();function ag(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function sg(e,t){if(ag(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({}))}(e),h=function(e){return e&&"object"==typeof e?Um(t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t)):e?"function"==typeof e?Km(e):Jm(e,"mapDispatchToProps"):Um(e=>({dispatch:e}))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,o=!1;return function(t,n,a){const s=e(t,n,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}}(e):Jm(e,"mergeProps"):()=>eg}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:f,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function u(t){const[n,i,o]=c.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),a=c.useMemo(()=>d,[n,d]),s=c.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store),p=l?t.store:s.store,h=u?s.getServerState:p.getState,f=c.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return Hm(t(e,i),n(e,i),r(e,i),e,i)}(p.dispatch,r),[p]),[g,O]=c.useMemo(()=>{if(!m)return Eg;const e=ng(p,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[p,l,s]),v=c.useMemo(()=>l?s:{...s,subscription:g},[l,s,g]),b=c.useRef(void 0),y=c.useRef(o),w=c.useRef(void 0),x=c.useRef(!1),S=c.useRef(!1),E=c.useRef(void 0);og(()=>(S.current=!0,()=>{S.current=!1}),[]);const k=c.useMemo(()=>()=>w.current&&o===y.current?w.current:f(p.getState(),o),[p,o]),R=c.useMemo(()=>e=>g?function(e,t,n,r,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,i.current)}catch(e){h=e,p=e}h||(p=null),n===o.current?a.current||c():(o.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,g,f,y,b,x,S,w,O,e):()=>{},[g]);var C,P;let A;C=kg,P=[y,b,x,o,w,O],og(()=>C(...P),void 0);try{A=c.useSyncExternalStore(R,k,h?()=>f(h(),o):k)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}og(()=>{E.current=void 0,w.current=void 0,b.current=A});const Q=c.useMemo(()=>c.createElement(e,{...A,ref:i}),[i,e,A]);return c.useMemo(()=>m?c.createElement(a.Provider,{value:v},Q):Q,[a,Q,v])}const g=c.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,l){const t=c.forwardRef(function(e,t){return c.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,bg(t,e)}return bg(g,e)}},Pg=function(e){const{children:t,context:n,serverState:r,store:i}=e,o=c.useMemo(()=>{const e=ng(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),a=c.useMemo(()=>i.getState(),[i]);og(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,a]);const s=n||Sg;return c.createElement(s.Provider,{value:o},t)},Ag=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},Qg=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Tg=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Mg={top:0,right:0,bottom:0,left:0},_g=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Mg:n,i=e.border,o=void 0===i?Mg:i,a=e.padding,s=void 0===a?Mg:a,l=Ag(Qg(t,r)),c=Ag(Tg(t,o)),u=Ag(Tg(c,s));return{marginBox:l,borderBox:Ag(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},Ig=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},$g=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return _g({borderBox:l,border:o,margin:a,padding:s})},Dg=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),$g(e,t)},Lg=function(e,t){var n={top:Ig(t.marginTop),right:Ig(t.marginRight),bottom:Ig(t.marginBottom),left:Ig(t.marginLeft)},r={top:Ig(t.paddingTop),right:Ig(t.paddingRight),bottom:Ig(t.paddingBottom),left:Ig(t.paddingLeft)},i={top:Ig(t.borderTopWidth),right:Ig(t.borderRightWidth),bottom:Ig(t.borderBottomWidth),left:Ig(t.borderLeftWidth)};return _g({borderBox:e,margin:n,padding:r,border:i})},Ng=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Lg(t,n)};const zg=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o{const r=(i=n,o=t.options,{...i,...o});var i,o;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}});return function(){r.forEach(e=>{e()})}}jg.bind(null,"warn"),jg.bind(null,"error");class Xg extends Error{}function Vg(e,t){throw new Xg("Invariant failed")}Xg.prototype.toString=function(){return this.message};class Fg extends u().Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=Bg,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof Xg&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=Zg(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof Xg))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const qg=e=>e+1,Wg=(e,t)=>{const n=e.droppableId===t.droppableId,r=qg(e.index),i=qg(t.index);return n?`\n You have moved the item from position ${r}\n to position ${i}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${i}\n `},Gg=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,Hg=e=>`\n The item has returned to its starting position\n of ${qg(e.index)}\n`,Ug="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Yg=e=>`\n You have lifted an item in position ${qg(e.source.index)}\n`,Kg=e=>{const t=e.destination;if(t)return Wg(e.source,t);const n=e.combine;return n?Gg(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Jg=e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${Hg(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${Wg(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Gg(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${Hg(e.source)}\n `};function eO(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function tO(e,t){if(e.length!==t.length)return!1;for(let n=0;n({inputs:t,result:e()}))[0],r=(0,c.useRef)(!0),i=(0,c.useRef)(n),o=r.current||Boolean(t&&i.current.inputs&&tO(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,c.useEffect)(()=>{r.current=!1,i.current=o},[o]),o.result}function rO(e,t){return nO(()=>e,t)}const iO={x:0,y:0},oO=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),aO=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),sO=(e,t)=>e.x===t.x&&e.y===t.y,lO=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),cO=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},uO=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),dO=(e,t)=>Math.min(...t.map(t=>uO(e,t))),pO=e=>t=>({x:e(t.x),y:e(t.y)}),hO=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),fO=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],mO=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Ag({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):Ag(e);var gO=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const i=((e,t)=>t?hO(e,t.scroll.diff.displacement):e)(e.marginBox,r),o=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(i,n,t);return{page:e,withPlaceholder:t,active:mO(o,r)}},OO=(e,t)=>{e.frame||Vg();const n=e.frame,r=aO(t,n.scroll.initial),i=lO(r),o={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}},a=gO({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};function vO(e,t=tO){let n=null;function r(...r){if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;const i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}const bO=vO(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),yO=vO(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),wO=vO(e=>Object.values(e)),xO=vO(e=>Object.values(e));var SO=vO((e,t)=>{const n=xO(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return n});function EO(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function kO(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var RO=vO((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),CO=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const PO={point:iO,value:0},AO={invisible:{},visible:{},all:[]},QO={displaced:AO,displacedBy:PO,at:null};var TO=(e,t)=>n=>e<=n&&n<=t,MO=e=>{const t=TO(e.top,e.bottom),n=TO(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const a=r.tope.bottom,s=r.lefte.right;return!(!a||!s)||(a&&o||s&&i)}},_O=e=>{const t=TO(e.top,e.bottom),n=TO(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const IO={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},$O={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},DO=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:i})=>{const o=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:iO;return hO(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(o,t,i)&&((e,t,n)=>n(t)(e))(o,n,i)},LO=e=>DO({...e,isVisibleThroughFrameFn:_O});function NO({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:i,last:o}){return e.reduce(function(e,a){const s=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ag(Qg(n,r))}(a,n),l=a.descriptor.id;var c;if(e.all.push(l),c={target:s,destination:t,viewport:r,withDroppableDisplacement:!0},!DO({...c,isVisibleThroughFrameFn:MO}))return e.invisible[a.descriptor.id]=!0,e;const u=((e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:i}=t;if(r[e])return!1;const o=i[e];return!o||o.shouldAnimate})(l,o,i),d={draggableId:l,shouldAnimate:u};return e.visible[l]=d,e},{all:[],visible:{},invisible:{}})}function zO({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const i=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:AO,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function jO({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:i,last:o,index:a,forceShouldAnimate:s}){const l=CO(e,n);if(null==a)return zO({insideDestination:t,inHomeList:l,displacedBy:i,destination:n});const c=t.find(e=>e.descriptor.index===a);if(!c)return zO({insideDestination:t,inHomeList:l,displacedBy:i,destination:n});const u=RO(e,t),d=t.indexOf(c);return{displaced:NO({afterDragging:u.slice(d),destination:n,displacedBy:i,last:o,viewport:r.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function BO(e,t){return Boolean(t.effected[e])}const ZO=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,XO=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,VO=({axis:e,moveRelativeTo:t,isMoving:n})=>cO(e.line,t.marginBox[e.end]+ZO(e,n),XO(e,t.marginBox,n)),FO=({axis:e,moveRelativeTo:t,isMoving:n})=>cO(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),XO(e,t.marginBox,n));var qO=(e,t)=>{const n=e.frame;return n?oO(t,n.scroll.diff.displacement):t},WO=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:i})=>{const o=t.page.borderBox.center,a=e.at;return n&&a?"REORDER"===a.type?(({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i})=>{const o=SO(r.descriptor.id,n),a=t.page,s=r.axis;if(!o.length)return(({axis:e,moveInto:t,isMoving:n})=>cO(e.line,t.contentBox[e.start]+ZO(e,n),XO(e,t.contentBox,n)))({axis:s,moveInto:r.page,isMoving:a});const{displaced:l,displacedBy:c}=e,u=l.all[0];if(u){const e=n[u];if(BO(u,i))return FO({axis:s,moveRelativeTo:e.page,isMoving:a});const t=$g(e.page,c.point);return FO({axis:s,moveRelativeTo:t,isMoving:a})}const d=o[o.length-1];if(d.descriptor.id===t.descriptor.id)return a.borderBox.center;if(BO(d.descriptor.id,i)){const e=$g(d.page,lO(i.displacedBy.point));return VO({axis:s,moveRelativeTo:e,isMoving:a})}return VO({axis:s,moveRelativeTo:d.page,isMoving:a})})({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i}):(({afterCritical:e,impact:t,draggables:n})=>{const r=kO(t);r||Vg();const i=r.draggableId,o=n[i].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const i=Boolean(e.visible[n]||e.invisible[n]);return BO(n,t)?i?iO:lO(r.point):i?r.point:iO})({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return oO(o,a)})({impact:e,draggables:r,afterCritical:i}):o})(e),n=e.droppable;return n?qO(n,t):t},GO=(e,t)=>{const n=aO(t,e.scroll.initial),r=lO(n);return{frame:Ag({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function HO(e,t){return e.map(e=>t[e])}var UO=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>oO(e.scroll.diff.displacement,t))(n,e),i=aO(r,t.page.borderBox.center);return oO(t.client.borderBox.center,i)},YO=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const a=aO(n,e.page.borderBox.center),s={target:hO(e.page.borderBox,a),destination:t,withDroppableDisplacement:i,viewport:r};return o?(e=>{return DO({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=TO(e.top,e.bottom),r=TO(e.left,e.right);return e=>t===IO?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):LO(s)},KO=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!n.isEnabled)return null;const c=SO(n.descriptor.id,r),u=CO(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:i})=>{if(!n.isCombineEnabled)return null;if(!EO(i))return null;function o(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...i,at:t}}const a=i.displaced.all,s=a.length?a[0]:null;if(e)return s?o(s):null;const l=RO(t,r);if(!s)return l.length?o(l[l.length-1].descriptor.id):null;const c=l.findIndex(e=>e.descriptor.id===s);-1===c&&Vg();const u=c-1;return u<0?null:o(l[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:i})||(({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||Vg(),"REORDER"===c.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const i=r.index,o=e?i+1:i-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return o(t?s:s+1)?null:o})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:o});return null==r?null:jO({draggable:n,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const o=r.draggableId,a=n[o].descriptor.index;return BO(o,i)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:i,displaced:a.displaced,draggables:r,combine:c.combine,afterCritical:l});return null==u?null:jO({draggable:n,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:i,viewport:o,afterCritical:l});if(!d)return null;const p=WO({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:l});if(YO({draggable:t,destination:n,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:UO({pageBorderBoxCenter:p,draggable:t,viewport:o}),impact:d,scrollJumpRequest:null};const h=aO(p,a),f=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:i})=>{const o=GO(t,oO(t.scroll.current,i)),a=n.frame?OO(n,oO(n.frame.scroll.current,i)):n,s=e.displaced,l=NO({afterDragging:HO(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=NO({afterDragging:HO(s.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},p=[s,l,c];return s.all.forEach(e=>{const t=function(e,t){for(let n=0;n{const t=e.subject.active;return t||Vg(),t},ev=(e,t)=>{const n=e.page.borderBox.center;return BO(e.descriptor.id,t)?aO(n,t.displacedBy.point):n},tv=(e,t)=>{const n=e.page.borderBox;return BO(e.descriptor.id,t)?hO(n,lO(t.displacedBy.point)):n};var nv=vO(function(e,t){const n=t[e.line];return{value:n,point:cO(e.line,n)}});const rv=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),iv=(e,t,n)=>{const r=e.frame;CO(t,e)&&Vg(),e.subject.withPlaceholder&&Vg();const i=nv(e.axis,t.displaceBy).point,o=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return cO(r.line,t[r.line]);const i=e.subject.page.contentBox[r.size],o=SO(e.descriptor.id,n).reduce((e,t)=>e+t.client.marginBox[r.size],0)+t[r.line]-i;return o<=0?null:cO(r.line,o)})(e,i,n),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=gO({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=o?oO(r.scroll.max,o):r.scroll.max,l=rv(r,s),c=gO({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}};var ov=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},av=({state:e,type:t})=>{const n=((e,t)=>{const n=ov(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),i=e.dimensions.droppables[e.critical.droppable.id],o=n||i,a=o.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!r)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:p}=e.dimensions;return s?KO({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:o,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:i,droppables:o,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:i})=>{const o=n.subject.active;if(!o)return null;const a=n.axis,s=TO(o[a.start],o[a.end]),l=wO(r).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>MO(i.frame)(JO(e))).filter(t=>{const n=JO(t);return e?o[a.crossAxisEnd]{const t=JO(e),n=TO(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||n(o[a.start])||n(o[a.end])}).sort((t,n)=>{const r=JO(t)[a.crossAxisStart],i=JO(n)[a.crossAxisStart];return e?r-i:i-r}).filter((e,t,n)=>JO(e)[a.crossAxisStart]===JO(n[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const c=l.filter(e=>TO(JO(e)[a.start],JO(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>JO(e)[a.start]-JO(t)[a.start])[0]:l.sort((e,n)=>{const r=dO(t,fO(JO(e))),i=dO(t,fO(JO(n)));return r!==i?r-i:JO(e)[a.start]-JO(n)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:o,viewport:a});if(!l)return null;const c=SO(l.descriptor.id,i),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:i})=>{const o=r.filter(e=>LO({target:tv(e,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,r)=>{const o=uO(e,qO(n,ev(t,i))),a=uO(e,qO(n,ev(r,i)));return o{if(!t){if(n.length)return null;const e={displaced:AO,displacedBy:PO,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},t=WO({impact:e,draggable:r,droppable:o,draggables:i,afterCritical:s}),l=CO(r,o)?o:iv(o,r,i);return YO({draggable:r,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[o.axis.line]<=t.page.borderBox.center[o.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||l?e:e+1})(),u=nv(o.axis,r.displaceBy);return jO({draggable:r,insideDestination:n,destination:o,viewport:a,displacedBy:u,last:AO,index:c})})({previousPageBorderBoxCenter:t,destination:l,draggable:n,draggables:i,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!d)return null;const p=WO({impact:d,draggable:n,droppable:l,draggables:i,afterCritical:s});return{clientSelection:UO({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null}})({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:o,draggables:d,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function sv(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function lv(e){const t=TO(e.top,e.bottom),n=TO(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const cv=(e,t)=>Ag(hO(e,t));function uv({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var dv=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:i,viewport:o,afterCritical:a})=>{const s=cv(t.page.borderBox,e),l=function({pageBorderBox:e,draggable:t,droppables:n}){const r=wO(n).filter(t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(i=n,!((r=e).lefti.left&&r.topi.top))return!1;var r,i;if(lv(n)(e.center))return!0;const o=t.axis,a=n.center[o.crossAxisLine],s=e[o.crossAxisStart],l=e[o.crossAxisEnd],c=TO(n[o.crossAxisStart],n[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?sa)});return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,i=n.map(t=>{const n=t.axis,i=cO(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:uO(r,i)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}({pageBorderBox:s,draggable:t,droppables:r});if(!l)return QO;const c=r[l],u=SO(c.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?cv(t,n.scroll.diff.value):t})(c,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:i,afterCritical:o})=>{if(!r.isCombineEnabled)return null;const a=r.axis,s=nv(r.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],d=RO(e,i).find(e=>{const t=e.descriptor.id,r=e.page.borderBox,i=r[a.size]/4,s=BO(t,o),d=uv({displaced:n.displaced,id:t});return s?d?u>r[a.start]+i&&ur[a.start]-l+i&&cr[a.start]+l+i&&ur[a.start]+i&&c{const s=n.axis,l=nv(n.axis,t.displaceBy),c=l.value,u=e[s.start],d=e[s.end],p=RO(t,r).find(e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=BO(t,a),o=uv({displaced:i,id:t});return r?o?d<=n:ue.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:p,inHomeList:CO(t,n)});return jO({draggable:t,insideDestination:r,destination:n,viewport:o,last:i,displacedBy:l,index:h})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:i.displaced,viewport:o,afterCritical:a})},pv=(e,t)=>({...e,[t.descriptor.id]:t});var hv=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:i,scrollJumpRequest:o})=>{const a=r||e.viewport,s=n||e.dimensions,l=t||e.current.client.selection,c=aO(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:oO(e.initial.client.borderBoxCenter,c)},d={selection:oO(u.selection,a.scroll.current),borderBoxCenter:oO(u.borderBoxCenter,a.scroll.current),offset:oO(u.offset,a.scroll.diff.value)},p={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:p};const h=s.draggables[e.critical.draggable.id],f=i||dv({pageOffset:d.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:i})=>{const o=(({previousImpact:e,impact:t,droppables:n})=>{const r=ov(e),i=ov(t);if(!r)return n;if(r===i)return n;const o=n[r];if(!o.subject.withPlaceholder)return n;const a=(e=>{const t=e.subject.withPlaceholder;t||Vg();const n=e.frame;if(!n){const t=gO({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||Vg();const i=rv(n,r),o=gO({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}})(o);return pv(n,a)})({previousImpact:r,impact:i,droppables:n}),a=ov(i);if(!a)return o;const s=n[a];if(CO(e,s))return o;if(s.subject.withPlaceholder)return o;const l=iv(s,e,t);return pv(o,l)})({draggable:h,impact:f,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:p,dimensions:{draggables:s.draggables,droppables:m},impact:f,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null}},fv=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:i})=>{const o=e.displaced,a=function(e,t){return e.map(e=>t[e])}(o.all,n),s=NO({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:s}},mv=({impact:e,draggable:t,droppable:n,draggables:r,viewport:i,afterCritical:o})=>{const a=WO({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o});return UO({pageBorderBoxCenter:a,draggable:t,viewport:i})},gv=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&Vg();const r=e.impact,i=n||e.viewport,o=t||e.dimensions,{draggables:a,droppables:s}=o,l=a[e.critical.draggable.id],c=ov(r);c||Vg();const u=s[c],d=fv({impact:r,viewport:i,destination:u,draggables:a}),p=mv({impact:d,draggable:l,droppable:u,draggables:a,viewport:i,afterCritical:e.afterCritical});return hv({impact:d,clientSelection:p,state:e,dimensions:o,viewport:i})},Ov=({draggable:e,home:t,draggables:n,viewport:r})=>{const i=nv(t.axis,e.displaceBy),o=SO(t.descriptor.id,n),a=o.indexOf(e);-1===a&&Vg();const s=o.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:l};var u;return{impact:{displaced:NO({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const vv=e=>"SNAP"===e.movementMode,bv=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:pv(e.droppables,t)}))(e.dimensions,t);return!vv(e)||n?hv({state:e,dimensions:r}):gv({state:e,dimensions:r})};function yv(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const wv={phase:"IDLE",completed:null,shouldFlush:!1};var xv=(e=wv,t)=>{if("FLUSH"===t.type)return{...wv,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Vg();const{critical:n,clientSelection:r,viewport:i,dimensions:o,movementMode:a}=t.payload,s=o.draggables[n.draggable.id],l=o.droppables[n.droppable.id],c={selection:r,borderBoxCenter:s.client.borderBox.center,offset:iO},u={client:c,page:{selection:oO(c.selection,i.scroll.initial),borderBoxCenter:oO(c.selection,i.scroll.initial),offset:oO(c.selection,i.scroll.diff.value)}},d=wO(o.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:h}=Ov({draggable:s,home:l,draggables:o.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:o,initial:u,current:u,isWindowScrollAllowed:d,impact:p,afterCritical:h,onLiftImpact:p,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Vg(),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Vg(),(({state:e,published:t})=>{const n=t.modified.map(t=>{const n=e.dimensions.droppables[t.droppableId];return OO(n,t.scroll)}),r={...e.dimensions.droppables,...bO(n)},i=yO((({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map(e=>{const i=e.descriptor.droppableId,o=(e=>{const t=e.frame;return t||Vg(),t})(t[i]),a=o.scroll.diff.value,s=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=$g(e.client,t),i=Dg(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:i}})({draggable:e,offset:oO(r,a),initialWindowScroll:n.scroll.initial});return s})})({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),o={...e.dimensions.draggables,...i};t.removals.forEach(e=>{delete o[e]});const a={droppables:r,draggables:o},s=ov(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:p}=Ov({draggable:c,home:u,draggables:o,viewport:e.viewport}),h=l&&l.isCombineEnabled?e.impact:d,f=dv({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:e.viewport,afterCritical:p}),m={...e,phase:"DRAGGING",impact:f,onLiftImpact:d,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;sv(e)||Vg();const{client:n}=t.payload;return sO(n,e.current.client.selection)?e:hv({state:e,clientSelection:n,impact:vv(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return yv(e);if("COLLECTING"===e.phase)return yv(e);sv(e)||Vg();const{id:n,newScroll:r}=t.payload,i=e.dimensions.droppables[n];if(!i)return e;const o=OO(i,r);return bv(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;sv(e)||Vg();const{id:n,isEnabled:r}=t.payload,i=e.dimensions.droppables[n];i||Vg(),i.isEnabled===r&&Vg();const o={...i,isEnabled:r};return bv(e,o,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;sv(e)||Vg();const{id:n,isCombineEnabled:r}=t.payload,i=e.dimensions.droppables[n];i||Vg(),i.isCombineEnabled===r&&Vg();const o={...i,isCombineEnabled:r};return bv(e,o,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;sv(e)||Vg(),e.isWindowScrollAllowed||Vg();const n=t.payload.newScroll;if(sO(e.viewport.scroll.current,n))return yv(e);const r=GO(e.viewport,n);return vv(e)?gv({state:e,viewport:r}):hv({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!sv(e))return e;const n=t.payload.maxScroll;if(sO(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&Vg();const n=av({state:e,type:t.type});return n?hv({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&Vg(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:i}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Vg(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:i,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function Sv(e,t){return e instanceof Object&&"type"in e&&e.type===t}const Ev=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),kv=()=>({type:"COLLECTION_STARTING",payload:null}),Rv=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Cv=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Pv=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Av=e=>({type:"MOVE",payload:e}),Qv=()=>({type:"MOVE_UP",payload:null}),Tv=()=>({type:"MOVE_DOWN",payload:null}),Mv=()=>({type:"MOVE_RIGHT",payload:null}),_v=()=>({type:"MOVE_LEFT",payload:null}),Iv=e=>({type:"DROP_COMPLETE",payload:e}),$v=e=>({type:"DROP",payload:e}),Dv="cubic-bezier(.2,1,.1,1)",Lv=0,Nv=.7,zv=.75,jv={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Bv=`${jv.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,Zv={fluid:`opacity ${Bv}`,snap:`transform ${Bv}, opacity ${Bv}`,drop:e=>{const t=`${e}s ${Dv}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Bv}`,placeholder:`height ${Bv}, width ${Bv}, margin ${Bv}`},Xv=e=>sO(e,iO)?void 0:`translate(${e.x}px, ${e.y}px)`,Vv=Xv,{minDropTime:Fv,maxDropTime:qv}=jv,Wv=qv-Fv,Gv=({getState:e,dispatch:t})=>n=>r=>{if(!Sv(r,"DROP"))return void n(r);const i=e(),o=r.payload.reason;if("COLLECTING"===i.phase)return void t((a={reason:o},{type:"DROP_PENDING",payload:a}));var a;if("IDLE"===i.phase)return;"DROP_PENDING"===i.phase&&i.isWaiting&&Vg(),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&Vg();const s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:i,onLiftImpact:o})=>n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:AO},didDropInsideDroppable:!0}:{impact:fv({draggables:e,impact:o,destination:r,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=d?EO(u):null,h=d?kO(u):null,f={index:s.draggable.index,droppableId:s.droppable.id},m={draggableId:c.descriptor.id,type:c.descriptor.type,source:f,reason:o,mode:i.movementMode,destination:p,combine:h},g=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:i})=>{const{draggables:o,droppables:a}=n,s=ov(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=mv({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:l||c,viewport:r});return aO(u,t.client.borderBox.center)})({impact:u,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),O={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:u};if(sO(i.current.client.offset,g)&&!Boolean(m.combine))return void t(Iv({completed:O}));const v=(({current:e,destination:t,reason:n})=>{const r=uO(e,t);if(r<=0)return Fv;if(r>=1500)return qv;const i=Fv+Wv*(r/1500);return Number(("CANCEL"===n?.6*i:i).toFixed(2))})({current:i.current.client.offset,destination:g,reason:o});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:v,completed:O}))};var Hv=()=>({x:window.pageXOffset,y:window.pageYOffset});const Uv=e=>{const t=function({onWindowScroll:e}){const t=zg(function(){e(Hv())}),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=Bg;function i(){return r!==Bg}return{start:function(){i()&&Vg(),r=Zg(window,[n])},stop:function(){i()||Vg(),t.cancel(),r(),r=Bg},isActive:i}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{!t.isActive()&&Sv(n,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>Sv(e,"DROP_COMPLETE")||Sv(e,"DROP_ANIMATE")||Sv(e,"FLUSH"))(n)&&t.stop(),e(n)}};const Yv=(e,t)=>{t()},Kv=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Jv(e,t,n,r){if(!e)return void n(r(t));const i=(e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),i=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=()=>t,i})(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}var eb=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout(()=>(t=>{const n=e.findIndex(e=>e.timerId===t);-1===n&&Vg();const[r]=e.splice(n,1);r.callback()})(n)),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}})();let r=null;const i=n=>{r||Vg(),r=null,Yv(0,()=>Jv(e().onDragEnd,n,t,Jg))};return{beforeCapture:(t,n)=>{r&&Vg(),Yv(0,()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})})},beforeStart:(t,n)=>{r&&Vg(),Yv(0,()=>{const r=e().onBeforeDragStart;r&&r(Kv(t,n))})},start:(i,o)=>{r&&Vg();const a=Kv(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add(()=>{Yv(0,()=>Jv(e().onDragStart,a,t,Yg))})},update:(i,o)=>{const a=EO(o),s=kO(o);r||Vg();const l=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(i,r.lastCritical);l&&(r.lastCritical=i);const c=(d=a,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=a);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,s);if(p&&(r.lastCombine=s),!l&&!c&&!p)return;const h={...Kv(i,r.mode),combine:s,destination:a};n.add(()=>{Yv(0,()=>Jv(e().onDragUpdate,h,t,Kg))})},flush:()=>{r||Vg(),n.flush()},drop:i,abort:()=>{if(!r)return;const e={...Kv(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};i(e)}}})(e,t);return e=>t=>r=>{if(Sv(r,"BEFORE_INITIAL_CAPTURE"))return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if(Sv(r,"INITIAL_PUBLISH")){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if(Sv(r,"DROP_COMPLETE")){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),Sv(r,"FLUSH"))return void n.abort();const i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}};const tb=e=>t=>n=>{if(!Sv(n,"DROP_ANIMATION_FINISHED"))return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&Vg(),e.dispatch(Iv({completed:r.completed}))},nb=e=>{let t=null,n=null;return r=>i=>{if((Sv(i,"FLUSH")||Sv(i,"DROP_COMPLETE")||Sv(i,"DROP_ANIMATION_FINISHED"))&&(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),!Sv(i,"DROP_ANIMATE"))return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(()=>{n=null,t=Zg(window,[o])})}};const rb=e=>t=>n=>{if(t(n),!Sv(n,"PUBLISH_WHILE_DRAGGING"))return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch($v({reason:r.reason})))},ib=_m;var ob=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:i,autoScroller:o})=>{return Qm(xv,ib(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Rm(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map(e=>e(a));return o=_m(...s)(i.dispatch),{...i,dispatch:o}}}((a=n,()=>e=>t=>{Sv(t,"INITIAL_PUBLISH")&&a.dragging(),Sv(t,"DROP_ANIMATE")&&a.dropping(t.payload.completed.result.reason),(Sv(t,"FLUSH")||Sv(t,"DROP_COMPLETE"))&&a.resting(),e(t)}),(e=>()=>t=>n=>{(Sv(n,"DROP_COMPLETE")||Sv(n,"FLUSH")||Sv(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>i=>{if(!Sv(i,"LIFT"))return void r(i);const{id:o,clientSelection:a,movementMode:s}=i.payload,l=t();"DROP_ANIMATING"===l.phase&&n(Iv({completed:l.completed})),"IDLE"!==t().phase&&Vg(),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const c={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:u,dimensions:d,viewport:p}=e.startPublishing(c);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:s,viewport:p}})})(e),Gv,tb,nb,rb,(e=>t=>n=>r=>{if((e=>Sv(e,"DROP_COMPLETE")||Sv(e,"DROP_ANIMATE")||Sv(e,"FLUSH"))(r))return e.stop(),void n(r);if(Sv(r,"INITIAL_PUBLISH")){n(r);const i=t.getState();return"DRAGGING"!==i.phase&&Vg(),void e.start(i)}n(r),e.scroll(t.getState())})(o),Uv,(e=>{let t=!1;return()=>n=>r=>{if(Sv(r,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if(Sv(r,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(Sv(r,"DROP_COMPLETE")){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),eb(r,i))));var a},ab=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const i=aO({x:t,y:e},{x:r,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},sb=()=>{const e=document.documentElement;return e||Vg(),e},lb=()=>{const e=sb();return ab({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function cb(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var ub=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const i=()=>{r||(t.collectionStarting(),r=requestAnimationFrame(()=>{r=null;const{additions:i,removals:o,modified:a}=n,s=Object.keys(i).map(t=>e.draggable.getById(t).getDimension(iO)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),c={additions:s,removals:Object.keys(o),modified:l};n={additions:{},removals:{},modified:{}},t.publish(c)}))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=t=>{n||Vg();const i=n.critical.draggable;"ADDITION"===t.type&&cb(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&cb(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:(r,i)=>{e.droppable.exists(r)||Vg(),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:(r,i)=>{n&&(e.droppable.exists(r)||Vg(),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,i)=>{n&&(e.droppable.exists(r)||Vg(),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:t=>{n&&Vg();const r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},(({critical:e,scrollOptions:t,registry:n})=>{const r=(()=>{const e=Hv(),t=lb(),n=e.y,r=e.x,i=sb(),o=i.clientWidth,a=i.clientHeight;return{frame:Ag({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:iO,displacement:iO}}}})(),i=r.scroll.current,o=e.droppable,a=n.droppable.getAllByType(o.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,t)),s=n.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(i));return{dimensions:{draggables:yO(s),droppables:bO(a)},critical:e,viewport:r}})({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),n.unsubscribe(),n=null}};return o},db=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,pb=e=>{window.scrollBy(e.x,e.y)};const hb=vO(e=>wO(e).filter(e=>!!e.isEnabled&&!!e.frame));const fb={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var mb=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return 0===r?0:(n-e)/r},gb=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{const o=((e,t,n=()=>fb)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const i=1-mb({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)})(e,t,i);return 0===o?0:r?Math.max(((e,t,n)=>{const r=n(),i=r.durationDampening.accelerateAt,o=r.durationDampening.stopDampeningAt,a=t,s=o,l=Date.now()-a;if(l>=o)return e;if(l{const a=((e,t,n=()=>fb)=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,o);return t[r.end]0===e?0:e);var bb=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=Ob({container:t,distanceToEdges:a,dragStartTime:e,axis:IO,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),l=Ob({container:t,distanceToEdges:a,dragStartTime:e,axis:$O,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=vb({x:l,y:s});if(sO(c,iO))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,i=t.width>e.width;return i||r?i&&r?null:{x:i?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:c});return u?sO(u,iO)?null:u:null};const yb=pO(e=>0===e?0:e>0?1:-1),wb=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const i=oO(t,r),o={x:e(i.x,n.x),y:e(i.y,n.y)};return sO(o,iO)?null:o}})(),xb=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=yb(n),o=wb({max:r,current:t,change:i});return!o||0!==i.x&&0===o.x||0!==i.y&&0===o.y},Sb=(e,t)=>xb({current:e.scroll.current,max:e.scroll.max,change:t}),Eb=(e,t)=>{const n=e.frame;return!!n&&xb({current:n.scroll.current,max:n.scroll.max,change:t})};var kb=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:i,getAutoScrollerOptions:o})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const i=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=bb({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&Sb(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o});if(i)return void r(i)}const l=(({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=hb(t).find(t=>(t.frame||Vg(),lv(t.frame.pageMarginBox)(e)))||null;return n})(e,n);return r})({center:a,destination:ov(e.impact),droppables:e.dimensions.droppables});if(!l)return;const c=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=e.frame;if(!a)return null;const s=bb({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&Eb(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o});c&&i(l.descriptor.id,c)},Rb=({move:e,scrollDroppable:t,scrollWindow:n})=>r=>{const i=r.scrollJumpRequest;if(!i)return;const o=ov(r.impact);o||Vg();const a=((e,n)=>{if(!Eb(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Eb(e,t)?wb({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const i=aO(n,r);return t(e.descriptor.id,i),aO(n,i)})(r.dimensions.droppables[o],i);if(!a)return;const s=r.viewport,l=((e,t,r)=>{if(!e)return r;if(!Sb(t,r))return r;const i=((e,t)=>{if(!Sb(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return wb({current:r,max:n,change:t})})(t,r);if(!i)return n(r),null;const o=aO(r,i);return n(o),aO(r,o)})(r.isWindowScrollAllowed,s,a);l&&((t,n)=>{const r=oO(t.current.client.selection,n);e({client:r})})(r,l)};const Cb="data-rfd",Pb=(()=>{const e=`${Cb}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Ab=(()=>{const e=`${Cb}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Qb=(()=>{const e=`${Cb}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Tb={contextId:`${Cb}-scroll-container-context-id`},Mb=(e,t)=>e.map(e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""}).join(" "),_b="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect,Ib=()=>{const e=document.querySelector("head");return e||Vg(),e},$b=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Db(e,t){return Array.from(e.querySelectorAll(t))}var Lb=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Nb(e){return e instanceof Lb(e).HTMLElement}function zb(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach(t=>t(e))}function r(t){return e.draggables[t]||null}const i={register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||Vg(),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)};function o(t){return e.droppables[t]||null}const a={register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||Vg(),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)};return{draggable:i,droppable:a,subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var jb=u().createContext(null),Bb=()=>{const e=document.body;return e||Vg(),e};const Zb={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Xb={separator:"::"};function Vb(e,t=Xb){const n=u().useId();return nO(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var Fb=u().createContext(null);function qb(e){const t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),t}function Wb(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Gb=9,Hb=13,Ub=33,Yb=34,Kb=35,Jb=36,ey={[Hb]:!0,[Gb]:!0};var ty=e=>{ey[e.keyCode]&&e.preventDefault()};const ny=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})(),ry={type:"IDLE"};function iy(){}const oy={[Yb]:!0,[Ub]:!0,[Jb]:!0,[Kb]:!0};const ay={type:"IDLE"},sy=["input","button","textarea","select","option","optgroup","video","audio"];function ly(e,t){if(null==t)return!1;if(sy.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ly(e,t.parentElement)}function cy(e,t){const n=t.target;return!!Nb(n)&&ly(e,n)}var uy=e=>Ag(e.getBoundingClientRect()).center;const dy=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function py(e,t){return null==e?null:e[dy](t)?e:py(e.parentElement,t)}function hy(e,t){return e.closest?e.closest(t):py(e,t)}function fy(e){e.preventDefault()}function my({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function gy({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const i=n.draggable.findById(r);return!!i&&!!i.options.isEnabled&&!!db(t.getState(),r)}const Oy=[function(e){const t=(0,c.useRef)(ry),n=(0,c.useRef)(Bg),r=nO(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const r=e.findClosestDraggableId(t);if(!r)return;const i=e.tryGetLock(r,a,{sourceEvent:t});if(!i)return;t.preventDefault();const o={x:t.clientX,y:t.clientY};n.current(),u(i,o)}}),[e]),i=nO(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}),[e]),o=rO(function(){n.current=Zg(window,[i,r],{passive:!1,capture:!0})},[i,r]),a=rO(()=>{"IDLE"!==t.current.type&&(t.current=ry,n.current(),o())},[o]),s=rO(()=>{const e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[a]),l=rO(function(){const e=function({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:i,clientY:o}=e;if(0!==t)return;const a={x:i,y:o},s=n();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&Vg(),l=s.point,c=a,!(Math.abs(c.x-l.x)>=5||Math.abs(c.y-l.y)>=5))return;var l,c;e.preventDefault();const u=s.actions.fluidLift(a);r({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:r=>{const i=n();"DRAGGING"===i.type?(r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void ty(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&Vg(),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:ny,fn:e}]}({cancel:s,completed:a,getPhase:()=>t.current,setPhase:e=>{t.current=e}});n.current=Zg(window,e,{capture:!0,passive:!1})},[s,a]),u=rO(function(e,n){"IDLE"!==t.current.type&&Vg(),t.current={type:"PENDING",point:n,actions:e},l()},[l]);_b(function(){return o(),function(){n.current()}},[o])},function(e){const t=(0,c.useRef)(iy),n=nO(()=>({eventName:"keydown",fn:function(n){if(n.defaultPrevented)return;if(32!==n.keyCode)return;const i=e.findClosestDraggableId(n);if(!i)return;const o=e.tryGetLock(i,l,{sourceEvent:n});if(!o)return;n.preventDefault();let a=!0;const s=o.snapLift();function l(){a||Vg(),a=!1,t.current(),r()}t.current(),t.current=Zg(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(oy[r.keyCode]?r.preventDefault():ty(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ny,fn:n}]}(s,l),{capture:!0,passive:!1})}}),[e]),r=rO(function(){t.current=Zg(window,[n],{passive:!1,capture:!0})},[n]);_b(function(){return r(),function(){t.current()}},[r])},function(e){const t=(0,c.useRef)(ay),n=(0,c.useRef)(Bg),r=rO(function(){return t.current},[]),i=rO(function(e){t.current=e},[]),o=nO(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const i=e.tryGetLock(r,s,{sourceEvent:t});if(!i)return;const o=t.touches[0],{clientX:a,clientY:l}=o,c={x:a,y:l};n.current(),p(i,c)}}),[e]),a=rO(function(){n.current=Zg(window,[o],{capture:!0,passive:!1})},[o]),s=rO(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(ay),n.current(),a())},[a,i]),l=rO(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),u=rO(function(){const e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},i=Zg(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:i,clientY:o}=t.touches[0],a={x:i,y:o};t.preventDefault(),r.actions.move(a)}},{eventName:"touchend",fn:r=>{const i=n();"DRAGGING"===i.type?(r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&Vg();const i=t.touches[0];if(!i)return;if(!(i.force>=.15))return;const o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();o&&e()}},{eventName:ny,fn:e}]}(t),e),o=Zg(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:ny,fn:e}]}(t),e);n.current=function(){i(),o()}},[l,r,s]),d=rO(function(){const e=r();"PENDING"!==e.type&&Vg();const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})},[r,i]),p=rO(function(e,t){"IDLE"!==r().type&&Vg();const n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()},[u,r,i,d]);_b(function(){return a(),function(){n.current();const e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(ay))}},[r,a,i]),_b(function(){return Zg(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function vy({contextId:e,store:t,registry:n,customSensors:r,enableDefaultSensors:i}){const o=[...i?Oy:[],...r||[]],a=(0,c.useState)(()=>function(){let e=null;function t(){e||Vg(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Vg();const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],s=rO(function(e,t){Wb(e)&&!Wb(t)&&a.tryAbandon()},[a]);_b(function(){let e=t.getState();return t.subscribe(()=>{const n=t.getState();s(e,n),e=n})},[a,t,s]),_b(()=>a.tryAbandon,[a.tryAbandon]);const l=rO(e=>gy({lockAPI:a,registry:n,store:t,draggableId:e}),[a,n,t]),u=rO((r,i,o)=>function({lockAPI:e,contextId:t,store:n,registry:r,draggableId:i,forceSensorStop:o,sourceEvent:a}){if(!gy({lockAPI:e,store:n,registry:r,draggableId:i}))return null;const s=r.draggable.getById(i),l=function(e,t){const n=`[${Ab.contextId}="${e}"]`,r=Db(document,n).find(e=>e.getAttribute(Ab.id)===t);return r&&Nb(r)?r:null}(t,s.descriptor.id);if(!l)return null;if(a&&!s.options.canDragInteractiveElements&&cy(l,a))return null;const c=e.claim(o||Bg);let u="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function p(){return e.isActive(c)}const h=function(e,t){my({expected:e,phase:u,isLockActive:p,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function f(t){function r(){e.release(),u="COMPLETED"}function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){const e=Zg(window,[{eventName:"click",fn:fy,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch($v({reason:e}))}return"PRE_DRAG"!==u&&(r(),Vg()),n.dispatch((e=>({type:"LIFT",payload:e}))(t.liftActionArgs)),u="DRAGGING",{isActive:()=>my({expected:"DRAGGING",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>i("DROP",e),cancel:e=>i("CANCEL",e),...t.actions}}return{isActive:()=>my({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=zg(e=>{h(()=>Av({client:e}))});return{...f({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>h(Qv),moveRight:()=>h(Mv),moveDown:()=>h(Tv),moveLeft:()=>h(_v)};return f({liftActionArgs:{id:i,clientSelection:uy(l),movementMode:"SNAP"},cleanup:Bg,actions:e})},abort:function(){my({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!0})&&e.release()}}}({lockAPI:a,registry:n,contextId:e,store:t,draggableId:r,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null}),[e,a,n,t]),d=rO(t=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof Lb(r).Element))return null;var r;const i=function(e){return`[${Pb.contextId}="${e}"]`}(e),o=hy(n,i);return o&&Nb(o)?o:null}(e,t);return n?n.getAttribute(Pb.draggableId):null}(e,t),[e]),p=rO(e=>{const t=n.draggable.findById(e);return t?t.options:null},[n.draggable]),h=rO(function(){a.isClaimed()&&(a.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null}))},[a,t]),f=rO(()=>a.isClaimed(),[a]),m=nO(()=>({canGetLock:l,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:f}),[l,u,d,p,h,f]);for(let e=0;e(e=>({onBeforeCapture:t=>{(0,xe.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}))(s.current),[s]),d=rO(()=>(e=>({...fb,...e.autoScrollerOptions,durationDampening:{...fb.durationDampening,...e.autoScrollerOptions}}))(s.current),[s]),p=function(e){const t=nO(()=>(e=>`rfd-announcement-${e}`)(e),[e]),n=(0,c.useRef)(null);return(0,c.useEffect)(function(){const e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Ce(e.style,Zb),Bb().appendChild(e),function(){setTimeout(function(){const t=Bb();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)})}},[t]),rO(e=>{const t=n.current;t&&(t.textContent=e)},[])}(t),h=function({contextId:e,text:t}){const n=Vb("hidden-text",{separator:"-"}),r=nO(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:n}),[n,e]);return(0,c.useEffect)(function(){const e=document.createElement("div");return e.id=r,e.textContent=t,e.style.display="none",Bb().appendChild(e),function(){const t=Bb();t.contains(e)&&t.removeChild(e)}},[r,t]),r}({contextId:t,text:o}),f=function(e,t){const n=nO(()=>(e=>{const t=(n=e,e=>`[${e}="${n}"]`);var n;const r=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Pb.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),i=(()=>{const e=`\n transition: ${Zv.outOfTheWay};\n `;return{selector:t(Ab.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),o=[i,r,{selector:t(Qb.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Mb(o,"always"),resting:Mb(o,"resting"),dragging:Mb(o,"dragging"),dropAnimating:Mb(o,"dropAnimating"),userCancel:Mb(o,"userCancel")}})(e),[e]),r=(0,c.useRef)(null),i=(0,c.useRef)(null),o=rO(vO(e=>{const t=i.current;t||Vg(),t.textContent=e}),[]),a=rO(e=>{const t=r.current;t||Vg(),t.textContent=e},[]);_b(()=>{(r.current||i.current)&&Vg();const s=$b(t),l=$b(t);return r.current=s,i.current=l,s.setAttribute(`${Cb}-always`,e),l.setAttribute(`${Cb}-dynamic`,e),Ib().appendChild(s),Ib().appendChild(l),a(n.always),o(n.resting),()=>{const e=e=>{const t=e.current;t||Vg(),Ib().removeChild(t),e.current=null};e(r),e(i)}},[t,a,o,n.always,n.resting,e]);const s=rO(()=>o(n.dragging),[o,n.dragging]),l=rO(e=>{o("DROP"!==e?n.userCancel:n.dropAnimating)},[o,n.dropAnimating,n.userCancel]),u=rO(()=>{i.current&&o(n.resting)},[o,n.resting]);return nO(()=>({dragging:s,dropping:l,resting:u}),[s,l,u])}(t,i),m=rO(e=>{by(a).dispatch(e)},[]),g=nO(()=>Mm({publishWhileDragging:Ev,updateDroppableScroll:Rv,updateDroppableIsEnabled:Cv,updateDroppableIsCombineEnabled:Pv,collectionStarting:kv},m),[m]),O=function(){const e=nO(zb,[]);return(0,c.useEffect)(()=>function(){e.clean()},[e]),e}(),v=nO(()=>ub(O,g),[O,g]),b=nO(()=>(({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const i=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>fb})=>{const r=zg(e),i=zg(t);let o=null;const a=e=>{o||Vg();const{shouldUseTimeDampening:t,dragStartTime:a}=o;kb({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{o&&Vg();const t=Date.now();let r=!1;const i=()=>{r=!0};kb({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:n}),o={dragStartTime:t,shouldUseTimeDampening:r},r&&a(e)},stop:()=>{o&&(r.cancel(),i.cancel(),o=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),o=Rb({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}})({scrollWindow:pb,scrollDroppable:v.scrollDroppable,getAutoScrollerOptions:d,...Mm({move:Av},m)}),[v.scrollDroppable,m,d]),y=function(e){const t=(0,c.useRef)({}),n=(0,c.useRef)(null),r=(0,c.useRef)(null),i=(0,c.useRef)(!1),o=rO(function(e,n){const r={id:e,focus:n};return t.current[e]=r,function(){const n=t.current;n[e]!==r&&delete n[e]}},[]),a=rO(function(t){const n=function(e,t){const n=`[${Pb.contextId}="${e}"]`,r=Db(document,n);if(!r.length)return null;const i=r.find(e=>e.getAttribute(Pb.draggableId)===t);return i&&Nb(i)?i:null}(e,t);n&&n!==document.activeElement&&n.focus()},[e]),s=rO(function(e,t){n.current===e&&(n.current=t)},[]),l=rO(function(){r.current||i.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const e=n.current;e&&a(e)}))},[a]),u=rO(function(e){n.current=null;const t=document.activeElement;t&&t.getAttribute(Pb.draggableId)===e&&(n.current=e)},[]);return _b(()=>(i.current=!0,function(){i.current=!1;const e=r.current;e&&cancelAnimationFrame(e)}),[]),nO(()=>({register:o,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[o,u,l,s])}(t),w=nO(()=>ob({announce:p,autoScroller:b,dimensionMarshal:v,focusMarshal:y,getResponders:l,styleMarshal:f}),[p,b,v,y,l,f]);a.current=w;const x=rO(()=>{const e=by(a);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),S=rO(()=>{const e=by(a).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);n(nO(()=>({isDragging:S,tryAbort:x}),[S,x]));const E=rO(e=>db(by(a).getState(),e),[]),k=rO(()=>sv(by(a).getState()),[]),R=nO(()=>({marshal:v,focus:y,contextId:t,canLift:E,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:O}),[t,v,h,y,E,k,O]);return vy({contextId:t,store:w,registry:O,customSensors:r||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,c.useEffect)(()=>x,[x]),u().createElement(Fb.Provider,{value:R},u().createElement(Pg,{context:jb,store:w},e.children))}function wy(e){const t=u().useId(),n=e.dragHandleUsageInstructions||Ug;return u().createElement(Fg,null,r=>u().createElement(yy,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const xy=(e,t)=>t?Zv.drop(t.duration):e?Zv.snap:Zv.fluid,Sy=(e,t)=>{if(e)return t?Lv:Nv};function Ey(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:i}=e,o=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(i),l=s?((e,t)=>{const n=Xv(e);if(n)return t?`${n} scale(${zv})`:n})(n,o):Vv(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:xy(a,i),transform:l,opacity:Sy(o,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(e):{transform:Vv((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}var ky=u().createContext(null);function Ry(e){const t=(0,c.useContext)(e);return t||Vg(),t}function Cy(e){e.preventDefault()}var Py=(e,t)=>e===t,Ay=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function Qy(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Ty={mapped:{type:"SECONDARY",offset:iO,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qy(null)}},My=Cg(()=>{const e=function(){const e=vO((e,t)=>({x:e,y:t})),t=vO((e,t,n=null,r=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null})),n=vO((e,n,r,i,o=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}));return(r,i)=>{if(Wb(r)){if(r.critical.draggable.id!==i.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=ov(r.impact),l=(o=r.impact).at&&"COMBINE"===o.at.type?o.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,i.isClone,s,l,c)}var o;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==i.draggableId)return null;const n=i.isClone,o=r.dimensions.draggables[i.draggableId],a=e.result,s=a.mode,l=Ay(a),c=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:r.dropDuration,curve:Dv,moveTo:r.newHomeClientOffset,opacity:c?Lv:null,scale:c?zv:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:o,dropping:u,draggingOver:l,combineWith:c,mode:s,forceShouldAnimate:null,snapshot:t(s,n,l,c,u)}}}return null}}(),t=function(){const e=vO((e,t)=>({x:e,y:t})),t=vO(Qy),n=vO((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}})),r=e=>e?n(iO,e,!0):null,i=(t,i,o,a)=>{const s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=kO(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;const i=lO(a.displacedBy.point),s=e(i.x,i.y);return n(s,u,!0)}if(l)return r(u);const d=o.displacedBy.point,p=e(d.x,d.y);return n(p,u,s.shouldAnimate)};return(e,t)=>{if(Wb(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||Ty},{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:jb,areStatePropsEqual:Py})(e=>{const t=(0,c.useRef)(null),n=rO((e=null)=>{t.current=e},[]),r=rO(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:o,registry:a}=Ry(Fb),{type:s,droppableId:l}=Ry(ky),d=nO(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:p,draggableId:h,isEnabled:f,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:O,mapped:v,dropAnimationFinished:b}=e;O||function(e){const t=Vb("draggable"),{descriptor:n,registry:r,getDraggableRef:i,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}=e,l=nO(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}),[o,s,a]),u=rO(e=>{const t=i();return t||Vg(),function(e,t,n=iO){const r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=Lg(i,r),a=Dg(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)},[n,i]),d=nO(()=>({uniqueId:t,descriptor:n,options:l,getDimension:u}),[n,u,l,t]),p=(0,c.useRef)(d),h=(0,c.useRef)(!0);_b(()=>(r.draggable.register(p.current),()=>r.draggable.unregister(p.current)),[r.draggable]),_b(()=>{if(h.current)return void(h.current=!1);const e=p.current;p.current=d,r.draggable.update(d,e)},[d,r.draggable])}(nO(()=>({descriptor:d,registry:a,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:f}),[d,a,r,g,m,f]));const y=nO(()=>f?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":h,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Cy}:null,[i,o,h,f]),w=rO(e=>{"DRAGGING"===v.type&&v.dropping&&"transform"===e.propertyName&&(0,xe.flushSync)(b)},[b,v]),x=nO(()=>{const e=Ey(v),t="DRAGGING"===v.type&&v.dropping?w:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:y}},[i,y,h,v,w,n]),S=nO(()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}),[d.droppableId,d.id,d.index,d.type]);return u().createElement(u().Fragment,null,p(x,v.snapshot,S))});function _y(e){return Ry(ky).isUsingCloneFor!==e.draggableId||e.isClone?u().createElement(My,e):null}function Iy(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return u().createElement(_y,Ce({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const $y=e=>t=>e===t,Dy=$y("scroll"),Ly=$y("auto"),Ny=($y("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),zy=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Ny(n,Dy)||Ny(n,Ly)})(e)?e:zy(e.parentElement);var jy=e=>({x:e.scrollLeft,y:e.scrollTop});const By=e=>!!e&&("fixed"===window.getComputedStyle(e).position||By(e.parentElement));const Zy={passive:!1},Xy={passive:!0};var Vy=e=>e.shouldPublishImmediately?Zy:Xy;const Fy=e=>e&&e.env.closestScrollable||null;function qy(e){const t=(0,c.useRef)(null),n=Ry(Fb),r=Vb("droppable"),{registry:i,marshal:o}=n,a=qb(e),s=nO(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=(0,c.useRef)(s),u=nO(()=>vO((e,n)=>{t.current||Vg();const r={x:e,y:n};o.updateDroppableScroll(s.id,r)}),[s.id,o]),d=rO(()=>{const e=t.current;return e&&e.env.closestScrollable?jy(e.env.closestScrollable):iO},[]),p=rO(()=>{const e=d();u(e.x,e.y)},[d,u]),h=nO(()=>zg(p),[p]),f=rO(()=>{const e=t.current,n=Fy(e);e&&n||Vg(),e.scrollOptions.shouldPublishImmediately?p():h()},[h,p]),m=rO((e,r)=>{t.current&&Vg();const i=a.current,o=i.getDroppableRef();o||Vg();const l=(e=>({closestScrollable:zy(e),isFixedOnPage:By(e)}))(o),c={ref:o,descriptor:s,env:l,scrollOptions:r};t.current=c;const u=(({ref:e,descriptor:t,env:n,windowScroll:r,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s})=>{const l=n.closestScrollable,c=((e,t)=>{const n=Ng(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=Qg({top:r,right:a,bottom:o,left:i},n.border);return _g({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})})(e,l),u=Dg(c,r),d=(()=>{if(!l)return null;const e=Ng(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:Dg(e,r),scroll:jy(l),scrollSize:t,shouldClipSubject:s}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:i,client:o,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=ab({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:iO,displacement:iO}}}})(),c="vertical"===i?IO:$O;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:o,page:a,frame:l,subject:gO({page:a,withPlaceholder:null,axis:c,frame:l})}})({descriptor:t,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:n.isFixedOnPage,direction:i,client:c,page:u,closest:d});return p})({ref:o,descriptor:s,env:l,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(Tb.contextId,n.contextId),d.addEventListener("scroll",f,Vy(c.scrollOptions))),u},[n.contextId,s,f,a]),g=rO(()=>{const e=t.current,n=Fy(e);return e&&n||Vg(),jy(n)},[]),O=rO(()=>{const e=t.current;e||Vg();const n=Fy(e);t.current=null,n&&(h.cancel(),n.removeAttribute(Tb.contextId),n.removeEventListener("scroll",f,Vy(e.scrollOptions)))},[f,h]),v=rO(e=>{const n=t.current;n||Vg();const r=Fy(n);r||Vg(),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),b=nO(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:O,scroll:v}),[O,m,g,v]),y=nO(()=>({uniqueId:r,descriptor:s,callbacks:b}),[b,s,r]);_b(()=>(l.current=y.descriptor,i.droppable.register(y),()=>{t.current&&O(),i.droppable.unregister(y)}),[b,s,O,y,o,i.droppable]),_b(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),_b(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Wy(){}const Gy={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Hy=u().memo(e=>{const t=(0,c.useRef)(null),n=rO(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:i,onClose:o,contextId:a}=e,[s,l]=(0,c.useState)("open"===e.animate);(0,c.useEffect)(()=>s?"open"!==r?(n(),l(!1),Wy):t.current?Wy:(t.current=setTimeout(()=>{t.current=null,l(!1)}),n):Wy,[r,s,n]);const d=rO(e=>{"height"===e.propertyName&&(i(),"close"===r&&o())},[r,o,i]),p=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?Gy:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Zv.placeholder:null}})({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return u().createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":a,onTransitionEnd:d,ref:e.innerRef})});class Uy extends u().PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const Yy={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Vg(),document.body}},Ky=e=>{let t,n={...e};for(t in Yy)void 0===e[t]&&(n={...n,[t]:Yy[t]});return n},Jy=(e,t)=>e===t.droppable.type,ew=(e,t)=>t.draggables[e.draggable.id],tw=Cg(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=vO(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),r=vO((r,i,o,a,s,l)=>{const c=s.descriptor.id;if(s.descriptor.droppableId===r){const e=l?{render:l,dragging:n(s.descriptor)}:null,t={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!a)return e;const u={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(n,i)=>{const o=Ky(i),a=o.droppableId,s=o.type,l=!o.isDropDisabled,c=o.renderClone;if(Wb(n)){const e=n.critical;if(!Jy(s,e))return t;const i=ew(e,n.dimensions),o=ov(n.impact)===a;return r(a,l,o,o,i,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!Jy(s,e.critical))return t;const i=ew(e.critical,n.dimensions);return r(a,l,Ay(e.result)===a,ov(e.impact)===a,i,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!Jy(s,r.critical))return t;const i=ov(r.impact)===a,o=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),l=r.critical.droppable.id===a;return i?o?e:t:l?e:t}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,n)=>({...Ky(n),...e,...t}),{context:jb,areStatePropsEqual:Py})(e=>{const t=(0,c.useContext)(Fb);t||Vg();const{contextId:n,isMovementAllowed:r}=t,i=(0,c.useRef)(null),o=(0,c.useRef)(null),{children:a,droppableId:s,type:l,mode:d,direction:p,ignoreContainerClipping:h,isDropDisabled:f,isCombineEnabled:m,snapshot:g,useClone:O,updateViewportMaxScroll:v,getContainerForClone:b}=e,y=rO(()=>i.current,[]),w=rO((e=null)=>{i.current=e},[]),x=(rO(()=>o.current,[]),rO((e=null)=>{o.current=e},[])),S=rO(()=>{r()&&v({maxScroll:lb()})},[r,v]);qy({droppableId:s,type:l,mode:d,direction:p,isDropDisabled:f,isCombineEnabled:m,ignoreContainerClipping:h,getDroppableRef:y});const E=nO(()=>u().createElement(Uy,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:r})=>u().createElement(Hy,{placeholder:t,onClose:e,innerRef:x,animate:r,contextId:n,onTransitionEnd:S})),[n,S,e.placeholder,e.shouldAnimatePlaceholder,x]),k=nO(()=>({innerRef:w,placeholder:E,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,E,w]),R=O?O.dragging.draggableId:null,C=nO(()=>({droppableId:s,type:l,isUsingCloneFor:R}),[s,R,l]);return u().createElement(ky.Provider,{value:C},a(k,g),function(){if(!O)return null;const{dragging:e,render:t}=O,n=u().createElement(_y,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(n,r)=>t(n,r,e));return Se().createPortal(n,b())}())});function nw(){return nw=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(null==f?void 0:f.map(function(e,t){return React.createElement("div",{key:t},e.label&&e.value&&React.createElement("div",{onClick:function(){return function(e){var t,n=e.id,r=e.value,a=e.label,s=[].concat(function(e){if(Array.isArray(e))return ow(e)}(t=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||iw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{id:n,value:r,label:a}]);v(""),o(s)}(e)},className:"sp-select-option ".concat(i===e.value?"selected":"")},e.label))})))))};var sw=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",d:"M12.25 17c3.3 0 6-2.7 6-6V3h-2.5v8c0 1.95-1.55 3.5-3.5 3.5s-3.5-1.55-3.5-3.5V3h-2.5v8c0 3.3 2.7 6 6 6Zm-7 2v2h14v-2h-14Z"}))},lw=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",fillRule:"evenodd",d:"M12.154 19c-.795 0-1.603-.09-2.423-.27-.82-.166-1.481-.365-1.981-.595L8 16.192c.641.308 1.365.577 2.173.808.808.23 1.61.346 2.404.346.897 0 1.59-.16 2.077-.48.5-.334.75-.828.75-1.481 0-.488-.128-.891-.385-1.212-.243-.333-.609-.609-1.096-.827a9.075 9.075 0 0 0-.83-.346H4.75v-1h16v1h-4.094c.499.587.748 1.337.748 2.25 0 1.18-.442 2.103-1.327 2.77-.885.653-2.192.98-3.923.98ZM7.84 9a4.884 4.884 0 0 1-.013-.365c0-1.09.417-1.968 1.25-2.635.846-.667 2.032-1 3.558-1 .82 0 1.596.09 2.326.27.744.179 1.392.397 1.943.653l-.192 1.942c-.718-.423-1.41-.73-2.077-.923a7.456 7.456 0 0 0-2.077-.288c-.834 0-1.5.154-2 .461-.488.308-.731.782-.731 1.423 0 .165.016.32.047.462H7.84Z",clipRule:"evenodd"}))},cw=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none"},React.createElement("path",{fill:"#757575",d:"M12.358 17.5h-1.911l2.248-10.569h1.912L12.358 17.5Z"}))},uw=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},React.createElement("rect",{x:.8,y:.8,width:22.4,height:22.4,rx:3.2,stroke:"#2F2F2F",strokeWidth:1.6}),React.createElement("path",{d:"M13.0315 16.75L11.0684 11.1504C10.1567 8.55012 9.70094 7.25 8.9601 7.25C8.21926 7.25 7.76345 8.55012 6.85184 11.1504L4.88867 16.75M6.5851 12H11.3351",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M19.0884 13.3159V16.3695M19.0884 13.3159C19.1204 12.7574 19.1217 12.3319 19.0546 11.9846C18.8965 11.166 18.0411 10.6727 17.2134 10.5723C16.4212 10.4763 15.7853 10.6802 15.142 11.6175M19.0884 13.3159H17.1588C16.8624 13.3159 16.5634 13.3302 16.2778 13.4096C14.532 13.8949 14.66 16.3431 16.4108 16.6449C16.6053 16.6784 16.8039 16.6928 17.0008 16.6839C17.4606 16.6634 17.8848 16.4413 18.249 16.1597C18.6754 15.8299 19.0884 15.3695 19.0884 14.6731V13.3159Z",stroke:"#2F2F2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))};function dw(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return pw(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(pw(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,pw(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,pw(d,"constructor",c),pw(c,"constructor",l),l.displayName="GeneratorFunction",pw(c,i,"GeneratorFunction"),pw(d),pw(d,i,"Generator"),pw(d,r,function(){return this}),pw(d,"toString",function(){return"[object Generator]"}),(dw=function(){return{w:o,m:p}})()}function pw(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}pw=function(e,t,n,r){function o(t,n){pw(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},pw(e,t,n,r)}function hw(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var fw=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){hw(o,r,i,a,s,"next",e)}function s(e){hw(o,r,i,a,s,"throw",e)}a(void 0)})}}(dw().m(function e(){var t,n;return dw().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyCJIzfKoHlACqsmK1zDzl-OAsgtJPk8BtI");case 1:if(200!==(t=e.v).status){e.n=2;break}return e.a(2,t.json());case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("Error fetching Google Fonts:",n);case 4:return e.a(2)}},e,null,[[0,3]])}));return function(){return e.apply(this,arguments)}}(),mw={100:"Thin 100",200:"Extra Light 200",300:"Light 300",400:"Regular 400",500:"Medium 500",600:"Semi Bold 600",700:"Bold 700",800:"Extra Bold 800",900:"Black 900","100italic":"italic 100","200italic":"italic 200","300italic":"italic 300",italic:"italic 400","400italic":"italic 400","500italic":"italic 500","600italic":"italic 600","700italic":"italic 700","800italic":"italic 800","900italic":"italic 900"},gw=[{label:React.createElement(cw,null),key:"style",value:"italic"},{label:React.createElement(sw,null),key:"decoration",value:"underline"},{label:React.createElement(lw,null),key:"decoration",value:"line-through"},{label:"AB",key:"transform",value:"uppercase"},{label:"ab",key:"transform",value:"lowercase"},{label:"Ab",key:"transform",value:"capitalize"}],Ow=function(e){return(0,a.useMemo)(function(){var t;return null==e||null===(t=e.font)||void 0===t||null===(t=t.variants)||void 0===t?void 0:t.map(function(e){if("regular"===e&&(e="400"),mw[e])return{label:mw[e],value:e}})},[e])};function vw(e){return vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vw(e)}function bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yw(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;i{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}const Iw=_w(-1);function $w(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Pw(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}var Dw;!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Dw||(Dw={}));const Lw=Object.freeze({x:0,y:0});var Nw,zw,jw;!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Nw||(Nw={}));class Bw{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Zw(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Xw(e){e.preventDefault()}function Vw(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(zw||(zw={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(jw||(jw={}));jw.Space,jw.Enter,jw.Esc,jw.Space,jw.Enter,jw.Tab;function Fw(e){return Boolean(e&&"distance"in e)}function qw(e){return Boolean(e&&"delay"in e)}class Ww{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Pw(e);return e instanceof t?e:Mw(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Mw(o),this.documentListeners=new Bw(this.document),this.listeners=new Bw(n),this.windowListeners=new Bw(Pw(o)),this.initialCoordinates=null!=(r=$w(i))?r:Lw,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(zw.Resize,this.handleCancel),this.windowListeners.add(zw.DragStart,Xw),this.windowListeners.add(zw.VisibilityChange,this.handleCancel),this.windowListeners.add(zw.ContextMenu,Xw),this.documentListeners.add(zw.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(qw(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Fw(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(zw.Click,Vw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zw.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=$w(e))?t:Lw,l=Iw(r,s);if(!n&&a){if(Fw(a)){if(null!=a.tolerance&&Zw(l,a.tolerance))return this.handleCancel();if(Zw(l,a.distance))return this.handleStart()}return qw(a)&&Zw(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===jw.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Gw={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};(class extends Ww{constructor(e){const{event:t}=e,n=Mw(t.target);super(e,Gw,n)}}).activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Hw={move:{name:"mousemove"},end:{name:"mouseup"}};var Uw;!function(e){e[e.RightClick=2]="RightClick"}(Uw||(Uw={})),class extends Ww{constructor(e){super(e,Hw,Mw(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Uw.RightClick&&(null==r||r({event:n}),!0)}}];const Yw={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Kw,Jw,ex,tx,nx;(class extends Ww{constructor(e){super(e,Yw)}static setup(){return window.addEventListener(Yw.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Yw.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Kw||(Kw={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Jw||(Jw={})),Nw.Backward,Nw.Forward,Nw.Backward,Nw.Forward,function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ex||(ex={})),function(e){e.Optimized="optimized"}(tx||(tx={})),ex.WhileDragging,tx.Optimized,Map,function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(nx||(nx={})),jw.Down,jw.Right,jw.Up,jw.Left;var rx=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},React.createElement("rect",{width:22.4,height:22.4,x:.8,y:.8,fill:"#fff",rx:3.2}),React.createElement("rect",{width:22.4,height:22.4,x:.8,y:.8,stroke:"#2F2F2F",strokeWidth:1.6,rx:3.2}),React.createElement("path",{fill:"#2F2F2F",d:"M19.584 7.938a.813.813 0 0 0-.813-.813H11.32a2.439 2.439 0 0 0-4.598 0H5.23a.813.813 0 0 0 0 1.625h1.493a2.439 2.439 0 0 0 4.598 0h7.451a.813.813 0 0 0 .813-.813ZM19.584 16.063a.813.813 0 0 0-.813-.813h-1.493a2.439 2.439 0 0 0-4.597 0H5.229a.813.813 0 0 0 0 1.625h7.452a2.439 2.439 0 0 0 4.597 0h1.493a.813.813 0 0 0 .813-.813Z"}))};function ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=Math.floor(1e7+9e7*Math.random());return"".concat(e).concat(t)}("sp-eab"),"popover");return(0,a.useEffect)(function(){var e=function(e){var t=e.target.closest(".sp-eab-popover__content-visible"),n=e.target.closest(".sp-eab-color-picker-renderer"),r=e.target.closest(".sp-eab-popover-toggle-button.".concat(p)),i=e.target.closest(".css-1nmdiq5-menu");!u||t||r||i||n||d(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}),React.createElement("div",{className:"sp-eab-popover-component sp-eab-component-mb".concat(l?" ".concat(l):"")},r&&React.createElement("div",{className:"sp-eab-popover-toggle-wrapper sp-d-flex sp-justify-between"},React.createElement("span",{className:"sp-eab-component-title"},r),React.createElement("button",{onClick:function(){return d(function(e){return!e})},className:"sp-eab-popover-toggle-button ".concat(p," sp-cursor-pointer").concat(u?" active":"")},o||React.createElement(rx,null))),u&&React.createElement(Fc.Popover,{shift:!0},React.createElement("div",{className:"sp-eab-popover__content-visible sp-easy-accordion-tabs-panel"},React.createElement("div",{className:"sp-eab-popover__content-visible-content"},t))))};ox.Header=function(e){var t=e.children;return React.createElement("div",{className:"sp-eab-popover__content-visible-label"},t)},ox.Content=function(e){var t=e.children;return React.createElement("div",{className:"sp-eab-popover__content"},t)};const ax=ox;function sx(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function lx(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:sx(t[n])&&sx(e[n])&&Object.keys(t[n]).length>0&&lx(e[n],t[n])})}const cx={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ux(){const e="undefined"!=typeof document?document:{};return lx(e,cx),e}const dx={document:cx,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function px(){const e="undefined"!=typeof window?window:{};return lx(e,dx),e}function hx(e,t=0){return setTimeout(e,t)}function fx(){return Date.now()}function mx(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function gx(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ox(...e){const t=Object(e[0]);for(let n=1;n"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,i=e.length;ni?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),d=.5-Math.cos(l*Math.PI)/2;let p=i+d*(t-i);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function yx(e,t=""){const n=px(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function wx(e){try{return void console.warn(e)}catch(e){}}function xx(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function Sx(e,t){return px().getComputedStyle(e,null).getPropertyValue(t)}function Ex(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function kx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Rx(e,t,n){const r=px();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Cx(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Px(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let Ax,Qx,Tx;function Mx(){return Ax||(Ax=function(){const e=px(),t=ux();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Ax}function Ix(e={}){return Qx||(Qx=function({userAgent:e}={}){const t=Mx(),n=px(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===r;let h="MacIntel"===r;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),l&&!p&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(e)),Qx}function $x(){return Tx||(Tx=function(){const e=px(),t=Ix();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),Tx}var Dx={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,r,i;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};const Lx=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Nx=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},zx=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},jx=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Bx=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+r+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&jx(e,n)})}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){const t=(r%n+n)%n;(to)&&jx(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r=0?b=parseFloat(b.replace("%",""))/100*v:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b-f-m,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(vx(r,"--swiper-centered-offset-before",""),vx(r,"--swiper-centered-offset-after","")),n.cssMode&&(vx(r,"--swiper-slides-offset-before",`${f}px`),vx(r,"--swiper-slides-offset-after",`${m}px`));const S=n.grid&&n.grid.rows>1&&e.grid;let E;S?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const k="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let r=0;r=0&&(t+=h[n]+(n1&&(r||d.push(e.virtualSize-v))}if(s&&n.loop){const t=h[0]+b;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(b||0)}),e-=b;const t=e>v?e-v:0;d=d.map(e=>e<=0?-f:e>t?t+m:e)}if(n.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(b||0)}),e-=b,e{d[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){vx(r,"--swiper-centered-offset-before",-d[0]+"px"),vx(r,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==l&&e.emit("slidesLengthChange"),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==O&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(s||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(i=0;it.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;io?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Lx(l,m,n.slideVisibleClass),Lx(l,f,n.slideFullyVisibleClass),l.progress=i?-u:u,l.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>yx(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${t}"]`)}else l=s(`[data-swiper-slide-index="${i}"]`);else a?(l=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),c=t.find(e=>e.column===i-1)):l=t[i];l&&(a||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{Nx(e,e===l,n.slideActiveClass),Nx(e,e===u,n.slideNextClass),Nx(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e=t[e]&&r=t[e]&&r=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled)p=i.loop?u(c):c;else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/i.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:c}),t.initialized&&Bx(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o,a=!1;if(i)for(let e=0;e6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&e>l?l:r&&eo?"next":i=l.length&&(g=l.length-1);const O=-l[g];if(s.normalizeSlideIndex)for(let e=0;e=n&&t=n&&t=n&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(p?O>o.translate&&O>o.minTranslate():Oo.translate&&O>o.maxTranslate()&&(d||0)!==a)return!1}let v;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(O),v=a>d?"next":a0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=n})):h[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return bx({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const y=$x().isSafari;return b&&!i&&y&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(O),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,v),0===t?o.transitionEnd(n,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,v))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,r){"string"==typeof e&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:l}=i.params,c=n||!!s||!!l;let u=i.params.slidesPerView;"auto"===u?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e1*t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(s?r.translate:-r.translate),h=o.map(e=>d(e)),f=i.freeMode&&i.freeMode.enabled;let m=o[h.indexOf(p)-1];if(void 0===m&&(i.cssMode||f)){let e;o.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(m=f?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=a.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(g,e,t,n)}),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.getSlideIndexWhenGrid(e.clickedIndex);const a=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):o>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(yx(n,`${a}[data-swiper-slide-index="${i}"]`)[0]),hx(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},Wx={loopCreate:function(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{yx(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&(()=>{const e=yx(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const s=r.slidesPerGroup*(a?r.grid.rows:1),l=n.slides.length%s!==0,c=a&&n.slides.length%r.grid.rows!==0,u=e=>{for(let t=0;t1;c.lengthe.classList.contains(h.slideActiveClass))):C=i;const P="next"===n||!n,A="prev"===n||!n;let Q=0,T=0;const M=(x?c[i].column:i)+(v&&void 0===r?-b/2+.5:0);if(M=0;t-=1)c[t].column===e&&S.push(t)}else S.push(k-t-1)}}else if(M+b>k-w){T=Math.max(M-(k-2*w),y),R&&(T=Math.max(T,b-k+O+1));for(let e=0;e{e.column===t&&E.push(n)}):E.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),P&&E.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():x&&(S.length>0&&A||E.length>0&&P)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),t)if(S.length>0&&A){if(void 0===e){const e=l.slidesGrid[C],t=l.slidesGrid[C+Q]-e;s?l.setTranslate(l.translate-t):(l.slideTo(C+Math.ceil(Q),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=x?S.length/h.grid.rows:S.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(E.length>0&&P)if(void 0===e){const e=l.slidesGrid[C],t=l.slidesGrid[C-T]-e;s?l.setTranslate(l.translate-t):(l.slideTo(C-T,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=x?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const o={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===h.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function Gx(e,t,n){const r=px(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function Hx(e){const t=this,n=ux();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void Gx(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=t;if(!s)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=px();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(p?function(e,t=this){return function t(n){if(!n||n===ux()||n===px())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const h=a.currentX,f=a.currentY;if(!Gx(t,r,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=f,i.touchStartTime=fx(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(i.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Ux(e){const t=ux(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=fx()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(a&&(u>o.startX&&-n.translate<=n.maxTranslate()||u=n.minTranslate()))return;if(!a&&(uo.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=f,f*=i.touchRatio,a&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const O=n.params.loop&&!i.cssMode,v="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(O&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==i._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&O&&v&&Math.abs(f)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let b=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),f>0?(O&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**y))):f<0&&(O&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(f)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Yx(e){const t=this,n=t.touchEventsData;let r,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].find(e=>e.identifier===n.touchId),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=fx(),d=u-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=fx(),hx(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e=l[e]&&p=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let g=null,O=null;o.rewind&&(t.isBeginning?O=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(p-l[f])/m,b=fo.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(v>1-o.longSwipesRatio?t.slideTo(f+b):null!==O&&v<0&&Math.abs(v)>o.longSwipesRatio?t.slideTo(O):t.slideTo(f))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==O?O:f)):i.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function Kx(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function Jx(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function eS(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function tS(e){const t=this;zx(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function nS(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const rS=(e,t)=>{const n=ux(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Kx,!0):e[c]("observerUpdate",Kx,!0),i[l]("load",e.onLoad,{capture:!0}))},iS=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var oS={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=ux(),s="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:a.querySelector(r.breakpointsBase),c=e.getBreakpoint(o,s,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=iS(e,r),p=iS(e,u),h=e.params.grabCursor,f=u.grabCursor,m=r.enabled;d&&!p?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});const g=u.direction&&u.direction!==r.direction,O=r.loop&&(u.slidesPerView!==r.slidesPerView||g),v=r.loop;g&&n&&e.changeDirection(),Ox(e.params,u);const b=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(O?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&y?(e.loopCreate(t),e.updateSlides()):v&&!y&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1;const i=px(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}},sS={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function lS(e,t){return function(n={}){const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Ox(t,n)):Ox(t,n)):Ox(t,n)}}const cS={eventsEmitter:Dx,update:Zx,translate:Xx,transition:Fx,slide:qx,loop:Wx,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Hx.bind(e),e.onTouchMove=Ux.bind(e),e.onTouchEnd=Yx.bind(e),e.onDocumentTouchStart=nS.bind(e),t.cssMode&&(e.onScroll=eS.bind(e)),e.onClick=Jx.bind(e),e.onLoad=tS.bind(e),rS(e,"on")},detachEvents:function(){rS(this,"off")}},breakpoints:oS,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:aS},uS={};class dS{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=Ox({},n),t&&!n.el&&(n.el=t);const r=ux();if(n.el&&"string"==typeof n.el&&r.querySelectorAll(n.el).length>1){const e=[];return r.querySelectorAll(n.el).forEach(t=>{const r=Ox({},n,{el:t});e.push(new dS(r))}),e}const i=this;i.__swiper__=!0,i.support=Mx(),i.device=Ix({userAgent:n.userAgent}),i.browser=$x(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&i.modules.indexOf(e)<0&&i.modules.push(e)});const o={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:lS(n,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const a=Ox({},sS,o);return i.params=Ox({},a,uS,n),i.originalParams=Ox({},i.params),i.passedParams=Ox({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=Ex(yx(t,`.${n.slideClass}, swiper-slide`)[0]);return Ex(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=yx(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;na&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e=0;e-=1)i[s]-i[e]{t.complete&&zx(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):yx(n,r())[0];return!i&&t.params.createElements&&(i=xx("div",t.params.wrapperClass),n.append(i),yx(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Sx(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Sx(n,"direction")),wrongRTL:"-webkit-box"===Sx(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?zx(t,e):e.addEventListener("load",e=>{zx(t,e.target)})}),Bx(t),t.initialized=!0,Bx(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Ox(uS,e)}static get extendedDefaults(){return uS}static get defaults(){return sS}static installModule(e){dS.prototype.__modules__||(dS.prototype.__modules__=[]);const t=dS.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>dS.installModule(e)),dS):(dS.installModule(e),dS)}}Object.keys(cS).forEach(e=>{Object.keys(cS[e]).forEach(t=>{dS.prototype[t]=cS[e][t]})}),dS.use([function({swiper:e,on:t,emit:n}){const r=px();let i=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=r.requestAnimationFrame(()=>{const{width:n,height:r}=e;let i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,o=n?n.height:(t[0]||t).blockSize)}),i===n&&o===r||a()})}),i.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",s))}),t("destroy",()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",s)})},function({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=px(),a=(t,n={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void r("observerUpdate",t[0]);const n=function(){r("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)});a.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=kx(e.hostEl);for(let e=0;e{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const pS=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function hS(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function fS(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:hS(t[n])&&hS(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:fS(e[n],t[n]):e[n]=t[n]})}function mS(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function gS(e={}){return e.pagination&&void 0===e.pagination.el}function OS(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function vS(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(" ")}function bS(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{wS(e)?t.push(e):e.props&&e.props.children&&xS(e.props.children).forEach(e=>t.push(e))}),t}function SS(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return c.Children.toArray(e).forEach(e=>{if(wS(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){const r=xS(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}function ES(e,t){return"undefined"==typeof window?(0,c.useEffect)(e,t):(0,c.useLayoutEffect)(e,t)}const kS=(0,c.createContext)(null),RS=(0,c.createContext)(null),CS=(0,c.forwardRef)(({className:e,tag:t="div",wrapperTag:n="div",children:r,onSwiper:i,...o}={},a)=>{let s=!1;const[l,u]=(0,c.useState)("swiper"),[d,p]=(0,c.useState)(null),[h,f]=(0,c.useState)(!1),m=(0,c.useRef)(!1),g=(0,c.useRef)(null),O=(0,c.useRef)(null),v=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null),S=(0,c.useRef)(null),{params:E,passedParams:k,rest:R,events:C}=function(e={},t=!0){const n={on:{}},r={},i={};fS(n,sS),n._emitClasses=!0,n.init=!1;const o={},a=pS.map(e=>e.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?hS(e[s])?(n[s]={},i[s]={},fS(n[s],e[s]),fS(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(o),{slides:P,slots:A}=SS(r),Q=()=>{f(!h)};Object.assign(E.on,{_containerClasses(e,t){u(t)}});const T=()=>{Object.assign(E.on,C),s=!0;const e={...E};if(delete e.wrapperClass,O.current=new dS(e),O.current.virtual&&O.current.params.virtual.enabled){O.current.virtual.slides=P;const e={cache:!1,slides:P,renderExternal:p,renderExternalUpdate:!1};fS(O.current.params.virtual,e),fS(O.current.originalParams.virtual,e)}};return g.current||T(),O.current&&O.current.on("_beforeBreakpoint",Q),(0,c.useEffect)(()=>()=>{O.current&&O.current.off("_beforeBreakpoint",Q)}),(0,c.useEffect)(()=>{!m.current&&O.current&&(O.current.emitSlidesClasses(),m.current=!0)}),ES(()=>{if(a&&(a.current=g.current),g.current)return O.current.destroyed&&T(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){mS(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),gS(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),OS(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:g.current,nextEl:y.current,prevEl:w.current,paginationEl:x.current,scrollbarEl:S.current,swiper:O.current},E),i&&!O.current.destroyed&&i(O.current),()=>{O.current&&!O.current.destroyed&&O.current.destroy(!0,!1)}},[]),ES(()=>{!s&&C&&O.current&&Object.keys(C).forEach(e=>{O.current.on(e,C[e])});const e=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return pS.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(hS(e[n])&&hS(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),o}(k,v.current,P,b.current,e=>e.key);return v.current=k,b.current=P,e.length&&O.current&&!O.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:d,scrollbar:p,virtual:h,thumbs:f}=e;let m,g,O,v,b,y,w,x;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(g=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(O=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&p&&!p.el&&(v=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&d&&!d.prevEl&&!d.nextEl&&(b=!0);const S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),c[t].prevEl=void 0,c[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),c[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?y=!0:!c.loop&&n.loop?w=!0:x=!0),l.forEach(e=>{if(hS(c[e])&&hS(n[e]))Object.assign(c[e],n[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in n[e])||n[e].enabled||S(e);else{const t=n[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=n[e]:!1===t&&S(e)}}),l.includes("controller")&&!g&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&h&&c.virtual.enabled?(h.slides=t,h.update(!0)):r.includes("virtual")&&h&&c.virtual.enabled&&(t&&(h.slides=t),h.update(!0)),r.includes("children")&&t&&c.loop&&(x=!0),m&&f.init()&&f.update(!0),g&&(e.controller.control=c.controller.control),O&&(!e.isElement||s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(c.pagination.el=s),u.init(),u.render(),u.update()),v&&(!e.isElement||a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),b&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),Px(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),Px(o,e.navigation.arrowSvg),o.part.add("button-prev"),e.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(y||x)&&e.loopDestroy(),(w||x)&&e.loopCreate(),e.update()}({swiper:O.current,slides:P,passedParams:k,changedParams:e,nextEl:y.current,prevEl:w.current,scrollbarEl:S.current,paginationEl:x.current}),()=>{C&&O.current&&Object.keys(C).forEach(e=>{O.current.off(e,C[e])})}}),ES(()=>{var e;!(e=O.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[d]),c.createElement(t,yS({ref:g,className:vS(`${l}${e?` ${e}`:""}`)},R),c.createElement(RS.Provider,{value:O.current},A["container-start"],c.createElement(n,{className:bS(E.wrapperClass)},A["wrapper-start"],E.virtual?function(e,t,n){if(!n)return null;const r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?2*t.length:t.length,u=[];for(let e=s;e=o&&e<=a&&u.push(t[r(e)]);return u.map((t,n)=>c.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}(O.current,P,d):P.map((e,t)=>c.cloneElement(e,{swiper:O.current,swiperSlideIndex:t})),A["wrapper-end"]),mS(E)&&c.createElement(c.Fragment,null,c.createElement("div",{ref:w,className:"swiper-button-prev"}),c.createElement("div",{ref:y,className:"swiper-button-next"})),OS(E)&&c.createElement("div",{ref:S,className:"swiper-scrollbar"}),gS(E)&&c.createElement("div",{ref:x,className:"swiper-pagination"}),A["container-end"]))});CS.displayName="Swiper";const PS=(0,c.forwardRef)(({tag:e="div",children:t,className:n="",swiper:r,zoom:i,lazy:o,virtualIndex:a,swiperSlideIndex:s,...l}={},u)=>{const d=(0,c.useRef)(null),[p,h]=(0,c.useState)("swiper-slide"),[f,m]=(0,c.useState)(!1);function g(e,t,n){t===d.current&&h(n)}ES(()=>{if(void 0!==s&&(d.current.swiperSlideIndex=s),u&&(u.current=d.current),d.current&&r){if(!r.destroyed)return r.on("_slideClass",g),()=>{r&&r.off("_slideClass",g)};"swiper-slide"!==p&&h("swiper-slide")}}),ES(()=>{r&&d.current&&!r.destroyed&&h(r.getSlideClasses(d.current))},[r]);const O={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},v=()=>"function"==typeof t?t(O):t;return c.createElement(e,yS({ref:d,className:vS(`${p}${n?` ${n}`:""}`),"data-swiper-slide-index":a,onLoad:()=>{m(!0)}},l),i&&c.createElement(kS.Provider,{value:O},c.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof i?i:void 0},v(),o&&!f&&c.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&c.createElement(kS.Provider,{value:O},v(),o&&!f&&c.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});function AS(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&!0===n.auto){let o=yx(e.el,`.${r[i]}`)[0];o||(o=xx("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}PS.displayName="SwiperSlide";const QS='';function TS({swiper:e,extendParams:t,on:n,emit:r}){function i(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const r=e.params.navigation;(t=Cx(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=AS(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=Cx(n),r=Cx(r);const o=(n,r)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");Px(e,QS),n.appendChild(e.querySelector("svg")),e.remove()}n.addEventListener("click","next"===r?l:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>o(e,"next")),r.forEach(e=>o(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=Cx(t),n=Cx(n);const r=(t,n)=>{t.removeEventListener("click","next"===n?l:s),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:QS},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;t=Cx(t),n=Cx(n),e.enabled?a():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:i,prevEl:o}=e.navigation;i=Cx(i),o=Cx(o);const a=n.target;let s=o.includes(a)||i.includes(a);if(e.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||o.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:u})}function MS(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function _S({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,n){const{bulletActiveClass:r}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${r}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${r}-${n}-${n}`))}function c(t){const n=t.target.closest(MS(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();const r=Ex(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;const t=(i=e.realIndex,o=r,(o%=a=e.slides.length)===1+(i%=a)?"next":o===i-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r);var i,o,a}function u(){const t=e.rtl,n=e.params.pagination;if(s())return;let i,c,u=e.pagination.el;u=Cx(u);const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,i=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(i=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,i=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const r=e.pagination.bullets;let s,d,p;if(n.dynamicBullets&&(o=Rx(r[0],e.isHorizontal()?"width":"height",!0),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=o*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==c&&(a+=i-(c||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),s=Math.max(i-a,0),d=s+(Math.min(r.length,n.dynamicMainBullets)-1),p=(d+s)/2),r.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)r.forEach(t=>{const r=Ex(t);r===i?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(r>=s&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===s&&l(t,"prev"),r===d&&l(t,"next"))});else{const t=r[i];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[s],t=r[d];for(let e=s;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),a=(o*i-o)/2-p*o,s=t?"right":"left";r.forEach(t=>{t.style[e.isHorizontal()?s:"top"]=`${a}px`})}}u.forEach((t,o)=>{if("fraction"===n.type&&(t.querySelectorAll(MS(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),t.querySelectorAll(MS(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(i+1)/p;let a=1,s=1;"horizontal"===r?a=o:s=o,t.querySelectorAll(MS(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${s})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(Px(t,n.renderCustom(e,i+1,p)),0===o&&r("paginationRender",t)):(0===o&&r("paginationRender",t),r("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function d(){const t=e.params.pagination;if(s())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=Cx(i);let o="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``),e.pagination.bullets=[],i.forEach(n=>{"custom"!==t.type&&Px(n,o||""),"bullets"===t.type&&e.pagination.bullets.push(...n.querySelectorAll(MS(t.bulletClass)))}),"custom"!==t.type&&r("paginationRender",i[0])}function p(){e.params.pagination=AS(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>kx(t,".swiper")[0]===e.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=Cx(n),n.forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",c),e.enabled||n.classList.add(t.lockClass)}))}function h(){const t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=Cx(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:n}=e.pagination;n=Cx(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===e.params.pagination.enabled?f():(p(),d(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{d(),u()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=Cx(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const i=n.target,o=Cx(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);r(!0===t?"paginationShow":"paginationHide"),o.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=Cx(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=Cx(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),d(),u()},disable:f,render:d,update:u,init:p,destroy:h})}function IS(e){return IS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IS(e)}(0,a.memo)(function(e){var t=e.items,n=e.label,r=void 0===n?"":n,i=e.attributes,o=e.setAttributes,a=e.attributesKey,s=null==t?void 0:t.findIndex(function(e){return(null==e?void 0:e.value)===i});return React.createElement("div",{className:"sp-eab-layout-preset-slider-component sp-eab-component-mb"},React.createElement("div",{className:"sp-eab-component-title-wrapper sp-mb-8px"},React.createElement("span",{className:"sp-eab-component-title"},r)),React.createElement(CS,{pagination:{clickable:!0},navigation:!0,modules:[_S,TS],className:"mySwiper sp-eab-layout-picker-swiper",initialSlide:s,onSlideChange:function(e){return n=e.activeIndex,"vertical-six"===(i=null===(r=t[n])||void 0===r?void 0:r.value)&&o({toggleIconPosition:"start"}),void o(function(e,t,n){return(t=function(e){var t=function(e){if("object"!=IS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=IS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a,i));var n,r,i},key:s},null==t?void 0:t.map(function(e,t){var n=e.Icon;return React.createElement(PS,{key:t},React.createElement("div",{className:"sp-eab-preset-image sp-d-flex sp-justify-center"},React.createElement(n,null)))})))}),(0,a.memo)(function(e){var t,n,r=e.videoType,i=e.bgVideo,o=e.youtubeVideo,a="";return"youtube"===r&&(a=(n=null==(t=o)?void 0:t.match(/(?:youtube\.com\/(?:.*[?&]v=|v\/|embed\/)|youtu\.be\/)([^"&?\/ ]{11})/))?n[1]:null),React.createElement("div",{className:"sp-eab-video-player sp-w-full"},"html5"===r&&React.createElement("video",{autoPlay:!0,muted:!0,loop:!0,key:null==i?void 0:i.url},React.createElement("source",{src:null==i?void 0:i.url,type:"video/mp4"})),"youtube"===r&&React.createElement("iframe",{key:a,width:"100%",height:"500px",src:"https://www.youtube.com/embed/".concat(a,"?autoplay=1&mute=1"),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))});let $S=[],DS=[];function LS(e){if(e<768)return!1;for(let t=0,n=$S.length;;){let r=t+n>>1;if(e<$S[r])n=r;else{if(!(e>=DS[r]))return!0;t=r+1}if(t==n)return!1}}function NS(e){return e>=127462&&e<=127487}function zS(e,t,n=!0,r=!0){return(n?jS:BS)(e,t,r)}function jS(e,t,n){if(t==e.length)return t;t&&XS(e.charCodeAt(t))&&VS(e.charCodeAt(t-1))&&t--;let r=ZS(e,t);for(t+=FS(r);t=0&&NS(ZS(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function BS(e,t,n){for(;t>1;){let r=jS(e,t-2,n);if(r=56320&&e<57344}function VS(e){return e>=55296&&e<56320}function FS(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;tthis.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=tE(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),GS.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=tE(this,e,t);let n=[];return this.decompose(e,t,n,0),GS.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new YS(this),i=new YS(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new YS(this,e)}iterRange(e,t=this.length){return new KS(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new JS(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new WS(e):GS.from(WS.split(e,[])):qS.empty}}class WS extends qS{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new eE(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new WS(US(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=HS(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new WS(t,e.length+i.length));else{let e=t.length>>1;n.push(new WS(t.slice(0,e)),new WS(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof WS))return super.replace(e,t,n);[e,t]=tE(this,e,t);let r=HS(this.text,HS(n.text,US(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new WS(r,i):GS.from(WS.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){[e,t]=tE(this,e,t);let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new WS(n,r)),n=[],r=-1);return r>-1&&t.push(new WS(n,r)),t}}class GS extends qS{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if([e,t]=tE(this,e,t),n.lines=i&&t<=a){let s=o.replace(e-i,t-i,n),l=this.lines-o.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new GS(i,this.length-(t-e)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=tE(this,e,t);let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof GS))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new WS(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof GS)for(let t of e.children)u(t);else e.lines>o&&(s>o||!s)?(d(),a.push(e)):e instanceof WS&&s&&(t=c[c.length-1])instanceof WS&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,c[c.length-1]=new WS(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),s+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=s&&(a.push(1==c.length?c[0]:GS.from(c,l)),l=-1,s=c.length=0)}for(let t of e)u(t);return d(),1==a.length?a[0]:new GS(a,t)}}function HS(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof WS?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof WS?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof WS){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof WS?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class KS{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new YS(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class JS{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(qS.prototype[Symbol.iterator]=function(){return this.iter()},YS.prototype[Symbol.iterator]=KS.prototype[Symbol.iterator]=JS.prototype[Symbol.iterator]=function(){return this});class eE{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function tE(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function nE(e,t,n=!0,r=!0){return zS(e,t,n,r)}function rE(e,t){let n=e.charCodeAt(t);if(!((r=n)>=55296&&r<56320&&t+1!=e.length))return n;var r;let i=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(i)?i-56320+(n-55296<<10)+65536:n}function iE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function oE(e){return e<65536?1:2}const aE=/\r\n?|\n/;var sE=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(sE||(sE={}));class lE{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=sE.Simple&&l>=e&&(n==sE.TrackDel&&re||n==sE.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new lE(e)}static create(e){return new lE(e)}}class cE extends lE{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return pE(this,(t,n,r,i,o)=>e=e.replace(r,r+(n-t),o),!1),e}mapDesc(e,t=!1){return hE(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length0&&dE(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?qS.of(c.split(n||aE)):c:qS.empty,d=u.length;if(e==a&&0==d)return;eo&&uE(r,e-o,-1),uE(r,a-e,d),dE(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new cE(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function dE(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,d),i=c,o=u}}}function hE(e,t,n,r=!1){let i=[],o=r?[]:null,a=new mE(e),s=new mE(t);for(let e=-1;;){if(a.done&&s.len||s.done&&a.len)throw new Error("Mismatched change set lengths");if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);uE(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return o?cE.createSet(i,o):lE.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else uE(r,0,a.ins,e),i&&dE(i,r,a.text),a.next()}}class mE{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?qS.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?qS.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class gE{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new gE(n,r,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return OE.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return OE.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return OE.range(e.anchor,e.head)}static create(e,t,n,r){return new gE(e,t,n,r)}}class OE{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:OE.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new OE(e.ranges.map(e=>gE.fromJSON(e)),e.main)}static single(e,t=e){return new OE([OE.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re.from-t.from),t=e.indexOf(n);for(let n=1;nr.head?OE.range(a,o):OE.range(o,a))}}return new OE(e,t)}}function vE(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let bE=0;class yE{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=bE++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new yE(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:wE),!!e.static,e.enables)}of(e){return new xE([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new xE(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new xE(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function wE(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class xE{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=bE++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:1&(null!==(t=e[n.id])&&void 0!==t?t:1)||c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||EE(e,c)){let t=n(e);if(a?!SE(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=$E(t,l);if(this.dependencies.every(n=>n instanceof yE?t.facet(n)===e.facet(n):!(n instanceof CE)||t.field(n,!1)==e.field(n,!1))||(a?SE(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}get extension(){return this}}function SE(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id]),i=n.map(e=>e.type),o=r.filter(e=>!(1&e)),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(RE).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r,i=e.facet(RE),o=n.facet(RE);return(r=i.find(e=>e.field==this))&&r!=o.find(e=>e.field==this)?(e.values[t]=r.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,RE.of({field:this,create:e})]}get extension(){return this}}function PE(e){return t=>new QE(t,e)}const AE={highest:PE(0),high:PE(1),default:PE(2),low:PE(3),lowest:PE(4)};class QE{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class TE{of(e){return new ME(this,e)}reconfigure(e){return TE.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ME{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class _E{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,a){let s=i.get(o);if(null!=s){if(s<=a)return;let e=r[s].indexOf(o);e>-1&&r[s].splice(e,1),o instanceof ME&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let t of o)e(t,a);else if(o instanceof ME){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,a)}else if(o instanceof QE)e(o.inner,o.prec);else if(o instanceof CE)r[a].push(o),o.provides&&e(o.provides,a);else if(o instanceof xE)r[a].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(t==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,a)}}(e,2),r.reduce((e,t)=>e.concat(t))}(e,t,o))n instanceof CE?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push(t=>e.slot(t));let c=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=c&&c[e]||[];if(t.every(e=>0==e.type))if(a[r.id]=s.length<<1|1,wE(o,t))s.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));a[r.id]=l.length<<1,l.push(e=>kE(e,r,t))}}let u=l.map(e=>e(a));return new _E(e,o,u,a,s,i)}}function IE(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function $E(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const DE=yE.define(),LE=yE.define({combine:e=>e.some(e=>e),static:!0}),NE=yE.define({combine:e=>e.length?e[0]:void 0,static:!0}),zE=yE.define(),jE=yE.define(),BE=yE.define(),ZE=yE.define({combine:e=>!!e.length&&e[0]});class XE{constructor(e,t){this.type=e,this.value=t}static define(){return new VE}}class VE{of(e){return new XE(this,e)}}class FE{constructor(e){this.map=e}of(e){return new qE(this,e)}}class qE{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new qE(this.type,t)}is(e){return this.type==e}static define(e={}){return new FE(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}qE.reconfigure=qE.define(),qE.appendConfig=qE.define();class WE{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&vE(n,t.newLength),i.some(e=>e.type==WE.time)||(this.annotations=i.concat(WE.time.of(Date.now())))}static create(e,t,n,r,i,o){return new WE(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(WE.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function GE(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=HE(r,UE(t,o,e.changes.newLength),!0))}return r==e?e:WE.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(zE)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:GE(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=cE.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=WE.create(t,r,e.selection&&e.selection.map(i),qE.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(jE);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof WE?i:Array.isArray(i)&&1==i.length&&i[0]instanceof WE?i[0]:YE(t,JE(i),!1)}return e}(i):i)}WE.time=XE.define(),WE.userEvent=XE.define(),WE.addToHistory=XE.define(),WE.remote=XE.define();const KE=[];function JE(e){return null==e?KE:Array.isArray(e)?e:[e]}var ek=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ek||(ek={}));const tk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let nk;try{nk=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch($){}class rk{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(qE.reconfigure)?(n=null,r=t.value):t.is(qE.appendConfig)&&(n=null,r=JE(r).concat(t.value));n?t=e.startState.values.slice():(n=_E.resolve(r,i,this),t=new rk(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=e.startState.facet(LE)?e.newSelection:e.newSelection.asSingle();new rk(n,e.newDoc,o,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:OE.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=JE(n.effects);for(let n=1;ni.spec.fromJSON(o,e)))}return rk.create({doc:e.doc,selection:OE.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=_E.resolve(e.extensions||[],new Map),n=e.doc instanceof qS?e.doc:qS.of((e.doc||"").split(t.staticFacet(rk.lineSeparator)||aE)),r=e.selection?e.selection instanceof OE?e.selection:OE.single(e.selection.anchor,e.selection.head):OE.single(0);return vE(r,n.length),t.staticFacet(LE)||(r=r.asSingle()),new rk(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(rk.tabSize)}get lineBreak(){return this.facet(rk.lineSeparator)||"\n"}get readOnly(){return this.facet(ZE)}phrase(e,...t){for(let t of this.facet(rk.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(DE))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return n=t.length?t[0]:"",e=>{if(!/\S/.test(e))return ek.Space;if(function(e){if(nk)return nk.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||tk.test(n)))return!0}return!1}(e))return ek.Word;for(let t=0;t-1)return ek.Word;return ek.Other};var n}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=nE(t,o,!1);if(i(t.slice(e,o))!=ek.Word)break;o=e}for(;ae.length?e[0]:4}),rk.lineSeparator=NE,rk.readOnly=ZE,rk.phrases=yE.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),rk.languageData=DE,rk.changeFilter=zE,rk.transactionFilter=jE,rk.transactionExtender=BE,TE.reconfigure=qE.define();class ok{eq(e){return this==e}range(e,t=e){return sk.create(e,t,this)}}function ak(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}ok.prototype.startSide=ok.prototype.endSide=0,ok.prototype.point=!1,ok.prototype.mapMode=sE.TrackDel;class sk{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new sk(e,t,n)}}function lk(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class ck{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);ic||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new ck(r,i,n,a):null,pos:o}}}class uk{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new uk(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(lk)),this.isEmpty)return t.length?uk.of(t):this;let a=new hk(this,null,-1).goto(0),s=0,l=[],c=new dk;for(;a.value||s=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return fk.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return fk.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),s=pk(o,a,n),l=new gk(o,s,i),c=new gk(a,s,i);n.iterGaps((e,t,n)=>Ok(l,e,c,t,n,r)),n.empty&&0==n.length&&Ok(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),o=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let a=pk(i,o),s=new gk(i,a,0).goto(n),l=new gk(o,a,0).goto(n);for(;;){if(s.to!=l.to||!vk(s.active,l.active)||s.point&&(!l.point||!ak(s.point,l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new gk(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFroma&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new dk;for(let r of e instanceof sk?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(lk);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return uk.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=uk.empty;r=r.nextLayer)t=new uk(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}uk.empty=new uk([],[],null,-1),uk.empty.nextLayer=uk.empty;class dk{finishChunk(e){this.chunks.push(new ck(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new dk)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(uk.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=uk.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function pk(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new hk(o,t,n,i));return 1==r.length?r[0]:new fk(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)mk(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)mk(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),mk(this.heap,0)}}}function mk(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class gk{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=fk.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){bk(this.active,e),bk(this.activeTo,e),bk(this.activeRank,e),this.minActive=wk(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t0;)t++;yk(this.active,t,n),yk(this.activeTo,t,r),yk(this.activeRank,t,i),e&&yk(e,t,this.cursor.from),this.minActive=wk(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&bk(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Ok(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t,c=!!o.boundChange;for(let t=!1;;){let r=e.to+l-n.to,i=r||e.endSide-n.endSide,u=i<0?e.to+l:n.to,d=Math.min(u,a);if(e.point||n.point?(e.point&&n.point&&ak(e.point,n.point)&&vk(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point),t=!1):(t&&o.boundChange(s),d>s&&!vk(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c&&da)break;s=u,i<=0&&e.next(),i>=0&&n.next()}}function vk(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function wk(e,t){let n=-1,r=1e9;for(let i=0;i=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=nE(e,r)}return!0===r?-1:e.length}const Ek="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),kk="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Rk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Ck{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,a){let s=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let a=t[n];if(/&/.test(n))i(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,c)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+a+";")}(s.length||c)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Rk[Ek]||1;return Rk[Ek]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[kk],i=n&&n.nonce;r?i&&r.setNonce(i):r=new Ak(e,i),r.mount(Array.isArray(t)?t:[t],e)}}let Pk=new Map;class Ak{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=Pk.get(n);if(t)return e[kk]=t;this.sheet=new r.CSSStyleSheet,Pk.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[kk]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t-1&&(this.modules.splice(a,1),i--,a=-1),-1==a){if(this.modules.splice(i++,0,o),n)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Mk="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),_k="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ik=0;Ik<10;Ik++)Qk[48+Ik]=Qk[96+Ik]=String(Ik);for(Ik=1;Ik<=24;Ik++)Qk[Ik+111]="F"+Ik;for(Ik=65;Ik<=90;Ik++)Qk[Ik]=String.fromCharCode(Ik+32),Tk[Ik]=String.fromCharCode(Ik);for(var $k in Qk)Tk.hasOwnProperty($k)||(Tk[$k]=Qk[$k]);function Dk(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t2);var Hk={mac:Gk||/Mac/.test(Nk.platform),windows:/Win/.test(Nk.platform),linux:/Linux|X11/.test(Nk.platform),ie:Xk,ie_version:Bk?zk.documentMode||6:Zk?+Zk[1]:jk?+jk[1]:0,gecko:Vk,gecko_version:Vk?+(/Firefox\/(\d+)/.exec(Nk.userAgent)||[0,0])[1]:0,chrome:!!Fk,chrome_version:Fk?+Fk[1]:0,ios:Gk,android:/Android\b/.test(Nk.userAgent),webkit:qk,webkit_version:qk?+(/\bAppleWebKit\/(\d+)/.exec(Nk.userAgent)||[0,0])[1]:0,safari:Wk,safari_version:Wk?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Nk.userAgent)||[0,0])[1]:0,tabSize:null!=zk.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function Uk(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const Yk=Object.create(null);function Kk(e,t,n){if(e==t)return!0;e||(e=Yk),t||(t=Yk);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function Jk(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function eR(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:t>0?1e8:-1e8,new aR(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=sR(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new aR(e,t,n,r,e.widget||null,!0)}static line(e){return new oR(e)}static set(e,t=!1){return uk.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}rR.none=uk.empty;class iR extends rR{constructor(e){let{start:t,end:n}=sR(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Uk(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Yk}eq(e){return this==e||e instanceof iR&&this.tagName==e.tagName&&Kk(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}iR.prototype.point=!1;class oR extends rR{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof oR&&this.spec.class==e.spec.class&&Kk(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}oR.prototype.mapMode=sE.TrackBefore,oR.prototype.point=!0;class aR extends rR{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?sE.TrackBefore:sE.TrackAfter:sE.TrackDel}get type(){return this.startSide!=this.endSide?nR.WidgetRange:this.startSide<=0?nR.WidgetBefore:nR.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof aR&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function sR(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function lR(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}aR.prototype.point=!0;class cR extends ok{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof cR&&this.tagName==e.tagName&&Kk(this.attributes,e.attributes)}static create(e){return new cR(e.tagName,e.attributes||Yk,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return uk.of(e,t)}}function uR(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function dR(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function pR(e,t){if(!t.anchorNode)return!1;try{return dR(e,t.anchorNode)}catch(e){return!1}}function hR(e){return 3==e.nodeType?CR(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function fR(e,t,n,r){return!!n&&(OR(e,t,n,r,-1)||OR(e,t,n,r,1))}function mR(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function gR(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function OR(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:vR(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=mR(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?vR(e):0}}}function vR(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function bR(e,t){let{left:n,right:r}=e;if(n==r)return e;let i=t?n:r;return{left:i,right:i,top:e.top,bottom:e.bottom}}function yR(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function wR(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function xR(e,t=!0){let n=e.ownerDocument,r=null,i=null;for(let o=e.parentNode;o&&o!=n.body&&(t&&!r||!i);)if(1==o.nodeType)!i&&o.scrollHeight>o.clientHeight&&(i=o),t&&!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else{if(11!=o.nodeType)break;o=o.host}return{x:r,y:i}}cR.prototype.startSide=cR.prototype.endSide=-1;class SR{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?vR(t):0),n,Math.min(e.focusOffset,n?vR(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let ER,kR=null;function RR(e){if(e.setActive)return e.setActive();if(kR)return e.focus(kR);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==kR?{get preventScroll(){return kR={preventScroll:!0},!0}}:void 0),!kR){kR=!1;for(let e=0;eMath.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function QR(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=vR(n)}else{if(!n.parentNode||gR(n))return null;r=mR(n),n=n.parentNode}}}function TR(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r=26&&(kR=!1);class MR{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new MR(e.parentNode,mR(e),t)}static after(e,t){return new MR(e.parentNode,mR(e)+1,t)}}var _R=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(_R||(_R={}));const IR=_R.LTR,$R=_R.RTL;function DR(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function VR(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&a.push(new XR(l,f.from,p)),WR(e,f.direction==IR!=!(p%2)?r+1:r,i,f.inner,f.from,f.to,a),l=f.to),h=f.to}else{if(h==n||(t?FR[h]!=s:FR[h]==s))break;h++}d?qR(e,l,h,r+1,i,d,a):lt;){let n=!0,u=!1;if(!c||l>o[c-1].to){let e=FR[l-1];e!=s&&(n=!1,u=16==e)}let d=n||1!=s?null:[],p=n?r:r+1,h=l;e:for(;;)if(c&&h==o[c-1].to){if(u)break e;let f=o[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(FR[e-1]==s)break e;break}e=o[--n].from}d?d.push(f):(f.to=0;e-=3)if(jR[e+1]==-n){let t=jR[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(FR[a]=FR[jR[e]]=n),s=e;break}}else{if(189==jR.length)break;jR[s++]=a,jR[s++]=t,jR[s++]=l}else if(2==(r=FR[a])||1==r){let e=r==i;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=jR[t+2];if(2&n)break;if(e)jR[t+2]|=2;else{if(4&n)break;jR[t+2]|=4}}}}}(e,i,o,r,s),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),FR[--t]=u;l=a}else o=a,l++}}}(i,o,r,s),qR(e,i,o,t,n,r,a)}function GR(e){return[new XR(0,e,0)]}let HR="";function UR(e,t,n,r,i){var o;let a=r.head-e.from,s=XR.find(t,a,null!==(o=r.bidiLevel)&&void 0!==o?o:-1,r.assoc),l=t[s],c=l.side(i,n);if(a==c){let e=s+=i?1:-1;if(e<0||e>=t.length)return null;l=t[s=e],a=l.side(!i,n),c=l.side(i,n)}let u=nE(e.text,a,l.forward(i,n));(ul.to)&&(u=c),HR=e.text.slice(Math.min(a,u),Math.max(a,u));let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d&&u==c&&d.level+(i?0:1)e.some(e=>e)}),lC=yE.define({combine:e=>e.some(e=>e)}),cC=yE.define();class uC{constructor(e,t,n,r,i,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new uC(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new uC(OE.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const dC=qE.define({map:(e,t)=>e.map(t)}),pC=qE.define();function hC(e,t,n){let r=e.facet(tC);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const fC=yE.define({combine:e=>!e.length||e[0]});let mC=0;const gC=yE.define({combine:e=>e.filter((t,n)=>{for(let r=0;r{let t=[];return o&&t.push(wC.of(t=>{let n=t.plugin(e);return n?o(n):rR.none})),i&&t.push(i(e)),t})}static fromClass(e,t){return OC.define((t,n)=>new e(t,n),t)}}class vC{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(hC(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){hC(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){hC(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const bC=yE.define(),yC=yE.define(),wC=yE.define(),xC=yE.define(),SC=yE.define(),EC=yE.define(),kC=yE.define();function RC(e,t){let n=e.state.facet(kC);if(!n.length)return n;let r=n.map(t=>t instanceof Function?t(e):t),i=[];return uk.spans(r,t.from,t.to,{point(){},span(e,n,r,o){let a=e-t.from,s=n-t.from,l=i;for(let e=r.length-1;e>=0;e--,o--){let n,i=r[e].spec.bidiIsolate;if(null==i&&(i=YR(t.text,a,s)),o>0&&l.length&&(n=l[l.length-1]).to==a&&n.direction==i)n.to=s,l=n.inner;else{let e={from:a,to:s,direction:i,inner:[]};l.push(e),l=e.inner}}}}),i}const CC=yE.define();function PC(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(CC)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const AC=yE.define();class QC{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new QC(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAr.push(new QC(e,t,n,i))),this.changedRanges=r}static create(e,t,n){return new TC(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const MC=[];class _C{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return MC}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;null==t[r]&&e.removeAttribute(r)}for(let n in t){let r=t[n];"style"==n?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let t of this.children){if(t==e)return n;n+=t.length+t.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,n){return null}domPosFor(e,t){let n=mR(this.dom),r=this.length?e>0:t>0;return new MR(this.parent.dom,n+(r?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof DC)return e;return null}static get(e){return e.cmTile}}class IC extends _C{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t,n=this.dom,r=null,i=(null==e?void 0:e.node)==n?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,t=r?r.nextSibling:n.firstChild,i&&t!=a.dom&&(i.written=!0),a.dom.parentNode==n)for(;t&&t!=a.dom;)t=$C(t);else n.insertBefore(a.dom,t);r=a.dom}for(t=r?r.nextSibling:n.firstChild,i&&t&&(i.written=!0);t;)t=$C(t);this.length=o}}function $C(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class DC extends IC{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=_C.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,i=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&i++,r=t.pop()}else{let o=n.children[r++];if(o instanceof LC)t.push(r),n=o,r=0;else{let t=i+o.length,n=e(o,i);if(void 0!==n)return n;i=t+o.breakAfter}}}resolveBlock(e,t){let n,r,i=-1,o=-1;if(this.blockTiles((a,s)=>{let l=s+a.length;if(e>=s&&e<=l){if(a.isWidget()&&t>=-1&&t<=1){if(32&a.flags)return!0;16&a.flags&&(n=void 0)}(se||e==s&&(t>1?a.length:a.covers(-1)))&&(!r||!a.isWidget()&&r.isWidget())&&(r=a,o=e-s)}}),!n&&!r)throw new Error("No tile at position "+e);return n&&t<0||!r?{tile:n,offset:i}:{tile:r,offset:o}}}class LC extends IC{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new LC(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class NC extends IC{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new NC(t||document.createElement("div"),e);return t&&n||(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(s,l){for(let c=0,u=0;c=l&&(d.isComposite()?e(d,l-u):(!o||o.isHidden&&(t>0&&!(32&o.flags)||n&&zC(o,d)))&&(p>l||32&d.flags)?(o=d,a=l-u):(ur&&(e=r);let i=e,o=e,a=0;0==e&&t<0||e==r&&t>=0?Hk.chrome||Hk.gecko||(e?(i--,a=1):o=0)?0:s.length-1];return Hk.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),null==n?l:bR(l,(a?a>0:t<0)==n)}static of(e,t){let n=new BC(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class ZC extends _C{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return bR(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),n=null;if(!t.length)return null;let r=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let i=r?t.length-1:0;n=t[i],!(e>0?0==i:i==t.length-1||n.top0==n)}}class VC{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:i,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(i==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,({tile:r,index:i}=a.pop()),i++}else{let s=r.children[i],l=s.breakAfter;!(t>0?s.length<=e:s.length=0;e--){let n=t.marks[e],i=r.lastChild;if(i instanceof jC&&i.mark.eq(n.mark))i.dom!=n.dom&&i.setDOM(JC(n.dom)),r=i;else{if(this.cache.reused.get(n)){let e=_C.get(n.dom);e&&e.setDOM(JC(n.dom))}let e=jC.of(n.mark,n.dom);r.append(e),r=e}this.cache.reused.set(n,2)}let i=_C.get(e.text);i&&this.cache.reused.set(i,2);let o=new BC(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);r||this.flushBuffer();let i=this.ensureMarks(t,n);r||16&e.flags||i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){(this.afterWidget||this.lastBlock).length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=KC);let r=NC.start(e,t||(null===(n=this.cache.find(NC))||void 0===n?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let i=e.length-1;i>=0;i--){let o,a=e[i];if(t>0&&(o=r.lastChild)&&o instanceof jC&&o.mark.eq(a))r=o,t--;else{let e=jC.of(a,null===(n=this.cache.find(jC,e=>e.mark.eq(a)))||void 0===n?void 0:n.dom);r.append(e),r=e,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;e&&YC(this.curLine,!1)&&("BR"==e.dom.nodeName||!e.isWidget()||Hk.ios&&YC(this.curLine,!0))||this.curLine.append(this.cache.findWidget(tP,0,32)||new ZC(tP.toDOM(),0,tP,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=102*e.rank+e.value.rank,n=new FC(e.from,e.to,e.value,t),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.frome.wrapper.eq(n.wrapper)))||void 0===e?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(XC,void 0,1);return n&&(n.flags=t),n||new XC(t)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class WC{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skipCount);if(this.skipCount=0,r)throw new Error("Ran out of text content when drawing inline views");this.text=t;let i=this.textOff=Math.min(e,t.length);return n?null:t.slice(0,i)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const GC=[ZC,NC,BC,jC,XC,LC,DC];for(let e=0;e[]),this.index=GC.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,i=this.buckets[r],o=this.index[r];for(let e=0;e{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,i=0,o=0;;){let a=or){let e=s-r;this.preserve(e,!o,!a),r=s,i+=e}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof jC&&t.push(r.mark)}return t}(this.old),i=this.openMarks;this.old.advance(e,n?1:-1,{skip:(e,t,n)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(n-t);else{let o=n>0||t{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof jC&&r.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?r.length&&(r.length=i=0):e instanceof jC&&(r.shift(),i=Math.min(i,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,i=-1,o=uk.spans(this.decorations,e,t,{point:(e,t,o,a,s,l)=>{if(o instanceof aR){if(this.disallowBlockEffectsFor[l]){if(o.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=a.length,s>a.length)r.continueWidget(t-e);else{let i=o.widget||(o.block?eP.block:eP.inline),l=function(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}(o),c=this.cache.findWidget(i,t-e,l)||ZC.of(i,this.view,t-e,l);o.block?(o.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(c)):(r.ensureLine(n),r.addInlineWidget(c,a,s))}n=null}else n=function(e,t){let n=t.spec.attributes,r=t.spec.class;return n||r?(e||(e={class:"cm-line"}),n&&Uk(n,e),r&&(e.class+=" "+r),e):e}(n,o);t>e&&this.text.skip(t-e)},span:(e,t,o,a)=>{for(let i=e;i-1&&(this.openWidget=o>i),this.openWidget||r.addLineStartIfNotCovered(n),this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let e=_C.get(r);if(r==this.view.contentDOM)break;e instanceof jC?t.push(e):(null==e?void 0:e.isLine())?n=e:e instanceof LC||("DIV"!=r.nodeName||n||r==this.view.contentDOM?n||t.push(jC.of(new iR({tagName:r.nodeName.toLowerCase(),attributes:eR(r)}),r)):n=new NC(r,KC))}return{line:n,marks:t}}}function YC(e,t){let n=e=>{for(let r of e.children)if((t?r.isText():r.length)||n(r))return!0;return!1};return n(e)}const KC={class:"cm-line"};function JC(e){let t=_C.get(e);return t&&t.setDOM(e.cloneNode()),e}class eP extends tR{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}eP.inline=new eP("span"),eP.block=new eP("div");const tP=new class extends tR{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class nP{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=rR.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new DC(e,e.contentDOM),this.updateInner([new QC(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:e,toA:t})=>tthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?r=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges((e,r)=>{et.from&&(n=!0)}),n}(e.changes,this.hasComposition)||e.selectionSet||(r=e.state.selection.main.head));let i=r>-1?function(e,t,n){let r=iP(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new QC(l.mapPos(o),l.mapPos(a),o,a),text:i}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:r}=this.hasComposition;n=new QC(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Hk.ie||Hk.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.blockWrappers;this.updateDeco();let s=function(e,t,n){let r=new oP;return uk.compare(e,t,n,r),r.changes}(o,this.decorations,e.changes);s.length&&(n=QC.extendWithRanges(n,s));let l=function(e,t,n){let r=new aP;return uk.compare(e,t,n,r),r.changes}(a,this.blockWrappers,e.changes);return l.length&&(n=QC.extendWithRanges(n,l)),i&&!n.some(e=>e.fromA<=i.range.fromA&&e.toA>=i.range.toA)&&(n=i.range.addToSet(n.slice())),!(2&this.tile.flags&&0==n.length||(this.updateInner(n,i),e.transactions.length&&(this.lastUpdate=Date.now()),0))}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let n=this.tile,r=new UC(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&_C.get(t.text)&&r.cache.reused.set(_C.get(t.text),2),this.tile=r.run(e,t),rP(n,r.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=Hk.chrome||Hk.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),!r||!r.written&&n.selectionRange.focusNode==r.node&&this.tile.dom.contains(r.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to-1)&&pR(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(i||t||o))return;let a=this.forceSelection;this.forceSelection=!1;let s,l,c=this.view.state.selection.main;if(c.empty?l=s=this.inlineDOMNearPos(c.anchor,c.assoc||1):(l=this.inlineDOMNearPos(c.head,c.head==c.from?1:-1),s=this.inlineDOMNearPos(c.anchor,c.anchor==c.from?1:-1)),Hk.gecko&&c.empty&&!this.hasComposition&&1==(u=s).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null)),s=l=new MR(e,0),a=!0}var u;let d=this.view.observer.selectionRange;!a&&d.focusNode&&(fR(s.node,s.offset,d.anchorNode,d.anchorOffset)&&fR(l.node,l.offset,d.focusNode,d.focusOffset)||this.suppressWidgetCursorChange(d,c))||(this.view.observer.ignore(()=>{Hk.android&&Hk.chrome&&n.contains(d.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(d.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let e=uR(this.view.root);if(e)if(c.empty){if(Hk.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(tc.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new MR(d.anchorNode,d.anchorOffset),this.impreciseHead=l.precise?null:new MR(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&fR(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=uR(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let r=n.posAtStart;if(!n.isComposite())return n.isText()?e==n.dom?r+t:r+(t?n.length:0):r;{let i;if(e==n.dom)i=n.dom.childNodes[t];else{let r=0==vR(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==n.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}i=r<0?e:e.nextSibling}if(i==n.dom.firstChild)return r;for(;i&&!_C.get(i);)i=i.nextSibling;if(!i)return r+n.length;for(let e=0,t=r;;e++){let r=n.children[e];if(r.dom==i)return t;t+=r.length+r.breakAfter}}}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(r,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r,i=-1,o=!1,a=-1,s=!1;return this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(o=!0)}else{let c=l+t.length;if(l<=e&&(n=t,i=e-l,o=c=e&&!r&&(r=t,a=e-l,s=l>e),l>e&&r)return!0}}),n||r?(o&&r?n=null:s&&n&&(r=null),n&&t<0||!r?n.domIn(i,t):r.domIn(a,t)):this.domAtPos(e,t)}coordsAt(e,t,n){let{tile:r,offset:i}=this.tile.resolveBlock(e,t);return r.isWidget()?r.widget instanceof sP?null:r.coordsInWidget(i,t,!0):r.coordsIn(i,t,n)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,n){if(t.isComposite())for(let r of t.children){if(r.length>=n){let t=e(r,n);if(t)return t}if((n-=r.length)<0)break}else if(t.isText()&&nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==_R.LTR,l=0,c=(e,u,d)=>{for(let p=0;pr);p++){let r=e.children[p],h=u+r.length,f=r.dom.getBoundingClientRect(),{height:m}=f;if(d&&!p&&(l+=f.top-d.top),r instanceof LC)h>n&&c(r,u,f);else if(u>=n&&(l>0&&t.push(-l),t.push(m+l),l=0,o)){let e=r.dom.lastChild,t=e?hR(e):[];if(t.length){let e=t[t.length-1],n=s?e.right-f.left:f.right-e.left;n>a&&(a=n,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=h)}}d&&p==e.children.length-1&&(l+=d.bottom-f.bottom),u=h+r.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?_R.RTL:_R.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t,n=0;for(let r of e.children){if(!r.isText()||/[^ -~]/.test(r.text))return;let e=hR(r.dom);if(1!=e.length)return;n+=e[0].width,t=e[0].height}if(n)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:n/e.length,textHeight:t}}});if(e)return e;let t,n,r,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.style.position="absolute",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(i);let e=hR(i.firstChild)[0];t=i.getBoundingClientRect().height,n=e&&e.width?e.width/27:7,r=e&&e.height?e.height:t,i.remove()}),{lineHeight:t,charWidth:n,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.view.state.doc.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(rR.replace({widget:new sP(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return rR.set(e)}updateDeco(){let e=1,t=this.view.state.facet(wC).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),n=!1,r=this.view.state.facet(SC).map((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(uk.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(cC))try{if(t(this.view,e.range,e))return!0}catch(e){hC(this.view.state,e,"scroll handler")}let t,{range:n}=e,r=this.coordsAt(n.head,n.assoc||(n.head>n.anchor?-1:1));if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=PC(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;if(function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==l.body,h=1,f=1;if(p)e=yR(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:h,scaleY:f}=wR(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,top:t.top,bottom:t.top+u.clientHeight*f}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+a)):t.bottom>e.bottom-a&&(g=t.bottom-e.bottom+a,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+o)):t.right>e.right-o&&(m=t.right-e.right+o,n<0&&t.lefte.bottom||t.lefte.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,o,n.head1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottome.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){rP(this.tile)}}function rP(e,t){let n=null==t?void 0:t.get(e);if(1!=n){null==n&&e.destroy();for(let n of e.children)rP(n,t)}}function iP(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=QR(n.focusNode,n.focusOffset),i=TR(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let t=_C.get(i.node);if(!t||t.isText()&&t.text!=i.node.nodeValue)o=i;else if(e.docView.lastCompositionAfterCursor){let e=_C.get(r.node);!e||e.isText()&&e.text!=r.node.nodeValue||(o=i)}}if(e.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=t-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}let oP=class{constructor(){this.changes=[]}compareRange(e,t){lR(e,t,this.changes)}comparePoint(e,t){lR(e,t,this.changes)}boundChange(e){lR(e,e,this.changes)}};class aP{constructor(){this.changes=[]}compareRange(e,t){lR(e,t,this.changes)}comparePoint(){}boundChange(e){lR(e,e,this.changes)}}class sP extends tR{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function lP(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let e;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;e&&(i.type!=nR.Text||e.type==i.type&&!(n<0?i.fromt))||(e=i)}}return e||r}return r}function cP(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=UR(i,o,a,s,n),c=HR;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return t;l=r(c)}s=t}}function uP(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,o)=>{if(t>e&&tt(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:OE.cursor(r,re.viewState.docHeight)return new hP(e.state.doc.length,-1);if(i=e.elementAtHeight(c),null==r)break;if(i.type==nR.Text){if(r<0?i.toe.viewport.to)break;let t=e.docView.coordsAt(r<0?i.from:i.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?i.bottom+t:i.top-t}if(e.viewport.from>=i.to||e.viewport.to<=i.from){if(n)return null;if(i.type==nR.Text){let t=function(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((i-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+Sk(a,o,e.state.tabSize)}(e,o,i,s,l);return new hP(t,t==i.from?1:-1)}}if(i.type!=nR.Text)return c<(i.top+i.bottom)/2?new hP(i.from,1):new hP(i.to,-1);let u=e.docView.lineAt(i.from,2);return u&&u.length==i.length||(u=e.docView.lineAt(i.from,-2)),new mP(e,s,l,e.textDirectionAt(i.from)).scanTile(u,i.from)}class mP{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from>1;t:if(l.has(p)){let e=a+Math.floor(Math.random()*n);for(let t=0;t1)){if(n.bottomthis.y)(!i||i.top>n.top)&&(i=n),l=-1;else{let e=n.left>this.x?this.x-n.left:n.right(n+n+a)/3)return this.y=r.bottom-1,this.scan(e,t,!0);if(i&&i.top<(n+a+a)/3)return this.y=i.top+1,this.scan(e,t,!0)}let p=(c?this.dirAt(e[u],1):this.baseDir)==_R.LTR;return{i:u,after:this.x>(o.left+o.right)/2==p}}scanText(e,t){let n=[];for(let r=0;r{let i=n[r]-t,o=n[r+1]-t;return CR(e.dom,i,o).getClientRects()});return r.after?new hP(n[r.i+1],-1):new hP(n[r.i],1)}scanTile(e,t){if(!e.length)return new hP(t,1);if(1==e.children.length){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r{let n=e.children[t];return 48&n.flags?null:(1==n.dom.nodeType?n.dom:CR(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],o=n[r.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):r.after?new hP(n[r.i+1],-1):new hP(o,1)}}const gP="￿";class OP{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(rk.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=gP}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=_C.get(r),o=r.nextSibling;if(o==t){(null==i?void 0:i.breakAfter)&&!o&&n!=this.view.contentDOM&&this.lineBreak();break}let a=_C.get(o);(i&&a?i.breakAfter:(i?i.breakAfter:gR(r))||gR(o)&&("BR"!=r.nodeName||(null==i?void 0:i.isWidget()))&&this.text.length>e)&&!bP(o,t)&&this.lineBreak(),r=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){let t=_C.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(vP(e,n.node,n.offset)?t:0))}}function vP(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=xP(e.docView.tile,t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new yP(n,r)),i==n&&o==r||t.push(new yP(i,o))),t}(e),n=new OP(t,e);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?OE.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!dR(e.contentDOM,t.focusNode)?a.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!dR(e.contentDOM,t.anchorNode)?a.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((Hk.ios||Hk.chrome)&&n!=r&&Math.min(n,r)<=a.main.from&&Math.max(n,r)>=a.main.to&&(s.from>0||s.to-1&&a.ranges.length>1)this.newSel=a.replaceRange(OE.range(r,n));else if(e.lineWrapping&&r==n&&(!a.main.empty||a.main.head!=n)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(n,-1),r=0;t&&(r=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=OE.create([OE.cursor(n,r)])}else this.newSel=OE.single(r,n)}}}function xP(e,t,n,r){if(e.isComposite()){let i=-1,o=-1,a=-1,s=-1;for(let l=0,c=r,u=r;ln)return xP(r,t,n,c);if(d>=t&&-1==i&&(i=l,o=c),c>n&&r.dom.parentNode==e.dom){a=l,s=u;break}u=d,c=d+r.breakAfter}return{from:o,to:s<0?r+e.length:s,startDOM:(i?e.children[i-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:a=0?e.children[a].dom:null}}return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function SP(e,t){let n,{newSel:r}=t,{state:i}=e,o=i.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:r}=t.bounds,s=o.from,l=null;(8===a||Hk.android&&t.text.length=e&&o.to<=r&&(t.typeOver||d!=t.text)&&d.slice(0,o.from-e)==t.text.slice(0,o.from-e)&&d.slice(o.to-e)==t.text.slice(c=t.text.length-(d.length-(o.to-e)))?n={from:o.from,to:o.to,insert:qS.of(t.text.slice(o.from-e,c).split(gP))}:(u=kP(d,t.text,s-e,l))&&(Hk.chrome&&13==a&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==gP+gP&&u.toB--,n={from:e+u.from,to:e+u.toA,insert:qS.of(t.text.slice(u.from,u.toB).split(gP))})}else r&&(!e.hasFocus&&i.facet(fC)||RP(r,o))&&(r=null);if(!n&&!r)return!1;if((Hk.mac||Hk.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=OE.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:qS.of([n.insert.toString().replace("."," ")])}):i.doc.lineAt(o.from).toDate.now()-50?n={from:o.from,to:o.to,insert:i.toText(e.inputState.insertingText)}:Hk.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=OE.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:qS.of([" "])}),n)return EP(e,n,r,a);if(r&&!RP(r,o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin,"select.pointer"==n&&(r=dP(i.facet(EC).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function EP(e,t,n,r=-1){if(Hk.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(Hk.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&" "==e.state.sliceDoc(t.from,i.from))&&1==t.insert.length&&2==t.insert.lines&&PR(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&0==t.insert.length||8==r&&t.insert.lengthi.head)&&PR(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&0==t.insert.length&&PR(e.contentDOM,"Delete",46)))return!0;let o,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>o||(o=function(e,t,n){let r,i=e.state,o=i.selection.main,a=-1;if(t.from==t.to&&t.fromo.to){let n=t.fromt(e)),r,n);t.from==s&&(a=s)}if(a>-1)r={changes:t,selection:OE.cursor(t.from+t.insert.length,-1)};else if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))}else{let a=i.changes(t),s=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=o.to+10&&t.to>=o.to-10){let l,c=e.state.sliceDoc(t.from,t.to),u=n&&iP(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(o.head);let d=o.to-t.to;r=i.changeByRange(n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:s||n.map(a)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let p=i.changes({from:u,to:r,insert:t.insert}),h=n.to-o.to;return{changes:p,range:s?OE.range(Math.max(0,s.anchor+h),Math.max(0,s.head+h)):n.map(p)}})}else r={changes:a,selection:s&&i.selection.replaceRange(s)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}(e,t,n));return e.state.facet(rC).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function kP(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;return"end"==r&&(n-=a+Math.max(0,o-Math.min(a,s))-o),a=a?o-n:0,s=o+(s-a),a=o):s=s?o-n:0,a=o+(a-s),s=o),{from:o,toA:a,toB:s}}function RP(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class CP{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Hk.safari&&e.contentDOM.addEventListener("input",()=>null),Hk.gecko&&function(e){YP.has(e)||(YP.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=_C.get(r))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=AP(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,o=n[e];o&&i!=!o.handlers.length&&(r.removeEventListener(e,this.handleEvent),o=null),o||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&MP.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Hk.android&&Hk.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(Hk.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(QP.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||TP.indexOf(e.key)>-1&&e.ctrlKey)){let n={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};return n.shiftKey&&Hk.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&(t=this.view.win).visualViewport&&t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85&&(n.shiftKey=!1),this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:n},setTimeout(()=>this.flushIOSKey(),250),!0}var t;return 229!=e.keyCode&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from0||!!(Hk.safari&&!Hk.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function PP(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){hC(n.state,e)}}}function AP(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,r=e&&e.plugin.domEventHandlers,i=e&&e.plugin.domEventObservers;if(r)for(let e in r){let i=r[e];i&&n(e).handlers.push(PP(t.value,i))}if(i)for(let e in i){let r=i[e];r&&n(e).observers.push(PP(t.value,r))}}for(let e in $P)n(e).handlers.push($P[e]);for(let e in DP)n(e).observers.push(DP[e]);return t}const QP=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],TP="dthko",MP=[16,17,18,20,91,92,224,225];function _P(e){return.7*Math.max(0,e)+8}class IP{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=xR(e.contentDOM),this.atoms=e.state.facet(EC).map(t=>t(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(rk.allowMultipleSelections)&&function(e,t){let n=e.state.facet(KR);return n.length?n[0](t):Hk.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=uR(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=FP(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,r=0,i=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:a}=this.scrollParents.y.getBoundingClientRect());let s=PC(this.view);e.clientX-s.left<=r+6?t=-_P(r-e.clientX):e.clientX+s.right>=o-6&&(t=_P(e.clientX-o)),e.clientY-s.top<=i+6?n=-_P(i-e.clientY):e.clientY+s.bottom>=a-6&&(n=_P(e.clientY-a)),this.setScrollSpeed(t,n)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=dP(this.atoms,this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const $P=Object.create(null),DP=Object.create(null),LP=Hk.ie&&Hk.ie_version<15||Hk.ios&&Hk.webkit_version<604;function NP(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function zP(e,t){t=NP(e.state,oC,t);let n,{state:r}=e,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length;if(null!=WP&&r.selection.ranges.every(e=>e.empty)&&WP==o.toString()){let e=-1;n=r.changeByRange(n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:OE.cursor(n.from+l.length)}})}else n=a?r.changeByRange(e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:OE.cursor(e.from+t.length)}}):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function jP(e,t,n,r){if(1==r)return OE.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return OE.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=nE(i.text,o,!1):s=nE(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let e=nE(i.text,a,!1);if(r(i.text.slice(e,a))!=l)break;a=e}for(;s{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,Hk.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},DP.wheel=DP.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},$P.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),DP.touchstart=(e,t)=>{let n=e.inputState,r=t.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")},DP.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},DP.touchend=(e,t)=>{e.inputState.touchActive=!1},$P.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(eC))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=FP(t),i=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,o,a){let s,l=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),c=jP(e,l.pos,l.assoc,r);if(n.pos!=l.pos&&!o){let t=jP(e,n.pos,n.assoc,r),i=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=i1&&(s=function(e,t){for(let n=0;n=t)return OE.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(i,l.pos))?s:a?i.addRange(c):OE.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new IP(e,t,n,r)),r&&e.observer.ignore(()=>{RR(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};const BP=Hk.ie&&Hk.ie_version<=11;let ZP=null,XP=0,VP=0;function FP(e){if(!BP)return e.detail;let t=ZP,n=VP;return ZP=e,VP=Date.now(),XP=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(XP+1)%3:1}function qP(e,t,n,r){if(!(n=NP(e.state,oC,n)))return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&function(e,t){let n=e.state.facet(JR);return n.length?n[0](t):Hk.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}$P.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=OE.undirectionalRange(e,t))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",NP(e.state,aC,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1},$P.dragend=e=>(e.inputState.draggedContent=null,!1),$P.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&qP(e,t,r.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return qP(e,t,n,!0),!0}return!1},$P.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=LP?null:t.clipboardData;return n?(zP(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),zP(e,n.value)},50)}(e),!1)};let WP=null;$P.copy=$P.cut=(e,t)=>{if(!pR(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:NP(e,aC,t.join(e.lineBreak)),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;WP=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=LP?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}(e,n),!1)};const GP=XE.define();function HP(e,t){let n=[];for(let r of e.facet(iC)){let i=r(e,t);i&&n.push(i)}return n.length?e.update({effects:n,annotations:GP.of(!0)}):null}function UP(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=HP(e.state,t);n?e.dispatch(n):e.update([])}},10)}DP.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),UP(e)},DP.blur=e=>{e.observer.clearSelectionRange(),UP(e)},DP.compositionstart=DP.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},DP.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Hk.chrome&&Hk.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},DP.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},$P.beforeinput=(e,t)=>{var n,r;if("insertText"!=t.inputType&&"insertCompositionText"!=t.inputType||(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let r=null===(n=t.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),i=t.getTargetRanges();if(r&&i.length){let t=i[0],n=e.posAtDOM(t.startContainer,t.startOffset),o=e.posAtDOM(t.endContainer,t.endOffset);return EP(e,{from:n,to:o,insert:e.state.toText(r)},null),!0}}let i;if(Hk.chrome&&Hk.android&&(i=QP.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Hk.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Hk.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>DP.compositionend(e,t),20),!1};const YP=new Set,KP=["pre-wrap","normal","pre-line","break-spaces"];let JP=!1;function eA(){JP=!1}class tA{constructor(e){this.lineWrapping=e,this.doc=qS.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return KP.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>oA&&(JP=!0),this.height=e)}replace(e,t,n){return aA.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],d=i.lineAt(s,iA.ByPosNoHeight,n.setDoc(t),0,0),p=d.to>=l?d:i.lineAt(l,iA.ByPosNoHeight,n,0,0);for(u+=p.to-l,l=p.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.lineAt(0,iA.ByPos,n,r,i))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class uA extends cA{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new rA(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof uA||r instanceof dA&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof dA?r=new uA(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):aA.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class dA extends aA{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e0){let e=n[n.length-1];e instanceof dA?n[n.length-1]=new dA(e.length+r):n.push(null,new dA(r-1))}if(e>0){let t=n[0];t instanceof dA?n[0]=new dA(e+t.length):n.unshift(new dA(e-1),null)}return aA.of(n)}decomposeLeft(e,t){t.push(new dA(e-1),null)}decomposeRight(e,t){t.push(null,new dA(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new dA(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++],s=0;i<0&&(s=-i,i=r.heights[r.index++]),-1==a?a=i:Math.abs(i-a)>=oA&&(a=-2);let l=new uA(t,i,s);l.outdated=!1,n.push(l),o+=t+1}o<=i&&n.push(null,new dA(i-o).updateHeight(e,o));let s=aA.of(n);return(a<0||Math.abs(s.height-this.height)>=oA||Math.abs(a-this.heightMetrics(e,t).perLine)>=oA)&&(JP=!0),sA(this,s)}return(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class pA extends aA{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let c=t==iA.ByPosNoHeight?iA.ByPosNoHeight:iA.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,iA.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&hA(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?aA.of(this.break?[e,null,t]:[e,t]):(this.left=sA(this.left,e),this.right=sA(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function hA(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof dA&&(r=e[t+1])instanceof dA&&e.splice(t-1,3,new dA(n.length+1+r.length))}class fA{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof uA?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new uA(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new uA(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new dA(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof uA)return e;let t=new uA(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof uA||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=Math.min(t==e.parentNode?i.innerHeight:l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function OA(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class vA{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new tA(n),this.stateDeco=kA(t),this.heightMap=aA.empty().applyChanges(this.stateDeco,qS.empty,this.heightOracle.setDoc(t.doc),[new QC(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=rR.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:e,to:t})=>r>=e&&r<=t)){let{from:t,to:n}=this.lineBlockAt(r);e.push(new wA(t,n))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?EA:new RA(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(CA(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=kA(this.state);let r=e.changedRanges,i=QC.extendWithRanges(r,function(e,t,n){let r=new mA;return uk.compare(e,t,n,r,0),r.changes}(n,this.stateDeco,e?e.changes:cE.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);eA(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||JP)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let s=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heads.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(lC)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?_R.RTL:_R.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||"refresh"===this.mustMeasureContent,a=t.getBoundingClientRect(),s=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let l=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=wR(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,l|=16,o=s=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let p=xR(this.view.contentDOM,!1).y;p!=this.scrollParent&&(this.scrollParent=p,this.scrollAnchorHeight=-1,this.scrollOffset=0);let h=this.getScrollOffset();this.scrollOffset!=h&&(this.scrollAnchorHeight=-1,this.scrollOffset=h),this.scrolledToBottom=AR(this.scrollParent||e.win);let f=(this.printing?OA:gA)(t,this.paddingTop),m=f.top-this.pixelViewport.top,g=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(s=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}(e.dom))return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:s}=e.docView.measureTextSize();o=n>0&&r.refresh(i,n,a,s,Math.max(5,v/a),t),o&&(e.docView.minWidth=0,l|=16)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),eA();for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?aA.empty().applyChanges(this.stateDeco,qS.empty,this.heightOracle,[new QC(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new nA(n.from,i))}JP&&(l|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return b&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),l|=this.updateForViewport()),(2&l||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new wA(r.lineAt(o-1e3*n,iA.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),iA.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,iA.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,o=r<<1;if(this.defaultTextDirection!=_R.LTR&&!n)return[];let a=[],s=(r,o,l,c)=>{if(o-rr&&ee.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)e.fromt));if(!p){if(oe.from<=o&&e.to>=o)){let e=t.moveToLineBoundary(OE.cursor(o),!1,!0).head;e>r&&(o=e)}let e=this.gapSize(l,r,o,c);p=new vA(r,o,e,n||e<2e6?e:2e6)}a.push(p)},l=t=>{if(t.lengthi&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i2e6)for(let n of e)n.from>=t.from&&n.fromt.from&&s(t.from,a,t,i),le.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];uk.spans(t,this.viewport.from,this.viewport.to,{span(e,t){n.push({from:e,to:t})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let t=0;t=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||CA(this.heightMap.lineAt(e,iA.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||CA(this.heightMap.lineAt(this.scaler.fromDOM(e),iA.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return CA(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class wA{constructor(e,t){this.from=e,this.to=t}}function xA({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function SA(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const EA={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function kA(e){let t=e.facet(wC).filter(e=>"function"!=typeof e),n=e.facet(SC).filter(e=>"function"!=typeof e);return n.length&&t.push(uk.join(n)),t}class RA{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map(({from:n,to:i})=>{let o=t.lineAt(n,iA.ByPos,e,0,0).top,a=t.lineAt(i,iA.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tt.from==e.viewports[n].from&&t.to==e.viewports[n].to)}}function CA(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new rA(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(e=>CA(e,t)):e._content)}const PA=yE.define({combine:e=>e.join(" ")}),AA=yE.define({combine:e=>e.indexOf(!0)>-1}),QA=Ck.newName(),TA=Ck.newName(),MA=Ck.newName(),_A={"&light":"."+TA,"&dark":"."+MA};function IA(e,t,n){return new Ck(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]}):e+" "+t})}const $A=IA("."+QA,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},_A),DA={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},LA=Hk.ie&&Hk.ie_version<=11;class NA{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new SR,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(Hk.ie&&Hk.ie_version<=11||Hk.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!Hk.android||!1===e.constructor.EDIT_CONTEXT||Hk.chrome&&Hk.chrome_version<126||(this.editContext=new BA(e),e.state.facet(fC)&&(e.contentDOM.editContext=this.editContext.editContext)),LA&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(fC)?n.root.activeElement!=this.dom:!pR(this.dom,r))return;let i=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);i&&i.isWidget()&&i.widget.ignoreEvent(e)?t||(this.selectionChanged=!1):(Hk.ie&&Hk.ie_version<=11||Hk.android&&Hk.chrome)&&!n.state.selection.main.empty&&r.focusNode&&fR(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=uR(e.root);if(!t)return!1;let n=Hk.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return jA(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?jA(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=pR(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&PR(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&pR(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new wP(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=SP(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!RP(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let n=zA(t,e.previousSibling||e.target.previousSibling,-1),r=zA(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(fC)!=e.state.facet(fC)&&(e.view.contentDOM.editContext=e.state.facet(fC)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function zA(e,t,n){for(;t;){let r=_C.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function jA(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor,1);return fR(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}class BA{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:i,head:o}=r,a=this.toEditorPos(n.updateRangeStart),s=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let l=s-a>n.text.length;a==this.from&&ithis.to&&(s=i);let c=kP(e.state.sliceDoc(a,s),n.text,(l?r.from:r.to)-a,l?"end":null);if(!c){let t=OE.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));return void(RP(t,r)||e.dispatch({selection:t,userEvent:"select"}))}let u={from:c.from+a,to:c.toA+a,insert:qS.of(n.text.slice(c.from,c.toB).split("\n"))};if((Hk.mac||Hk.android)&&u.from==o-1&&/^\. ?$/.test(n.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(u={from:a,to:s,insert:qS.of([n.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);EP(e,u,OE.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),o=this.toEditorPos(n.rangeEnd);t{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),o=this.toEditorPos(e.rangeEnd);if(i{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=uR(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,o,a,s,l)=>{if(n)return;let c=l.length-(o-i);if(r&&o>=r.to){if(r.from==i&&r.to==o&&r.insert.eq(l))return r=this.pendingContextChange=null,t+=c,void(this.to+=c);r=null,this.revertPending(e.state)}if(i+=t,(o+=t)<=this.from)this.from+=c,this.to+=c;else if(ithis.to||this.to-this.from+l.length>3e4)return void(n=!0);this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ZA{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(e=>e.forEach(e=>n(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new yA(this,e.state||rk.create(e)),e.scrollTo&&e.scrollTo.is(dC)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(gC).map(e=>new vC(e));for(let e of this.plugins)e.update(this);this.observer=new NA(this),this.inputState=new CP(this),this.inputState.ensureHandlers(this.plugins),this.docView=new nP(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof WE?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,i=this.state;for(let t of e){if(t.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed)return void(this.viewState.state=i);let o=this.hasFocus,a=0,s=null;e.some(e=>e.annotation(GP))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,s=HP(i,o),s||(a=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(rk.phrases)!=this.state.facet(rk.phrases))return this.setState(i);t=TC.create(this,i,e),t.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:n,y:r}=this.state.facet(ZA.cursorScrollMargin);u=new uC(e.empty?e:OE.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",r,n)}for(let e of t.effects)e.is(dC)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=FA.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(AC)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(PA)!=t.state.facet(PA)&&(this.viewState.mustMeasureContent=!0),(n||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(nC))try{e(t)}catch(e){hC(this.state,e,"update listener")}(s||c)&&Promise.resolve().then(()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!SP(this,c)&&l.force&&PR(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new yA(this,e),this.plugins=e.facet(gC).map(e=>new vC(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new nP(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(gC),n=e.state.facet(gC);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new vC(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(AR(n||this.win))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure();if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests]);let l=s.map(e=>{try{return e.read(this)}catch(e){return hC(this.state,e),VA}}),c=TC.create(this,this.state,[]),u=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let e=0;e1||e<-1)&&!(Hk.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r+=e,n?n.scrollTop+=e:this.win.scrollBy(0,e),o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(nC))e(t)}get themeClasses(){return QA+" "+(this.state.facet(AA)?MA:TA)+" "+this.state.facet(PA)}updateAttrs(){let e=qA(this,bC,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(fC)?"true":"false",class:"cm-content",style:`${Hk.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),qA(this,yC,t);let n=this.observer.ignore(()=>{let n=Jk(this.contentDOM,this.contentAttrs,t),r=Jk(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(ZA.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(AC);let e=this.state.facet(ZA.cspNonce);Ck.mount(this.root,this.styleModules.concat($A).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return pP(this,e,cP(this,e,t,n))}moveByGroup(e,t){return pP(this,e,cP(this,e,t,t=>function(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==ek.Space&&(i=t),i==t}}(this,e.head,t)))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),i=n[t?n.length-1:0];return OE.cursor(i.side(t,r)+e.from,i.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=lP(e,t.head,t.assoc||-1),o=r&&i.type==nR.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==_R.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return OE.cursor(a,n?-1:1)}return OE.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return pP(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return OE.cursor(i,t.assoc);let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+u}let d=l.left+s,p=e.viewState.heightOracle.textHeight>>1,h=null!=r?r:p;for(let t=0;;t+=p){let r=a+(h+t)*o,i=fP(e,{x:d,y:r},!1,o);if(n?r>l.bottom:ra:uthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>XA)return GR(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||VR(r.isolates,t=RC(this,e))))return r.order;t||(t=RC(this,e));let r=function(e,t,n){if(!e)return[new XR(0,0,t==$R?1:0)];if(t==IR&&!n.length&&!ZR.test(e))return GR(e.length);if(n.length)for(;e.length>FR.length;)FR[FR.length]=256;let r=[],i=t==IR?0:1;return WR(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new FA(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Hk.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{RR(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,i,o;return dC.of(new uC("number"==typeof e?OE.cursor(e):e,null!==(n=t.y)&&void 0!==n?n:"nearest",null!==(r=t.x)&&void 0!==r?r:"nearest",null!==(i=t.yMargin)&&void 0!==i?i:5,null!==(o=t.xMargin)&&void 0!==o?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return dC.of(new uC(OE.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return OC.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return OC.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Ck.newName(),r=[PA.of(n),AC.of(IA(`.${n}`,e))];return t&&t.dark&&r.push(AA.of(!0)),r}static baseTheme(e){return AE.lowest(AC.of(IA("."+QA,e,_A)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&_C.get(n)||_C.get(e);return(null===(t=null==r?void 0:r.root)||void 0===t?void 0:t.view)||null}}ZA.styleModule=AC,ZA.inputHandler=rC,ZA.clipboardInputFilter=oC,ZA.clipboardOutputFilter=aC,ZA.scrollHandler=cC,ZA.focusChangeEffect=iC,ZA.perLineTextDirection=sC,ZA.exceptionSink=tC,ZA.updateListener=nC,ZA.editable=fC,ZA.mouseSelectionStyle=eC,ZA.dragMovesSelection=JR,ZA.clickAddsSelectionRange=KR,ZA.decorations=wC,ZA.blockWrappers=xC,ZA.outerDecorations=SC,ZA.atomicRanges=EC,ZA.bidiIsolatedRanges=kC,ZA.cursorScrollMargin=yE.define({combine:e=>{let t=5,n=5;for(let r of e)"number"==typeof r?t=n=r:({x:t,y:n}=r);return{x:t,y:n}}}),ZA.scrollMargins=CC,ZA.darkTheme=AA,ZA.cspNonce=yE.define({combine:e=>e.length?e[0]:""}),ZA.contentAttributes=yC,ZA.editorAttributes=bC,ZA.lineWrapping=ZA.contentAttributes.of({class:"cm-lineWrapping"}),ZA.announce=qE.define();const XA=4096,VA={};class FA{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:_R.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&Uk(o,n)}return n}const WA=Hk.mac?"mac":Hk.windows?"win":Hk.linux?"linux":"key";function GA(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const HA=AE.default(ZA.domEventHandlers({keydown:(e,t)=>tQ(KA(t.state),e,t,"editor")})),UA=yE.define({enables:HA}),YA=new WeakMap;function KA(e){let t=e.facet(UA),n=YA.get(t);return n||YA.set(t,n=function(e,t=WA){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map(e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=JA={view:t,prefix:n,scope:e};return setTimeout(()=>{JA==r&&(JA=null)},4e3),!0}]})}let p=d.join(" ");i(p,!1);let h=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});o&&h.run.push(o),a&&(h.preventDefault=!0),s&&(h.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:i}=r;for(let t in e)e[t].run.push(e=>i(e,eQ))}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce((e,t)=>e.concat(t),[]))),n}let JA=null,eQ=null;function tQ(e,t,n,r){eQ=t;let i=function(e){var t=!(Mk&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_k&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Tk:Qk)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=oE(rE(i,0))==i.length&&" "!=i,a="",s=!1,l=!1,c=!1;JA&&JA.view==n&&JA.scope==r&&(a=JA.prefix+" ",MP.indexOf(t.keyCode)<0&&(l=!0,JA=null));let u,d,p=new Set,h=e=>{if(e){for(let t of e.run)if(!p.has(t)&&(p.add(t),t(n)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},f=e[r];return f&&(h(f[a+GA(i,t,!o)])?s=!0:!o||!(t.altKey||t.metaKey||t.ctrlKey)||Hk.windows&&t.ctrlKey&&t.altKey||Hk.mac&&t.altKey&&!t.ctrlKey&&!t.metaKey||!(u=Qk[t.keyCode])||u==i?o&&t.shiftKey&&h(f[a+GA(i,t,!0)])&&(s=!0):(h(f[a+GA(u,t,!0)])||t.shiftKey&&(d=Tk[t.keyCode])!=i&&d!=u&&h(f[a+GA(d,t,!1)]))&&(s=!0),!s&&h(f._any)&&(s=!0)),l&&(s=!0),s&&c&&t.stopPropagation(),eQ=null,s}class nQ{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=rQ(e);return[new nQ(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==_R.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=rQ(e),c=a.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=s.right-(u?parseInt(u.paddingRight):0),h=lP(e,r,1),f=lP(e,i,-1),m=h.type==nR.Text?h:null,g=f.type==nR.Text?f:null;if(m&&(e.lineWrapping||h.widgetLineBreaks)&&(m=iQ(e,r,1,m)),g&&(e.lineWrapping||f.widgetLineBreaks)&&(g=iQ(e,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return v(b(n.from,n.to,m));{let t=m?b(n.from,null,m):y(h,!1),r=g?b(null,n.to,g):y(f,!0),i=[];return(m||h).to<(g||f).from-(m&&g?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2c&&r.from=o)break;s>i&&l(Math.max(e,i),null==t&&e<=c,Math.min(s,o),null==n&&s>=u,a.dir)}if(i=r.to+1,i>=o)break}return 0==s.length&&l(c,null==t,u,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function y(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function rQ(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==_R.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function iQ(e,t,n,r){let i=e.coordsAtPos(t,2*n);if(!i)return r;let o=e.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=e.posAtCoords({x:o.left+1,y:a}),l=e.posAtCoords({x:o.right-1,y:a});return null==s||null==l?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}class oQ{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(aQ)!=e.state.facet(aQ)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(aQ);for(;t!function(e,t){return e.constructor==t.constructor&&e.eq(t)}(e,this.drawn[t]))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e,Hk.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const aQ=yE.define();function sQ(e){return[OC.define(t=>new oQ(t,e)),aQ.of(e)]}const lQ=yE.define({combine:e=>ik(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function cQ(e){return e.startState.facet(lQ)!=e.state.facet(lQ)}const uQ=sQ({above:!0,markers(e){let{state:t}=e,n=t.facet(lQ),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty||n.drawRangeCursor&&!(o&&Hk.ios&&n.iosSelectionHandles)){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:OE.cursor(i.head,i.assoc);for(let i of nQ.forRange(e,t,n))r.push(i)}}return r},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=cQ(e);return n&&dQ(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){dQ(t.state,e)},class:"cm-cursorLayer"});function dQ(e,t){t.style.animationDuration=e.facet(lQ).cursorBlinkRate+"ms"}const pQ=sQ({above:!1,markers(e){let t=[],{main:n,ranges:r}=e.state.selection;for(let n of r)if(!n.empty)for(let r of nQ.forRange(e,"cm-selectionBackground",n))t.push(r);if(Hk.ios&&!n.empty&&e.state.facet(lQ).iosSelectionHandles){for(let r of nQ.forRange(e,"cm-selectionHandle cm-selectionHandle-start",OE.cursor(n.from,1)))t.push(r);for(let r of nQ.forRange(e,"cm-selectionHandle cm-selectionHandle-end",OE.cursor(n.to,1)))t.push(r)}return t},update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||cQ(e),class:"cm-selectionLayer"}),hQ=AE.highest(ZA.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),fQ=qE.define({map:(e,t)=>null==e?null:t.mapPos(e)}),mQ=CE.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is(fQ)?t.value:e,e))}),gQ=OC.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(mQ);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(mQ)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(mQ),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(mQ)!=e&&this.view.dispatch({effects:fQ.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function OQ(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}class vQ{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new dk,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))OQ(e.state.doc,this.regexp,t,r,(t,r)=>this.addMatch(r,e,t,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((t,i,o,a)=>{a>=e.view.viewport.from&&o<=e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(a,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>=o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;au.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,e,t,d));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:u})}}return t}}const bQ=null!=/x/.unicode?"gu":"g",yQ=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",bQ),wQ={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let xQ=null;const SQ=yE.define({combine(e){let t=ik(e,{render:null,specialChars:yQ,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==xQ&&"undefined"!=typeof document&&document.body){let t=document.body.style;xQ=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return xQ||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,bQ)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,bQ)),t}});let EQ=null;class kQ extends tR{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(wQ[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class RQ extends tR{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const CQ=rR.line({class:"cm-activeLine"}),PQ=OC.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(CQ.range(i.from)),t=i.from)}return rR.set(n)}},{decorations:e=>e.decorations});class AQ extends tR{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?hR(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=bR(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}const QQ=2e3;function TQ(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>QQ?-1:i==r.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):xk(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}const MQ={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},_Q={style:"cursor: crosshair"},IQ="-10000px";class $Q{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let i=null;this.tooltipViews=this.tooltips.map(e=>i=n(e,i))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter(e=>e);if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],a=t?[]:null;for(let n=0;nt[n]=e),t.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function DQ(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const LQ=yE.define({combine:e=>{var t,n,r;return{position:Hk.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find(e=>e.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find(e=>e.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||DQ}}}),NQ=new WeakMap,zQ=OC.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(LQ);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new $Q(e,XQ,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(LQ);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=IQ,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Hk.safari){let t=e.getBoundingClientRect();n=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else n=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(n||"absolute"==this.position)if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=PC(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(LQ).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1)){u.style.top=IQ;continue}let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,m=p.right-p.left,g=null!==(t=NQ.get(c))&&void 0!==t?t:p.bottom-p.top,O=c.offset||ZQ,v=this.view.textDirection==_R.LTR,b=p.width>r.right-r.left?v?r.left:r.right-p.width:v?Math.max(r.left,Math.min(d.left-(h?14:0)+O.x,r.right-m)):Math.min(Math.max(r.left,d.left-m+(h?14:0)-O.x),r.right-m),y=this.above[s];!l.strictSide&&(y?d.top-g-f-O.yr.bottom)&&y==r.bottom-d.bottom>d.top-r.top&&(y=this.above[s]=!y);let w=(y?d.top-r.top:r.bottom-d.bottom)-f;if(wb&&e.topx&&(x=y?e.top-g-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/o+"px",jQ(u,(b-e.parent.left)/i)):(u.style.top=x/o+"px",jQ(u,b/i)),h){let e=d.left+(v?O.x:-O.x)-(b+14-7);h.style.left=e/i+"px"}!0!==c.overlap&&a.push({left:b,top:x,right:S,bottom:x+g}),u.classList.toggle("cm-tooltip-above",y),u.classList.toggle("cm-tooltip-below",!y),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=IQ}},{eventObservers:{scroll(){this.maybeMeasure()}}});function jQ(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const BQ=ZA.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ZQ={x:0,y:0},XQ=yE.define({enables:[zQ,BQ]}),VQ=yE.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class FQ{static create(e){return new FQ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new $Q(e,VQ,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const qQ=XQ.compute([VQ],e=>{let t=e.facet(VQ);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:FQ.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),WQ=yE.define();class GQ{constructor(e,t,n,r,i,o){this.view=e,this.source=t,this.field=n,this.locked=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find(e=>e.from<=r&&e.to>=r),a=o&&o.dir==_R.RTL?-1:1;i=t.x{if(t&&(!Array.isArray(t)||t.length)){let n=Array.isArray(t)?t:[t];r&&this.locked.set(n,r),e.dispatch({effects:this.setHover.of(n)})}};if(i&&"then"in i){let n=this.pending={pos:t};i.then(e=>{this.pending==n&&(this.pending=null,o(e))},t=>hC(e.state,t,"hover tooltip"))}else o(i)}get tooltip(){let e=this.view.plugin(zQ),t=e?e.manager.tooltips.findIndex(e=>e.create==FQ.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&!this.locked.has(r)&&i&&!function(e,t){let n,{left:r,right:i,top:o,bottom:a}=e.getBoundingClientRect();if(n=e.querySelector(".cm-tooltip-arrow")){let e=n.getBoundingClientRect();o=Math.min(e.top,o),a=Math.max(e.bottom,a)}return t.clientX>=r-4&&t.clientX<=i+4&&t.clientY>=o-4&&t.clientY<=a+4}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,o=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==o?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let o=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righti||Math.min(o.bottom,a)=t&&s<=n}(this.view,i,o,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length&&!this.locked.has(t)){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t);let{active:r}=this;!r.length||this.locked.has(r)||this.view.dom.contains(n.relatedTarget)||this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function HQ(e,t={}){let n=qE.define(),r=new WeakMap,i=CE.define({create:()=>[],update(e,o){let a=r.get(e);if(e.length&&(t.hideOnChange&&(o.docChanged||o.selection)||a&&a(o)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(o,e)))),o.docChanged&&e.length){let t=[];for(let n of e){let e=o.changes.mapPos(n.pos,-1,sE.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=o.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of o.effects)t.is(n)&&(e=t.value,a=void 0),(t.is(YQ)&&!t.value||t.value==i)&&(e=[]);return e.length&&a&&r.set(e,a),e},provide:e=>VQ.from(e)});const o=OC.define(o=>new GQ(o,e,i,r,n,t.hoverTime||300));return{active:i,extension:[i,o,WQ.of(o),qQ]}}function UQ(e,t){let n=e.plugin(zQ);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const YQ=qE.define(),KQ=yE.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function JQ(e,t){let n=e.plugin(eT),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const eT=OC.fromClass(class{constructor(e){this.input=e.state.facet(rT),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(KQ);this.top=new tT(e,!0,t.topContainer),this.bottom=new tT(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(KQ);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new tT(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new tT(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(rT);if(n!=this.input){let t=n.filter(e=>e),r=[],i=[],o=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ZA.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class tT{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=nT(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=nT(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function nT(e){let t=e.nextSibling;return e.remove(),t}const rT=yE.define({enables:eT});const iT=CE.define({create:()=>[],update(e,t){for(let n of t.effects)n.is(oT)?e=[n.value].concat(e):n.is(aT)&&(e=e.filter(e=>e!=n.value));return e},provide:e=>rT.computeN([e],t=>t.field(e))}),oT=qE.define(),aT=qE.define();class sT extends ok{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}sT.prototype.elementClass="",sT.prototype.toDOM=void 0,sT.prototype.mapMode=sE.TrackBefore,sT.prototype.startSide=sT.prototype.endSide=-1,sT.prototype.point=!0;const lT=yE.define(),cT=yE.define(),uT={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>uk.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},dT=yE.define();function pT(e){return[fT(),dT.of({...uT,...e})]}const hT=yE.define({combine:e=>e.some(e=>e)});function fT(e){let t=[mT];return e&&!1===e.fixed&&t.push(hT.of(!0)),t}const mT=OC.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(dT).map(t=>new bT(e,t)),this.fixed=!e.state.facet(hT);for(let e of this.gutters)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(hT)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=uk.iter(this.view.state.facet(lT),this.view.viewport.from),r=[],i=this.gutters.map(e=>new vT(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=!0;for(let o of e.type)if(o.type==nR.Text&&t){OT(n,r,o.from);for(let e of i)e.line(this.view,o,r);t=!1}else if(o.widget)for(let e of i)e.widget(this.view,o)}else if(e.type==nR.Text){OT(n,r,e.from);for(let t of i)t.line(this.view,e,r)}else if(e.widget)for(let t of i)t.widget(this.view,e);for(let e of i)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(dT),n=e.state.facet(dT),r=e.docChanged||e.heightChanged||e.viewportChanged||!uk.eq(e.startState.facet(lT),e.state.facet(lT),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new bT(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>ZA.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||0==n.gutters.length||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,i=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==_R.LTR?{left:r,right:i}:{right:r,left:i}})});function gT(e){return Array.isArray(e)?e:[e]}function OT(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class vT{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=uk.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new yT(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];OT(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let n of e.state.facet(cT)){let i=n(e,t.widget,t);i&&(r||(r=[])).push(i)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class bT{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=gT(t.markers(e)),t.initialSpacer&&(this.spacer=new yT(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=gT(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!uk.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class yT{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nik(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class ET extends sT{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function kT(e,t){return e.state.facet(ST).formatNumber(t,e.state)}const RT=dT.compute([ST],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(wT),lineMarker:(e,t,n)=>n.some(e=>e.toDOM)?null:new ET(kT(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,n)=>{for(let r of e.state.facet(xT)){let i=r(e,t,n);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(ST)!=e.state.facet(ST),initialSpacer:e=>new ET(kT(e,CT(e.state.doc.lines))),updateSpacer(e,t){let n=kT(t.view,CT(t.view.state.doc.lines));return n==e.number?e:new ET(n)},domEventHandlers:e.facet(ST).domEventHandlers,side:"before"}));function CT(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(PT.range(i)))}return uk.of(t)}),QT=1024;let TT=0;class MT{constructor(e,t){this.from=e,this.to=t}}class _T{constructor(e={}){this.id=TT++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=DT.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}_T.closedBy=new _T({deserialize:e=>e.split(" ")}),_T.openedBy=new _T({deserialize:e=>e.split(" ")}),_T.group=new _T({deserialize:e=>e.split(" ")}),_T.isolate=new _T({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),_T.contextHash=new _T({perNode:!0}),_T.lookAhead=new _T({perNode:!0}),_T.mounted=new _T({perNode:!0});class IT{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[_T.mounted.id]}}const $T=Object.create(null);class DT{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):$T,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new DT(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(_T.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(_T.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}DT.none=new DT("",Object.create(null),0,8);class LT{constructor(e){this.types=e;for(let t=0;t=t){let a=new WT(o.tree,o.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(FT(a,t,n,!1))}}return i?KT(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,a=(o&jT.IncludeAnonymous)>0;for(let e=this.cursor(o|jT.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:iM(DT.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new BT(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new BT(DT.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=QT,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new ZT(n,n.length):n,l=r.types,c=0,u=0;function d(e,t,n,g,O,v){let{id:b,start:y,end:w,size:x}=s,S=u,E=c;if(x<0){if(s.next(),-1==x){let t=o[b];return n.push(t),void g.push(y-e)}if(-3==x)return void(c=b);if(-4==x)return void(u=b);throw new RangeError(`Unrecognized record size: ${x}`)}let k,R,C=l[b],P=y-e;if(w-y<=i&&(R=function(e,t){let n=s.fork(),r=0,o=0,l=0,c=n.end-i,u={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=o,u.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s=a?4:0,p=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3!=n.size&&-4!=n.size)break e;d+=4}else n.id>=a&&(d+=4);n.next()}o=p,r+=e,l+=d}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=l),u.size>4?u:void 0}(s.pos-t,O))){let t=new Uint16Array(R.size-R.skip),n=s.pos-R.size,i=t.length;for(;s.pos>n;)i=m(R.start,t,i);k=new XT(t,w-R.start,r),P=R.start-e}else{let e=s.pos-x;s.next();let t=[],n=[],r=b>=a?b:-1,o=0,l=w;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=l-i&&(h(t,n,y,o,s.end,l,r,S,E),o=t.length,l=s.end),s.next()):v>2500?p(y,e,t,n):d(y,e,t,n,r,v+1);if(r>=0&&o>0&&o-1&&o>0){let e=function(e,t){return(n,r,i)=>{let o,a,s=0,l=n.length-1;if(l>=0&&(o=n[l])instanceof BT){if(!l&&o.type==e&&o.length==i)return o;(a=o.prop(_T.lookAhead))&&(s=r[l]+o.length+a)}return f(e,n,r,i,s,t)}}(C,E);k=iM(C,t,n,0,t.length,0,w-y,e,e)}else k=f(C,t,n,w-y,S-w,E)}n.push(k),g.push(P)}function p(e,t,n,o){let a=[],l=0,c=-1;for(;s.pos>t;){let{id:e,start:t,end:n,size:r}=s;if(r>4)s.next();else{if(c>-1&&t=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-i,t[n++]=a[e+2]-i,t[n++]=n;n.push(new XT(t,a[2]-i,r)),o.push(i-e)}}function h(e,t,n,i,o,a,s,l,c){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+n-o);e.push(f(r.types[s],u,d,a-o,l-a,c)),t.push(o-n)}function f(e,t,n,r,i,o,a){if(o){let e=[_T.contextHash,o];a=a?[e].concat(a):[e]}if(i>25){let e=[_T.lookAhead,i];a=a?[e].concat(a):[e]}return new BT(e,t,n,r,a)}function m(e,t,n){let{id:r,start:i,end:o,size:l}=s;if(s.next(),l>=0&&r4){let r=s.pos-(l-4);for(;s.pos>r;)n=m(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==l?c=r:-4==l&&(u=r);return n}let g=[],O=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,g,O,-1,0);let v=null!==(t=e.length)&&void 0!==t?t:g.length?O[0]+g[0].length:0;return new BT(l[e.topID],g.reverse(),O.reverse(),v)}(e)}}BT.empty=new BT(DT.none,[],[],0);class ZT{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ZT(this.buffer,this.index)}}class XT{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return DT.none}toString(){let e=[];for(let t=0;t0));s=o[s+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,s=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function FT(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=l;e+=t){let l,c=a[e],u=s[e]+o.from;if(i&jT.EnterBracketed&&c instanceof BT&&(l=IT.get(c))&&!l.overlay&&l.bracketed&&n>=u&&n<=u+c.length||VT(r,n,u,u+c.length))if(c instanceof XT){if(i&jT.ExcludeBuffers)continue;let a=c.findChild(0,c.buffer.length,t,n-u,r);if(a>-1)return new YT(new UT(o,c,e,u),null,a)}else if(i&jT.IncludeAnonymous||!c.type.isAnonymous||tM(c)){let a;if(!(i&jT.IgnoreMounts)&&(a=IT.get(c))&&!a.overlay)return new WT(a.tree,u,e,o);let s=new WT(c,u,e,o);return i&jT.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?c.children.length-1:0,t,n,r,i)}}if(i&jT.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let r;if(!(n&jT.IgnoreOverlays)&&(r=IT.get(this._tree))&&r.overlay){let i=e-this.from,o=n&jT.EnterBracketed&&r.bracketed;for(let{from:e,to:n}of r.overlay)if((t>0||o?e<=i:e=i:n>i))return new WT(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function GT(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function HT(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class UT{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class YT extends qT{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new YT(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&jT.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new YT(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new YT(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new YT(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new BT(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function KT(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;rn.from||i.to0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&jT.IncludeAnonymous||e instanceof XT||!e.type.isAnonymous||tM(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return HT(this._tree,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function tM(e){return e.children.some(e=>e instanceof XT||!e.type.isAnonymous||tM(e))}const nM=new WeakMap;function rM(e,t){if(!e.isAnonymous||t instanceof XT||t.type!=e)return 1;let n=nM.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof BT)){n=1;break}n+=rM(e,r)}nM.set(t,n)}return n}function iM(e,t,n,r,i,o,a,s,l){let c=0;for(let n=r;n=u)break;f+=t}if(c==i+1){if(f>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[c-1]+n[c-1].length-h;d.push(iM(e,n,r,i,c,h,t,null,l))}p.push(h+s-o)}}(t,n,r,i,0),(s||l)(d,p,a)}class oM{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof YT?this.setBuffer(e.context.buffer,e.index,t):e instanceof WT&&this.map.set(e.tree,t)}get(e){return e instanceof YT?this.getBuffer(e.context.buffer,e.index):e instanceof WT?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class aM{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new aM(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new aM(e,n,t.tree,t.offset+l,a>0,!!c)}if(t&&r.push(t),o.to>u)break;o=inew MT(e.from,e.to)):[new MT(0,0)]:[new MT(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class lM{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new _T({perNode:!0});let cM=0;class uM{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=cM++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n="string"==typeof e?e:"?";if(e instanceof uM&&(t=e),null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let r=new uM(n,[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new pM(e);return e=>e.modified.indexOf(t)>-1?e:pM.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let dM=0;class pM{constructor(e){this.name=e,this.instances=[],this.id=dM++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>n.base==e&&function(e,t){return e.length==t.length&&e.every((e,n)=>e==t[n])}(t,n.modified));if(n)return n;let r=[],i=new uM(e.name,r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;nt.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(pM.get(t,e));return i}}function hM(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new mM(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return fM.add(t)}const fM=new _T({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new mM(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});class mM{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function OM(e,t,n,r=0,i=e.length){let o=new vM(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}mM.empty=new mM([],2,null);class vM{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:a,to:s}=e;if(a>=n||s<=t)return;o.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(o)));let l=r,c=function(e){let t=e.type.prop(fM);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||mM.empty,u=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(t,a),l),c.opaque)return;let d=e.tree&&e.tree.prop(_T.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+a,1),c=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let p=0,h=a;;p++){let f=p=m)&&e.nextSibling()););if(!f||m>n)break;h=f.to+a,h>t&&(this.highlightRange(o.cursor(),Math.max(t,f.from+a),Math.min(n,h),"",c),this.startSpan(Math.min(n,h),l))}u&&e.parent()}else if(e.firstChild()){d&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const bM=uM.define,yM=bM(),wM=bM(),xM=bM(wM),SM=bM(wM),EM=bM(),kM=bM(EM),RM=bM(EM),CM=bM(),PM=bM(CM),AM=bM(),QM=bM(),TM=bM(),MM=bM(TM),_M=bM(),IM={comment:yM,lineComment:bM(yM),blockComment:bM(yM),docComment:bM(yM),name:wM,variableName:bM(wM),typeName:xM,tagName:bM(xM),propertyName:SM,attributeName:bM(SM),className:bM(wM),labelName:bM(wM),namespace:bM(wM),macroName:bM(wM),literal:EM,string:kM,docString:bM(kM),character:bM(kM),attributeValue:bM(kM),number:RM,integer:bM(RM),float:bM(RM),bool:bM(EM),regexp:bM(EM),escape:bM(EM),color:bM(EM),url:bM(EM),keyword:AM,self:bM(AM),null:bM(AM),atom:bM(AM),unit:bM(AM),modifier:bM(AM),operatorKeyword:bM(AM),controlKeyword:bM(AM),definitionKeyword:bM(AM),moduleKeyword:bM(AM),operator:QM,derefOperator:bM(QM),arithmeticOperator:bM(QM),logicOperator:bM(QM),bitwiseOperator:bM(QM),compareOperator:bM(QM),updateOperator:bM(QM),definitionOperator:bM(QM),typeOperator:bM(QM),controlOperator:bM(QM),punctuation:TM,separator:bM(TM),bracket:MM,angleBracket:bM(MM),squareBracket:bM(MM),paren:bM(MM),brace:bM(MM),content:CM,heading:PM,heading1:bM(PM),heading2:bM(PM),heading3:bM(PM),heading4:bM(PM),heading5:bM(PM),heading6:bM(PM),contentSeparator:bM(CM),list:bM(CM),quote:bM(CM),emphasis:bM(CM),strong:bM(CM),link:bM(CM),monospace:bM(CM),strikethrough:bM(CM),inserted:bM(),deleted:bM(),changed:bM(),invalid:bM(),meta:_M,documentMeta:bM(_M),annotation:bM(_M),processingInstruction:bM(_M),definition:uM.defineModifier("definition"),constant:uM.defineModifier("constant"),function:uM.defineModifier("function"),standard:uM.defineModifier("standard"),local:uM.defineModifier("local"),special:uM.defineModifier("special")};for(let e in IM){let t=IM[e];t instanceof uM&&(t.name=e)}var $M;gM([{tag:IM.link,class:"tok-link"},{tag:IM.heading,class:"tok-heading"},{tag:IM.emphasis,class:"tok-emphasis"},{tag:IM.strong,class:"tok-strong"},{tag:IM.keyword,class:"tok-keyword"},{tag:IM.atom,class:"tok-atom"},{tag:IM.bool,class:"tok-bool"},{tag:IM.url,class:"tok-url"},{tag:IM.labelName,class:"tok-labelName"},{tag:IM.inserted,class:"tok-inserted"},{tag:IM.deleted,class:"tok-deleted"},{tag:IM.literal,class:"tok-literal"},{tag:IM.string,class:"tok-string"},{tag:IM.number,class:"tok-number"},{tag:[IM.regexp,IM.escape,IM.special(IM.string)],class:"tok-string2"},{tag:IM.variableName,class:"tok-variableName"},{tag:IM.local(IM.variableName),class:"tok-variableName tok-local"},{tag:IM.definition(IM.variableName),class:"tok-variableName tok-definition"},{tag:IM.special(IM.variableName),class:"tok-variableName2"},{tag:IM.definition(IM.propertyName),class:"tok-propertyName tok-definition"},{tag:IM.typeName,class:"tok-typeName"},{tag:IM.namespace,class:"tok-namespace"},{tag:IM.className,class:"tok-className"},{tag:IM.macroName,class:"tok-macroName"},{tag:IM.propertyName,class:"tok-propertyName"},{tag:IM.operator,class:"tok-operator"},{tag:IM.comment,class:"tok-comment"},{tag:IM.meta,class:"tok-meta"},{tag:IM.invalid,class:"tok-invalid"},{tag:IM.punctuation,class:"tok-punctuation"}]);const DM=new _T;function LM(e){return yE.define({combine:e?t=>t.concat(e):void 0})}const NM=new _T;class zM{constructor(e,t,n=[],r=""){this.data=e,this.name=r,rk.prototype.hasOwnProperty("tree")||Object.defineProperty(rk.prototype,"tree",{get(){return ZM(this)}}),this.parser=t,this.extension=[YM.of(this),rk.languageData.of((e,t,n)=>{let r=jM(e,t,n),i=r.type.prop(DM);if(!i)return[];let o=e.facet(i),a=r.type.prop(NM);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(e,t,n=-1){return jM(e,t,n).type.prop(DM)==this.data}findRegions(e){let t=e.facet(YM);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(DM)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(_T.mounted);if(i){if(i.tree.prop(DM)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0)]}),e.name)}configure(e,t){return new BM(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ZM(e){let t=e.field(zM.state,!1);return t?t.tree:BT.empty}class XM{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let VM=null;class FM{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new FM(e,t,[],BT.empty,0,n,[],null)}startParse(){return this.parser.startParse(new XM(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=BT.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(aM.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=VM;VM=this;try{return e()}finally{VM=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=qM(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=aM.applyChanges(n,t),r=BT.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=qM(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends sM{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=VM;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new BT(DT.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return VM}}function qM(e,t,n){return aM.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class WM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new WM(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=FM.create(e.facet(YM).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new WM(n)}}zM.state=CE.define({create:WM.init,update(e,t){for(let e of t.effects)if(e.is(zM.setState))return e.value;return t.startState.facet(YM)!=t.state.facet(YM)?WM.init(t.state):e.apply(t)}});let GM=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(GM=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const HM="undefined"!=typeof navigator&&(null===($M=navigator.scheduling)||void 0===$M?void 0:$M.isInputPending)?()=>navigator.scheduling.isInputPending():null,UM=OC.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(zM.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(zM.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=GM(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work(()=>HM&&HM()||Date.now()>o,r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:zM.setState.of(new WM(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>hC(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),YM=yE.define({combine:e=>e.length?e[0]:null,enables:e=>[zM.state,UM,ZA.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class KM{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const JM=yE.define(),e_=yE.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function t_(e){let t=e.facet(e_);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function n_(e,t){let n="",r=e.tabSize,i=e.facet(e_)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.fromr.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return a_(r,e,n)}(e,n,t):null}class i_{constructor(e,t={}){this.state=e,this.options=t,this.unit=t_(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return xk(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const o_=new _T;function a_(e,t,n){for(let r=e;r;r=r.next){let e=s_(r.node);if(e)return e(c_.create(t,n,r))}return 0}function s_(e){let t=e.type.prop(o_);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(_T.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>p_(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?l_:null}function l_(){return 0}class c_ extends i_{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new c_(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(u_(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return a_(this.context.next,this.base,this.pos)}}function u_(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function d_({closing:e,align:t=!0,units:n=1}){return r=>p_(r,t,n,e)}function p_(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=a)return null;let e=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}function h_({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const f_=yE.define(),m_=new _T;function g_(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&a.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function b_(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const y_=qE.define({map:b_}),w_=qE.define({map:b_});function x_(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}const S_=CE.define({create:()=>rR.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=E_(e,t,n)),e=e.map(t.changes);let n=[];for(let r of t.effects)r.is(y_)&&!R_(e,r.value.from,r.value.to)?n.push(r.value):r.is(w_)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=t.state.facet(T_),i=n.map(e=>(r?rR.replace({widget:new D_(r(t.state,e))}):$_).range(e.from,e.to));e=e.update({add:i})}return t.selection&&(e=E_(e,t.selection.main.head)),e},provide:e=>ZA.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{et&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function k_(e,t,n){var r;let i=null;return null===(r=e.field(S_,!1))||void 0===r||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}function R_(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}function C_(e,t){return e.field(S_,!1)?t:t.concat(qE.appendConfig.of(M_()))}function P_(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return ZA.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const A_=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of x_(e)){let n=v_(e.state,t.from,t.to);if(n)return e.dispatch({effects:C_(e.state,[y_.of(n),P_(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(S_,!1))return!1;let t=[];for(let n of x_(e)){let r=k_(e.state,n.from,n.to);r&&t.push(w_.of(r),P_(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(S_,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(w_.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],Q_={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},T_=yE.define({combine:e=>ik(e,Q_)});function M_(e){let t=[S_,z_];return e&&t.push(T_.of(e)),t}function I_(e,t){let{state:n}=e,r=n.facet(T_),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=k_(e.state,n.from,n.to);r&&e.dispatch({effects:w_.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const $_=rR.replace({widget:new class extends tR{toDOM(e){return I_(e,null)}}});class D_ extends tR{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return I_(e,this.value)}}const L_={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class N_ extends sT{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const z_=ZA.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class j_{constructor(e,t){let n;function r(e){let t=Ck.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof zM?e=>e.prop(DM)==o.data:o?e=>e==o:void 0,this.style=gM(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new Ck(n):null,this.themeType=t.themeType}static define(e,t){return new j_(e,t||{})}}const B_=yE.define(),Z_=yE.define({combine:e=>e.length?[e[0]]:null});function X_(e){let t=e.facet(B_);return t.length?t:e.facet(Z_)}function V_(e,t){let n,r=[q_];return e instanceof j_&&(e.module&&r.push(ZA.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(Z_.of(e)):n?r.push(B_.computeN([ZA.darkTheme],t=>t.facet(ZA.darkTheme)==("dark"==n)?[e]:[])):r.push(B_.of(e)),r}class F_{constructor(e){this.markCache=Object.create(null),this.tree=ZM(e.state),this.decorations=this.buildDeco(e,X_(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=ZM(e.state),n=X_(e.state),r=n!=X_(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return rR.none;let n=new dk;for(let{from:r,to:i}of e.visibleRanges)OM(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=rR.mark({class:r})))},r,i);return n.finish()}}const q_=AE.high(OC.fromClass(F_,{decorations:e=>e.decorations})),W_=j_.define([{tag:IM.meta,color:"#404740"},{tag:IM.link,textDecoration:"underline"},{tag:IM.heading,textDecoration:"underline",fontWeight:"bold"},{tag:IM.emphasis,fontStyle:"italic"},{tag:IM.strong,fontWeight:"bold"},{tag:IM.strikethrough,textDecoration:"line-through"},{tag:IM.keyword,color:"#708"},{tag:[IM.atom,IM.bool,IM.url,IM.contentSeparator,IM.labelName],color:"#219"},{tag:[IM.literal,IM.inserted],color:"#164"},{tag:[IM.string,IM.deleted],color:"#a11"},{tag:[IM.regexp,IM.escape,IM.special(IM.string)],color:"#e40"},{tag:IM.definition(IM.variableName),color:"#00f"},{tag:IM.local(IM.variableName),color:"#30a"},{tag:[IM.typeName,IM.namespace],color:"#085"},{tag:IM.className,color:"#167"},{tag:[IM.special(IM.variableName),IM.macroName],color:"#256"},{tag:IM.definition(IM.propertyName),color:"#00c"},{tag:IM.comment,color:"#940"},{tag:IM.invalid,color:"#f00"}]),G_=ZA.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),H_="()[]{}",U_=yE.define({combine:e=>ik(e,{afterCursor:!0,brackets:H_,maxScanDistance:1e4,renderMatch:J_})}),Y_=rR.mark({class:"cm-matchingBracket"}),K_=rR.mark({class:"cm-nonmatchingBracket"});function J_(e){let t=[],n=e.matched?Y_:K_;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function eI(e){let t=[],n=e.facet(U_);for(let r of e.selection.ranges){if(!r.empty)continue;let i=aI(e,r.head,-1,n)||r.head>0&&aI(e,r.head-1,1,n)||n.afterCursor&&(aI(e,r.head,1,n)||r.heade.decorations}),nI=[tI,G_],rI=new _T;function iI(e,t,n){let r=e.prop(t<0?_T.openedBy:_T.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function oI(e){let t=e.type.prop(rI);return t?t(e.node):e}function aI(e,t,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||H_,a=ZM(e),s=a.resolveInner(t,n);for(let e=s;e;e=e.parent){let r=iI(e.type,n,o);if(r&&e.from0?t>=i.from&&ti.from&&t<=i.to))return sI(0,0,n,e,i,r,o)}}return function(e,t,n,r,i,o,a){if(n<0?!t:t==e.doc.length)return null;let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let s=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=a.indexOf(o[e]);if(!(t<0||r.resolveInner(s+e,1).type!=i))if(t%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,i,o)}function sI(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},c=0,u=null==s?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(uI.push(e),console.warn(t))}function fI(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||IM[n];r?"function"==typeof r?t.length?t=t.map(r):hI(n,`Modifier ${n} used at start of tag`):t.length?hI(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:hI(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(e=>e.id),o=dI[i];if(o)return o.id;let a=dI[i]=DT.define({id:cI.length,name:r,props:[hM({[r]:n})]});return cI.push(a),a.id}function mI(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}_R.RTL,_R.LTR;const gI=mI(wI,0),OI=mI(yI,0),vI=mI((e,t)=>yI(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function bI(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function yI(e,t,n=t.selection.ranges){let r=n.map(e=>bI(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>function(e,{open:t,close:n},r,i){let o,a,s=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),c=/\s*$/.exec(s)[0].length,u=/^\s*/.exec(l)[0].length,d=s.length-c;if(s.slice(d-t.length,d)==t&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+50),a=e.sliceDoc(i-50,i));let p=/^\s*/.exec(o)[0].length,h=/\s*$/.exec(a)[0].length,f=a.length-h-n.length;return o.slice(p,p+t.length)==t&&a.slice(f,f+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(o.charAt(p+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(a.charAt(f-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t,n=0;ni&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+n.length)==n?e:-1;ee.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)!a&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const xI=XE.define(),SI=XE.define(),EI=yE.define(),kI=yE.define({combine:e=>ik(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),RI=CE.define({create:()=>BI.empty,update(e,t){let n=t.state.facet(kI),r=t.annotation(xI);if(r){let i=MI.fromTransaction(t,r.selection),o=r.side,a=0==o?e.undone:e.done;return a=i?_I(a,a.length,n.minDepth,i):DI(a,t.startState.selection),new BI(0==o?r.rest:a,0==o?a:r.rest)}let i=t.annotation(SI);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(WE.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=MI.fromTransaction(t),a=t.annotation(WE.time),s=t.annotation(WE.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new BI(e.done.map(MI.fromJSON),e.undone.map(MI.fromJSON))});function CI(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(RI,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const PI=CI(0,!1),AI=CI(1,!1),QI=CI(0,!0),TI=CI(1,!0);class MI{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new MI(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new MI(e.changes&&cE.fromJSON(e.changes),[],e.mapped&&lE.fromJSON(e.mapped),e.startSelection&&OE.fromJSON(e.startSelection),e.selectionsAfter.map(OE.fromJSON))}static fromTransaction(e,t){let n=$I;for(let t of e.startState.facet(EI)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new MI(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,$I)}static selection(e){return new MI(void 0,$I,void 0,void 0,e)}}function _I(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function II(e,t){return e.length?t.length?e.concat(t):e:t}const $I=[];function DI(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),_I(e,e.length-1,1e9,n.setSelAfter(r)))}return[MI.selection([t])]}function LI(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function NI(e,t){if(!e.length)return e;let n=e.length,r=$I;for(;n;){let i=zI(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[MI.selection(r)]:$I}function zI(e,t,n){let r=II(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):$I,n);if(!e.changes)return MI.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new MI(i,qE.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const jI=/^(input\.type|delete)($|\.)/;class BI{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new BI(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||jI.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t)),t.iterChangedRanges((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}}),r}(a.changes,e.changes))||"input.type.compose"==n)?_I(o,o.length-1,r.minDepth,new MI(e.changes.compose(a.changes),II(qE.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,$I)):_I(o,o.length,r.minDepth,e),new BI(o,$I,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:$I;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty).length}(i[i.length-1],e)?this:new BI(DI(this.done,e),this.undone,t,n)}addMapping(e){return new BI(NI(this.done,e),NI(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:xI.of({side:e,rest:LI(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?$I:r.slice(0,r.length-1);return i.mapped&&(n=NI(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:xI.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}BI.empty=new BI($I,$I);const ZI=[{key:"Mod-z",run:PI,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:AI,preventDefault:!0},{linux:"Ctrl-Shift-z",run:AI,preventDefault:!0},{key:"Mod-u",run:QI,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:TI,preventDefault:!0}];function XI(e,t){return OE.create(e.ranges.map(t),e.mainIndex)}function VI(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function FI({state:e,dispatch:t},n){let r=XI(e.selection,n);return!r.eq(e.selection,!0)&&(t(VI(e,r)),!0)}function qI(e,t){return OE.cursor(t?e.to:e.from)}function WI(e,t){return FI(e,n=>n.empty?e.moveByChar(n,t):qI(n,t))}function GI(e){return e.textDirectionAt(e.state.selection.main.head)==_R.LTR}const HI=e=>WI(e,!GI(e)),UI=e=>WI(e,GI(e));function YI(e,t){return FI(e,n=>n.empty?e.moveByGroup(n,t):qI(n,t))}function KI(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function JI(e,t,n){let r,i,o=ZM(e).resolveInner(t.head),a=n?_T.closedBy:_T.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;KI(e,t,a)?o=t:r=n?t.to:t.from}return i=o.type.prop(a)&&(r=n?aI(e,o.from,1):aI(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,OE.cursor(i,n?-1:1)}function e$(e,t){return FI(e,n=>{if(!n.empty)return qI(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;const t$=e=>e$(e,!1),n$=e=>e$(e,!0);function r$(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):qI(n,t));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottomi$(e,!1),a$=e=>i$(e,!0);function s$(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=OE.cursor(r.from+n))}return i}function l$(e,t,n){let r=XI(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=OE.range(e.head,e.anchor));let r=n(e);return OE.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(VI(e.state,r)),!0)}function c$(e,t){return l$(e,t,n=>e.moveByChar(n,t))}const u$=e=>c$(e,!GI(e)),d$=e=>c$(e,GI(e));function p$(e,t){return l$(e,t,n=>e.moveByGroup(n,t))}function h$(e,t){return l$(e,t,n=>e.moveVertically(n,t))}const f$=e=>h$(e,!1),m$=e=>h$(e,!0);function g$(e,t){return l$(e,t,n=>e.moveVertically(n,t,r$(e).height))}const O$=e=>g$(e,!1),v$=e=>g$(e,!0),b$=({state:e,dispatch:t})=>(t(VI(e,{anchor:0})),!0),y$=({state:e,dispatch:t})=>(t(VI(e,{anchor:e.doc.length})),!0),w$=({state:e,dispatch:t})=>(t(VI(e,{anchor:e.selection.main.anchor,head:0})),!0),x$=({state:e,dispatch:t})=>(t(VI(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function S$(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let o=n.doc.lineAt(r.head);if(t?o.to0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.heado.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(VI(n,OE.create(i,i.length-1))),!0)}function E$(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);ai&&(n="delete.forward",a=k$(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=k$(e,i,!1),o=k$(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:OE.cursor(i,it(e)))r.between(t,t,(e,r)=>{et&&(t=n?r:e)});return t}const R$=(e,t,n)=>E$(e,r=>{let i,o,a=r.from,{state:s}=e,l=s.doc.lineAt(a);if(n&&!t&&a>l.from&&aR$(e,!1,!0),P$=e=>R$(e,!0,!1),A$=(e,t)=>E$(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=nE(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),c=a(l);if(null!=e&&c!=e)break;" "==l&&r==n.head||(e=c),r=s}return r}),Q$=e=>A$(e,!1);function T$(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function M$(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of T$(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push(OE.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push(OE.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:OE.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function _$(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of T$(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const I$=$$(!1);function $$(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=ZM(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(_T.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new i_(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=r_(s,r);for(null==l&&(l=xk(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));io.from&&r{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:OE.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const L$=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(D$(e,(t,n)=>{n.push({from:t.from,insert:e.facet(e_)})}),{userEvent:"input.indent"})),!0),N$=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(D$(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=xk(r,e.tabSize),o=0,a=n_(e,Math.max(0,i-t_(e)));for(;oFI(e,t=>OE.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>l$(e,!1,t=>OE.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>FI(e,t=>OE.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>l$(e,!0,t=>OE.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:P$},{key:"Ctrl-h",run:C$},{key:"Ctrl-k",run:e=>E$(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:qS.of(["",""])},range:OE.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:nE(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:nE(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:OE.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:a$}],j$=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>FI(e,t=>JI(e.state,t,!GI(e))),shift:e=>{let t=!GI(e);return l$(e,t,n=>JI(e.state,n,t))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>FI(e,t=>JI(e.state,t,GI(e))),shift:e=>{let t=GI(e);return l$(e,t,n=>JI(e.state,n,t))}},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>M$(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>_$(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>M$(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>_$(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>S$(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>S$(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=OE.create([n.main]):n.main.empty||(r=OE.create([OE.cursor(n.main.head)])),!!r&&(t(VI(e,r)),!0)}},{key:"Mod-Enter",run:$$(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=T$(e).map(({from:t,to:n})=>OE.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:OE.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=XI(e.selection,t=>{let n=ZM(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return OE.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(VI(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:N$},{key:"Mod-]",run:L$},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new i_(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=D$(e,(t,i,o)=>{let a=r_(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],l=n_(e,a);(s!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(T$(t).map(({from:e,to:n})=>(e>0?e--:n{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=XI(e.selection,t=>{let i=aI(e,t.head,-1)||aI(e,t.head,1)||t.head>0&&aI(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=bI(e.state,n.from);return r.line?gI(e):!!r.block&&vI(e)}},{key:"Alt-A",run:OI},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:HI,shift:u$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>YI(e,!GI(e)),shift:e=>p$(e,!GI(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>FI(e,t=>s$(e,t,!GI(e))),shift:e=>{let t=!GI(e);return l$(e,t,n=>s$(e,n,t))},preventDefault:!0},{key:"ArrowRight",run:UI,shift:d$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>YI(e,GI(e)),shift:e=>p$(e,GI(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>FI(e,t=>s$(e,t,GI(e))),shift:e=>{let t=GI(e);return l$(e,t,n=>s$(e,n,t))},preventDefault:!0},{key:"ArrowUp",run:t$,shift:f$,preventDefault:!0},{mac:"Cmd-ArrowUp",run:b$,shift:w$},{mac:"Ctrl-ArrowUp",run:o$,shift:O$},{key:"ArrowDown",run:n$,shift:m$,preventDefault:!0},{mac:"Cmd-ArrowDown",run:y$,shift:x$},{mac:"Ctrl-ArrowDown",run:a$,shift:v$},{key:"PageUp",run:o$,shift:O$},{key:"PageDown",run:a$,shift:v$},{key:"Home",run:e=>FI(e,t=>s$(e,t,!1)),shift:e=>l$(e,!1,t=>s$(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:b$,shift:w$},{key:"End",run:e=>FI(e,t=>s$(e,t,!0)),shift:e=>l$(e,!0,t=>s$(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:y$,shift:x$},{key:"Enter",run:I$,shift:I$},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:C$,shift:C$,preventDefault:!0},{key:"Delete",run:P$,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Q$,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>A$(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>E$(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>E$(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),B$={key:"Tab",run:L$,shift:N$},Z$="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class X${constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(Z$(e)):Z$,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return rE(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=iE(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=oE(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,o=!0;;e++){let n=r.charCodeAt(e),a=this.match(n,i,o,this.bufferPos+this.bufferStart,e==r.length-1);if(a)return this.value=a,this;if(e==r.length-1)break;o&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=U$(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new G$(t,e.sliceString(t,n));return W$.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=U$(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=G$.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function U$(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}"undefined"!=typeof Symbol&&(q$.prototype[Symbol.iterator]=H$.prototype[Symbol.iterator]=function(){return this});const Y$={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},K$=yE.define({combine:e=>ik(e,Y$,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),J$=rR.mark({class:"cm-selectionMatch"}),eD=rR.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function tD(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==ek.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==ek.Word)}const nD=OC.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(K$),{state:n}=e,r=n.selection;if(r.ranges.length>1)return rR.none;let i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return rR.none;let e=n.wordAt(o.head);if(!e)return rR.none;a=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return rR.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),a=n.charCategorizer(o.head),!tD(a,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==ek.Word&&e(t.sliceDoc(r-1,r))==ek.Word}(a,n,o.from,o.to))return rR.none}else if(i=n.sliceDoc(o.from,o.to),!i)return rR.none}let s=[];for(let r of e.visibleRanges){let e=new X$(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!a||tD(a,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?s.push(eD.range(r,i)):(r>=o.to||i<=o.from)&&s.push(J$.range(r,i)),s.length>t.maxMatches))return rR.none}}return rR.set(s)}},{decorations:e=>e.decorations}),rD=ZA.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),iD=yE.define({combine:e=>ik(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new _D(e),scrollToMatch:e=>ZA.scrollIntoView(e)})});class oD{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,F$),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new pD(this):new lD(this)}getCursor(e,t=0,n){let r=e.doc?e:rk.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?cD(this,r,t,n):sD(this,r,t,n)}}class aD{constructor(e){this.spec=e}}function sD(e,t,n,r){let i;return e.wholeWord&&(i=function(e,t){return(n,r,i,o)=>((o>n||o+i.length{if(n&&!n(r,i,o,a))return!1;let s=r>=a&&i<=a+o.length?o.slice(r-a,i-a):t.doc.sliceString(r,i);return e(s,t,r,i)}}(e.test,t,i)),new X$(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}class lD extends aD{constructor(e){super(e)}nextMatch(e,t,n){let r=sD(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=sD(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=sD(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),!r||r.from==t&&r.to==n?null:r}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=sD(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=sD(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function cD(e,t,n,r){let i;var o;return e.wholeWord&&(o=t.charCategorizer(t.selection.main.head),i=(e,t,n)=>!n[0].length||(o(uD(n.input,n.index))!=ek.Word||o(dD(n.input,n.index))!=ek.Word)&&(o(dD(n.input,n.index+n[0].length))!=ek.Word||o(uD(n.input,n.index+n[0].length))!=ek.Word)),e.test&&(i=function(e,t,n){return(r,i,o)=>(!n||n(r,i,o))&&e(o[0],t,r,i)}(e.test,t,i)),new q$(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function uD(e,t){return e.slice(nE(e,t,!1),t)}function dD(e,t){return e.slice(t,nE(e,t))}class pD extends aD{nextMatch(e,t,n){let r=cD(this.spec,e,n,e.doc.length).next();return r.done&&(r=cD(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=cD(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=cD(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const hD=qE.define(),fD=qE.define(),mD=CE.define({create:e=>new gD(CD(e).create(),null),update(e,t){for(let n of t.effects)n.is(hD)?e=new gD(n.value.create(),e.panel):n.is(fD)&&(e=new gD(e.query,n.value?RD:null));return e},provide:e=>rT.from(e,e=>e.panel)});class gD{constructor(e,t){this.query=e,this.panel=t}}const OD=rR.mark({class:"cm-searchMatch"}),vD=rR.mark({class:"cm-searchMatch cm-searchMatch-selected"}),bD=OC.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(mD))}update(e){let t=e.state.field(mD);(t!=e.startState.field(mD)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return rR.none;let{view:n}=this,r=new dk;for(let t=0,i=n.visibleRanges,o=i.length;ti[t+1].from-500;)s=i[++t].to;e.highlight(n.state,a,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?vD:OD)})}return r.finish()}},{decorations:e=>e.decorations});function yD(e){return t=>{let n=t.state.field(mD,!1);return n&&n.query.spec.valid?e(t,n):QD(t)}}const wD=yD((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=OE.single(r.from,r.to),o=e.state.facet(iD);return e.dispatch({selection:i,effects:[DD(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),AD(e),!0}),xD=yD((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=OE.single(i.from,i.to),a=e.state.facet(iD);return e.dispatch({selection:o,effects:[DD(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),AD(e),!0}),SD=yD((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:OE.create(n.map(e=>OE.range(e.from,e.to))),userEvent:"select.search.matches"}),0))}),ED=yD((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a,s,l=o,c=[],u=[];l.precise?l.from==r&&l.to==i&&(s=n.toText(t.getReplacement(l)),c.push({from:l.from,to:l.to,insert:s}),l=t.nextMatch(n,l.from,l.to),u.push(ZA.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))):l=t.nextMatch(n,l.from,l.to);let d=e.state.changes(c);return l&&(a=OE.single(l.from,l.to).map(d),u.push(DD(e,l)),u.push(n.facet(iD).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:u,userEvent:"input.replace"}),!0}),kD=yD((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:o}=r;o&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:ZA.announce.of(r),userEvent:"input.replace.all"}),!0});function RD(e){return e.state.facet(iD).createPanel(e)}function CD(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(iD);return new oD({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function PD(e){let t=JQ(e,RD);return t&&t.dom.querySelector("[main-field]")}function AD(e){let t=PD(e);t&&t==e.root.activeElement&&t.select()}const QD=e=>{let t=e.state.field(mD,!1);if(t&&t.panel){let n=PD(e);if(n&&n!=e.root.activeElement){let r=CD(e.state,t.query.spec);r.valid&&e.dispatch({effects:hD.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[fD.of(!0),t?hD.of(CD(e.state,t.query.spec)):qE.appendConfig.of(ND)]});return!0},TD=e=>{let t=e.state.field(mD,!1);if(!t||!t.panel)return!1;let n=JQ(e,RD);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:fD.of(!1)}),!0},MD=[{key:"Mod-f",run:QD,scope:"editor search-panel"},{key:"F3",run:wD,shift:xD,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:wD,shift:xD,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:TD,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let t=new X$(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(a=o.length),o.push(OE.range(t.value.from,t.value.to))}return t(e.update({selection:OE.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=function(e,t){let n,r=new Promise(e=>n=e),i=e=>function(e,t,n){let r=t.content?t.content(e,()=>a(null)):null;if(!r){if(r=Dk("form"),t.input){let e=Dk("input",t.input);/^(text|password|number|email|tel|url)$/.test(e.type)&&e.classList.add("cm-textfield"),e.name||(e.name="input"),r.appendChild(Dk("label",(t.label||"")+": ",e))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(Dk("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let i="FORM"==r.nodeName?[r]:r.querySelectorAll("form");for(let e=0;e{27==e.keyCode?(e.preventDefault(),a(null)):13==e.keyCode&&(e.preventDefault(),a(t))}),t.addEventListener("submit",e=>{e.preventDefault(),a(t)})}let o=Dk("div",r,Dk("button",{onclick:()=>a(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));function a(t){o.contains(o.ownerDocument.activeElement)&&e.focus(),n(t)}return t.class&&(o.className=t.class),o.classList.add("cm-dialog"),{dom:o,top:t.top,mount:()=>{if(t.focus){let e;e="string"==typeof t.focus?r.querySelector(t.focus):r.querySelector("input")||r.querySelector("button"),e&&"select"in e?e.select():e&&"focus"in e&&e.focus()}}}}(e,t,n);e.state.field(iT,!1)?e.dispatch({effects:oT.of(i)}):e.dispatch({effects:qE.appendConfig.of(iT.init(()=>[i]))});let o=aT.of(i);return{close:o,result:r.then(t=>{let n=e.win.queueMicrotask||(t=>e.win.setTimeout(t,10));return n(()=>{e.state.field(iT).indexOf(i)>-1&&e.dispatch({effects:o})}),t})}}(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i)return void e.dispatch({effects:r});let o=t.doc.lineAt(t.selection.main.head),[,a,s,l,c]=i,u=l?+l.slice(1):0,d=s?+s:o.number;if(s&&c){let e=d/100;a&&(e=e*("-"==a?-1:1)+o.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else s&&a&&(d=d*("-"==a?-1:1)+o.number);let p=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),h=OE.cursor(p.from+Math.max(0,Math.min(u,p.length)));e.dispatch({effects:[r,ZA.scrollIntoView(h.from,{y:"center"})],selection:h})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=OE.create(n.ranges.map(t=>e.wordAt(t.head)||OE.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new X$(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some(e=>e.from==i.value.from))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new X$(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(OE.range(i.from,i.to),!1),effects:ZA.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class _D{constructor(e){this.view=e;let t=this.query=e.state.field(mD).query.spec;function n(e,t,n){return Dk("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Dk("input",{value:t.search,placeholder:ID(e,"Find"),"aria-label":ID(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Dk("input",{value:t.replace,placeholder:ID(e,"Replace"),"aria-label":ID(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Dk("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Dk("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Dk("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Dk("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>wD(e),[ID(e,"next")]),n("prev",()=>xD(e),[ID(e,"previous")]),n("select",()=>SD(e),[ID(e,"all")]),Dk("label",null,[this.caseField,ID(e,"match case")]),Dk("label",null,[this.reField,ID(e,"regexp")]),Dk("label",null,[this.wordField,ID(e,"by word")]),...e.state.readOnly?[]:[Dk("br"),this.replaceField,n("replace",()=>ED(e),[ID(e,"replace")]),n("replaceAll",()=>kD(e),[ID(e,"replace all")])],Dk("button",{name:"close",onclick:()=>TD(e),"aria-label":ID(e,"close"),type:"button"},["×"])])}commit(){let e=new oD({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:hD.of(e)}))}keydown(e){var t,n;t=this.view,n=e,tQ(KA(t.state),n,t,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?xD:wD)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),ED(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(hD)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(iD).top}}function ID(e,t){return e.state.phrase(t)}const $D=/[\s\.,:;?!]/;function DD(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-30),a=Math.min(i,n+30),s=e.state.sliceDoc(o,a);if(o!=r.from)for(let e=0;e<30;e++)if(!$D.test(s[e+1])&&$D.test(s[e])){s=s.slice(e);break}if(a!=i)for(let e=s.length-1;e>s.length-30;e--)if(!$D.test(s[e-1])&&$D.test(s[e])){s=s.slice(0,e);break}return ZA.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const LD=ZA.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ND=[mD,AE.low(bD),LD];class zD{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=ZM(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(VD(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function jD(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function BD(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}class ZD{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function XD(e){return e.selection.main.from}function VD(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const FD=XE.define();function qD(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+o,s.from+a)!=e.sliceDoc(n,r))return{range:s};let l=e.toText(t);return{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:l},range:OE.cursor(s.from+o+l.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const WD=new WeakMap;function GD(e){if(!Array.isArray(e))return e;let t=WD.get(e);return t||WD.set(e,t=BD(e)),t}const HD=qE.define(),UD=qE.define();class YD{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(v=iE(l))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!r||1==b&&m||0==O&&0!=b)&&(t[u]==l||n[u]==l&&(d=!0)?o[u++]=r:o.length&&(g=!1)),O=b,r+=oE(l)}return u==s&&0==o[0]&&g?this.result((d?-200:0)-100,o,e):p==s&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==s?this.ret(-900-e.length,[h,f]):u==s?this.result((d?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?oE(rE(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}}class KD{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.lengthik(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:tL,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>eL(e(n),t(n)),optionClass:(e,t)=>n=>eL(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function eL(e,t){return e?t?e+" "+t:e:t}function tL(e,t,n,r,i,o){let a,s,l=e.textDirection==_R.RTL,c=l,u=!1,d="top",p=t.left-i.left,h=i.right-t.right,f=r.right-r.left,m=r.bottom-r.top;if(c&&p=m||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}return{style:`${d}: ${a/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${s/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(u?l?"left-narrow":"right-narrow":c?"left":"right")}}const nL=qE.define();function rL(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}class iL{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(JD);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,a=0;for(let e=0;ea&&i.appendChild(document.createTextNode(o.slice(a,t)));let s=i.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(o.slice(t,n))),s.className="cm-completionMatchedText",a=n}return ae.position-t.position).map(e=>e.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=rL(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:nL.of(t)}),n.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(JD).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:UD.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:a}=n.open;r.open&&r.open.options==i||(this.range=rL(i.length,o,e.state.facet(JD).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected=this.range.to)&&(this.range=rL(t.options.length,t.selected,this.view.state.facet(JD).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let o="string"==typeof i?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>hC(this.view.state,e,"completion info")):(this.addInfoPane(o,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby")):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom{e.target==r&&e.preventDefault()});let i=null;for(let o=n.from;on.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}const c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);u&&(c.className=u);for(let e of this.optionContent){let t=e(a,this.view.state,this.view,s);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew iL(n,e,t)}function aL(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class sL{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new sL(this.options,dL(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i,o){if(r&&!o&&e.some(e=>e.isPending))return r.setDisabled();let a=function(e,t){let n=[],r=null,i=null,o=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some(t=>t.name==e)||r.push("string"==typeof t?{name:e}:t)}},a=t.facet(JD);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)o(new ZD(t,r.source,e?e(t):[],1e9-n.length));else{let n,s=t.sliceDoc(r.from,r.to),l=a.filterStrict?new KD(s):new YD(s);for(let t of r.result.options)if(n=l.match(t.label)){let a=t.displayLabel?e?e(t,n.matched):[]:n.matched,s=n.score+(t.boost||0);if(o(new ZD(t,r.source,a,s)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;i||(i=Object.create(null)),i[e]=Math.max(s,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,o=(e,t)=>("dynamic"===e.rank&&"dynamic"===t.rank?i[t.name]-i[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.namet.score-e.score||c(e.completion,t.completion))){let t=e.completion;!l||l.label!=t.label||l.detail!=t.detail||null!=l.type&&null!=t.type&&l.type!=t.type||l.apply!=t.apply||l.boost!=t.boost?s.push(e):aL(e.completion)>aL(l)&&(s[s.length-1]=e),l=e.completion}return s}(e,t);if(!a.length)return r&&e.some(e=>e.isPending)?r.setDisabled():null;let s=t.facet(JD).selectOnOpen?0:-1;if(r&&r.selected!=s&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e,1e8),create:bL,above:i.aboveCursor},r?r.timestamp:Date.now(),s,!1)}map(e){return new sL(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new sL(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class lL{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new lL(pL,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(JD),r=(n.override||t.languageDataAt("autocomplete",XD(t)).map(GD)).map(t=>{let r=this.active.find(e=>e.source==t)||new fL(t,this.active.some(e=>0!=e.state)?1:0);return r.update(e,n)});r.length==this.active.length&&r.every((e,t)=>e==this.active[t])&&(r=this.active);let i=this.open,o=e.effects.some(e=>e.is(gL));i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;ne.isPending)&&(i=null),!i&&r.every(e=>!e.isPending)&&r.some(e=>e.hasResult())&&(r=r.map(e=>e.hasResult()?new fL(e.source,0):e));for(let t of e.effects)t.is(nL)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new lL(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?cL:uL}}const cL={"aria-autocomplete":"list"},uL={};function dL(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const pL=[];function hL(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(FD);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class fL{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=hL(e,t),r=this;(8&n||16&n&&this.touches(e))&&(r=new fL(r.source,0)),4&n&&0==r.state&&(r=new fL(this.source,1)),r=r.updateFor(e,n);for(let t of e.effects)if(t.is(HD))r=new fL(r.source,1,t.value);else if(t.is(UD))r=new fL(r.source,0);else if(t.is(gL))for(let e of t.value)e.source==r.source&&(r=e);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(XD(e.state))}}class mL extends fL{constructor(e,t,n,r,i,o){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=XD(e.state);if(a>o||!r||2&t&&(XD(e.startState)==this.from||ae.map(e=>e.map(t))}),OL=CE.define({create:()=>lL.start(),update:(e,t)=>e.update(t),provide:e=>[XQ.from(e,e=>e.tooltip),ZA.contentAttributes.from(e,e=>e.attrs)]});function vL(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(OL).active.find(e=>e.source==t.source);return r instanceof mL&&("string"==typeof n?e.dispatch({...qD(e.state,n,r.from,r.to),annotations:FD.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}const bL=oL(OL,vL);function yL(e,t="option"){return n=>{let r=n.state.field(OL,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+o*(e?1:-1):e?0:a-1;return s<0?s="page"==t?0:a-1:s>=a&&(s="page"==t?a-1:0),n.dispatch({effects:nL.of(s)}),!0}}const wL=e=>!!e.state.field(OL,!1)&&(e.dispatch({effects:HD.of(!0)}),!0);class xL{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const SL=OC.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(OL).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(OL),n=e.state.facet(JD);if(!e.selectionSet&&!e.docChanged&&e.startState.field(OL)==t)return;let r=e.transactions.some(e=>{let t=hL(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){hC(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(HD)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(OL);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(JD).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=XD(t),r=new zD(t,n,e.explicit,this.view),i=new xL(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(e=>{i.context.aborted||(i.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:UD.of(null)}),hC(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(JD).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(JD),r=this.view.state.field(OL);for(let i=0;ie.source==o.active.source);if(a&&a.isPending)if(null==o.done){let e=new fL(o.active.source,0);for(let t of o.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(a)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:gL.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(OL,!1);if(t&&t.tooltip&&this.view.state.facet(JD).closeOnBlur){let n=t.open&&UQ(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:UD.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:HD.of(!1)}),20),this.composing=0}}}),EL="object"==typeof navigator&&/Win/.test(navigator.platform),kL=AE.highest(ZA.domEventHandlers({keydown(e,t){let n=t.state.field(OL,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!EL||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(e.key)>-1&&vL(t,r),!1}})),RL=ZA.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class CL{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class PL{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,sE.TrackDel),n=e.mapPos(this.to,1,sE.TrackDel);return null==t||null==n?null:new PL(this.field,t,n)}}class AL{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),o=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=o,a=/^\t*/.exec(i)[0].length;for(let t=0;tnew PL(e.field,r[e.line]+e.from,r[e.line]+e.to));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1;0===e&&(e=1e9);let l=a.replace(/\\[{}]/g,e=>e[1]);for(let t=0;t=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>t.index){let n=t[2]?3+(t[1]||"").length:2;e.from-=n,e.to-=n}i.push(new CL(s,r.length,t.index,t.index+l.length)),o=o.slice(0,t.index)+a+o.slice(t.index+t[0].length)}o=o.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(o)}return new AL(r,i)}}let QL=rR.widget({widget:new class extends tR{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),TL=rR.mark({class:"cm-snippetField"});class ML{constructor(e,t){this.ranges=e,this.active=t,this.deco=rR.set(e.map(e=>(e.from==e.to?QL:TL).range(e.from,e.to)),!0)}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new ML(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}const _L=qE.define({map:(e,t)=>e&&e.map(t)}),IL=qE.define(),$L=CE.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(_L))return n.value;if(n.is(IL)&&e)return new ML(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ZA.decorations.from(e,e=>e?e.deco:rR.none)});function DL(e,t){return OE.create(e.filter(e=>e.field==t).map(e=>OE.range(e.from,e.to)))}function LL(e){let t=AL.parse(e);return(e,n,r,i)=>{let{text:o,ranges:a}=t.instantiate(e.state,r),{main:s}=e.state.selection,l={changes:{from:r,to:i==s.from?s.to:i,insert:qS.of(o)},scrollIntoView:!0,annotations:n?[FD.of(n),WE.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=DL(a,0)),a.some(e=>e.field>0)){let t=new ML(a,0),n=l.effects=[_L.of(t)];void 0===e.state.field($L,!1)&&n.push(qE.appendConfig.of([$L,BL,XL,RL]))}e.dispatch(e.state.update(l))}}function NL(e){return({state:t,dispatch:n})=>{let r=t.field($L,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:DL(r.ranges,i),effects:_L.of(o?null:new ML(r.ranges,i)),scrollIntoView:!0})),!0}}const zL=[{key:"Tab",run:NL(1),shift:NL(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field($L,!1)&&(t(e.update({effects:_L.of(null)})),!0)}],jL=yE.define({combine:e=>e.length?e[0]:zL}),BL=AE.highest(UA.compute([jL],e=>e.facet(jL)));function ZL(e,t){return{...t,apply:LL(e)}}const XL=ZA.domEventHandlers({mousedown(e,t){let n,r=t.state.field($L,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find(e=>e.from<=n&&e.to>=n);return!(!i||i.field==r.active||(t.dispatch({selection:DL(r.ranges,i.field),effects:_L.of(r.ranges.some(e=>e.field>i.field)?new ML(r.ranges,i.field):null),scrollIntoView:!0}),0))}}),VL={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},FL=qE.define({map(e,t){let n=t.mapPos(e,-1,sE.TrackAfter);return null==n?void 0:n}}),qL=new class extends ok{};qL.startSide=1,qL.endSide=-1;const WL=CE.define({create:()=>uk.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(FL)&&(e=e.update({add:[qL.range(n.value,n.value+1)]}));return e}}),GL="()[]{}<>«»»«[]{}";function HL(e){for(let t=0;t<16;t+=2)if(GL.charCodeAt(t)==e)return GL.charAt(t+1);return iE(e<128?e:e+1)}function UL(e,t){return e.languageDataAt("closeBrackets",t)[0]||VL}const YL="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),KL=ZA.inputHandler.of((e,t,n,r)=>{if((YL?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||2==r.length&&1==oE(rE(r,0))||t!=i.from||n!=i.to)return!1;let o=function(e,t){let n=UL(e,e.selection.main.head),r=n.brackets||VL.brackets;for(let i of r){let o=HL(rE(i,0));if(t==i)return o==i?iN(e,i,r.indexOf(i+i+i)>-1,n):nN(e,i,o,n.before||VL.before);if(t==o&&eN(e,e.selection.main.from))return rN(e,0,o)}return null}(e.state,r);return!!o&&(e.dispatch(o),!0)}),JL=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=UL(e,e.selection.main.head).brackets||VL.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return oE(rE(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let i of n)if(i==r&&tN(e.doc,t.head)==HL(rE(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:OE.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function eN(e,t){let n=!1;return e.field(WL).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function tN(e,t){let n=e.sliceString(t,t+2);return n.slice(0,oE(rE(n,0)))}function nN(e,t,n,r){let i=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:FL.of(o.to+t.length),range:OE.range(o.anchor+t.length,o.head+t.length)};let a=tN(e.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:FL.of(o.head+t.length),range:OE.cursor(o.head+t.length)}:{range:i=o}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function rN(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&tN(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:OE.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function iN(e,t,n,r){let i=r.stringPrefixes||VL.stringPrefixes,o=null,a=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:FL.of(r.to+t.length),range:OE.range(r.anchor+t.length,r.head+t.length)};let a,s=r.head,l=tN(e.doc,s);if(l==t){if(oN(e,s))return{changes:{insert:t+t,from:s},effects:FL.of(s+t.length),range:OE.cursor(s+t.length)};if(eN(e,s)){let r=n&&e.sliceDoc(s,s+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+r.length,insert:r},range:OE.cursor(s+r.length)}}}else{if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(a=aN(e,s-2*t.length,i))>-1&&oN(e,a))return{changes:{insert:t+t+t+t,from:s},effects:FL.of(s+t.length),range:OE.cursor(s+t.length)};if(e.charCategorizer(s)(l)!=ek.Word&&aN(e,s,i)>-1&&!function(e,t,n,r){let i=ZM(e).resolveInner(t,-1),o=r.reduce((e,t)=>Math.max(e,t.length),0);for(let a=0;a<5;a++){let a=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),s=a.indexOf(n);if(!s||s>-1&&r.indexOf(a.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,s,t,i))return{changes:{insert:t+t,from:s},effects:FL.of(s+t.length),range:OE.cursor(s+t.length)}}return{range:o=r}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function oN(e,t){let n=ZM(e).resolveInner(t+1);return n.parent&&n.from==t}function aN(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ek.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=ek.Word)return n}return-1}function sN(e={}){return[kL,OL,JD.of(e),SL,cN,RL]}const lN=[{key:"Ctrl-Space",run:wL},{mac:"Alt-`",run:wL},{mac:"Alt-i",run:wL},{key:"Escape",run:e=>{let t=e.state.field(OL,!1);return!(!t||!t.active.some(e=>0!=e.state)||(e.dispatch({effects:UD.of(null)}),0))}},{key:"ArrowDown",run:yL(!0)},{key:"ArrowUp",run:yL(!1)},{key:"PageDown",run:yL(!0,"page")},{key:"PageUp",run:yL(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(OL,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(JD).defaultKeymap?[lN]:[]));class uN{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class dN{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(xN).markerFilter;r&&(e=r(e,n));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new dk,a=[],s=0,l=n.doc.iter(),c=0,u=n.doc.length;for(let e=0;;){let t,n,r=e==i.length?null:i[e];if(!r&&!a.length)break;if(a.length)t=s,n=a.reduce((e,t)=>Math.min(e,t.to),r&&r.from>t?r.from:1e8);else{if(t=r.from,t>u)break;n=r.to,a.push(r),e++}for(;er.from||r.to==t)){n=Math.min(r.from,n);break}a.push(r),e++,n=Math.min(r.to,n)}n=Math.min(n,u);let d=!1;if(a.some(e=>e.from==t&&(e.to==n||n==u))&&(d=t==n,!d&&n-t<10)){let e=t-(c+l.value.length);e>0&&(l.next(e),c=t);for(let e=t;;){if(e>=n){d=!0;break}if(!l.lineBreak&&c+l.value.length>e)break;e=c+l.value.length,c+=l.value.length,l.next()}}let p=MN(a);if(d)o.add(t,t,rR.widget({widget:new RN(p),diagnostics:a.slice()}));else{let e=a.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(t,n,rR.mark({class:"cm-lintRange cm-lintRange-"+p+e,diagnostics:a.slice(),inclusiveEnd:a.some(e=>e.to>n)}))}if(s=n,s==u)break;for(let e=0;e{if(!(t&&i.diagnostics.indexOf(t)<0))if(r){if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new uN(r.from,n,r.diagnostic)}else r=new uN(e,n,t||i.diagnostics[0])}),r}const hN=qE.define(),fN=qE.define(),mN=qE.define(),gN=CE.define({create:()=>new dN(rR.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=pN(n,e.selected.diagnostic,i)||pN(n,null,i)}!n.size&&i&&t.state.facet(xN).autoPanel&&(i=null),e=new dN(n,i,r)}for(let n of t.effects)if(n.is(hN)){let r=t.state.facet(xN).autoPanel?n.value.length?PN.open:null:e.panel;e=dN.init(n.value,r,t.state)}else n.is(fN)?e=new dN(e.diagnostics,n.value?PN.open:null,e.selected):n.is(mN)&&(e=new dN(e.diagnostics,e.panel,n.value));return e},provide:e=>[rT.from(e,e=>e.panel),ZA.decorations.from(e,e=>e.diagnostics)]}),ON=rR.mark({class:"cm-lintRange cm-lintRange-active"});function vN(e,t,n){let r,{diagnostics:i}=e.state.field(gN),o=-1,a=-1;i.between(t-(n<0?1:0),t+(n>0?1:0),(e,i,{spec:s})=>{if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:bN(e,r)})}:null}function bN(e,t){return Dk("ul",{class:"cm-tooltip-lint"},t.map(t=>kN(e,t,!1)))}const yN=e=>{let t=e.state.field(gN,!1);return!(!t||!t.panel||(e.dispatch({effects:fN.of(!1)}),0))},wN=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(gN,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[fN.of(!0)],n.field(gN,!1)?r:r.concat(qE.appendConfig.of(IN)))});let i=JQ(e,PN.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(gN,!1);if(!t)return!1;let n=e.state.selection.main,r=pN(t.diagnostics,null,n.to+1);return!(!r&&(r=pN(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),function(e,t,n,r={}){var i;let o=e.state.facet(WQ).map(t=>e.plugin(t)).filter(e=>!!e);if(r.tooltip&&r.tooltip.active){let e=o.find(e=>e.field==r.tooltip.active);e&&(o=[e])}for(let a of o)a.activateHover(e,t,n,null!==(i=r.until)&&void 0!==i?i:()=>!1)}(e,r.from,1,{tooltip:_N,until:e=>e.docChanged||e.newSelection.main.headr.to}),0))}}],xN=yE.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...ik(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:SN,tooltipFilter:SN,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})})});function SN(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function EN(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function kN(e,t,n){var r;let i=n?EN(t.actions):[];return Dk("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Dk("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=pN(e.state.field(gN).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,l=i[r]?s.indexOf(i[r]):-1,c=l<0?s:[s.slice(0,l),Dk("u",s.slice(l,l+1)),s.slice(l+1)];return Dk("button",{type:"button",class:"cm-diagnosticAction"+(n.markClass?" "+n.markClass:""),onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${i[r]})"`}.`},c)}),t.source&&Dk("div",{class:"cm-diagnosticSource"},t.source))}class RN extends tR{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Dk("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class CN{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=kN(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class PN{constructor(e){this.view=e,this.items=[],this.list=Dk("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(27==t.keyCode)yN(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=EN(n.actions);for(let i=0;i{for(let t=0;tyN(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(gN).selected;if(!e)return-1;for(let t=0;t{for(let e of s.diagnostics){if(o.has(e))continue;o.add(e);let a,s=-1;for(let t=n;tn&&(this.items.splice(n,s-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}});n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=pN(this.view.state.field(gN).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:mN.of(t)})}static open(e){return new PN(e)}}function AN(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const QN=ZA.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:AN("#f11")},".cm-lintRange-warning":{backgroundImage:AN("orange")},".cm-lintRange-info":{backgroundImage:AN("#999")},".cm-lintRange-hint":{backgroundImage:AN("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function TN(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function MN(e){let t="hint",n=1;for(let r of e){let e=TN(r.severity);e>n&&(n=e,t=r.severity)}return t}const _N=HQ(vN,{hideOn:function(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(xN).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(e=>e.is(hN))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}}),IN=[gN,ZA.decorations.compute([gN],e=>{let{selected:t,panel:n}=e.field(gN);return t&&n&&t.from!=t.to?rR.set([ON.range(t.from,t.to)]):rR.none}),_N,QN];var $N=function(e){void 0===e&&(e={});var t=e.crosshairCursor,n=void 0!==t&&t,r=[];!1!==e.closeBracketsKeymap&&(r=r.concat(JL)),!1!==e.defaultKeymap&&(r=r.concat(j$)),!1!==e.searchKeymap&&(r=r.concat(MD)),!1!==e.historyKeymap&&(r=r.concat(ZI)),!1!==e.foldKeymap&&(r=r.concat(A_)),!1!==e.completionKeymap&&(r=r.concat(lN)),!1!==e.lintKeymap&&(r=r.concat(wN));var i=[];return!1!==e.lineNumbers&&i.push(function(e={}){return[ST.of(e),fT(),RT]}()),!1!==e.highlightActiveLineGutter&&i.push(AT),!1!==e.highlightSpecialChars&&i.push(function(e={}){return[SQ.of(e),EQ||(EQ=OC.fromClass(class{constructor(e){this.view=e,this.decorations=rR.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(SQ)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new vQ({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=rE(t[0],0);if(9==o){let e=i.lineAt(r),t=n.state.tabSize,o=xk(e.text,t,r-e.from);return rR.replace({widget:new RQ((t-o%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=rR.replace({widget:new kQ(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(SQ);e.startState.facet(SQ)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}()),!1!==e.history&&i.push(function(e={}){return[RI,kI.of(e),ZA.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?PI:"historyRedo"==e.inputType?AI:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&i.push(function(e={}){let t={...L_,...e},n=new N_(t,!0),r=new N_(t,!1),i=OC.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(YM)!=e.state.facet(YM)||e.startState.field(S_,!1)!=e.state.field(S_,!1)||ZM(e.startState)!=ZM(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new dk;for(let i of e.viewportLineBlocks){let o=k_(e.state,i.from,i.to)?r:v_(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:o}=t;return[i,pT({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||uk.empty},initialSpacer:()=>new N_(t,!1),domEventHandlers:{...o,click:(e,t,n)=>{if(o.click&&o.click(e,t,n))return!0;let r=k_(e.state,t.from,t.to);if(r)return e.dispatch({effects:w_.of(r)}),!0;let i=v_(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:y_.of(i)}),!0)}}}),M_()]}()),!1!==e.drawSelection&&i.push(function(e={}){return[lQ.of(e),uQ,pQ,hQ,lC.of(!0)]}()),!1!==e.dropCursor&&i.push([mQ,gQ]),!1!==e.allowMultipleSelections&&i.push(rk.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&i.push(rk.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let o=n.sliceString(i.from,r);if(!t.some(e=>e.test(o)))return e;let{state:a}=e,s=-1,l=[];for(let{head:e}of a.selection.ranges){let t=a.doc.lineAt(e);if(t.from==s)continue;s=t.from;let n=r_(a,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=n_(a,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e})),!1!==e.syntaxHighlighting&&i.push(V_(W_,{fallback:!0})),!1!==e.bracketMatching&&i.push(function(e={}){return[U_.of(e),nI]}()),!1!==e.closeBrackets&&i.push([KL,WL]),!1!==e.autocompletion&&i.push(sN()),!1!==e.rectangularSelection&&i.push(function(){let e=e=>e.altKey&&0==e.button;return ZA.mouseSelectionStyle.of((t,n)=>e(n)?function(e,t){let n=TQ(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,o){let a=TQ(e,t);if(!a)return r;let s=function(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>QQ||n.off>QQ||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&o.push(OE.range(n.from+a,n.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=Sk(n.text,a,e.tabSize,!0);if(r<0)o.push(OE.cursor(n.to));else{let t=Sk(n.text,s,e.tabSize);o.push(OE.range(n.from+r,n.from+t))}}}return o}(e.state,n,a);return s.length?o?OE.create(s.concat(r.ranges)):OE.create(s):r}}:null}(t,n):null)}()),!1!==n&&i.push(function(e={}){let[t,n]=MQ[e.key||"Alt"],r=OC.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,ZA.contentAttributes.of(e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?_Q:null})]}()),!1!==e.highlightActiveLine&&i.push(PQ),!1!==e.highlightSelectionMatches&&i.push(function(){let e=[rD,nD];return e}()),e.tabSize&&"number"==typeof e.tabSize&&i.push(e_.of(" ".repeat(e.tabSize))),i.concat([UA.of(r.flat())]).filter(Boolean)};const DN="#e06c75",LN="#abb2bf",NN="#7d8799",zN="#d19a66",jN="#2c313a",BN="#282c34",ZN="#353a42",XN="#528bff",VN=[ZA.theme({"&":{color:LN,backgroundColor:BN},".cm-content":{caretColor:XN},".cm-cursor, .cm-dropCursor":{borderLeftColor:XN},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:LN},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:BN,color:NN,border:"none"},".cm-activeLineGutter":{backgroundColor:jN},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ZN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ZN,borderBottomColor:ZN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:jN,color:LN}}},{dark:!0}),V_(j_.define([{tag:IM.keyword,color:"#c678dd"},{tag:[IM.name,IM.deleted,IM.character,IM.propertyName,IM.macroName],color:DN},{tag:[IM.function(IM.variableName),IM.labelName],color:"#61afef"},{tag:[IM.color,IM.constant(IM.name),IM.standard(IM.name)],color:zN},{tag:[IM.definition(IM.name),IM.separator],color:LN},{tag:[IM.typeName,IM.className,IM.number,IM.changed,IM.annotation,IM.modifier,IM.self,IM.namespace],color:"#e5c07b"},{tag:[IM.operator,IM.operatorKeyword,IM.url,IM.escape,IM.regexp,IM.link,IM.special(IM.string)],color:"#56b6c2"},{tag:[IM.meta,IM.comment],color:NN},{tag:IM.strong,fontWeight:"bold"},{tag:IM.emphasis,fontStyle:"italic"},{tag:IM.strikethrough,textDecoration:"line-through"},{tag:IM.link,color:NN,textDecoration:"underline"},{tag:IM.heading,fontWeight:"bold",color:DN},{tag:[IM.atom,IM.bool,IM.special(IM.variableName)],color:zN},{tag:[IM.processingInstruction,IM.string,IM.inserted],color:"#98c379"},{tag:IM.invalid,color:"#ffffff"}]))];var FN=ZA.theme({"&":{backgroundColor:"#fff"}},{dark:!1});class qN{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(e=>{try{e()}catch(e){console.error("TimeoutLatch callback error:",e)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class WN{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),0===this.latches.size&&this.stop()}start(){null===this.interval&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){null!==this.interval&&(clearInterval(this.interval),this.interval=null)}}var GN=null,HN=ZA.theme({"& .cm-scroller":{height:"100% !important"}}),UN=null,YN=null,KN=XE.define(),JN=[];function ez(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,o=e.onCreateEditor,a=e.onUpdate,s=e.extensions,l=void 0===s?JN:s,u=e.autoFocus,d=e.theme,p=void 0===d?"light":d,h=e.height,f=void 0===h?null:h,m=e.minHeight,g=void 0===m?null:m,O=e.maxHeight,v=void 0===O?null:O,b=e.width,y=void 0===b?null:b,w=e.minWidth,x=void 0===w?null:w,S=e.maxWidth,E=void 0===S?null:S,k=e.placeholder,R=void 0===k?"":k,C=e.editable,P=void 0===C||C,A=e.readOnly,Q=void 0!==A&&A,T=e.indentWithTab,M=void 0===T||T,_=e.basicSetup,I=void 0===_||_,$=e.root,D=e.initialState,L=(0,c.useState)(),N=L[0],z=L[1],j=(0,c.useState)(),B=j[0],Z=j[1],X=(0,c.useState)(),V=X[0],F=X[1],q=(0,c.useState)(()=>({current:null}))[0],W=(0,c.useState)(()=>({current:null}))[0],G=function(e,t,n,r,i,o){if(!(e||t||n||r||i||o))return null;var a=JSON.stringify({height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o});return a===UN?YN:(UN=a,YN=ZA.theme({"&":{height:e,minHeight:t,maxHeight:n,width:r,minWidth:i,maxWidth:o}}))}(f,g,v,y,x,E),H=ZA.updateListener.of(e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some(e=>e.annotation(KN))){q.current?q.current.reset():(q.current=new qN(()=>{if(W.current){var e=W.current;W.current=null,e()}q.current=null},200),("undefined"==typeof window?new WN:(GN||(GN=new WN),GN)).add(q.current));var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(e=>!e.empty)}))(e))}),U=function(e){void 0===e&&(e={});var t=e,n=t.indentWithTab,r=void 0===n||n,i=t.editable,o=void 0===i||i,a=t.readOnly,s=void 0!==a&&a,l=t.theme,c=void 0===l?"light":l,u=t.placeholder,d=void 0===u?"":u,p=t.basicSetup,h=void 0===p||p,f=[];switch(r&&f.unshift(UA.of([B$])),h&&("boolean"==typeof h?f.unshift($N()):f.unshift($N(h))),d&&f.unshift(function(e){let t=OC.fromClass(class{constructor(t){this.view=t,this.placeholder=e?rR.set([rR.widget({widget:new AQ(e),side:1}).range(0)]):rR.none}get decorations(){return this.view.state.doc.length?rR.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,ZA.contentAttributes.of({"aria-placeholder":e})]:t}(d)),c){case"light":f.push(FN);break;case"dark":f.push(VN);break;case"none":break;default:f.push(c)}return!1===o&&f.push(ZA.editable.of(!1)),s&&f.push(rk.readOnly.of(!0)),[...f]}({theme:p,editable:P,readOnly:Q,placeholder:R,indentWithTab:M,basicSetup:I}),Y=[H,...G?[G]:[],HN,...U];return a&&"function"==typeof a&&Y.push(ZA.updateListener.of(a)),Y=Y.concat(l),(0,c.useLayoutEffect)(()=>{if(N&&!V){var e={doc:t,selection:n,extensions:Y},r=D?rk.fromJSON(D.json,e,D.fields):rk.create(e);if(F(r),!B){var i=new ZA({state:r,parent:N,root:$});Z(i),o&&o(i,r)}}return()=>{B&&(F(void 0),Z(void 0))}},[N,V]),(0,c.useEffect)(()=>{e.container&&z(e.container)},[e.container]),(0,c.useEffect)(()=>()=>{B&&(B.destroy(),Z(void 0)),q.current&&(q.current.cancel(),q.current=null)},[B]),(0,c.useEffect)(()=>{u&&B&&B.focus()},[u,B]),(0,c.useEffect)(()=>{B&&B.dispatch({effects:qE.reconfigure.of(Y)})},[p,l,f,g,v,y,x,E,R,P,Q,M,I,r,a]),(0,c.useEffect)(()=>{if(void 0!==t){var e=B?B.state.doc.toString():"";if(B&&t!==e){var n=()=>{B&&t!==B.state.doc.toString()&&B.dispatch({changes:{from:0,to:B.state.doc.toString().length,insert:t||""},annotations:[KN.of(!0)]})};q.current&&!q.current.isDone?W.current=n:n()}}},[t,B]),{state:V,setState:F,view:B,setView:Z,container:N,setContainer:z}}var tz=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],nz=(0,c.forwardRef)((e,t)=>{var n=e.className,r=e.value,i=void 0===r?"":r,o=e.selection,a=e.extensions,s=void 0===a?[]:a,l=e.onChange,u=e.onStatistics,d=e.onCreateEditor,p=e.onUpdate,h=e.autoFocus,f=e.theme,m=void 0===f?"light":f,g=e.height,O=e.minHeight,v=e.maxHeight,b=e.width,y=e.minWidth,w=e.maxWidth,x=e.basicSetup,S=e.placeholder,E=e.indentWithTab,k=e.editable,R=e.readOnly,C=e.root,P=e.initialState,A=Eo(e,tz),Q=(0,c.useRef)(null),T=ez({root:C,value:i,autoFocus:h,theme:m,height:g,minHeight:O,maxHeight:v,width:b,minWidth:y,maxWidth:w,basicSetup:x,placeholder:S,indentWithTab:E,editable:k,readOnly:R,selection:o,onChange:l,onStatistics:u,onCreateEditor:d,onUpdate:p,extensions:s,initialState:P}),M=T.state,_=T.view,I=T.container,$=T.setContainer;(0,c.useImperativeHandle)(t,()=>({editor:Q.current,state:M,view:_}),[Q,I,M,_]);var D=(0,c.useCallback)(e=>{Q.current=e,$(e)},[$]);if("string"!=typeof i)throw new Error("value must be typeof string but got "+typeof i);var L="string"==typeof m?"cm-theme-"+m:"cm-theme";return(0,pe.jsx)("div",Ce({ref:D,className:L+(n?" "+n:"")},A))});nz.displayName="CodeMirror";const rz=nz;class iz{constructor(e,t,n,r,i,o,a,s,l,c=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new iz(e,[],t,n,n,0,[],0,r?new oz(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=this.reducePos=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t)return void(this.buffer[e-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:o}=this.p;this.pos=r;let a=o.stateFlag(i,1);!a&&(r>n||t<=o.maxNode)&&(this.reducePos=r),this.pushState(i,a?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new iz(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new az(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(!(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t0&&this.emitLookAhead()}}class oz{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class az{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class sz{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new sz(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new sz(this.stack,this.pos,this.index)}}function lz(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class cz{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const uz=new cz;class dz{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=uz,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r=this.chunk2Pos&&tr.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=uz,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class pz{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;mz(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}pz.prototype.contextual=pz.prototype.fallback=pz.prototype.extend=!1;class hz{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?lz(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(mz(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}hz.prototype.contextual=pz.prototype.fallback=pz.prototype.extend=!1;class fz{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function mz(e,t,n,r,i,o){let a=0,s=1<0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||Oz(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,c=0,u=e[a+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c>1,o=n+i+(i<<1),s=e[o],l=e[o+1]||65536;if(r=l)){a=e[o+2],t.advance();continue e}c=i+1}}break}a=e[n+3*u-1]}}function gz(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function Oz(e,t,n,r){let i=gz(n,r,t);return i<0||gz(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class wz{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?yz(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?yz(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(i instanceof BT){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+i.length}}}class xz{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new cz)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let r=0;rc.end+25&&(s=Math.max(c.lookAhead,s)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||(n=new cz,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new cz,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){1&i?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t4*e.bufferLength?new wz(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;or)i.push(a);else{if(this.advanceStack(a,i,n))continue;{e||(e=[],t=[]),e.push(a);let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return vz&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&(i.sort((e,t)=>t.score-e.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let e=1;e ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(r);a;){let r=this.parser.nodeSet.types[a.type.id]==a.type?i.getGoto(e.state,a.type.id):-1;if(r>-1&&a.length&&(!t||(a.prop(_T.contextHash)||0)==n))return e.useNode(a,r),vz&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(a.type.id)})`),!0;if(!(a instanceof BT)||0==a.children.length||a.positions[0]>0)break;let s=a.children[0];if(!(s instanceof BT&&0==a.positions[0]))break;a=s}}let a=i.stateSlot(e.state,4);if(a>0)return e.reduce(a),vz&&console.log(o+this.stackID(e)+` (via always-reduce ${i.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let a=0;ar?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Ez(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o ":"";if(a.deadEnd){if(i)continue;if(i=!0,a.restart(),vz&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}let u=a.split(),d=c;for(let e=0;e<10&&u.forceReduce()&&(vz&&console.log(d+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,n));e++)vz&&(d=this.stackID(u)+" -> ");for(let e of a.recoverByInsert(s))vz&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),vz&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),Ez(a,n)):(!r||r.scoree;class Cz extends sM{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;ne.topRules[t][1]),r=[];for(let e=0;e=0)i(r,e,t[n++]);else{let o=t[n+-r];for(let a=-r;a>0;a--)i(t[n++],e,o);n++}}}this.nodeSet=new LT(t.map((t,i)=>DT.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=QT;let o=lz(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e"number"==typeof e?new pz(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new Sz(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,a=r[i++];if(o&&n)return a;for(let n=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Pz(this.data,n+2)}r=t(Pz(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Pz(this.data,n+2)}if(!(1&this.data[n+2])){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(Cz.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(e=>e.from==n.external);if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=Az(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;ee.external(n,r)<<1|t}return e.get}const Qz=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function Tz(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Mz(e){return e>=48&&e<=57}function _z(e){return Mz(e)||e>=97&&e<=102||e>=65&&e<=70}const Iz=(e,t,n)=>(r,i)=>{for(let o=!1,a=0,s=0;;s++){let{next:l}=r;if(Tz(l)||45==l||95==l||o&&Mz(l))!o&&(45!=l||s>0)&&(o=!0),a===s&&45==l&&a++,r.advance();else{if(92!=l||10==r.peek(1)){o&&r.acceptToken(2==a&&i.canShift(2)?t:40==l?n:e);break}if(r.advance(),_z(r.next)){do{r.advance()}while(_z(r.next));32==r.next&&r.advance()}else r.next>-1&&r.advance();o=!0}}},$z=new fz(Iz(146,2,147),{contextual:!0}),Dz=new fz(Iz(148,3,4),{contextual:!0}),Lz=new fz(e=>{if(Qz.includes(e.peek(-1))){let{next:t}=e;(Tz(t)||95==t||35==t||46==t||42==t||91==t||58==t&&Tz(e.peek(1))||45==t||38==t)&&e.acceptToken(145)}}),Nz=new fz(e=>{if(!Qz.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),Tz(t)){do{e.advance()}while(Tz(e.next)||Mz(e.next));e.acceptToken(1)}}}),zz=hM({"AtKeyword import charset namespace keyframes media supports font-feature-values":IM.definitionKeyword,"from to selector scope MatchFlag":IM.keyword,NamespaceName:IM.namespace,KeyframeName:IM.labelName,KeyframeRangeName:IM.operatorKeyword,TagName:IM.tagName,ClassName:IM.className,PseudoClassName:IM.constant(IM.className),IdName:IM.labelName,"FeatureName PropertyName":IM.propertyName,AttributeName:IM.attributeName,NumberLiteral:IM.number,KeywordQuery:IM.keyword,UnaryQueryOp:IM.operatorKeyword,"CallTag ValueName FontName":IM.atom,VariableName:IM.variableName,Callee:IM.operatorKeyword,Unit:IM.unit,"UniversalSelector NestingSelector":IM.definitionOperator,"MatchOp CompareOp":IM.compareOperator,"ChildOp SiblingOp, LogicOp":IM.logicOperator,BinOp:IM.arithmeticOperator,Important:IM.modifier,Comment:IM.blockComment,ColorLiteral:IM.color,"ParenthesizedContent StringLiteral":IM.string,":":IM.punctuation,"PseudoOp #":IM.derefOperator,"; , |":IM.separator,"( )":IM.paren,"[ ]":IM.squareBracket,"{ }":IM.brace}),jz={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:152,"url-prefix":152,domain:152,regexp:152},Bz={__proto__:null,or:104,and:104,not:112,only:112,layer:206},Zz={__proto__:null,selector:118,style:124,layer:202},Xz={__proto__:null,"@import":198,"@media":210,"@charset":214,"@namespace":218,"@keyframes":224,"@supports":236,"@scope":240,"@font-feature-values":246},Vz={__proto__:null,to:243},Fz=Cz.deserialize({version:14,states:"MlQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FnO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#EOO'dQdO'#EQO'oQdO'#EXO'oQdO'#E[OOQP'#Fn'#FnO)RQhO'#E}OOQS'#Fm'#FmOOQS'#FQ'#FQQYQdOOO)YQdO'#EbO*iQhO'#EhO)YQdO'#EjO*pQdO'#ElO*{QdO'#EoO)}QhO'#EuO+TQdO'#EwO+`QdO'#EzO+eQaO'#CfO+lQ`O'#E_O+qQ`O'#F{O+|QdO'#F{QOQ`OOP,WO&jO'#CaPOOO)CA])CA]OOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,cQdO,59YO'_QdO,5:jO'dQdO,5:lO'oQdO,5:sO'oQdO,5:uO'oQdO,5:vO'oQdO'#FXO,nQ`O,58}O,vQdO'#E^OOQS,58},58}OOQP'#Cq'#CqOOQO'#D|'#D|OOQP,59Y,59YO,}Q`O,59YO-SQ`O,59YOOQP'#EP'#EPOOQP,5:j,5:jO-XQpO'#ERO-dQdO'#ESO-iQ`O'#ESO-nQpO,5:lO.XQaO,5:sO.oQaO,5:vOOQW'#D^'#D^O/nQhO'#DgO0RQhO,5;iO)}QhO'#DeO0`Q`O'#DnO0eQhO'#DxOOQW'#Ft'#FtOOQS,5;i,5;iO0jQ`O'#DhO0oQ`O'#DkOOQS-E9O-E9OOOQ['#Cv'#CvO0tQdO'#CwO1[QdO'#C}O1rQdO'#DQO2YQ!pO'#DSO4fQ!jO,5:|OOQO'#DX'#DXO-SQ`O'#DWO4vQ!nO'#FqO6|Q`O'#DYO7RQ`O'#DyOOQ['#Fq'#FqO7WQhO'#GOO7fQ`O,5;SO7kQ!bO,5;UOOQS'#En'#EnO7sQ`O,5;WO7xQdO,5;WOOQO'#Eq'#EqO8QQ`O,5;ZO8VQhO,5;aO'oQdO'#DjOOQS,5;c,5;cO0jQ`O,5;cO8_QdO,5;cOOQS'#F`'#F`O8gQdO'#E|O7fQ`O,5;fO8oQdO,5:yO9PQdO'#FZO9^Q`O,5lQhO'#DoOOQW,5:Y,5:YOOQW,5:d,5:dOOQW,5:S,5:SO>vQhO,5:VO?bQ!fO'#FrOOQS'#Fr'#FrOOQS'#FS'#FSO@rQdO,59cOOQ[,59c,59cOAYQdO,59iOOQ[,59i,59iOApQdO,59lOOQ[,59l,59lOOQ[,59n,59nO)YQdO,59pOBWQhO'#EdOOQW'#Ed'#EdOBuQ`O1G0hO4oQhO1G0hOOQ[,59r,59rO)}QhO'#D[OOQ[,59t,59tOBzQ#tO,5:eOCVQhO'#F]OCdQ`O,5vQhO'#DmOI_QhO'#DqOIgQhO'#DsOIlQhO'#FwOOQO'#Fw'#FwOItQ!bO'#DwOOQO'#Fy'#FyOOQO'#Fv'#FvOIyQ`O1G/qOOQS-E9Q-E9QOOQ[1G.}1G.}OOQ[1G/T1G/TOOQ[1G/W1G/WOOQ[1G/[1G/[OJOQdO,5;OOOQS7+&S7+&SOJTQ`O7+&SOJYQhO'#D]OJbQ`O,59vO)}QhO,59vOOQ[1G0P1G0POJjQ`O1G0POJoQhO,5;wOOQO-E9Z-E9ZOOQS7+&^7+&^OJ}QbO'#DSOOQO'#Et'#EtOK]Q`O'#EsOOQO'#Es'#EsOKhQ`O'#F^OKpQdO,5;^OOQS,5;^,5;^OOQ[1G/p1G/pOOQS7+&i7+&iO7fQ`O7+&iOK{Q!fO'#FYO)YQdO'#FYOMSQdO7+&POOQO7+&P7+&POOQO,5:{,5:{OOQO1G1a1G1aOMgQ!bO<vQhO'#DrOOQO,5:],5:]O! hQhO,5:_OGUQhO,5:cOOQW7+%]7+%]OOQO'#Ef'#EfO! pQ`O1G0jOOQS<xAN>xO!#zQ`OAN>xO!$PQaO,5;rOOQO-E9U-E9UO!$ZQdO,5;qOOQO-E9T-E9TOOQW<vQhO'#DuOOQO1G/y1G/yO!%vQ!bO1G/}OJOQdO'#F[O!&OQ`O7+&UOOQW7+&U7+&UO!&WQ!bO1G/cOOQ[7+$|7+$|O!&cQhO7+$|P!&jQ`O'#FTOOQO,5;y,5;yOOQO-E9]-E9]OOQS1G1d1G1dOOQPG24dG24dO!&oQ`OAN>ZO)YQdO1G1[O!&tQ`O7+'jOOQO1G/x1G/xO!&|Q`O,5:aO!$eQhO7+%iOOQO,5;v,5;vOOQO-E9Y-E9YOOQW<Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!o`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$[~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$[~!o`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$qYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOw~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+oYmYOy%jz!Q%j!Q![,_![!c%j!c!i,_!i#T%j#T#Z,_#Z;'S%j;'S;=`%{<%lO%jj,dY!o`Oy%jz!Q%j!Q![-S![!c%j!c!i-S!i#T%j#T#Z-S#Z;'S%j;'S;=`%{<%lO%jj-XY!o`Oy%jz!Q%j!Q![-w![!c%j!c!i-w!i#T%j#T#Z-w#Z;'S%j;'S;=`%{<%lO%jj.OYuY!o`Oy%jz!Q%j!Q![.n![!c%j!c!i.n!i#T%j#T#Z.n#Z;'S%j;'S;=`%{<%lO%jj.uYuY!o`Oy%jz!Q%j!Q![/e![!c%j!c!i/e!i#T%j#T#Z/e#Z;'S%j;'S;=`%{<%lO%jj/jY!o`Oy%jz!Q%j!Q![0Y![!c%j!c!i0Y!i#T%j#T#Z0Y#Z;'S%j;'S;=`%{<%lO%jj0aYuY!o`Oy%jz!Q%j!Q![1P![!c%j!c!i1P!i#T%j#T#Z1P#Z;'S%j;'S;=`%{<%lO%jj1UY!o`Oy%jz!Q%j!Q![1t![!c%j!c!i1t!i#T%j#T#Z1t#Z;'S%j;'S;=`%{<%lO%jj1{SuY!o`Oy%jz;'S%j;'S;=`%{<%lO%jd2[UOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jd2uS!yS!o`Oy%jz;'S%j;'S;=`%{<%lO%jb3WS^QOy%jz;'S%j;'S;=`%{<%lO%j~3gWOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{<%lO3d~4SRO;'S3d;'S;=`4];=`O3d~4`XOY3dZw3dwx*cx#O3d#O#P4P#P;'S3d;'S;=`4{;=`<%l3d<%lO3d~5OP;=`<%l3dj5WShYOy%jz;'S%j;'S;=`%{<%lO%j~5iOg~n5pUWQyWOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jj6ZWyW#PQOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj6xU!o`Oy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%jj7cY!o`$gYOy%jz!Q%j!Q![7[![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj8WY!o`Oy%jz{%j{|8v|}%j}!O8v!O!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj8{U!o`Oy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj9fU!o`$gYOy%jz!Q%j!Q![9_![;'S%j;'S;=`%{<%lO%jj:P[!o`$gYOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;'S%j;'S;=`%{<%lO%jj:zS!dYOy%jz;'S%j;'S;=`%{<%lO%jj;]WyWOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;'S%j;'S;=`%{<%lO%jj;zU`YOy%jz!Q%j!Q![7[![;'S%j;'S;=`%{<%lO%j~VUcYOy%jz![%j![!]>i!];'S%j;'S;=`%{<%lO%jj>pSdY!o`Oy%jz;'S%j;'S;=`%{<%lO%jj?RSnYOy%jz;'S%j;'S;=`%{<%lO%jh?dU!WWOy%jz!_%j!_!`?v!`;'S%j;'S;=`%{<%lO%jh?}S!WW!o`Oy%jz;'S%j;'S;=`%{<%lO%jl@bS!WW!ySOy%jz;'S%j;'S;=`%{<%lO%jj@uV!|Q!WWOy%jz!_%j!_!`?v!`!aA[!a;'S%j;'S;=`%{<%lO%jbAcS!|Q!o`Oy%jz;'S%j;'S;=`%{<%lO%jjArYOy%jz}%j}!OBb!O!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjBgW!o`Oy%jz!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jjCW[lY!o`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!zWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!zWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!o`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!o`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!o`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!o`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!o`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!o`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!o`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$pQ!o`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$cUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU#PQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[Lz,Nz,$z,Dz,1,2,3,4,new hz("m~RRYZ[z{a~~g~aO$_~~dP!P!Qg~lO$`~~",28,152)],topRules:{StyleSheet:[0,6],Styles:[1,126]},dynamicPrecedences:{94:1},specialized:[{term:147,get:e=>jz[e]||-1},{term:148,get:e=>Bz[e]||-1},{term:4,get:e=>Zz[e]||-1},{term:28,get:e=>Xz[e]||-1},{term:146,get:e=>Vz[e]||-1}],tokenPrec:2405});let qz=null;function Wz(){if(!qz&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));qz=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return qz||[]}const Gz=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Hz=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Uz=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Yz=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),Kz=/^(\w[\w-]*|-\w[\w-]*|)$/,Jz=/^-(-[\w-]*)?$/,ej=new oM,tj=["Declaration"];function nj(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function rj(e,t,n){if(t.to-t.from>4096){let r=ej.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(jT.IncludeAnonymous);if(a.firstChild())do{for(let t of rj(e,a.node,n))o.has(t.label)||(o.add(t.label),i.push(t))}while(a.nextSibling());return ej.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate(t=>{var o;if(n(t)&&t.matchContext(tj)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}}),r}}const ij=e=>t=>{let{state:n,pos:r}=t,i=ZM(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(o||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:Wz(),validFor:Kz};if("ValueName"==i.name)return{from:i.from,options:Hz,validFor:Kz};if("PseudoClassName"==i.name)return{from:i.from,options:Gz,validFor:Kz};if(e(i)||(t.explicit||o)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(i,n.doc))return{from:e(i)||o?i.from:r,options:rj(n.doc,nj(i),e),validFor:Jz};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:Wz(),validFor:Kz};return{from:i.from,options:Uz,validFor:Kz}}if("AtKeyword"==i.name)return{from:i.from,options:Yz,validFor:Kz};if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:Gz,validFor:Kz}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,options:Hz,validFor:Kz}:"Block"==a.name||"Styles"==a.name?{from:r,options:Wz(),validFor:Kz}:null},oj=ij(e=>"VariableName"==e.name),aj=BM.define({name:"css",parser:Fz.configure({props:[o_.add({Declaration:h_()}),m_.add({"Block KeyframeList":g_})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),sj=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],lj=new class{constructor(e){this.start=e.start,this.shift=e.shift||Rz,this.reduce=e.reduce||Rz,this.reuse=e.reuse||Rz,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}({start:!1,shift:(e,t)=>5==t||6==t||320==t?e:321==t,strict:!1}),cj=new fz((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(318)},{contextual:!0,fallback:!0}),uj=new fz((e,t)=>{let n,{next:r}=e;sj.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(316))},{contextual:!0}),dj=new fz((e,t)=>{91!=e.next||t.context||e.acceptToken(317)},{contextual:!0}),pj=new fz((e,t)=>{let{next:n}=e;if(43==n||45==n){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}else 63==n&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function hj(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const fj=new fz((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;sj.indexOf(e.next)>-1;)e.advance(),n++;if(hj(e.next,!0)){for(e.advance(),n++;hj(e.next,!1);)e.advance(),n++;for(;sj.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!hj(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(4,-n)}),mj=hM({"get set async static":IM.modifier,"for while do if else switch try catch finally return throw break continue default case defer":IM.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":IM.operatorKeyword,"let var const using function class extends":IM.definitionKeyword,"import export from":IM.moduleKeyword,"with debugger new":IM.keyword,TemplateString:IM.special(IM.string),super:IM.atom,BooleanLiteral:IM.bool,this:IM.self,null:IM.null,Star:IM.modifier,VariableName:IM.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":IM.function(IM.variableName),VariableDefinition:IM.definition(IM.variableName),Label:IM.labelName,PropertyName:IM.propertyName,PrivatePropertyName:IM.special(IM.propertyName),"CallExpression/MemberExpression/PropertyName":IM.function(IM.propertyName),"FunctionDeclaration/VariableDefinition":IM.function(IM.definition(IM.variableName)),"ClassDeclaration/VariableDefinition":IM.definition(IM.className),"NewExpression/VariableName":IM.className,PropertyDefinition:IM.definition(IM.propertyName),PrivatePropertyDefinition:IM.definition(IM.special(IM.propertyName)),UpdateOp:IM.updateOperator,"LineComment Hashbang":IM.lineComment,BlockComment:IM.blockComment,Number:IM.number,String:IM.string,Escape:IM.escape,ArithOp:IM.arithmeticOperator,LogicOp:IM.logicOperator,BitOp:IM.bitwiseOperator,CompareOp:IM.compareOperator,RegExp:IM.regexp,Equals:IM.definitionOperator,Arrow:IM.function(IM.punctuation),": Spread":IM.punctuation,"( )":IM.paren,"[ ]":IM.squareBracket,"{ }":IM.brace,"InterpolationStart InterpolationEnd":IM.special(IM.brace),".":IM.derefOperator,", ;":IM.separator,"@":IM.meta,TypeName:IM.typeName,TypeDefinition:IM.definition(IM.typeName),"type enum interface implements namespace module declare":IM.definitionKeyword,"abstract global Privacy readonly override":IM.modifier,"is keyof unique infer asserts":IM.operatorKeyword,JSXAttributeValue:IM.attributeValue,JSXText:IM.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":IM.angleBracket,"JSXIdentifier JSXNameSpacedName":IM.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":IM.attributeName,"JSXBuiltin/JSXIdentifier":IM.standard(IM.tagName)}),gj={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},Oj={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},vj={__proto__:null,"<":193},bj=Cz.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jv'#JvO%[QlO'#JvOOQO'#Jy'#JyOOQO'#Ih'#IhOCQQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J}'#J}OC|Q!0MSO'#EgODWQpO'#EWOOQO'#Jx'#JxODlQpO'#JyOEyQpO'#EWODWQpO'#EgPFWO&2DjO'#CbPOOO)CD})CD}OOOO'#I`'#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO'#Ia'#IaOFqO&jO,59UOGPQ!L^O'#DcOOOO'#Ic'#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO'#IdOGyQ`O'#JtOIxQ!fO'#JtO+}QlO'#JtOJPQ`O,5:ROJgQ`O'#EpOJtQ`O'#KTOKPQ`O'#KSOKPQ`O'#KSOKXQ`O,5;^OK^Q`O'#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO'#KQONtQ`O'#KPO9eQ`O'#KPO! YQ`O'#KPO! bQ`O,5;]O! gQ`O'#KPO!#lQ!fO'#JsOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$[Q!fO,5:sOOQS'#Jz'#JzOOQO-EtOOQ['#Jh'#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO'#D_O%[QlO'#JvO##sQpO'#JvO##}QpO'#DmO#$`QpO'#DmO#&qQlO'#DmO#&xQ`O'#JuO#'QQ`O,5:WO#'VQ`O'#EtO#'eQ`O'#KUO#'mQ`O,5;_O#'rQpO'#DmO#(PQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-EPO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO'#HtOOQ[1G3x1G3xO$:tQ`O'#HzO?YQ`O'#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb'#G_'#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO'#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO'#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO'#Ig'#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ['#Kh'#KhOOQ['#JS'#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO'#HuO%?^Q`O'#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?MtO1G/sO?YQ`O1G/sO!)[QlO'#DmOOQO,5?P,5?POOQO-ERQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<yQ?MvO,5?aO'@|Q?MvO,5?cO'CPQ?MvO7+'|O'DuQMjOG27TOOQO<VO!l$xO#jROe!iOpkOrPO(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa'z$qa'w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX'y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO'y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!OVO!l$xO#jVO!l$xO#jROe!iOpkOrPO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P'_On-iO!_'`O~O!Y-nO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO'z%nO~Oa%nO!g#vO#`-qO'z%nO~Oa%nO!g#vO!p-sO#`-qO'z%nO(r'pO~O(P'xO(Q'xO(R-zO~Ov-{O~O!Y'Wa!]'Wa~P!:tO![.PO!Y'WX!]'WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y'^X!]'^X~O#`.VO!](ta!k(taa(ta'z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]'aX!k'aX~OR.dO!l#xO~Oh%VOn.gO!_'`O%i.fO~Oa#ci!]#ci'z#ci'w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!Q*OO'y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a'z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X'z(`X(a(`X(r(`X!k(`X!Y(`X'w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].tO!k(kX~P!:tO!k.wO~O!Y.yO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi'z#mi(r#mi(y#mi(z#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi'z#mi(r#mi(y#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi'z#mi(r#mi'w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[]O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi'z$Pi'w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]VO!l$xO#j^O!Q*OO'y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&,QO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X'y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$+oOg']a!]']a~P!1WO!^7nO~O!]'da!^'da~P#BwO!Y7oO~P#/sO!g#vO(r'pO!]'ea!k'ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y'ga!]'ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r'pO~Oj8QO!g#vO~Or8TO!g#vO(r'pO~O!Q*OO'y*PO(z%POn'ja(y'ja!]'ja#`'ja~Og'ja$O'ja~P&5RO!Q*OO'y*POn'la(y'la(z'la!]'la#`'la~Og'la$O'la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy'z$oy'w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6rO~O!]5[O!_)Qa~O!_'`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7WO~P&8fO%^8[Oa%[i!_%[i'z%[i!]%[i~Oa#cy!]#cy'z#cy'w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]'pX!^'pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]'sa!^'sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O'z%nO~O!](ty!k(tya(ty'z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_'`O%i9bO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q'z$|q(a$|q(r$|q!k$|q!Y$|q'w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja'z'ja(a'ja(r'ja!k'ja!Y'ja'w'jav'ja!_'ja%i'ja!g'ja~P&5RO#k'laP'laR'la['laa'laj'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la'z'la(a'la(r'la!k'la!Y'la'w'lav'la!_'la%i'la!g'la~P&5tO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq'z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq'w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]'Yi!k'Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa'y%aa(z%aa~P&IyO(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca'y%ca(y%ca~P&LQOn>^O!Q*OO'y*PO(z%PO~P&IyOn>^O!Q*OO'y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a'y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO'y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO'y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>^O!Q*OO'y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P''VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]'ei!k'ei~O!g#vO(r'pO!]'ei!k'ei~O!]/pO!k)Oq~O!Y'gi!]'gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r'pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]'na!_'na~P#/sOa%[q!_%[q'z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]'pa!^'pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_'`O%i:rO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P''VO!Q*OO'y*PO(z%POP'iaR'ia['iaj'ian'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia$O'ia(a'ia(r'ia(y'ia!]'ia!^'ia~O!Q*OO'y*POP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka$O'ka(a'ka(r'ka(y'ka(z'ka!]'ka!^'ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai'y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci'y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]'eq!k'eq~O!]/pO!k)Oy~O!Y'gq!]'gq~P#/sOr:|O!g#vO(r'pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y'z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P''VO!Q*OO'y*PO(z%POP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja$O'ja(a'ja(r'ja(y'ja!]'ja!^'ja~O!Q*OO'y*POP'laR'la['laj'lan'lar'la!S'la!l'la!p'la#R'la#n'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#x'la#z'la#{'la$O'la(a'la(r'la(y'la(z'la!]'la!^'la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P''VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r'pO~O[;kO!Y;hO~P#/sO!]'pq!^'pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z'z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z'w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;tO!g#vO(r'pO~O!Y;uO~P#/sOr;|O!g#vO(r'pO~O!Y;}O~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P''VOrROe!iOpkOrPO(T)]O(VTO(YUO(aVO(o[O~O!]WO!l$xO#jgPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$ b$ i$ qPPP$']P$'f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ'`-e1o5{Q%tvQ%|yQ&T|Q&j!VS'W!e-]Q'f!iS'l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c'_Q-m'gQ-u'mQ0[*qQ1b,OQ1y,eR<{SU+P%]S!S!nQ!r!v!y!z$|'W'_'`'l'm'n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;kP>X>Y>]>^Q&X|Q'U!eS'[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'b'r(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:mR>S[#]WZ#W#Z'X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ'c!hQ'e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l'f'gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k]>^o>UPS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;kP>X>Y>]>^T)z$u){V+P%]S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`SQ'Y!eR2q-]!W!nQ!e!r!v!y!z$|'W'_'`'l'm'n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q'v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j'dQ-w'oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`SS#q]SU$fd)_,mS(p#p'iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}Q't!uS(f#g2US-s'k'wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uSSR=o>R%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}'V'e'f'g'k'u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n'X)s-U-X/V2p4T5w6s:Z:mSQ=t>QR=u>R%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:mSR=n'XU']!e%i*ZR2s-`%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n'X)s-U-X/V2p4T5w6s:Z:mSQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:oS)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>['QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:mSS$oh$pR4U/U'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:mST$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'b'r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:mST$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'b'r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n'X)s-U-X/V2p4T5w6s:Z:mS#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{'T'b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k]>^Q+T%aQ/c*Oo4OP>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k]>^n=rTQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k]>^o4OP>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f]>^nZ>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f]>^nZ>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q'y!{R-y'ySsOtQ#dXT%ps#dQ#OTR'{#OQ#RUR'}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^'YR2r-^Q.u(yS3m.u3nR3n.vQ-e'`R2v-eY!rQ'`-e1o5{R'j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a']R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p'k's't'wQ-w'oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ'd!iQ'o!uU+m%{%|%}Q-W'VU-k'e'f'gS-o'k'uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.lPQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.nSR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:lj,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[mj],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b'|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j'}0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b'}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(V':f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Wp(Z!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b'|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[uj,dj,pj,fj,2,3,4,5,6,7,8,9,10,11,12,13,14,cj,new hz("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new hz("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>gj[e]||-1},{term:343,get:e=>Oj[e]||-1},{term:95,get:e=>vj[e]||-1}],tokenPrec:15201}),yj=[ZL("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),ZL("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),ZL("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ZL("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ZL("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),ZL("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),ZL("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),ZL("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),ZL("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),ZL('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ZL('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],wj=yj.concat([ZL("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ZL("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ZL("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),xj=new oM,Sj=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ej(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const kj=["FunctionDeclaration"],Rj={FunctionDeclaration:Ej("function"),ClassDeclaration:Ej("class"),ClassExpression:()=>!0,EnumDeclaration:Ej("constant"),TypeAliasDeclaration:Ej("type"),NamespaceDeclaration:Ej("namespace"),VariableDefinition(e,t){e.matchContext(kj)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Cj(e,t){let n=xj.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(jT.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=Rj[t.name];if(e&&e(t,o)||Sj.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Cj(e,t.node))r.push(n);return!1}}),xj.set(t,r),r}const Pj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Aj=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Qj(e){let t=ZM(e.state).resolveInner(e.pos,-1);if(Aj.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Pj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)Sj.has(n.name)&&(r=r.concat(Cj(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:Pj}}const Tj=BM.define({name:"javascript",parser:bj.configure({props:[o_.add({IfStatement:h_({except:/^\s*({|else\b)/}),TryStatement:h_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:d_({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":h_({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),m_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":g_,BlockComment:e=>({from:e.from+2,to:e.to-2}),JSXElement(e){let t=e.firstChild;if(!t||"JSXSelfClosingTag"==t.name)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let n=null===(t=e.firstChild)||void 0===t?void 0:t.nextSibling,r=e.lastChild;return!n||n.type.isError?null:{from:n.to,to:r.type.isError?e.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Mj={test:e=>/^JSX/.test(e.name),facet:LM({commentTokens:{block:{open:"{/*",close:"*/}"}}})},_j=Tj.configure({dialect:"ts"},"typescript"),Ij=Tj.configure({dialect:"jsx",props:[NM.add(e=>e.isTop?[Mj]:void 0)]}),$j=Tj.configure({dialect:"jsx ts",props:[NM.add(e=>e.isTop?[Mj]:void 0)]},"typescript");let Dj=e=>({label:e,type:"keyword"});const Lj="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Dj),Nj=Lj.concat(["declare","implements","private","protected","public"].map(Dj));function zj(e,t,n=e.length){for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const jj="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Bj=ZA.inputHandler.of((e,t,n,r,i)=>{if((jj?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!Tj.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(e=>{var t;let n,{head:i}=e,o=ZM(a).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),a.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:""}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=zj(a.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:OE.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(a.doc.sliceString(i,i+2))&&(n=zj(a.doc,t,i)))return{range:e,changes:{from:i,insert:``}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function Zj(e){return Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zj(e)}const Xj=function(e){var t,n,r=e.label,i=void 0===r?"":r,o=e.attributes,a=void 0===o?"":o,s=e.setAttributes,l=e.attributesKey,c=void 0===l?"":l,u=e.onChange,d=void 0!==u&&u,p=e.height,h=void 0===p?"180px":p,f=e.defaultLanguage,m=void 0===f?"css":f;return React.createElement("div",{className:"sp-eab-code-editor-component sp-eab-component-mb"},React.createElement("div",{className:"sp-eab-code-editor-label"},React.createElement("p",{className:"sp-eab-component-title"},i)),React.createElement("div",{className:"sp-eab-code-editor",style:{height:h}},React.createElement("div",{className:"sp-eab-codemirror-wrapper",style:{backgroundColor:"#1e1e1e"}},React.createElement(rz,{value:a||"",height:h||"180px",extensions:(t=m||"css",n=[],"javascript"===t?n.push(function(e={}){let t=e.jsx?e.typescript?$j:Ij:e.typescript?_j:Tj,n=e.typescript?wj.concat(Nj):yj.concat(Lj);return new KM(t,[Tj.data.of({autocomplete:(r=Aj,i=BD(n),e=>{for(let t=ZM(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(r.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return i(e)})}),Tj.data.of({autocomplete:Qj}),e.jsx?Bj:[]]);var r,i}({jsx:!0})):n.push(new KM(aj,aj.data.of({autocomplete:oj}))),n.push(sN()),n),theme:VN,onChange:function(e){d?d(e):s&&c&&s(function(e,t,n){return(t=function(e){var t=function(e){if("object"!=Zj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},c,e))},basicSetup:{lineNumbers:!0,highlightActiveLineGutter:!0,highlightSpecialChars:!0,foldGutter:!0,drawSelection:!0,dropCursor:!0,allowMultipleSelections:!0,indentOnInput:!0,syntaxHighlighting:!0,bracketMatching:!0,closeBrackets:!0,autocompletion:!0,rectangularSelection:!0,crosshairCursor:!0,highlightActiveLine:!0,highlightSelectionMatches:!0,closeBracketsKeymap:!0,searchKeymap:!0,foldKeymap:!0,tabSize:4}}))))};var Vj=[{option_name:"eap_data_remove",label:(0,l.__)("Clean-up Data on Deletion","easy-accordion-free"),infoText:(0,l.__)("Check this if you would like Easy Accordion to completely remove all of its data when the plugin is deleted.","easy-accordion-free"),inputType:"checkbox"},{option_name:"eap_focus_style",label:(0,l.__)("Focus Style for Accessibility","easy-accordion-free"),infoText:(0,l.__)("Check this to enable focus style to improve accessibility.","easy-accordion-free"),inputType:"checkbox"}],Fj={advanced:{eap_data_remove:"0",eap_focus_style:"0",eap_editor_preference:""},additional:{ea_custom_css:"",custom_js:""},"woocommerce-faqs":{eap_woo_faq:"0",eap_woo_faq_label:"FAQs",eap_woo_faq_label_priority:"50",eap_woo_set_tab:[]},integrations:{},tools:{}},qj=[{label:(0,l.__)("Advanced Controls","easy-accordion-free"),Icon:function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M7.83398 13.3335H14.5007",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M9.16602 3.3335L14.4993 3.3335",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M2.5 3.3335H5.16667",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M2.5 8.3335H9.16667",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M2.5 13.3335H3.83333",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M13.166 8.3335H14.4993",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M6.83398 14.6665C6.52336 14.6665 6.36804 14.6665 6.24553 14.6158C6.08218 14.5481 5.95239 14.4183 5.88473 14.255C5.83398 14.1324 5.83398 13.9771 5.83398 13.6665V12.9998C5.83398 12.6892 5.83398 12.5339 5.88473 12.4114C5.95239 12.248 6.08218 12.1182 6.24553 12.0506C6.36804 11.9998 6.52336 11.9998 6.83398 11.9998C7.14461 11.9998 7.29992 11.9998 7.42245 12.0506C7.58578 12.1182 7.71558 12.248 7.78325 12.4114C7.83398 12.5339 7.83398 12.6892 7.83398 12.9998V13.6665C7.83398 13.9771 7.83398 14.1324 7.78325 14.255C7.71558 14.4183 7.58578 14.5481 7.42245 14.6158C7.29992 14.6665 7.14461 14.6665 6.83398 14.6665Z",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M8.16602 4.6665C7.85542 4.6665 7.70008 4.6665 7.57755 4.61577C7.41422 4.5481 7.28442 4.4183 7.21675 4.25497C7.16602 4.13244 7.16602 3.9771 7.16602 3.6665V2.99984C7.16602 2.68924 7.16602 2.5339 7.21675 2.41137C7.28442 2.24804 7.41422 2.11824 7.57755 2.05057C7.70008 1.99984 7.85542 1.99984 8.16602 1.99984C8.47662 1.99984 8.63195 1.99984 8.75448 2.05057C8.91782 2.11824 9.04762 2.24804 9.11528 2.41137C9.16602 2.5339 9.16602 2.68924 9.16602 2.99984V3.6665C9.16602 3.9771 9.16602 4.13244 9.11528 4.25497C9.04762 4.4183 8.91782 4.5481 8.75448 4.61577C8.63195 4.6665 8.47662 4.6665 8.16602 4.6665Z",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M10.166 9.6665C9.85542 9.6665 9.70008 9.6665 9.57755 9.61576C9.41422 9.5481 9.28442 9.41831 9.21675 9.25497C9.16602 9.13244 9.16602 8.9771 9.16602 8.6665V7.99984C9.16602 7.68924 9.16602 7.5339 9.21675 7.41137C9.28442 7.24804 9.41422 7.11824 9.57755 7.05057C9.70008 6.99984 9.85542 6.99984 10.166 6.99984C10.4766 6.99984 10.6319 6.99984 10.7545 7.05057C10.9178 7.11824 11.0476 7.24804 11.1153 7.41137C11.166 7.5339 11.166 7.68924 11.166 7.99984V8.6665C11.166 8.9771 11.166 9.13244 11.1153 9.25497C11.0476 9.41831 10.9178 9.5481 10.7545 9.61576C10.6319 9.6665 10.4766 9.6665 10.166 9.6665Z",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}))},value:"advanced"},{label:(0,l.__)("WooCommerce FAQs","easy-accordion-free"),Icon:function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#WooCommerceFAQsTabIcon)",stroke:"#2F2F2F"},React.createElement("path",{d:"m5.334 10.667 5.813-.485c1.82-.151 2.228-.549 2.43-2.363L14 4M4 4h10.667",strokeLinecap:"round"}),React.createElement("path",{d:"M4.001 14.667a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Zm7.332 0a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Z"}),React.createElement("path",{d:"M5.334 13.334h4.667m-8.667-12h.644c.63 0 1.179.416 1.331 1.01l1.984 7.707c.1.39.014.802-.234 1.124L4.422 12",strokeLinecap:"round"})),React.createElement("defs",null,React.createElement("clipPath",{id:"WooCommerceFAQsTabIcon"},React.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"}))))},value:"woocommerce-faqs"},{label:(0,l.__)("Integrations","easy-accordion-free"),Icon:function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#a)"},React.createElement("path",{d:"M11.142 1.357a1.202 1.202 0 0 1 .945 1.944l-.208.265.169.293 1.562 2.707.168.292.334-.046c.069-.01.123-.015.17-.015a1.202 1.202 0 1 1-.17 2.391l-.334-.046-.168.292-1.563 2.708-.17.293.209.265c.162.206.258.462.258.74a1.203 1.203 0 0 1-2.319.449l-.126-.314H6.101l-.126.314a1.2 1.2 0 0 1-1.116.755l-.123-.006a1.204 1.204 0 0 1-1.08-1.198l.005-.103c.02-.239.112-.458.253-.638l.209-.265-.17-.293-1.562-2.707-.168-.292-.334.046a1.203 1.203 0 0 1-1.373-1.19l.005-.122a1.204 1.204 0 0 1 1.198-1.08c.047 0 .1.006.169.016l.334.046.168-.292L3.953 3.86l.17-.293-.209-.265a1.2 1.2 0 0 1-.258-.742l.006-.123a1.204 1.204 0 0 1 1.074-1.074l.123-.006c.505 0 .937.311 1.116.754l.126.314h3.798l.126-.314a1.2 1.2 0 0 1 1.117-.754Zm-6.283 11.15a.934.934 0 0 0-.928.838l-.005.095c0 .484.367.881.838.93l.095.004a.933.933 0 0 0 .934-.934l-.005-.095a.934.934 0 0 0-.929-.838Zm6.283 0a.934.934 0 0 0-.93.838l-.004.095a.933.933 0 1 0 1.867 0l-.005-.095a.934.934 0 0 0-.928-.838Zm-5.167-9.5a1.2 1.2 0 0 1-1.116.756l-.17-.014-.335-.047-.167.292-1.563 2.707-.169.293.208.266a1.19 1.19 0 0 1 0 1.481l-.209.266.17.293 1.564 2.707.167.292.334-.047.17-.014c.505 0 .937.311 1.116.754l.126.314h3.798l.126-.314a1.2 1.2 0 0 1 1.285-.74l.335.047.168-.292L13.376 9.3l.17-.293-.21-.266A1.2 1.2 0 0 1 13.079 8l.005-.103c.02-.24.111-.458.252-.637l.21-.267-.17-.293-1.562-2.705-.168-.292-.336.047a1.204 1.204 0 0 1-1.285-.741L9.9 2.694H6.101zM8 5.85A2.151 2.151 0 1 1 5.85 8l.01-.22a2.15 2.15 0 0 1 1.92-1.92zm0 .3a1.85 1.85 0 0 0-.19 3.69l.19.01A1.85 1.85 0 0 0 9.85 8l-.01-.19A1.85 1.85 0 0 0 8 6.15ZM4.86 1.626a.934.934 0 0 0-.93.838l-.004.096c0 .483.367.88.838.928l.095.005a.934.934 0 0 0 .934-.933l-.005-.096a.934.934 0 0 0-.929-.838Zm6.282 0a.933.933 0 0 0-.93.838l-.004.096a.933.933 0 1 0 1.867 0l-.005-.096a.934.934 0 0 0-.928-.838Zm-8.49 6.372a.934.934 0 0 0-1.867 0V8a.933.933 0 1 0 1.867 0Zm12.564 0a.934.934 0 0 0-1.867 0V8a.933.933 0 1 0 1.867 0Z",stroke:"#2f2f2f"})),React.createElement("defs",null,React.createElement("clipPath",{id:"a"},React.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"}))))},value:"integrations"},{label:(0,l.__)("Additional CSS & JS","easy-accordion-free"),Icon:function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.5 6.6665L11.3177 7.3713C11.6615 7.66757 11.8333 7.81577 11.8333 7.99984C11.8333 8.1839 11.6615 8.3321 11.3177 8.62837L10.5 9.33317",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M5.16634 6.6665L4.34865 7.3713C4.00489 7.66757 3.83301 7.81577 3.83301 7.99984C3.83301 8.1839 4.00489 8.3321 4.34865 8.62837L5.16634 9.33317",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M8.50033 6L7.16699 10",stroke:"#2F2F2F",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M1.5 7.99984C1.5 5.01428 1.5 3.5215 2.42749 2.594C3.35499 1.6665 4.84777 1.6665 7.83333 1.6665C10.8189 1.6665 12.3117 1.6665 13.2392 2.594C14.1667 3.5215 14.1667 5.01428 14.1667 7.99984C14.1667 10.9854 14.1667 12.4782 13.2392 13.4057C12.3117 14.3332 10.8189 14.3332 7.83333 14.3332C4.84777 14.3332 3.35499 14.3332 2.42749 13.4057C1.5 12.4782 1.5 10.9854 1.5 7.99984Z",stroke:"#2F2F2F"}))},value:"additional"},{label:(0,l.__)("Tools","easy-accordion-free"),Icon:function(){return React.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M5.41 9.866h6M9.91 8.25l1.67 1.616-1.67 1.884m.67-5.884h-6m1.5-1.616L4.41 5.866 6.08 7.75",stroke:"#2f2f2f",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M1.5 8c0-2.986 0-4.478.927-5.406.928-.927 2.42-.927 5.406-.927s4.479 0 5.406.927c.928.928.928 2.42.928 5.406s0 4.478-.928 5.406c-.927.927-2.42.927-5.406.927s-4.478 0-5.406-.927C1.5 12.478 1.5 10.986 1.5 8Z",stroke:"#2f2f2f"}))},value:"tools"}],Wj=[{id:1,label:(0,l.__)("All Products","easy-accordion-free"),value:"all"},{id:2,label:(0,l.__)("Category (Pro)","easy-accordion-free"),value:"taxonomy",pro:!0},{id:3,label:(0,l.__)("Specific Products (Pro)","easy-accordion-free"),value:"Specific_Products",pro:!0}];function Gj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hj(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var r,i=new FormData;i.append("action","eap_export_accordions"),i.append("nonce",null===(r=sp_eab_admin_dashboard_localize)||void 0===r?void 0:r.nonce),i.append("eap_ids",n),fetch(ajaxurl,{method:"POST",body:i}).then(function(e){return e.text()}).then(function(e){if(e){var t;try{var n=JSON.parse(e);t=JSON.stringify(n)}catch(n){t=JSON.stringify(e)}var r=new Blob([t],{type:"application/json"}),i=document.createElement("a"),o=Date.now();i.href=window.URL.createObjectURL(r),i.download="easy-accordion-"+o+".json",i.click()}})}}},(0,l.__)("Export File","easy-accordion-free")))),React.createElement("div",{className:"sp-eap-settings-tools-divider"}),React.createElement("div",{className:"sp-eap-settings-tools-section"},React.createElement("div",{className:"sp-eap-settings-tools-section-header"},React.createElement("h3",{className:"sp-eap-settings-tools-section-title"},(0,l.__)("Import","easy-accordion-free"))),React.createElement("div",{className:"sp-eap-settings-tools-section-content"},React.createElement("p",{className:"sp-eap-settings-tools-subtitle"},(0,l.__)("Import JSON File to Upload","easy-accordion-free")),React.createElement("label",{className:"sp-eap-settings-tools-checkbox"},React.createElement("input",{type:"checkbox",checked:w,onChange:function(e){return x(e.target.checked)},style:{marginRight:"8px"}}),React.createElement("span",{className:"sp-eap-settings-tools-checkbox-label"},(0,l.__)("Allow Iframe/Script Tags","easy-accordion-free"))),React.createElement("p",{className:"sp-eap-settings-tools-checkbox-help"},(0,l.__)("Enabling this option, you are allowing to import accordions which contain iframe, script or embed tags.","easy-accordion-free")),React.createElement("div",{className:"sp-eap-settings-tools-file-input".concat(E?" dragging":""),onDragOver:function(e){e.preventDefault(),e.stopPropagation(),k(!0)},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),k(!1)},onDrop:function(e){e.preventDefault(),e.stopPropagation(),k(!1);var t=e.dataTransfer.files[0];t&&t.name.endsWith(".json")&&(o(t),u(t.name))}},React.createElement("label",{className:"sp-eap-settings-tools-file-btn"},(0,l.__)("Choose File","easy-accordion-free"),React.createElement("input",{type:"file",accept:".json",onChange:function(e){var t=e.target.files[0];t&&(o(t),u(t.name))},style:{display:"none"}})),React.createElement("span",{className:"sp-eap-settings-tools-file-name"},c)),React.createElement("button",{className:"sp-eap-settings-tools-btn sp-eap-settings-tools-btn-secondary".concat(i?" has-file":""),onClick:function(){if(i){b(!0);var e=new FileReader;e.onload=function(e){var t,n=e.target.result,r=new FormData;r.append("action","eap_import_accordions"),r.append("nonce",null===(t=sp_eab_admin_dashboard_localize)||void 0===t?void 0:t.nonce),r.append("accordion",n),r.append("unSanitize",w?"1":"0"),fetch(ajaxurl,{method:"POST",body:r}).then(function(e){return e.json()}).then(function(e){var t;b(!1),e.success?(alert((0,l.__)("Import successful!","easy-accordion-free")),o(null),u((0,l.__)("No File Chosen","easy-accordion-free"))):alert((null===(t=e.data)||void 0===t?void 0:t.message)||(0,l.__)("Import failed.","easy-accordion-free"))}).catch(function(e){b(!1),console.error("Import error:",e),alert((0,l.__)("Import failed.","easy-accordion-free"))})},e.readAsText(i)}},disabled:!i||v},v?(0,l.__)("Importing...","easy-accordion-free"):(0,l.__)("Import File","easy-accordion-free")))))};function Jj(e){return Jj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jj(e)}function eB(){return eB=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=5&&c<12?u="Good Morning":c>=12&&c<17?u="Good Afternoon":c>=17&&c<21&&(u="Good Evening");var d=null===(e=sp_eab_admin_dashboard_localize)||void 0===e?void 0:e.userName;return React.createElement("div",{className:"sp-eap-setup-welcome-page sp-d-flex sp-align-center"},React.createElement("div",{className:"sp-eap-setup-welcome-page-left sp-d-flex sp-flex-col"},React.createElement("div",{className:"sp-eap-setup-welcome-page-greeting"},u,", ",d),React.createElement("h3",{className:"sp-eap-setup-page-title sp-welcome-title"},"Welcome to ",React.createElement("span",null,"Easy Accordion!")),React.createElement("p",{className:"sp-eap-setup-page-desc"},"Thanks for installing Easy Accordion — This plugin gives you everything you need to create clean and interactive accordion sections, without touching a line of code."),React.createElement("p",{className:"sp-eap-setup-page-desc"},"Get set up in minutes and start showcasing accordions using",React.createElement("b",null," 15+ flexible blocks and 100+ ready-made patterns.")," Packed with features, including:"),React.createElement("div",{className:"sp-eap-setup-feature-lists sp-d-grid sp-grid-cols-2 sp-gap-10px"},null==s?void 0:s.map(function(e,t){return React.createElement("div",{key:t,className:"sp-eap-setup-feature-list sp-d-flex sp-align-center sp-gap-8px"},React.createElement("span",{className:"sp-eap-setup-feature-check-icon"},React.createElement(PB,null)),React.createElement("span",{className:"sp-eap-feature-list-title"},e.title,e.hot&&React.createElement("span",{className:"sp-eap-badge-hot"},"HOT"),e.upcoming&&React.createElement("span",{className:"sp-eap-badge-upcoming"},"Upcoming")))}))),React.createElement("div",{className:"sp-eap-setup-welcome-page-right sp-d-flex",style:{backgroundImage:"url(".concat(null===(t=sp_eab_admin_dashboard_localize)||void 0===t?void 0:t.pluginUrl,"admin/img/setup-wizard/video-thumbnail.png)")}},i?React.createElement("iframe",{width:"510",height:"410",src:"https://www.youtube.com/embed/videoseries?list=PLoUb-7uG-5jPNXkpGII8cTTfB-L4TCaqv&autoplay=1",title:"YouTube video player",allow:"autoplay; encrypted-media"}):React.createElement("div",{className:"sp-eap-setup-video-overlay sp-d-flex sp-align-center sp-justify-center"},React.createElement("button",{id:"sp-eap-play-btn",className:"sp-eap-play-btn-sonar sp-d-flex sp-align-center sp-justify-center sp-cursor-pointer",onClick:function(){return o(!0)}},React.createElement("img",{src:"".concat(null===(n=sp_eab_admin_dashboard_localize)||void 0===n?void 0:n.pluginUrl,"admin/img/setup-wizard/video-play.svg"),alt:"video-play"})))))},QB=function(){return React.createElement("div",{className:"sp-eap-setup-blocks-page"},React.createElement("div",{className:"sp-eap-setup-blocks-page-header sp-d-flex sp-align-center sp-justify-between sp-gap-10px sp-flex-col"},React.createElement("h3",{className:"sp-eap-setup-page-title"},(0,l.__)("Enable the Blocks You Need","easy-accordion-free")),React.createElement("p",{className:"sp-eap-setup-page-desc"},(0,l.__)("Turn on the blocks that match your workflow. You can update your selection anytime.","easy-accordion-free"))),React.createElement(Ju,{showHeading:!1}))};var TB=function(e){var t=e.closeModal;return React.createElement(Fc.Modal,{title:(0,l.__)("What We Collect?","easy-accordion-free"),onRequestClose:t,className:"splw-setup-page-modal"},React.createElement("hr",null),React.createElement("p",{className:"modal-description"},(0,l.__)("We collect only non-sensitive diagnostic data and basic plugin usage information. This may include:","easy-accordion-free")),React.createElement("ul",null,React.createElement("li",{className:"modal-description"},(0,l.__)("WordPress & PHP version","easy-accordion-free")),React.createElement("li",{className:"modal-description"},(0,l.__)("Active theme and plugins","easy-accordion-free")),React.createElement("li",{className:"modal-description"},(0,l.__)("General system details","easy-accordion-free")),React.createElement("li",{className:"modal-description"},(0,l.__)("Email address only for sending helpful updates or optional offers.","easy-accordion-free"))),React.createElement("p",{className:"modal-description"},(0,l.__)("This information helps us improve performance, fix issues faster, and ensure Easy Accordion stays compatible with the popular plugins and themes.","easy-accordion-free")),React.createElement("p",{className:"modal-description sp-d-flex sp-align-center sp-gap-4px"},(0,l.__)("We","easy-accordion-free"),React.createElement("b",null,(0,l.__)("do not collect sensitive personal data,","easy-accordion-free")),(0,l.__)("and","easy-accordion-free"),React.createElement("b",null,(0,l.__)("never send spam","easy-accordion-free")),(0,l.__)("promise.","easy-accordion-free")),React.createElement("p",{className:"modal-description"},React.createElement("b",null,(0,l.__)("Your privacy comes first.","easy-accordion-free"))),React.createElement("a",{href:"https://easyaccordion.io/information-we-collect/",target:"_blank",className:"modal-description sp-d-flex sp-align-center sp-gap-4px",rel:"noreferrer"},(0,l.__)("Learn More","easy-accordion-free"),React.createElement(lc,null)))};function MB(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return _B(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t3?(i=f===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&hr||r>f)&&(o[4]=n,o[5]=r,p.n=f,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_B(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_B(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_B(d,"constructor",c),_B(c,"constructor",l),l.displayName="GeneratorFunction",_B(c,i,"GeneratorFunction"),_B(d),_B(d,i,"Generator"),_B(d,r,function(){return this}),_B(d,"toString",function(){return"[object Generator]"}),(MB=function(){return{w:o,m:p}})()}function _B(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_B=function(e,t,n,r){function o(t,n){_B(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},_B(e,t,n,r)}function IB(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function $B(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){IB(o,r,i,a,s,"next",e)}function s(e){IB(o,r,i,a,s,"throw",e)}a(void 0)})}}function DB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return LB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nthis.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=tn?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","icons"])),o=(0,s.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return a.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},a.default.createElement("div",{className:"react-toggle-track"},a.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),a.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),a.default.createElement("div",{className:"react-toggle-thumb"}),a.default.createElement("input",r({},i,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(o.PureComponent);t.A=h,h.displayName="Toggle",h.defaultProps={icons:{checked:a.default.createElement(c.default,null),unchecked:a.default.createElement(u.default,null)}},h.propTypes={checked:l.default.bool,disabled:l.default.bool,defaultChecked:l.default.bool,onChange:l.default.func,onFocus:l.default.func,onBlur:l.default.func,className:l.default.string,name:l.default.string,value:l.default.string,id:l.default.string,"aria-labelledby":l.default.string,"aria-label":l.default.string,icons:l.default.oneOfType([l.default.bool,l.default.shape({checked:l.default.node,unchecked:l.default.node})])}},394(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(void 0!==r)return{x:r,y:e.pageY}}return{x:0,y:0}}},28(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(609))&&r.__esModule?r:{default:r};t.default=function(){return i.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},i.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},160(e,t,n){"use strict";var r=n(609);"function"==typeof Object.is&&Object.is,r.useSyncExternalStore,r.useRef,r.useEffect,r.useMemo,r.useDebugValue},418(e,t,n){"use strict";n(160)},609(e){"use strict";e.exports=window.React},942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every(e=>r.O[e](n[l]))?n.splice(l--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={422:0,283:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some(t=>0!==e[t])){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);cr(104));i=r.O(i)})();