const __vite__fileDeps=["../chunks/library/highlightJs.CKzSZx5L.min.js","../chunks/vendor/react-core.CPYidHzz.min.js","./_codeLight-BVd8o6uX.css","./_codeDark-tpXe8u3Q.css","../chunks/embedService.loadable.CY6S3edF.min.js","../chunks/library/BulkDeleteDiscussionsForm.loadable.1SaZn4cj.min.js","../chunks/library/BulkMergeDiscussionsForm.loadable.CpnYBYG5.min.js","../chunks/BulkDiscussions.classes.DUCFeiVN.min.js","../chunks/library/BulkMoveDiscussionsForm.loadable.BiWrSh2I.min.js","../chunks/categoriesTypes.CQ8UeXCF.min.js","../chunks/CommunityCategoryInput.cfrENrsD.min.js","../chunks/library/BulkCloseDiscussionsForm.loadable.D2nvd3-u.min.js","../vendor/index.prod.Rp3sF0Y8.min.js","../chunks/library/MessagesContentsImpl.pkbJtDQM.min.js","../chunks/MeBoxDropDownItemList.Cxe_Avk5.min.js","../chunks/library/NotificationsContentsImpl.B7nO0UXv.min.js","../chunks/library/UserDropDownContentsImpl.CnxAMuc7.min.js","../chunks/addons/dashboard/PlacesSearchDomain.loadable.BQRIj0UB.min.js","../chunks/FilterFrame.BYYt-WSa.min.js","../chunks/SearchFormContext.CINwNNih.min.js","../chunks/types.Bnp7nMni.min.js","../chunks/PlacesSearchTypeFilter.DQ5Lad8V.min.js","../chunks/library/SearchPage.zGvJh9iR.min.js","../chunks/simplePagerStyles.D6QN9a38.min.js","../chunks/SearchFormContextProvider.8xuiCcta.min.js","../chunks/MultiUserInput.D1UA1q6i.min.js","./_base-DTfDntOB.css","../chunks/library/Tokens.loadable.9Yl82qPR.min.js","../chunks/library/LeavingPage.BA8IqTsy.min.js","../chunks/addons/vanilla/DiscussionsSearchDomain.loadable.DoF5u6qR.min.js","../chunks/CommunityPostTypeFilter.Da_5dvJN.min.js","../chunks/TagsInput.qsDre1zA.min.js","../chunks/library/DateRange.D5u-Ly4D.min.js","../chunks/VanillaEditor.loadable.BRhKGaeX.min.js","../chunks/index.es.DU35e2Lr.min.js","../vendor/uniqueId.Cfz2PN42.min.js","../chunks/library/CollectionsForm.loadable.CIyY-Rzq.min.js","../chunks/collectionsHooks.BMKtEnMl.min.js","../chunks/library/AnnounceDiscussionForm.Ck_dQMIx.min.js","../chunks/library/MoveDiscussionForm.DoKOpSqW.min.js","../chunks/library/ChangeTypeDiscussionForm.loadable.BTFHJkLJ.min.js","../chunks/library/TagDiscussionForm.loadable.BQgj5QDO.min.js","../chunks/TagDiscussionForm.loadable.styles.BiFy9zC6.min.js","../chunks/library/ChangeAuthorForm.loadable.B0ABnCJg.min.js","../chunks/library/IntegrationModal.loadable.WswvPje9.min.js","../chunks/addons/vanilla/ReportModal.loadable.DvnGidXo.min.js","../chunks/library/UnsubscribePage.BylDlBz3.min.js","../entries/addons/groups/common.CItIXtMr.min.js","../chunks/forum.BYdx6GoZ.min.js","../chunks/LinkOrText.DrCZgkYY.min.js","../chunks/UserManagementUtils.BVX1VEgZ.min.js","../entries/addons/ElasticSearch/common.CrJ3AZ6b.min.js","../chunks/MembersSearchDomain.220pKG9v.min.js","../entries/addons/FederatedSearch/common.Br4i8me8.min.js","./common-o0i1GJuG.css","../entries/addons/Jira/forum.CTIrkLuE.min.js","../entries/addons/Online/forum.QcudYmME.min.js","../entries/addons/Polls/common.BTUIukEo.min.js","../entries/addons/QnA/common.DO1Cejak.min.js","../chunks/AutomationRulesPreviewRenderer.ChIeU3Nd.min.js","../vendor/_arrayPush.CMiRDtY-.min.js","../vendor/isArray.CG4TmqNx.min.js","../entries/addons/QnA/forum.CS484KQK.min.js","../entries/addons/Ranks/common.DvLhoT_Q.min.js","../entries/addons/Salesforce/forum.DGKbZKg_.min.js","../entries/addons/SentimentAnalysis/common.kLXUnix5.min.js","../entries/addons/TranslationsApi/common.Bi2ihcDS.min.js","../chunks/LocaleDisplayer.D39wfBfT.min.js","../entries/addons/Zendesk/forum.AGTb0ZrV.min.js","../entries/addons/badges/common.BV6PXzcq.min.js","../chunks/Badge.variables.BCsWXQI4.min.js","../entries/addons/badges/forum.BiYS8zE7.min.js","../entries/addons/ideation/common.83N983w5.min.js","../entries/addons/ideation/forum.C1wPDLuy.min.js","../entries/addons/knowledge/common.BtF--GC7.min.js","../chunks/forum.B9JxbiQY.min.js","../chunks/NavigationSelector.CSjkCaix.min.js","../chunks/PageTitle.DXq4wzdC.min.js","../entries/addons/rich-editor/forum.DGlcBW0_.min.js","../entries/addons/sitehubshared/common.DGT0irQN.min.js","../entries/addons/subcommunities/common.C3hyJglm.min.js","../entries/addons/subcommunities/forum.CPCzs_8o.min.js","../entries/addons/vanillaanalytics/common.DgCRYFKW.min.js","../entries/addons/vanillaanalytics/forum.DKfsV87b.min.js","../entries/addons/zoom/forum.DjzEcln0.min.js","../chunks/EventForm.CLGC1F5K.min.js","../entries/addons/lavendermoon/forum.CiSO8u5B.min.js","./forum-CVnUp6V1.css","../entries/addons/lavendersun/forum.CiSO8u5B.min.js","../entries/addons/theme-foundation/forum.CiSO8u5B.min.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
var eQ=Object.defineProperty;var tQ=(e,t,n)=>t in e?eQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>(tQ(e,typeof t!="symbol"?t+"":t,n),n);import{r as x,c as yr,g as jr,R as W,j as u,a as z4,b as Rl,d as S,u as md,e as Bx,f as H4,h as U4,i as V0,t as LD,k as fn,l as aa,m as V4,n as ge,o as Zt,_ as wn,p as vs,q as nQ,s as G4,v as Oh,N as rQ,w as Y4,S as oQ,x as K4,y as aQ,B as iQ,Q as sQ,z as lQ,A as Ss,C as Bh,P as cQ,D as tv,E as uQ,F as dQ,G as fQ,H as hQ,I as mQ,J as jl,K as q4,M as MT,L as pQ,O as X4,T as Q4,U as Z4}from"../chunks/vendor/react-core.CPYidHzz.min.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();const gQ="modulepreload",vQ=function(e,t){return e[0]==="."?new URL(e,t).href:e},MR={},mt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=vQ(l,r),l in MR)return;MR[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===l&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":gQ,c||(h.as="script",h.crossOrigin=""),h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),c)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};let qf=!1;function eg(e){return e!==void 0&&(qf=e),qf}function wa(...e){qf&&console.log(...e)}function ma(e=!1,...t){qf&&e&&console.log(...t)}function mn(...e){console.error(...e)}function hs(...e){qf&&console.warn(...e)}var J4=typeof global=="object"&&global&&global.Object===Object&&global,bQ=typeof self=="object"&&self&&self.Object===Object&&self,Ui=J4||bQ||Function("return this")(),ri=Ui.Symbol,e3=Object.prototype,yQ=e3.hasOwnProperty,xQ=e3.toString,Gm=ri?ri.toStringTag:void 0;function CQ(e){var t=yQ.call(e,Gm),n=e[Gm];try{e[Gm]=void 0;var r=!0}catch{}var o=xQ.call(e);return r&&(t?e[Gm]=n:delete e[Gm]),o}var wQ=Object.prototype,SQ=wQ.toString;function DQ(e){return SQ.call(e)}var EQ="[object Null]",IQ="[object Undefined]",_R=ri?ri.toStringTag:void 0;function pd(e){return e==null?e===void 0?IQ:EQ:_R&&_R in Object(e)?CQ(e):DQ(e)}function Ho(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var TQ="[object AsyncFunction]",AQ="[object Function]",OQ="[object GeneratorFunction]",BQ="[object Proxy]";function _T(e){if(!Ho(e))return!1;var t=pd(e);return t==AQ||t==OQ||t==TQ||t==BQ}var lw=Ui["__core-js_shared__"],FR=function(){var e=/[^.]+$/.exec(lw&&lw.keys&&lw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kQ(e){return!!FR&&FR in e}var PQ=Function.prototype,RQ=PQ.toString;function gd(e){if(e!=null){try{return RQ.call(e)}catch{}try{return e+""}catch{}}return""}var jQ=/[\\^$.*+?()[\]{}|]/g,NQ=/^\[object .+?Constructor\]$/,LQ=Function.prototype,$Q=Object.prototype,MQ=LQ.toString,_Q=$Q.hasOwnProperty,FQ=RegExp("^"+MQ.call(_Q).replace(jQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WQ(e){if(!Ho(e)||kQ(e))return!1;var t=_T(e)?FQ:NQ;return t.test(gd(e))}function zQ(e,t){return e==null?void 0:e[t]}function vd(e,t){var n=zQ(e,t);return WQ(n)?n:void 0}var G0=function(){try{var e=vd(Object,"defineProperty");return e({},"",{}),e}catch{}}();function kx(e,t,n){t=="__proto__"&&G0?G0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nv(e,t){return e===t||e!==e&&t!==t}var HQ=Object.prototype,UQ=HQ.hasOwnProperty;function FT(e,t,n){var r=e[t];(!(UQ.call(e,t)&&nv(r,n))||n===void 0&&!(t in e))&&kx(e,t,n)}var fo=Array.isArray;function Ds(e){return e!=null&&typeof e=="object"}var VQ="[object Symbol]";function nd(e){return typeof e=="symbol"||Ds(e)&&pd(e)==VQ}var GQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YQ=/^\w*$/;function WT(e,t){if(fo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||nd(e)?!0:YQ.test(e)||!GQ.test(e)||t!=null&&e in Object(t)}var tg=vd(Object,"create");function KQ(){this.__data__=tg?tg(null):{},this.size=0}function qQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XQ="__lodash_hash_undefined__",QQ=Object.prototype,ZQ=QQ.hasOwnProperty;function JQ(e){var t=this.__data__;if(tg){var n=t[e];return n===XQ?void 0:n}return ZQ.call(t,e)?t[e]:void 0}var eZ=Object.prototype,tZ=eZ.hasOwnProperty;function nZ(e){var t=this.__data__;return tg?t[e]!==void 0:tZ.call(t,e)}var rZ="__lodash_hash_undefined__";function oZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tg&&t===void 0?rZ:t,this}function rd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rd.prototype.clear=KQ;rd.prototype.delete=qQ;rd.prototype.get=JQ;rd.prototype.has=nZ;rd.prototype.set=oZ;function aZ(){this.__data__=[],this.size=0}function Px(e,t){for(var n=e.length;n--;)if(nv(e[n][0],t))return n;return-1}var iZ=Array.prototype,sZ=iZ.splice;function lZ(e){var t=this.__data__,n=Px(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sZ.call(t,n,1),--this.size,!0}function cZ(e){var t=this.__data__,n=Px(t,e);return n<0?void 0:t[n][1]}function uZ(e){return Px(this.__data__,e)>-1}function dZ(e,t){var n=this.__data__,r=Px(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Nl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nl.prototype.clear=aZ;Nl.prototype.delete=lZ;Nl.prototype.get=cZ;Nl.prototype.has=uZ;Nl.prototype.set=dZ;var ng=vd(Ui,"Map");function fZ(){this.size=0,this.__data__={hash:new rd,map:new(ng||Nl),string:new rd}}function hZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rx(e,t){var n=e.__data__;return hZ(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mZ(e){var t=Rx(this,e).delete(e);return this.size-=t?1:0,t}function pZ(e){return Rx(this,e).get(e)}function gZ(e){return Rx(this,e).has(e)}function vZ(e,t){var n=Rx(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ll(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ll.prototype.clear=fZ;Ll.prototype.delete=mZ;Ll.prototype.get=pZ;Ll.prototype.has=gZ;Ll.prototype.set=vZ;var bZ="Expected a function";function jx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bZ);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(jx.Cache||Ll),n}jx.Cache=Ll;var yZ=500;function xZ(e){var t=jx(e,function(r){return n.size===yZ&&n.clear(),r}),n=t.cache;return t}var CZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wZ=/\\(\\)?/g,t3=xZ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(CZ,function(n,r,o,a){t.push(o?a.replace(wZ,"$1"):r||n)}),t});function pl(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var SZ=1/0,WR=ri?ri.prototype:void 0,zR=WR?WR.toString:void 0;function n3(e){if(typeof e=="string")return e;if(fo(e))return pl(e,n3)+"";if(nd(e))return zR?zR.call(e):"";var t=e+"";return t=="0"&&1/e==-SZ?"-0":t}function rv(e){return e==null?"":n3(e)}function ov(e,t){return fo(e)?e:WT(e,t)?[e]:t3(rv(e))}var DZ=9007199254740991,EZ=/^(?:0|[1-9]\d*)$/;function Nx(e,t){var n=typeof e;return t=t??DZ,!!t&&(n=="number"||n!="symbol"&&EZ.test(e))&&e>-1&&e%1==0&&e<t}var IZ=1/0;function bd(e){if(typeof e=="string"||nd(e))return e;var t=e+"";return t=="0"&&1/e==-IZ?"-0":t}function TZ(e,t,n,r){if(!Ho(e))return e;t=ov(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=bd(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var d=s[l];c=r?r(d,l,s):void 0,c===void 0&&(c=Ho(d)?d:Nx(t[o+1])?[]:{})}FT(s,l,c),s=s[l]}return e}function zT(e,t,n){return e==null?e:TZ(e,t,n)}var AZ=/[\s]*([a-z-]+)[\s]*\([\s]*([^\)]+)[\s]*\)[\s]*/i,OZ=/^(\-?\d+\.?\d{0,5})/,kh=function(e){return function(t){return t+e}},vp=parseFloat;function No(e){return typeof e=="number"?e:vp(e)*.01}function HR(e){return r3(e*100)+"%"}function r3(e){return OZ.exec(e.toString())[1]}function BZ(e){var t=AZ.exec(e);if(!(!t||!t.length))return[t[1]].concat(t[2].split(","))}function HT(e,t){var n=Array.prototype.join.call(t,",");return e+"("+n+")"}function Lx(e){return function(){return HT(e,arguments)}}var Z=kh("%"),UR=kh("deg"),eo=kh("em"),Le=kh("px"),UT=kh("vh"),o3=kh("vw"),kZ=Math,ol=kZ.round;function cw(e,t){return ol(e*t)/t}var vr="rgb",Yn="hsl",PZ=(nb={},nb[vr+Yn]=jZ,nb[Yn+vr]=NZ,nb),bp={r:255,g:255,b:255,h:360,s:1,l:1,a:1};function On(e){return $Z(e)||MZ(e)||Y0(255,0,0)}function RZ(e,t,n){return new Wr(Yn,VT(e),No(t),No(n),1,!1)}function VR(e,t,n,r){return new Wr(Yn,VT(e),No(t),No(n),No(r),!0)}function Y0(e,t,n){return new Wr(vr,e,t,n,1,!1)}function Za(e,t,n,r){return new Wr(vr,e,t,n,No(r),!0)}function cr(e,t,n){var r=t.f,o=t.r,a=t.g,i=t.b,s=t.a,l=n===void 0?t.o:n;return r!==e?PZ[r+e](o,a,i,s,l):n===void 0?t:new Wr(r,o,a,i,s,l)}var Wr=function(){function e(t,n,r,o,a,i){var s=this;s.f=t,s.o=i;var l=t===Yn;s.r=ou(l?"h":"r",n),s.g=ou(l?"s":"g",r),s.b=ou(l?"l":"b",o),s.a=ou("a",a)}return e.prototype.toString=function(){var t=this,n=t.o,r=t.f,o=t.r,a=t.g,i=t.b,s=t.a,l,c;if(r===vr)l=n?"rgba":vr,c=[ol(o),ol(a),ol(i)];else if(r===Yn)l=n?"hsla":Yn,c=[ol(o),HR(cw(a,100)),HR(cw(i,100))];else throw new Error("Invalid color format");return n&&c.push(r3(cw(s,1e5))),HT(l,c)},e.prototype.toHexString=function(){var t=cr(vr,this);return"#"+(uw(t.r)+uw(t.g)+uw(t.b)).toUpperCase()},e.prototype.toHSL=function(){return cr(Yn,this,!1)},e.prototype.toHSLA=function(){return cr(Yn,this,!0)},e.prototype.toRGB=function(){return cr(vr,this,!1)},e.prototype.toRGBA=function(){return cr(vr,this,!0)},e.prototype.red=function(){var t=this;return(t.f===vr?t:t.toRGB()).r},e.prototype.green=function(){var t=this;return(t.f===vr?t:t.toRGB()).g},e.prototype.blue=function(){var t=this;return(t.f===vr?t:t.toRGB()).b},e.prototype.hue=function(){var t=this;return(t.f===Yn?t:t.toHSL()).r},e.prototype.saturation=function(){var t=this;return(t.f===Yn?t:t.toHSL()).g},e.prototype.lightness=function(){var t=this;return(t.f===Yn?t:t.toHSL()).b},e.prototype.alpha=function(){return this.a},e.prototype.opacity=function(){return this.a},e.prototype.invert=function(){var t=this,n=cr(vr,t);return cr(t.f,new e(vr,255-n.r,255-n.g,255-n.b,t.a,t.o))},e.prototype.lighten=function(t,n){var r=this,o=cr(Yn,r),a=bp.l,i=o.b+(n?a-o.b:a)*No(t);return cr(r.f,new e(Yn,o.r,o.g,i,r.a,r.o))},e.prototype.darken=function(t,n){var r=this,o=cr(Yn,r),a=o.b-(n?o.b:bp.l)*No(t);return cr(r.f,new e(Yn,o.r,o.g,a,r.a,r.o))},e.prototype.saturate=function(t,n){var r=this,o=cr(Yn,r),a=bp.s,i=o.g+(n?a-o.g:a)*No(t);return cr(r.f,new e(Yn,o.r,i,o.b,r.a,r.o))},e.prototype.desaturate=function(t,n){var r=this,o=cr(Yn,r),a=bp.s,i=o.g-(n?o.g:a)*No(t);return cr(r.f,new e(Yn,o.r,i,o.b,r.a,r.o))},e.prototype.grayscale=function(){return this.desaturate(1)},e.prototype.fade=function(t){var n=this,r=ou("a",No(t));return cr(n.f,new e(n.f,n.r,n.g,n.b,r,!0))},e.prototype.fadeOut=function(t,n){var r=this,o=1,a=ou("a",r.a-(n?r.a:o)*No(t));return cr(r.f,new e(r.f,r.r,r.g,r.b,a,!0))},e.prototype.fadeIn=function(t,n){var r=this,o=1,a=ou("a",r.a+(n?r.a:o)*No(t));return cr(r.f,new e(r.f,r.r,r.g,r.b,a,!0))},e.prototype.mix=function(t,n){var r=this,o=LZ(t),a=cr(vr,r),i=cr(vr,o),s=n===void 0?.5:n,l=2*s-1,c=Math.abs(a.a-i.a),d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2,f=1-d,h=new e(vr,ol(a.r*d+i.r*f),ol(a.g*d+i.g*f),ol(a.b*d+i.b*f),a.a*s+i.a*(1-s),r.o||o.o);return cr(this.f,h)},e.prototype.tint=function(t){return Y0(255,255,255).mix(this,t)},e.prototype.shade=function(t){return Y0(0,0,0).mix(this,t)},e.prototype.spin=function(t){var n=this,r=cr(Yn,n);return cr(n.f,new e(Yn,VT(r.r+t),r.g,r.b,n.a,n.o))},e}();function uw(e){var t=ol(e);return(t<16?"0":"")+t.toString(16)}function VT(e){return((e<0?360:0)+e%360)%360}function jZ(e,t,n,r,o){var a=e/255,i=t/255,s=n/255,l=Math.min(a,i,s),c=Math.max(a,i,s),d=(l+c)/2,f=c-l,h;c===l?h=0:a===c?h=(i-s)/f:i===c?h=2+(s-a)/f:s===c?h=4+(a-i)/f:h=0,h=Math.min(h*60,360),h<0&&(h+=360);var m;return c===l?m=0:d<=.5?m=f/(c+l):m=f/(2-c-l),new Wr(Yn,h,m,d,r,o)}function NZ(e,t,n,r,o){var a=e/360,i=t,s=n;if(i===0){var l=s*255;return new Wr(vr,l,l,l,r,o)}for(var c=s<.5?s*(1+i):s+i-s*i,d=2*s-c,f=0,h=0,m=0,g=0;g<3;g++){var p=a+.3333333333333333*-(g-1);p<0&&p++,p>1&&p--;var l=void 0;6*p<1?l=d+(c-d)*6*p:2*p<1?l=c:3*p<2?l=d+(c-d)*(2/3-p)*6:l=d,l*=255,g===0?f=l:g===1?h=l:m=l}return new Wr(vr,f,h,m,r,o)}function ou(e,t){var n=0,r=bp[e];return t<n?n:t>r?r:t}function LZ(e){return e instanceof Wr?e:On(e)}function $Z(e){var t=e.match(/#(([a-f0-9]{6})|([a-f0-9]{3}))$/i);if(t){var n=t[1],r=parseInt(n.length===3?n[0]+n[0]+n[1]+n[1]+n[2]+n[2]:n,16),o=r>>16&255,a=r>>8&255,i=r&255;return new Wr(vr,o,a,i,1,!1)}}function MZ(e){var t=BZ(e);if(!(!t||!(t.length===4||t.length===5))){var n=t[0],r=n==="rgba",o=n==="hsla",a=n===vr,i=n===Yn,s=o||r,l;if(a||r)l=vr;else if(i||o)l=Yn;else throw new Error("unsupported color string");var c=vp(t[1]),d=a||r?vp(t[2]):No(t[2]),f=a||r?vp(t[3]):No(t[3]),h=s?vp(t[4]):1;return new Wr(l,c,d,f,h,s)}}var nb;function Xf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return HT("linear-gradient",[e].concat(t.map(_Z)))}function _Z(e){return Array.isArray(e)?e.map(function(t){return t.toString()}).join(" "):e.toString()}function it(e){return"calc("+e+")"}function Fc(e){var t=(e||e===0?e.toString():"").replace(/\'/g,"\\'");return"'"+t+"'"}function je(e){return!e&&e!==0?"":e.toString()+" !important"}function FZ(e){return"url("+(e||"")+")"}var WZ=Lx("scale"),K0=Lx("translate"),gl=Lx("translateX"),Qf=Lx("translateY");function zZ(e,t){return e>t?1:e<t?-1:0}function a3(e,t){return function(n){return e(t(n))}}var GT=a3(Object.getPrototypeOf,Object),HZ="[object Object]",UZ=Function.prototype,VZ=Object.prototype,i3=UZ.toString,GZ=VZ.hasOwnProperty,YZ=i3.call(Object);function rg(e){if(!Ds(e)||pd(e)!=HZ)return!1;var t=GT(e);if(t===null)return!0;var n=GZ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&i3.call(n)==YZ}function KZ(){this.__data__=new Nl,this.size=0}function qZ(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function XZ(e){return this.__data__.get(e)}function QZ(e){return this.__data__.has(e)}var ZZ=200;function JZ(e,t){var n=this.__data__;if(n instanceof Nl){var r=n.__data__;if(!ng||r.length<ZZ-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ll(r)}return n.set(e,t),this.size=n.size,this}function Bi(e){var t=this.__data__=new Nl(e);this.size=t.size}Bi.prototype.clear=KZ;Bi.prototype.delete=qZ;Bi.prototype.get=XZ;Bi.prototype.has=QZ;Bi.prototype.set=JZ;function $D(e,t,n){(n!==void 0&&!nv(e[t],n)||n===void 0&&!(t in e))&&kx(e,t,n)}function eJ(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var s3=eJ(),l3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,GR=l3&&typeof module=="object"&&module&&!module.nodeType&&module,tJ=GR&&GR.exports===l3,YR=tJ?Ui.Buffer:void 0,KR=YR?YR.allocUnsafe:void 0;function c3(e,t){if(t)return e.slice();var n=e.length,r=KR?KR(n):new e.constructor(n);return e.copy(r),r}var q0=Ui.Uint8Array;function YT(e){var t=new e.constructor(e.byteLength);return new q0(t).set(new q0(e)),t}function u3(e,t){var n=t?YT(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function KT(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var qR=Object.create,nJ=function(){function e(){}return function(t){if(!Ho(t))return{};if(qR)return qR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),rJ=Object.prototype;function $x(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||rJ;return e===n}function d3(e){return typeof e.constructor=="function"&&!$x(e)?nJ(GT(e)):{}}var oJ="[object Arguments]";function XR(e){return Ds(e)&&pd(e)==oJ}var f3=Object.prototype,aJ=f3.hasOwnProperty,iJ=f3.propertyIsEnumerable,sJ=XR(function(){return arguments}())?XR:function(e){return Ds(e)&&aJ.call(e,"callee")&&!iJ.call(e,"callee")};const Zf=sJ;var lJ=9007199254740991;function qT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lJ}function yd(e){return e!=null&&qT(e.length)&&!_T(e)}function X0(e){return Ds(e)&&yd(e)}function cJ(){return!1}var h3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,QR=h3&&typeof module=="object"&&module&&!module.nodeType&&module,uJ=QR&&QR.exports===h3,ZR=uJ?Ui.Buffer:void 0,dJ=ZR?ZR.isBuffer:void 0,fJ=dJ||cJ;const Jf=fJ;var hJ="[object Arguments]",mJ="[object Array]",pJ="[object Boolean]",gJ="[object Date]",vJ="[object Error]",bJ="[object Function]",yJ="[object Map]",xJ="[object Number]",CJ="[object Object]",wJ="[object RegExp]",SJ="[object Set]",DJ="[object String]",EJ="[object WeakMap]",IJ="[object ArrayBuffer]",TJ="[object DataView]",AJ="[object Float32Array]",OJ="[object Float64Array]",BJ="[object Int8Array]",kJ="[object Int16Array]",PJ="[object Int32Array]",RJ="[object Uint8Array]",jJ="[object Uint8ClampedArray]",NJ="[object Uint16Array]",LJ="[object Uint32Array]",Kn={};Kn[AJ]=Kn[OJ]=Kn[BJ]=Kn[kJ]=Kn[PJ]=Kn[RJ]=Kn[jJ]=Kn[NJ]=Kn[LJ]=!0;Kn[hJ]=Kn[mJ]=Kn[IJ]=Kn[pJ]=Kn[TJ]=Kn[gJ]=Kn[vJ]=Kn[bJ]=Kn[yJ]=Kn[xJ]=Kn[CJ]=Kn[wJ]=Kn[SJ]=Kn[DJ]=Kn[EJ]=!1;function $J(e){return Ds(e)&&qT(e.length)&&!!Kn[pd(e)]}function Ph(e){return function(t){return e(t)}}var m3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bp=m3&&typeof module=="object"&&module&&!module.nodeType&&module,MJ=Bp&&Bp.exports===m3,dw=MJ&&J4.process,eh=function(){try{var e=Bp&&Bp.require&&Bp.require("util").types;return e||dw&&dw.binding&&dw.binding("util")}catch{}}(),JR=eh&&eh.isTypedArray,_J=JR?Ph(JR):$J;const Mx=_J;function MD(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Rh(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?kx(n,s,l):FT(n,s,l)}return n}function FJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var WJ=Object.prototype,zJ=WJ.hasOwnProperty;function p3(e,t){var n=fo(e),r=!n&&Zf(e),o=!n&&!r&&Jf(e),a=!n&&!r&&!o&&Mx(e),i=n||r||o||a,s=i?FJ(e.length,String):[],l=s.length;for(var c in e)(t||zJ.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Nx(c,l)))&&s.push(c);return s}function HJ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var UJ=Object.prototype,VJ=UJ.hasOwnProperty;function GJ(e){if(!Ho(e))return HJ(e);var t=$x(e),n=[];for(var r in e)r=="constructor"&&(t||!VJ.call(e,r))||n.push(r);return n}function av(e){return yd(e)?p3(e,!0):GJ(e)}function YJ(e){return Rh(e,av(e))}function KJ(e,t,n,r,o,a,i){var s=MD(e,n),l=MD(t,n),c=i.get(l);if(c){$D(e,n,c);return}var d=a?a(s,l,n+"",e,t,i):void 0,f=d===void 0;if(f){var h=fo(l),m=!h&&Jf(l),g=!h&&!m&&Mx(l);d=l,h||m||g?fo(s)?d=s:X0(s)?d=KT(s):m?(f=!1,d=c3(l,!0)):g?(f=!1,d=u3(l,!0)):d=[]:rg(l)||Zf(l)?(d=s,Zf(s)?d=YJ(s):(!Ho(s)||_T(s))&&(d=d3(l))):f=!1}f&&(i.set(l,d),o(d,l,r,a,i),i.delete(l)),$D(e,n,d)}function g3(e,t,n,r,o){e!==t&&s3(t,function(a,i){if(o||(o=new Bi),Ho(a))KJ(e,t,i,n,g3,r,o);else{var s=r?r(MD(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),$D(e,i,s)}},av)}function _x(e){return e}function qJ(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ej=Math.max;function v3(e,t,n){return t=ej(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=ej(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),qJ(e,this,s)}}function XJ(e){return function(){return e}}var QJ=G0?function(e,t){return G0(e,"toString",{configurable:!0,enumerable:!1,value:XJ(t),writable:!0})}:_x;const ZJ=QJ;var JJ=800,eee=16,tee=Date.now;function nee(e){var t=0,n=0;return function(){var r=tee(),o=eee-(r-n);if(n=r,o>0){if(++t>=JJ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var b3=nee(ZJ);function Fx(e,t){return b3(v3(e,t,_x),e+"")}function og(e,t,n){if(!Ho(n))return!1;var r=typeof t;return(r=="number"?yd(n)&&Nx(t,n.length):r=="string"&&t in n)?nv(n[t],e):!1}function ree(e){return Fx(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&og(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}function Wx(e){function t(n,r){return(n<<5)-n+r.charCodeAt(0)}return e.split("").reduce(t,0)}function XT(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function QT(e){let t=e.replace(/([^A-Z0-9])([A-Z0-9])/g,"$1 $2");return t=t.replace(/([A-Z0-9])(?=[a-z])/g," $1"),t=t.replace(/[_-]/g," "),t=t.replace(/\./g," "),t=t.replace(/\s+/g," "),t=t.split(" ").map(r=>r.charAt(0).toLocaleUpperCase()+r.slice(1)).join(" "),t.trim()}function zr(e){return Wx(JSON.stringify(e,(t,n)=>rg(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n))}function oee(e,t){const n=t&&t.allowMultipleDashes?/[\s]+/g:/[-\s]+/g;return e.normalize("NFD").replace(/[^\w\s$*_+~.()'"\-!:@]/g,"").trim().replace(n,"-").toLocaleLowerCase()}function tj(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Nft(e,t){const n=tj(e),r=tj(t),o=n.split(new RegExp(`(${r})`,"i"));let a=0;return o.map(i=>{const s=a;return a+=i.length,e.substring(s,a)})}function aee(e,t=!1,n=!0){const r=e.split(`
`),o=r[r.length-1];function a(c){let d='[^"\\u0000-\\u001f\\u007f-\\u009f\\u2028';return c&&(d+="\\s"),d+="]",d}let i='@("('+a(!1)+'+?)"?|('+a(n)+'+?)"?)(?:\\n|$)';t&&(i="(?:^|\\s)"+i);const l=new RegExp(i,"gi").exec(o);return l?{rawMatch:l[0],match:l[2]||l[1]}:null}const iee=/^(http:\/\/|https:\/\/|tel:|mailto:|\/|#)/;function see(e){return e.match(iee)?e:"unsafe:"+e}function _D(e){return e.charAt(0).toUpperCase()+e.slice(1)}function y3(e){return typeof e=="number"?!0:typeof e=="string"?/^[+-]?([0-9]*[.])?[0-9]+$/.test(e):!1}function Lft(e,t){const n=r=>r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1");return!t||!e?null:t.split(`
`).some(r=>new RegExp("^"+r.replace(/\//gi,"").split("*").map(n).join(".*")+"$").test(e))}var Q0;(function(e){e.IOS="ios",e.ANDROID="android",e.UNKNOWN="unkwown"})(Q0||(Q0={}));function lee(){const e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":"unkwown"}function x3(e,t){const n={};for(const r of e)t in r&&(r[t]in n||(n[r[t]]=[]),n[r[t]].push(r));return n}function Do(e){return e!=null}function $ft(e){if(typeof e!="string")throw new TypeError("Expected maybeString to have type string");return e}function C3(e,t){if(typeof e=="number")return e;let n=Number.parseInt(e??"",10);return Number.isNaN(n)?t:n}function Mft(e){return typeof e=="boolean"?e:typeof e=="string"?e==="true"?!0:e==="false"?!1:!!e:!!e}function _ft(e){return e}function da(e,t){return globalThis.__VANILLA_GLOBALS__||(globalThis.__VANILLA_GLOBALS__={}),e in globalThis.__VANILLA_GLOBALS__||(globalThis.__VANILLA_GLOBALS__[e]=t),{current:()=>globalThis.__VANILLA_GLOBALS__[e],set:n=>{globalThis.__VANILLA_GLOBALS__[e]=n}}}const cee="";let uee=da("idCache",{});function ro(e=cee){let t=0;const n=uee.current();return e in n&&(t=n[e]+1),n[e]=t,e+"-"+n[e]}function xr(e){return x.useMemo(()=>ro(e),[e])}function zx(e,t){return e.id?e.id:ro(t)}function dee(e,t){if(e.id){if(typeof e.id=="string")return e.id;if(typeof e.id=="boolean"&&t)return ro(t);throw new Error("To generate and ID, you must provide a suffix.")}else return null}(function(e,t){(function(n,r){r()})(yr,function(){function n(){var o=!0,a=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(D){return!!(D&&D!==document&&D.nodeName!=="HTML"&&D.nodeName!=="BODY"&&"classList"in D&&"contains"in D.classList)}function c(D){var A=D.type,T=D.tagName;return!!(T=="INPUT"&&s[A]&&!D.readOnly||T=="TEXTAREA"&&!D.readOnly||D.isContentEditable)}function d(D){D.classList.contains("focus-visible")||(D.classList.add("focus-visible"),D.setAttribute("data-focus-visible-added",""))}function f(D){D.hasAttribute("data-focus-visible-added")&&(D.classList.remove("focus-visible"),D.removeAttribute("data-focus-visible-added"))}function h(D){l(document.activeElement)&&d(document.activeElement),o=!0}function m(D){o=!1}function g(D){l(D.target)&&(o||c(D.target))&&d(D.target)}function p(D){l(D.target)&&(D.target.classList.contains("focus-visible")||D.target.hasAttribute("data-focus-visible-added"))&&(a=!0,window.clearTimeout(i),i=window.setTimeout(function(){a=!1,window.clearTimeout(i)},100),f(D.target))}function v(D){document.visibilityState=="hidden"&&(a&&(o=!0),b())}function b(){document.addEventListener("mousemove",C),document.addEventListener("mousedown",C),document.addEventListener("mouseup",C),document.addEventListener("pointermove",C),document.addEventListener("pointerdown",C),document.addEventListener("pointerup",C),document.addEventListener("touchmove",C),document.addEventListener("touchstart",C),document.addEventListener("touchend",C)}function y(){document.removeEventListener("mousemove",C),document.removeEventListener("mousedown",C),document.removeEventListener("mouseup",C),document.removeEventListener("pointermove",C),document.removeEventListener("pointerdown",C),document.removeEventListener("pointerup",C),document.removeEventListener("touchmove",C),document.removeEventListener("touchstart",C),document.removeEventListener("touchend",C)}function C(D){D.target.nodeName.toLowerCase()!=="html"&&(o=!1,y())}document.addEventListener("keydown",h,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("focus",g,!0),document.addEventListener("blur",p,!0),document.addEventListener("visibilitychange",v,!0),b(),document.body.classList.add("js-focus-visible")}function r(o){var a;function i(){a||(a=!0,o())}["interactive","complete"].indexOf(document.readyState)>=0?o():(a=!1,document.addEventListener("DOMContentLoaded",i,!1),window.addEventListener("load",i,!1))}typeof document<"u"&&r(n)})})();function Fft(e){return e}class fee{constructor(t,n,r){q(this,"root");q(this,"returnElement");q(this,"callback");q(this,"start");q(this,"stop");q(this,"keydownListener");this.root=t,this.returnElement=n,this.callback=r,this.start=()=>{this.root.addEventListener("keydown",this.keydownListener)},this.stop=()=>{this.root.removeEventListener("keydown",this.keydownListener)},this.keydownListener=o=>{o.key==="Escape"&&this.root.contains(document.activeElement)&&(o.preventDefault(),this.returnElement&&this.returnElement.focus(),this.callback&&this.callback(o))}}}const kp={};function iv(e,t,n,r){let o=e+t+n.toString(),a;if(typeof r=="string")if(a=document.querySelector(r),a)o+=r;else throw new Error(`Unable to find element in the document for scopeSelector: ${r}`);else r instanceof Node?a=r:a=document;const i=Wx(o).toString();if(!Object.keys(kp).includes(i)){const s=l=>{const c=l.target,d=t?(c==null?void 0:c.closest(t))||(c==null?void 0:c.matches(t)):c;if(d)return n.call(d,l,d)};a.addEventListener(e,s),kp[i]={scope:a,eventName:e,wrappedCallback:s}}return i}function hee(e){if(kp[e]){const{scope:t,eventName:n,wrappedCallback:r}=kp[e];t.removeEventListener(n,r),delete kp[e]}}class mee{constructor(t,n){q(this,"watchedNode");q(this,"changeHandler");q(this,"start");q(this,"stop");q(this,"handleFocusOut");q(this,"handleFocusIn");q(this,"handleClick");this.watchedNode=t,this.changeHandler=n,this.start=()=>{this.watchedNode.addEventListener("focusout",this.handleFocusOut,!0),this.watchedNode.addEventListener("focusin",this.handleFocusIn,!0),document.addEventListener("click",this.handleClick)},this.stop=()=>{this.watchedNode.removeEventListener("focusout",this.handleFocusOut,!0),this.watchedNode.removeEventListener("focusin",this.handleFocusIn,!0),document.removeEventListener("click",this.handleClick)},this.handleFocusOut=r=>{this.checkDomTreeHasFocus(r,this.changeHandler)},this.handleFocusIn=r=>{this.checkDomTreeHasFocus(r,this.changeHandler)},this.handleClick=r=>{const o=r.target;if(!document.documentElement.contains(o))return;this.checkDomTreeWasClicked(o)||this.changeHandler(!1)}}checkDomTreeWasClicked(t){return this.isElementInModal(t)||this.watchedNode&&t&&(this.watchedNode.contains(t)||this.watchedNode===t)}isElementInModal(t){var n;return!!((n=document.getElementById("modals"))!=null&&n.contains(t))}checkDomTreeHasFocus(t,n){setTimeout(()=>{const r=[document.activeElement,t.relatedTarget,t.explicitOriginalTarget];let o=null;for(const a of r)if(a&&a!==document.body){o=a;break}if(o!==null){const a=document.body.contains(this.watchedNode),i=document.body.contains(o),s=o.closest("[data-modal-real-root-id]"),l=s==null?void 0:s.getAttribute("data-modal-real-root-id"),c=l?document.getElementById(l):null,d=c!=null&&this.watchedNode===c||this.watchedNode.contains(c),f=o.matches("[data-reach-popover]")||o.closest("[data-reach-popover]"),h=!!(this.watchedNode&&o&&(o===this.watchedNode||this.watchedNode.contains(o)));if(!h&&(f||d))return!1;a&&i&&n(h,o)}},0)}}function w3(e){const t=document.createElement("div");return t.appendChild(document.createTextNode(e)),t.innerHTML}function Wft(e){if(typeof e=="string"&&(e=document.querySelector(e)),!(e instanceof HTMLElement))throw new Error(`HTMLElement could not be found for ${e}.`);return e}const Ym=new WeakMap,rb=new Map;function pee(e){return new Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);if(rb.has(e)&&n(rb.get(e)),r&&Ym.has(r)){const o=Ym.get(r);o&&o.push(t)}else{const o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=e,a.onerror=s=>{const l=new Error("Failed to load a required embed script");rb.set(e,l),n(l)};const i=setTimeout(()=>{const s=new Error(`Loading of the script ${e} has timed out.`);rb.set(e,s),n(s)},1e4);Ym.set(a,[t]),a.onload=s=>{clearTimeout(i);const l=Ym.get(a);l&&l.forEach(c=>c(s)),Ym.delete(a)},o.appendChild(a)}})}var S3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],FD=S3.join(","),ZT=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function JT(e,t){t=t||{};var n=e.ownerDocument||e,r=[],o=[],a=new Hx(n),i=e.querySelectorAll(FD);t.includeContainer&&ZT.call(e,FD)&&(i=Array.prototype.slice.apply(i),i.unshift(e));var s,l,c;for(s=0;s<i.length;s++)l=i[s],D3(l,a)&&(c=I3(l),c===0?r.push(l):o.push({documentOrder:s,tabIndex:c,node:l}));var d=o.sort(yee).map(function(f){return f.node}).concat(r);return d}JT.isTabbable=gee;JT.isFocusable=bee;function D3(e,t){return!(!E3(e,t)||Dee(e)||I3(e)<0)}function gee(e,t){if(!e)throw new Error("No node provided");return ZT.call(e,FD)===!1?!1:D3(e,t)}function E3(e,t){return t=t||new Hx(e.ownerDocument||e),!(e.disabled||wee(e)||t.isUntouchable(e))}var vee=S3.concat("iframe").join(",");function bee(e,t){if(!e)throw new Error("No node provided");return ZT.call(e,vee)===!1?!1:E3(e,t)}function I3(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?Cee(e)?0:e.tabIndex:t}function yee(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function xee(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}function Cee(e){return e.contentEditable==="true"}function T3(e){return e.tagName==="INPUT"}function wee(e){return T3(e)&&e.type==="hidden"}function See(e){return T3(e)&&e.type==="radio"}function Dee(e){return See(e)&&!Iee(e)}function Eee(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function Iee(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=Eee(t);return!n||n===e}function Hx(e){this.doc=e,this.cache=[]}Hx.prototype.hasDisplayNone=function(t,n){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var r=xee(this.cache,function(a){return a===t});if(r)return r[1];n=n||this.doc.defaultView.getComputedStyle(t);var o=!1;return n.display==="none"?o=!0:t.parentNode&&(o=this.hasDisplayNone(t.parentNode)),this.cache.push([t,o]),o};Hx.prototype.isUntouchable=function(t){if(t===this.doc.documentElement)return!1;var n=this.doc.defaultView.getComputedStyle(t);return this.hasDisplayNone(t,n)?!0:n.visibility==="hidden"};var Tee=JT;const Aee=jr(Tee),rc=class rc{constructor(t=document.documentElement,n=[],r=[]){q(this,"root");q(this,"excludedElements");q(this,"excludedRoots");q(this,"tabbableElements");q(this,"createExcludeFilterWithExemption");q(this,"filterAllExcluded");this.root=t,this.excludedElements=n,this.excludedRoots=r,this.createExcludeFilterWithExemption=o=>a=>{if(!(o===a||a.contains(o))){if(this.excludedElements.includes(a))return!1;for(const s of this.excludedRoots)if(s!==a&&s.contains(a))return!1}return!0},this.filterAllExcluded=o=>{if(this.excludedElements.includes(o))return!1;for(const a of this.excludedRoots)if(a!==o&&a.contains(o))return!1;return!0},this.tabbableElements=rc.getTabbableElements(t)}static isTabbable(t){return!(t instanceof HTMLElement)||!t.parentElement?!1:rc.getTabbableElements(t.parentElement).includes(t)}static getTabbableElements(t){return Aee(t).filter(r=>!(r.tabIndex!=null&&r.tabIndex<0||r.classList.contains(rc.NO_TABBING)||r.closest(`.${rc.NO_TABBING}`)))}getNext(t=document.activeElement,n=!1,r=!0,o=!1){if(!(t instanceof HTMLElement))return mn("Unable to tab to next element, `fromElement` given is not valid: ",t),null;o&&(this.tabbableElements=rc.getTabbableElements(this.root));const a=this.tabbableElements.filter(this.createExcludeFilterWithExemption(t)),i=a.indexOf(t);if(i===-1&&!o)return this.getNext(t,n,r,!0);if(i<0)return null;let s=n?i-1:i+1;return r&&(s<0?s=a.length-1:s>=a.length&&(s=0)),a[s]||null}getAll(t=document.activeElement){return t instanceof HTMLElement?this.tabbableElements.filter(this.createExcludeFilterWithExemption(t)):(mn("Unable to tab to next element, `fromElement` given is not valid: ",t),null)}getInitial(){const t=this.tabbableElements.filter(this.filterAllExcluded);return t.length>0?t[0]:null}getLast(){const t=this.tabbableElements.filter(this.filterAllExcluded);return t.length>0?t[t.length-1]:null}};q(rc,"NO_TABBING","NO_TABBING");let Es=rc,eA=da("currentLocale","en"),WD=da("localStore",[]),tA=da("localStoreCallbacks",[]);function fw(){return WD.current()}function Oee(e){tA.current().push(e)}function Bee(e){eA.set(e),tA.current().forEach(t=>t())}function If(){return eA.current()}function nj(){return eA.current().replace("_","-")}function kee(e){WD.set([...WD.current(),...e]),tA.current().forEach(t=>t())}const A3=W.createContext({locales:[],currentLocale:null});function Pee(e){const[t,n]=x.useState(fw()),[r,o]=x.useState(If());return r||hs("No locale loaded for <LocaleProvider />"),x.useEffect(()=>{n(fw()),o(If()),Oee(()=>{n(fw()),o(If())})},[n,o]),u.jsx(A3.Provider,{value:{locales:t,currentLocale:r},children:e.children})}function Ree(){return x.useContext(A3)}let O3=da("translationStore",null),rj=!1;function B3(e){return e!==void 0&&(rj=e),rj}function jee(e){O3.set({...e})}function nA(e,t){if(e.substr(0,1)==="@")return e.substr(1);const n=t!==void 0?t:e,r=O3.current();if(!r){const o=`Attempted to translate a value '${e}' before the translation store was initialized.`;switch("production"){case"production":hs(o);break;case"development":throw new Error(o+" Don't use t() in the top level of a file or a static property.")}return n}return r[e]!==void 0?r[e]:B3()?"☢️☢️☢️"+n+"☢️☢️☢️":n}const k=nA;var oj;(function(e){e.TEXT="text",e.TEXT_MULTILINE=""})(oj||(oj={}));const k3=e=>(mn("Rendering a Null Content translator. Be sure to check `shouldDisplay` before rendering."),null),P3=W.createContext({shouldDisplay:!1,Translator:k3});let i0=null;const R3=e=>{const{locales:t}=Ree();return u.jsx(P3.Provider,{value:{shouldDisplay:i0!==null&&t.length>1,Translator:i0!==null?i0:k3},children:e.children})};R3.setTranslator=e=>{i0=e};function zft(){return x.useContext(P3)}const la=window.gdn||{};"meta"in la||(la.meta={});"permissions"in la||(la.permissions={});"translations"in la||(la.translations={});"translate"in la||(la.translate=nA);"makeAccessiblePopup"in la||(la.makeAccessiblePopup=(e,t,n)=>{var a;if(n){let i=n.id;i||(i=ro("popup"),n.setAttribute("id",i)),e.attr("aria-labelledby",i),e.attr("aria-describedby",i)}$.each(e.find("a, input"),function(i,s){s.tagName&&s.tagName.toLowerCase()==="a"&&s.setAttribute("tabindex","0")});const r=new Es(e[0]);if((a=r.getInitial())==null||a.focus(),!r)return;(r.getAll()??[]).map((i,s)=>{i.tagName.toLowerCase()==="a"&&i.setAttribute("tabindex","0"),i.addEventListener("keydown",l=>{if(l.keyCode===9)if(l.shiftKey){const d=r.getNext(document.activeElement,!0,!0);d&&(l.preventDefault(),l.stopPropagation(),d.focus())}else{const d=r.getNext(document.activeElement,!1,!0);d&&(l.preventDefault(),l.stopPropagation(),d.focus())}})})});var yt={};(function(e){(function(){var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(s){return o(i(s),arguments)}function r(s,l){return n.apply(null,[s].concat(l||[]))}function o(s,l){var c=1,d=s.length,f,h="",m,g,p,v,b,y,C,D;for(m=0;m<d;m++)if(typeof s[m]=="string")h+=s[m];else if(typeof s[m]=="object"){if(p=s[m],p.keys)for(f=l[c],g=0;g<p.keys.length;g++){if(f==null)throw new Error(n('[sprintf] Cannot access property "%s" of undefined value "%s"',p.keys[g],p.keys[g-1]));f=f[p.keys[g]]}else p.param_no?f=l[p.param_no]:f=l[c++];if(t.not_type.test(p.type)&&t.not_primitive.test(p.type)&&f instanceof Function&&(f=f()),t.numeric_arg.test(p.type)&&typeof f!="number"&&isNaN(f))throw new TypeError(n("[sprintf] expecting number but found %T",f));switch(t.number.test(p.type)&&(C=f>=0),p.type){case"b":f=parseInt(f,10).toString(2);break;case"c":f=String.fromCharCode(parseInt(f,10));break;case"d":case"i":f=parseInt(f,10);break;case"j":f=JSON.stringify(f,null,p.width?parseInt(p.width):0);break;case"e":f=p.precision?parseFloat(f).toExponential(p.precision):parseFloat(f).toExponential();break;case"f":f=p.precision?parseFloat(f).toFixed(p.precision):parseFloat(f);break;case"g":f=p.precision?String(Number(f.toPrecision(p.precision))):parseFloat(f);break;case"o":f=(parseInt(f,10)>>>0).toString(8);break;case"s":f=String(f),f=p.precision?f.substring(0,p.precision):f;break;case"t":f=String(!!f),f=p.precision?f.substring(0,p.precision):f;break;case"T":f=Object.prototype.toString.call(f).slice(8,-1).toLowerCase(),f=p.precision?f.substring(0,p.precision):f;break;case"u":f=parseInt(f,10)>>>0;break;case"v":f=f.valueOf(),f=p.precision?f.substring(0,p.precision):f;break;case"x":f=(parseInt(f,10)>>>0).toString(16);break;case"X":f=(parseInt(f,10)>>>0).toString(16).toUpperCase();break}t.json.test(p.type)?h+=f:(t.number.test(p.type)&&(!C||p.sign)?(D=C?"+":"-",f=f.toString().replace(t.sign,"")):D="",b=p.pad_char?p.pad_char==="0"?"0":p.pad_char.charAt(1):" ",y=p.width-(D+f).length,v=p.width&&y>0?b.repeat(y):"",h+=p.align?D+f+v:b==="0"?D+v+f:v+D+f)}return h}var a=Object.create(null);function i(s){if(a[s])return a[s];for(var l=s,c,d=[],f=0;l;){if((c=t.text.exec(l))!==null)d.push(c[0]);else if((c=t.modulo.exec(l))!==null)d.push("%");else if((c=t.placeholder.exec(l))!==null){if(c[2]){f|=1;var h=[],m=c[2],g=[];if((g=t.key.exec(m))!==null)for(h.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=t.key_access.exec(m))!==null)h.push(g[1]);else if((g=t.index_access.exec(m))!==null)h.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");c[2]=h}else f|=2;if(f===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");d.push({placeholder:c[0],param_no:c[1],keys:c[2],sign:c[3],pad_char:c[4],align:c[5],width:c[6],precision:c[7],type:c[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");l=l.substring(c[0].length)}return a[s]=d}e.sprintf=n,e.vsprintf=r,typeof window<"u"&&(window.sprintf=n,window.vsprintf=r)})()})(yt);const rA=/^\s*(mailto:|((https?:)?\/\/))/i;function Ge(e,t){if(!la.meta)return t;const n=e.split(".");let r=la.meta;for(const o of n){if(!r.hasOwnProperty(o))return t;r=r[o]}return r}function zD(e,t){const n=e.split("."),r=n.pop();if(!r)throw new Error(`Unable to set meta value ${e}. ${r} is not a valid object key.`);let o=la.meta;for(const a of n)(o[a]===null||typeof o[a]!="object")&&(o[a]={}),o=o[a];o[r]=t}function Hft(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"}function Uft(e){return e.match(/^https?:\/\//)?e:"http://"+e}function oA(){return Ge("siteSection")}function oo(e,t=!1){if(rA.test(e))return Nee(e);let n=Ge("context.basePath","");return e.startsWith("~")&&(e=e.replace(/^~/,""),n=Ge("context.host","")),(t?window.location.origin+n:n)+e}function Nee(e){const t=window.location.origin+Ge("context.host","");if(!e.startsWith(t))return e;const n=e.replace(t,"");if(n.length<=1)return e;const r=Ge("siteSectionSlugs",[]);for(const o of r)if(n.match(new RegExp(`^${o}(/.*)?$`,"gi")))return e;return oo(n,!0)}function Ni(e){if(rA.test(e))return e;let t=window.location.origin;const n=Ge("context.host","");return e.startsWith(n)||(t+=n),t+e}function Lee(e){const t=window.location.origin+Ge("context.basePath","");return e.replace(t,"").split("#")[0]}function Tf(e){if(rA.test(e))return e;const t=Ge("context.staticPathFolder",""),n=Ge("context.assetPath","");return t+n+e}function $ee(e){const t=Ge("ui.themeKey");return Tf(`/themes/${t}/${e}`)}const j3=da("readyHandlers",[]);function Wc(e){j3.current().push(e)}function Mee(e){return new Promise(t=>{const n=j3.current().map(o=>{let a=o();return a instanceof Promise&&a.catch(i=>mn(i)),a}),r=()=>(e==null||e(),Promise.all(n).then(t).finally(()=>{const o=new CustomEvent("X-VanillaReady",{bubbles:!0,cancelable:!1});document.dispatchEvent(o),Ge("trackLegacyPageViews",!1)&&document.dispatchEvent(new CustomEvent("X-PageView",{bubbles:!0,cancelable:!1}))}));if(document.readyState!=="loading")return r();document.addEventListener("DOMContentLoaded",r)})}function jh(e){document.addEventListener("X-DOMContentReady",e)}function aA(e){const t=(e==null?void 0:e.replace("/","%2f").replace("&","%26"))??"";return encodeURIComponent(t)}function iA(e,t){let n="/profile/";return e&&(n+=`${e}/`),t&&(n+=`${aA(t)}`),oo(n,!0)}function _ee(e,t){let n="/profile/discussions/";return e&&(n+=`${e}/`),t&&(n+=`${aA(t)}`),oo(n,!0)}function Fee(e,t){let n="/profile/comments/";return e&&(n+=`${e}/`),t&&(n+=`${aA(t)}`),oo(n,!0)}async function Vft(){const e=Ge("reCaptchaKey");return e?(await pee(`https://www.google.com/recaptcha/api.js?render=${e}`),{execute:t=>window.grecaptcha.execute(t)}):null}function N3(e,t){return yt.sprintf(e,t)}function Ac(e){return Object.entries(e??{}).filter(([t,n])=>n).map(t=>`${t.reverse().join(" ")}w`).join(",")}function Gft(e){try{return JSON.stringify(e)}catch(t){mn(t)}}function Wee(e){try{return JSON.parse(e)}catch(t){mn(t)}}var sA={exports:{}},L3=function(t,n){return function(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];return t.apply(n,o)}},zee=L3,xd=Object.prototype.toString;function lA(e){return xd.call(e)==="[object Array]"}function HD(e){return typeof e>"u"}function Hee(e){return e!==null&&!HD(e)&&e.constructor!==null&&!HD(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Uee(e){return xd.call(e)==="[object ArrayBuffer]"}function Vee(e){return typeof FormData<"u"&&e instanceof FormData}function Gee(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Yee(e){return typeof e=="string"}function Kee(e){return typeof e=="number"}function $3(e){return e!==null&&typeof e=="object"}function s0(e){if(xd.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function qee(e){return xd.call(e)==="[object Date]"}function Xee(e){return xd.call(e)==="[object File]"}function Qee(e){return xd.call(e)==="[object Blob]"}function M3(e){return xd.call(e)==="[object Function]"}function Zee(e){return $3(e)&&M3(e.pipe)}function Jee(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function ete(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function tte(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function cA(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),lA(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function UD(){var e={};function t(o,a){s0(e[a])&&s0(o)?e[a]=UD(e[a],o):s0(o)?e[a]=UD({},o):lA(o)?e[a]=o.slice():e[a]=o}for(var n=0,r=arguments.length;n<r;n++)cA(arguments[n],t);return e}function nte(e,t,n){return cA(t,function(o,a){n&&typeof o=="function"?e[a]=zee(o,n):e[a]=o}),e}function rte(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Pa={isArray:lA,isArrayBuffer:Uee,isBuffer:Hee,isFormData:Vee,isArrayBufferView:Gee,isString:Yee,isNumber:Kee,isObject:$3,isPlainObject:s0,isUndefined:HD,isDate:qee,isFile:Xee,isBlob:Qee,isFunction:M3,isStream:Zee,isURLSearchParams:Jee,isStandardBrowserEnv:tte,forEach:cA,merge:UD,extend:nte,trim:ete,stripBOM:rte},Md=Pa;function aj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var _3=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(Md.isURLSearchParams(n))o=n.toString();else{var a=[];Md.forEach(n,function(l,c){l===null||typeof l>"u"||(Md.isArray(l)?c=c+"[]":l=[l],Md.forEach(l,function(f){Md.isDate(f)?f=f.toISOString():Md.isObject(f)&&(f=JSON.stringify(f)),a.push(aj(c)+"="+aj(f))}))}),o=a.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},ote=Pa;function Ux(){this.handlers=[]}Ux.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Ux.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ux.prototype.forEach=function(t){ote.forEach(this.handlers,function(r){r!==null&&t(r)})};var ate=Ux,ite=Pa,ste=function(t,n){ite.forEach(t,function(o,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[a])})},F3=function(t,n,r,o,a){return t.config=n,r&&(t.code=r),t.request=o,t.response=a,t.isAxiosError=!0,t.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},hw,ij;function W3(){if(ij)return hw;ij=1;var e=F3;return hw=function(n,r,o,a,i){var s=new Error(n);return e(s,r,o,a,i)},hw}var mw,sj;function lte(){if(sj)return mw;sj=1;var e=W3();return mw=function(n,r,o){var a=o.config.validateStatus;!o.status||!a||a(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},mw}var pw,lj;function cte(){if(lj)return pw;lj=1;var e=Pa;return pw=e.isStandardBrowserEnv()?function(){return{write:function(r,o,a,i,s,l){var c=[];c.push(r+"="+encodeURIComponent(o)),e.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),e.isString(i)&&c.push("path="+i),e.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),pw}var gw,cj;function ute(){return cj||(cj=1,gw=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),gw}var vw,uj;function dte(){return uj||(uj=1,vw=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),vw}var bw,dj;function fte(){if(dj)return bw;dj=1;var e=ute(),t=dte();return bw=function(r,o){return r&&!e(o)?t(r,o):o},bw}var yw,fj;function hte(){if(fj)return yw;fj=1;var e=Pa,t=["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"];return yw=function(r){var o={},a,i,s;return r&&e.forEach(r.split(`
`),function(c){if(s=c.indexOf(":"),a=e.trim(c.substr(0,s)).toLowerCase(),i=e.trim(c.substr(s+1)),a){if(o[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?o[a]=(o[a]?o[a]:[]).concat([i]):o[a]=o[a]?o[a]+", "+i:i}}),o},yw}var xw,hj;function mte(){if(hj)return xw;hj=1;var e=Pa;return xw=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function a(i){var s=i;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),xw}var Cw,mj;function Vx(){if(mj)return Cw;mj=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Cw=e,Cw}var ww,pj;function gj(){if(pj)return ww;pj=1;var e=Pa,t=lte(),n=cte(),r=_3,o=fte(),a=hte(),i=mte(),s=W3(),l=Gx(),c=Vx();return ww=function(f){return new Promise(function(m,g){var p=f.data,v=f.headers,b=f.responseType,y;function C(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(p)&&delete v["Content-Type"];var D=new XMLHttpRequest;if(f.auth){var A=f.auth.username||"",T=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(A+":"+T)}var B=o(f.baseURL,f.url);D.open(f.method.toUpperCase(),r(B,f.params,f.paramsSerializer),!0),D.timeout=f.timeout;function j(){if(D){var N="getAllResponseHeaders"in D?a(D.getAllResponseHeaders()):null,_=!b||b==="text"||b==="json"?D.responseText:D.response,U={data:_,status:D.status,statusText:D.statusText,headers:N,config:f,request:D};t(function(z){m(z),C()},function(z){g(z),C()},U),D=null}}if("onloadend"in D?D.onloadend=j:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(j)},D.onabort=function(){D&&(g(s("Request aborted",f,"ECONNABORTED",D)),D=null)},D.onerror=function(){g(s("Network Error",f,null,D)),D=null},D.ontimeout=function(){var _=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",U=f.transitional||l.transitional;f.timeoutErrorMessage&&(_=f.timeoutErrorMessage),g(s(_,f,U.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",D)),D=null},e.isStandardBrowserEnv()){var R=(f.withCredentials||i(B))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;R&&(v[f.xsrfHeaderName]=R)}"setRequestHeader"in D&&e.forEach(v,function(_,U){typeof p>"u"&&U.toLowerCase()==="content-type"?delete v[U]:D.setRequestHeader(U,_)}),e.isUndefined(f.withCredentials)||(D.withCredentials=!!f.withCredentials),b&&b!=="json"&&(D.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&D.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&D.upload&&D.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(N){D&&(g(!N||N&&N.type?new c("canceled"):N),D.abort(),D=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),p||(p=null),D.send(p)})},ww}var Sw,vj;function Gx(){if(vj)return Sw;vj=1;var e=Pa,t=ste,n=F3,r={"Content-Type":"application/x-www-form-urlencoded"};function o(l,c){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=c)}function a(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=gj()),l}function i(l,c,d){if(e.isString(l))try{return(c||JSON.parse)(l),e.trim(l)}catch(f){if(f.name!=="SyntaxError")throw f}return(d||JSON.stringify)(l)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:a(),transformRequest:[function(c,d){return t(d,"Accept"),t(d,"Content-Type"),e.isFormData(c)||e.isArrayBuffer(c)||e.isBuffer(c)||e.isStream(c)||e.isFile(c)||e.isBlob(c)?c:e.isArrayBufferView(c)?c.buffer:e.isURLSearchParams(c)?(o(d,"application/x-www-form-urlencoded;charset=utf-8"),c.toString()):e.isObject(c)||d&&d["Content-Type"]==="application/json"?(o(d,"application/json"),i(c)):c}],transformResponse:[function(c){var d=this.transitional||s.transitional,f=d&&d.silentJSONParsing,h=d&&d.forcedJSONParsing,m=!f&&this.responseType==="json";if(m||h&&e.isString(c)&&c.length)try{return JSON.parse(c)}catch(g){if(m)throw g.name==="SyntaxError"?n(g,this,"E_JSON_PARSE"):g}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(c){return c>=200&&c<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(c){s.headers[c]={}}),e.forEach(["post","put","patch"],function(c){s.headers[c]=e.merge(r)}),Sw=s,Sw}var pte=Pa,gte=Gx(),vte=function(t,n,r){var o=this||gte;return pte.forEach(r,function(i){t=i.call(o,t,n)}),t},Dw,bj;function z3(){return bj||(bj=1,Dw=function(t){return!!(t&&t.__CANCEL__)}),Dw}var yj=Pa,Ew=vte,bte=z3(),yte=Gx(),xte=Vx();function Iw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xte("canceled")}var Cte=function(t){Iw(t),t.headers=t.headers||{},t.data=Ew.call(t,t.data,t.headers,t.transformRequest),t.headers=yj.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),yj.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||yte.adapter;return n(t).then(function(o){return Iw(t),o.data=Ew.call(t,o.data,o.headers,t.transformResponse),o},function(o){return bte(o)||(Iw(t),o&&o.response&&(o.response.data=Ew.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},pa=Pa,H3=function(t,n){n=n||{};var r={};function o(d,f){return pa.isPlainObject(d)&&pa.isPlainObject(f)?pa.merge(d,f):pa.isPlainObject(f)?pa.merge({},f):pa.isArray(f)?f.slice():f}function a(d){if(pa.isUndefined(n[d])){if(!pa.isUndefined(t[d]))return o(void 0,t[d])}else return o(t[d],n[d])}function i(d){if(!pa.isUndefined(n[d]))return o(void 0,n[d])}function s(d){if(pa.isUndefined(n[d])){if(!pa.isUndefined(t[d]))return o(void 0,t[d])}else return o(void 0,n[d])}function l(d){if(d in n)return o(t[d],n[d]);if(d in t)return o(void 0,t[d])}var c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return pa.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var h=c[f]||a,m=h(f);pa.isUndefined(m)&&h!==l||(r[f]=m)}),r},Tw,xj;function U3(){return xj||(xj=1,Tw={version:"0.24.0"}),Tw}var wte=U3().version,uA={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){uA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Cj={};uA.transitional=function(t,n,r){function o(a,i){return"[Axios v"+wte+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return function(a,i,s){if(t===!1)throw new Error(o(i," has been removed"+(n?" in "+n:"")));return n&&!Cj[i]&&(Cj[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};function Ste(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+a)}}var Dte={assertOptions:Ste,validators:uA},V3=Pa,Ete=_3,wj=ate,Sj=Cte,Yx=H3,G3=Dte,_d=G3.validators;function sv(e){this.defaults=e,this.interceptors={request:new wj,response:new wj}}sv.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Yx(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&G3.assertOptions(n,{silentJSONParsing:_d.transitional(_d.boolean),forcedJSONParsing:_d.transitional(_d.boolean),clarifyTimeoutError:_d.transitional(_d.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(o=o&&h.synchronous,r.unshift(h.fulfilled,h.rejected))});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});var i;if(!o){var s=[Sj,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),i=Promise.resolve(t);s.length;)i=i.then(s.shift(),s.shift());return i}for(var l=t;r.length;){var c=r.shift(),d=r.shift();try{l=c(l)}catch(f){d(f);break}}try{i=Sj(l)}catch(f){return Promise.reject(f)}for(;a.length;)i=i.then(a.shift(),a.shift());return i};sv.prototype.getUri=function(t){return t=Yx(this.defaults,t),Ete(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};V3.forEach(["delete","get","head","options"],function(t){sv.prototype[t]=function(n,r){return this.request(Yx(r||{},{method:t,url:n,data:(r||{}).data}))}});V3.forEach(["post","put","patch"],function(t){sv.prototype[t]=function(n,r,o){return this.request(Yx(o||{},{method:t,url:n,data:r}))}});var Ite=sv,Aw,Dj;function Tte(){if(Dj)return Aw;Dj=1;var e=Vx();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var o=this;this.promise.then(function(a){if(o._listeners){var i,s=o._listeners.length;for(i=0;i<s;i++)o._listeners[i](a);o._listeners=null}}),this.promise.then=function(a){var i,s=new Promise(function(l){o.subscribe(l),i=l}).then(a);return s.cancel=function(){o.unsubscribe(i)},s},n(function(i){o.reason||(o.reason=new e(i),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(i){r=i});return{token:o,cancel:r}},Aw=t,Aw}var Ow,Ej;function Ate(){return Ej||(Ej=1,Ow=function(t){return function(r){return t.apply(null,r)}}),Ow}var Bw,Ij;function Ote(){return Ij||(Ij=1,Bw=function(t){return typeof t=="object"&&t.isAxiosError===!0}),Bw}var Tj=Pa,Bte=L3,l0=Ite,kte=H3,Pte=Gx();function Y3(e){var t=new l0(e),n=Bte(l0.prototype.request,t);return Tj.extend(n,l0.prototype,t),Tj.extend(n,t),n.create=function(o){return Y3(kte(e,o))},n}var Bs=Y3(Pte);Bs.Axios=l0;Bs.Cancel=Vx();Bs.CancelToken=Tte();Bs.isCancel=z3();Bs.VERSION=U3().version;Bs.all=function(t){return Promise.all(t)};Bs.spread=Ate();Bs.isAxiosError=Ote();sA.exports=Bs;sA.exports.default=Bs;var Rte=sA.exports,jte=Rte;const Z0=jr(jte);var Nte=Error,Lte=EvalError,$te=RangeError,Mte=ReferenceError,K3=SyntaxError,lv=TypeError,_te=URIError,Fte=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,n);if(i.value!==o||i.enumerable!==!0)return!1}return!0},Aj=typeof Symbol<"u"&&Symbol,Wte=Fte,zte=function(){return typeof Aj!="function"||typeof Symbol!="function"||typeof Aj("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Wte()},kw={__proto__:null,foo:{}},Hte=Object,Ute=function(){return{__proto__:kw}.foo===kw.foo&&!(kw instanceof Hte)},Vte="Function.prototype.bind called on incompatible ",Gte=Object.prototype.toString,Yte=Math.max,Kte="[object Function]",Oj=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var a=0;a<n.length;a+=1)r[a+t.length]=n[a];return r},qte=function(t,n){for(var r=[],o=n||0,a=0;o<t.length;o+=1,a+=1)r[a]=t[o];return r},Xte=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Qte=function(t){var n=this;if(typeof n!="function"||Gte.apply(n)!==Kte)throw new TypeError(Vte+n);for(var r=qte(arguments,1),o,a=function(){if(this instanceof o){var d=n.apply(this,Oj(r,arguments));return Object(d)===d?d:this}return n.apply(t,Oj(r,arguments))},i=Yte(0,n.length-r.length),s=[],l=0;l<i;l++)s[l]="$"+l;if(o=Function("binder","return function ("+Xte(s,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},Zte=Qte,dA=Function.prototype.bind||Zte,Jte=Function.prototype.call,ene=Object.prototype.hasOwnProperty,tne=dA,nne=tne.call(Jte,ene),en,rne=Nte,one=Lte,ane=$te,ine=Mte,th=K3,Af=lv,sne=_te,q3=Function,Pw=function(e){try{return q3('"use strict"; return ('+e+").constructor;")()}catch{}},Fu=Object.getOwnPropertyDescriptor;if(Fu)try{Fu({},"")}catch{Fu=null}var Rw=function(){throw new Af},lne=Fu?function(){try{return arguments.callee,Rw}catch{try{return Fu(arguments,"callee").get}catch{return Rw}}}():Rw,Fd=zte(),cne=Ute(),Qr=Object.getPrototypeOf||(cne?function(e){return e.__proto__}:null),cf={},une=typeof Uint8Array>"u"||!Qr?en:Qr(Uint8Array),Wu={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?en:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?en:ArrayBuffer,"%ArrayIteratorPrototype%":Fd&&Qr?Qr([][Symbol.iterator]()):en,"%AsyncFromSyncIteratorPrototype%":en,"%AsyncFunction%":cf,"%AsyncGenerator%":cf,"%AsyncGeneratorFunction%":cf,"%AsyncIteratorPrototype%":cf,"%Atomics%":typeof Atomics>"u"?en:Atomics,"%BigInt%":typeof BigInt>"u"?en:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?en:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?en:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?en:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rne,"%eval%":eval,"%EvalError%":one,"%Float32Array%":typeof Float32Array>"u"?en:Float32Array,"%Float64Array%":typeof Float64Array>"u"?en:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?en:FinalizationRegistry,"%Function%":q3,"%GeneratorFunction%":cf,"%Int8Array%":typeof Int8Array>"u"?en:Int8Array,"%Int16Array%":typeof Int16Array>"u"?en:Int16Array,"%Int32Array%":typeof Int32Array>"u"?en:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fd&&Qr?Qr(Qr([][Symbol.iterator]())):en,"%JSON%":typeof JSON=="object"?JSON:en,"%Map%":typeof Map>"u"?en:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fd||!Qr?en:Qr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?en:Promise,"%Proxy%":typeof Proxy>"u"?en:Proxy,"%RangeError%":ane,"%ReferenceError%":ine,"%Reflect%":typeof Reflect>"u"?en:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?en:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fd||!Qr?en:Qr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?en:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fd&&Qr?Qr(""[Symbol.iterator]()):en,"%Symbol%":Fd?Symbol:en,"%SyntaxError%":th,"%ThrowTypeError%":lne,"%TypedArray%":une,"%TypeError%":Af,"%Uint8Array%":typeof Uint8Array>"u"?en:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?en:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?en:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?en:Uint32Array,"%URIError%":sne,"%WeakMap%":typeof WeakMap>"u"?en:WeakMap,"%WeakRef%":typeof WeakRef>"u"?en:WeakRef,"%WeakSet%":typeof WeakSet>"u"?en:WeakSet};if(Qr)try{null.error}catch(e){var dne=Qr(Qr(e));Wu["%Error.prototype%"]=dne}var fne=function e(t){var n;if(t==="%AsyncFunction%")n=Pw("async function () {}");else if(t==="%GeneratorFunction%")n=Pw("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Pw("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Qr&&(n=Qr(o.prototype))}return Wu[t]=n,n},Bj={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},cv=dA,J0=nne,hne=cv.call(Function.call,Array.prototype.concat),mne=cv.call(Function.apply,Array.prototype.splice),kj=cv.call(Function.call,String.prototype.replace),ey=cv.call(Function.call,String.prototype.slice),pne=cv.call(Function.call,RegExp.prototype.exec),gne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vne=/\\(\\)?/g,bne=function(t){var n=ey(t,0,1),r=ey(t,-1);if(n==="%"&&r!=="%")throw new th("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new th("invalid intrinsic syntax, expected opening `%`");var o=[];return kj(t,gne,function(a,i,s,l){o[o.length]=s?kj(l,vne,"$1"):i||a}),o},yne=function(t,n){var r=t,o;if(J0(Bj,r)&&(o=Bj[r],r="%"+o[0]+"%"),J0(Wu,r)){var a=Wu[r];if(a===cf&&(a=fne(r)),typeof a>"u"&&!n)throw new Af("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:a}}throw new th("intrinsic "+t+" does not exist!")},Nh=function(t,n){if(typeof t!="string"||t.length===0)throw new Af("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Af('"allowMissing" argument must be a boolean');if(pne(/^%?[^%]*%?$/,t)===null)throw new th("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=bne(t),o=r.length>0?r[0]:"",a=yne("%"+o+"%",n),i=a.name,s=a.value,l=!1,c=a.alias;c&&(o=c[0],mne(r,hne([0,1],c)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=ey(h,0,1),g=ey(h,-1);if((m==='"'||m==="'"||m==="`"||g==='"'||g==="'"||g==="`")&&m!==g)throw new th("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(l=!0),o+="."+h,i="%"+o+"%",J0(Wu,i))s=Wu[i];else if(s!=null){if(!(h in s)){if(!n)throw new Af("base intrinsic for "+t+" exists, but the property is not available.");return}if(Fu&&d+1>=r.length){var p=Fu(s,h);f=!!p,f&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[h]}else f=J0(s,h),s=s[h];f&&!l&&(Wu[i]=s)}}return s},X3={exports:{}},jw,Pj;function fA(){if(Pj)return jw;Pj=1;var e=Nh,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return jw=t,jw}var xne=Nh,c0=xne("%Object.getOwnPropertyDescriptor%",!0);if(c0)try{c0([],"length")}catch{c0=null}var Q3=c0,Rj=fA(),Cne=K3,Wd=lv,jj=Q3,wne=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Wd("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Wd("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Wd("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Wd("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Wd("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Wd("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!jj&&jj(t,n);if(Rj)Rj(t,n,{configurable:i===null&&l?l.configurable:!i,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:a===null&&l?l.writable:!a});else if(s||!o&&!a&&!i)t[n]=r;else throw new Cne("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},VD=fA(),Z3=function(){return!!VD};Z3.hasArrayLengthDefineBug=function(){if(!VD)return null;try{return VD([],"length",{value:1}).length!==1}catch{return!0}};var Sne=Z3,Dne=Nh,Nj=wne,Ene=Sne(),Lj=Q3,$j=lv,Ine=Dne("%Math.floor%"),Tne=function(t,n){if(typeof t!="function")throw new $j("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Ine(n)!==n)throw new $j("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Lj){var i=Lj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!r)&&(Ene?Nj(t,"length",n,!0,!0):Nj(t,"length",n)),t};(function(e){var t=dA,n=Nh,r=Tne,o=lv,a=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(i,a),l=fA(),c=n("%Math.max%");e.exports=function(h){if(typeof h!="function")throw new o("a function is required");var m=s(t,i,arguments);return r(m,1+c(0,h.length-(arguments.length-1)),!0)};var d=function(){return s(t,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d})(X3);var Ane=X3.exports,J3=Nh,e5=Ane,One=e5(J3("String.prototype.indexOf")),Bne=function(t,n){var r=J3(t,!!n);return typeof r=="function"&&One(t,".prototype.")>-1?e5(r):r};const kne={},Pne=Object.freeze(Object.defineProperty({__proto__:null,default:kne},Symbol.toStringTag,{value:"Module"})),Rne=z4(Pne);var hA=typeof Map=="function"&&Map.prototype,Nw=Object.getOwnPropertyDescriptor&&hA?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ty=hA&&Nw&&typeof Nw.get=="function"?Nw.get:null,Mj=hA&&Map.prototype.forEach,mA=typeof Set=="function"&&Set.prototype,Lw=Object.getOwnPropertyDescriptor&&mA?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ny=mA&&Lw&&typeof Lw.get=="function"?Lw.get:null,_j=mA&&Set.prototype.forEach,jne=typeof WeakMap=="function"&&WeakMap.prototype,Pp=jne?WeakMap.prototype.has:null,Nne=typeof WeakSet=="function"&&WeakSet.prototype,Rp=Nne?WeakSet.prototype.has:null,Lne=typeof WeakRef=="function"&&WeakRef.prototype,Fj=Lne?WeakRef.prototype.deref:null,$ne=Boolean.prototype.valueOf,Mne=Object.prototype.toString,_ne=Function.prototype.toString,Fne=String.prototype.match,pA=String.prototype.slice,cc=String.prototype.replace,Wne=String.prototype.toUpperCase,Wj=String.prototype.toLowerCase,t5=RegExp.prototype.test,zj=Array.prototype.concat,cs=Array.prototype.join,zne=Array.prototype.slice,Hj=Math.floor,GD=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$w=Object.getOwnPropertySymbols,YD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nh=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Co=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nh||!0)?Symbol.toStringTag:null,n5=Object.prototype.propertyIsEnumerable,Uj=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Vj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||t5.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Hj(-e):Hj(e);if(r!==e){var o=String(r),a=pA.call(t,o.length+1);return cc.call(o,n,"$&_")+"."+cc.call(cc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cc.call(t,n,"$&_")}var KD=Rne,Gj=KD.custom,Yj=o5(Gj)?Gj:null,Hne=function e(t,n,r,o){var a=n||{};if(ec(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ec(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=ec(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ec(a,"indent")&&a.indent!==null&&a.indent!=="	"&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ec(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return i5(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Vj(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?Vj(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return qD(t)?"[Array]":"[Object]";var f=sre(a,r);if(typeof o>"u")o=[];else if(a5(o,t)>=0)return"[Circular]";function h(V,z,Y){if(z&&(o=zne.call(o),o.push(z)),Y){var te={depth:a.depth};return ec(a,"quoteStyle")&&(te.quoteStyle=a.quoteStyle),e(V,te,r+1,o)}return e(V,a,r+1,o)}if(typeof t=="function"&&!Kj(t)){var m=Zne(t),g=ob(t,h);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+cs.call(g,", ")+" }":"")}if(o5(t)){var p=nh?cc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):YD.call(t);return typeof t=="object"&&!nh?Km(p):p}if(ore(t)){for(var v="<"+Wj.call(String(t.nodeName)),b=t.attributes||[],y=0;y<b.length;y++)v+=" "+b[y].name+"="+r5(Une(b[y].value),"double",a);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+Wj.call(String(t.nodeName))+">",v}if(qD(t)){if(t.length===0)return"[]";var C=ob(t,h);return f&&!ire(C)?"["+XD(C,f)+"]":"[ "+cs.call(C,", ")+" ]"}if(Gne(t)){var D=ob(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!n5.call(t,"cause")?"{ ["+String(t)+"] "+cs.call(zj.call("[cause]: "+h(t.cause),D),", ")+" }":D.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+cs.call(D,", ")+" }"}if(typeof t=="object"&&i){if(Yj&&typeof t[Yj]=="function"&&KD)return KD(t,{depth:d-r});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Jne(t)){var A=[];return Mj&&Mj.call(t,function(V,z){A.push(h(z,t,!0)+" => "+h(V,t))}),qj("Map",ty.call(t),A,f)}if(nre(t)){var T=[];return _j&&_j.call(t,function(V){T.push(h(V,t))}),qj("Set",ny.call(t),T,f)}if(ere(t))return Mw("WeakMap");if(rre(t))return Mw("WeakSet");if(tre(t))return Mw("WeakRef");if(Kne(t))return Km(h(Number(t)));if(Xne(t))return Km(h(GD.call(t)));if(qne(t))return Km($ne.call(t));if(Yne(t))return Km(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===yr)return"{ [object globalThis] }";if(!Vne(t)&&!Kj(t)){var B=ob(t,h),j=Uj?Uj(t)===Object.prototype:t instanceof Object||t.constructor===Object,R=t instanceof Object?"":"null prototype",N=!j&&Co&&Object(t)===t&&Co in t?pA.call(zc(t),8,-1):R?"Object":"",_=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=_+(N||R?"["+cs.call(zj.call([],N||[],R||[]),": ")+"] ":"");return B.length===0?U+"{}":f?U+"{"+XD(B,f)+"}":U+"{ "+cs.call(B,", ")+" }"}return String(t)};function r5(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Une(e){return cc.call(String(e),/"/g,"&quot;")}function qD(e){return zc(e)==="[object Array]"&&(!Co||!(typeof e=="object"&&Co in e))}function Vne(e){return zc(e)==="[object Date]"&&(!Co||!(typeof e=="object"&&Co in e))}function Kj(e){return zc(e)==="[object RegExp]"&&(!Co||!(typeof e=="object"&&Co in e))}function Gne(e){return zc(e)==="[object Error]"&&(!Co||!(typeof e=="object"&&Co in e))}function Yne(e){return zc(e)==="[object String]"&&(!Co||!(typeof e=="object"&&Co in e))}function Kne(e){return zc(e)==="[object Number]"&&(!Co||!(typeof e=="object"&&Co in e))}function qne(e){return zc(e)==="[object Boolean]"&&(!Co||!(typeof e=="object"&&Co in e))}function o5(e){if(nh)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!YD)return!1;try{return YD.call(e),!0}catch{}return!1}function Xne(e){if(!e||typeof e!="object"||!GD)return!1;try{return GD.call(e),!0}catch{}return!1}var Qne=Object.prototype.hasOwnProperty||function(e){return e in this};function ec(e,t){return Qne.call(e,t)}function zc(e){return Mne.call(e)}function Zne(e){if(e.name)return e.name;var t=Fne.call(_ne.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function a5(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Jne(e){if(!ty||!e||typeof e!="object")return!1;try{ty.call(e);try{ny.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ere(e){if(!Pp||!e||typeof e!="object")return!1;try{Pp.call(e,Pp);try{Rp.call(e,Rp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function tre(e){if(!Fj||!e||typeof e!="object")return!1;try{return Fj.call(e),!0}catch{}return!1}function nre(e){if(!ny||!e||typeof e!="object")return!1;try{ny.call(e);try{ty.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function rre(e){if(!Rp||!e||typeof e!="object")return!1;try{Rp.call(e,Rp);try{Pp.call(e,Pp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ore(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function i5(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return i5(pA.call(e,0,t.maxStringLength),t)+r}var o=cc.call(cc.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,are);return r5(o,"single",t)}function are(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Wne.call(t.toString(16))}function Km(e){return"Object("+e+")"}function Mw(e){return e+" { ? }"}function qj(e,t,n,r){var o=r?XD(n,r):cs.call(n,", ");return e+" ("+t+") {"+o+"}"}function ire(e){for(var t=0;t<e.length;t++)if(a5(e[t],`
`)>=0)return!1;return!0}function sre(e,t){var n;if(e.indent==="	")n="	";else if(typeof e.indent=="number"&&e.indent>0)n=cs.call(Array(e.indent+1)," ");else return null;return{base:n,prev:cs.call(Array(t+1),n)}}function XD(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+cs.call(e,","+n)+`
`+t.prev}function ob(e,t){var n=qD(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=ec(e,o)?t(e[o],e):""}var a=typeof $w=="function"?$w(e):[],i;if(nh){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)ec(e,l)&&(n&&String(Number(l))===l&&l<e.length||nh&&i["$"+l]instanceof Symbol||(t5.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof $w=="function")for(var c=0;c<a.length;c++)n5.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var s5=Nh,Lh=Bne,lre=Hne,cre=lv,ab=s5("%WeakMap%",!0),ib=s5("%Map%",!0),ure=Lh("WeakMap.prototype.get",!0),dre=Lh("WeakMap.prototype.set",!0),fre=Lh("WeakMap.prototype.has",!0),hre=Lh("Map.prototype.get",!0),mre=Lh("Map.prototype.set",!0),pre=Lh("Map.prototype.has",!0),gA=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},gre=function(e,t){var n=gA(e,t);return n&&n.value},vre=function(e,t,n){var r=gA(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},bre=function(e,t){return!!gA(e,t)},yre=function(){var t,n,r,o={assert:function(a){if(!o.has(a))throw new cre("Side channel does not contain "+lre(a))},get:function(a){if(ab&&a&&(typeof a=="object"||typeof a=="function")){if(t)return ure(t,a)}else if(ib){if(n)return hre(n,a)}else if(r)return gre(r,a)},has:function(a){if(ab&&a&&(typeof a=="object"||typeof a=="function")){if(t)return fre(t,a)}else if(ib){if(n)return pre(n,a)}else if(r)return bre(r,a);return!1},set:function(a,i){ab&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ab),dre(t,a,i)):ib?(n||(n=new ib),mre(n,a,i)):(r||(r={key:{},next:null}),vre(r,a,i))}};return o},xre=String.prototype.replace,Cre=/%20/g,_w={RFC1738:"RFC1738",RFC3986:"RFC3986"},vA={default:_w.RFC3986,formatters:{RFC1738:function(e){return xre.call(e,Cre,"+")},RFC3986:function(e){return String(e)}},RFC1738:_w.RFC1738,RFC3986:_w.RFC3986},wre=vA,Fw=Object.prototype.hasOwnProperty,Eu=Array.isArray,es=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Sre=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Eu(r)){for(var o=[],a=0;a<r.length;++a)typeof r[a]<"u"&&o.push(r[a]);n.obj[n.prop]=o}}},l5=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},Dre=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Eu(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Fw.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Eu(t)&&!Eu(n)&&(o=l5(t,r)),Eu(t)&&Eu(n)?(n.forEach(function(a,i){if(Fw.call(t,i)){var s=t[i];s&&typeof s=="object"&&a&&typeof a=="object"?t[i]=e(s,a,r):t.push(a)}else t[i]=a}),t):Object.keys(n).reduce(function(a,i){var s=n[i];return Fw.call(a,i)?a[i]=e(a[i],s,r):a[i]=s,a},o)},Ere=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Ire=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Ww=1024,Tre=function(t,n,r,o,a){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var s="",l=0;l<i.length;l+=Ww){for(var c=i.length>=Ww?i.slice(l,l+Ww):i,d=[],f=0;f<c.length;++f){var h=c.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===wre.RFC1738&&(h===40||h===41)){d[d.length]=c.charAt(f);continue}if(h<128){d[d.length]=es[h];continue}if(h<2048){d[d.length]=es[192|h>>6]+es[128|h&63];continue}if(h<55296||h>=57344){d[d.length]=es[224|h>>12]+es[128|h>>6&63]+es[128|h&63];continue}f+=1,h=65536+((h&1023)<<10|c.charCodeAt(f)&1023),d[d.length]=es[240|h>>18]+es[128|h>>12&63]+es[128|h>>6&63]+es[128|h&63]}s+=d.join("")}return s},Are=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var a=n[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],d=i[c];typeof d=="object"&&d!==null&&r.indexOf(d)===-1&&(n.push({obj:i,prop:c}),r.push(d))}return Sre(n),t},Ore=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Bre=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},kre=function(t,n){return[].concat(t,n)},Pre=function(t,n){if(Eu(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},c5={arrayToObject:l5,assign:Ere,combine:kre,compact:Are,decode:Ire,encode:Tre,isBuffer:Bre,isRegExp:Ore,maybeMap:Pre,merge:Dre},u5=yre,u0=c5,jp=vA,Rre=Object.prototype.hasOwnProperty,d5={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},ls=Array.isArray,jre=Array.prototype.push,f5=function(e,t){jre.apply(e,ls(t)?t:[t])},Nre=Date.prototype.toISOString,Xj=jp.default,_r={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:u0.encode,encodeValuesOnly:!1,format:Xj,formatter:jp.formatters[Xj],indices:!1,serializeDate:function(t){return Nre.call(t)},skipNulls:!1,strictNullHandling:!1},Lre=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},zw={},$re=function e(t,n,r,o,a,i,s,l,c,d,f,h,m,g,p,v,b,y){for(var C=t,D=y,A=0,T=!1;(D=D.get(zw))!==void 0&&!T;){var B=D.get(t);if(A+=1,typeof B<"u"){if(B===A)throw new RangeError("Cyclic object value");T=!0}typeof D.get(zw)>"u"&&(A=0)}if(typeof d=="function"?C=d(n,C):C instanceof Date?C=m(C):r==="comma"&&ls(C)&&(C=u0.maybeMap(C,function(K){return K instanceof Date?m(K):K})),C===null){if(i)return c&&!v?c(n,_r.encoder,b,"key",g):n;C=""}if(Lre(C)||u0.isBuffer(C)){if(c){var j=v?n:c(n,_r.encoder,b,"key",g);return[p(j)+"="+p(c(C,_r.encoder,b,"value",g))]}return[p(n)+"="+p(String(C))]}var R=[];if(typeof C>"u")return R;var N;if(r==="comma"&&ls(C))v&&c&&(C=u0.maybeMap(C,c)),N=[{value:C.length>0?C.join(",")||null:void 0}];else if(ls(d))N=d;else{var _=Object.keys(C);N=f?_.sort(f):_}var U=l?n.replace(/\./g,"%2E"):n,V=o&&ls(C)&&C.length===1?U+"[]":U;if(a&&ls(C)&&C.length===0)return V+"[]";for(var z=0;z<N.length;++z){var Y=N[z],te=typeof Y=="object"&&typeof Y.value<"u"?Y.value:C[Y];if(!(s&&te===null)){var se=h&&l?Y.replace(/\./g,"%2E"):Y,he=ls(C)?typeof r=="function"?r(V,se):V:V+(h?"."+se:"["+se+"]");y.set(t,A);var pe=u5();pe.set(zw,y),f5(R,e(te,he,r,o,a,i,s,l,r==="comma"&&v&&ls(C)?null:c,d,f,h,m,g,p,v,b,pe))}}return R},Mre=function(t){if(!t)return _r;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||_r.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=jp.default;if(typeof t.format<"u"){if(!Rre.call(jp.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=jp.formatters[r],a=_r.filter;(typeof t.filter=="function"||ls(t.filter))&&(a=t.filter);var i;if(t.arrayFormat in d5?i=t.arrayFormat:"indices"in t?i=t.indices?"indices":"repeat":i=_r.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:_r.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:_r.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:_r.allowEmptyArrays,arrayFormat:i,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:_r.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?_r.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:_r.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:_r.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:_r.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:_r.encodeValuesOnly,filter:a,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:_r.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:_r.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:_r.strictNullHandling}},_re=function(e,t){var n=e,r=Mre(t),o,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):ls(r.filter)&&(a=r.filter,o=a);var i=[];if(typeof n!="object"||n===null)return"";var s=d5[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=u5(),d=0;d<o.length;++d){var f=o[d];r.skipNulls&&n[f]===null||f5(i,$re(n[f],f,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var h=i.join(r.delimiter),m=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""},rh=c5,QD=Object.prototype.hasOwnProperty,Fre=Array.isArray,Sr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:rh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Wre=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},h5=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},zre="utf8=%26%2310003%3B",Hre="utf8=%E2%9C%93",Ure=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=n.parameterLimit===1/0?void 0:n.parameterLimit,i=o.split(n.delimiter,a),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===Hre?c="utf-8":i[l]===zre&&(c="iso-8859-1"),s=l,l=i.length);for(l=0;l<i.length;++l)if(l!==s){var d=i[l],f=d.indexOf("]="),h=f===-1?d.indexOf("="):f+1,m,g;h===-1?(m=n.decoder(d,Sr.decoder,c,"key"),g=n.strictNullHandling?null:""):(m=n.decoder(d.slice(0,h),Sr.decoder,c,"key"),g=rh.maybeMap(h5(d.slice(h+1),n),function(v){return n.decoder(v,Sr.decoder,c,"value")})),g&&n.interpretNumericEntities&&c==="iso-8859-1"&&(g=Wre(g)),d.indexOf("[]=")>-1&&(g=Fre(g)?[g]:g);var p=QD.call(r,m);p&&n.duplicates==="combine"?r[m]=rh.combine(r[m],g):(!p||n.duplicates==="last")&&(r[m]=g)}return r},Vre=function(e,t,n,r){for(var o=r?t:h5(t,n),a=e.length-1;a>=0;--a){var i,s=e[a];if(s==="[]"&&n.parseArrays)i=n.allowEmptyArrays&&o===""?[]:[].concat(o);else{i=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,d=parseInt(c,10);!n.parseArrays&&c===""?i={0:o}:!isNaN(d)&&s!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(i=[],i[d]=o):c!=="__proto__"&&(i[c]=o)}o=i}return o},Gre=function(t,n,r,o){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&i.exec(a),c=l?a.slice(0,l.index):a,d=[];if(c){if(!r.plainObjects&&QD.call(Object.prototype,c)&&!r.allowPrototypes)return;d.push(c)}for(var f=0;r.depth>0&&(l=s.exec(a))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&QD.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+a.slice(l.index)+"]"),Vre(d,n,r,o)}},Yre=function(t){if(!t)return Sr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Sr.charset:t.charset,r=typeof t.duplicates>"u"?Sr.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Sr.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Sr.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sr.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sr.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Sr.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Sr.decoder,delimiter:typeof t.delimiter=="string"||rh.isRegExp(t.delimiter)?t.delimiter:Sr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sr.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sr.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sr.strictNullHandling}},Kre=function(e,t){var n=Yre(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Ure(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(r),i=0;i<a.length;++i){var s=a[i],l=Gre(s,r[s],n,typeof e=="string");o=rh.merge(o,l,n)}return n.allowSparse===!0?o:rh.compact(o)},qre=_re,Xre=Kre,Qre=vA,Zre={formats:Qre,parse:Xre,stringify:qre};const Oc=jr(Zre);var ZD;(function(e){e.B="B",e.KB="KB",e.MB="MB",e.GB="GB",e.TB="TB"})(ZD||(ZD={}));function m5(e){const t=Math.floor(Math.log(e)/Math.log(1024)),n=Object.values(ZD)[t],r=e/Math.pow(1024,t),o=Number.parseFloat(r.toFixed(2)),a=Jre(n);return{amount:o,unit:a,unitAbbr:n}}function Yft(e){const t=m5(e.numBytes);return u.jsxs(u.Fragment,{children:[t.amount,u.jsx("abbr",{title:t.unit,children:` ${t.unitAbbr}`})]})}function Jre(e){switch(e){case"B":return k("Byte");case"KB":return k("Kilobyte");case"MB":return k("Megabyte");case"GB":return k("Gigabyte");case"TB":return k("Terabyte")}}var p5={exports:{}};(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)&&a.length){var s=n.apply(null,a);s&&r.push(s)}else if(i==="object")for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(p5);var eoe=p5.exports;const ae=jr(eoe);function toe(e){return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",width:8,...e,children:[u.jsx("title",{children:"▾"}),u.jsx("polygon",{points:"0 0 10 0 5 6 0 0",fill:"currentColor"})]})}function g5(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Sc=g5()?x.useLayoutEffect:x.useEffect;function Kx(e,t){var n=x.createContext(t);return n}function noe(e){return typeof e=="boolean"}function uv(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function roe(e){return typeof e=="string"}function ry(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r!=null}).join("--")}function oy(){}function Qj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ooe(e,t){if(e){if(typeof e=="string")return Qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qj(e,t)}}function aoe(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=ooe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function ioe(e,t){if(e!=null)if(uv(e))e(t);else try{e.current=t}catch{throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function $l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useCallback(function(r){for(var o=aoe(t),a;!(a=o()).done;){var i=a.value;ioe(i,r)}},t)}function v5(e,t){var n=x.useState(t),r=n[0],o=n[1],a=x.useCallback(function(i){e.current=i,o(i)},[]);return[r,a]}function Er(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function b5(){var e=x.useState(Object.create(null)),t=e[1];return x.useCallback(function(){t(Object.create(null))},[])}function soe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function uc(){return uc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uc.apply(this,arguments)}var loe=["element","index"];function y5(e,t){t===void 0&&(t={});var n=[];return Kx(e,uc({descendants:n,registerDescendant:oy,unregisterDescendant:oy},t))}function x5(e,t,n){var r=b5(),o=x.useContext(t),a=o.registerDescendant,i=o.unregisterDescendant,s=o.descendants,l=n??s.findIndex(function(c){return c.element===e.element});return Sc(function(){return e.element||r(),a(uc({},e,{index:l})),function(){i(e.element)}},[e,r,l,a,i].concat(Object.values(e))),l}function C5(){return x.useState([])}function w5(e){return x.useContext(e).descendants}function S5(e){var t=e.context,n=e.children,r=e.items,o=e.set,a=x.useCallback(function(s){var l=s.element,c=s.index,d=soe(s,loe);l&&o(function(f){var h;if(c!=null)return[].concat(f,[uc({},d,{element:l,index:c})]).sort(function(p,v){return p.index-v.index});if(f.length===0)h=[uc({},d,{element:l,index:0})];else if(f.find(function(p){return p.element===l}))h=f;else{var m=f.findIndex(function(p){return!p.element||!l?!1:!!(p.element.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_PRECEDING)}),g=uc({},d,{element:l,index:m});m===-1?h=[].concat(f,[g]):h=[].concat(f.slice(0,m),[g],f.slice(m))}return h.map(function(p,v){return uc({},p,{index:v})})})},[]),i=x.useCallback(function(s){s&&o(function(l){return l.filter(function(c){return s!==c.element})})},[]);return x.createElement(t.Provider,{value:x.useMemo(function(){return{descendants:r,registerDescendant:a,unregisterDescendant:i}},[r,a,i])},n)}function coe(e,t){var n=x.useContext(e),r=n.descendants,o=t.callback,a=t.currentIndex,i=t.filter,s=t.key,l=s===void 0?"index":s,c=t.orientation,d=c===void 0?"vertical":c,f=t.rotate,h=f===void 0?!0:f,m=t.rtl,g=m===void 0?!1:m;return function(v){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(v.key))return;var b=a??-1,y=i?r.filter(i):r;if(!y.length)return;var C=y.findIndex(function(te){return te.index===a});function D(){var te=b===B().index;return te?h?T():y[C]:y[(C+1)%y.length]}function A(){var te=b===T().index;return te?h?B():y[C]:y[(C-1+y.length)%y.length]}function T(){return y[0]}function B(){return y[y.length-1]}switch(v.key){case"ArrowDown":if(d==="vertical"||d==="both"){v.preventDefault();var j=D();o(l==="option"?j:j[l])}break;case"ArrowUp":if(d==="vertical"||d==="both"){v.preventDefault();var R=A();o(l==="option"?R:R[l])}break;case"ArrowLeft":if(d==="horizontal"||d==="both"){v.preventDefault();var N=(g?D:A)();o(l==="option"?N:N[l])}break;case"ArrowRight":if(d==="horizontal"||d==="both"){v.preventDefault();var _=(g?A:D)();o(l==="option"?_:_[l])}break;case"PageUp":v.preventDefault();var U=(v.ctrlKey?A:T)();o(l==="option"?U:U[l]);break;case"Home":v.preventDefault();var V=T();o(l==="option"?V:V[l]);break;case"PageDown":v.preventDefault();var z=(v.ctrlKey?D:B)();o(l==="option"?z:z[l]);break;case"End":v.preventDefault();var Y=B();o(l==="option"?Y:Y[l]);break}}}var Hw=!1,uoe=0,Zj=function(){return++uoe};function D5(e){var t=e||(Hw?Zj():null),n=x.useState(t),r=n[0],o=n[1];return Sc(function(){r===null&&o(Zj())},[]),x.useEffect(function(){Hw===!1&&(Hw=!0)},[]),r!=null?String(r):void 0}var bA=function(t){var n=t.children,r=t.type,o=r===void 0?"reach-portal":r,a=t.containerRef,i=x.useRef(null),s=x.useRef(null),l=b5();return Sc(function(){if(i.current){var c=i.current.ownerDocument,d=(a==null?void 0:a.current)||c.body;return s.current=c==null?void 0:c.createElement(o),d.appendChild(s.current),l(),function(){s.current&&d&&d.removeChild(s.current)}}},[o,l,a]),s.current?Rl.createPortal(n,s.current):x.createElement("span",{ref:i})};const doe=bA;var foe=["bottom","height","left","right","top","width"],hoe=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),foe.some(function(r){return t[r]!==n[r]})},Jl=new Map,E5,moe=function e(){var t=[];Jl.forEach(function(n,r){var o=r.getBoundingClientRect();hoe(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),E5=window.requestAnimationFrame(e)};function yA(e,t){return{observe:function(){var r=Jl.size===0;Jl.has(e)?Jl.get(e).callbacks.push(t):Jl.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&moe()},unobserve:function(){var r=Jl.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||Jl.delete(e),Jl.size||cancelAnimationFrame(E5)}}}}function ag(e,t,n){var r,o;if(noe(t))r=t;else{var a;r=(a=t==null?void 0:t.observe)!=null?a:!0,o=t==null?void 0:t.onChange}uv(n)&&(o=n);var i=x.useState(e.current),s=i[0],l=i[1],c=x.useRef(!1),d=x.useRef(!1),f=x.useState(null),h=f[0],m=f[1],g=x.useRef(o);return Sc(function(){g.current=o,e.current!==s&&l(e.current)}),Sc(function(){s&&!c.current&&(c.current=!0,m(s.getBoundingClientRect()))},[s]),Sc(function(){if(r){var p=s;if(d.current||(d.current=!0,p=e.current),!!p){var v=yA(p,function(b){g.current==null||g.current(b),m(b)});return v.observe(),function(){v.unobserve()}}}},[r,s,e]),h}function oh(e){return g5()?e?e.ownerDocument:document:null}var I5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],JD=I5.join(","),xA=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function CA(e,t){t=t||{};var n=[],r=[],o=e.querySelectorAll(JD);t.includeContainer&&xA.call(e,JD)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var a,i,s;for(a=0;a<o.length;a++)i=o[a],T5(i)&&(s=O5(i),s===0?n.push(i):r.push({documentOrder:a,tabIndex:s,node:i}));var l=r.sort(boe).map(function(c){return c.node}).concat(n);return l}CA.isTabbable=poe;CA.isFocusable=voe;function T5(e){return!(!A5(e)||woe(e)||O5(e)<0)}function poe(e){if(!e)throw new Error("No node provided");return xA.call(e,JD)===!1?!1:T5(e)}function A5(e){return!(e.disabled||xoe(e)||Eoe(e))}var goe=I5.concat("iframe").join(",");function voe(e){if(!e)throw new Error("No node provided");return xA.call(e,goe)===!1?!1:A5(e)}function O5(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?yoe(e)?0:e.tabIndex:t}function boe(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function yoe(e){return e.contentEditable==="true"}function B5(e){return e.tagName==="INPUT"}function xoe(e){return B5(e)&&e.type==="hidden"}function Coe(e){return B5(e)&&e.type==="radio"}function woe(e){return Coe(e)&&!Doe(e)}function Soe(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function Doe(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=Soe(t);return!n||n===e}function Eoe(e){return e.offsetParent===null||getComputedStyle(e).visibility==="hidden"}var Ioe=CA;const Ks=jr(Ioe);function Toe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function od(){return od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},od.apply(this,arguments)}var Aoe=["as","targetRef","position","unstable_observableRefs"],Ooe=x.forwardRef(function(t,n){return x.createElement(bA,null,x.createElement(Boe,od({ref:n},t)))}),Boe=x.forwardRef(function(t,n){var r=t.as,o=r===void 0?"div":r,a=t.targetRef,i=t.position,s=i===void 0?Poe:i,l=t.unstable_observableRefs,c=l===void 0?[]:l,d=Toe(t,Aoe),f=x.useRef(null),h=ag(f,{observe:!d.hidden}),m=ag(a,{observe:!d.hidden}),g=$l(f,n);return joe(a,f),x.createElement(o,od({"data-reach-popover":"",ref:g},d,{style:od({position:"absolute"},koe.apply(void 0,[s,m,h].concat(c)),d.style)}))});function koe(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return n?e.apply(void 0,[t,n].concat(o.map(function(i){return i.current}))):{visibility:"hidden"}}function k5(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}var Poe=function(t,n){if(!t||!n)return{};var r=P5(t,n),o=r.directionRight,a=r.directionUp;return od({left:o?t.right-n.width+window.pageXOffset+"px":t.left+window.pageXOffset+"px"},k5(t,n,a))},Roe=function(t,n){if(!t||!n)return{};var r=P5(t,n),o=r.directionUp;return od({width:t.width,left:t.left},k5(t,n,o))};function P5(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},a=o.right&&!o.left,i=o.left&&!o.right,s=o.bottom&&!o.top,l=o.top&&!o.bottom;return{directionRight:a,directionLeft:i,directionUp:s,directionDown:l}}function joe(e,t){var n=oh(e.current);function r(y){y.key==="Tab"&&t.current&&Ks(t.current).length===0||(y.key==="Tab"&&y.shiftKey?c(y)?d(y):f(y)?h(y):g(y)&&v():y.key==="Tab"&&(a()?i(y):s()?l(y):m(y)&&v()))}x.useEffect(function(){return n.addEventListener("keydown",r),function(){n.removeEventListener("keydown",r)}},[]);function o(){var y=Ks(n),C=y&&e.current?y.indexOf(e.current):-1,D=y&&y[C+1];return t.current&&t.current.contains(D||null)?!1:D}function a(){return e.current?e.current===n.activeElement:!1}function i(y){var C=t.current&&Ks(t.current);C&&C[0]&&(y.preventDefault(),C[0].focus())}function s(){var y=t.current?t.current.contains(n.activeElement||null):!1;if(y){var C=t.current&&Ks(t.current);return!!(C&&C[C.length-1]===n.activeElement)}return!1}function l(y){var C=o();C&&(y.preventDefault(),C.focus())}function c(y){if(y.shiftKey){var C=o();return y.target===C}}function d(y){var C=t.current&&Ks(t.current),D=C&&C[C.length-1];D&&(y.preventDefault(),D.focus())}function f(y){var C=t.current&&Ks(t.current);return C?C.length===0?!1:y.target===C[0]:!1}function h(y){var C;y.preventDefault(),(C=e.current)==null||C.focus()}function m(y){var C=t.current?Ks(n).filter(function(D){return!t.current.contains(D)}):null;return C?y.target===C[C.length-1]:!1}function g(y){return y.target===Ks(n)[0]}var p=[];function v(){var y=t.current&&Ks(t.current);y&&(y.forEach(function(C){p.push([C,C.tabIndex]),C.tabIndex=-1}),n.addEventListener("focusin",b))}function b(){n.removeEventListener("focusin",b),p.forEach(function(y){var C=y[0],D=y[1];C.tabIndex=D})}}function dv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(this,arguments)}function Noe(e){var t=e.autoEscape,n=e.caseSensitive,r=n===void 0?!1:n,o=e.findChunks,a=o===void 0?j5:o,i=e.sanitize,s=e.searchWords,l=e.textToHighlight;return N5({chunksToHighlight:R5({chunks:a({autoEscape:t,caseSensitive:r,sanitize:i,searchWords:s,textToHighlight:l})}),totalLength:l?l.length:0})}function R5(e){var t=e.chunks;return t.sort(function(n,r){return n.start-r.start}).reduce(function(n,r){if(n.length===0)return[r];var o=n.pop();if(r.start<=o.end){var a=Math.max(o.end,r.end);n.push({highlight:!1,start:o.start,end:a})}else n.push(o,r);return n},[])}function j5(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=r===void 0?Loe:r,a=e.searchWords,i=e.textToHighlight;return i=o(i||""),a.filter(function(s){return s}).reduce(function(s,l){l=o(l),t&&(l=$oe(l));for(var c=new RegExp(l,n?"g":"gi"),d;d=c.exec(i||"");){var f=d.index,h=c.lastIndex;h>f&&s.push({highlight:!1,start:f,end:h}),d.index===c.lastIndex&&c.lastIndex++}return s},[])}function N5(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(t.length===0)a(0,n,!1);else{var o=0;t.forEach(function(i){a(o,i.start,!1),a(i.start,i.end,!0),o=i.end}),a(o,n,!1)}return r;function a(i,s,l){s-i>0&&r.push({start:i,end:s,highlight:l})}}function Loe(e){return e}function $oe(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var Moe={combineChunks:R5,fillInChunks:N5,findAll:Noe,findChunks:j5},_oe=["onSelect","openOnFocus","children","as","aria-label","aria-labelledby"],Foe=["as","selectOnClick","autocomplete","onClick","onChange","onKeyDown","onBlur","onFocus","value"],Woe=["as","children","portal","onKeyDown","onBlur","position"],zoe=["persistSelection","as"],Hoe=["as","children","index","value","onClick"],ts,ui,Wa,ns,zd,Rn="IDLE",Va="SUGGESTING",ic="NAVIGATING",Of="INTERACTING",pf="CLEAR",gf="CHANGE",wA="SIMULATED_CHANGE",ta="NAVIGATE",SA="SELECT_WITH_KEYBOARD",zu="SELECT_WITH_CLICK",Bf="ESCAPE",vf="BLUR",ay="INTERACT",bf="FOCUS",DA="OPEN_WITH_BUTTON",EA="OPEN_WITH_INPUT_CLICK",d0="CLOSE_WITH_BUTTON",Uoe={initial:Rn,states:(zd={},zd[Rn]={on:(ts={},ts[vf]=Rn,ts[pf]=Rn,ts[gf]=Va,ts[wA]=Rn,ts[bf]=Va,ts[ta]=ic,ts[DA]=Va,ts[EA]=Va,ts)},zd[Va]={on:(ui={},ui[gf]=Va,ui[bf]=Va,ui[ta]=ic,ui[pf]=Rn,ui[Bf]=Rn,ui[vf]=Rn,ui[zu]=Rn,ui[ay]=Of,ui[d0]=Rn,ui)},zd[ic]={on:(Wa={},Wa[gf]=Va,Wa[bf]=Va,Wa[pf]=Rn,Wa[vf]=Rn,Wa[Bf]=Rn,Wa[ta]=ic,Wa[zu]=Rn,Wa[SA]=Rn,Wa[d0]=Rn,Wa[ay]=Of,Wa)},zd[Of]={on:(ns={},ns[pf]=Rn,ns[gf]=Va,ns[bf]=Va,ns[vf]=Rn,ns[Bf]=Rn,ns[ta]=ic,ns[d0]=Rn,ns[zu]=Rn,ns)},zd)},Voe=function(t,n){var r=Jr({},t,{lastEventType:n.type});switch(n.type){case gf:case wA:return Jr({},r,{navigationValue:null,value:n.value});case ta:case DA:case EA:return Jr({},r,{navigationValue:eN(r,n)});case pf:return Jr({},r,{value:"",navigationValue:null});case vf:case Bf:return Jr({},r,{navigationValue:null});case zu:return Jr({},r,{value:n.value,navigationValue:null});case SA:return Jr({},r,{value:t.navigationValue,navigationValue:null});case d0:return Jr({},r,{navigationValue:null});case ay:return r;case bf:return Jr({},r,{navigationValue:eN(r,n)});default:return r}};function Jj(e){return[Va,ic,Of].includes(e)}function eN(e,t){return t.value?t.value:t.persistSelection?e.value:null}var IA=y5("ComboboxDescendantContext"),Ml=Kx("ComboboxContext",{}),L5=Kx("OptionContext",{}),Goe=x.forwardRef(function(t,n){var r,o=t.onSelect,a=t.openOnFocus,i=a===void 0?!1:a,s=t.children,l=t.as,c=l===void 0?"div":l,d=t["aria-label"],f=t["aria-labelledby"],h=dv(t,_oe),m=C5(),g=m[0],p=m[1],v=x.useRef(),b=x.useRef(),y=x.useRef(),C=x.useRef(!1),D=x.useRef(!1),A={value:"",navigationValue:null},T=Zoe(Uoe,Voe,A),B=T[0],j=T[1],R=T[2];Qoe(j.lastEventType,v);var N=D5(h.id),_=N?ry("listbox",N):"listbox",U={ariaLabel:d,ariaLabelledby:f,autocompletePropRef:C,buttonRef:y,comboboxId:N,data:j,inputRef:v,isExpanded:Jj(B),listboxId:_,onSelect:o||oy,openOnFocus:i,persistSelectionRef:D,popoverRef:b,state:B,transition:R};return x.createElement(S5,{context:IA,items:g,set:p},x.createElement(Ml.Provider,{value:U},x.createElement(c,Jr({},h,{"data-reach-combobox":"","data-state":TA(B),ref:n}),uv(s)?s({id:N,isExpanded:Jj(B),navigationValue:(r=j.navigationValue)!=null?r:null,state:B}):s)))}),Yoe=x.forwardRef(function(t,n){var r=t.as,o=r===void 0?"input":r,a=t.selectOnClick,i=a===void 0?!1:a,s=t.autocomplete,l=s===void 0?!0:s,c=t.onClick,d=t.onChange,f=t.onKeyDown,h=t.onBlur,m=t.onFocus,g=t.value,p=dv(t,Foe),v=x.useRef(!1),b=x.useContext(Ml),y=b.data,C=y.navigationValue,D=y.value,A=y.lastEventType,T=b.inputRef,B=b.state,j=b.transition,R=b.listboxId,N=b.autocompletePropRef,_=b.openOnFocus,U=b.isExpanded,V=b.ariaLabel,z=b.ariaLabelledby,Y=b.persistSelectionRef,te=$l(T,n),se=x.useRef(!1),he=M5(),pe=_5(),K=g!=null;Sc(function(){N.current=l},[l,N]);var O=x.useCallback(function(oe){oe.trim()===""?j(pf):v.current?j(gf,{value:oe}):j(wA,{value:oe})},[j]);x.useEffect(function(){K&&g!==D&&(g.trim()!==""||(D||"").trim()!=="")&&O(g),v.current=!1},[g,O,K,D]);function le(oe){var ve=oe.target.value;v.current=!0,K||O(ve)}function be(){i&&(se.current=!0),_&&A!==zu&&j(bf,{persistSelection:Y.current})}function H(){if(se.current){var oe;se.current=!1,(oe=T.current)==null||oe.select()}_&&B===Rn&&j(EA)}var ie=l&&(B===ic||B===Of)?C||g||D:g||D;return x.createElement(o,Jr({"aria-activedescendant":C?String(F5(C)):void 0,"aria-autocomplete":"both","aria-controls":R,"aria-expanded":U,"aria-haspopup":"listbox","aria-label":V,"aria-labelledby":V?void 0:z,role:"combobox"},p,{"data-reach-combobox-input":"","data-state":TA(B),ref:te,onBlur:Er(h,pe),onChange:Er(d,le),onClick:Er(c,H),onFocus:Er(m,be),onKeyDown:Er(f,he),value:ie||""}))}),Koe=x.forwardRef(function(t,n){var r=t.as,o=r===void 0?"div":r,a=t.children,i=t.portal,s=i===void 0?!0:i,l=t.onKeyDown,c=t.onBlur,d=t.position,f=d===void 0?Roe:d,h=dv(t,Woe),m=x.useContext(Ml),g=m.popoverRef,p=m.inputRef,v=m.isExpanded,b=m.state,y=$l(g,n),C=M5(),D=_5(),A={"data-reach-combobox-popover":"","data-state":TA(b),onKeyDown:Er(l,C),onBlur:Er(c,D),hidden:!v,tabIndex:-1,children:a};return s?x.createElement(Ooe,Jr({as:o},h,{ref:y,position:f,targetRef:p},A)):x.createElement(o,Jr({ref:y},h,A))}),qoe=x.forwardRef(function(t,n){var r=t.persistSelection,o=r===void 0?!1:r,a=t.as,i=a===void 0?"ul":a,s=dv(t,zoe),l=x.useContext(Ml),c=l.persistSelectionRef,d=l.listboxId;return o&&(c.current=!0),x.createElement(i,Jr({role:"listbox"},s,{ref:n,"data-reach-combobox-list":"",id:d}))}),Xoe=x.forwardRef(function(t,n){var r=t.as,o=r===void 0?"li":r,a=t.children,i=t.index,s=t.value,l=t.onClick,c=dv(t,Hoe),d=x.useContext(Ml),f=d.onSelect,h=d.data.navigationValue,m=d.transition,g=x.useRef(null),p=v5(g,null),v=p[0],b=p[1],y=x.useMemo(function(){return{element:v,value:s}},[s,v]),C=x5(y,IA,i),D=$l(n,b),A=h===s,T=function(){f&&f(s),m(zu,{value:s})};return x.createElement(L5.Provider,{value:{value:s,index:C}},x.createElement(o,Jr({"aria-selected":A,role:"option"},c,{"data-reach-combobox-option":"",ref:D,id:String(F5(s)),"data-highlighted":A?"":void 0,tabIndex:-1,onClick:Er(l,T)}),a?uv(a)?a({value:s,index:C}):a:x.createElement($5,null)))});function $5(){var e=x.useContext(L5),t=e.value,n=x.useContext(Ml),r=n.data.value,o=x.useMemo(function(){return Moe.findAll({searchWords:Joe(r||"").split(/\s+/),textToHighlight:t})},[r,t]);return x.createElement(x.Fragment,null,o.length?o.map(function(a,i){var s=t.slice(a.start,a.end);return x.createElement("span",{key:i,"data-reach-combobox-option-text":"","data-user-value":a.highlight?!0:void 0,"data-suggested-value":a.highlight?void 0:!0},s)}):t)}function Qoe(e,t){Sc(function(){if(e===ta||e===Bf||e===zu||e===DA){var n;(n=t.current)==null||n.focus()}},[t,e])}function M5(){var e=x.useContext(Ml),t=e.data.navigationValue,n=e.onSelect,r=e.state,o=e.transition,a=e.autocompletePropRef,i=e.persistSelectionRef,s=w5(IA);return function(c){var d=s.findIndex(function(b){var y=b.value;return y===t});function f(){var b=d===s.length-1;return b?a.current?null:m():s[(d+1)%s.length]}function h(){var b=d===0;return b?a.current?null:g():d===-1?g():s[(d-1+s.length)%s.length]}function m(){return s[0]}function g(){return s[s.length-1]}switch(c.key){case"ArrowDown":if(c.preventDefault(),!s||!s.length)return;if(r===Rn)o(ta,{persistSelection:i.current});else{var p=f();o(ta,{value:p?p.value:null})}break;case"ArrowUp":if(c.preventDefault(),!s||s.length===0)return;if(r===Rn)o(ta);else{var v=h();o(ta,{value:v?v.value:null})}break;case"Home":case"PageUp":if(c.preventDefault(),!s||s.length===0)return;r===Rn?o(ta):o(ta,{value:m().value});break;case"End":case"PageDown":if(c.preventDefault(),!s||s.length===0)return;r===Rn?o(ta):o(ta,{value:g().value});break;case"Escape":r!==Rn&&o(Bf);break;case"Enter":r===ic&&t!==null&&(c.preventDefault(),n&&n(t),o(SA));break}}}function _5(){var e=x.useContext(Ml),t=e.state,n=e.transition,r=e.popoverRef,o=e.inputRef,a=e.buttonRef;return function(s){var l=r.current,c=o.current,d=a.current,f=s.relatedTarget;f!==c&&f!==d&&l&&(l.contains(f)?t!==Of&&n(ay):n(vf))}}function Zoe(e,t,n){var r=x.useState(e.initial),o=r[0],a=r[1],i=x.useReducer(t,n),s=i[0],l=i[1],c=function(f,h){h===void 0&&(h={});var m=e.states[o],g=m&&m.on[f];if(g){l(Jr({type:f,state:o,nextState:o},h)),a(g);return}};return[o,s,c]}function F5(e){var t=0;if(e.length===0)return t;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return t}function TA(e){return e.toLowerCase()}function Joe(e){return String(e).replace(/([.*+?=^!:${}()|[\]/\\])/g,"\\$1")}function eae(){var e=x.useContext(Ml),t=e.isExpanded,n=e.comboboxId,r=e.data,o=e.state,a=r.navigationValue;return x.useMemo(function(){return{id:n,isExpanded:t,navigationValue:a??null,state:o}},[n,t,a,o])}var f0=W5()?x.useLayoutEffect:x.useEffect;function tae(e,t){if(e!=null)if(H5(e))e(t);else try{e.current=t}catch{throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function W5(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function z5(e){return x.forwardRef(e)}function nae(e){return W5()?e?e.ownerDocument:document:null}function rae(e){return typeof e=="boolean"}function H5(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function oae(){var e=x.useState(Object.create(null)),t=e[1];return x.useCallback(function(){t(Object.create(null))},[])}function aae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(function(){return t.every(function(r){return r==null})?null:function(r){t.forEach(function(o){tae(o,r)})}},[].concat(t))}var iae=function(t){var n=t.children,r=t.type,o=r===void 0?"reach-portal":r,a=x.useRef(null),i=x.useRef(null),s=oae();return f0(function(){if(a.current){var l=a.current.ownerDocument;return i.current=l==null?void 0:l.createElement(o),l.body.appendChild(i.current),s(),function(){i.current&&i.current.ownerDocument&&i.current.ownerDocument.body.removeChild(i.current)}}},[o,s]),i.current?Rl.createPortal(n,i.current):x.createElement("span",{ref:a})};function tN(e,t,n){var r,o;if(rae(t))r=t;else{var a;r=(a=t==null?void 0:t.observe)!=null?a:!0,o=t==null?void 0:t.onChange}H5(n)&&(o=n);var i=x.useState(e.current),s=i[0],l=i[1],c=x.useRef(!1),d=x.useRef(!1),f=x.useState(null),h=f[0],m=f[1],g=x.useRef(o),p=x.useCallback(function(v){g.current&&g.current(v)},[]);return f0(function(){g.current=o,e.current!==s&&l(e.current)}),f0(function(){s&&!c.current&&(c.current=!0,m(s.getBoundingClientRect()))},[s]),f0(function(){var v,b=s;if(d.current||(d.current=!0,b=e.current),!b)return y;return v=yA(b,function(C){p(C),m(C)}),r&&v.observe(),y;function y(){v&&v.unobserve()}},[r,s,e,p]),h}var U5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],eE=U5.join(","),AA=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function OA(e,t){t=t||{};var n=[],r=[],o=e.querySelectorAll(eE);t.includeContainer&&AA.call(e,eE)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var a,i,s;for(a=0;a<o.length;a++)i=o[a],V5(i)&&(s=Y5(i),s===0?n.push(i):r.push({documentOrder:a,tabIndex:s,node:i}));var l=r.sort(uae).map(function(c){return c.node}).concat(n);return l}OA.isTabbable=sae;OA.isFocusable=cae;function V5(e){return!(!G5(e)||mae(e)||Y5(e)<0)}function sae(e){if(!e)throw new Error("No node provided");return AA.call(e,eE)===!1?!1:V5(e)}function G5(e){return!(e.disabled||fae(e)||vae(e))}var lae=U5.concat("iframe").join(",");function cae(e){if(!e)throw new Error("No node provided");return AA.call(e,lae)===!1?!1:G5(e)}function Y5(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?dae(e)?0:e.tabIndex:t}function uae(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function dae(e){return e.contentEditable==="true"}function K5(e){return e.tagName==="INPUT"}function fae(e){return K5(e)&&e.type==="hidden"}function hae(e){return K5(e)&&e.type==="radio"}function mae(e){return hae(e)&&!gae(e)}function pae(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function gae(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=pae(t);return!n||n===e}function vae(e){return e.offsetParent===null||getComputedStyle(e).visibility==="hidden"}var bae=OA;const qs=jr(bae);function yae(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ad(){return ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ad.apply(this,arguments)}var q5=z5(function(t,n){return x.createElement(iae,null,x.createElement(xae,ad({ref:n},t)))}),xae=z5(function(t,n){var r=t.as,o=r===void 0?"div":r,a=t.targetRef,i=t.position,s=i===void 0?Q5:i,l=t.unstable_observableRefs,c=l===void 0?[]:l,d=yae(t,["as","targetRef","position","unstable_observableRefs"]),f=x.useRef(null),h=tN(f,{observe:!d.hidden}),m=tN(a,{observe:!d.hidden}),g=aae(f,n);return wae(a,f),x.createElement(o,ad({"data-reach-popover":"",ref:g},d,{style:ad({position:"absolute"},Cae.apply(void 0,[s,m,h].concat(c)),d.style)}))});function Cae(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return n?e.apply(void 0,[t,n].concat(o.map(function(i){return i.current}))):{visibility:"hidden"}}function X5(e,t){var n=J5(e,t),r=n.directionUp;return{top:r?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}var Q5=function(t,n){if(!t||!n)return{};var r=J5(t,n),o=r.directionRight;return ad({left:o?t.right-n.width+window.pageXOffset+"px":t.left+window.pageXOffset+"px"},X5(t,n))},Z5=function(t,n){return!t||!n?{}:ad({width:t.width,left:t.left},X5(t,n))};function J5(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},a=o.right&&!o.left,i=o.left&&!o.right,s=o.bottom&&!o.top,l=o.top&&!o.bottom;return{directionRight:a,directionLeft:i,directionUp:s,directionDown:l}}function wae(e,t){var n=nae(e.current);function r(y){y.key==="Tab"&&t.current&&qs(t.current).length===0||(y.key==="Tab"&&y.shiftKey?c(y)?d(y):f(y)?h(y):g(y)&&v():y.key==="Tab"&&(a()?i(y):s()?l(y):m(y)&&v()))}x.useEffect(function(){return n.addEventListener("keydown",r),function(){n.removeEventListener("keydown",r)}},[]);function o(){var y=qs(n),C=y&&e.current?y.indexOf(e.current):-1,D=y&&y[C+1];return t.current&&t.current.contains(D||null)?!1:D}function a(){return e.current?e.current===n.activeElement:!1}function i(y){var C=t.current&&qs(t.current);C&&C[0]&&(y.preventDefault(),C[0].focus())}function s(){var y=t.current?t.current.contains(n.activeElement||null):!1;if(y){var C=t.current&&qs(t.current);return!!(C&&C[C.length-1]===n.activeElement)}return!1}function l(y){var C=o();C&&(y.preventDefault(),C.focus())}function c(y){if(y.shiftKey){var C=o();return y.target===C}}function d(y){var C=t.current&&qs(t.current),D=C&&C[C.length-1];D&&(y.preventDefault(),D.focus())}function f(y){var C=t.current&&qs(t.current);return C?C.length===0?!1:y.target===C[0]:!1}function h(y){var C;y.preventDefault(),(C=e.current)==null||C.focus()}function m(y){var C=t.current?qs(n).filter(function(D){return!t.current.contains(D)}):null;return C?y.target===C[C.length-1]:!1}function g(y){return y.target===qs(n)[0]}var p=[];function v(){var y=t.current&&qs(t.current);y&&(y.forEach(function(C){p.push([C,C.tabIndex]),C.tabIndex=-1}),n.addEventListener("focusin",b))}function b(){n.removeEventListener("focusin",b),p.forEach(function(y){var C=y[0],D=y[1];C.tabIndex=D})}}const fv=({size:e="default",isDisabled:t=!1,isClearable:n=!1,zIndex:r=1})=>({arrowButton:S({},"label:AutoComplete-styles-arrowButton"),reachCombobox:S({width:"100%"},"label:AutoComplete-styles-reachCombobox"),inputContainer:S({position:"relative",display:"flex",width:"100%",alignItems:"baseline",justifyContent:"flex-start",border:"solid 1px #bfcbd8",borderRadius:6,flexWrap:"wrap",opacity:t?.5:1,...{small:{paddingRight:!t&&n?40:t?0:16},default:{paddingRight:!t&&n?44:t?0:20}}[e]},"label:AutoComplete-styles-inputContainer"),inputActions:S({display:"flex",pointerEvents:"none",flexDirection:"row-reverse",alignItems:"stretch",position:"absolute",top:0,right:0,bottom:0,...{small:{padding:"0 8px"},default:{padding:"0 12px"}}[e]},"label:AutoComplete-styles-inputActions"),inputTokenTag:S({display:"flex",...{small:{margin:"4px 0px 4px 8px",fontSize:"12px"},default:{margin:"5px 0px 5px 8px",fontSize:"12px"}}[e],backgroundColor:"#eeefef",borderRadius:2,alignItems:"center",maxWidth:"85%","& > label":{margin:0,fontFamily:"inherit",...{small:{padding:"3px 6px",paddingRight:0},default:{padding:"4px 8px",paddingRight:0}}[e],fontWeight:"initial","& + div":{paddingRight:2}}},"label:AutoComplete-styles-inputTokenTag"),popover:S({"&[data-reach-combobox-popover]":{zIndex:r+1,background:"#fff",border:0,borderRadius:6,boxShadow:"0 5px 10px 0 rgba(0, 0, 0, 0.3)",maxHeight:"300px",overflow:"auto"},"&[data-autocomplete-state=selected] [data-user-value]":{fontWeight:"inherit"}},"label:AutoComplete-styles-popover"),checkmarkContainer:S({display:"flex",height:"1em",svg:{position:"relative",...{small:{width:18,height:18,right:-3,transform:"translateY(calc(0.5em - 50%))"},default:{width:24,height:24,right:-4,transform:"translateY(calc(0.5em - 50%))"}}[e]}},"label:AutoComplete-styles-checkmarkContainer"),parentLabel:S({color:"#767676",fontSize:"12px"},"label:AutoComplete-styles-parentLabel"),option:S({display:"flex",alignItems:"center","&[data-reach-combobox-option]":{...{small:{padding:"6px 8px",fontSize:"13px"},default:{padding:"8px 12px",fontSize:"16px"}}[e],"&:hover, &[data-highlighted]":{background:"rgba(3,125,188,0.08)"}},"[data-suggested-value]":{fontWeight:"inherit"},"[data-user-value]":{fontWeight:600},"&:first-of-type&:last-of-type":{background:"rgba(3,125,188,0.08)"},"&[data-autocomplete-selected=true]":{background:"rgba(3,125,188,0.08)"}},"label:AutoComplete-styles-option"),optionText:S({flex:1},"label:AutoComplete-styles-optionText"),iconLayout:S({display:"grid",gridTemplateColumns:"24px auto",gap:8},"label:AutoComplete-styles-iconLayout"),separator:S({listStyle:"none",height:"1px",backgroundColor:"rgb(221,222,224)",marginTop:"8px",marginBottom:"8px",border:"none","& + &, &:last-child, &:first-child":{height:0}},"label:AutoComplete-styles-separator"),groupHeading:S({textAlign:"center",textTransform:"uppercase",fontWeight:600,color:"#808080",...{small:{padding:"6px 8px",fontSize:"13px"},default:{padding:"6px 8px",fontSize:"13px"}}[e],margin:0},"label:AutoComplete-styles-groupHeading"),autoCompleteArrow:S({display:"flex"},"label:AutoComplete-styles-autoCompleteArrow"),autoCompleteClear:S({display:"flex",pointerEvents:"auto",cursor:"pointer","& button":{appearance:"none",padding:"2px 6px 0"}},"label:AutoComplete-styles-autoCompleteClear"),autoCompleteClose:S({height:8,width:8,alignSelf:"center"},"label:AutoComplete-styles-autoCompleteClose"),input:S({cursor:"default",border:"none",flex:1,minWidth:100,"* + &":{height:0,fontSize:0},"* + &:focus, * + &[data-state='interacting'], * + &[data-state='suggesting']":{height:"auto",fontSize:"inherit"}},"label:AutoComplete-styles-input")}),e6=({size:e="default"})=>({input:S({borderRadius:6,color:"#3c4146",border:"solid 1px #bfcbd8",backgroundColor:"#ffffff",fontWeight:"initial",...{small:{height:28,lineHeight:"28px",padding:"0 8px",fontSize:"13px"},default:{height:36,lineHeight:"36px",padding:"0 12px",fontSize:"16px"}}[e],"&:focus":{borderColor:"#037dbc",outline:"none"}},"label:input-styles-input"),numberContainer:S({display:"inline-block",position:"relative"},"label:input-styles-numberContainer"),spinner:S({position:"absolute",top:0,right:0,display:"flex",flexDirection:"column",width:"50%",height:"100%",...{small:{maxWidth:20},default:{maxWidth:27}}[e],"& > button":{borderLeft:"solid 1px #bfcbd8",height:"50%",lineHeight:1,fontSize:11,"&:hover":{background:"#bfcbd82e"},"&:first-of-type":{borderBottom:"solid 1px #bfcbd8",borderRadius:"0 6 0 0"},"&:last-of-type":{borderRadius:"0 0 6 0",marginTop:"-2px"}}},"label:input-styles-spinner")});function Sae(e){return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,width:24,children:[u.jsx("title",{children:"X"}),u.jsx("path",{fill:"currentColor",d:"M12,5a7,7,0,1,0,7,7A7,7,0,0,0,12,5Zm2.873,5.244L13.118,12l1.755,1.756a.337.337,0,0,1,0,.479l-.638.638a.337.337,0,0,1-.479,0L12,13.118l-1.756,1.755a.337.337,0,0,1-.479,0l-.638-.638a.337.337,0,0,1,0-.479L10.882,12,9.127,10.244a.337.337,0,0,1,0-.479l.638-.638a.337.337,0,0,1,.479,0L12,10.882l1.756-1.755a.337.337,0,0,1,.479,0l.638.638A.337.337,0,0,1,14.873,10.244Z"})]})}function Dae(e){const t=k("Close");return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.5 9.5",...e,"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:e.className,children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M10.836,11.75,7.793,8.707A1,1,0,0,1,9.207,7.293l3.043,3.043,3.043-3.043a1,1,0,0,1,1.414,1.414L13.664,11.75l3.043,3.043a1,1,0,0,1-1.414,1.414L12.25,13.164,9.207,16.207a1,1,0,1,1-1.439-1.389l.025-.025Z",transform:"translate(-7.488 -7.012)"})]})}const t6=W.createContext({inputState:{status:"IDLE",value:""},setOptions:()=>{}}),hv=()=>W.useContext(t6);function Eae(e){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,width:24,children:u.jsx("g",{fill:"none",fillRule:"evenodd",children:u.jsx("g",{fill:"#037DBC",children:u.jsx("g",{children:u.jsx("g",{children:u.jsx("path",{d:"M7.5 11.5L6 13 10 17 19 8.5 17.5 7 10 14z",transform:"translate(-1280.000000, -2642.000000) translate(946.000000, 2367.000000) translate(334.000000, 275.000000)"})})})})})})}var Xt=ree(function(e,t,n){g3(e,t,n)}),qx={},iy=yr&&yr.__assign||function(){return iy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},iy.apply(this,arguments)};Object.defineProperty(qx,"__esModule",{value:!0});function Iae(e){return BA(e)}var Vi=qx.reducerWithInitialState=Iae;function Tae(){return BA()}var Kft=qx.reducerWithoutInitialState=Tae;function Aae(){return BA()}qx.upcastingReducer=Aae;function BA(e){var t={},n=Uw(e,t);return n.caseWithAction=function(r,o){return t[r.type]=o,n},n.case=function(r,o){return n.caseWithAction(r,function(a,i){return o(a,i.payload)})},n.casesWithAction=function(r,o){for(var a=0,i=r;a<i.length;a++){var s=i[a];n.caseWithAction(s,o)}return n},n.cases=function(r,o){return n.casesWithAction(r,function(a,i){return o(a,i.payload)})},n.withHandling=function(r){return r(n)},n.default=function(r){return Uw(e,iy({},t),r)},n.build=function(){return Uw(e,iy({},t))},n}function Uw(e,t,n){return function(r,o){var a=r!==void 0?r:e,i=t[o.type]||n;return i?i(a,o):a}}class br{constructor(t,n,r){q(this,"dispatch");q(this,"api");q(this,"bindDispatch");this.dispatch=t,this.api=n,this.bindDispatch=o=>(...a)=>this.dispatch(o.apply(this,a)),r&&(this.getState=r)}static createAction(t,n){return n===void 0?{type:t}:{type:t,payload:n}}static generateApiActionCreators(t,n,r,o,a){return{request:i=>br.createApiRequestAction(t,i),response:(i,s)=>br.createApiResponseAction(n,s,i),error:(i,s)=>br.createApiErrorAction(r,s,i)}}static createApiRequestAction(t,n){return{type:t,meta:n}}static createApiErrorAction(t,n,r){return mn(r),{type:t,meta:n,payload:r}}static createApiResponseAction(t,n,r){return{type:t,meta:n,payload:r}}async dispatchApi(t,n,r,o,a={}){a={...o,...a},this.dispatch(r.request(a));try{const s=await(t==="get"?this.api.get(n,{params:o}):this.api[t](n,o));return this.dispatch(r.response(s,a)),s}catch(i){this.dispatch(r.error(i,a))}}getState(){return this.dispatch((t,n)=>n())}}function Cd(e){const t=md(),n=x.useMemo(()=>new e(t,Ct),[t,e]);return x.useDebugValue(n),n}const Gt=(e,t)=>n=>async(r,o,a)=>{try{r(e.started(n));const i=await t(n,r,o,a);return r(e.done({params:n,result:i})),i}catch(i){throw r(e.failed({params:n,error:i})),i}};var Xx={};Object.defineProperty(Xx,"__esModule",{value:!0});function Oae(e,t){return e.type===t.type}Xx.isType=Oae;function n6(e,t){t===void 0&&(t=function(a){return a instanceof Error});var n=e?e+"/":"";function r(a,i,s){s===void 0&&(s=t);var l=n+a;return Object.assign(function(c,d){var f={type:l,payload:c};return(i||d)&&(f.meta=Object.assign({},i,d)),s&&(typeof s=="boolean"||s(c))&&(f.error=!0),f},{type:l,toString:function(){return l},match:function(c){return c.type===l}})}function o(a,i){return{type:n+a,started:r(a+"_STARTED",i,!1),done:r(a+"_DONE",i,!1),failed:r(a+"_FAILED",i,!0)}}return Object.assign(r,{async:o})}var mv=Xx.actionCreatorFactory=n6,$h=Xx.default=n6;let Np=Wx(Math.random().toString());const tE="V-Clear-Theme-Cache";function r6(){return Np=Wx(Math.random().toString()),document.dispatchEvent(new CustomEvent(tE,{detail:Np})),Np}function Bae(){const[e,t]=x.useState(Np);return x.useEffect(()=>{const n=r=>{t(r.detail)};return document.addEventListener(tE,n),()=>{document.removeEventListener(tE,n)}}),{cacheID:e,resetThemeCache:r6}}function re(e){return jx(e,(...n)=>{const r=Pc().getState(),o=Ge("ui.themeKey","default"),a=r.theme.assets.status;return o+a+Np+JSON.stringify(n)})}const ql=mv("@@themes");var Hu;(function(e){e.PREVIEW="preview",e.APPLY="apply",e.CANCEL="cancel"})(Hu||(Hu={}));const Kr=class Kr extends br{constructor(){super(...arguments);q(this,"getAssets",(n,r=null)=>{const{theme:o}=this.getState();if(o.assets.data)return o.assets.data;const a=Gt(Kr.getAssets,async()=>(await this.api.get(`/themes/${n}`,{params:{revisionID:r}})).data)({themeKey:n,revisionID:r});return this.dispatch(a)});q(this,"forceVariables",n=>{this.dispatch(Kr.forceVariablesAC(n)),r6()});q(this,"getAllThemes",()=>{const n=Gt(Kr.getAllThemes_ACS,async()=>(await this.api.get("/themes")).data)();return this.dispatch(n)});q(this,"putCurrentTheme",n=>{const r={themeID:n},o=Gt(Kr.putCurrentThemeACs,async()=>{const a=await this.api.put("/themes/current",r);return zD("ui.themeKey",n),zD("ui.mobileThemeKey",n),a.data})(r);return this.dispatch(o)});q(this,"putPreviewTheme",n=>{const{themeID:r,revisionID:o,type:a}=n,i=Gt(Kr.putPreviewThemeACs,async()=>(await this.api.put("/themes/preview",{themeID:r,revisionID:o})).data)(n);return this.dispatch(i)});q(this,"deleteTheme",n=>{const r=Gt(Kr.deleteThemeACs,async()=>(await this.api.delete(`/themes/${n}`)).data)({themeID:n});return this.dispatch(r)});q(this,"patchThemeWithRevisionID",async n=>await this.patchTheme({themeID:n.themeID,revisionID:n.revisionID}))}getThemeRevisions(n){const r=Gt(Kr.getThemeRevisions_ACs,async()=>(await this.api.get(`/themes/${n}/revisions`)).data)({themeID:n});return this.dispatch(r)}patchTheme(n){const{themeID:r,...o}=n,a=Gt(Kr.patchTheme_ACs,async()=>(await this.api.patch(`/themes/${n.themeID}`,o)).data)(n);return this.dispatch(a)}};q(Kr,"getAssets",ql.async("GET")),q(Kr,"forceVariablesAC",ql("FORCE_VARIABLES")),q(Kr,"getAllThemes_ACS",ql.async("GET_ALL_THEMES")),q(Kr,"putCurrentThemeACs",ql.async("PUT_CURRENT")),q(Kr,"putPreviewThemeACs",ql.async("PUT_PREVIEW")),q(Kr,"deleteThemeACs",ql.async("DELETE")),q(Kr,"getThemeRevisions_ACs",ql.async("GET_THEME")),q(Kr,"patchTheme_ACs",ql.async("PATCH_THEME"));let Br=Kr;function kae(){return Cd(Br)}var X;(function(e){e.PENDING="PENDING",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(X||(X={}));var nE;(function(e){e.DELETED="deleted",e.UNDELETED="undeleted",e.PUBLISHED="published"})(nE||(nE={}));var nN;(function(e){e.TEXT="text",e.TEXTEX="textex",e.MARKDOWN="markdown",e.WYSIWYG="wysiwyg",e.HTML="html",e.BBCODE="bbcode",e.RICH="rich"})(nN||(nN={}));var Vw,o6=typeof Symbol<"u"?Symbol("immer-nothing"):(Vw={},Vw["immer-nothing"]=!0,Vw),rN=typeof Symbol<"u"?Symbol.for("immer-draftable"):"__$immer_draftable",Ir=typeof Symbol<"u"?Symbol.for("immer-state"):"__$immer_state";function sy(e){return!!e&&!!e[Ir]}function Mh(e){if(!e||typeof e!="object")return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype?!0:!!e[rN]||!!e.constructor[rN]}var kA=Object.assign||function(t,n){for(var r in n)ih(n,r)&&(t[r]=n[r]);return t},a6=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:typeof Object.getOwnPropertySymbols<"u"?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function ly(e,t){if(t===void 0&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return a6(e).forEach(function(r){if(r!==Ir){var o=Object.getOwnPropertyDescriptor(e,r),a=o.value;if(o.get){if(!t)throw new Error("Immer drafts cannot have computed properties");a=o.get.call(e)}o.enumerable?n[r]=a:Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0})}}),n}function ah(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(n,e[n],e);else a6(e).forEach(function(r){return t(r,e[r],e)})}function i6(e,t){return Object.getOwnPropertyDescriptor(e,t).enumerable}function ih(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ig(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ja=function(t){this.drafts=[],this.parent=t,this.canAutoFreeze=!0,this.patches=null};Ja.prototype.usePatches=function(t){t&&(this.patches=[],this.inversePatches=[],this.patchListener=t)};Ja.prototype.revoke=function(){this.leave(),this.drafts.forEach(Pae),this.drafts=null};Ja.prototype.leave=function(){this===Ja.current&&(Ja.current=this.parent)};Ja.current=null;Ja.enter=function(){return this.current=new Ja(this.current)};function Pae(e){e[Ir].revoke()}var oN={};function Rae(e,t,n){e.drafts.forEach(function(r){r[Ir].finalizing=!0}),n?sy(t)&&t[Ir].scope===e&&aN(e.drafts):(e.patches&&oE(e.drafts[0]),aN(e.drafts))}function s6(e,t){var n=Array.isArray(e),r=c6(e);ah(r,function(i){$ae(r,i,n||i6(e,i))});var o=t?t.scope:Ja.current,a={scope:o,modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:r,copy:null,revoke:jae,revoked:!1};return _ae(r,Ir,a),o.drafts.push(r),r}function jae(){this.revoked=!0}function PA(e){return e.copy||e.base}function rE(e,t){var n=e[Ir];if(n&&!n.finalizing){n.finalizing=!0;var r=e[t];return n.finalizing=!1,r}return e[t]}function Nae(e,t){u6(e);var n=rE(PA(e),t);return e.finalizing?n:n===rE(e.base,t)&&Mh(n)?(l6(e),e.copy[t]=s6(n,e)):n}function Lae(e,t,n){if(u6(e),e.assigned[t]=!0,!e.modified){if(ig(n,rE(PA(e),t)))return;Uu(e),l6(e)}e.copy[t]=n}function Uu(e){e.modified||(e.modified=!0,e.parent&&Uu(e.parent))}function l6(e){e.copy||(e.copy=c6(e.base))}function c6(e){var t=e&&e[Ir];if(t){t.finalizing=!0;var n=ly(t.draft,!0);return t.finalizing=!1,n}return ly(e)}function $ae(e,t,n){var r=oN[t];r?r.enumerable=n:oN[t]=r={configurable:!0,enumerable:n,get:function(){return Nae(this[Ir],t)},set:function(a){Lae(this[Ir],t,a)}},Object.defineProperty(e,t,r)}function u6(e){if(e.revoked===!0)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(PA(e)))}function aN(e){for(var t=e.length-1;t>=0;t--){var n=e[t][Ir];n.modified||(Array.isArray(n.base)?d6(n)&&Uu(n):Mae(n)&&Uu(n))}}function oE(e){if(!(!e||typeof e!="object")){var t=e[Ir];if(t){var n=t.base,r=t.draft,o=t.assigned;if(!Array.isArray(e))Object.keys(r).forEach(function(l){n[l]===void 0&&!ih(n,l)?(o[l]=!0,Uu(t)):o[l]||oE(r[l])}),Object.keys(n).forEach(function(l){r[l]===void 0&&!ih(r,l)&&(o[l]=!1,Uu(t))});else if(d6(t)){if(Uu(t),o.length=!0,r.length<n.length)for(var a=r.length;a<n.length;a++)o[a]=!1;else for(var i=n.length;i<r.length;i++)o[i]=!0;for(var s=0;s<r.length;s++)o[s]===void 0&&oE(r[s])}}}}function Mae(e){for(var t=e.base,n=e.draft,r=Object.keys(n),o=r.length-1;o>=0;o--){var a=r[o],i=t[a];if(i===void 0&&!ih(t,a))return!0;var s=n[a],l=s&&s[Ir];if(l?l.base!==i:!ig(s,i))return!0}return r.length!==Object.keys(t).length}function d6(e){var t=e.draft;if(t.length!==e.base.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!!(n&&!n.get)}function _ae(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0})}var Fae=Object.freeze({willFinalize:Rae,createProxy:s6});function Wae(){}function f6(e,t){var n=t?t.scope:Ja.current,r={scope:n,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null},o=Array.isArray(e)?Proxy.revocable([r],Zx):Proxy.revocable(r,Qx),a=o.revoke,i=o.proxy;return r.draft=i,r.revoke=a,n.drafts.push(i),i}var Qx={get:zae,has:function(t,n){return n in sg(t)},ownKeys:function(t){return Reflect.ownKeys(sg(t))},set:Hae,deleteProperty:Uae,getOwnPropertyDescriptor:Vae,defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(t){return Object.getPrototypeOf(t.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},Zx={};ah(Qx,function(e,t){Zx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Zx.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return Qx.deleteProperty.call(this,e[0],t)};Zx.set=function(e,t,n){if(t!=="length"&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return Qx.set.call(this,e[0],t,n)};function sg(e){return e.copy||e.base}function RA(e,t){var n=e[Ir],r=Reflect.getOwnPropertyDescriptor(n?sg(n):e,t);return r&&r.value}function zae(e,t){if(t===Ir)return e;var n=e.drafts;if(!e.modified&&ih(n,t))return n[t];var r=sg(e)[t];if(e.finalized||!Mh(r))return r;if(e.modified){if(r!==RA(e.base,t))return r;n=e.copy}return n[t]=f6(r,e)}function Hae(e,t,n){if(!e.modified){var r=RA(e.base,t),o=n?ig(r,n)||n===e.drafts[t]:ig(r,n)&&t in e.base;if(o)return!0;jA(e)}return e.assigned[t]=!0,e.copy[t]=n,!0}function Uae(e,t){return(RA(e.base,t)!==void 0||t in e.base)&&(e.assigned[t]=!1,jA(e)),e.copy&&delete e.copy[t],!0}function Vae(e,t){var n=sg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&(r.writable=!0,r.configurable=!Array.isArray(n)||t!=="length"),r}function jA(e){e.modified||(e.modified=!0,e.copy=kA(ly(e.base),e.drafts),e.drafts=null,e.parent&&jA(e.parent))}var Gae=Object.freeze({willFinalize:Wae,createProxy:f6});function Yae(e,t,n,r){Array.isArray(e.base)?Kae(e,t,n,r):qae(e,t,n,r)}function Kae(e,t,n,r){var o,a,i=e.base,s=e.copy,l=e.assigned;s.length<i.length&&(o=[s,i],i=o[0],s=o[1],a=[r,n],n=a[0],r=a[1]);for(var c=s.length-i.length,d=0;i[d]===s[d]&&d<i.length;)++d;for(var f=i.length;f>d&&i[f-1]===s[f+c-1];)--f;for(var h=d;h<f;++h)if(l[h]&&s[h]!==i[h]){var m=t.concat([h]);n.push({op:"replace",path:m,value:s[h]}),r.push({op:"replace",path:m,value:i[h]})}for(var g=f!=i.length,p=n.length,v=f+c-1;v>=f;--v){var b=t.concat([v]);n[p+v-f]={op:"add",path:b,value:s[v]},g&&r.push({op:"remove",path:b})}g||r.push({op:"replace",path:t.concat(["length"]),value:i.length})}function qae(e,t,n,r){var o=e.base,a=e.copy;ah(e.assigned,function(i,s){var l=o[i],c=a[i],d=s?i in o?"replace":"add":"remove";if(!(l===c&&d==="replace")){var f=t.concat(i);n.push(d==="remove"?{op:d,path:f}:{op:d,path:f,value:c}),r.push(d==="add"?{op:"remove",path:f}:d==="remove"?{op:"add",path:f,value:l}:{op:"replace",path:f,value:l})}})}function iN(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.path;if(o.length===0&&r.op==="replace")e=r.value;else{for(var a=e,i=0;i<o.length-1;i++)if(a=a[o[i]],!a||typeof a!="object")throw new Error("Cannot apply patch, path doesn't resolve: "+o.join("/"));var s=o[o.length-1];switch(r.op){case"replace":a[s]=r.value;break;case"add":Array.isArray(a)?a.splice(s,0,r.value):a[s]=r.value;break;case"remove":Array.isArray(a)?a.splice(s,1):delete a[s];break;default:throw new Error("Unsupported patch operation: "+r.op)}}}return e}function Xae(){}var Qae={useProxies:typeof Proxy<"u"&&typeof Reflect<"u",autoFreeze:typeof process<"u"?!1:Xae.name==="verifyMinified",onAssign:null,onDelete:null,onCopy:null},ks=function(t){kA(this,Qae,t),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)};ks.prototype.produce=function(t,n,r){var o=this;if(typeof t=="function"&&typeof n!="function"){var a=n;return n=t,function(d){d===void 0&&(d=a);for(var f=[],h=arguments.length-1;h-- >0;)f[h]=arguments[h+1];return o.produce(d,function(m){return n.call.apply(n,[m,m].concat(f))})}}{if(typeof n!="function")throw new Error("The first or second argument to `produce` must be a function");if(r!==void 0&&typeof r!="function")throw new Error("The third argument to `produce` must be a function or undefined")}var i;if(Mh(t)){var s=Ja.enter(),l=this.createProxy(t),c=!0;try{i=n.call(l,l),c=!1}finally{c?s.revoke():s.leave()}return i instanceof Promise?i.then(function(d){return s.usePatches(r),o.processResult(d,s)},function(d){throw s.revoke(),d}):(s.usePatches(r),this.processResult(i,s))}else return i=n(t),i===void 0?t:i!==o6?i:void 0};ks.prototype.createDraft=function(t){if(!Mh(t))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var n=Ja.enter(),r=this.createProxy(t);return r[Ir].isManual=!0,n.leave(),r};ks.prototype.finishDraft=function(t,n){var r=t&&t[Ir];if(!r||!r.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(r.finalized)throw new Error("The given draft is already finalized");var o=r.scope;return o.usePatches(n),this.processResult(void 0,o)};ks.prototype.setAutoFreeze=function(t){this.autoFreeze=t};ks.prototype.setUseProxies=function(t){this.useProxies=t,kA(this,t?Gae:Fae)};ks.prototype.applyPatches=function(t,n){return sy(t)?iN(t,n):this.produce(t,function(r){return iN(r,n)})};ks.prototype.processResult=function(t,n){var r=n.drafts[0],o=t!==void 0&&t!==r;if(this.willFinalize(n,t,o),o){if(r[Ir].modified)throw n.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");Mh(t)&&(t=this.finalize(t,null,n)),n.patches&&(n.patches.push({op:"replace",path:[],value:t}),n.inversePatches.push({op:"replace",path:[],value:r[Ir].base}))}else t=this.finalize(r,[],n);return n.revoke(),n.patches&&n.patchListener(n.patches,n.inversePatches),t!==o6?t:void 0};ks.prototype.finalize=function(t,n,r){var o=this,a=t[Ir];if(!a)return Object.isFrozen(t)?t:this.finalizeTree(t,null,r);if(a.scope!==r)return t;if(!a.modified)return a.base;if(!a.finalized){if(a.finalized=!0,this.finalizeTree(a.draft,n,r),this.onDelete)if(this.useProxies){var i=a.assigned;for(var s in i)i[s]||this.onDelete(a,s)}else{var l=a.base,c=a.copy;ah(l,function(d){ih(c,d)||o.onDelete(a,d)})}this.onCopy&&this.onCopy(a),this.autoFreeze&&r.canAutoFreeze&&Object.freeze(a.copy),n&&r.patches&&Yae(a,n,r.patches,r.inversePatches)}return a.copy};ks.prototype.finalizeTree=function(t,n,r){var o=this,a=t[Ir];a&&(this.useProxies||(a.copy=ly(a.draft,!0)),t=a.copy);var i=!!n&&!!r.patches,s=function(l,c,d){if(c===d)throw Error("Immer forbids circular references");var f=!!a&&d===t;if(sy(c)){var h=f&&i&&!a.assigned[l]?n.concat(l):null;if(c=o.finalize(c,h,r),sy(c)&&(r.canAutoFreeze=!1),Array.isArray(d)||i6(d,l)?d[l]=c:Object.defineProperty(d,l,{value:c}),f&&c===a.base[l])return}else{if(f&&ig(c,a.base[l]))return;Mh(c)&&!Object.isFrozen(c)&&ah(c,s)}f&&o.onAssign&&o.onAssign(a,l,c)};return ah(t,s),t};var Li=new ks,fa=Li.produce;Li.setAutoFreeze.bind(Li);Li.setUseProxies.bind(Li);Li.applyPatches.bind(Li);Li.createDraft.bind(Li);Li.finishDraft.bind(Li);var sN;(function(e){e.DB="themeDB",e.FS="themeFile"})(sN||(sN={}));const h6={assets:{status:X.PENDING},forcedVariables:null,themeRevisions:{status:X.PENDING},upDateRevision:{status:X.PENDING}},Zae=fa(Vi(h6).case(Br.getAssets.started,e=>(e.assets.status=X.LOADING,e)).case(Br.getAssets.done,(e,t)=>(e.assets.status=X.SUCCESS,e.assets.data=t.result.assets,e)).case(Br.getAssets.failed,(e,t)=>t.error.response&&t.error.response.status===404?(e.assets.data={},e.assets.status=X.SUCCESS,e):(e.assets.status=X.ERROR,e.assets.error=t.error,e)).case(Br.forceVariablesAC,(e,t)=>(e.forcedVariables=t,e)).case(Br.getThemeRevisions_ACs.started,(e,t)=>(e.themeRevisions.status=X.LOADING,e)).case(Br.getThemeRevisions_ACs.failed,(e,t)=>(e.themeRevisions&&(e.themeRevisions.status=X.ERROR,e.themeRevisions.error=t.error),e)).case(Br.getThemeRevisions_ACs.done,(e,t)=>(e.themeRevisions&&(e.themeRevisions.status=X.SUCCESS,e.themeRevisions.data=t.result),e)).case(Br.patchTheme_ACs.started,(e,t)=>(e.upDateRevision.status=X.LOADING,e)).case(Br.patchTheme_ACs.failed,(e,t)=>(e.upDateRevision.status=X.ERROR,e.upDateRevision.error=t.error,e)).case(Br.patchTheme_ACs.done,(e,t)=>{e.upDateRevision.status=X.SUCCESS,e.upDateRevision.data=t.result;const{revisionID:n,themeID:r}=t.result;return e.themeRevisions.data&&(e.themeRevisions.data=e.themeRevisions.data.map(o=>(o.themeID!==r||(o.active=o.revisionID===n),o))),e}));class Jae{constructor(){q(this,"MAX_PARTIAL_LOOKUP_ITERATIONS",10);q(this,"root",{})}insert(t,n){let r=this.root;for(let o=0;o<t.length;o++){const a=t[o];if(r.children||(r.children={}),!(a in r.children)){const i=o!==t.length-1?{}:{children:{}};r.children[a]=i}r=r.children[a]}r.value=n}getNode(t){let n=this.root;if(t===void 0)return n;for(let r=0;r<t.length;r++){const o=t.charAt(r);if(n.children&&n.children[o])n=n.children[o];else return null}return n}getValue(t){const n=this.getNode(t);return n&&n.value||null}getValueFromPartialsOfWord(t){const n=Math.min(this.MAX_PARTIAL_LOOKUP_ITERATIONS,t.length);for(let r=n;r>0;r--){const o=t.substring(0,r),a=this.getValue(o);if(a!=null)return a}return null}}var Gw=function(){return Ui.Date.now()},eie=/\s/;function tie(e){for(var t=e.length;t--&&eie.test(e.charAt(t)););return t}var nie=/^\s+/;function rie(e){return e&&e.slice(0,tie(e)+1).replace(nie,"")}var lN=NaN,oie=/^[-+]0x[0-9a-f]+$/i,aie=/^0b[01]+$/i,iie=/^0o[0-7]+$/i,sie=parseInt;function kf(e){if(typeof e=="number")return e;if(nd(e))return lN;if(Ho(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ho(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rie(e);var n=aie.test(e);return n||iie.test(e)?sie(e.slice(2),n?2:8):oie.test(e)?lN:+e}var lie="Expected a function",cie=Math.max,uie=Math.min;function Ra(e,t,n){var r,o,a,i,s,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(lie);t=kf(t)||0,Ho(n)&&(d=!!n.leading,f="maxWait"in n,a=f?cie(kf(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(T){var B=r,j=o;return r=o=void 0,c=T,i=e.apply(j,B),i}function g(T){return c=T,s=setTimeout(b,t),d?m(T):i}function p(T){var B=T-l,j=T-c,R=t-B;return f?uie(R,a-j):R}function v(T){var B=T-l,j=T-c;return l===void 0||B>=t||B<0||f&&j>=a}function b(){var T=Gw();if(v(T))return y(T);s=setTimeout(b,p(T))}function y(T){return s=void 0,h&&r?m(T):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function D(){return s===void 0?i:y(Gw())}function A(){var T=Gw(),B=v(T);if(r=arguments,o=this,l=T,B){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),i}return A.cancel=C,A.flush=D,A}const fr=class fr extends br{constructor(){super(...arguments);q(this,"setActive",this.bindDispatch(fr.setActiveAC));q(this,"interalLoadUsers",n=>this.dispatch((r,o)=>{const a=cy.selectSuggestionsTrie(o()),i=a.getValue(n);if(i!=null)switch(i.status){case X.SUCCESS:if(i.data)return r(fr.loadUsersACs.response({data:i.data,status:200},{username:n}));break;case X.LOADING:return;case X.ERROR:if(i.error)return r(fr.loadUsersACs.error(i.error,{username:n}))}const s=a.getValueFromPartialsOfWord(n);if(s!=null)switch(s.status){case X.SUCCESS:{if(s.data&&s.data.length<fr.USER_LIMIT)return r(fr.loadUsersACs.response({data:fr.filterSuggestions(s.data,n),status:200},{username:n}));break}case X.ERROR:break;case X.PENDING:break}r(fr.loadUsersACs.request({username:n}));const l={name:n+"*",order:"mention",limit:fr.USER_LIMIT};return Ct.get("/users/by-names/",{params:l}).then(c=>{if(c.status>=500)throw new Error(c.data);c.data=c.data.map(d=>(d.domID="mentionSuggestion"+d.userID,d)),r(fr.loadUsersACs.response(c,{username:n}))}).catch(c=>{mn(c),r(fr.loadUsersACs.error(c,{username:n}))})}));q(this,"loadUsers",Ra(this.interalLoadUsers,50))}static setActiveAC(n,r){return br.createAction(fr.SET_ACTIVE_SUGGESTION,{suggestionID:n,suggestionIndex:r})}static filterSuggestions(n,r){const o=Intl.Collator("en",{usage:"search",sensitivity:"base",ignorePunctuation:!0,numeric:!0});return n.filter(a=>{if(a.name.length<r.length)return!1;const i=a.name.substring(0,r.length);return o.compare(i,r)===0})}};q(fr,"SET_ACTIVE_SUGGESTION","@@mentions/SET_ACTIVE_SUGGESTION"),q(fr,"LOAD_USERS_REQUEST","@@mentions/GET_USERS_REQUEST"),q(fr,"LOAD_USERS_RESPONSE","@@mentions/LOAD_USERS_RESPONSE"),q(fr,"LOAD_USERS_ERROR","@@mentions/LOAD_USERS_ERROR"),q(fr,"ACTION_TYPES"),q(fr,"USER_LIMIT",50),q(fr,"loadUsersACs",br.generateApiActionCreators(fr.LOAD_USERS_REQUEST,fr.LOAD_USERS_RESPONSE,fr.LOAD_USERS_ERROR,{},{}));let yf=fr;function m6(e,t=new Date,n=!0){const r=t.getTime()>e.getTime(),o=Math.abs(Math.round((r?e.getTime()-t.getTime():t.getTime()-e.getTime())/1e3)),a=60,i=3600,s=86400,l=2629744,c=31556926;let d="",f="";if(o>548*s){const h=Math.round(o/c);d=yt.sprintf(k("%s years"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s years"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s years"),h)))}if(o>=320*s&&o<548*s&&(d=k("a year"),f=r?yt.sprintf(k("%s ago"),k("a year")):yt.sprintf(k("in %s"),k("a year"))),o>=45*s&&o<320*s){const h=Math.round(o/l);d=yt.sprintf(k("%s months"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s months"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s months"),h)))}if(o>=26*s&&o<45*s&&(d=k("a month"),f=r?yt.sprintf(k("%s ago"),k("a month")):yt.sprintf(k("in %s"),k("a month"))),o>=36*60*60&&o<26*s){const h=Math.round(o/s);d=yt.sprintf(k("%s days"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s days"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s days"),h)))}if(o>=22*i&&o<36*i&&(d=k("a day"),f=r?yt.sprintf(k("%s ago"),k("a day")):yt.sprintf(k("in %s"),k("a day"))),o>=90*a&&o<22*i){const h=Math.round(o/i);d=yt.sprintf(k("%s hours"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s hours"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s hours"),h)))}if(o>=45*a&&o<90*a&&(d=k("an hour"),f=r?yt.sprintf(k("%s ago"),k("an hour")):yt.sprintf(k("in %s"),k("an hour"))),o>=90&&o<45*a){const h=Math.round(o/a);d=yt.sprintf(k("%s minutes"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s minutes"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s minutes"),h)))}if(o>=45&&o<90&&(d=k("a minute"),f=r?yt.sprintf(k("%s ago"),k("a minute")):yt.sprintf(k("in %s"),k("a minute"))),o<45){const h=Math.floor(o);d=yt.sprintf(k("%s seconds"),h),f=r?yt.sprintf(k("%s ago"),k(yt.sprintf(k("%s seconds"),h))):yt.sprintf(k("in %s"),k(yt.sprintf(k("%s seconds"),h)))}return o<44&&(d=k("a few seconds"),f=r?yt.sprintf(k("%s ago"),k("a few seconds")):yt.sprintf(k("in %s"),k("a few seconds"))),n?f:d}var aE;(function(e){e.YEAR="year",e.MONTH="month",e.DAY="day"})(aE||(aE={}));function die(e,t,n){const r=e.getFullYear()===t.getFullYear(),o=r&&e.getMonth()===t.getMonth(),a=o&&e.getDate()===t.getDate();switch(n){case"year":return r;case"month":return o;case"day":return a}}function fie(e,t,n){const r=e.getFullYear()>=t.getFullYear(),o=r&&e.getMonth()>=t.getMonth(),a=o&&e.getDate()>=t.getDate(),i=e.getTime()>=t.getTime();switch(n){case"year":return r;case"month":return o;case"day":return a;default:return i}}function hie(e,t){return new Date(e.getTime()-t*24*60*60*1e3)}const oc=class oc{constructor(){q(this,"initialState",{lastSuccessfulUsername:null,currentUsername:null,trie:new Jae,activeSuggestionID:"",activeSuggestionIndex:0});q(this,"reducer",(t=this.initialState,n)=>{switch(n.type){case yf.LOAD_USERS_REQUEST:{const{username:r}=n.meta;t.trie.insert(r,{status:X.LOADING});let o=!1;const a=t.lastSuccessfulUsername;return a!=null&&r.length>=a.length&&r.substring(0,a.length)===a&&(o=!0),{...t,currentUsername:r,lastSuccessfulUsername:o?t.lastSuccessfulUsername:null}}case yf.LOAD_USERS_ERROR:{const r=n.payload,{username:o}=n.meta;return t.trie.insert(o,{status:X.ERROR,data:void 0,error:r}),t}case yf.LOAD_USERS_RESPONSE:{const r=n.payload.data,{username:o}=n.meta;t.trie.insert(o,{status:X.SUCCESS,data:oc.sortSuggestions(r,o)});const a=r.length>0?r[0].domID:"";return{...t,activeSuggestionID:a,activeSuggestionIndex:0,lastSuccessfulUsername:o,currentUsername:o}}case yf.SET_ACTIVE_SUGGESTION:{const{suggestionID:r,suggestionIndex:o}=n.payload;return{...t,activeSuggestionID:r,activeSuggestionIndex:o}}default:return t}})}static mapStateToProps(t){const n={...oc.stateSlice(t)},{trie:r,...o}=n,a=n.lastSuccessfulUsername&&r.getValue(n.lastSuccessfulUsername)||oc.defaultSuggestions,i=n.currentUsername&&r.getValue(n.currentUsername),s=!!i&&i.status===X.LOADING;return{...o,suggestions:a,isLoading:s}}static selectSuggestionsTrie(t){return oc.stateSlice(t).trie}static stateSlice(t){if(!t.users||!t.users.suggestions)throw new Error(`Could not find users.suggestions in state ${t}. Be sure to initialize the usersReducer()`);return t.users.suggestions}static sortSuggestions(t,n,r=new Date){const o=Intl.Collator("en",{usage:"sort",sensitivity:"variant",ignorePunctuation:!0,numeric:!0}),a=90;let i=[],s=[];const l=hie(r,a);for(const h of t){if(!h.dateLastActive){s.push(h);continue}const m=h.dateLastActive?new Date(h.dateLastActive):new Date;fie(m,l)?i.push(h):s.push(h)}const c=(h,m)=>{const g=n.toLocaleLowerCase(),p=h.name.toLocaleLowerCase(),v=m.name.toLocaleLowerCase();return p.startsWith(g)&&!v.startsWith(g)?-1:v.startsWith(g)&&!p.startsWith(g)?1:o.compare(h.name.toLocaleLowerCase(),m.name.toLocaleLowerCase())},d=(h,m)=>{const g=n.toLocaleLowerCase();return h.name.toLocaleLowerCase()===g?-1:0};i.sort(c),s.sort(c);const f=[...i,...s];return f.sort(d),f}};q(oc,"defaultSuggestions",{status:X.PENDING});let cy=oc;function mie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var pie=a3(Object.keys,Object),gie=Object.prototype,vie=gie.hasOwnProperty;function p6(e){if(!$x(e))return pie(e);var t=[];for(var n in Object(e))vie.call(e,n)&&n!="constructor"&&t.push(n);return t}function pv(e){return yd(e)?p3(e):p6(e)}function bie(e,t){return e&&Rh(t,pv(t),e)}function yie(e,t){return e&&Rh(t,av(t),e)}function xie(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function g6(){return[]}var Cie=Object.prototype,wie=Cie.propertyIsEnumerable,cN=Object.getOwnPropertySymbols,NA=cN?function(e){return e==null?[]:(e=Object(e),xie(cN(e),function(t){return wie.call(e,t)}))}:g6;function Sie(e,t){return Rh(e,NA(e),t)}function LA(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Die=Object.getOwnPropertySymbols,v6=Die?function(e){for(var t=[];e;)LA(t,NA(e)),e=GT(e);return t}:g6;function Eie(e,t){return Rh(e,v6(e),t)}function b6(e,t,n){var r=t(e);return fo(e)?r:LA(r,n(e))}function iE(e){return b6(e,pv,NA)}function y6(e){return b6(e,av,v6)}var sE=vd(Ui,"DataView"),lE=vd(Ui,"Promise"),Pf=vd(Ui,"Set"),cE=vd(Ui,"WeakMap"),uN="[object Map]",Iie="[object Object]",dN="[object Promise]",fN="[object Set]",hN="[object WeakMap]",mN="[object DataView]",Tie=gd(sE),Aie=gd(ng),Oie=gd(lE),Bie=gd(Pf),kie=gd(cE),gu=pd;(sE&&gu(new sE(new ArrayBuffer(1)))!=mN||ng&&gu(new ng)!=uN||lE&&gu(lE.resolve())!=dN||Pf&&gu(new Pf)!=fN||cE&&gu(new cE)!=hN)&&(gu=function(e){var t=pd(e),n=t==Iie?e.constructor:void 0,r=n?gd(n):"";if(r)switch(r){case Tie:return mN;case Aie:return uN;case Oie:return dN;case Bie:return fN;case kie:return hN}return t});const sh=gu;var Pie=Object.prototype,Rie=Pie.hasOwnProperty;function jie(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Rie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Nie(e,t){var n=t?YT(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lie=/\w*$/;function $ie(e){var t=new e.constructor(e.source,Lie.exec(e));return t.lastIndex=e.lastIndex,t}var pN=ri?ri.prototype:void 0,gN=pN?pN.valueOf:void 0;function Mie(e){return gN?Object(gN.call(e)):{}}var _ie="[object Boolean]",Fie="[object Date]",Wie="[object Map]",zie="[object Number]",Hie="[object RegExp]",Uie="[object Set]",Vie="[object String]",Gie="[object Symbol]",Yie="[object ArrayBuffer]",Kie="[object DataView]",qie="[object Float32Array]",Xie="[object Float64Array]",Qie="[object Int8Array]",Zie="[object Int16Array]",Jie="[object Int32Array]",ese="[object Uint8Array]",tse="[object Uint8ClampedArray]",nse="[object Uint16Array]",rse="[object Uint32Array]";function ose(e,t,n){var r=e.constructor;switch(t){case Yie:return YT(e);case _ie:case Fie:return new r(+e);case Kie:return Nie(e,n);case qie:case Xie:case Qie:case Zie:case Jie:case ese:case tse:case nse:case rse:return u3(e,n);case Wie:return new r;case zie:case Vie:return new r(e);case Hie:return $ie(e);case Uie:return new r;case Gie:return Mie(e)}}var ase="[object Map]";function ise(e){return Ds(e)&&sh(e)==ase}var vN=eh&&eh.isMap,sse=vN?Ph(vN):ise,lse="[object Set]";function cse(e){return Ds(e)&&sh(e)==lse}var bN=eh&&eh.isSet,use=bN?Ph(bN):cse,dse=1,fse=2,hse=4,x6="[object Arguments]",mse="[object Array]",pse="[object Boolean]",gse="[object Date]",vse="[object Error]",C6="[object Function]",bse="[object GeneratorFunction]",yse="[object Map]",xse="[object Number]",w6="[object Object]",Cse="[object RegExp]",wse="[object Set]",Sse="[object String]",Dse="[object Symbol]",Ese="[object WeakMap]",Ise="[object ArrayBuffer]",Tse="[object DataView]",Ase="[object Float32Array]",Ose="[object Float64Array]",Bse="[object Int8Array]",kse="[object Int16Array]",Pse="[object Int32Array]",Rse="[object Uint8Array]",jse="[object Uint8ClampedArray]",Nse="[object Uint16Array]",Lse="[object Uint32Array]",_n={};_n[x6]=_n[mse]=_n[Ise]=_n[Tse]=_n[pse]=_n[gse]=_n[Ase]=_n[Ose]=_n[Bse]=_n[kse]=_n[Pse]=_n[yse]=_n[xse]=_n[w6]=_n[Cse]=_n[wse]=_n[Sse]=_n[Dse]=_n[Rse]=_n[jse]=_n[Nse]=_n[Lse]=!0;_n[vse]=_n[C6]=_n[Ese]=!1;function Rf(e,t,n,r,o,a){var i,s=t&dse,l=t&fse,c=t&hse;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!Ho(e))return e;var d=fo(e);if(d){if(i=jie(e),!s)return KT(e,i)}else{var f=sh(e),h=f==C6||f==bse;if(Jf(e))return c3(e,s);if(f==w6||f==x6||h&&!o){if(i=l||h?{}:d3(e),!s)return l?Eie(e,yie(i,e)):Sie(e,bie(i,e))}else{if(!_n[f])return o?e:{};i=ose(e,f,s)}}a||(a=new Bi);var m=a.get(e);if(m)return m;a.set(e,i),use(e)?e.forEach(function(v){i.add(Rf(v,t,n,v,e,a))}):sse(e)&&e.forEach(function(v,b){i.set(b,Rf(v,t,n,b,e,a))});var g=c?l?y6:iE:l?av:pv,p=d?void 0:g(e);return mie(p||e,function(v,b){p&&(b=v,v=e[b]),FT(i,b,Rf(v,t,n,b,e,a))}),i}function $se(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Jx(e,t){t=ov(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bd(t[n++])];return n&&n==r?e:void 0}function S6(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}function Mse(e,t){return t.length<2?e:Jx(e,S6(t,0,-1))}function D6(e,t){return t=ov(t,e),e=Mse(e,t),e==null||delete e[bd($se(t))]}function _se(e){return rg(e)?void 0:e}var yN=ri?ri.isConcatSpreadable:void 0;function Fse(e){return fo(e)||Zf(e)||!!(yN&&e&&e[yN])}function e1(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=Fse),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?e1(s,t-1,n,r,o):LA(o,s):r||(o[o.length]=s)}return o}function E6(e){var t=e==null?0:e.length;return t?e1(e,1):[]}function Wse(e){return b3(v3(e,void 0,E6),e+"")}var zse=1,Hse=2,Use=4,I6=Wse(function(e,t){var n={};if(e==null)return n;var r=!1;t=pl(t,function(a){return a=ov(a,e),r||(r=a.length>1),a}),Rh(e,y6(e),n),r&&(n=Rf(n,zse|Hse|Use,_se));for(var o=t.length;o--;)D6(n,t[o]);return n});const za=mv("@@users"),Vse=60,Mn=class Mn extends br{constructor(){super(...arguments);q(this,"getMe",()=>{if(this.getState().users.current.status===X.LOADING)return;const r=Gt(Mn.getMeACs,async()=>{const o=await this.api.get("/users/me");return o==null?void 0:o.data})();return this.dispatch(r)});q(this,"getPermissions",()=>{if(this.getState().users.permissions.status!==X.PENDING)return;const r=Gt(Mn.getPermissionsACs,async()=>{const o=await this.api.get("/users/$me/permissions?expand=junctions");return o==null?void 0:o.data})();return this.dispatch(r)});q(this,"checkCountData",()=>{const n=new Date().getTime(),{lastRequested:r}=this.getState().users.countInformation;if(r!==null&&n<r+Vse)return;const o=Gt(Mn.getCountsACs,async()=>(await this.api.get("/users/me-counts")).data)();return this.dispatch(o)});q(this,"getUserByID",n=>{const{userID:r}=n,o=Gt(Mn.getUserACs,async()=>(await this.api.get(`/users/${r}/?expand[]=all`)).data)({userID:r});return this.dispatch(o)});q(this,"postUser",n=>{const r=Gt(Mn.postUserACs,async()=>(await this.api.post("/users",n)).data)(n);return this.dispatch(r)});q(this,"clearInviteUsers",this.bindDispatch(Mn.clearInviteUsersAC));q(this,"inviteUsersByGroupID",n=>{const{groupID:r,userIDs:o,emails:a}=n,i={userIDs:o,emails:a},s=Gt(Mn.inviteUsersACs,async()=>(await this.api.post(`/groups/${r}/invitations`,i)).data)(n);return this.dispatch(s)});q(this,"updateIDs",({userID:n,IDs:r})=>{this.dispatch(Mn.updateInviteeIDsAC({userID:n,IDs:r}))});q(this,"updateEmails",({userID:n,emails:r})=>{this.dispatch(Mn.updateInviteeEmailsAC({userID:n,emails:r}))});q(this,"updateEmailsString",({userID:n,emailsString:r})=>{this.dispatch(Mn.updateInviteeEmailsStringAC({userID:n,emailsString:r}))});q(this,"updateInvitees",({userID:n,invitees:r})=>{this.dispatch(Mn.updateInviteesAC({userID:n,invitees:r}))});q(this,"patchUser",n=>{const{userID:r}=n,o=`${r}-${n.patchID}`,a=Gt(Mn.patchUserAC,async()=>(await this.api.patch(`/users/${r}`,I6(n,"patchID"))).data)({...n,patchID:o});return this.dispatch(a)})}};q(Mn,"getMeACs",za.async("GET_ME")),q(Mn,"getPermissionsACs",za.async("GET_PERMISSIONS")),q(Mn,"getCountsACs",za.async("GET_ME_COUNTS")),q(Mn,"getUserACs",za.async("GET_USER")),q(Mn,"postUserACs",za.async("POST_USER")),q(Mn,"clearInviteUsersAC",za("CLEAR_INVITE_USER")),q(Mn,"inviteUsersACs",za.async("INVITE_USERS")),q(Mn,"updateInviteeIDsAC",za("UPDATE_INVITEE_IDS")),q(Mn,"updateInviteeEmailsAC",za("UPDATE_INVITEE_EMAIlS")),q(Mn,"updateInviteeEmailsStringAC",za("UPDATE_INVITEE_EMAIlS_STRING")),q(Mn,"updateInviteesAC",za("UPDATE_INVITEES")),q(Mn,"patchUserAC",za.async("PATCH_USER"));let En=Mn;function t1(){return Cd(En)}const rn=class rn extends br{constructor(){super(...arguments);q(this,"getNotification",n=>this.dispatchApi("get",`/notifications/${n}`,rn.getNotificationACs,{}));q(this,"getNotifications",()=>this.dispatchApi("get","/notifications",rn.getNotificationsACs,{}));q(this,"markRead",n=>this.dispatchApi("patch",`/notifications/${n}`,rn.markReadACs,{read:!0}));q(this,"markAllRead",()=>this.dispatchApi("patch","/notifications",rn.markAllReadACs,{read:!0}))}};q(rn,"GET_NOTIFICATION_REQUEST","@@notifications/GET_NOTIFICATION_REQUEST"),q(rn,"GET_NOTIFICATION_RESPONSE","@@notifications/GET_NOTIFICATION_RESPONSE"),q(rn,"GET_NOTIFICATION_ERROR","@@notifications/GET_NOTIFICATION_ERROR"),q(rn,"getNotificationACs",br.generateApiActionCreators(rn.GET_NOTIFICATION_REQUEST,rn.GET_NOTIFICATION_RESPONSE,rn.GET_NOTIFICATION_ERROR,{},{})),q(rn,"GET_NOTIFICATIONS_REQUEST","@@notifications/GET_NOTIFICATIONS_REQUEST"),q(rn,"GET_NOTIFICATIONS_RESPONSE","@@notifications/GET_NOTIFICATIONS_RESPONSE"),q(rn,"GET_NOTIFICATIONS_ERROR","@@notifications/GET_NOTIFICATIONS_ERROR"),q(rn,"getNotificationsACs",br.generateApiActionCreators(rn.GET_NOTIFICATIONS_REQUEST,rn.GET_NOTIFICATIONS_RESPONSE,rn.GET_NOTIFICATIONS_ERROR,{},{})),q(rn,"MARK_READ_REQUEST","@@notifications/MARK_READ_REQUEST"),q(rn,"MARK_READ_RESPONSE","@@notifications/MARK_READ_RESPONSE"),q(rn,"MARK_READ_ERROR","@@notifications/MARK_READ_ERROR"),q(rn,"markReadACs",br.generateApiActionCreators(rn.MARK_READ_REQUEST,rn.MARK_READ_RESPONSE,rn.MARK_READ_ERROR,{},{})),q(rn,"MARK_ALL_READ_REQUEST","@@notifications/MARK_ALL_READ_REQUEST"),q(rn,"MARK_ALL_READ_RESPONSE","@@notifications/MARK_ALL_READ_RESPONSE"),q(rn,"MARK_ALL_READ_ERROR","@@notifications/MARK_ALL_READ_ERROR"),q(rn,"markAllReadACs",br.generateApiActionCreators(rn.MARK_ALL_READ_REQUEST,rn.MARK_ALL_READ_RESPONSE,rn.MARK_ALL_READ_ERROR,{},{})),q(rn,"ACTION_TYPES");let Bu=rn;var Gse=4;function Bc(e){return Rf(e,Gse)}const T6=new cy().reducer,Yse={current:{status:X.PENDING},permissions:{status:X.PENDING},countInformation:{counts:[],lastRequested:null},suggestions:T6(void 0,""),usersByID:{},usersInvitationsByID:{},postFormSubmit:{status:X.PENDING},patchStatusByUserID:{},patchStatusByPatchID:{}},A6=0;function O6(e){return e&&e.userID===A6}const Kse=fa(Vi(Bc(Yse)).case(En.getMeACs.started,e=>(e.current.status=X.LOADING,e)).case(En.getMeACs.done,(e,t)=>(e.current.data=t.result,e.current.status=X.SUCCESS,e)).case(En.getMeACs.failed,(e,t)=>(e.current.status=X.ERROR,e.current.error=t.error,e)).case(En.getPermissionsACs.started,e=>(e.permissions.status=X.LOADING,e)).case(En.getPermissionsACs.done,(e,t)=>(e.permissions.data=t.result,e.permissions.status=X.SUCCESS,e)).case(En.getPermissionsACs.failed,(e,t)=>(e.permissions.status=X.ERROR,e.permissions.error=t.error,e)).case(En.getCountsACs.started,e=>(e.countInformation.lastRequested=new Date().getTime(),e)).case(En.getCountsACs.done,(e,t)=>(e.countInformation.counts=t.result.counts,e)).case(En.getUserACs.started,(e,t)=>{const{userID:n}=t;return e.usersByID[n]={status:X.LOADING},e}).case(En.getUserACs.done,(e,t)=>{const{userID:n}=t.params;return e.usersByID[n]={data:t.result,status:X.SUCCESS},e}).case(En.getUserACs.failed,(e,t)=>{const{userID:n}=t.params;return e.usersByID[n]={status:X.ERROR,error:t.error},e}).case(En.postUserACs.started,(e,t)=>(e.postFormSubmit.status=X.LOADING,e)).case(En.postUserACs.failed,(e,t)=>(e.postFormSubmit.status=X.ERROR,e.postFormSubmit.error=t.error,e)).case(En.postUserACs.done,(e,t)=>{const n=t.result.userID;return e.postFormSubmit.status=X.SUCCESS,e.usersByID[n]={data:t.result,status:X.SUCCESS},e}).case(En.inviteUsersACs.started,(e,t)=>{const{userID:n}=t;return e.usersInvitationsByID[n].results={status:X.LOADING},e}).case(En.inviteUsersACs.done,(e,t)=>{const{userID:n}=t.params;return e.usersInvitationsByID[n].results={status:X.SUCCESS,data:t.result},e.usersInvitationsByID[n].emailsString="",e.usersInvitationsByID[n].invitees=[],e}).case(En.clearInviteUsersAC,(e,t)=>{const{userID:n}=t;return delete e.usersInvitationsByID[n],e}).case(En.inviteUsersACs.failed,(e,t)=>{const{userID:n}=t.params;return e.usersInvitationsByID[n].results={status:X.ERROR,error:t.error},e}).case(En.updateInviteeIDsAC,(e,t)=>{var o;const{userID:n,IDs:r}=t;return e.usersInvitationsByID[n]={...e.usersInvitationsByID[n],userIDs:[...((o=e.usersInvitationsByID[n])==null?void 0:o.userIDs)??[],...r]},e}).case(En.updateInviteesAC,(e,t)=>{const{userID:n,invitees:r}=t;return e.usersInvitationsByID[n]={...e.usersInvitationsByID[n],invitees:r},e}).case(En.updateInviteeEmailsAC,(e,t)=>{var o;const{userID:n,emails:r}=t;return e.usersInvitationsByID[n]={...e.usersInvitationsByID[n],emails:[...((o=e.usersInvitationsByID[n])==null?void 0:o.emails)??[],...r]},e}).case(En.updateInviteeEmailsStringAC,(e,t)=>{const{userID:n,emailsString:r}=t;return e.usersInvitationsByID[n]={...e.usersInvitationsByID[n],emailsString:r},e}).case(En.patchUserAC.started,(e,t)=>{const{patchID:n}=t;return e.patchStatusByPatchID[n]={...e.patchStatusByPatchID[n]??{},status:X.LOADING},e}).case(En.patchUserAC.done,(e,t)=>{var o,a;const{userID:n,patchID:r}=t.params;return(o=e.usersByID[n])!=null&&o.data&&(e.usersByID[n].data={...(a=e.usersByID[n])==null?void 0:a.data,...t.result}),e.patchStatusByPatchID[r]={status:X.SUCCESS},e}).case(En.patchUserAC.failed,(e,t)=>{const{patchID:n}=t.params;return e.patchStatusByPatchID[n]={status:X.ERROR,error:t.error},e}).default((e,t)=>(t.type===Bu.MARK_ALL_READ_RESPONSE&&e.current.data&&(e.current.data.countUnreadNotifications=0),e.suggestions=T6(e.suggestions,t),e)));function qft(e){if(!e.users||!e.users.current)throw new Error(`It seems you did not initialize the users model correctly. Could not find "users.current" in state: ${e}`);return{currentUser:e.users.current}}const qse=mv("@@locales"),h0=qse.async("GET_ALL"),Xse={locales:{status:X.PENDING}},Qse=fa(Vi(Xse).case(h0.started,(e,t)=>(e.locales.status=X.LOADING,e)).case(h0.done,(e,t)=>(e.locales.status=X.SUCCESS,e.locales.data=t.result,e)).case(h0.failed,(e,t)=>(e.locales.status=X.ERROR,e.locales.error=t.error,e)));class B6{constructor(){q(this,"initialState",{notificationsByID:{data:{},status:X.PENDING}});q(this,"reducer",(t=this.initialState,n)=>fa(t,r=>{switch(n.type){case Bu.GET_NOTIFICATIONS_REQUEST:r.notificationsByID.status=X.LOADING;break;case Bu.GET_NOTIFICATIONS_RESPONSE:{r.notificationsByID.status=X.SUCCESS,r.notificationsByID.data={},n.payload.data.forEach(a=>{r.notificationsByID.data[a.notificationID]=a});break}case Bu.GET_NOTIFICATIONS_ERROR:r.notificationsByID.status=X.ERROR,r.notificationsByID.error=n.payload;break;case Bu.MARK_ALL_READ_RESPONSE:{const{data:o}=r.notificationsByID;if(o)for(const a of Object.keys(o))o[a].read=!0;break}}}))}}const gi=class gi extends br{constructor(){super(...arguments);q(this,"getConversations",(n={})=>this.dispatchApi("get","/conversations",gi.getConversationsACs,n))}};q(gi,"GET_CONVERSATIONS_REQUEST","@@conversations/GET_CONVERSATIONS_REQUEST"),q(gi,"GET_CONVERSATIONS_RESPONSE","@@conversations/GET_CONVERSATIONS_RESPONSE"),q(gi,"GET_CONVERSATIONS_ERROR","@@conversations/GET_CONVERSATIONS_ERROR"),q(gi,"getConversationsACs",br.generateApiActionCreators(gi.GET_CONVERSATIONS_REQUEST,gi.GET_CONVERSATIONS_RESPONSE,gi.GET_CONVERSATIONS_ERROR,{},{})),q(gi,"ACTION_TYPES");let Lp=gi;class Zse{constructor(){q(this,"initialState",{conversationsByID:{data:{},status:X.PENDING}});q(this,"reducer",(t=this.initialState,n)=>fa(t,r=>{switch(n.type){case Lp.GET_CONVERSATIONS_REQUEST:r.conversationsByID.status=X.LOADING;break;case Lp.GET_CONVERSATIONS_RESPONSE:{r.conversationsByID.status=X.SUCCESS,r.conversationsByID.data={},n.payload.data.forEach(a=>{r.conversationsByID.data[a.conversationID]=a});break}case Lp.GET_CONVERSATIONS_ERROR:r.conversationsByID.status=X.ERROR,r.conversationsByID.error=n.payload;break}}))}}const Jse=$h("@@tags"),Tx=class Tx extends br{constructor(){super(...arguments);q(this,"getTagsInternal",n=>{const r=Gt(Tx.getTagsACs,async()=>(await this.api.get(`/tags?query=${n.name}`)).data)(n);return this.dispatch(r)});q(this,"getTags",Ra(this.getTagsInternal,100))}};q(Tx,"getTagsACs",Jse.async("GET"));let jf=Tx;function Xft(){return Cd(jf)}const ele={tagsByName:{}},tle=fa(Vi(ele).case(jf.getTagsACs.started,(e,t)=>(e.tagsByName[t.name]={status:X.LOADING},e)).case(jf.getTagsACs.done,(e,t)=>(e.tagsByName[t.params.name]={status:X.SUCCESS,data:t.result},e)).case(jf.getTagsACs.failed,(e,t)=>(e.tagsByName[t.params.name]={status:X.ERROR},e)));var nle="__lodash_hash_undefined__";function rle(e){return this.__data__.set(e,nle),this}function ole(e){return this.__data__.has(e)}function id(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ll;++t<n;)this.add(e[t])}id.prototype.add=id.prototype.push=rle;id.prototype.has=ole;function ale(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function ile(e){return e!==e}function sle(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function lle(e,t,n){return t===t?sle(e,t,n):ale(e,ile,n)}function $A(e,t){var n=e==null?0:e.length;return!!n&&lle(e,t,0)>-1}function MA(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function lg(e,t){return e.has(t)}var cle=Math.min;function ule(e,t,n){for(var r=n?MA:$A,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,c=[];i--;){var d=e[i];i&&t&&(d=pl(d,Ph(t))),l=cle(d.length,l),s[i]=!n&&(t||o>=120&&d.length>=120)?new id(i&&d):void 0}d=e[0];var f=-1,h=s[0];e:for(;++f<o&&c.length<l;){var m=d[f],g=t?t(m):m;if(m=n||m!==0?m:0,!(h?lg(h,g):r(c,g,n))){for(i=a;--i;){var p=s[i];if(!(p?lg(p,g):r(e[i],g,n)))continue e}h&&h.push(g),c.push(m)}}return c}function dle(e){return X0(e)?e:[]}var k6=Fx(function(e){var t=pl(e,dle);return t.length&&t[0]===e[0]?ule(t):[]});const fle=1e4;class _A{static parseHeaders(t){t=t??{};const n={};return"x-app-page-next-url"in t&&(n.nextURL=t["x-app-page-next-url"]),"x-app-page-prev-url"in t&&(n.prevURL=t["x-app-page-prev-url"]),"x-app-page-result-count"in t&&(n.total=parseInt(t["x-app-page-result-count"])),"x-app-page-current"in t&&(n.currentPage=parseInt(t["x-app-page-current"]),n.nextURL&&(n.next=n.currentPage+1),n.prevURL&&(n.prev=n.currentPage-1)),"x-app-page-limit"in t&&(n.limit=parseInt(t["x-app-page-limit"])),n}}const Ko=mv("@@discussions"),xn=class xn extends br{constructor(){super(...arguments);q(this,"getDiscussionList",n=>{const r=Gt(xn.getDiscussionListACs,async()=>{const o=["insertUser","breadcrumbs"],a=await this.api.get("/discussions",{params:{...n,expand:n.expand&&n.expand.length?[...o,...n.expand]:o}}),i=_A.parseHeaders(a.headers);return{data:a.data,pagination:i}})(n);return this.dispatch(r)});q(this,"getDiscussionByID",n=>{const{discussionID:r}=n,o=Gt(xn.getDiscussionByIDACs,async()=>(await this.api.get(`/discussions/${r}`,{params:{expand:["insertUser","breadcrumbs"]}})).data)({discussionID:r});return this.dispatch(o)});q(this,"patchDiscussion",n=>{const{discussionID:r,patchStatusID:o,...a}=n,i={params:{expand:["category"]}};return Gt(xn.patchDiscussionACs,async()=>(await this.api.patch(`/discussions/${r}`,a,i)).data)(n)});q(this,"putDiscussionType",n=>{const{discussionID:r,type:o}=n;return Gt(xn.putDiscussionTypeACs,async()=>(await this.api.put(`/discussions/${r}/type`,{type:o})).data)({discussionID:r,type:o})});q(this,"putDiscussionBookmarked",n=>{const{discussionID:r,bookmarked:o}=n;return Gt(xn.putDiscussionBookmarkedACs,async()=>(await this.api.put(`/discussions/${r}/bookmark`,{bookmarked:o})).data)({discussionID:r,bookmarked:o})});q(this,"postDiscussionReaction",n=>{const{discussionID:r,reaction:o}=n,a=Gt(xn.postDiscussionReactionACs,async()=>(await this.api.post(`/discussions/${r}/reactions`,{reactionType:o.urlcode})).data)(n);return this.dispatch(a)});q(this,"deleteDiscussionReaction",n=>{const{discussionID:r}=n,o=Gt(xn.deleteDiscussionReactionACs,async()=>(await this.api.delete(`/discussions/${r}/reactions`)).data)(n);return this.dispatch(o)});q(this,"deleteDiscussion",n=>{const{discussionID:r}=n,o=async()=>(await this.api.delete(`/discussions/${r}`)).data,a=Gt(xn.deleteDiscussionACs,o)({discussionID:r});return this.dispatch(a)});q(this,"bulkDeleteDiscussion",n=>{const{discussionIDs:r}=n,o=async()=>(await this.api.delete("/discussions/list",{params:{longRunnerMode:"sync"},data:{discussionIDs:r}})).data,a=Gt(xn.bulkDeleteDiscussionsACs,o)({discussionIDs:r});return this.dispatch(a)});q(this,"putDiscussionTags",n=>{const{discussionID:r,tagIDs:o}=n;return Gt(xn.putDiscussionTagsACs,async()=>(await this.api.put(`/discussions/${r}/tags`,{tagIDs:o})).data)({discussionID:r,tagIDs:o})});q(this,"getDiscussionByIDs",(n,r=!1)=>{let{discussionIDs:o}=n;if(n.limit||(n.limit=n.discussionIDs.length),r){const i=Object.keys(this.getState().discussions.discussionsByID).map(s=>parseInt(s));o=k6(o,i)}return Gt(xn.getDiscussionsByIDsAC,async()=>{let i=[];return o.length>0&&(i=(await this.api.get("/discussions",{params:{...n,discussionID:n.discussionIDs}})).data),i})(n)});q(this,"bulkMoveDiscussions",n=>{const{discussionIDs:r,categoryID:o,addRedirects:a,category:i}=n,s=async()=>(await this.api.patch("discussions/move",{discussionIDs:r,categoryID:o,addRedirects:a},{params:{longRunnerMode:"sync"}})).data,l=Gt(xn.bulkMoveDiscussionsACs,s)({discussionIDs:r,categoryID:o,addRedirects:a,category:i});return this.dispatch(l)});q(this,"bulkCloseDiscussions",n=>{const{discussionIDs:r,closed:o}=n,a=async()=>(await this.api.patch("discussions/close",{discussionIDs:r,closed:o},{params:{longRunnerMode:"sync"}})).data,i=Gt(xn.bulkCloseDiscussionsACs,a)({discussionIDs:r,closed:o});return this.dispatch(i)});q(this,"getCategoryByID",n=>{const{categoryID:r}=n,o=Gt(xn.getCategoryByIDACs,async()=>(await this.api.get(`/categories/${r}`)).data)({categoryID:r});return this.dispatch(o)})}};q(xn,"getDiscussionListACs",Ko.async("GET_DISCUSSION_LIST")),q(xn,"getDiscussionByIDACs",Ko.async("GET_DISCUSSION")),q(xn,"patchDiscussionACs",Ko.async("PATCH_DISCUSSION")),q(xn,"putDiscussionTypeACs",Ko.async("PUT_DISCUSSION_TYPE")),q(xn,"putDiscussionBookmarkedACs",Ko.async("PUT_DISCUSSION_BOOKMARKED")),q(xn,"postDiscussionReactionACs",Ko.async("POST_DISCUSSION_REACTION")),q(xn,"deleteDiscussionReactionACs",Ko.async("DELETE_DISCUSSION_REACTION")),q(xn,"deleteDiscussionACs",Ko.async("DELETE_DISCUSSION")),q(xn,"bulkDeleteDiscussionsACs",Ko.async("BULK_DELETE_DISCUSSIONS")),q(xn,"putDiscussionTagsACs",Ko.async("PUT_DISCUSSION_TAGS")),q(xn,"getDiscussionsByIDsAC",Ko.async("GET_DISCUSSIONS_BY_ID")),q(xn,"bulkMoveDiscussionsACs",Ko.async("BULK_MOVE_DISCUSSIONS")),q(xn,"bulkCloseDiscussionsACs",Ko.async("BULK_CLOSE_DISCUSSIONS")),q(xn,"getCategoryByIDACs",Ko.async("GET_CATEGORY"));let Nt=xn;function Go(){return Cd(Nt)}var hle=200;function mle(e,t,n,r){var o=-1,a=$A,i=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=pl(t,Ph(n))),r?(a=MA,i=!1):t.length>=hle&&(a=lg,i=!1,t=new id(t));e:for(;++o<s;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,i&&f===f){for(var h=c;h--;)if(t[h]===f)continue e;l.push(d)}else a(t,f,r)||l.push(d)}return l}var ple=Fx(function(e,t){return X0(e)?mle(e,e1(t,1,X0,!0)):[]});function yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function kc(e){return!!e&&!!e[ar]}function Sl(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Dle}(e)||Array.isArray(e)||!!e[IN]||!!(!((t=e.constructor)===null||t===void 0)&&t[IN])||FA(e)||WA(e))}function sd(e,t,n){n===void 0&&(n=!1),_h(e)===0?(n?Object.keys:Lf)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function _h(e){var t=e[ar];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:FA(e)?2:WA(e)?3:0}function Nf(e,t){return _h(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gle(e,t){return _h(e)===2?e.get(t):e[t]}function P6(e,t,n){var r=_h(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function R6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function FA(e){return wle&&e instanceof Map}function WA(e){return Sle&&e instanceof Set}function vu(e){return e.o||e.t}function zA(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=N6(e);delete t[ar];for(var n=Lf(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function HA(e,t){return t===void 0&&(t=!1),UA(e)||kc(e)||!Sl(e)||(_h(e)>1&&(e.set=e.add=e.clear=e.delete=vle),Object.freeze(e),t&&sd(e,function(n,r){return HA(r,!0)},!0)),e}function vle(){yi(2)}function UA(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bs(e){var t=hE[e];return t||yi(18,e),t}function ble(e,t){hE[e]||(hE[e]=t)}function uE(){return cg}function Yw(e,t){t&&(bs("Patches"),e.u=[],e.s=[],e.v=t)}function uy(e){dE(e),e.p.forEach(yle),e.p=null}function dE(e){e===cg&&(cg=e.l)}function xN(e){return cg={p:[],l:cg,h:e,m:!0,_:0}}function yle(e){var t=e[ar];t.i===0||t.i===1?t.j():t.g=!0}function Kw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bs("ES5").S(t,e,r),r?(n[ar].P&&(uy(t),yi(4)),Sl(e)&&(e=dy(t,e),t.l||fy(t,e)),t.u&&bs("Patches").M(n[ar].t,e,t.u,t.s)):e=dy(t,n,[]),uy(t),t.u&&t.v(t.u,t.s),e!==j6?e:void 0}function dy(e,t,n){if(UA(t))return t;var r=t[ar];if(!r)return sd(t,function(s,l){return CN(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return fy(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=zA(r.k):r.o,a=o,i=!1;r.i===3&&(a=new Set(o),o.clear(),i=!0),sd(a,function(s,l){return CN(e,r,o,s,l,n,i)}),fy(e,o,!1),n&&e.u&&bs("Patches").N(r,n,e.u,e.s)}return r.o}function CN(e,t,n,r,o,a,i){if(kc(o)){var s=dy(e,o,a&&t&&t.i!==3&&!Nf(t.R,r)?a.concat(r):void 0);if(P6(n,r,s),!kc(s))return;e.m=!1}else i&&n.add(o);if(Sl(o)&&!UA(o)){if(!e.h.D&&e._<1)return;dy(e,o),t&&t.A.l||fy(e,o)}}function fy(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&HA(t,n)}function qw(e,t){var n=e[ar];return(n?vu(n):e)[t]}function wN(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function sc(e){e.P||(e.P=!0,e.l&&sc(e.l))}function Xw(e){e.o||(e.o=zA(e.t))}function fE(e,t,n){var r=FA(t)?bs("MapSet").F(t,n):WA(t)?bs("MapSet").T(t,n):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:uE(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,c=ug;i&&(l=[s],c=yp);var d=Proxy.revocable(l,c),f=d.revoke,h=d.proxy;return s.k=h,s.j=f,h}(t,n):bs("ES5").J(t,n);return(n?n.A:uE()).p.push(r),r}function xle(e){return kc(e)||yi(22,e),function t(n){if(!Sl(n))return n;var r,o=n[ar],a=_h(n);if(o){if(!o.P&&(o.i<4||!bs("ES5").K(o)))return o.t;o.I=!0,r=SN(n,a),o.I=!1}else r=SN(n,a);return sd(r,function(i,s){o&&gle(o.t,i)===s||P6(r,i,t(s))}),a===3?new Set(r):r}(e)}function SN(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zA(e)}function Cle(){function e(a,i){var s=o[a];return s?s.enumerable=i:o[a]=s={configurable:!0,enumerable:i,get:function(){var l=this[ar];return ug.get(l,a)},set:function(l){var c=this[ar];ug.set(c,a,l)}},s}function t(a){for(var i=a.length-1;i>=0;i--){var s=a[i][ar];if(!s.P)switch(s.i){case 5:r(s)&&sc(s);break;case 4:n(s)&&sc(s)}}}function n(a){for(var i=a.t,s=a.k,l=Lf(s),c=l.length-1;c>=0;c--){var d=l[c];if(d!==ar){var f=i[d];if(f===void 0&&!Nf(i,d))return!0;var h=s[d],m=h&&h[ar];if(m?m.t!==f:!R6(h,f))return!0}}var g=!!i[ar];return l.length!==Lf(i).length+(g?0:1)}function r(a){var i=a.k;if(i.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(i,i.length-1);if(s&&!s.get)return!0;for(var l=0;l<i.length;l++)if(!i.hasOwnProperty(l))return!0;return!1}var o={};ble("ES5",{J:function(a,i){var s=Array.isArray(a),l=function(d,f){if(d){for(var h=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(h,""+m,e(m,!0));return h}var g=N6(f);delete g[ar];for(var p=Lf(g),v=0;v<p.length;v++){var b=p[v];g[b]=e(b,d||!!g[b].enumerable)}return Object.create(Object.getPrototypeOf(f),g)}(s,a),c={i:s?5:4,A:i?i.A:uE(),P:!1,I:!1,R:{},l:i,t:a,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,ar,{value:c,writable:!0}),l},S:function(a,i,s){s?kc(i)&&i[ar].A===a&&t(a.p):(a.u&&function l(c){if(c&&typeof c=="object"){var d=c[ar];if(d){var f=d.t,h=d.k,m=d.R,g=d.i;if(g===4)sd(h,function(C){C!==ar&&(f[C]!==void 0||Nf(f,C)?m[C]||l(h[C]):(m[C]=!0,sc(d)))}),sd(f,function(C){h[C]!==void 0||Nf(h,C)||(m[C]=!1,sc(d))});else if(g===5){if(r(d)&&(sc(d),m.length=!0),h.length<f.length)for(var p=h.length;p<f.length;p++)m[p]=!1;else for(var v=f.length;v<h.length;v++)m[v]=!0;for(var b=Math.min(h.length,f.length),y=0;y<b;y++)h.hasOwnProperty(y)||(m[y]=!0),m[y]===void 0&&l(h[y])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?n(a):r(a)}})}var DN,cg,VA=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wle=typeof Map<"u",Sle=typeof Set<"u",EN=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",j6=VA?Symbol.for("immer-nothing"):((DN={})["immer-nothing"]=!0,DN),IN=VA?Symbol.for("immer-draftable"):"__$immer_draftable",ar=VA?Symbol.for("immer-state"):"__$immer_state",Dle=""+Object.prototype.constructor,Lf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,N6=Object.getOwnPropertyDescriptors||function(e){var t={};return Lf(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},hE={},ug={get:function(e,t){if(t===ar)return e;var n=vu(e);if(!Nf(n,t))return function(o,a,i){var s,l=wN(a,i);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Sl(r)?r:r===qw(e.t,t)?(Xw(e),e.o[t]=fE(e.A.h,r,e)):r},has:function(e,t){return t in vu(e)},ownKeys:function(e){return Reflect.ownKeys(vu(e))},set:function(e,t,n){var r=wN(vu(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=qw(vu(e),t),a=o==null?void 0:o[ar];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(R6(n,o)&&(n!==void 0||Nf(e.t,t)))return!0;Xw(e),sc(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return qw(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Xw(e),sc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=vu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){yi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yi(12)}},yp={};sd(ug,function(e,t){yp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),yp.deleteProperty=function(e,t){return yp.set.call(this,e,t,void 0)},yp.set=function(e,t,n){return ug.set.call(this,e[0],t,n,e[0])};var Ele=function(){function e(n){var r=this;this.O=EN,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var l=r;return function(p){var v=this;p===void 0&&(p=s);for(var b=arguments.length,y=Array(b>1?b-1:0),C=1;C<b;C++)y[C-1]=arguments[C];return l.produce(p,function(D){var A;return(A=a).call.apply(A,[v,D].concat(y))})}}var c;if(typeof a!="function"&&yi(6),i!==void 0&&typeof i!="function"&&yi(7),Sl(o)){var d=xN(r),f=fE(r,o,void 0),h=!0;try{c=a(f),h=!1}finally{h?uy(d):dE(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return Yw(d,i),Kw(p,d)},function(p){throw uy(d),p}):(Yw(d,i),Kw(c,d))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===j6&&(c=void 0),r.D&&HA(c,!0),i){var m=[],g=[];bs("Patches").M(o,c,m,g),i(m,g)}return c}yi(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];return r.produceWithPatches(c,function(m){return o.apply(void 0,[m].concat(f))})};var i,s,l=r.produce(o,a,function(c,d){i=c,s=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,i,s]}):[l,i,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Sl(n)||yi(8),kc(n)&&(n=xle(n));var r=xN(this),o=fE(this,n,void 0);return o[ar].C=!0,dE(r),o},t.finishDraft=function(n,r){var o=n&&n[ar],a=o.A;return Yw(a,r),Kw(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!EN&&yi(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=bs("Patches").$;return kc(n)?i(n,r):this.produce(n,function(s){return i(s,r)})},e}(),Ia=new Ele,L6=Ia.produce;Ia.produceWithPatches.bind(Ia);Ia.setAutoFreeze.bind(Ia);Ia.setUseProxies.bind(Ia);Ia.applyPatches.bind(Ia);Ia.createDraft.bind(Ia);Ia.finishDraft.bind(Ia);var $6=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ile=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(d){c=[6,d],o=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lh=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Tle=Object.defineProperty,Ale=Object.defineProperties,Ole=Object.getOwnPropertyDescriptors,TN=Object.getOwnPropertySymbols,Ble=Object.prototype.hasOwnProperty,kle=Object.prototype.propertyIsEnumerable,AN=function(e,t,n){return t in e?Tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Dc=function(e,t){for(var n in t||(t={}))Ble.call(t,n)&&AN(e,n,t[n]);if(TN)for(var r=0,o=TN(t);r<o.length;r++){var n=o[r];kle.call(t,n)&&AN(e,n,t[n])}return e},Qw=function(e,t){return Ale(e,Ole(t))},Ple=function(e,t,n){return new Promise(function(r,o){var a=function(l){try{s(n.next(l))}catch(c){o(c)}},i=function(l){try{s(n.throw(l))}catch(c){o(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,i)};s((n=n.apply(e,t)).next())})},Rle=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?V0:V0.apply(null,arguments)};function jle(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function vl(e,t){function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t){var a=t.apply(void 0,r);if(!a)throw new Error("prepareAction did not return an object");return Dc(Dc({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}var Nle=function(e){$6(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,lh([void 0],n[0].concat(this)))):new(t.bind.apply(t,lh([void 0],n.concat(this))))},t}(Array),Lle=function(e){$6(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,lh([void 0],n[0].concat(this)))):new(t.bind.apply(t,lh([void 0],n.concat(this))))},t}(Array);function mE(e){return Sl(e)?L6(e,function(){}):e}function $le(e){return typeof e=="boolean"}function Mle(){return function(t){return _le(t)}}function _le(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new Nle;return n&&($le(n)?r.push(LD):r.push(LD.withExtraArgument(n.extraArgument))),r}var Fle=!0;function n1(e){var t=Mle(),n=e||{},r=n.reducer,o=r===void 0?void 0:r,a=n.middleware,i=a===void 0?t():a,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,d=c===void 0?void 0:c,f=n.enhancers,h=f===void 0?void 0:f,m;if(typeof o=="function")m=o;else if(jle(o))m=Bx(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=i;typeof g=="function"&&(g=g(t));var p=H4.apply(void 0,g),v=V0;l&&(v=Rle(Dc({trace:!Fle},typeof l=="object"&&l)));var b=new Lle(p),y=b;Array.isArray(h)?y=lh([p],h):typeof h=="function"&&(y=h(b));var C=v.apply(void 0,y);return U4(m,d,C)}function M6(e){var t={},n=[],r,o={addCase:function(a,i){var s=typeof a=="string"?a:a.type;if(!s)throw new Error("`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[s]=i,o},addMatcher:function(a,i){return n.push({matcher:a,reducer:i}),o},addDefaultCase:function(a){return r=a,o}};return e(o),[t,n,r]}function Wle(e){return typeof e=="function"}function zle(e,t,n,r){n===void 0&&(n=[]);var o=typeof t=="function"?M6(t):[t,n,r],a=o[0],i=o[1],s=o[2],l;if(Wle(e))l=function(){return mE(e())};else{var c=mE(e);l=function(){return c}}function d(f,h){f===void 0&&(f=l());var m=lh([a[h.type]],i.filter(function(g){var p=g.matcher;return p(h)}).map(function(g){var p=g.reducer;return p}));return m.filter(function(g){return!!g}).length===0&&(m=[s]),m.reduce(function(g,p){if(p)if(kc(g)){var v=g,b=p(v,h);return b===void 0?g:b}else{if(Sl(g))return L6(g,function(y){return p(y,h)});var b=p(g,h);if(b===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return g},f)}return d.getInitialState=l,d}function Hle(e,t){return e+"/"+t}function r1(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:mE(e.initialState),r=e.reducers||{},o=Object.keys(r),a={},i={},s={};o.forEach(function(d){var f=r[d],h=Hle(t,d),m,g;"reducer"in f?(m=f.reducer,g=f.prepare):m=f,a[d]=m,i[h]=m,s[d]=g?vl(h,g):vl(h)});function l(){var d=typeof e.extraReducers=="function"?M6(e.extraReducers):[e.extraReducers],f=d[0],h=f===void 0?{}:f,m=d[1],g=m===void 0?[]:m,p=d[2],v=p===void 0?void 0:p,b=Dc(Dc({},h),i);return zle(n,function(y){for(var C in b)y.addCase(C,b[C]);for(var D=0,A=g;D<A.length;D++){var T=A[D];y.addMatcher(T.matcher,T.reducer)}v&&y.addDefaultCase(v)})}var c;return{name:t,reducer:function(d,f){return c||(c=l()),c(d,f)},actions:s,caseReducers:a,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Ule="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vle=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=Ule[Math.random()*64|0];return t},Gle=["name","message","stack","code"],Zw=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),ON=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Yle=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Gle;n<r.length;n++){var o=r[n];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},so=function(){function e(t,n,r){var o=vl(t+"/fulfilled",function(c,d,f,h){return{payload:c,meta:Qw(Dc({},h||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),a=vl(t+"/pending",function(c,d,f){return{payload:void 0,meta:Qw(Dc({},f||{}),{arg:d,requestId:c,requestStatus:"pending"})}}),i=vl(t+"/rejected",function(c,d,f,h,m){return{payload:h,error:(r&&r.serializeError||Yle)(c||"Rejected"),meta:Qw(Dc({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(d,f,h){var m=r!=null&&r.idGenerator?r.idGenerator(c):Vle(),g=new s,p;function v(y){p=y,g.abort()}var b=function(){return Ple(this,null,function(){var y,C,D,A,T,B,j;return Ile(this,function(R){switch(R.label){case 0:return R.trys.push([0,4,,5]),A=(y=r==null?void 0:r.condition)==null?void 0:y.call(r,c,{getState:f,extra:h}),qle(A)?[4,A]:[3,2];case 1:A=R.sent(),R.label=2;case 2:if(A===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=new Promise(function(N,_){return g.signal.addEventListener("abort",function(){return _({name:"AbortError",message:p||"Aborted"})})}),d(a(m,c,(C=r==null?void 0:r.getPendingMeta)==null?void 0:C.call(r,{requestId:m,arg:c},{getState:f,extra:h}))),[4,Promise.race([T,Promise.resolve(n(c,{dispatch:d,getState:f,extra:h,requestId:m,signal:g.signal,abort:v,rejectWithValue:function(N,_){return new Zw(N,_)},fulfillWithValue:function(N,_){return new ON(N,_)}})).then(function(N){if(N instanceof Zw)throw N;return N instanceof ON?o(N.payload,m,c,N.meta):o(N,m,c)})])];case 3:return D=R.sent(),[3,5];case 4:return B=R.sent(),D=B instanceof Zw?i(null,m,c,B.payload,B.meta):i(B,m,c),[3,5];case 5:return j=r&&!r.dispatchConditionRejection&&i.match(D)&&D.meta.condition,j||d(D),[2,D]}})})}();return Object.assign(b,{abort:v,requestId:m,arg:c,unwrap:function(){return b.then(Kle)}})}}return Object.assign(l,{pending:a,rejected:i,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function Kle(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function qle(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var GA="listenerMiddleware";vl(GA+"/add");vl(GA+"/removeAll");vl(GA+"/remove");var BN;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);Cle();const Xle={discussionsByID:{},discussionIDsByParamHash:{},fullRecordStatusesByID:{},bookmarkStatusesByID:{},patchStatusByPatchID:{},deleteStatusesByID:{},changeTypeByID:{},postReactionStatusesByID:{},deleteReactionStatusesByID:{},putTagsByID:{},categoriesStatusesByID:{},categoriesByID:{}};function sb(e,t,n){var i,s;const r=((i=n.removeReaction)==null?void 0:i.reactionValue)??0,o=((s=n.addReaction)==null?void 0:s.reactionValue)??0,a=e.discussionsByID[t].score-r+o;return e.discussionsByID[t].score=a,e.discussionsByID[t].reactions=e.discussionsByID[t].reactions.map(l=>{var c;return{...l,hasReacted:l.urlcode===((c=n.addReaction)==null?void 0:c.urlcode)}}),e}const _6=fa(Vi(Xle).case(Nt.getDiscussionByIDACs.started,(e,t)=>{const{discussionID:n}=t;return e.fullRecordStatusesByID[n]={status:X.LOADING},e}).case(Nt.getDiscussionByIDACs.failed,(e,t)=>{const{discussionID:n}=t.params;return e.fullRecordStatusesByID[n]={status:X.ERROR,error:t.error},e}).case(Nt.getDiscussionByIDACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.fullRecordStatusesByID[n]={status:X.SUCCESS},e.discussionsByID[n]={...e.discussionsByID[n],...t.result},e}).case(Nt.putDiscussionBookmarkedACs.started,(e,t)=>{const{discussionID:n,bookmarked:r}=t;return e.bookmarkStatusesByID[n]={status:X.LOADING},e.discussionsByID[n]={...e.discussionsByID[n],bookmarked:r},e}).case(Nt.putDiscussionBookmarkedACs.failed,(e,t)=>{const{discussionID:n}=t.params;return e.bookmarkStatusesByID[n]={status:X.ERROR,error:t.error},e.discussionsByID[n]={...e.discussionsByID[n],bookmarked:!e.discussionsByID[n].bookmarked},e}).case(Nt.putDiscussionBookmarkedACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.bookmarkStatusesByID[n]={status:X.SUCCESS},e.discussionsByID[n]={...e.discussionsByID[n],bookmarked:t.result.bookmarked},e}).case(Nt.putDiscussionTypeACs.started,(e,t)=>{const{discussionID:n}=t;return e.changeTypeByID[n]={status:X.LOADING},e}).case(Nt.putDiscussionTypeACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.changeTypeByID[n]={status:X.SUCCESS},e.discussionsByID[n]={...e.discussionsByID[n],...t.result},e}).case(Nt.putDiscussionTypeACs.failed,(e,t)=>{const{discussionID:n}=t.params;return e.changeTypeByID[n]={status:X.ERROR,error:t.error},e}).case(Nt.getDiscussionListACs.started,(e,t)=>{const n=zr(t);return e.discussionIDsByParamHash[n]={status:X.LOADING},e}).case(Nt.getDiscussionListACs.done,(e,t)=>{const n=zr(t.params);return e.discussionIDsByParamHash[n]={status:X.SUCCESS,data:{discussions:t.result.data.map(({discussionID:r})=>r),pagination:t.result.pagination}},t.result.data.forEach(r=>{var a;e.discussionsByID[r.discussionID]={...e.discussionsByID[r.discussionID],...r};const o=(a=r.category)==null?void 0:a.categoryID;o&&r.category&&(e.categoriesByID={...e.categoriesByID,[o]:r.category})}),e}).case(Nt.getDiscussionListACs.failed,(e,t)=>{const n=zr(t.params);return e.discussionIDsByParamHash[n]={status:X.ERROR,error:t.error},e}).case(Nt.patchDiscussionACs.started,(e,t)=>{const{discussionID:n,patchStatusID:r}=t;return e.patchStatusByPatchID[`${n}-${r}`]={status:X.LOADING},e}).case(Nt.patchDiscussionACs.done,(e,t)=>{const{discussionID:n,patchStatusID:r}=t.params;return e.patchStatusByPatchID[`${n}-${r}`]={status:X.SUCCESS},e.discussionsByID[t.result.discussionID]={...e.discussionsByID[t.result.discussionID],...t.result},e}).case(Nt.patchDiscussionACs.failed,(e,t)=>{const{discussionID:n,patchStatusID:r}=t.params;return e.patchStatusByPatchID[`${n}-${r}`]={status:X.ERROR,error:t.error},e}).case(Nt.deleteDiscussionACs.started,(e,t)=>{const{discussionID:n}=t;return e.deleteStatusesByID[n]={status:X.LOADING},e}).case(Nt.deleteDiscussionACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.deleteStatusesByID[n]={status:X.SUCCESS},delete e.discussionsByID[n],Object.keys(e.discussionIDsByParamHash).forEach(r=>{var o;((o=e.discussionIDsByParamHash[r].data)==null?void 0:o.discussions)!==void 0&&(e.discussionIDsByParamHash[r].data.discussions=e.discussionIDsByParamHash[r].data.discussions.filter(a=>a!==n))}),e}).case(Nt.deleteDiscussionACs.failed,(e,t)=>{const{discussionID:n}=t.params;return e.deleteStatusesByID[n]={status:X.ERROR,error:t.error},e}).case(Nt.postDiscussionReactionACs.started,(e,t)=>{const{discussionID:n,reaction:r,currentReaction:o}=t;return e.postReactionStatusesByID[n]={status:X.PENDING},sb(e,n,{removeReaction:o,addReaction:r}),e}).case(Nt.postDiscussionReactionACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.postReactionStatusesByID[n]={status:X.SUCCESS},e}).case(Nt.postDiscussionReactionACs.failed,(e,t)=>{const{discussionID:n,reaction:r,currentReaction:o}=t.params;return e.postReactionStatusesByID[n]={status:X.ERROR,error:t.error},sb(e,n,{removeReaction:r,addReaction:o}),e}).case(Nt.deleteDiscussionReactionACs.started,(e,t)=>{const{discussionID:n,currentReaction:r}=t;return e.deleteReactionStatusesByID[n]={status:X.PENDING},sb(e,n,{removeReaction:r}),e}).case(Nt.deleteDiscussionReactionACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.deleteReactionStatusesByID[n]={status:X.SUCCESS},e}).case(Nt.deleteDiscussionReactionACs.failed,(e,t)=>{const{discussionID:n,currentReaction:r}=t.params;return e.deleteReactionStatusesByID[n]={status:X.ERROR,error:t.error},sb(e,n,{addReaction:r}),e}).case(Nt.putDiscussionTagsACs.started,(e,t)=>{const{discussionID:n}=t;return e.putTagsByID[n]={status:X.LOADING},e}).case(Nt.putDiscussionTagsACs.done,(e,t)=>{const{discussionID:n}=t.params;return e.putTagsByID[n]={status:X.SUCCESS},e.discussionsByID[n]={...e.discussionsByID[n],tags:t.result},e}).case(Nt.putDiscussionTagsACs.failed,(e,t)=>{const{discussionID:n}=t.params;return e.putTagsByID[n]={status:X.ERROR,error:t.error},e}).case(Nt.getDiscussionsByIDsAC.started,(e,t)=>{const{discussionIDs:n}=t,r=Object.fromEntries(n.map(o=>[o,{status:X.LOADING}]));return e.fullRecordStatusesByID={...e.fullRecordStatusesByID,...r},e}).case(Nt.getDiscussionsByIDsAC.failed,(e,t)=>{const{discussionIDs:n}=t.params,r=Object.fromEntries(n.map(o=>[o,{status:X.ERROR,error:t.error}]));return e.fullRecordStatusesByID={...e.fullRecordStatusesByID,...r},e}).case(Nt.getDiscussionsByIDsAC.done,(e,t)=>{const{limit:n,discussionIDs:r}=t.params,o=Object.fromEntries(r.map(i=>[i,{status:X.SUCCESS}]));e.fullRecordStatusesByID={...e.fullRecordStatusesByID,...o},t.result.forEach(i=>{const s=e.discussionsByID[i.discussionID]??{};e.discussionsByID[i.discussionID]={...s,...i}});const a=t.result.map(i=>i.discussionID);return n&&a.length<n&&ple(r,a).forEach(s=>{delete e.discussionsByID[s]}),e}).case(Nt.bulkDeleteDiscussionsACs.started,(e,t)=>{const{discussionIDs:n}=t;return n.forEach(r=>{e.deleteStatusesByID[r]={status:X.LOADING}}),e}).case(Nt.bulkDeleteDiscussionsACs.failed,(e,t)=>{const{discussionIDs:n}=t.params;return n.forEach(r=>{e.deleteStatusesByID[r]={status:X.ERROR,error:t.error}}),e}).case(Nt.bulkDeleteDiscussionsACs.done,(e,t)=>{const{failedIDs:n,exceptionsByID:r,successIDs:o}=t.result.progress;return n&&n.length>0&&n.forEach(a=>{e.deleteStatusesByID[a]={status:X.ERROR,error:r[a]}}),o&&o.length>0&&(o.forEach(a=>{e.deleteStatusesByID[a]={status:X.SUCCESS},delete e.discussionsByID[a]}),Object.keys(e.discussionIDsByParamHash).forEach(a=>{var i;((i=e.discussionIDsByParamHash[a].data)==null?void 0:i.discussions)!==void 0&&(e.discussionIDsByParamHash[a].data.discussions=e.discussionIDsByParamHash[a].data.discussions.filter(s=>!o.includes(s)))})),e}).case(Nt.bulkMoveDiscussionsACs.started,(e,t)=>{const{discussionIDs:n}=t;return n.forEach(r=>{e.patchStatusByPatchID[`${r}-move`]={status:X.LOADING}}),e}).case(Nt.bulkMoveDiscussionsACs.failed,(e,t)=>{const{discussionIDs:n}=t.params;return n.forEach(r=>{e.patchStatusByPatchID[`${r}-move`]={status:X.ERROR,error:t.error}}),e}).case(Nt.bulkMoveDiscussionsACs.done,(e,t)=>{const{category:n}=t.params,{failedIDs:r,exceptionsByID:o,successIDs:a}=t.result.progress;return r&&r.length>0&&r.forEach(i=>{e.patchStatusByPatchID[`${i}-move`]={status:X.ERROR,error:o[i]}}),a&&a.length>0&&a.forEach(i=>{e.patchStatusByPatchID[`${i}-move`]={status:X.SUCCESS},e.discussionsByID[i]={...e.discussionsByID[i],categoryID:Number(t.params.categoryID)},n&&(e.discussionsByID[i]={...e.discussionsByID[i],category:{...e.discussionsByID[i].category,...n}})}),e}).case(Nt.bulkCloseDiscussionsACs.started,(e,t)=>{const{discussionIDs:n}=t;return n.forEach(r=>{e.patchStatusByPatchID[`${r}-close`]={status:X.LOADING}}),e}).case(Nt.bulkCloseDiscussionsACs.failed,(e,t)=>{const{discussionIDs:n}=t.params;return n.forEach(r=>{e.patchStatusByPatchID[`${r}-close`]={status:X.ERROR,error:t.error}}),e}).case(Nt.bulkCloseDiscussionsACs.done,(e,t)=>{const{failedIDs:n,exceptionsByID:r,successIDs:o}=t.result.progress;return n&&n.length>0&&n.forEach(a=>{e.patchStatusByPatchID[`${a}-close`]={status:X.ERROR,error:r[a]}}),o&&o.length>0&&o.forEach(a=>{e.patchStatusByPatchID[`${a}-close`]={status:X.SUCCESS},e.discussionsByID[a]={...e.discussionsByID[a],closed:!0}}),e}).case(Nt.getCategoryByIDACs.started,(e,t)=>{const{categoryID:n}=t;return e.categoriesStatusesByID[n]={status:X.LOADING},e}).case(Nt.getCategoryByIDACs.failed,(e,t)=>{const{categoryID:n}=t.params;return e.categoriesStatusesByID[n]={status:X.ERROR,error:t.error},e}).case(Nt.getCategoryByIDACs.done,(e,t)=>{const{categoryID:n}=t.params;return e.categoriesStatusesByID[n]={status:X.SUCCESS},e.categoriesByID[n]=t.result,e}));n1({reducer:{discussions:_6}});const Fh=()=>md(),m0=so("@@config/get",async e=>(await Ct.get("/config",{params:{select:e.join(",")}})).data),p0=so("@@config/patch",async(e,t)=>{var n,r;try{return(await Ct.patch("/config",e.values)).data}catch(o){if((n=o==null?void 0:o.response)!=null&&n.data)return t.rejectWithValue((r=o==null?void 0:o.response)==null?void 0:r.data);throw o}}),F6=vl("@@config/update-local"),g0=so("@@config/get-translation-services",async()=>(await Ct.get("/translation-services",{})).data),v0=so("@@config/put-translation-service",async e=>(await Ct.put(`/translation-services/${e.values}`,e.newConfig)).data),b0=so("@@config/get-addons",async e=>(await Ct.get(`/addons?type=${e.values}`,{})).data),y0=so("@@config/patch-addon",async e=>(await Ct.patch(`addons/${e.values}`,e.newConfig)).data),x0=so("@@config/get-available-locales",async()=>(await Ct.get("/locales",{})).data),C0=so("@@config/get-service-by-locale",async e=>(await Ct.get(`/locales/${e.localeID}`,{})).data),Qle=so("@@config/patch-service-by-locale",async e=>(await Ct.patch(`/locales/${e.localeID}`,{translationService:e.service})).data),Zle=Object.freeze(Object.defineProperty({__proto__:null,getAddonsByTypeThunk:b0,getAllTranslationServicesThunk:g0,getAvailableLocalesThunk:x0,getConfigsByKeyThunk:m0,getServicesByLocaleThunk:C0,patchAddonByIdThunk:y0,patchConfigThunk:p0,patchServicesByLocaleThunk:Qle,putTranslationServiceThunk:v0,updateConfigsLocal:F6},Symbol.toStringTag,{value:"Module"})),Jle={configsByLookupKey:{},configPatchesByID:{},machineTranslation:{services:{status:X.PENDING},put:{status:X.PENDING}},addons:{},addonPatchByID:{},locales:{status:X.PENDING},localeTranslationService:{}},hy=r1({name:"config",initialState:Jle,reducers:{},extraReducers:e=>{e.addCase(m0.pending,(t,n)=>{t.configsByLookupKey[zr(n.meta.arg)]={status:X.LOADING}}).addCase(m0.fulfilled,(t,n)=>{t.configsByLookupKey[zr(n.meta.arg)]={status:X.SUCCESS,data:n.payload}}).addCase(m0.rejected,(t,n)=>{t.configsByLookupKey[zr(n.meta.arg)]={status:X.ERROR,error:n.error}}).addCase(p0.pending,(t,n)=>{t.configPatchesByID[n.meta.arg.watchID]={status:X.LOADING}}).addCase(p0.fulfilled,(t,n)=>{t.configPatchesByID[n.meta.arg.watchID]={status:X.SUCCESS,data:{}};for(const r of Object.values(t.configsByLookupKey))for(const[o,a]of Object.entries(n.meta.arg.values))r!=null&&r.data&&(r.data[o]=a)}).addCase(p0.rejected,(t,n)=>{const r=n.payload??n.error;if(typeof r.errors=="object"&&r!==null){const o=Object.values(r.errors).flat().map(a=>({...a,field:[a.path,a.field].filter(Do).join("."),path:void 0}));r.errors=x3(o,"field")}t.configPatchesByID[n.meta.arg.watchID]={status:X.ERROR,error:{...n.error,...n.payload}}}).addCase(g0.pending,(t,n)=>{t.machineTranslation.services={status:X.LOADING}}).addCase(g0.fulfilled,(t,n)=>{t.machineTranslation.services={status:X.SUCCESS,data:n.payload}}).addCase(g0.rejected,(t,n)=>{t.machineTranslation.services={status:X.ERROR,error:n.error}}).addCase(v0.pending,(t,n)=>{t.machineTranslation.put={status:X.LOADING}}).addCase(v0.fulfilled,(t,n)=>{var r;t.machineTranslation.put={status:X.SUCCESS,data:n.payload},t.machineTranslation.services.data=(r=t.machineTranslation.services.data)==null?void 0:r.map(o=>o.type===n.payload.type?{...o,...n.payload}:o)}).addCase(v0.rejected,(t,n)=>{t.machineTranslation.put={status:X.ERROR,error:n.error}}).addCase(F6,(t,n)=>{for(const[r,o]of Object.entries(n.payload))Object.values(t.configsByLookupKey).forEach(a=>{a.data&&r in a.data&&(a.data[r]=o)})}).addCase(b0.pending,(t,n)=>{t.addons[n.meta.arg.values]={status:X.LOADING}}).addCase(b0.fulfilled,(t,n)=>{t.addons[n.meta.arg.values]={status:X.SUCCESS,data:n.payload}}).addCase(b0.rejected,(t,n)=>{t.addons[n.meta.arg.values]={status:X.ERROR,error:n.error}}).addCase(y0.pending,(t,n)=>{t.addonPatchByID[n.meta.arg.newConfig.type]={status:X.LOADING}}).addCase(y0.fulfilled,(t,n)=>{var o;const r=n.meta.arg.newConfig.type;t.addonPatchByID[r]={status:X.SUCCESS,data:n.payload},t.addons[r].data=(o=t.addons[r].data)==null?void 0:o.map(a=>a.addonID===n.payload[0].addonID?{...a,...n.payload[0]}:a)}).addCase(y0.rejected,(t,n)=>{t.addonPatchByID[n.meta.arg.newConfig.type]={status:X.ERROR,error:n.error}}).addCase(x0.pending,(t,n)=>{t.locales={status:X.LOADING}}).addCase(x0.fulfilled,(t,n)=>{t.locales={status:X.SUCCESS,data:n.payload}}).addCase(x0.rejected,(t,n)=>{t.locales={status:X.ERROR,error:n.error}}).addCase(C0.pending,(t,n)=>{t.localeTranslationService[n.meta.arg.localeID]={status:X.LOADING}}).addCase(C0.fulfilled,(t,n)=>{t.localeTranslationService[n.meta.arg.localeID]={status:X.SUCCESS,data:n.payload}}).addCase(C0.rejected,(t,n)=>{t.localeTranslationService[n.meta.arg.localeID]={status:X.ERROR,error:n.error}})}});n1({reducer:{[hy.name]:hy.reducer}});const ece=()=>md(),lb="/collections",cb=mv("@@collections"),ss=class ss extends br{constructor(){super(...arguments);q(this,"getCollectionsList",()=>{const{collections:n}=this.getState().collections;if(n.status===X.LOADING||n.status===X.SUCCESS)return;const r=Gt(ss.getCollectionsListACs,async()=>(await this.api.get(lb)).data)();return this.dispatch(r)});q(this,"getCollectionsByResource",n=>{const r=Gt(ss.getCollectionsByResourceACs,async()=>(await this.api.get(`${lb}/by-resource`,{params:n})).data)(n);return this.dispatch(r)});q(this,"putCollectionsByResource",n=>{const r=Gt(ss.putCollectionsByResourceACs,async()=>{const o=`${lb}/by-resource`;return await this.api.put(o,{record:n.record,collectionIDs:[]}),(await this.api.put(o,n)).data})(n);return this.dispatch(r)});q(this,"postCollections",n=>{const r=Gt(ss.postCollectionsACs,async()=>(await this.api.post(lb,n)).data)(n);return this.dispatch(r)})}};q(ss,"getCollectionsListACs",cb.async("GET_COLLECTION_LIST")),q(ss,"getCollectionsByResourceACs",cb.async("GET_COLLECTIONS_BY_RESOURCE")),q(ss,"putCollectionsByResourceACs",cb.async("PUT_COLLECTIONS_BY_RESOURCE")),q(ss,"postCollectionsACs",cb.async("POST_COLLECTIONS"));let jo=ss;function Qft(){return Cd(jo)}function Xs(e){const{recordID:t,recordType:n}=e;return zr([n,t])}const tce={collections:{status:X.PENDING},collectionsByResourceHash:{},collectionsStatusByResourceHash:{},putCollectionsByResourceHash:{}},nce=fa(Vi(tce).case(jo.getCollectionsListACs.started,e=>(e.collections={status:X.LOADING},e)).case(jo.getCollectionsListACs.done,(e,t)=>(e.collections={status:X.SUCCESS,data:t.result??[]},e)).case(jo.getCollectionsListACs.failed,(e,t)=>(e.collections={status:X.ERROR,error:t.error},e)).case(jo.getCollectionsByResourceACs.started,(e,t)=>{const{recordID:n,recordType:r}=t,o=Xs({recordID:n,recordType:r});return e.collectionsByResourceHash[o]={status:X.LOADING},e}).case(jo.getCollectionsByResourceACs.done,(e,t)=>{const{recordID:n,recordType:r}=t.params,o=Xs({recordID:n,recordType:r});return e.collectionsByResourceHash[o]={status:X.SUCCESS,data:t.result},e}).case(jo.getCollectionsByResourceACs.failed,(e,t)=>{const{recordID:n,recordType:r}=t.params,o=Xs({recordID:n,recordType:r});return e.collectionsByResourceHash[o]={status:X.ERROR,error:t.error},e}).case(jo.putCollectionsByResourceACs.started,(e,t)=>{const{record:n}=t,r=Xs(n);return e.putCollectionsByResourceHash[r]={status:X.LOADING},e}).case(jo.putCollectionsByResourceACs.done,(e,t)=>{const{record:n}=t.params,r=Xs(n);return e.putCollectionsByResourceHash[r]={status:X.SUCCESS,data:t.result},e.collectionsByResourceHash[r]||(e.collectionsByResourceHash[r]={status:X.SUCCESS,data:[]}),e.collectionsByResourceHash[r].data=t.result,e}).case(jo.putCollectionsByResourceACs.failed,(e,t)=>{const{record:n}=t.params,r=Xs(n);return e.putCollectionsByResourceHash[r]={status:X.ERROR,error:t.error},e}).case(jo.postCollectionsACs.started,(e,t)=>{const{name:n,records:r}=t,o=Xs(r[0]);return e.collectionsStatusByResourceHash[o]||(e.collectionsStatusByResourceHash[o]={}),e.collectionsStatusByResourceHash[o][n]={status:X.LOADING},e}).case(jo.postCollectionsACs.done,(e,t)=>{var a,i;const{name:n,records:r}=t.params,o=Xs(r[0]);return e.collectionsStatusByResourceHash[o][n]={status:X.SUCCESS,data:t.result.collectionID},e.collectionsByResourceHash[o]||(e.collectionsByResourceHash[o]={status:X.SUCCESS,data:[]}),(a=e.collectionsByResourceHash[o].data)==null||a.push(t.result),e.collections.status===X.PENDING&&(e.collections={status:X.SUCCESS,data:[]}),(i=e.collections.data)==null||i.push(t.result),e}).case(jo.postCollectionsACs.failed,(e,t)=>{const{name:n,records:r}=t.params,o=Xs(r[0]);return e.collectionsStatusByResourceHash[o][n]={status:X.ERROR,error:t.error},e})),kN=$h("@@navigation"),rce=$h("@@serverPage");class Vu{}q(Vu,"serverErrorAC",rce("ERROR")),q(Vu,"errorAC",kN("ERROR")),q(Vu,"resetAC",kN("RESET"));const PN={error:null},oce=Vi(PN).case(Vu.resetAC,()=>PN).cases([Vu.errorAC,Vu.serverErrorAC],(e,t)=>({error:"data"in t?t.data:t})),$p=so("@@reactions/getUserReactions",async e=>{const{userID:t}=e,{data:n}=await Ct.get(`/users/${t}`,{params:{expand:["reactionsReceived"]}}),r=n.reactionsReceived,o=n.name;for(const[a,i]of Object.entries(r))r[a].url=oo(`/profile/reactions/${encodeURIComponent(o)}?reaction=${encodeURIComponent(i.urlcode)}`,!0);return Object.values(r)},{}),ace={reactionsByID:{},reactionIDsByUserID:{},reactionIDsByParamHash:{}},pE=r1({name:"reactions",initialState:ace,reducers:{},extraReducers:e=>{e.addCase($p.pending,(t,n)=>{const r=zr(n.meta.arg);t.reactionIDsByParamHash[r]={status:X.PENDING}}).addCase($p.fulfilled,(t,n)=>{const r=zr(n.meta.arg),o=n.payload.filter(i=>i.count>0);o.forEach(i=>{t.reactionsByID[i.tagID]={...t.reactionsByID[i.tagID],...i}});const a=o.map(({tagID:i})=>i);t.reactionIDsByParamHash[r]={status:X.SUCCESS,data:a},t.reactionIDsByUserID[n.meta.arg.userID]=[...new Set((t.reactionIDsByUserID[n.meta.arg.userID]??[]).concat(a))]}).addCase($p.rejected,(t,n)=>{const r=zr(n.meta.arg);t.reactionIDsByParamHash[r]={status:X.ERROR,error:n.error}})}});function ice(e,t){var n;return(n=e.reactionIDsByParamHash[t])==null?void 0:n.status}function sce(e,t){var n;return(n=e.reactionIDsByUserID[t])==null?void 0:n.map(r=>e.reactionsByID[r])}n1(pE).dispatch;const lce=()=>md(),RN=fn;let W6={};function Wh(e,t){if(W6[e]=t,mce()){const n=Pc();n.replaceReducer(Bx(z6())),(window.__ACTIONS__||[]).forEach(n.dispatch)}}function z6(){return{users:Kse,discussions:_6,locales:Qse,tags:tle,notifications:new B6().reducer,conversations:new Zse().reducer,theme:Zae,collections:nce,route:oce,[hy.name]:hy.reducer,[pE.name]:pE.reducer,...W6}}const cce=window.__ACTIONS__||[],uce=[LD],dce="__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"in window?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({trace:!0,serialize:!1}):V0,fce=dce(H4(...uce));let xp;function hce(){const e=Bx(z6());return(t,n)=>n.type==="@@store/RESET"?n.payload:e(t,n)}function mce(){return xp!=null}function Pc(e,t){if(xp===void 0||t){const n=hce();xp=U4(n,e||{},fce),cce.forEach(xp.dispatch)}return xp}function Hr(e){const t=W.lazy(()=>e.loadFunction().then(o=>"default"in o?o:{default:o}));return Object.assign(o=>u.jsx(W.Suspense,{fallback:u.jsx(e.fallback,{...o}),children:u.jsx(t,{...o})}),{preload:()=>{e.loadFunction()}})}class H6 extends W.Component{constructor(){super(...arguments);q(this,"hoverTimeout");q(this,"hasExecuted",!1);q(this,"handleHover",n=>{this.hasExecuted&&this.props.once||(this.hasExecuted=!0,this.props.onHover&&this.props.onHover(n))});q(this,"mouseEnterHandler",n=>{this.hoverTimeout=setTimeout(()=>{this.handleHover(n)},this.props.duration)});q(this,"mouseLeaveHandler",n=>{this.dismissTimeout()})}render(){return this.props.children({onMouseEnter:this.mouseEnterHandler,onMouseLeave:this.mouseLeaveHandler})}componentWillUnmount(){this.dismissTimeout()}dismissTimeout(){this.hasExecuted=!1,this.hoverTimeout&&clearTimeout(this.hoverTimeout)}}q(H6,"defaultProps",{once:!0});let U6=!1;const YA=da("portals",[]),jN="vanillaPortalManager";let KA=da("PortalContext",e=>u.jsx(W.Fragment,{children:e.children}));function pce(e){KA.set(e),U6&&qA()}function gce(){const e=KA.current();return u.jsx("div",{children:u.jsx(e,{children:YA.current().map((t,n)=>u.jsx(W.Fragment,{children:aa.createPortal(t.component,t.target)},n))})})}function qA(e){U6=!0;let t=document.getElementById(jN);if(!t){t=document.createElement("div"),t.id=jN;const n=document.querySelector("#profiler");n?document.body.insertBefore(t,n):document.body.appendChild(t)}aa.render(u.jsx(gce,{}),t,e)}function V6(e,t,n,r){if(r!=null&&r.bypassPortalManager){const i=KA.current(),s=()=>{aa.render(u.jsx(i,{children:e}),t,n)};r!=null&&r.unmountBeforeRender&&aa.unmountComponentAtNode(t),setTimeout(s,0);return}let o=t,a;if(r!=null&&r.clearContents&&(t.innerHTML=""),r&&r.overwrite){const i=document.createElement("span");a=i,t.parentElement.insertBefore(i,t),o=i}YA.current().push({target:o,component:e}),qA(()=>{a&&(t.remove(),a.firstElementChild&&(a.parentElement.insertBefore(a.firstElementChild,a),a.remove(),t.remove())),n&&n()})}function G6(e,t,n){if(!e.length){t&&t();return}const r=[];e.forEach(o=>{const{component:a,target:i}=o;let s=i;n!=null&&n.clearContents&&(i.innerHTML=""),(n!=null&&n.overwrite||o.overwrite)&&(s=o.target.parentElement,r.push({parent:s,initialParentChildCount:s.children.length,target:i})),YA.current().push({target:s,component:a})}),qA(()=>{r.forEach(o=>{const a=o.parent.children.item(o.initialParentChildCount);if(a){if(o.target.parentElement!==o.parent){console.warn("Movable parent does not container target",{parent:o.parent.outerHTML,target:o.target.outerHTML});return}o.parent.insertBefore(a,o.target),o.target.remove()}}),t&&t()})}function o1(e,t,n=!1){let r=document.getElementById(t);return r||(r=document.createElement("div"),r.id=t,document.body.appendChild(r)),n?aa.createPortal(e,r):new Promise(o=>V6(e,r,()=>o()))}const ub={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""};function Zn(e,t=!1,n=!1){const[r,o]=x.useState(ub),a=n?e.current:e;return x.useLayoutEffect(()=>{let i=null;const s=()=>{i=window.requestAnimationFrame(()=>{if(!e.current){o(ub);return}let d=e.current.getBoundingClientRect();t&&(d={...d,y:d.y+window.scrollY,top:d.top+window.scrollY,bottom:d.bottom+window.scrollY,width:d.width,height:d.height,right:d.right,left:d.left}),d.toJSON=()=>JSON.stringify({y:d.y,top:d.top,bottom:d.bottom,width:d.width,height:d.height,right:d.right,left:d.left}),o(d)})},l=Ra(()=>{s()},100);window.addEventListener("resize",l);const c=new ResizeObserver(s);return e.current?(c.observe(e.current),s()):o(ub),()=>{window.cancelAnimationFrame(i),c.disconnect(),l.cancel(),window.removeEventListener("resize",l),o(ub)}},[t,a,e]),r}function db(e,t){if(NN(e)||NN(t))return!1;let n=!1;e.left<=t.left&&e.right>=t.left&&(n=!0),t.left<=e.left&&t.right>=e.left&&(n=!0),e.left<=t.left&&e.right>=t.right&&(n=!0),t.left<=e.left&&t.right>=e.right&&(n=!0);let r=!1;return e.top<=t.top&&e.bottom>=t.top&&(r=!0),t.top<=e.top&&t.bottom>=e.top&&(r=!0),e.top<=t.top&&e.bottom>=t.bottom&&(r=!0),t.top<=e.top&&t.bottom>=e.bottom&&(r=!0),r&&n}function NN(e){return e.height===0||e.width===0}function vce(){const e=x.useRef(null);let t=Zn(e);const n=x.useRef(null),r=Zn(n),o=x.useRef(null),a=Zn(o),i=x.useRef(null),s=Zn(i),l=x.useRef(null),c=Zn(l),d=db(t,r)||db(t,a)||db(t,s)||db(t,c);return x.useDebugValue({hasCollision:d}),{collisionSourceRef:e,hasCollision:d,vBoundary1Ref:n,vBoundary2Ref:o,hBoundary1Ref:i,hBoundary2Ref:l}}function bce(e){return x.useDebugValue(e)}function XA(e,t){const n=x.useRef(),r=t??n;return x.useLayoutEffect(()=>{e&&r.current&&e.forEach(o=>{var a;(a=r.current)==null||a.appendChild(o)})},[e]),r}function yce(e){const{nodes:t,...n}=e,r=XA(t);return u.jsx("div",{...n,ref:r})}function Y6({root:e,returnElement:t,callback:n}){x.useEffect(()=>{if(e===null||t===null)return;const r=e||document.documentElement,o=new fee(r,t,n);return o.start(),o.stop},[e,t,n])}function a1(e){const t=x.useRef();return x.useEffect(()=>void(t.current=e),[e]),t.current}function K6(){const e=x.useRef(!1);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),x.useCallback(()=>e.current,[])}function zh(e,t,n){const r=K6();x.useLayoutEffect(()=>{if(!n&&e.current!==null){const o=new mee(e.current,(...a)=>{if(r())return t(...a)});return o.start(),o.stop}},[e,t,n,r])}function q6(){const[e,t]=x.useState(null);if(e)throw e;return t}function xce(e,t){const{classAsClassName:n=!0,hrefAsTo:r=!1}=t||{},o={};return Object.values(e.attributes).forEach(a=>{o[a.name]=a.value}),n&&o.hasOwnProperty("class")&&(o.className=o.class,delete o.class),r&&o.hasOwnProperty("href")&&(o.to=o.href,delete o.href),o}function Cce(e,t){const n=sessionStorage.getItem(e);return n?JSON.parse(n):t}const wce=Ge("context.host",""),Sce=`vanilla/${wce}`;function LN(e,t){e=`${Sce}/${e}`;const[n,r]=x.useState(Cce(e,t));return x.useEffect(()=>{sessionStorage.setItem(e,JSON.stringify(n))},[e,n]),[n,r]}const X6=W.createContext({zIndex:1050});function ja(){return x.useContext(X6)}function Ps(e){const t=ja();return u.jsx(X6.Provider,{value:{zIndex:t.zIndex+1},children:e.children})}Ge("context.host","");const Q6=da("components",{});let gE=da("pageComponent",null),$N=da("mountedPage",!1);function an(e,t,n){Q6.current()[e.toLowerCase()]={Component:t,mountOptions:n}}da("widgetLoaders",{});function Dce(e){gE.set(e)}function QA(e){return Q6.current()[e.toLowerCase()]??null}async function Ece(e){wa("Mounting react components");const t=[],n=e.querySelector("#app");let r=[],o=gE.current();n instanceof HTMLElement&&o!==null&&!$N.current()&&($N.set(!0),wa("Found page component to mount",gE.current()),r.push({target:n,component:u.jsx(o,{})}));let a=[];e.querySelectorAll("[data-react]").forEach(i=>{var h,m;if(!(i instanceof HTMLElement)){hs("Attempting to mount a data-react component on an invalid element",i);return}const s=i.getAttribute("data-react")||"";let l=i.getAttribute("data-props")||{};if(typeof l=="string")try{l=JSON.parse(l)}catch(g){mn(g,{node:i,name:s,props:l});return}const c=QA(s);if(!c)return;const d=i.innerHTML;i.innerHTML="",i.removeAttribute("data-react"),i.removeAttribute("data-props"),i.getAttribute("data-unhide")==="true"&&a.push(i);const f=u.jsx(c.Component,{...l,contents:d});(h=c.mountOptions)!=null&&h.bypassPortalManager?t.push(new Promise(g=>{V6(f,i,()=>{g()},c.mountOptions)})):r.push({component:f,target:i,overwrite:((m=c.mountOptions)==null?void 0:m.overwrite)??!1})}),t.push(new Promise(i=>{G6(r,()=>{a.forEach(s=>{s.removeAttribute("style")}),i()})})),await Promise.all(t)}function dg(){const e=Pc().getState();if(e!==null){if(e.theme.forcedVariables)return e.theme.forcedVariables;const t=e.theme.assets.data||{};return t.variables?t.variables.data:{}}else return{}}function Ice(e,t){return e==null?!0:D6(e,t)}function oa(e,t,n){var r=e==null?void 0:Jx(e,t);return r===void 0?n:r}class Z6{constructor(t){q(this,"mapping");q(this,"map");this.mapping=t,this.map=(n,r)=>{if(typeof n!="object"||typeof r!="object")return n;const o=Bc(n),a=Object.keys(this.mapping);for(const[i,s]of Object.entries(this.mapping)){const l=Array.isArray(s)?s:[s];for(const c of l){const d=oa(r,c,null);if(d!==null){zT(o,i,Bc(d)),a.includes(c)||Ice(o,c);break}}}return o}}}class Rs extends Z6{}const Tce=Symbol.for("Debug");function Tt(e){function t(...n){if(n=n.filter(i=>!!i),n.length===0)return S();let r=e,o=!1,a=n;if(n[0]===Tce&&(a.shift(),o=!0),typeof n[0]=="string"){const[i,...s]=a;r+=`-${i}`,a=s}return a.forEach(i=>i.label=r),o&&(hs(`Debugging component ${r}`),wa(a)),S(...a,"")}return t}function qe(e,t,n,r=!1){t?r&&(t=Xt(dg(),t)):t=dg(),e=typeof e=="string"?[e]:e;let o=e.map(a=>(t==null?void 0:t[a])??{}).reduce((a,i)=>Xt(a,i),{});if(n){n=Array.isArray(n)?n:[n];let a=o;for(const i of n)i instanceof Rs?o=i.map(o,a):o=i.map(o,t)}return function(i,s,l){const c=(o==null?void 0:o[i])??null;let d=s;return c!=null&&(d=vE(c,d)),l!=null&&(d=vE(eW(l),d)),J6(e,i,d),d}}function J6(e,t,n){const r=[...e,t];Object.entries(n).forEach(([o,a])=>{[...r,o].join("."),a==null||a instanceof Wr||typeof a=="object"&&(Array.isArray(a)||J6(r,o,a))})}function eW(e){if(!e||e instanceof Wr)return e;if(typeof e=="object"){const t={};for(const[n,r]of Object.entries(e))r!=null&&(typeof r=="object"?t[n]=eW(r):t[n]=r);return t}return e}const tW=/^rgb\((\d{1,3}%?),\s*(\d{1,3}%?),\s*(\d{1,3}%?)\)$/,nW=/^rgba\((\d{1,3}%?),\s*(\d{1,3}%?),\s*(\d{1,3}%?),\s*(\d+(?:\.\d+)?)\)$/,rW=/^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/,oW=/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d+(?:\.\d+)?)\)/,Ace=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;function vE(e,t){const n=Array.isArray(e)===!1?typeof e:"array",r=Array.isArray(t)===!1?typeof t:"array",o=[...new Set([n,r])];try{if(Array.isArray(e)&&Array.isArray(t))return e;if(t instanceof Wr||t===void 0&&typeof e=="string"&&e.startsWith("#"))return e instanceof Wr||typeof e=="string"&&e.startsWith("linear-gradient")?e:kce(e,t instanceof Wr);if(n==="object"&&r==="object"&&t!==null){const a={};for(const[i,s]of Object.entries(t)){const l=i in e?e[i]:s;a[i]=vE(l,s)}return a}else return o.length>1&&o.includes("object")&&o.includes("array")&&t!==null?t:e}catch(a){return mn("Error while evaluation custom variable",e,a),t}}function aW(e){return typeof e=="string"&&!!e.match(Ace)}function iW(e){return typeof e=="string"&&!!e.match(tW)}function sW(e){return typeof e=="string"&&!!e.match(nW)}function lW(e){return typeof e=="string"&&!!e.match(rW)}function cW(e){return typeof e=="string"&&!!e.match(oW)}function Oce(e){return typeof e=="string"&&(iW(e)||aW(e)||lW(e)||cW(e)||sW(e))}function Bce(e){return typeof e=="string"&&!Oce(e)&&e.toString().trim().startsWith("linear-gradient(")}function kce(e,t=!1){if(aW(e))return On(e);if(iW(e)){const n=tW.exec(e),r=parseInt(n[1],10),o=parseInt(n[2],10),a=parseInt(n[3],10);return Y0(r,o,a)}else if(sW(e)){const n=nW.exec(e),r=parseInt(n[1],10),o=parseInt(n[2],10),a=parseInt(n[3],10),i=parseFloat(n[4]);return Za(r,o,a,i)}else if(lW(e)){const n=rW.exec(e),r=parseInt(n[1],10),o=parseInt(n[2],10),a=parseInt(n[3],10);return RZ(r,o,a)}else if(cW(e)){const n=oW.exec(e),r=parseInt(n[1],10),o=parseInt(n[2],10),a=parseInt(n[3],10),i=parseFloat(n[4]);return VR(r,o,a,i)}else{if(typeof e=="object"&&e.f)return e.f==="hsl"?VR(e.h,e.s,e.l,e.a):Za(e.r,e.g,e.b,e.a);if(t)throw new Error(`Invalid color detected: ${e}`);return e}}const ZA=e=>{const t=dg(),n=t&&t[e]||{};return{subComponentStyles:o=>n&&n[o]||{}}};function Wn(e,t=0){if(e==null)return t;if(typeof e=="number")return e;{e=e.replace("px","");const n=Number.parseInt(e);return Number.isNaN(n)?t:n}}function Mp(e="&",t=""){return[":active",":hover",":focus",".focus-visible"].map(r=>`${e}${r} ${t}`).join(", ")}const $r=class $r{constructor(){throw new Error("Not to be instantiated")}static colorOut(t,n){const{debug:r=!1,makeImportant:o}=n||{};if(ma(r,"ColorsUtils.colorOut - colorValue: ",t),!!t){if(Bce(t))return ma(r,"ColorsUtils.colorOut - linear gradient detected - colorValue: ",t),t.toString();{const a=typeof t=="string"?On(t):t;return o?je(a.toString()):a.toString()}}}};q($r,"isLightColor",t=>{const n=$r.ensureColorHelper(t),r=n.red(),o=n.blue(),a=n.green();return Math.sqrt(.299*r*r+.587*a*a+.114*o*o)>=150}),q($r,"isDarkColor",t=>!$r.isLightColor(t)),q($r,"ensureColorHelper",t=>typeof t=="string"?On(t):t),q($r,"getRatioBasedOnDarkness",(t,n)=>(t>1?(mn("The weight cannot be greater than 1."),t=1):t<0&&(mn("The weight cannot be smaller than 0."),t=0),$r.isLightColor($r.ensureColorHelper(n))?t:1-t)),q($r,"modifyColorBasedOnLightness",t=>{const{color:n,inverse:r=!1,flipWeightForDark:o=!1,debug:a=!1}=t,i=$r.ensureColorHelper(n);let s=t.weight;ma(a,"=== start modifyColorBasedOnLightness debug ==="),ma(a,"initial color: ",On),ma(a,"initial weight: ",s),ma(a,"inverse: ",r),ma(a,"flipWeightForDark: ",o),ma(a,": ");let l;if(s>1||s<0)throw new Error("mixAmount must be a value between 0 and 1 inclusively.");const c=$r.isLightColor(i);return ma(a,"is light: ",c),o&&!c&&(s=1-s),ma(a,"final weight: ",s),c&&!r||!c&&r?l=i.darken(s):l=i.lighten(s),ma(a,"output: ",l),ma(a,"output: "),ma(a,"=== end modifyColorBasedOnLightness debug ==="),l}),q($r,"offsetLightness",(t,n,r=!0,o=!1)=>{const a=$r.ensureColorHelper(t),i=a.lightness();let s=1;$r.isLightColor(a)||(s=Math.abs(i-.45)*20);const l=n*s,c=a.darken(l),d=a.lighten(l);return $r.isLightColor(a)?i+l>1&&r?d:c:i-l>0&&!r?d:c}),q($r,"modifyColorSaturationBasedOnLightness",(t,n,r=!1)=>{const o=$r.ensureColorHelper(t);if(n>1||n<0)throw new Error("mixAmount must be a value between 0 and 1 inclusively.");const a=o.lightness()>=.5;return a&&!r||!a&&r?o.desaturate(n):o.saturate(n)});let P=$r;const Pce={color:void 0,width:void 0,style:void 0,radius:void 0},Rce={color:void 0,size:void 0,weight:void 0,lineHeight:void 0,shadow:void 0,align:void 0,family:void 0,transform:void 0,letterSpacing:void 0,textDecoration:void 0},uW={top:void 0,right:void 0,bottom:void 0,left:void 0,horizontal:void 0,vertical:void 0,all:void 0},jce={color:void 0,attachment:void 0,position:void 0,repeat:void 0,size:void 0,image:void 0,opacity:void 0,unsetBackground:!1},Nce={default:void 0,hover:void 0,focus:void 0,clickFocus:void 0,keyboardFocus:void 0,active:void 0,visited:void 0,allStates:void 0};var _p;(function(e){e.SMALL="small",e.DEFAULT="default",e.LARGE="large"})(_p||(_p={}));var Gu;(function(e){e.NONE="none",e.BORDER="border",e.SEPARATOR="separator"})(Gu||(Gu={}));var ch;(function(e){e.AUTO="auto",e.ALWAYS="always"})(ch||(ch={}));const bE=["-apple-system","BlinkMacSystemFont","HelveticaNeue-Light","Segoe UI","Helvetica Neue","Helvetica","Raleway","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],dW=["Consolas","Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Monaco","Courier New","Courier","monospace"];function w(e,t){const{unitFunction:n=Le,isImportant:r=!1,debug:o=!1}=t||{};if(typeof e=="object"){mn(`You cannot pass objects (${JSON.stringify(e)}) to the "unit" function`);return}if(e===void 0)return;const a=y3(e.toString().trim());let i;return typeof e=="string"&&!a?i=e:e!=null&&a?i=n(e):i=e,r?je(i):i}const hr=(e,t=Le)=>{const n=w(e);return n&&je(n.toString())},Ta=(e,t=Le)=>ca(w(e)),ca=e=>typeof e=="string"?(e=e.trim(),e.startsWith("-")?e.substring(1,e.length).trim():`-${e}`):e&&!isNaN(e)?e*-1:e,Lt=(e,t,n,r=!1)=>e&&Lce(e,t)?e[t]:n,Lce=(e,t)=>e&&typeof e=="object"&&t?t in e&&e[t]!==void 0:!1;var dt;(function(e){e.BORDER="border",e.SEPARATOR="separator",e.SEPARATOR_BETWEEN="separator_between",e.NONE="none",e.SHADOW="shadow",e.SHADOW_AS_BORDER="shadow_as_border",e.NAV_LINKS="navLinks"})(dt||(dt={}));const Qo=e=>{if(e!==null){const t=typeof e;return t==="string"||t==="number"}else return!1},Jw=(e,t)=>({borderTopRightRadius:w(e,t),borderBottomRightRadius:w(e,t),borderBottomLeftRadius:w(e,t),borderTopLeftRadius:w(e,t)}),MN=(e,t)=>{const n={};if(typeof e=="object"&&Object.keys(e).length===0)return n;if(Qo(e)){const h=w(e);return{borderTopRightRadius:w(h,t),borderBottomRightRadius:w(h,t),borderBottomLeftRadius:w(h,t),borderTopLeftRadius:w(h,t)}}const r=Lt(e,"all",Lt(e,"radius")),o=Lt(e,"top"),a=Lt(e,"bottom"),i=Lt(e,"left"),s=Lt(e,"right");if(Qo(r)&&Xt(n,{borderTopRightRadius:w(r,t),borderBottomRightRadius:w(r,t),borderBottomLeftRadius:w(r,t),borderTopLeftRadius:w(r,t)}),o!==void 0){const h=Qo(o);if(h){const m=h?o:w(o,t);Xt(n,{borderTopRightRadius:w(m,t),borderTopLeftRadius:w(m,t)})}else Xt(n,s!==void 0?{borderTopRightRadius:w(s,t)}:{},i!==void 0?{borderTopLeftRadius:w(i,t)}:{})}if(a!==void 0){const h=Qo(a);if(h){const m=h?a:w(a,t);Xt(n,{borderBottomRightRadius:w(m,t),borderBottomLeftRadius:w(m,t)})}else Xt(n,s!==void 0?{borderBottomRightRadius:w(s,t)}:{},i!==void 0?{borderBottomLeftRadius:w(i,t)}:{})}if(i!==void 0){const h=Qo(i);if(h){const m=h?i:w(i,t);Xt(n,{borderTopLeftRadius:w(m,t),borderBottomLeftRadius:w(m,t)})}else{const m=o!==void 0?{borderTopLeftRadius:w(o,t)}:{},g=a!==void 0?{borderBottomLeftRadius:w(a,t)}:{};Xt(n,Qo(m)?{}:m,Qo(g)?{}:g)}}if(s!==void 0){const h=Qo(s);if(h){const m=h?s:w(s,t);Xt(n,{borderTopRightRadius:w(m,t),borderBottomRightRadius:w(m,t)})}else{const m=o!==void 0?{borderTopRightRadius:w(o,t)}:{},g=a!==void 0?{borderBottomRightRadius:w(a,t)}:{};Xt(n,Qo(m)?{}:m,Qo(g)?{}:g)}}const l=Lt(e,"borderTopRightRadius");l!==void 0&&Xt(n,{borderTopRightRadius:w(l,t)});const c=Lt(e,"borderTopLeftRadius");c!==void 0&&Xt(n,{borderTopLeftRadius:w(c,t)});const d=Lt(e,"borderBottomRightRadius");d!==void 0&&Xt(n,{borderBottomRightRadius:w(d,t)});const f=Lt(e,"borderBottomLeftRadius");return f!==void 0&&Xt(n,{borderBottomLeftRadius:w(f,t)}),n},Yr=(e,t)=>{const{fallbackRadii:n=ee().border.radius,isImportant:r=!1,debug:o=!1}=t||{},a={};Qo(n)?Xt(a,Jw(n,{isImportant:r})):Xt(a,(Qo(n),n));const i=Qo(e),s=Qo(n);return i?Xt(a,Jw(e,{isImportant:r})):s?Xt(a,Jw(n,{isImportant:r})):Xt(a,MN(n,{isImportant:r})),Xt(a,MN(e,{isImportant:r})),a},wt=e=>{const t=ee(),n=e!==void 0?e:{};return`${n.style?n.style:t.border.style} ${n.color?P.colorOut(n.color):P.colorOut(t.border.color)} ${n.width?w(n.width):w(t.border.width)}`},ra=e=>typeof e=="string"?On(e):e,$ce=e=>{if(e)return e=e.toString(),e.charAt(0)==="~"?(e=$ee(e.substr(1,e.length-1)),`url(${e})`):e.startsWith("data:image/")?`url(${e})`:e.startsWith("linear-gradient(")?e:`url(${Tf(e)})`},Mce=()=>({position:"absolute",top:0,right:0,bottom:0,left:0,margin:"auto",height:"auto",width:Z(100),"@supports (object-fit: cover)":{position:je("relative"),objectFit:"cover",objectPosition:"center",height:je(Z(100).toString())}}),_ce=re(()=>{const e=ee(),t=qe("shadow"),n=t("button",{horizontalOffset:0,verticalOffset:1,blur:3,spread:0,opacity:.22}),r=t("buttonHover",{horizontalOffset:0,verticalOffset:2,blur:4,spread:0,opacity:.22}),o=t("widget",{horizontalOffset:0,verticalOffset:1,blur:3,spread:0,opacity:.22}),a=t("widgetHover",{horizontalOffset:0,verticalOffset:2,blur:4,spread:0,opacity:.22}),i=t("dropDown",{horizontalOffset:0,verticalOffset:5,blur:10,spread:0,opacity:e.borderType.dropDowns.width>1?0:.3}),s=t("modal",{horizontalOffset:0,verticalOffset:5,blur:20,spread:0,opacity:.5}),l=t("toolbar",{horizontalOffset:0,verticalOffset:0,blur:6,spread:0,opacity:.16}),c=t("floatingButton",{horizontalOffset:0,verticalOffset:5,blur:10,spread:0,opacity:.5});return{button:n,buttonHover:r,widget:o,widgetHover:a,dropDown:i,modal:s,toolbar:l,floatingButton:c}}),Un=re(()=>{const e=_ce(),t=ee(),n=t.elementaryColors.black;return{button:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.button;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}},buttonHover:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.buttonHover;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.darken(.5).fade(C)}`}},embed:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.widget;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}},embedHover:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.widgetHover;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.darken(.5).fade(C)}`}},embedTooltip:(g=n)=>({boxShadow:`3px -3px 6px ${g.fade(.1)}`}),dropDown:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.dropDown;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}},modal:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.modal;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}},contrast:(g=t.mainColors.fg,p=!1,v=0)=>{const b=g.fade(.2);let y={};return p&&(y={outline:`solid 1px ${b.toString()}`,radius:v}),{boxShadow:`0 0 3px 0 ${g.fade(.3)}`,...y}},makeShadow:(g=.3)=>`0 1px 3px 0 ${n.fade(g)}`,toolbar:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.toolbar;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}},floatingButton:(g=n)=>{const{verticalOffset:p,horizontalOffset:v,blur:b,spread:y,opacity:C}=e.floatingButton;return{boxShadow:`${v} ${w(p)} ${w(b)} ${w(y)} ${g.fade(C)}`}}}}),ld=(e,t,n,r)=>{const o=ee();return e||(e=o.mainColors.bg),t||(t=E.border()),n||(n=Un().dropDown()),e instanceof Wr&&P.isLightColor(e)&&!r?n:t},fW={topRight:(e="0",t=Le(0))=>({position:"absolute",top:w(e),right:w(t)}),topLeft:(e="0",t=Le(0))=>({position:"absolute",top:w(e),left:w(t)}),bottomRight:(e=Le(0),t=Le(0))=>({position:"absolute",bottom:w(e),right:w(t)}),bottomLeft:(e=Le(0),t=Le(0))=>({position:"absolute",bottom:w(e),left:w(t)}),middleOfParent:(e=!1)=>e?{position:"absolute",display:"inline-block",top:Z(50),left:Z(50),right:"initial",bottom:"initial",transform:"translate(-50%, -50%)"}:{position:"absolute",display:"block",top:0,left:0,right:0,bottom:0,maxHeight:Z(100),maxWidth:Z(100),margin:"auto"},middleLeftOfParent:(e=Le(0))=>({position:"absolute",display:"block",top:0,left:e,bottom:0,maxHeight:Z(100),maxWidth:Z(100),margin:"auto 0"}),middleRightOfParent:(e=Le(0))=>({position:"absolute",display:"block",top:0,right:e,bottom:0,maxHeight:Z(100),maxWidth:Z(100),margin:"auto 0"}),fullSizeOfParent:()=>({display:"block",position:"absolute",top:Le(0),left:Le(0),width:Z(100),height:Z(100)}),srOnly:()=>Sde()},JA=e=>{let t=0,n=0;const r=e.height??Kt().sizing.height;if(e.debug,e&&e.radius&&e.extraPadding){const a=parseInt(e.extraPadding.toString()),i=e.radius.toString().trim(),s=parseFloat(i),l=r/2;let c=0;i.endsWith("%")?c=Math.min(50,s)*r:c=Math.min(l,parseInt(s.toString()))/l*100;const d=c/100*a;e.side!=="right"&&(t=d),e.side!=="left"&&(n=d)}return{left:t,right:n}},Fce=e=>{const t=Gi(),{minHeight:n=t.sizing.minHeight,minWidth:r=t.sizing.minWidth,fontSize:o=t.font.size,paddingHorizontal:a=t.padding.horizontal,formElementVars:i,borderRadius:s,skipDynamicPadding:l,debug:c=!1}=e,d=i.borders?i.borders:t.border.width,f=n??i.sizing.minHeight,h=l?{right:0,left:0}:JA({radius:s,extraPadding:t.padding.fullBorderRadius.extraHorizontalPadding,height:f});return{minHeight:w(f),minWidth:r?w(r):void 0,fontSize:w(o),padding:`0px ${Le(a+(h.right||0))} 0px ${Le(a+(h.left||0))}`,lineHeight:w(f-d*2)}},ei=()=>({...zn(),appearance:"none",border:0,padding:0,background:"none",cursor:"pointer",color:"inherit",textDecoration:je("none"),textAlign:"inherit",overflowWrap:"break-word"});var Wce=1,zce=4;function ul(e){return Rf(e,Wce|zce)}const hW=e=>{var b,y,C,D,A,T,B,j,R,N,_,U,V,z,Y,te,se,he,pe,K,O,le,be,H,ie,oe,ve,$e,Ne,Ze,ze,Xe,Me,Je,pt,ot,Et,Vt;const{setZIndexOnState:t=!1,stateSuffix:n,debug:r=!1}=e,o=Kt(),a=Gi(),i=t?1:void 0,{buttonTypeVars:s}=e,l=E.border(s.borders,{fallbackBorderVariables:a.border,debug:r}),c=(b=s.hover)!=null&&b.borders?Xt(ul(l),E.border({...s.hover.borders},{fallbackBorderVariables:a.border})):{},d=(y=s.active)!=null&&y.borders?Xt(ul(l),E.border({...s.active.borders},{fallbackBorderVariables:a.border})):{},f=(C=s.focus)!=null&&C.borders?Xt(ul(l),E.border({...s.focus&&s.focus.borders},{fallbackBorderVariables:a.border})):l,h=(D=s.focusAccessible)!=null&&D.borders?Xt(ul(l),E.border({...s.focusAccessible.borders},{fallbackBorderVariables:a.border})):{},m=(A=s.disabled)!=null&&A.borders?Xt(ul(l),E.border({...s.disabled.borders},{fallbackBorderVariables:a.border})):{},p={opacity:(T=s.disabled)==null?void 0:T.opacity,color:P.colorOut(((j=(B=s.disabled)==null?void 0:B.colors)==null?void 0:j.fg)??void 0),backgroundColor:P.colorOut(((N=(R=s.disabled)==null?void 0:R.colors)==null?void 0:N.bg)??void 0),...m};return{...ei(),textOverflow:"ellipsis","&&":{textTransform:"initial"},overflow:"hidden",width:"auto",maxWidth:Z(100),backgroundColor:P.colorOut((_=s.colors)==null?void 0:_.bg),...E.font({...s.fonts,color:((U=s.colors)==null?void 0:U.fg)??((V=s.fonts)==null?void 0:V.color)}),WebkitFontSmoothing:"antialiased",...l,...Fce({minHeight:(z=s.sizing)==null?void 0:z.minHeight,minWidth:(Y=s.sizing)==null?void 0:Y.minWidth,fontSize:(te=s.fonts)==null?void 0:te.size,paddingHorizontal:(se=s.padding)==null?void 0:se.horizontal,formElementVars:o,borderRadius:(he=s.borders)==null?void 0:he.radius,skipDynamicPadding:s.skipDynamicPadding??!1}),display:"inline-flex",alignItems:"center",position:"relative",textAlign:"center",whiteSpace:"nowrap",verticalAlign:"middle",justifyContent:"center",touchAction:"manipulation",cursor:"pointer",opacity:s.opacity,...s.useShadow?Un().button():{boxShadow:"none"},...Hc("background","color","border"),"&:not([disabled]):not(.focus-visible)":{outline:0},[`&:not([disabled]):hover${n??""}`]:{zIndex:i,opacity:(pe=s.hover)==null?void 0:pe.opacity,color:P.colorOut((O=(K=s.hover)==null?void 0:K.colors)==null?void 0:O.fg),backgroundColor:P.colorOut((be=(le=s.hover)==null?void 0:le.colors)==null?void 0:be.bg),...c,...s.useShadow?Un().buttonHover():{boxShadow:"none"}},[`&:not([disabled]):focus${n??""}`]:{zIndex:i,opacity:(H=s.focus)==null?void 0:H.opacity,color:P.colorOut((oe=(ie=s.focus)==null?void 0:ie.colors)==null?void 0:oe.fg),backgroundColor:P.colorOut(($e=(ve=s.focus)==null?void 0:ve.colors)==null?void 0:$e.bg),...f},[`&:not([disabled]):active${n??""}`]:{zIndex:i,opacity:(Ne=s.active)==null?void 0:Ne.opacity,color:P.colorOut((ze=(Ze=s.active)==null?void 0:Ze.colors)==null?void 0:ze.fg),backgroundColor:P.colorOut((Me=(Xe=s.active)==null?void 0:Xe.colors)==null?void 0:Me.bg),...d},[`&:not([disabled]):focus-visible${n??""}`]:{zIndex:i,opacity:(Je=s.focusAccessible)==null?void 0:Je.opacity,color:P.colorOut((ot=(pt=s.focusAccessible)==null?void 0:pt.colors)==null?void 0:ot.fg),backgroundColor:P.colorOut((Vt=(Et=s.focusAccessible)==null?void 0:Et.colors)==null?void 0:Vt.bg),...h},"&[disabled]":p,...s.extraNested??{}}},au=(e,t)=>{const{setZIndexOnState:n=!1,debug:r=!1}=t||{},o=hW({buttonTypeVars:e,setZIndexOnState:n});return S({...o,label:`button-${e.name}`},"label:styleHelperButtonGenerator-buttonClass")};function kr(e){return{width:it(`100% + ${w(e*2)}`),marginLeft:w(-e),marginInlineStart:w(-e)}}const on=class on{constructor(){throw new Error("Not to be instantiated")}static borderType(t,n){const r=ee();switch(t){case dt.BORDER:return{...on.border(n==null?void 0:n.border),[Mp()]:{borderColor:n!=null&&n.interactiveOutline?P.colorOut(ee().border.colorHover):void 0}};case dt.SHADOW:return{...Un().embed(),[Mp()]:n!=null&&n.interactiveOutline?Un().embedHover():{}};case dt.SEPARATOR:case dt.SEPARATOR_BETWEEN:return{"&:before":{content:'""',display:"block",height:r.spacer.componentInner,width:`calc(100% + ${r.spacer.componentInner}px)`,marginLeft:-8,borderTop:wt()},"&:after":{content:'""',display:"block",height:r.spacer.componentInner,width:`calc(100% + ${r.spacer.componentInner}px)`,marginLeft:-8,borderBottom:wt()},"& + .pageBox:before, & + .pageBoxNoCompat:before":{borderTop:"none"},...t===dt.SEPARATOR_BETWEEN&&{"&:first-of-type":{"&:before":{border:"none"}},"&:last-of-type":{"&:after":{border:"none"}}}};case dt.NONE:default:return{}}}static spacing(t,n){if(!n)return{};const r={},o=`${t}Left`,a=`${t}Right`,i=`${t}Top`,s=`${t}Bottom`;return n.all!==void 0&&(r[i]=w(n.all),r[a]=w(n.all),r[s]=w(n.all),r[o]=w(n.all)),n.vertical!==void 0&&(r[i]=w(n.vertical),r[s]=w(n.vertical)),n.horizontal!==void 0&&(r[o]=w(n.horizontal),r[a]=w(n.horizontal)),n.top!==void 0&&(r[i]=w(n.top)),n.right!==void 0&&(r[a]=w(n.right)),n.bottom!==void 0&&(r[s]=w(n.bottom)),n.left!==void 0&&(r[o]=w(n.left)),r}static verticallyAlignInContainer(t,n){return{"--offset":`calc(calc(1em * ${n}) - ${t}px) / 2`,"--negative-offset":"min(var(--offset), -1*var(--offset))",verticalAlign:"top",transform:"translateY(var(--negative-offset))"}}static spaceChildrenEvenly(t=null,n=null){const r=ee();let o,a;if(t!=null&&typeof t=="object"){const i=t;o=i.vertical??i.left??i.right??i.all??r.spacer.componentInner,a=i.horizontal??i.top??i.bottom??i.all??o}else o=t??n??r.spacer.componentInner,a=n??o;return{...on.margin({top:Ta(o),left:Ta(a)}),"& > *":on.margin({left:a,top:o})}}static padding(t){return on.spacing("padding",t)}static margin(t){return on.spacing("margin",t)}static font(t){return{color:P.colorOut(t.color),fontSize:t.size!==void 0?w(t.size):void 0,fontWeight:t.weight,lineHeight:t.lineHeight,textAlign:t.align,textShadow:t.shadow,fontFamily:t.family?on.fontFamilyWithDefaults(t.family):t.family,textTransform:t.transform,letterSpacing:t.letterSpacing,...t.textDecoration==="auto"?on.linkDecoration("none"):{textDecoration:t.textDecoration}}}static linkDecoration(t){switch(ee().links.linkDecorationType){case"always":return{textDecoration:"underline"};case"auto":default:return{textDecoration:t??"inherit"}}}static fontFamilyWithDefaults(t,n={}){return(Array.isArray(t)?t:[t]).concat(n.isMonospaced?dW:bE).map(o=>o.includes(" ")&&!o.includes('"')?`"${o}"`:o).join(", ")}static setAllRadii(t,n){return{borderTopRightRadius:w(t,n),borderBottomRightRadius:w(t,n),borderBottomLeftRadius:w(t,n),borderTopLeftRadius:w(t,n)}}static singleBorderStyle(t){if(!t)return;const{color:n,width:r,style:o}=t,a={};if(a.color=n,a.width=w(t.width?t.width:r),a.style=t.style?t.style:o,Object.keys(a).length>0)return a}static border(t,n){const{fallbackBorderVariables:r=ee().border,debug:o=!1}=n||{},a={},i=Lt(t,"style",r.style),s=Lt(t,"color",r.color).toString(),l=Lt(t,"width",r.width),c=Lt(t,"radius",r.radius),d=on.setAllBorders(s,l,i,c,o);Xt(a,d),t=t,t||(t=r);const f=Lt(t,"all");if(f){const v=on.singleBorderStyle(f);v&&(a.borderTopWidth=(v==null?void 0:v.width)??l,a.borderTopStyle=Lt(v,"style",i),a.borderTopColor=Lt(v,"color",s),a.borderTopRightRadius=Lt(f,"radius",c),a.borderBottomRightRadius=Lt(f,"radius",c),a.borderBottomLeftRadius=Lt(f,"radius",c),a.borderTopLeftRadius=Lt(f,"radius",c))}const h=Lt(t,"top");if(h){const v=on.singleBorderStyle(h);v&&(a.borderTopWidth=Lt(v,"width",l),a.borderTopStyle=Lt(v,"style",i),a.borderTopColor=Lt(v,"color",s),a.borderTopLeftRadius=Lt(h,"radius",c),a.borderTopRightRadius=Lt(h,"radius",c))}const m=Lt(t,"right");if(m){const v=on.singleBorderStyle(m);v&&(a.borderRightWidth=Lt(v,"width",l),a.borderRightStyle=Lt(v,"style",i),a.borderRightColor=Lt(v,"color",s),a.borderBottomRightRadius=Lt(m,"radius",c),a.borderTopRightRadius=Lt(m,"radius",c))}const g=Lt(t,"bottom");if(g){const v=on.singleBorderStyle(g);v&&(a.borderBottomWidth=Lt(v,"width",l),a.borderBottomStyle=Lt(v,"style",i),a.borderBottomColor=Lt(v,"color",s),a.borderBottomLeftRadius=Lt(g,"radius",c),a.borderBottomRightRadius=Lt(g,"radius",c))}const p=Lt(t,"left");if(p){const v=on.singleBorderStyle(p);v&&(a.borderLeftWidth=Lt(v,"width",l),a.borderLeftStyle=Lt(v,"style",i),a.borderLeftColor=Lt(v,"color",s),a.borderBottomLeftRadius=Lt(p,"radius",c),a.borderTopLeftRadius=Lt(p,"radius",c))}return a}static background(t){const n=$ce(t.image);return t.unsetBackground?{background:"none"}:{backgroundColor:t.color?P.colorOut(t.color):void 0,backgroundAttachment:t.attachment,backgroundPosition:t.position||"50% 50%",backgroundRepeat:t.repeat||"no-repeat",backgroundSize:t.size||"cover",backgroundImage:n,opacity:t.opacity}}};q(on,"absolute",fW),q(on,"button",t=>hW({buttonTypeVars:t})),q(on,"box",(t,n)=>{let{background:r,borderType:o,spacing:a,border:i,itemSpacingOnAllItems:s}=t;const l=ee();i={...l.borderType.contentBox,...i};const c=Object.values(a).filter(Do).length>0,d=ce.boxHasBackground(t),f=ce.boxHasOutline(t);!d&&f&&(l.options.preset===fg.DARK?r.color=l.mainColors.bg.lighten(.05):r.color=l.mainColors.bg);const h=l.spacer.componentInner;!c&&f&&(a={horizontal:h,vertical:[dt.SEPARATOR,dt.SEPARATOR_BETWEEN].includes(o)?0:h});let m=t.itemSpacing||(f?h:0);const g={"--border-type":o,"--has-background":d?"true":"false","--has-full-outline":f?"true":"false"};let p={};if([dt.SEPARATOR,dt.SEPARATOR_BETWEEN].includes(o)){const y=l.spacer.componentInner/2;a={...a,left:Wn(a.all??a.horizontal??a.left??0,0)+y,right:Wn(a.all??a.horizontal??a.right??0,0)+y},p=kr(y)}const v={...g,padding:0,...on.padding(a),...p},b={...g,listStyle:"none",border:"none",boxShadow:"none",borderRadius:f?i.radius??l.border.radius:0,background:"none",clear:"both",width:"100%","&:before":{display:"none"},"&:after":{display:"none"},...on.background(r),...on.borderType(o,{border:i,interactiveOutline:n==null?void 0:n.interactiveOutline}),...f||[dt.SEPARATOR,dt.SEPARATOR_BETWEEN].includes(o)?{"& &:first-of-type:before, & .pageBox:first-of-type:before, & .pageBoxNoCompat:first-of-type:before":{display:"none"},"& &:last-of-type:after, & .pageBox:last-of-type:after, & .pageBoxNoCompat:last-of-type:after":{display:"none"}}:{},...f?{"& + &, & + .pageBox, & + .pageBoxNoCompat":on.margin({top:m})}:{},...s?on.margin({vertical:m}):{}};return n!=null&&n.noPaddings?b:n!=null&&n.onlyPaddings?v:{...b,...v}}),q(on,"setAllBorders",(t,n,r,o,a=!1)=>{const i={};return t!==void 0&&Xt(i,{borderTopColor:t,borderRightColor:t,borderBottomColor:t,borderLeftColor:t}),n!==void 0&&Xt(i,{borderTopWidth:w(n),borderRightWidth:w(n),borderBottomWidth:w(n),borderLeftWidth:w(n)}),r!==void 0&&Xt(i,{borderTopStyle:r,borderRightStyle:r,borderBottomStyle:r,borderLeftStyle:r}),o!==void 0&&typeof o!="object"&&Xt(i,on.setAllRadii(o)),i}),q(on,"clickable",{itemState:(t,n)=>{var m,g,p,v,b,y,C;const r=ee(),o="color",{disableTextDecoration:a}=n||{disableTextDecoration:!1},i=r.links.colors,s=ce.clickable(t??{}),l={default:t!=null&&t.skipDefault?void 0:on.clickable.linkStyleFallbacks(s.default,void 0,i.default),hover:on.clickable.linkStyleFallbacks(s.hover,s.allStates,i.hover),focus:on.clickable.linkStyleFallbacks(s.focus,s.allStates,i.focus),clickFocus:on.clickable.linkStyleFallbacks(s.clickFocus,s.allStates,i.focus),keyboardFocus:on.clickable.linkStyleFallbacks(s.keyboardFocus,s.allStates,i.keyboardFocus),active:on.clickable.linkStyleFallbacks(s.active,s.allStates,i.active),visited:on.clickable.linkStyleFallbacks(s.visited,s.allStates,i.visited)},d=a?{textDecoration:je("none")}:{...on.linkDecoration()},f={default:{[o]:(m=l.default)==null?void 0:m.toString(),...d},hover:{[o]:(g=l.hover)==null?void 0:g.toString(),cursor:"pointer",...d},focus:{[o]:(p=l.focus)==null?void 0:p.toString(),...d},clickFocus:{[o]:(v=l.focus)==null?void 0:v.toString(),...d},keyboardFocus:{[o]:(b=l.keyboardFocus)==null?void 0:b.toString(),...d},active:{[o]:(y=l.active)==null?void 0:y.toString(),cursor:"pointer",...d},visited:l.visited?{[o]:(C=l.visited)==null?void 0:C.toString(),...d}:void 0};return{...f.default,"&:visited":f.visited??void 0,"&:hover":f.hover,"&:focus, &.isFocused":{...f.focus??{},...f.clickFocus??{}},"&.focus-visible":{...f.focus??{},...f.keyboardFocus??{}},"&:active":f.active}},linkStyleFallbacks:(t,n,r)=>t||n||r}),q(on,"flex",{middle:(t=!1)=>({display:"flex",alignItems:"center",justifyContent:"center",flexWrap:t?"wrap":"nowrap"}),spaceBetween:(t=!1)=>({display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:t?"wrap":"nowrap"}),middleLeft:(t=!1)=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:t?"wrap":"nowrap"}),inheritHeightClass:re(()=>S({display:"flex",flexDirection:"column",flexGrow:1,position:"relative"},"label:Mixins-inheritHeightClass"))});let E=on;const Kt=re(e=>{const t=ee(e),n=qe("formElements",e),r=t.mixBgAndFg,o=n("sizing",{height:36,halfHeight:18,maxWidth:528}),a=n("spacing",{margin:12,verticalPadding:6,horizontalPadding:12,fullBorderRadius:{extraHorizontalPadding:4}}),i=n("border",{width:t.borderType.formElements.default.width??t.border.width,color:t.borderType.formElements.default.color??t.border.color,style:t.borderType.formElements.default.style??t.border.style,radius:t.borderType.formElements.default.radius??t.border.radius}),s=n("giantInput",{height:82,fontSize:24}),l=n("largeInput",{height:48,fontSize:16}),c=n("colors",{fg:t.mainColors.fg,bg:t.mainColors.bg}),d=n("errorSpacing",{horizontalPadding:t.constants.fullGutter,verticalPadding:t.constants.fullGutter,verticalMargin:t.constants.fullGutter/2}),f=n("placeholder",{color:r(.83)}),h=n("disabled",{opacity:.5});return{sizing:o,errorSpacing:d,spacing:a,border:i,giantInput:s,largeInput:l,colors:c,placeholder:f,disabled:h,buttonMarginAlignment:(g=_p.DEFAULT)=>{const p=ee();let v=p.icon.sizes.default;switch(g){case _p.SMALL:v=p.icon.sizes.small;break;case _p.LARGE:v=p.icon.sizes.small;break}return(o.height-v)/2}}}),Zft=re(()=>{const e=Tt("accessibleError"),t=ee(),n=e({display:"flex",alignItems:"center"}),r=e("paragraph",{...E.font({...t.fontSizeAndWeightVars("small","normal"),color:P.colorOut(t.messageColors.error.fg)})});return{root:n,paragraph:r}});re(()=>{const e=Tt("formError"),t=ee(),n=Kt(),r=e({backgroundColor:P.colorOut(t.messageColors.error.fg),color:P.colorOut(t.messageColors.error.fg),marginBottom:w(16),paddingLeft:n.errorSpacing.horizontalPadding,paddingRight:n.errorSpacing.horizontalPadding,paddingTop:n.errorSpacing.verticalPadding,paddingBottom:n.errorSpacing.verticalPadding,display:"flex",alignItems:"center",justifyContent:"space-between"}),o=e("actions",{display:"flex",alignItems:"center"}),a=e("button",{marginLeft:w(12)}),i=e("activeButton",{fontWeight:"bold"});return{actionButton:a,root:r,activeButton:i,actions:o}});const _N={style:void 0,bg:void 0,fg:void 0,fgState:void 0,bgState:void 0,borders:void 0,borderState:void 0};var ye;(function(e){e.STANDARD="standard",e.PRIMARY="primary",e.OUTLINE="outline",e.TRANSPARENT="transparent",e.TRANSLUCID="translucid",e.CUSTOM="custom",e.RESET="reset",e.RADIO="radioAsButton",e.TEXT="text",e.TEXT_PRIMARY="textPrimary",e.ICON="icon",e.ICON_MENUBAR="iconMenubar",e.ICON_COMPACT="iconCompact",e.TITLEBAR_LINK="titleBarLink",e.DASHBOARD_STANDARD="dashboardStandard",e.DASHBOARD_PRIMARY="dashboardPrimary",e.DASHBOARD_SECONDARY="dashboardSecondary",e.DASHBOARD_LINK="dashboardLink",e.NOT_STANDARD="notStandard"})(ye||(ye={}));var Fo;(function(e){e.SOLID="solid",e.OUTLINE="outline",e.TRANSPARENT="transparent",e.ADVANCED="advanced",e.HIDE="hide"})(Fo||(Fo={}));const Gi=re(e=>{const t=ee(e),n=Kt(e),r=qe("buttonGlobals",e);let o=r("colors",{fg:t.mainColors.fg,bg:t.mainColors.bg,primary:t.mainColors.primary,primaryContrast:t.mainColors.primaryContrast});const a=r("font",ce.font({...t.fontSizeAndWeightVars("medium","semiBold")})),i=r("padding",{top:2,bottom:3,horizontal:12,fullBorderRadius:{extraHorizontalPadding:8}}),s=r("sizing",{minHeight:n.sizing.height,minWidth:104,compactHeight:24,medHeight:32}),l=r("border",t.borderType.formElements.buttons),c=r("constants",{borderMixRatio:.24});return{padding:i,sizing:s,border:l,font:a,constants:c,colors:o}}),eS=function(e,t,n,r){const o=ee(r),{almostBlack:a,white:i}=o.elementaryColors,s=Gi(r),l=Kt(r),c=n.preset,{presetName:d}=t(e,{...n});if(d===Fo.SOLID){const{colors:{fg:f,bg:h}}=t(e,{colors:{fg:(c==null?void 0:c.fg)??s.colors.primaryContrast,bg:(c==null?void 0:c.bg)??s.colors.primary}}),{state:{colors:{bg:m}}}=t(e,{state:{colors:{bg:(c==null?void 0:c.bgState)??P.offsetLightness(h,.05)}}}),{state:{colors:{fg:g}}}=t(e,{state:{colors:{fg:(c==null?void 0:c.fgState)??(P.isLightColor(m)?a:i)}}}),{borders:p}=t(e,{borders:{...s.border,color:(c==null?void 0:c.borders)??h}}),{state:{borders:v}}=t(e,{state:{borders:{...p,color:(c==null?void 0:c.borderState)??m}}}),{disabled:b}=t(e,{disabled:{colors:{fg:f,bg:h},borders:p,opacity:l.disabled.opacity}});return t(e,{name:e,presetName:d,colors:{fg:f,bg:h},borders:p,useShadow:!1,opacity:void 0,state:{colors:{fg:g,bg:m},borders:v,opacity:void 0},disabled:b})}if(d===Fo.OUTLINE){const{colors:{fg:f,bg:h},state:{colors:{fg:m,bg:g}}}=t(e,{colors:{fg:(c==null?void 0:c.fg)??s.colors.fg,bg:(c==null?void 0:c.bg)??s.colors.bg},state:{colors:{bg:(c==null?void 0:c.bgState)??s.colors.primary,fg:(c==null?void 0:c.fgState)??s.colors.primaryContrast}}}),{borders:p}=t(e,{borders:{...s.border,color:(c==null?void 0:c.borders)??ra(f).mix(s.colors.bg,s.constants.borderMixRatio)}}),{state:{borders:v}}=t(e,{state:{borders:{...p,color:(c==null?void 0:c.borderState)??g}}}),{disabled:b}=t(e,{disabled:{colors:{fg:f,bg:h},borders:p,opacity:l.disabled.opacity}});return t(e,{name:e,presetName:d,colors:{fg:f,bg:h},borders:p,useShadow:!1,opacity:void 0,state:{colors:{fg:m,bg:g},borders:v,opacity:void 0},disabled:b})}return{...n,name:e}},gv=re(e=>{const t=ee(e),n=qe("button",e),r=Gi(e),o=n("outline",{preset:{fg:r.colors.primary,borders:r.colors.primary,fgState:r.colors.bg},presetName:Fo.OUTLINE}),a=n("outline",ce.button({...eS("outline",n,o,e)})),i=n("primary",{preset:_N}),s=n("primary",{...i,presetName:i.preset.style??Fo.SOLID}),l=n("primary",ce.button({...eS("primary",n,s,e)})),c=n("standard",{preset:_N}),d=n("standard",{...c,presetName:c.preset.style??Fo.OUTLINE}),f=n("standard",ce.button({...eS("standard",n,d,e)})),h=n("transparent",ce.button({name:ye.TRANSPARENT,colors:{fg:r.colors.bg,bg:r.colors.fg.fade(.1)},borders:{...r.border,color:r.colors.bg},state:{colors:{bg:r.colors.fg.fade(.2)}}})),m=n("translucid",ce.button({name:ye.TRANSLUCID,colors:{bg:r.colors.bg,fg:r.colors.primary},borders:{...r.border,color:r.colors.bg},state:{colors:{bg:r.colors.bg.fade(.8)}}})),g=n("notStandard",ce.button({name:ye.NOT_STANDARD,colors:{bg:r.colors.bg,fg:r.colors.primary},borders:{...r.border,color:r.colors.bg},state:{colors:{bg:r.colors.bg,fg:r.colors.primary},borders:{radius:r.border.radius,color:r.colors.bg}}})),p=n("radio",{sizing:{minHeight:Kt().sizing.height-4}}),v=n("radio",{...p,borders:{...t.border,radius:p.sizing.minHeight/2},state:{colors:{fg:r.colors.primary},borders:{color:r.colors.primary,radius:p.sizing.minHeight/2}},active:{color:P.colorOut(t.mixBgAndFg(.1))}}),b=n("radio",ce.button({name:ye.RADIO,colors:{fg:r.colors.fg,bg:r.colors.bg},padding:{horizontal:12},borders:v.borders,state:v.state,sizing:{minHeight:v.sizing.minHeight},extraNested:{"&.isActive":{borderColor:P.colorOut(v.active.color),backgroundColor:P.colorOut(v.active.color)}},skipDynamicPadding:!0}));return{standard:f,primary:l,outline:a,transparent:h,translucid:m,notStandard:g,radio:b}}),Mr=class Mr{constructor(){throw new Error("Not to be instantiated")}static boxHasBackground(t){return!!((t.background.color||t.background.image)&&!t.background.unsetBackground)}static boxHasOutline(t){const n=Mr.boxHasBackground(t);return[dt.BORDER,dt.SHADOW].includes(t.borderType)||n}};q(Mr,"button",t=>{var m;const n=Gi(),r={fg:n.colors.fg,bg:n.colors.bg,...t.colors},o=Mr.font({...n.font,...t.fonts,color:((m=t.fonts)==null?void 0:m.color)??r.fg}),a={minHeight:void 0,minWidth:void 0,...t.sizing},i=t.state??t.hover??{},s=t.state??t.focus??{},l=t.state??t.active??{},c=t.state??t.focusAccessible??{},d=t.disabled??{},f=Mr.border({...n.border,...t.borders}),h={horizontal:n.padding.horizontal,...t.padding};return{...t,name:t.name??ye.STANDARD,useShadow:t.useShadow??!1,skipDynamicPadding:t.skipDynamicPadding??!1,opacity:t.opacity??void 0,extraNested:t.extraNested??void 0,colors:r,fonts:o,borders:f,sizing:a,padding:h,hover:i,focus:s,active:l,disabled:d,focusAccessible:c}}),q(Mr,"spacing",t=>({...uW,...t})),q(Mr,"font",t=>({...Rce,...t})),q(Mr,"border",t=>({...Pce,...t})),q(Mr,"background",t=>({...jce,...t})),q(Mr,"clickable",t=>({...Nce,...t})),q(Mr,"box",t=>({borderType:(t==null?void 0:t.borderType)??dt.NONE,background:Mr.background((t==null?void 0:t.background)??{}),spacing:Mr.spacing((t==null?void 0:t.spacing)??{}),border:Mr.border((t==null?void 0:t.border)??{}),itemSpacing:(t==null?void 0:t.itemSpacing)??0,itemSpacingOnAllItems:(t==null?void 0:t.itemSpacingOnAllItems)??!1})),q(Mr,"contentBoxes",t=>({depth1:Mr.box((t==null?void 0:t.depth1)??{}),depth2:Mr.box((t==null?void 0:t.depth2)??{}),depth3:Mr.box((t==null?void 0:t.depth3)??{})}));let ce=Mr;var fg;(function(e){e.DARK="dark",e.LIGHT="light"})(fg||(fg={}));const Hce=40,fb="Open Sans",ee=re(e=>{const t=qe("global",e),n=t("constants",{stateColorEmphasis:.15,fullGutter:Hce,states:{hover:{bgEmphasis:.08,borderEmphasis:.7},selected:{bgEmphasis:.5,borderEmphasis:1},active:{bgEmphasis:.2,borderEmphasis:1},focus:{bgEmphasis:.15,borderEmphasis:1}}}),r=t("options",{preset:"light"});let o=On("#037DBC");r.preset==="dark"&&(o=o.lighten(.25));const a={black:On("#000"),almostBlack:On("#272A2D"),darkText:On("#555a62"),white:On("#fff"),almostWhite:On("#f5f6f7"),transparent:Za(0,0,0,0),primary:o},i=t("mainColors",{fg:r.preset==="light"?a.darkText:a.almostWhite,bg:r.preset==="light"?a.white:a.almostBlack,primary:o,primaryContrast:a.white,secondary:o,secondaryContrast:a.white}),s=t("mainColors",{...i,fgHeading:i.fg});o=s.primary;const l=s.secondary,c=(ot,Et=f?f.bg:s.bg)=>P.getRatioBasedOnDarkness(ot,Et),d=t("mainColors",{primaryContrast:P.isLightColor(o)?a.almostBlack:a.white,statePrimary:P.offsetLightness(o,.04),secondary:P.offsetLightness(o,.05),stateSecondary:void 0,secondaryContrast:P.isLightColor(l)?a.almostBlack:a.white}),f={...s,...d},h=ot=>{ot=ot??f.bg,ot=ra(ot);const Et=r.preset==="light"?f.fg:f.bg;return P.isLightColor(ot)?Et:a.almostWhite},m=ot=>f.fg.mix(f.bg,ot),g=ot=>f.primary.mix(f.fg,c(ot)),p=ot=>f.primary.mix(f.bg,c(ot)),v=t("messageColors",{warning:{fg:On("#4b5057"),bg:On("#fff1ce"),state:On("#e55a1c")},error:{fg:On("#d0021b"),bg:On("#FFF3D4")},confirm:On("#60bd68"),success:On("#38853D"),deleted:{fg:On("#D0021B"),bg:On("#D0021B")}}),b=t("links",{colors:{default:f.secondary,hover:void 0,focus:void 0,keyboardFocus:void 0,active:void 0,visited:void 0},linkDecorationType:ch.AUTO});Object.keys(b.colors).forEach(ot=>{ot!=="default"&&ot!=="visited"&&(b.colors[ot]||(b.colors[ot]=d.stateSecondary??P.offsetLightness(b.colors.default,.008)))});const y=t("body",{backgroundImage:ce.background({color:f.bg})}),C=t("border",{color:m(.2),colorHover:m(.4),width:1,style:"solid",radius:6}),D=t("borderType",{formElements:{default:{...C,color:m(.35).saturate(.1)},buttons:C},modals:C,dropDowns:C,contentBox:C});let T=t("gutter",{size:16});const B=t("gutter",{...T,half:T.size/2,quarter:T.size/4}),j=t("lineHeight",{base:1.5,condensed:1.25,code:1.45,excerpt:1.4}),R=t("foundationalWidths",{panelWidth:216,middleColumn:672,minimalMiddleColumnWidth:550,narrowContentWidth:900,breakPoints:{twoColumns:1200,xs:500}}),N=t("widget",{padding:10}),_=t("widget",{...N,paddingBothSides:N.padding*2}),U=t("panel",{width:R.panelWidth}),V=t("panel",{...U,paddedWidth:U.width+_.paddingBothSides}),z=t("middleColumn",{width:R.middleColumn}),Y=t("middleColumn",{width:z.width,paddedWidth:z.width+_.paddingBothSides}),te=Y.paddedWidth+V.paddedWidth*2,se=t("fonts",{size:{large:16,medium:14,small:12,extraSmall:10,largeTitle:32,title:24,subTitle:18},sizeWeight:{large:void 0,medium:void 0,small:void 0,largeTitle:void 0,title:void 0,subTitle:void 0},mobile:{size:{title:20,largeTitle:26}},weights:{normal:400,semiBold:600,bold:700},googleFontFamily:fb,forceGoogleFont:!1,customFontUrl:void 0,customFont:{name:void 0,url:void 0,fallbacks:[]}}),he=t("fonts",{...se,families:{body:[se.customFont.name&&!se.forceGoogleFont?se.customFont.name:se.googleFontFamily??fb,...bE],monospace:dW,headings:[se.customFont.name&&!se.forceGoogleFont?se.customFont.name:se.googleFontFamily??fb,...bE]}}),pe=he.families.body[0]===fb,K=t("fonts",{...he,alignment:{headings:{capitalLetterRatio:pe?.73:.75,verticalOffset:1,horizontalOffset:pe?-.03:0,verticalOffsetForAdjacentElements:pe?"-.13em":"0em"}}});K.customFont.name&&K.customFont.url&&(K.forceGoogleFont=!1,K.googleFontFamily="custom");const O=(ot,Et)=>({size:K.size[ot],weight:Et?K.weights[Et]:K.sizeWeight[ot]}),le=t("icon",{sizes:{large:32,default:24,small:16,xSmall:9.5},color:m(.18)}),be=t("spacer",{size:K.size.medium*j.base,mainLayout:40,pageComponent:48,pageComponentCompact:32,panelComponent:16,headingBox:16,headingBoxCompact:8,headingItem:8,componentInner:16}),H=t("animation",{defaultTiming:".10s",defaultEasing:"ease-out"}),ie=t("embed",{error:{bg:v.error},focus:{color:f.primary},text:{padding:K.size.medium},sizing:{smallPadding:4,width:720},select:{borderWidth:2},overlay:{hover:{color:f.bg.fade(.5)}}}),oe=t("states",{icon:{opacity:.6},text:{opacity:.75},hover:{highlight:b.colors.default.fade(n.states.hover.bgEmphasis),contrast:void 0,opacity:1},selected:{highlight:b.colors.default.fade(n.states.selected.bgEmphasis),contrast:void 0,opacity:1},active:{highlight:b.colors.default.fade(n.states.active.bgEmphasis),contrast:void 0,opacity:1},focus:{highlight:b.colors.default.fade(n.states.focus.bgEmphasis),contrast:void 0,opacity:1}}),ve=P.modifyColorBasedOnLightness({color:f.fg,weight:.5}),$e=t("overlay",{dropShadow:`2px -2px 5px ${P.colorOut(ve.fade(.3))}`,bg:ve,border:{color:C.color,radius:C.radius},fullPageHeadingSpacer:32,spacer:32}),Ne=36,Ze=t("buttonIcon",{size:Ne,offset:(Ne-le.sizes.default)/2}),ze=t("separator",{color:C.color,size:1}),Xe=ot=>{mn("The function 'findColorMatch' is not meant for production")},Me=t("contentBoxes",ce.contentBoxes({depth1:{borderType:dt.NONE},depth2:{borderType:dt.SEPARATOR},depth3:{borderType:dt.SEPARATOR}})),Je=t("panelBoxes",ce.contentBoxes({depth1:{borderType:dt.NONE},depth2:{borderType:dt.NONE},depth3:{borderType:dt.NONE}})),pt=t("itemList",{padding:ce.spacing({top:15,right:_.padding,bottom:16,left:_.padding})});return{options:r,elementaryColors:a,mainColors:f,messageColors:v,body:y,borderType:D,border:C,gutter:B,panel:V,middleColumn:Y,contentWidth:te,fonts:K,spacer:be,lineHeights:j,icon:le,buttonIcon:Ze,animation:H,links:b,embed:ie,states:oe,overlay:$e,getFgForBg:h,mixBgAndFg:m,mixPrimaryAndFg:g,mixPrimaryAndBg:p,separator:ze,findColorMatch:Xe,constants:n,getRatioBasedOnBackgroundDarkness:c,foundationalWidths:R,widget:_,itemList:pt,contentBoxes:Me,panelBoxes:Je,fontSizeAndWeightVars:O}}),Hc=(...e)=>{const t=ee();return Uce(t.animation.defaultTiming,...e)},Uce=(e,...t)=>{const n=ee();return t=t.length===0?["all"]:t,{transition:`${t.map((r,o)=>`${r} ${e} ${n.animation.defaultEasing}${o===t.length?", ":""}`)}`}},Jft=(e,t,n)=>({fontSize:w(e),width:Z(100),lineHeight:1.5,...E.padding({...uW,top:w(t),bottom:w(t),left:w(t*2),right:w(t*2)})}),i1=(e,t,n)=>(e-n-24)/2,mW=(e,t,n)=>i1(e,t,n)*2,eO=(e,t,n,r)=>{const o=i1(e,t,n),a=mW(e,t,n),i=Kt(),s=JA({radius:r??ee().borderType.formElements.default.radius,extraPadding:i.spacing.fullBorderRadius.extraHorizontalPadding,height:e});return{fontSize:w(t),width:Z(100),lineHeight:1.5,minHeight:w(e),...E.padding({vertical:w(Le(o)),left:Le(a+s.left),right:Le(a+s.right)})}},Vce=e=>({"&::-webkit-input-placeholder":{...e},"&::-moz-placeholder":{...e},"&::-ms-input-placeholder":{...e}}),yE=()=>({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%"}),eht=()=>({textOverflow:"ellipsis",overflowX:"hidden",maxWidth:Z(100)}),vv=(e,t)=>{const n=Iu(e,t,!0),r=e.visited!==void 0?e.visited:e.noState||{};return n[":visited"]={...r},n},Iu=(e,t,n,r)=>{const o=e.allStates!==void 0?e.allStates:{},a=e.noState!==void 0?e.noState:{},i=n?{}:{"&:disabled":{opacity:.5}},s={...o,...a,...a,"&:hover:not(:disabled)":{...o,...e.hover},"&:focus":{...o,...e.focus},"&:focus:not(.focus-visible)":{...o,...e.clickFocus},"&&.focus-visible":{...o,...e.keyboardFocus},"&:active:not(:disabled)":{...o,...e.active},...i,...t};return r&&(wa("allButtonStates: "),wa("style: ",e),wa("nested: ",t),wa("output: ",s)),s},pW=(e,t,n)=>{const r=e.allStates!==void 0?e.allStates:{},o=e.hover!==void 0?e.hover:{},a=e.focus!==void 0?e.focus:{},i=e.clickFocus!==void 0?e.clickFocus:{},s=e.keyboardFocus!==void 0?e.keyboardFocus:{},l=e.active!==void 0?e.active:{},c=e.noState!==void 0?e.noState:{};return n||(n={}),{[Hd("&",n.allStates)]:{...r,...c},[Hd("&:hover",n.hover)]:{...r,...o},[Hd("&:focus",n.focus)]:{...r,...a},[Hd("&:focus:not(.focus-visible)",n.clickFocus)]:{...r,...i},[Hd("&.focus-visible",n.keyboardFocus)]:{...r,...s},[Hd("&&:active",n.active)]:{...r,...l},...t}},Hd=(e,t)=>t?`${e}, ${t}`:e,zn=(e="none",t=!1)=>{const n=t?je(e):e;return{WebkitUserSelect:n,MozUserSelect:n,msUserSelect:n,userSelect:n}},bv=(e="none")=>({pointerEvents:je(e)}),tO=(e="none")=>Tt("pointerEvents")(bv(e)),FN=()=>{const e=Kt();return{pointerEvents:je("none"),...zn("none",!0),cursor:je("default"),opacity:je(e.disabled.opacity.toString())}};function Hh(){return{position:["-webkit-sticky","sticky"]}}function wo(){return{middle:(n=!1)=>({display:"flex",alignItems:"center",justifyContent:"center",flexWrap:n?"wrap":"nowrap"}),middleLeft:(n=!1)=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:n?"wrap":"nowrap"})}}const us=re(()=>Tt("inheritHeight")({display:"flex",flexDirection:"column",flexGrow:1,position:"relative"})),Gce=(e="none",t=!1)=>{const n=t?je(e):e;return{WebkitAppearance:n,MozAppearance:n,appearance:n}},WN=73,Yce=V4({"0%":{transform:`rotate(${UR(WN)})`},"100%":{transform:`rotate(${UR(360+WN)})`}}),Kce="0.7s";function gW(){return{...Hc("opacity"),animationName:Yce,animationDuration:Kce,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out"}}const tS=e=>{const t=ee(),n={color:e.color||t.mainColors.primary,size:e.size||18,thickness:e.thickness||3,...e};return{position:"relative",content:Fc(""),display:"block",width:w(n.size),height:w(n.size),borderRadius:Z(50),borderTop:`${w(n.thickness)} solid ${n.color.toString()}`,borderRight:`${w(n.thickness)} solid ${n.color.fade(.3).toString()}`,borderBottom:`${w(n.thickness)} solid ${n.color.fade(.3).toString()}`,borderLeft:`${w(n.thickness)} solid ${n.color.fade(.3).toString()}`,transform:"translateZ(0)",...gW()}},Rc=re(()=>{const e=r=>S({"&:empty":{display:"none"},...r},"label:styleHelpersVisibility-onEmpty"),t=S(E.absolute.srOnly(),"label:styleHelpersVisibility-visuallyHidden"),n=S({display:je("none")},"label:styleHelpersVisibility-displayNone");return{onEmpty:e,displayNone:n,visuallyHidden:t}}),qce=w,ki=fW,Xce=e=>({name:t=>t?{label:`${e}-${t}`}:{label:e}}),Ha=(e,t=Le)=>e!==void 0?w(e):void 0,js=re(e=>{const t=qe("userPhoto",e),n=ee(),r=t("border",ce.border({radius:"50%",width:1,color:n.mixBgAndFg(.5).fade(.3)})),o=t("sizing",{xsmall:24,small:28,medium:40,large:100,xlarge:145});return{border:r,sizing:o}}),vW=(e=js())=>{const t={position:"relative",overflow:"hidden",...E.border(e.border)},n={...Mce(),padding:je(0),margin:je(0),verticalAlign:"initial","&&":{width:Z(100),height:"auto"}};return{root:t,photo:n,sizeFn:o=>({width:w(o),height:w(o),flexBasis:w(o)})}},bW=re(()=>{const e=js(),t=vW(e),n=S(t.root,"label:userPhotoStyles-root"),r=S(t.photo,"label:userPhotoStyles-photo"),o=S(t.sizeFn(e.sizing.xsmall),"label:userPhotoStyles-xsmall"),a=S(t.sizeFn(e.sizing.small),"label:userPhotoStyles-small"),i=S(t.sizeFn(e.sizing.medium),"label:userPhotoStyles-medium"),s=S(t.sizeFn(e.sizing.large),"label:userPhotoStyles-large"),l=S(t.sizeFn(e.sizing.xlarge),"label:userPhotoStyles-xlarge"),c=S({display:"block","&&":{width:Z(100)}},"label:userPhotoStyles-noPhoto");return{root:n,xsmall:o,small:a,medium:i,large:s,xlarge:l,photo:r,noPhoto:c}}),Qce={"ai-sparkle-monocolor":{width:"16",height:"16",fill:"currentColor"},"ai-sparkle":{width:"16",height:"16",fill:"none"},"analytics-add":{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},"analytics-remove":{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},"cmd-alert":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"cmd-approve":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"cmd-dismiss":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"dashboard-edit":{width:"22",height:"22",viewBox:"0 0 22 22"},"data-add":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-article":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-checked":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-down":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-drag-and-drop":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-folder-tabs":{width:"24",height:"24",viewBox:"0 0 24 24"},"data-information":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-left":{style:{transform:" rotate(-90deg)"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-online":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-pencil":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-refresh":{viewBox:"0 0 24 24",fill:"#555A62"},"data-replace":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-right":{style:{transform:" rotate(90deg)"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-send":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-settings":{width:"24",height:"24",viewBox:"0 0 24 24",ariahidden:"true"},"data-share":{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},"data-site-metric":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-sort-dropdown":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-swap":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-trash":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"data-undo":{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},"data-up":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"discussion-bookmark-solid":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.4"},"discussion-bookmark":{width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.4"},"editor-eye-slash":{width:"24",height:"24",viewBox:"0 0 24 24"},"editor-eye":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"editor-link-card":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"editor-link-rich":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"editor-link-text":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"editor-link":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"editor-quote":{width:"24",height:"24",viewBox:"0 0 24 24"},"editor-unlink":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"event-interested-empty":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"event-interested-filled":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"event-registered":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"external-link":{viewBox:"0 0 17 17"},"logo-github":{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none"},"logo-jira":{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none"},"logo-salesforce":{width:"60",height:"60",viewBox:"0 0 60 60"},"logo-zendesk":{width:"60",height:"60",viewBox:"0 0 60 60"},"me-inbox":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"me-messages-solid":{width:"24",height:"24",viewBox:"0 0 24 24"},"me-messages":{width:"24",height:"24",viewBox:"0 0 24 24"},"me-notifications-small":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"me-notifications-solid":{width:"24",height:"24",viewBox:"0 0 24 24"},"me-notifications":{width:"24",height:"24",viewBox:"0 0 24 24"},"me-sign-in":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-comment":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-external-compact":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-external":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"meta-like":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-smile":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-time":{width:"24",height:"24",viewBox:"0 0 24 24"},"meta-view":{width:"24",height:"24",viewBox:"0 0 24 24"},"navigation-breadcrumb-active":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"navigation-breadcrumb-inactive":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"navigation-circle-ellipsis":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"navigation-collapseAll":{viewBox:"0 0 24 24",role:"img"},"navigation-ellipsis":{width:"24",height:"24",viewBox:"0 0 24 24"},"navigation-expandAll":{viewBox:"0 0 24 24",role:"img"},"navigation-languages":{width:"24",height:"24",viewBox:"0 0 24 24"},"navigation-skip":{width:"24",height:"24",viewBox:"0 0 24 24"},"new-discussion":{width:"24px",height:"21px",viewBox:"0 0 24 21"},"new-event":{width:"24px",height:"24px",viewBox:"0 0 24 24"},"new-idea":{viewBox:"0 0 24 24",width:"24",height:"24"},"new-poll":{width:"24",height:"24",viewBox:"0 0 24 24"},"new-question":{width:"24px",height:"24px",viewBox:"0 0 24 24"},"notification-alert":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"notification-running":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"post-flag":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"profile-crown":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"profile-lock":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"reaction-arrow-down":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-arrow-up":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-awesome":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-comments":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"reaction-dislike":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-expressionless":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-fire":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-funny":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-insightful":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-like":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-log":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"reaction-love":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-more":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-off-topic":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-support":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-thumbs-down":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-thumbs-up":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-very-negative":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"reaction-wtf":{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},"search-answered":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-categories":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-close":{viewBox:"0 0 9.5 9.5"},"search-discussion":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-events":{width:"24",height:"24",viewBox:"0 0 24 24"},"search-filter-applied":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-filter-small-applied":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-filter-small":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-filter":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-groups":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-ideas":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-kb":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-members":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-post-count":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-questions":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"search-search":{width:"24",height:"24",viewBox:"0 0 24 24"},"search-subcategories":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"status-running":{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},"status-success":{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},"status-warning":{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},"user-spoof":{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},"vanilla-logo":{viewBox:"0 0 347.01 143.98"}};class Zce{constructor(){q(this,"icons",da("iconStore",{}));q(this,"baseUrl","")}getIcon(t){return this.icons.current()[t]??null}registerIcon(t,n){this.icons.current()[t]="default"in n?n.default:n}getAllIcons(){return this.icons.current()}}const yW=new Zce,ku={default:24,compact:16};function Bt(e){const{icon:t,size:n="default",...r}=e,o=yW.getIcon(t),a=Qce[t]??null;return o?u.jsx(o,{focusable:!1,...r,width:ku[n],height:ku[n]}):a?u.jsx("svg",{fill:"none",focusable:"false",...a,width:ku[n],height:ku[n],...r,children:u.jsx("use",{xlinkHref:`#${t}`})}):u.jsx(u.Fragment,{})}const iu=(e,t)=>{if(e===void 0)return{};let n=e.stroke;n!=="none"&&(n=e.stroke?P.colorOut(e.stroke):e.stroke);let r=e.fill;return r!=="none"&&(r=e.fill?P.colorOut(e.fill):e.fill),{stroke:n,fill:r,strokeWidth:e.strokeWidth?w(e.strokeWidth):void 0,opacity:e.opacity}},nO=re(()=>{const e=qe("defaultIconSizes"),t=e("defaultIcon",{width:ku.default,height:ku.default}),n=e("defaultIcon",{width:16,height:16}),r=e("newFolderIcon",{width:17,height:14.67}),o=e("attachmentError",{width:20,height:18}),a=e("vanillaLogo",{width:79,height:33,mobile:{width:void 0,height:void 0}}),i=e("compact",{width:12,height:12}),s=e("warning",{width:16,height:16}),l=e("settings",{width:20,height:18}),c=e("user",{width:20,height:20}),d=e("userWarning",{width:40,height:40}),f=e("close",{width:20,height:20}),h=e("closeCompact",{width:16,height:16}),m=e("closeTiny",{width:10,height:10}),g=be=>e("chevronLeftCompact",{width:be?9.142857142857142:12,height:be?16:21}),p=e("selectedCategory",{width:16.8,height:13}),v=e("selectedCategory",{width:51,height:17}),b=e("plusCircle",{width:16,height:16}),y=e("deleteIcon",{width:24,height:24}),C=e("editIcon",{width:24,height:24}),D=e("categoryIcon",{width:18,height:18,opacity:.8}),A=e("documentation",{width:12.6,height:16.02}),T=e("_bookmarkIcon",{width:12,height:16,strokeWidth:1}),B=e("newPostMenuIcon",{width:16,height:16}),j=e("typeAll",{width:13,height:13}),R=e("typeDiscussions",{width:18.869,height:15.804}),N=e("typeArticles",{width:14.666,height:14.666}),_=e("TypeCategoriesAndGroups",{width:15,height:16.28}),U=e("TypePlaces",{width:15*1.2,height:16.28*1.2}),V=e("TypeFlag",{width:26,height:26}),z=e("TypeMember",{width:20,height:20}),Y=e("TypeIdeasIcon",{width:18.444,height:16.791}),te=e("TypePollsIcon",{width:26,height:26}),se=e("TypeQuestion",{width:26,height:26}),he=e("downvote",{width:24,height:24}),pe=e("upvote",{width:24,height:24}),K=e("SiteTotalMembersIcon",{width:24,height:24}),O=e("SiteTotalPostsIcon",{width:24,height:24}),le=e("SiteTotalOnlineIcon",{width:24,height:24});return{standard:t,newFolder:r,fileType:n,attachmentError:o,vanillaLogo:a,compact:i,settings:l,warning:s,user:c,userWarning:d,close:f,closeCompact:h,closeTiny:m,chevronLeftCompact:g,selectedCategory:p,chevronUp:v,plusCircle:b,categoryIcon:D,deleteIcon:y,editIcon:C,documentation:A,_bookmarkIcon:T,newPostMenuIcon:B,typeAll:j,typeDiscussions:R,typeArticles:N,typeCategoriesAndGroups:_,typeMember:z,typeIdeasIcon:Y,typePollsIcon:te,typeQuestion:se,typePlaces:U,typeFlag:V,downvote:he,upvote:pe,siteTotalMembersIcon:K,siteTotalPostsIcon:O,siteTotalOnlineIcon:le}}),bt=re(()=>{const e=nO(),t=ee(),n=Tt("icon"),r=S({width:w(e.standard.width),height:w(e.standard.height)},"label:iconStyles-standard"),o=n("fileType",{width:w(e.fileType.width),height:w(e.fileType.height)}),a=n("newFolder",{width:w(e.newFolder.width),height:w(e.newFolder.height),paddingRight:w(1)}),i=n("attachmentError",{width:w(e.attachmentError.width),height:w(e.attachmentError.height)}),s=n("vanillaLogo",{width:w(e.vanillaLogo.width),height:w(e.vanillaLogo.height)}),l=n("vanillaLogoMobile",{width:w(e.vanillaLogo.mobile.width??e.vanillaLogo.width),height:w(e.vanillaLogo.mobile.height??e.vanillaLogo.height)}),c=n("compact",{width:w(e.compact.width),height:w(e.compact.height)}),d=n("settings",{width:w(e.settings.width),height:w(e.settings.height)}),f=n("triangeTiny",{width:w(8),height:w(8)}),h=n("warning",{width:w(e.warning.width),height:w(e.warning.height)}),m=n("user",{width:w(e.user.width),height:w(e.user.height)}),g=n("userWarning",{width:w(e.userWarning.width),height:w(e.userWarning.height)}),p=n("close",{width:w(e.close.width),height:w(e.close.height)}),v=n("closeCompact",{width:w(e.closeCompact.width),height:w(e.closeCompact.height)}),b=n("closeTiny",{display:"block",width:w(e.closeTiny.width),height:w(e.closeTiny.height),margin:"auto"}),y=n("chevronLeftCompact",{width:w(e.chevronLeftCompact().width),height:w(e.chevronLeftCompact().height)}),C=n("chevronLeftSmallCompact",{[`&&, &.${y}`]:{width:w(e.chevronLeftCompact(!0).width),height:w(e.chevronLeftCompact(!0).height)}}),D=n("selectedCategory",{width:w(e.selectedCategory.width),height:w(e.selectedCategory.height)}),A=n("chevronUp",{width:w(e.chevronUp.width),height:w(e.chevronUp.height)}),T=n("plusCircle",{width:w(e.plusCircle.width),height:w(e.plusCircle.height)}),B=n("categoryIcon",{width:w(e.categoryIcon.width),height:w(e.categoryIcon.height),opacity:e.categoryIcon.opacity,marginRight:w(3)}),j=n("deleteIcon",{width:w(e.deleteIcon.width),height:w(e.deleteIcon.height)}),R=n("isSmall",{transform:WZ(.85),transformOrigin:"50% 50%"}),N=n("editIcon",{width:w(e.editIcon.width),height:w(e.editIcon.height)}),_=n("discussionIcon",{width:w(e.standard.width),height:w(e.standard.height)}),U=n("hamburgerIcon",{width:w(e.standard.width),height:w(e.standard.height)}),V=n("errorFgColor",{color:P.colorOut(t.messageColors.error.fg)}),z=n("warningFgColor",{color:P.colorOut(t.messageColors.warning.fg)}),Y=n("successFgColor",{color:P.colorOut(t.messageColors.success)}),te=n("documentation",{display:"block",width:w(e.documentation.width),height:w(e.documentation.height)}),se=(Et={normalState:void 0,loadingState:void 0,bookmarkedState:void 0})=>{const Vt=ee(),nt=Vt.mainColors,{normalState:Ee={stroke:Vt.mainColors.fg,fill:"none",state:{stroke:nt.statePrimary}},loadingState:kt={opacity:.7,fill:nt.primary,strokeWidth:0},bookmarkedState:ne={stroke:nt.primary,fill:nt.primary}}=Et;return n("bookmark",{svg:{width:w(e._bookmarkIcon.width),height:w(e._bookmarkIcon.height),opacity:1,display:"block",position:"relative"},".svgBookmark":{...bv()},".svgBookmark-mainPath":iu(Ee),"&.Bookmarked:not(.Bookmarking) .svgBookmark-mainPath":iu(ne),"&:hover:not(.Bookmarked) .svgBookmark-mainPath":iu(Ee.state),"&:focus:not(.Bookmarked) .svgBookmark-mainPath":iu(Ee.state),"&:active:not(.Bookmarked) .svgBookmark-mainPath":iu(Ee.state),"&.Bookmarking .svgBookmark-mainPath":iu({fill:je("none"),opacity:kt.opacity}),".svgBookmark-loadingPath":{display:"none"},"&.Bookmarking .svgBookmark-loadingPath":{display:"block",...iu(kt)}})},he=n("newPostMenuIcon",{width:w(e.newPostMenuIcon.width),height:w(e.newPostMenuIcon.height),color:P.colorOut(t.mainColors.primaryContrast),margin:"auto"}),pe=n("itemFlyout",{width:w(e.standard.width),height:w(e.standard.height)}),K=n("typeAll",{width:w(e.typeAll.width),height:w(e.typeAll.height)}),O=n("typeDiscussions",{width:w(e.typeDiscussions.width),height:w(e.typeDiscussions.height)}),le=n("typeArticles",{width:w(e.typeArticles.width),height:w(e.typeArticles.height)}),be=n("TypeCategoriesAndGroups",{width:w(e.typeCategoriesAndGroups.width),height:w(e.typeCategoriesAndGroups.height)}),H=n("TypeMember",{width:w(e.typeMember.width),height:w(e.typeMember.height)}),ie=n("TypeIdeasIcon",{width:w(e.typeIdeasIcon.width),height:w(e.typeIdeasIcon.height)}),oe=n("TypePollsIcon",{width:w(e.typePollsIcon.width),height:w(e.typePollsIcon.height)}),ve=n("TypeQuestion",{width:w(e.typeQuestion.width),height:w(e.typeQuestion.height)}),$e=n("TypePlaces",{width:w(e.typePlaces.width),height:w(e.typePlaces.height)}),Ne=n("TypeFlag",{width:w(e.typeFlag.width),height:w(e.typeFlag.height)}),Ze=n("TypeGroups",{width:w(e.typeQuestion.width),height:w(e.typeQuestion.height)}),ze=n("TypeKnowledgeBase",{width:w(e.typeQuestion.width),height:w(e.typeQuestion.height)}),Xe=S({width:w(e.downvote.width),height:w(e.downvote.height),stroke:P.colorOut(t.mainColors.fg)},"label:iconStyles-downvote"),Me=ge(Xe,S({transform:"rotate(180deg)"},"label:iconStyles-upvote")),Je=S({width:w(e.siteTotalMembersIcon.width),height:w(e.siteTotalMembersIcon.height)},"label:iconStyles-siteTotalMembersIcon"),pt=S({width:w(e.siteTotalPostsIcon.width),height:w(e.siteTotalPostsIcon.height)},"label:iconStyles-siteTotalPostsIcon"),ot=S({width:w(e.siteTotalOnlineIcon.width),height:w(e.siteTotalOnlineIcon.height)},"label:iconStyles-siteTotalOnlineIcon");return{standard:r,newFolder:a,warning:h,errorFgColor:V,warningFgColor:z,successFgColor:Y,fileType:o,attachmentError:i,vanillaLogo:s,vanillaLogoMobile:l,compact:c,settings:d,user:m,userWarning:g,close:p,closeCompact:v,closeTiny:b,triangeTiny:f,chevronLeftCompact:y,chevronLeftSmallCompact:C,selectedCategory:D,chevronUp:A,plusCircle:T,categoryIcon:B,deleteIcon:j,editIcon:N,discussionIcon:_,isSmall:R,hamburger:U,documentation:te,_bookmark:se,newPostMenuIcon:he,itemFlyout:pe,typeAll:K,typeDiscussions:O,typeArticles:le,typeCategoriesAndGroups:be,typeMember:H,typeIdeasIcon:ie,typePollsIcon:oe,typeQuestion:ve,typePlaces:$e,typeFlag:Ne,typeGroups:Ze,typeKnowledgeBase:ze,downvote:Xe,upvote:Me,siteTotalMembersIcon:Je,siteTotalPostsIcon:pt,siteTotalOnlineIcon:ot}});function tht(e){const t=bt();return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ae(t.standard,"icon-compose",e.className),"aria-hidden":"true",children:u.jsx("path",{fill:"currentColor",d:"M23.591,1.27l-.9-.9a1.289,1.289,0,0,0-1.807,0l-.762.863,2.6,2.587.868-.751a1.24,1.24,0,0,0,.248-.373,1.255,1.255,0,0,0,0-1.052A1.232,1.232,0,0,0,23.591,1.27ZM19.5,20.5H3.5V4.5H15.4l1.4-1.431H2.751A1,1,0,0,0,2,4.07V20.939a1,1,0,0,0,1,1H20.011a1,1,0,0,0,1-1V7L19.5,8.445ZM21.364,3.449l-9.875,9.8-.867-.861,9.874-9.8-.867-.863-4.938,4.9-4.938,4.9L8.74,15.167l3.617-1.055,9.875-9.8Z"})})}function Jce(e){const{className:t,isMobile:n}=e,r=bt(),o=e.fill?e.fill:"currentColor";return u.jsx(Bt,{icon:"vanilla-logo",className:ae(t,{[r.vanillaLogo]:!n,[r.vanillaLogoMobile]:n}),fill:o})}function eue(e){const t=k("Settings"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 18",className:ae(n.settings,"icon-settings",e.className),"aria-hidden":"true",children:[u.jsx("title",{children:t}),u.jsx("path",{d:"M6,18v-.5a.5.5,0,0,1,.5-.5h4a.5.5,0,0,1,.5.5V18H22v2H11v.5a.5.5,0,0,1-.5.5h-4a.5.5,0,0,1-.5-.5V20H2V18Zm9-7v-.5a.5.5,0,0,1,.5-.5h4a.5.5,0,0,1,.5.5V11h2v2H20v.5a.5.5,0,0,1-.5.5h-4a.5.5,0,0,1-.5-.5V13H2V11ZM4,4V3.5A.5.5,0,0,1,4.5,3h4a.5.5,0,0,1,.5.5V4H22V6H9v.5a.5.5,0,0,1-.5.5h-4A.5.5,0,0,1,4,6.5V6H2V4ZM5,4V6H8V4Zm11,7v2h3V11ZM7,18v2h3V18Z",transform:"translate(-2 -3)",fill:"currentColor"})]})}var uh;(function(e){e.DEFAULT="default",e.SELECTED_INACTIVE="fg background added",e.SELECTED_ACTIVE="primary color and primary background added"})(uh||(uh={}));const tue=e=>{const t=ee().mainColors,n=P.colorOut(t.fg),r=P.colorOut(t.bg),o=P.colorOut(t.primary),a={head:{outline:void 0,bg:void 0},body:{outline:void 0,bg:void 0},circle:{outline:n,bg:r}};switch(e){case"fg background added":a.head.bg=r,a.body.bg=r,a.circle.bg=n;break;case"primary color and primary background added":a.head.bg=r,a.body.bg=r,a.circle.outline=o,a.circle.bg=o;break;default:a.head.outline=n,a.body.outline=n}return a};function xE(e){const{styleType:t="default",className:n,title:r=k("Me"),alt:o}=e,a=bt(),{head:i,body:s,circle:l}=tue(t);return u.jsxs("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:ae(a.user,n),"aria-label":r,children:[u.jsx("title",{children:r}),u.jsx("desc",{children:o}),l.bg&&u.jsx("path",{d:"M10,0A10,10,0,1,0,20,10,10,10,0,0,0,10,0Z",style:{fill:l.bg}}),s.bg&&u.jsx("path",{d:"M15.415,17.3a8.761,8.761,0,0,0,.761-.653c.18-.175.325-.335.436-.463A4.027,4.027,0,0,0,12.656,12.5c-.827,0-1.226.459-2.581.459S8.325,12.5,7.494,12.5a4.023,4.023,0,0,0-3.823,3.17,3.034,3.034,0,0,0,.486.916,3.559,3.559,0,0,0,.909.781,10.755,10.755,0,0,0,4.8,1.616A10.634,10.634,0,0,0,15.415,17.3Z",style:{fill:s.bg}}),s.outline&&u.jsx("path",{d:"M12.663,12.5c-.827,0-1.226.459-2.581.459S8.332,12.5,7.5,12.5a4.022,4.022,0,0,0-3.824,3.173,13.175,13.175,0,0,0,1.4,1.7l-.02-.512a2.486,2.486,0,0,1,2.488-2.982h.049a10.754,10.754,0,0,0,2.5.475,10.684,10.684,0,0,0,2.487-.472c1.408.059,2.474.732,2.52,3.1l.325.326a6.453,6.453,0,0,0,1.2-1.117A4.025,4.025,0,0,0,12.663,12.5Z",style:{fill:s.outline}}),i.bg&&u.jsx("path",{d:"M10.141,4.514h0a3.55,3.55,0,1,0,3.533,3.567V8.063a3.54,3.54,0,0,0-3.531-3.549h0Z",style:{fill:i.bg}}),i.outline&&u.jsx("path",{d:"M10.141,4.514h0a3.55,3.55,0,1,0,3.533,3.567V8.063a3.54,3.54,0,0,0-3.531-3.549h0Zm0,5.808a2.26,2.26,0,1,1,2.253-2.267v.009a2.254,2.254,0,0,1-2.25,2.258Z",style:{fill:i.outline}}),l.outline&&u.jsx("path",{d:"M10,0A10,10,0,1,0,20,10,10,10,0,0,0,10,0Zm0,18.419A8.418,8.418,0,1,1,18.417,10,8.418,8.418,0,0,1,10,18.419Z",style:{fill:l.outline}})]})}function nht(e){const t=k("User"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ae(n.standard,"icon-noUserPhoto",e.className),"aria-hidden":"true","aria-label":e.photoAlt,children:[u.jsx("title",{children:e.photoAlt||t}),u.jsx("path",{d:"M12.046,12.907c-2.225,0-4.03-2.218-4.03-4.954C8.016,4.16,9.82,3,12.046,3s4.03,1.16,4.03,4.953C16.076,10.689,14.271,12.907,12.046,12.907Zm8.9,6.452a17.94,17.94,0,0,1-.194,4.2A1.025,1.025,0,0,1,19.9,24H3.96a1.024,1.024,0,0,1-.852-.443,17.956,17.956,0,0,1,.04-4.2l2.033-4.39a1,1,0,0,1,.46-.469L8.8,12.926a.211.211,0,0,1,.217.017,5.149,5.149,0,0,0,6.068,0,.211.211,0,0,1,.216-.017L18.452,14.5a1,1,0,0,1,.46.469Z",fill:"currentColor"})]})}const xW=re(()=>{const t=qe("loadingRectatngle")("colors",{bg:Xf("to right",`${P.colorOut(ee().mixBgAndFg(.08))} 6%`,`${P.colorOut(ee().mixBgAndFg(.1))} 25%`,`${P.colorOut(ee().mixBgAndFg(.08))} 34%`)}),n=V4({"0%":{backgroundPosition:"-1000px 0"},"100%":{backgroundPosition:"1000px 0"}});return{colors:t,loadingAnimation:n}}),rO=Tt("loadingRectangle"),nue=re((e,t="100%",n)=>{const r=xW();return rO({display:n?"inline-block":"block",borderRadius:2,background:P.colorOut(r.colors.bg),backgroundSize:"1000px 100%",height:e?w(e):"1em",width:w(t),animationName:r.loadingAnimation,animationDuration:"2s",animationIterationCount:"infinite",maxWidth:Z(100)})}),rue=re(e=>rO({display:"block",height:e?w(e):"1em",width:Z(100)})),oue=re((e,t)=>{const n=xW(),r=w(e??50);return rO({display:t?"inline-block":"block",height:r,width:r,borderRadius:r,background:P.colorOut(n.colors.bg)})}),aue=[90,80,92,86,74];function rht(e){const t=e%4;return aue[t]+"%"}function tn(e){const{inline:t,...n}=e;return u.jsx("span",{...n,className:ae(nue(n.height,n.width,t),n.className)})}function ys(e){return u.jsx("span",{...e,className:ae(rue(e.height),e.className)})}function vi(e){const{inline:t,...n}=e;return u.jsx("span",{...n,className:ae(oue(n.height,t),n.className)})}var ho;(function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.XLARGE="xlarge"})(ho||(ho={}));function Yi(e){const{className:t,userInfo:n={},size:r,styleType:o,...a}=e,{name:i=k("Unknown"),photoUrl:s}=n,l=bW(),[c,d]=x.useState(!s);let f=l.small;switch(r){case"xsmall":f=l.xsmall;break;case"xlarge":f=l.xlarge;break;case"large":f=l.large;break;case"medium":f=l.medium;break}const h={title:i,alt:N3('User: "%s"',[i])};return u.jsx("div",{...a,className:ae(t,f,l.root,{isOpen:open}),children:c?u.jsx(xE,{...h,styleType:o,className:ae(l.photo,l.noPhoto)}):u.jsx("img",{...h,height:"200",width:"200",src:s,className:ae(l.photo),onError:m=>{d(!0)},loading:"lazy"})})}function iue(e){const t=bW();let n=t.small;switch(e.size){case"xlarge":n=t.xlarge;break;case"large":n=t.large;break;case"medium":n=t.medium;break;case"xsmall":n=t.xsmall;break}return u.jsx("div",{className:ae(e.className,n,t.root),children:u.jsx(vi,{height:50,className:ae(t.photo,t.noPhoto)})})}const sue={userID:0,photoUrl:"",dateLastActive:null};function lue(){return{...sue,name:k("User Deleted")}}const cue=W.forwardRef(function(t,n){var p,v,b;const{value:r,label:o=r,extraLabel:a,...i}=t,{size:s,value:l,multiple:c}=hv(),d=x.useMemo(()=>fv({size:s}),[s]),h=(c&&Array.isArray(l)?l:[l]).indexOf(r)>-1,m=((p=t.data)==null?void 0:p.parentLabel)??a,g=(v=t.data)==null?void 0:v.icon;return u.jsxs(Xoe,{ref:n,...i,className:ge(d.option,t.className),"data-autocomplete-selected":h||void 0,value:o,children:[u.jsxs("div",{className:ge(d.optionText,g&&d.iconLayout),children:[g&&u.jsx(Yi,{size:ho.XSMALL,userInfo:g??lue()}),u.jsxs("span",{children:[u.jsx($5,{}),m&&u.jsx("span",{className:d.parentLabel,children:` - ${m}`}),(b=t.data)==null?void 0:b.labelSuffix]})]}),h&&u.jsx("span",{className:d.checkmarkContainer,children:u.jsx(Eae,{})})]})});function uue(e,t,n,r){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function due(e,t){return e&&s3(e,t,pv)}function fue(e,t){return function(n,r){if(n==null)return n;if(!yd(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}var CW=fue(due);function hue(e,t,n,r){return CW(e,function(o,a,i){t(r,o,n(o),i)}),r}function mue(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var pue=1,gue=2;function wW(e,t,n,r,o,a){var i=n&pue,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,m=n&gue?new id:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(r)var v=i?r(p,g,f,t,e,a):r(g,p,f,e,t,a);if(v!==void 0){if(v)continue;h=!1;break}if(m){if(!mue(t,function(b,y){if(!lg(m,y)&&(g===b||o(g,b,n,r,a)))return m.push(y)})){h=!1;break}}else if(!(g===p||o(g,p,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function vue(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function oO(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var bue=1,yue=2,xue="[object Boolean]",Cue="[object Date]",wue="[object Error]",Sue="[object Map]",Due="[object Number]",Eue="[object RegExp]",Iue="[object Set]",Tue="[object String]",Aue="[object Symbol]",Oue="[object ArrayBuffer]",Bue="[object DataView]",zN=ri?ri.prototype:void 0,nS=zN?zN.valueOf:void 0;function kue(e,t,n,r,o,a,i){switch(n){case Bue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Oue:return!(e.byteLength!=t.byteLength||!a(new q0(e),new q0(t)));case xue:case Cue:case Due:return nv(+e,+t);case wue:return e.name==t.name&&e.message==t.message;case Eue:case Tue:return e==t+"";case Sue:var s=vue;case Iue:var l=r&bue;if(s||(s=oO),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=yue,i.set(e,t);var d=wW(s(e),s(t),r,o,a,i);return i.delete(e),d;case Aue:if(nS)return nS.call(e)==nS.call(t)}return!1}var Pue=1,Rue=Object.prototype,jue=Rue.hasOwnProperty;function Nue(e,t,n,r,o,a){var i=n&Pue,s=iE(e),l=s.length,c=iE(t),d=c.length;if(l!=d&&!i)return!1;for(var f=l;f--;){var h=s[f];if(!(i?h in t:jue.call(t,h)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=i;++f<l;){h=s[f];var b=e[h],y=t[h];if(r)var C=i?r(y,b,h,t,e,a):r(b,y,h,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var D=e.constructor,A=t.constructor;D!=A&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof A=="function"&&A instanceof A)&&(p=!1)}return a.delete(e),a.delete(t),p}var Lue=1,HN="[object Arguments]",UN="[object Array]",hb="[object Object]",$ue=Object.prototype,VN=$ue.hasOwnProperty;function Mue(e,t,n,r,o,a){var i=fo(e),s=fo(t),l=i?UN:sh(e),c=s?UN:sh(t);l=l==HN?hb:l,c=c==HN?hb:c;var d=l==hb,f=c==hb,h=l==c;if(h&&Jf(e)){if(!Jf(t))return!1;i=!0,d=!1}if(h&&!d)return a||(a=new Bi),i||Mx(e)?wW(e,t,n,r,o,a):kue(e,t,l,n,r,o,a);if(!(n&Lue)){var m=d&&VN.call(e,"__wrapped__"),g=f&&VN.call(t,"__wrapped__");if(m||g){var p=m?e.value():e,v=g?t.value():t;return a||(a=new Bi),o(p,v,n,r,a)}}return h?(a||(a=new Bi),Nue(e,t,n,r,o,a)):!1}function s1(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ds(e)&&!Ds(t)?e!==e&&t!==t:Mue(e,t,n,r,s1,o)}var _ue=1,Fue=2;function Wue(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],d=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Bi;if(r)var h=r(c,d,l,e,t,f);if(!(h===void 0?s1(d,c,_ue|Fue,r,f):h))return!1}}return!0}function SW(e){return e===e&&!Ho(e)}function zue(e){for(var t=pv(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,SW(o)]}return t}function DW(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Hue(e){var t=zue(e);return t.length==1&&t[0][2]?DW(t[0][0],t[0][1]):function(n){return n===e||Wue(n,e,t)}}function Uue(e,t){return e!=null&&t in Object(e)}function Vue(e,t,n){t=ov(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=bd(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&qT(o)&&Nx(i,o)&&(fo(e)||Zf(e)))}function Gue(e,t){return e!=null&&Vue(e,t,Uue)}var Yue=1,Kue=2;function que(e,t){return WT(e)&&SW(t)?DW(bd(e),t):function(n){var r=oa(n,e);return r===void 0&&r===t?Gue(n,e):s1(t,r,Yue|Kue)}}function Xue(e){return function(t){return t==null?void 0:t[e]}}function Que(e){return function(t){return Jx(t,e)}}function Zue(e){return WT(e)?Xue(bd(e)):Que(e)}function aO(e){return typeof e=="function"?e:e==null?_x:typeof e=="object"?fo(e)?que(e[0],e[1]):Hue(e):Zue(e)}function Jue(e,t){return function(n,r){var o=fo(n)?uue:hue,a=t?t():{};return o(n,e,aO(r),a)}}var ede=Object.prototype,tde=ede.hasOwnProperty,nde=Jue(function(e,t,n){tde.call(e,n)?e[n].push(t):kx(e,n,[t])});function rde(e,t){var n=-1,r=yd(e)?Array(e.length):[];return CW(e,function(o,a,i){r[++n]=t(o,a,i)}),r}function ode(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ade(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,a=nd(e),i=t!==void 0,s=t===null,l=t===t,c=nd(t);if(!s&&!c&&!a&&e>t||a&&i&&l&&!s&&!c||r&&i&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||s&&n&&o||!i&&o||!l)return-1}return 0}function ide(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,i=o.length,s=n.length;++r<i;){var l=ade(o[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}function sde(e,t,n){t.length?t=pl(t,function(a){return fo(a)?function(i){return Jx(i,a.length===1?a[0]:a)}:a}):t=[_x];var r=-1;t=pl(t,Ph(aO));var o=rde(e,function(a,i,s){var l=pl(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return ode(o,function(a,i){return ide(a,i,n)})}var lde=Fx(function(e,t){if(e==null)return[];var n=t.length;return n>1&&og(e,t[0],t[1])?t=[]:n>2&&og(t[0],t[1],t[2])&&(t=[t[0]]),sde(e,e1(t,1),[])});const l1=lde;function cde(){const{size:e}=hv(),{zIndex:t}=ja(),n=x.useMemo(()=>fv({size:e,zIndex:t}),[e,t]);return u.jsx("div",{className:n.autoCompleteArrow,children:u.jsx(toe,{})})}function ude(e){const{onClear:t}=e,{size:n}=hv(),{zIndex:r}=ja(),o=x.useMemo(()=>fv({size:n,zIndex:r}),[n,r]);return u.jsx("div",{className:o.autoCompleteClear,tabIndex:0,role:"button",onClick:t,onKeyDown:a=>{switch(a.key){case" ":case"Enter":t();break}},children:u.jsx(Sae,{style:{color:"#777a80"}})})}function GN(e){const{onUnSelect:t,label:n}=e,{size:r}=hv(),{zIndex:o}=ja(),a=x.useMemo(()=>fv({size:r,zIndex:o}),[r,o]);return u.jsxs("div",{className:ge("autocomplete-token",a.inputTokenTag),tabIndex:0,children:[u.jsx("label",{children:n}),u.jsx("div",{className:ge(a.autoCompleteClear),tabIndex:0,role:"button",onClick:t,onKeyDown:i=>{switch(i.key){case" ":case"Enter":t();break}},children:u.jsx("button",{children:u.jsx(Dae,{className:ge(a.autoCompleteClose),style:{color:"#777a80"}})})})]})}function dde(e){return{options:e,optionByValue:e.reduce((t,n)=>({...t,[n.value]:n}),{}),optionByLabel:e.reduce((t,n)=>({...t,[n.label??n.value]:n}),{})}}const CE=W.forwardRef(function(t,n){var Vt;const{value:r,clear:o,disabled:a,autoFocus:i,size:s,onChange:l,onSearch:c,inputClassName:d,allowArbitraryInput:f,placeholder:h,optionProvider:m,id:g,resetOnBlur:p,...v}=t,{zIndex:b}=ja(),y=x.useMemo(()=>fv({size:s,isDisabled:a,isClearable:!!o,zIndex:b}),[s,a,o,b]),C=x.useMemo(()=>e6({size:s}),[s]),[D,A]=x.useState(),[T,B]=x.useState([]),[j,R]=x.useState("IDLE"),N=x.useRef(),_=ag(N),U=x.useRef(),[V,z]=x.useState(!1),{options:Y,optionByValue:te,optionByLabel:se}=x.useMemo(()=>{let nt=[...t.options?t.options:[],...D||[]];return D&&D.length&&(nt=nt.filter((Ee,kt)=>nt.findIndex(ne=>ne.value==Ee.value)===kt)),dde(nt)},[D,t.options,j]),he=x.useMemo(()=>t.multiple||Array.isArray(r),[t,r]),pe=he?"":(te&&((Vt=te[r])==null?void 0:Vt.label))??(r?String(r):void 0),[K,O]=x.useState(pe),[le,be]=x.useState(r),H=x.useMemo(()=>{var ne;if(!K||pe&&(pe===K||r===K||((ne=te[r])==null?void 0:ne.label)===K))return Y;const Ee=(K??"").trim().toLowerCase().split(/[ +]/);return(Y??[]).map(we=>{const Se=(we.label??String(we.value??"")).toLowerCase();return{option:we,matches:Ee.filter(De=>Se.includes(De)).length}}).filter(({option:we,matches:Ae})=>Ae>0).sort((we,Ae)=>Ae.matches-we.matches).map(({option:we})=>we)},[K,Y,pe]);x.useEffect(()=>{pe?j!=="SUGGESTING"&&O(pe):Array.isArray(r)?(O(""),be(r)):O("")},[pe,r]),x.useEffect(()=>{f&&K&&A([{value:K}])},[K,f]);const ie=x.useCallback(()=>{he&&be([]),f&&B([]),l&&l(he?[]:void 0)},[l,he,f]);x.useEffect(()=>{f&&(A(nt=>nt&&r&&Array.isArray(r)?nt.filter(Ee=>r.includes(Ee)):nt),B(r&&Array.isArray(r)?r:[]),be(r&&Array.isArray(r)?r:[]))},[r,f]);const oe=x.useCallback(()=>{O(pe||""),f&&A([])},[pe,f]),ve=x.useRef(!1),$e=x.useCallback(nt=>{ve.current=!0;const Ee=le&&!Array.isArray(le)&&he?[le]:le,kt=se[nt].value;let ne=he?[]:kt;const we=Array.isArray(le)?le.indexOf(kt):-1;if(Array.isArray(ne)&&ne.length===0&&Ee&&(ne=Ee),he){const Ae=ne.indexOf(kt);!Array.isArray(le)&&Ae>-1?ne=ne.filter((Se,De)=>De!==Ae):Array.isArray(le)&&we>-1?ne=ne.filter((Se,De)=>De!==we):ne=[...ne,kt]}ne==="true"&&(ne=!0),ne==="false"&&(ne=!1),l==null||l(ne),oe(),ve.current=!1},[l,se,he,le]),Ne=x.useRef(!1);zh(N,nt=>{const Ee=Ne.current;Ne.current=nt,!ve.current&&Ee&&!Ne.current&&t.resetOnBlur&&(O(pe),be(pe))});const Ze=x.useCallback(nt=>{O(nt.target.value),c&&c(nt.target.value)},[c]),ze=x.useMemo(()=>({inputState:{value:K,status:j},value:r,size:s,setOptions:A,multiple:he}),[K,ie,r,s,he,j]),Xe=x.useMemo(()=>!he||le===void 0?[]:(Array.isArray(le)?le:[le]).map(Ee=>{var kt;return((kt=te[Ee])==null?void 0:kt.label)??""}).filter(Ee=>Ee!==void 0&&Ee!==""&&!T.map(String).includes(Ee)),[he,te,le,T]),Me=nt=>{if(f){const Ee=r.filter(kt=>kt!==nt);l&&l(Ee.length===0?void 0:Ee)}},Je=x.useMemo(()=>{if(h)return Xe.length>0||T.length>0||!he&&K?void 0:h},[h,Xe,T,he,K]),pt=nt=>{var Ee,kt;if(z([38,40].includes(nt.keyCode)),!V&&((Ee=U==null?void 0:U.current)==null?void 0:Ee.value.length)!==0&&j!=="IDLE"&&nt.keyCode===13&&(H.length&&$e(H[0].label??H[0].value),z(!1)),nt.keyCode===8&&((kt=U==null?void 0:U.current)==null?void 0:kt.value.length)===0){const ne=[r].flat().pop();if(he&&ne){const{label:we}=te[ne]||{};we&&$e(we)}f&&ne&&Me(ne)}nt.stopPropagation()},ot=nde(H,nt=>nt.group),Et=!!o&&!!(he?r&&r.length>0:r);return u.jsxs(t6.Provider,{value:ze,children:[u.jsxs(Goe,{className:y.reachCombobox,onSelect:$e,ref:n,openOnFocus:!0,children:[u.jsxs("div",{className:ge(y.inputContainer,t.className),ref:N,onClick:nt=>{var Ee;nt.preventDefault(),nt.stopPropagation(),U!=null&&U.current&&((Ee=U==null?void 0:U.current)==null||Ee.focus())},children:[he&&u.jsx(u.Fragment,{children:Xe.map((nt,Ee)=>u.jsx(GN,{label:nt,onUnSelect:()=>!a&&$e(nt)},Ee))}),f&&u.jsx(u.Fragment,{children:T.map((nt,Ee)=>u.jsx(GN,{label:nt,onUnSelect:()=>!a&&Me(nt)},`${Ee}${nt}`))}),u.jsx(Yoe,{...v,id:g,ref:U,selectOnClick:!0,disabled:a,autoFocus:i,onChange:Ze,placeholder:Je,value:String(K),className:ge(C.input,y.input,d),onKeyDown:pt,autoComplete:"off"}),!a&&u.jsxs("div",{className:y.inputActions,children:[u.jsx(cde,{}),Et&&u.jsx(ude,{onClear:ie})]})]}),u.jsx(Koe,{className:ge(y.popover,t.popoverClassName),"data-autocomplete-state":j,position:(nt,Ee)=>Z5(_,Ee),children:u.jsx(qoe,{children:l1(Object.entries(ot),([nt])=>nt!=="undefined").map(([nt,Ee],kt)=>u.jsxs(W.Fragment,{children:[u.jsx("li",{role:"separator",className:y.separator}),nt!=="undefined"&&u.jsxs("h5",{className:y.groupHeading,children:[" ",nt]}),Ee.map((ne,we)=>u.jsx(cue,{...ne},we))]},kt))})}),u.jsx(fde,{onStatusChange:R})]}),m]})});function fde(e){const{state:t}=eae();return x.useEffect(()=>{e.onStatusChange(t)},[t]),null}function hde(){}var mde=1/0,pde=Pf&&1/oO(new Pf([,-0]))[1]==mde?function(e){return new Pf(e)}:hde,gde=200;function vde(e,t,n){var r=-1,o=$A,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=MA;else if(a>=gde){var c=t?null:pde(e);if(c)return oO(c);i=!1,o=lg,l=new id}else l=t?[]:s;e:for(;++r<a;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,i&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),s.push(d)}else o(l,f,n)||(l!==s&&l.push(f),s.push(d))}return s}function EW(e,t){return e&&e.length?vde(e,aO(t)):[]}const IW=W.createContext(Z0);function bde(){return x.useContext(IW)}const Ud=new Map;function wE(e){var p;const{lookup:t,handleLookupResults:n,ignoreLookupOnMount:r,addLookupResultsToOptions:o=!0}=e,a=bde(),i=e.api??a,{options:s,handleSearch:l,loadIndividualOptions:c}=yde(t,i,r),{inputState:d,value:f,setOptions:h}=hv(),m=t.initialOptions&&((p=t.initialOptions)==null?void 0:p.length)>0;x.useEffect(()=>{const v=[f??void 0].flat().filter(Do).map(b=>`${b}`);v.filter(b=>b!=="").length>0&&!r&&!m&&c(v)},[f,m]),x.useEffect(()=>{m&&h(t.initialOptions)},[m]);const g=Ra(l,200);return x.useEffect(()=>{if(d.status!=="IDLE"){l("");const v=`${d.value}`;v!==""&&g(v)}},[d.status,d.value]),x.useEffect(()=>{if(!(s.length===0)){o&&h(b=>EW([...b??[],...s],"value"));try{n==null||n(s)}catch(b){mn("Failed to lookup autocomplete options",b)}}},[n,h,s]),null}function yde(e,t,n){const r=K6(),[o,a]=x.useState([]);function i(A){r()&&a(T=>EW([...T,...A],"value"))}const{searchUrl:s,singleUrl:l,resultsKey:c=".",labelKey:d="name",extraLabelKey:f="",valueKey:h="name",processOptions:m,excludeLookups:g=[],group:p}=e;x.useDebugValue({options:o,api:e,apiCaches:Ud});const v=x.useCallback(A=>{const T=String(oa(A,d,k("(Untitled)"))),B=oa(A,f)?String(oa(A,f)):void 0,j=h==="."?A:oa(A,h,"");return{label:T,extraLabel:B,value:j,data:A,group:p}},[d,f,h]);function b(A){if(r()&&A.data){let T=[v(A.data)];return m&&(T=m(T)),T}}async function y(A){if([...g,""].includes(A)||o.find(R=>`${R.value}`==`${A}`)||n)return;if(l===null){D("");return}const B=l.replace("/api/v2","").replace("%s",A),j=Ud.get(B);if(j){i(j);return}try{const R=await t.get(B),N=b(R);N&&(Ud.set(B,N),i(N))}catch(R){mn(R)}}async function C(A){await Promise.all(A.map(y))}async function D(A){const T=s.replace("/api/v2","").replace("%s",A);if(Ud.has(T))i(Ud.get(T));else try{const B=await t.get(T);if(!r())return;const{data:j}=B;let R=[];R=(c==="."?j:oa(j,c,[])).map(v),m&&(R=m(R)),Ud.set(T,R),i(R)}catch(B){mn(B)}}return{options:o,loadIndividualOptions:C,handleSearch:D}}const TW=({sideBySide:e,compact:t})=>({formGroup:S({margin:"8px 0",display:"flex",...e?{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",...t?{}:{borderBottom:"1px dotted #e7e8e9",padding:"16px 0","&:last-of-type":{borderBottom:0}}}:{flexDirection:"column"}},"label:FormGroup-styles-formGroup"),inputContainer:S({...e?{flex:12}:{}},"label:FormGroup-styles-inputContainer"),labelContainer:S({...e?{flex:6}:{marginBottom:8}},"label:FormGroup-styles-labelContainer"),label:S({fontSize:"14px",lineHeight:"21px",fontWeight:600,marginBottom:2},"label:FormGroup-styles-label"),description:S({fontSize:"12px",color:"#949aa2",marginBottom:0},"label:FormGroup-styles-description")});function YN(){}const iO=W.createContext({inputID:"",labelID:"",setLabel:YN,setLabelID:YN}),xde=W.forwardRef(function(t,n){const{as:r="div",inputID:o,children:a,sideBySide:i,compact:s,...l}=t,c=x.useMemo(()=>o||XT(),[o]),[d,f]=x.useState(),[h,m]=x.useState(`${c}_label`),g=x.useMemo(()=>TW({sideBySide:i,compact:s}),[i,s]);return u.jsx(r,{...l,className:ge(g.formGroup,t.className),ref:n,children:u.jsx(iO.Provider,{value:{inputID:c,labelID:h,setLabelID:m,label:d,setLabel:f,sideBySide:i},children:a})})}),Cde=W.forwardRef(function(t,n){const{children:r,description:o,id:a,...i}=t,{inputID:s,labelID:l,setLabelID:c,setLabel:d,sideBySide:f}=x.useContext(iO),h=x.useMemo(()=>TW({sideBySide:f}),[f]);return x.useEffect(()=>{a&&a!==l&&c(a)},[a,l,c]),x.useEffect(()=>{r&&typeof r=="string"&&d(r)},[r]),u.jsxs("label",{htmlFor:s,id:a||l,...i,ref:n,className:ge(h.labelContainer,t.className),children:[u.jsx("span",{className:h.label,children:r}),o&&u.jsx("p",{className:h.description,children:o})]})}),wde=W.forwardRef(function(t,n){const{size:r,value:o,...a}=t,i=x.useMemo(()=>e6({size:r}),[r]);return u.jsx("input",{tabIndex:0,...a,value:o??"",ref:n,type:"text",className:ge(i.input,t.className)})});function Sde(){return{position:"absolute !important",display:"block !important",width:"1px !important",height:"1px !important",padding:"0px !important",margin:"-1px !important",overflow:"hidden !important",clip:"rect(0, 0, 0, 0) !important",border:"0px !important"}}class Dde{constructor(t){q(this,"apiClient");q(this,"successHandler");q(this,"failHandler");q(this,"successMiddleware");q(this,"errorMiddleware");this.apiClient=t,this.successHandler=null,this.failHandler=null,this.successMiddleware=this.handleResponse.bind(this),this.errorMiddleware=async n=>{if("response"in n&&n.response){const r=await this.handleResponse(n.response);if(r!==n.response)return Promise.resolve(r)}return Promise.reject(n)}}async request(t){const n=await this.apiClient.request({...t,[mb]:!0}).catch(this.extractErrResponse);return this.reportProgress(n),await this.handleResponse(n,!0)}async handleResponse(t,n=!1){var r;return t.config[mb]&&!n?t:t.status>=400&&((r=t.data)==null?void 0:r.callbackPayload)!==void 0?await this.pollCallbackPayload(t.data.callbackPayload):t}async pollCallbackPayload(t){var o;let n=t,r=null;do r=await this.resumeCallbackPayload(n),n=((o=r==null?void 0:r.data)==null?void 0:o.callbackPayload)??null;while(n!==null);return r}async resumeCallbackPayload(t){const n=await this.apiClient.post("calls/run",t,{headers:{"content-type":"application/system+jwt"},[mb]:!0}).catch(this.extractErrResponse);return this.reportProgress(n),n}async extractErrResponse(t){return"response"in t&&t.response&&t.response.config[mb]&&t.response.data.callbackPayload!==void 0?t.response:Promise.reject(t)}reportProgress(t){var n,r,o,a;if(t.data.progress){const i=t.data.progress;((n=i.successIDs)==null?void 0:n.length)>0&&((r=this.successHandler)==null||r.call(this,i.successIDs)),((o=i.failedIDs)==null?void 0:o.length)>0&&((a=this.failHandler)==null||a.call(this,i.failedIDs,i.exceptionsByID))}}onSuccessIDs(t){this.successHandler=t}onFailedIDs(t){this.failHandler=t}}var KN;(function(e){e.ASYNC="async",e.SYNC="sync"})(KN||(KN={}));const mb="FROM_LONG_RUNNER";function Ede(e){return e&&e.status>=400&&e.errors&&e.errors.length>0&&(e.errors=x3(e.errors,"field")),e}const Uh=Z0.create({baseURL:Ni("/api/v2/"),headers:{"X-Requested-With":"vanilla"},validateStatus:e=>e<400||e===408,transformResponse:[...Z0.defaults.transformResponse,Ede],paramsSerializer:e=>Oc.stringify(e)});function Ide(e){var t,n;try{const o=new DOMParser().parseFromString(e,"text/html"),a=o.querySelector(".cf-error-details");if(!a)return null;const i=((t=a.querySelector("h1"))==null?void 0:t.innerText)??k("An Error has Occured"),s=((n=a.querySelector("p"))==null?void 0:n.innerText)??"",l=o.querySelectorAll(".footer-p");let c=null;for(const d of l)d instanceof HTMLElement&&d.innerText.includes("Ray ID")&&(c=d.innerText);return{message:i,description:[s,c].filter(Do).join(" ")}}catch{return null}}function Tde(e){var r,o,a;const t=((r=e.response)==null?void 0:r.data)||"";typeof t=="object"&&t.message&&(e={...e,message:t.message,description:t.description,errors:t.errors??{},actionButton:t.actionButton});const n=(a=(o=e.response)==null?void 0:o.headers)==null?void 0:a["content-type"];if(e.response&&typeof n=="string"&&n.startsWith("text/html")){e.response.headers["cf-mitigated"]==="challenge"&&window.location.reload();const i=e.response.data||"",s=Ide(i);if(s)return Promise.reject(s)}return Promise.reject(e)}Uh.interceptors.response.use(void 0,Tde);const Ct=Uh;async function Ade(e,t={}){let n=Ge("upload.allowedExtensions",[]);n=n.map(l=>l.toLowerCase());const r=Ge("upload.maxSize",0),o=e.name.split("."),a=o[o.length-1]||"";if(e.size>r){const l=m5(r),c=l.amount+l.unitAbbr,d=yt.sprintf(k("The uploaded file was too big (max %s)."),c);throw new Error(d)}else if(!n.includes(a.toLowerCase())){const l=n.join(", "),c=yt.sprintf(k(`The uploaded file did not have an allowed extension. 
Only the following extensions are allowed. 
%s.`),l);throw new Error(c)}const i=new FormData;return i.append("file",e,e.name),(await Uh.post("/media",i,t)).data}function Ode(e,t){if(!e)return;const n=e.response.data;if(n&&n.errors&&n.errors[t])return n.errors[t]}function oht(e,t=[]){if(!e)return;for(const r of t)if(Ode(e,r))return;const n=e.response&&e.response.data;return n&&n.message?n.message:k("Something went wrong while contacting the server.")}function Bde(e){return u.jsx(IW.Provider,{value:Uh,children:e.children})}const qN=new Dde(Uh);Uh.interceptors.response.use(qN.successMiddleware,qN.errorMiddleware);const my="pageView";function AW(e){const t=n=>{const r=n.detail;e(r)};return document.addEventListener(my,t),()=>{document.removeEventListener(my,t)}}function OW(e){x.useEffect(()=>AW(e),[e])}let BW=null;function kde(){return BW}function XN(e){BW=e}function kW(e){document.dispatchEvent(new CustomEvent(my,{detail:e})),XN(e.location.pathname),e.listen(()=>{kde()!==e.location.pathname&&document.dispatchEvent(new CustomEvent(my,{detail:e})),XN(e.location.pathname)})}function sO(e){if(!(e!=null&&e.$nest))return e;for(const[t,n]of Object.entries(e.$nest))e[t]=sO(n);return delete e.$nest,e}function _o(e,...t){t.forEach(n=>{Zt({[e]:sO(n)})})}const Yt=(e,...t)=>{const n=[];return e.minWidth&&n.push(`(min-width: ${e.minWidth}px)`),e.maxWidth&&n.push(`(max-width: ${e.maxWidth}px)`),{[`@media ${n.join(" and ")}`]:t}},Pde=re(()=>{const e=ee(),t=document.getElementById("fallbackPageContent");t&&t.remove(),_o(".accessibility-jumpTo",{border:w(0),clip:"rect(0 0 0 0)",height:w(1),margin:w(-1),overflow:"hidden",padding:w(0),position:"absolute",width:w(1),"&:focus":{position:"absolute",top:w(50),left:w(0),backgroundColor:P.colorOut(e.elementaryColors.white),display:"block",...E.font({...e.fontSizeAndWeightVars("medium"),color:P.colorOut(e.elementaryColors.black),align:"left"}),clip:"auto",margin:w(0),height:"auto",...E.padding({vertical:0,horizontal:12}),width:Z(100),zIndex:2,transform:"translateY(-100%)",opacity:1},"&:hover":{opacity:1}})});function Q(e,...t){Zt({[e]:t.map(sO)})}const PW=re(()=>{const e=ee();return{colors:qe("blockQuote")("colors",{fg:e.mainColors.fg,border:{color:e.mixBgAndFg(.23)}})}}),Rde=re(()=>{const e=ee(),t=PW();_o(".blockquote",{display:"block",margin:w(0),...E.padding({all:3,left:18}),borderLeft:wt({color:t.colors.border.color,width:6}),boxSizing:"border-box",verticalAlign:"middle"}),_o(".blockquote-content",{"& > *:first-child":{marginTop:w(0)},"& > *:last-child":{marginBottom:w(0)}}),Q(".embedLink-excerpt",{color:P.colorOut(e.mainColors.fg)})}),jde=re(()=>{const e=ee();_o(".safeEmoji",{display:"inline-flex",fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',verticalAlign:"middle",textAlign:"center",height:eo(1),maxWidth:Z(100),lineHeight:eo(1)}),_o(".nativeEmoji",{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif'}),_o(".fallBackEmoji",{display:"inline-block",height:eo(1),width:eo(1),...E.margin({vertical:0,right:eo(.05),left:eo(.1)}),verticalAlign:eo(-.1),userSelect:"none"}),_o(".emojiGroup",{opacity:e.states.icon.opacity}),_o(".emojiPicker",{position:"relative"})});var QN;(function(e){e.HORIZONTAL_BORDER="horizontalBorder",e.HORIZONTAL_BORDER_STRIPED="horizontalBorderStriped",e.VERTICAL_BORDER="verticalBorder",e.VERTICAL_BORDER_STRIPED="verticalBorderStriped"})(QN||(QN={}));const Dl=re(e=>{const t=qe("userContent",e),n=ee(e),{mainColors:r}=n,o=t("fonts",{size:n.fonts.size.large,headings:{h1:"2em",h2:"1.5em",h3:"1.25em",h4:"1em",h5:".875em",h6:".85em"}}),a=t("tables",{style:"verticalBorderStriped",borders:n.border,mobileBreakpoint:600}),i=t("tables",{...a,striped:["horizontalBorderStriped","verticalBorderStriped"].includes(a.style),stripeColor:n.mixBgAndFg(.05),outerBorderRadius:["verticalBorderStriped","verticalBorder"].includes(a.style)?4:0,horizontalBorders:{enabled:!0,borders:a.borders},verticalBorders:{enabled:["verticalBorderStriped","verticalBorder"].includes(a.style),borders:a.borders}}),s=t("blocks",{margin:n.spacer.componentInner,fg:r.fg,bg:n.mixBgAndFg(.05)}),l=t("embeds",{bg:r.bg,fg:r.fg,borderRadius:Le(4)}),c=t("code",{fontSize:eo(.85),borderRadius:2}),d=t("codeInline",{borderRadius:c.borderRadius,padding:ce.spacing({vertical:"0.2em",horizontal:"0.4em"}),fg:s.fg,bg:s.bg}),f=t("codeBlock",{borderRadius:n.border.radius,padding:ce.spacing({vertical:n.spacer.componentInner,horizontal:n.spacer.componentInner}),lineHeight:1.45,fg:s.fg,bg:s.bg}),h=t("list",{spacing:ce.spacing({top:eo(.5),left:eo(2)}),listDecoration:{minWidth:eo(2)},nestedList:{margin:"0 0 0 1em"}}),m=t("spacing",{base:2*Math.ceil(n.spacer.size*5/8)});return{fonts:o,list:h,blocks:s,code:c,codeInline:d,codeBlock:f,embeds:l,spacing:m,tables:i}}),Nde=re(()=>{const e=ee(),t=qe("spoiler"),n=t("font",ce.font({...e.fontSizeAndWeightVars("large")})),r=t("colors",{bg:e.mixBgAndFg(.95)}),o=t("border",{color:e.border.color,width:0,radius:2}),a=t("spoilerButton",ce.button({name:"spoiler",colors:{bg:e.elementaryColors.transparent},fonts:{color:e.mainColors.fg},borders:{width:0,radius:0}}));return{font:n,colors:r,borders:o,button:a}}),Lde=re(()=>{const e=ee(),t=Nde(),n=E.button(t.button),r=Dl();_o(".spoiler-icon",{position:"relative",display:"block",margin:"auto",width:w(e.icon.sizes.default),height:w(e.icon.sizes.default),color:"currentColor"}),_o(".spoiler",{backgroundColor:je(P.colorOut(r.blocks.bg)),color:je(P.colorOut(r.blocks.fg)),border:0,".spoiler-content":{display:"none",...E.padding({all:e.embed.text.padding}),"& .spoiler-line":{...E.margin({vertical:8})}},".spoiler-content *:first-child":{marginTop:0},".spoiler-content *:last-child":{marginBottom:0},".spoiler-chevronUp":{display:"none",width:w(e.icon.sizes.default),height:w(e.icon.sizes.default),verticalAlign:".2em"},".spoiler-chevronDown":{display:"none"},"&:not(.isShowingSpoiler) .spoiler-chevronDown":{display:"inline-block",width:w(e.icon.sizes.default),height:w(e.icon.sizes.default),verticalAlign:".2em"},"&.isShowingSpoiler":{".spoiler-content":{display:"block"},".spoiler-chevronUp":{display:"inline-block"}},".button-spoiler":{...n,...zn(),background:P.colorOut(r.blocks.bg),color:P.colorOut(r.blocks.fg),width:Z(100),maxWidth:Z(100),fontSize:w(t.font.size),minHeight:w(44),textTransform:"uppercase",...E.padding({vertical:0,horizontal:e.embed.text.padding}),cursor:"pointer",textAlign:"center"},".button-spoiler:active .spoiler-chevron":{opacity:1},".button-spoiler:not(.focus-visible):focus .spoiler-chevron":{opacity:1,outline:0},".button-spoiler.focus-visible .spoiler-chevron":{opacity:1},".button-spoiler:hover .spoiler-chevron":{opacity:1,cursor:"pointer"},".spoiler-warningMain":{position:"relative",display:"flex",boxSizing:"border-box",justifyContent:"center",alignItems:"center",...E.padding({vertical:0,horizontal:e.icon.sizes.default}),width:Z(100),lineHeight:1},".spoiler-chevron":{...E.absolute.middleRightOfParent(e.embed.text.padding),width:w(e.icon.sizes.default),height:w(e.icon.sizes.default),display:"flex",alignItems:"center",opacity:e.states.icon.opacity},".spoiler-warningLabel":{...E.font({...e.fontSizeAndWeightVars("medium","semiBold")}),marginLeft:w(6)},".spoiler-buttonContainer":{whiteSpace:"normal",userSelect:"none"}})}),$de=re(()=>{const e=ee(),t=qe("blockQuote"),n=t("borderRadius",{default:0}),r=t("fonts",{size:eo(.85),families:'Menlo, Monaco, Consolas, "Courier New", monospace'}),o=t("border",{radius:n.default}),a=Dl(),i=t("inline",{fg:a.codeInline.fg,bg:a.codeInline.bg,border:{color:e.mixBgAndFg(.5),radius:0},paddings:{vertical:eo(.2),horizontal:eo(.4)}}),s=t("block",{fg:a.codeBlock.fg,bg:a.codeBlock.bg,border:{radius:n.default},paddings:{all:e.fonts.size.medium}});return{fonts:r,border:o,inline:i,block:s}}),Mde=re(()=>{const e=ee(),t=$de();_o(".userContent",{".code":{position:"relative",display:"inline",verticalAlign:"middle",lineHeight:"inherit",fontSize:t.fonts.size,fontFamily:t.fonts.families,maxWidth:Z(100),margin:0,color:P.colorOut(t.inline.fg),backgroundColor:P.colorOut(t.inline.bg),border:0,overflowX:"auto",flexShrink:0},".codeInline":{display:"inline",whiteSpace:"normal",...E.padding(t.inline.paddings),borderRadius:t.inline.border.radius,color:P.colorOut(t.inline.fg),backgroundColor:P.colorOut(t.inline.bg)},".codeBlock":{display:"block",wordWrap:"normal",lineHeight:e.lineHeights.code,whiteSpace:"pre",...E.padding(t.block.paddings),borderRadius:t.block.border.radius,color:P.colorOut(t.block.fg),backgroundColor:P.colorOut(t.block.bg)}})}),lO=re(()=>{const e=ee(),t=qe("atMention"),n=t("font",ce.font({...e.fontSizeAndWeightVars("large")})),r=t("avatar",{width:30,margin:10}),o=t("positioning",{offset:6}),a=t("mark",{weight:e.fonts.weights.semiBold}),i=t("link",{weight:e.fonts.weights.semiBold}),s=t("user",{padding:{vertical:3,horizontal:6}}),l=t("selected",{bg:e.mainColors.bg}),c=t("sizing",{width:200,maxHeight:(r.width+s.padding.vertical*2)*7.5});return{font:n,avatar:r,mark:a,link:i,positioning:o,user:s,selected:l,sizing:c}}),aht=re(()=>{const e=lO(),t=S({position:"absolute",width:w(e.sizing.width),transform:`translateY(${w(e.positioning.offset)})`},"label:atMentionStyles-listWrapper"),n=S({display:"block",...E.padding(e.user.padding),overflow:"auto",maxHeight:w(e.sizing.maxHeight),"&.isHidden":{display:"none"}},"label:atMentionStyles-list");return{listWrapper:t,list:n}}),iht=re(()=>{const e=lO(),t=S({...yE(),position:"relative",appearance:"none",border:0,padding:0,background:"none",width:Z(100),textAlign:"start",cursor:"pointer"},"label:atMentionStyles-suggestion"),n=S({display:"flex",alignItems:"center",width:Z(100),boxSizing:"border-box",overflow:"hidden",lineHeight:w(e.avatar.width),...E.padding({vertical:e.user.padding.vertical,horizontal:e.user.padding.horizontal})},"label:atMentionStyles-user"),r=S({display:"block",flexGrow:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:it(`100% - ${w(e.avatar.margin+e.avatar.width)}`)},"label:atMentionStyles-userName"),o=S({marginRight:w(e.avatar.margin)},"label:atMentionStyles-photoWrap"),a=S({width:w(e.avatar.width),height:w(e.avatar.width),display:"block"},"label:atMentionStyles-photo"),i=S({padding:0,fontWeight:e.mark.weight},"label:atMentionStyles-mark");return{suggestion:t,user:n,userName:r,photoWrap:o,photo:a,mark:i}}),sht=re((e=!1)=>{const t=ee();return{listItem:S({marginBottom:0,...e&&{backgroundColor:P.colorOut(t.states.hover.highlight)}},"label:atMentionStyles-listItem")}}),_de=re(()=>{const e=lO();_o(".atMention",{color:"inherit",fontWeight:e.link.weight,userSelect:"all"})}),Fde=()=>{Pde(),_de(),Rde(),jde(),Lde(),Mde()};function Wde(e){const{dispatch:t,getState:n}=Pc(),r=n().locales.locales;return!e&&r.status===X.SUCCESS?Promise.resolve(r.data):Gt(h0,async()=>(await Ct.get("/locales")).data)()(t,n,{})}async function ZN(){const e=Ge("ui.localeKey",Ge("ui.locale",null));Bee(e),jee(la.translations);const t=await Wde();kee(t)}const RW=W.createContext({hasPermission:(e,t)=>!1});function zde(e){const t=fn(a=>a.users.permissions),{getPermissions:n}=t1(),{status:r}=t,o=x.useCallback((a,i)=>jW(t,a,i),[t]);return x.useEffect(()=>{[X.PENDING,X.LOADING].includes(r)&&n()},[r,n]),u.jsx(RW.Provider,{value:{hasPermission:o},children:e.children})}function mr(){return x.useContext(RW)}var xs;(function(e){e.GLOBAL="global",e.RESOURCE="resource",e.GLOBAL_OR_RESOURCE="globalOrResource",e.RESOURCE_IF_JUNCTION="resourceIfJunction"})(xs||(xs={}));function hg(e){const{hasPermission:t}=mr();if(!e.permission)return u.jsx(u.Fragment,{children:e.children});const n=t(e.permission,{mode:e.mode??(e.resourceID!=null?"resourceIfJunction":"globalOrResource"),resourceType:e.resourceType,resourceID:e.resourceID})?e.children:e.fallback??null;return u.jsx(u.Fragment,{children:n})}function jW(e,t,n){var c,d;let r=t;if(Array.isArray(r)||(r=[r]),!e.data||e.status!==X.SUCCESS)return!1;if(e.data.isAdmin)return!0;n||(n={mode:"globalOrResource"});let{resourceID:o,resourceType:a}=n;a||(a="global",o=null);let i=!1;if(o!=null&&a!=null){const f=(c=e.data.junctionAliases)==null?void 0:c[a];f&&(o=f[o]??f[o.toString()]??o);const h=((d=e.data.junctions)==null?void 0:d[a])??null;h&&(i=h.includes(o))}const s=e.data.permissions.filter(f=>{const h=f.type==="global",m=f.type===a&&f.id===o;switch(n.mode){case"resourceIfJunction":return i?m:h;case"global":return h;case"globalOrResource":return!0;case"resource":return m}});let l=!1;return s.forEach(f=>{for(const[h,m]of Object.entries(f.permissions))r.includes(h)&&m&&(l=!0)}),l}const dh=function(e,t){const{permissions:n}=Pc().getState().users;return jW(n,e,t)},py="AnonymizeData";var SE;(function(e){e.TRUE="1",e.FALSE="0",e.DEFAULT="-1"})(SE||(SE={}));async function Hde(){const e=Ge(py,!1);if(dh("session.valid"))try{const a=await Ct.get("/analytics/privacy");return a.data.AnonymizeData==="-1"?e:a.data.AnonymizeData==="1"}catch{return e}const n=(await NW())["garden.cookie.name"]+"-"+py,r=decodeURIComponent(document.cookie).split("; "),o=Object.fromEntries(r.map(a=>a.split("=")));return o[n]===void 0?e:o[n]==="true"}async function Ude(e){const t=e===void 0?"DEFAULT":e.toString().toUpperCase(),n=Ge(py,!1);if(dh("session.valid"))try{const s=await Ct.post("/analytics/privacy",{AnonymizeData:SE[t]});return s.data.AnonymizeData==="-1"?n:s.data.AnonymizeData==="1"}catch{return n}const r=await NW(),o=r["garden.cookie.name"]+"-"+py,a=r["garden.cookie.path"],i=e===void 0?n:e;return document.cookie=[o,i].join("=")+`;path=${a}`,i}async function NW(){return(await Ct.get("/config?select=garden.cookie.name,garden.cookie.path")).data}const Vde={apiv2:Ct,translate:nA,getCurrentUser:()=>Pc().getState().users.current.data,getCurrentUserPermissions:()=>Pc().getState().users.permissions.data,currentUserHasPermission:dh,getCurrentLocale:If,getAnonymizeData:Hde,setAnonymizeData:Ude};window.__VANILLA_GLOBALS_DO_NOT_USE_DIRECTLY__=Vde;function Gde(){const e=Ge("embed.remoteUrl");if(!(Ge("embed.enabled")&&Ge("embed.isModernEmbed"))||!e)return null;const n=Ge("embed.forceModernEmbed");if(!(window.top!==window.self))if(n){const s=qde(),l=new URL(e);if(!s&&l.host!==window.location.host)return l.hash=`${escape(window.location.href)}`,window.location.href=l.toString(),null}else return null;e2(),n2();const o=Kde(),a=Yde(),i=setInterval(()=>{e2(),n2()},200);return()=>{clearInterval(i),o(),a()}}let JN=null;function e2(){const e=window.location.href;JN!==e&&(JN=e,c1({type:"embeddedHrefUpdate",href:e}))}let t2=null;function n2(){const e=document.title;t2!==e&&(t2=e,c1({type:"embeddedTitleUpdate",title:e}))}function r2(){document.scrollingElement&&requestAnimationFrame(()=>{c1({type:"embeddedScrollUpdate",isScrolled:document.scrollingElement.scrollTop>50,isScrollEnd:document.scrollingElement.scrollTop===0||document.scrollingElement.scrollTop+document.scrollingElement.clientHeight>=document.scrollingElement.scrollHeight})})}function Yde(){r2();const e=Ra(r2,1e3/60);return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}function Kde(){const e=iv("click","a",t=>{if(t.metaKey||!(t.target instanceof HTMLAnchorElement)||t.target.target==="_blank")return;const n=t.target.href;Ni(n).startsWith(Ni(""))||(t.preventDefault(),c1({type:"navigateExternalDomain",href:n}))});return()=>{hee(e)}}function c1(e){var t;(t=window.top)==null||t.postMessage(e,Ge("embed.remoteUrl"))}function qde(){if(!!(sessionStorage.getItem("bypassEmbed")??!1))return!0;if(!!(new URLSearchParams(window.location.search).get("bypassEmbed")??!1))try{return sessionStorage.setItem("bypassEmbed","true"),!0}catch{return console.error("Failed to stash bypassEmbed in session storage"),!0}return!1}window.global||(window.global=window);window.onerror=e=>{console.error(e),setTimeout(()=>{window.getComputedStyle(document.body).visibility!=="visible"&&(document.body.style.visibility="visible",wa("Javascript error encountered, forcing body visibility"))},800)};async function Xde(){performance.mark("Bootstrap - Start"),Ge("featureFlags.useFocusVisible.Enabled",!0)||document.body.classList.add("hasNativeFocus"),yW.baseUrl=Tf("");const e=Ge("context.debug",Ge("debug",!1));eg(e);const t=Ge("context.translationDebug",!1);B3(t),await ZN(),document.addEventListener("DOMContentLoaded",async()=>{await ZN()}),window.gdn.apiv2=Ct,window.onPageView=AW,window.__VANILLA_INTERNAL_IS_READY__=!1,Gde();try{const n=Ge("embed.enabled",!1),r=Ge("embed.isAdvancedEmbed",!1);n&&r&&window.parent.show&&window.parent.show()}catch(n){console.error(n)}Ct.interceptors.request.use(n=>{let r=Ge("auditLog");return r&&(n.headers||(n.headers={}),n.headers["X-Parent-Audit-Log-Id"]=r.auditLogID,n.headers["X-Parent-Audit-Log-Request-Path"]=r.requestPath,n.headers["X-Parent-Audit-Log-Request-Method"]=r.requestMethod,n.headers["X-Parent-Audit-Log-Request-Query"]=JSON.stringify(r.requestQuery)),n}),Mee().then(()=>{jh(r=>{Ece(r.target).finally(()=>{setTimeout(()=>{document.body.classList.remove("isLoading")},0)}),Fde()}),window.__VANILLA_INTERNAL_IS_READY__=!0;const n=new CustomEvent("X-DOMContentReady",{bubbles:!0,cancelable:!1});document.dispatchEvent(n)}).catch(n=>{mn(n)}).finally(()=>{performance.mark("Bootstrap - End")})}const Au=class Au{static setSupportsExtensions(t){this._supportsExtensions=t}static supportsExtensions(){return this._supportsExtensions}};q(Au,"_supportsExtensions",!1),q(Au,"sources",[]),q(Au,"addSource",function(t){Au.sources.find(n=>n.key===t.key)||Au.sources.push(t)});let fh=Au;class Qde{constructor(){q(this,"abortController");q(this,"asyncDomains",[]);q(this,"loadedDomains",[]);q(this,"addDomain",t=>{this.asyncDomains.push(t)});q(this,"loadDomains",async()=>await Promise.all(Array.from(this.asyncDomains).map(t=>new Promise(n=>t.loadedDomain?(this.pushDomain(t.loadedDomain),n(t.loadedDomain)):t.load().then(r=>(this.pushDomain(r),n(r)))))));this.abortController=new AbortController}abort(){this.abortController.abort(),this.abortController=new AbortController}get key(){return"community"}get label(){return k("Community")}async performSearch(t){const n=await Ct.get("/search",{params:t,signal:this.abortController.signal});return{results:n.data.map(r=>(r.body=r.excerpt??r.body,r)),pagination:_A.parseHeaders(n.headers)}}get domains(){return this.loadedDomains}clearDomains(){this.loadedDomains=[],this.asyncDomains=[]}pushDomain(t){this.loadedDomains.find(({key:n})=>n===t.key)||this.loadedDomains.push(t)}}const LW=new Qde;fh.addSource(LW);var DE;(function(e){e.DEFAULT="page_view",e.DISCUSSION="discussion_view",e.KB_DEFAULT="kb_view",e.KB_ARTICLE="kb_article_view",e.KB_CATEGORY="kb_category_view",e.EXTERNAL_NAVIGATION="externalNavigation"})(DE||(DE={}));const $W=(e=window.location.href,t,n)=>{var h;const r=n||(Ge("viewEventType")??"page_view"),o=Ge("DiscussionID"),a=JSON.parse(Ge("TickExtra","{}")),i=(h=oA())==null?void 0:h.sectionID,s=document.referrer,l=Ge("groupID"),c=Ge("eventID"),d=a==null?void 0:a.CategoryID,f={url:e,...o&&{discussionID:o},...d&&{categoryID:d},...i&&{siteSectionID:i},...s&&{referrer:s},...l&&{groupID:l},...c&&{eventID:c},...t&&{...t}};MW(r,f)},MW=(e,t)=>{Ct.post("/tick",{type:e,...t}).catch(n=>mn(n))},Zde=()=>iv("click","a",Jde),Jde=(e,t)=>{var i;const n=new URL(window.location.href);let r=t.getAttribute("href");const o=new URL(Ni(r));n.pathname!=="/home/leaving"&&(o.origin!==Ni("")||o.pathname=="/home/leaving")&&MW("externalNavigation",{url:n,destinationUrl:o.searchParams.get("target")??r,siteSectionID:(i=oA())==null?void 0:i.sectionID})},lht=e=>{const{data:t,uniqueKey:n}=e;return x.useEffect(()=>{let r=t!=null&&t.layoutViewType?null:t;(t==null?void 0:t.layoutViewType)==="discussionThread"&&(r={type:DE.DISCUSSION,discussionID:t.recordID}),document.dispatchEvent(new CustomEvent("pageViewWithContext",{detail:r})),document.dispatchEvent(new CustomEvent("X-PageView",{bubbles:!0,cancelable:!1}))},[n]),u.jsx(u.Fragment,{children:null})},efe=e=>{document.addEventListener("pageViewWithContext",e)},tfe=W.createContext({});function _W(){return x.useContext(tfe)}var dc;(function(e){e.INLINE="inline",e.SMALL="small",e.MEDIUM="medium",e.FULL_WIDTH="fullwidth"})(dc||(dc={}));const nfe=re(()=>{const e=ee(),t=qe("embedContainer"),n=t("colors",{bg:e.mainColors.bg,fg:e.mainColors.fg}),r=t("border",{style:"none",width:0,radius:Dl().embeds.borderRadius??4}),o=t("title",{...e.fontSizeAndWeightVars("medium","bold")}),a=t("dimensions",{maxEmbedWidth:640}),i=t("padding",{padding:18});return{border:r,spacing:i,colors:n,title:o,dimensions:a}}),rfe=re(()=>{const e=ee(),t=nfe(),n=Tt("embed"),r={"&:hover":{boxShadow:`0 0 0 ${Le(e.embed.select.borderWidth)} ${e.embed.focus.color.fade(.5)} inset`},".embed-isSelected &":{boxShadow:`0 0 0 ${Le(e.embed.select.borderWidth)} ${e.embed.focus.color.toString()} inset`}},o={[dc.INLINE]:{width:"auto",display:"inline-flex",alignItems:"center",maxWidth:Z(100),padding:"2px 6px",lineHeight:1,textAlign:"start",marginLeft:1,marginRight:1,position:"relative"},[dc.SMALL]:{width:Le(500),maxWidth:Z(100)},[dc.MEDIUM]:{width:Le(e.embed.sizing.width),maxWidth:Z(100)},[dc.FULL_WIDTH]:{maxWidth:Z(100),width:Z(100)}},a=(l,c,d=!0,f=!0)=>n(l,{...E.font({...e.fontSizeAndWeightVars("medium"),color:P.colorOut(t.colors.fg),textDecoration:"none"}),background:P.colorOut(Dl().embeds.bg??t.colors.bg),display:"block",position:"relative",marginRight:"auto",marginLeft:0,padding:d?t.spacing.padding:0,...c?zn():{},...o[l],...E.border(t.border),...f&&ld(e.body.backgroundImage.color,E.border(),Un().embed()),"&.isLoading":{cursor:"pointer",...r},"&.hasError":{cursor:"pointer",background:P.colorOut(e.messageColors.warning.bg),color:P.colorOut(e.messageColors.warning.fg),...r},"&.embedImage":{border:0,boxShadow:"none"},"&.embedImage .embedExternal-content":{...ld(e.body.backgroundImage.color,E.border(),Un().embed())}}),i=n("title",{"&&&":{fontSize:w(t.title.size),fontWeight:t.title.weight,marginTop:0,marginBottom:4,display:"block",width:Z(100),padding:0,lineHeight:e.lineHeights.condensed,color:P.colorOut(Dl().embeds.fg??e.mainColors.fg),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});return{makeRootClass:a,title:i,inlineWithFavicon:S({top:2},"label:embedStyles-inlineWithFavicon")}}),ofe=re(()=>{const e=Tt("embedContent"),t=e("small",{display:"inline-flex",width:"auto"}),n=e("root",{position:"relative"});return{small:t,root:n,menuBar:S({position:"absolute",left:"50%",top:0,transform:"translate(-50%, -20px)",zIndex:11},"label:embedStyles-menuBar")}}),afe=x.forwardRef(function(t,n){const{size:r,withPadding:o,withShadow:a=!0,...i}=t,s=rfe(),{inEditor:l,selectSelf:c,isSelected:d}=_W();return u.jsx("div",{ref:n,...i,onClick:f=>{var h;(h=i.onClick)==null||h.call(i,f),l&&(f.stopPropagation(),f.nativeEvent.stopImmediatePropagation(),d||(f.preventDefault(),c==null||c()))},className:ae("embedExternal",s.makeRootClass(t.size||dc.MEDIUM,!!l,!!o,!!a),t.className),children:t.children})}),ife="isEditorWalledEvent",sfe="editorEventWall";function lfe(e){const t=x.useRef(null);return x.useEffect(()=>{const{current:n}=t;if(n)return n.addEventListener("click",Vd),n.addEventListener("mouseup",Vd),n.addEventListener("keydown",Vd),()=>{n.removeEventListener("click",Vd),n.removeEventListener("mouseup",Vd),n.removeEventListener("keydown",Vd)}},[t]),u.jsx("div",{ref:t,...e,onClick:n=>{n.preventDefault()},className:sfe})}const Vd=e=>{e[ife]=!0},cfe="embed-focusableElement",cO={fill:"currentColor"},uO="M3.621,10.5l7.94-7.939A1.5,1.5,0,0,0,9.439.439h0l-9,9a1.5,1.5,0,0,0,0,2.121h0l9,9a1.5,1.5,0,0,0,2.122-2.122Z",FW=e=>e?"-8 -4 30 30":"0 0 24 24",ufe=" ";function EE(e){const t=e.title?e.title:">",n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-chevronRight",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:FW(e.centred),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",style:{transform:"scaleX(-1)",transformOrigin:"50% 50%"},children:[u.jsx("title",{children:t}),u.jsx("path",{transform:"translate(0 1.75)",className:"icon-chevronRightPath",d:uO,style:cO})]})}function dO(e){const t="<",n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-chevronLeft",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:FW(e.centred),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{transform:"translate(0 1.75)",className:"icon-chevronLeftPath",d:uO,style:cO})]})}function dfe(e){const t="<",n=bt();return u.jsxs("svg",{className:ae(n.chevronLeftCompact,"icon-chevronLeftCompact",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 21","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{d:uO,style:cO})]})}function ffe(e){const t=e.title?e.title:"↓",n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-chevronDown",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",style:{transform:e.rotate?`rotate(${e.rotate}deg)`:void 0},children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M18.534,9.142l-.668-.618a.442.442,0,0,0-.614,0L12,13.386,6.749,8.524a.442.442,0,0,0-.614,0l-.668.618a.369.369,0,0,0,0,.569l6.226,5.765a.443.443,0,0,0,.615,0l6.226-5.765a.376.376,0,0,0,.134-.284A.381.381,0,0,0,18.534,9.142Z"})]})}function IE(e){const t="↑",n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-chevronUp",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M13.8,12l-6,6c-0.4,0.4-0.4,1.2,0,1.6c0.4,0.4,1.2,0.4,1.6,0l6.8-6.9c0.4-0.4,0.4-1.2,0-1.6L9.4,4.3     C9,3.9,8.3,3.9,7.8,4.3C7.4,4.8,7.4,5.5,7.8,6L13.8,12z"})]})}function gy(e){const t="↑",n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-chevronUp",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M9.2,12l6-6c0.4-0.4,0.4-1.2,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l-6.8,6.9c-0.4,0.4-0.4,1.2,0,1.6l6.8,6.9     c0.4,0.4,1.2,0.4,1.6,0c0.4-0.4,0.4-1.2,0-1.6L9.2,12z"})]})}function WW(e){const t=k("Close"),n=e.compact?"0 0 16 16":"0 0 24 24",r=e.compact?"translate(-4 -4)":"",o=bt();return u.jsxs("svg",{className:ae(e.compact?o.compact:o.close,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:n,"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{transform:r,fill:"currentColor",d:"M12,10.6293581 L5.49002397,4.11938207 C5.30046135,3.92981944 4.95620859,3.96673045 4.69799105,4.22494799 L4.22494799,4.69799105 C3.97708292,4.94585613 3.92537154,5.29601344 4.11938207,5.49002397 L10.6293581,12 L4.11938207,18.509976 C3.92981944,18.6995387 3.96673045,19.0437914 4.22494799,19.3020089 L4.69799105,19.775052 C4.94585613,20.0229171 5.29601344,20.0746285 5.49002397,19.8806179 L12,13.3706419 L18.509976,19.8806179 C18.6995387,20.0701806 19.0437914,20.0332695 19.3020089,19.775052 L19.775052,19.3020089 C20.0229171,19.0541439 20.0746285,18.7039866 19.8806179,18.509976 L13.3706419,12 L19.8806179,5.49002397 C20.0701806,5.30046135 20.0332695,4.95620859 19.775052,4.69799105 L19.3020089,4.22494799 C19.0541439,3.97708292 18.7039866,3.92537154 18.509976,4.11938207 L12,10.6293581 Z"})]})}function fO(e){return u.jsx(WW,{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",compact:!0,className:e.className})}function Vh(e){const t=k("Close"),n=bt();return u.jsxs("svg",{className:ae(n.closeTiny,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.5 9.5","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M10.836,11.75,7.793,8.707A1,1,0,0,1,9.207,7.293l3.043,3.043,3.043-3.043a1,1,0,0,1,1.414,1.414L13.664,11.75l3.043,3.043a1,1,0,0,1-1.414,1.414L12.25,13.164,9.207,16.207a1,1,0,1,1-1.439-1.389l.025-.025Z",transform:"translate(-7.488 -7.012)"})]})}function zW(e){const t=k("Clear"),n=bt();return u.jsxs("svg",{className:ae(n.standard,"icon-clear",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M12,5a7,7,0,1,0,7,7A7,7,0,0,0,12,5Zm2.873,5.244L13.118,12l1.755,1.756a.337.337,0,0,1,0,.479l-.638.638a.337.337,0,0,1-.479,0L12,13.118l-1.756,1.755a.337.337,0,0,1-.479,0l-.638-.638a.337.337,0,0,1,0-.479L10.882,12,9.127,10.244a.337.337,0,0,1,0-.479l.638-.638a.337.337,0,0,1,.479,0L12,10.882l1.756-1.755a.337.337,0,0,1,.479,0l.638.638A.337.337,0,0,1,14.873,10.244Z"})]})}function cht(e){const t=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:ae(t.newFolder,e.className),viewBox:"0 0 22 19","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:k("New Folder")}),u.jsx("path",{d:"M1,15.066V3.77Q1,1,3.548,1H9.12L11.3,3.769h7.286q2.372-.083,2.372,2.6v8.7q0,3.205-2.372,3.206H3.548Q1,18.272,1,15.066Z",style:{fill:"none",stroke:"currentColor",strokeWidth:"1.2px"}}),u.jsx("path",{d:"M10.5,8v6m3-3h-6",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.2px"}})]})}function u1(e){const t=bt(),{className:n,errorMessage:r=k("Error")}=e;return u.jsxs("svg",{className:ae(t.warning,n),"aria-label":r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:r}),u.jsx("path",{d:"M11.753,4.247a.843.843,0,0,1,0,1.19L9.191,8l2.562,2.562a.842.842,0,0,1,.076,1.105l-.076.086a.843.843,0,0,1-1.19,0L8,9.191,5.438,11.753a.842.842,0,0,1-1.191-1.19L6.809,8,4.247,5.438a.842.842,0,0,1-.076-1.1l.076-.086a.843.843,0,0,1,1.19,0L8,6.809l2.562-2.562a.842.842,0,0,1,1.191,0Z",transform:"translate(0.5 0.5)",style:{fill:"currentColor",fillRule:"evenodd"}}),u.jsx("circle",{cx:"8.5",cy:"8.5",r:"8",style:{fill:"none",stroke:"currentColor"}})]})}function hO(e){const t=bt(),{className:n}=e;return u.jsxs("svg",{className:ae(t.warning,n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",id:"checkmark","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("polygon",{points:"12.136 3.139 13.25 4.253 6.211 11.292 2.75 7.83 3.863 6.717 6.211 9.064 12.136 3.139",fill:"currentColor",transform:"translate(0,1)"}),u.jsx("circle",{cx:"8.5",cy:"8.5",r:"8",style:{fill:"none",stroke:"currentColor"}})]})}function mO(e){const t=bt(),{className:n,informationMessage:r=k("Information")}=e;return u.jsxs("svg",{className:ae(t.warning,n),"aria-label":r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:r}),u.jsx("circle",{cx:"8",cy:"8",r:"7.5",style:{fill:"none",stroke:"currentColor"}}),u.jsx("path",{d:"M9,12H7V7H9ZM7,5.006a1.063,1.063,0,0,1,.236-.757A1.006,1.006,0,0,1,8,4a1.012,1.012,0,0,1,.764.254A1.058,1.058,0,0,1,9,5.006.883.883,0,0,1,8,6,.879.879,0,0,1,7,5.006Z",style:{fill:"currentColor",fillRule:"evenodd"}})]})}function hfe(e){const t=k("Folder"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:ae(n.categoryIcon,"icon-categoryIcon",e.className),viewBox:"0 0 24 24",role:"img","aria-label":t,"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{d:"M5.5,19 L18.5,19 C19.3284271,19 20,18.3284271 20,17.5 L20,8.5 C20,7.67157288 19.3284271,7 18.5,7 L12,7 L10.2222222,5 L5.5,5 C4.67157288,5 4,5.67157288 4,6.5 L4,17.5 C4,18.3284271 4.67157288,19 5.5,19 Z",fill:"currentColor"})]})}function d1(e){const t="✓",n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:ae(n.selectedCategory,"icon-selectedCategory",e.className),viewBox:"0 0 16.8 13",role:"img","aria-label":t,"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("polygon",{points:"12.136 3.139 13.25 4.253 6.211 11.292 2.75 7.83 3.863 6.717 6.211 9.064 12.136 3.139",fill:"currentColor"})]})}function uht(e){return u.jsx(f1,{className:e.className,"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",deg:180,translateY:-2})}function f1(e){let t;e.deg!==void 0&&(t=`rotate(${e.deg}, 4, 4)`);let n;e.translateY&&(n=`translate(0, ${e.translateY})`);const r=[t,n].filter(a=>a!==void 0).join(", "),o=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",className:ae(e.className,o.triangeTiny),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:"▾"}),u.jsx("polygon",{points:"0 0 10 0 5 6 0 0",fill:"currentColor",transform:r})]})}function dht(e){return u.jsx(f1,{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:e.className,title:e.title?e.title:"▶",deg:-90})}function fht(e){const t=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ae(t.standard,"icon-compose",e.className),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:k("Compose")}),u.jsx("path",{fill:"currentColor",d:"M23.591,1.27l-.9-.9a1.289,1.289,0,0,0-1.807,0l-.762.863,2.6,2.587.868-.751a1.24,1.24,0,0,0,.248-.373,1.255,1.255,0,0,0,0-1.052A1.232,1.232,0,0,0,23.591,1.27ZM19.5,20.5H3.5V4.5H15.4l1.4-1.431H2.751A1,1,0,0,0,2,4.07V20.939a1,1,0,0,0,1,1H20.011a1,1,0,0,0,1-1V7L19.5,8.445ZM21.364,3.449l-9.875,9.8-.867-.861,9.874-9.8-.867-.863-4.938,4.9-4.938,4.9L8.74,15.167l3.617-1.055,9.875-9.8Z"})]})}function mfe(e){const t="+",n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",className:ae(n.plusCircle,"icon-plusCircle",e.className),role:"img","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("g",{fill:"none",fillRule:"evenodd",children:u.jsx("g",{children:u.jsxs("g",{transform:"translate(-969 -413) translate(970 414)",children:[u.jsx("circle",{cx:"7",cy:"7",r:"7",stroke:"currentColor",strokeWidth:".778"}),u.jsx("path",{fill:"currentColor",d:"M6.3 3.5H7.699999999999999V10.5H6.3z"}),u.jsx("path",{fill:"currentColor",d:"M6.3 3.5L7.7 3.5 7.7 10.5 6.3 10.5z",transform:"rotate(90 7 7)"})]})})})]})}function hht(e){const t=k("Chevron Up"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 51 17",style:{transform:e.rotate?`rotate(${e.rotate}deg)`:void 0},className:ae(n.chevronUp,"icon-chevronUp",e.className),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{fill:"currentColor",d:"M4.9,16.752A3.552,3.552,0,0,1,.329,14.668c-.039-.106-.074-.214-.1-.323A4.185,4.185,0,0,1,2.39,9.152L24.246.252a3.31,3.31,0,0,1,2.508,0l21.856,8.9a4.184,4.184,0,0,1,2.166,5.193,3.552,3.552,0,0,1-4.351,2.511,3.41,3.41,0,0,1-.325-.1L25.5,8.358Z"})]})}function rS(e){const t=e.message?e.message:k("Page Not Found"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ae(n.standard,"icon-notFound",e.className),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:t}),u.jsx("path",{d:"M16.178,14.358l4.628,4.616c.633.631,1.2,1.417.354,2.261s-1.647.286-2.285-.336q-.627-.612-4.7-4.688a7.7,7.7,0,1,1,2.005-1.853ZM9.984,9.214,11.563,7.64a.418.418,0,0,1,.591.59L10.576,9.8l1.578,1.574a.418.418,0,0,1-.591.59L9.984,10.394,8.4,11.968a.418.418,0,0,1-.591-.59L9.392,9.8,7.814,8.23A.418.418,0,0,1,8.4,7.64Zm.063,7.545a7.044,7.044,0,1,0-7.03-7.043A7.037,7.037,0,0,0,10.047,16.759Z",fill:"currentColor"})]})}function mht(e){const{message:t,className:n}=e,r=t||k("Accessibility"),o=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ae(o.standard,"icon-accessibleImageMenuIcon",n),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:r}),u.jsx("path",{fill:"currentColor",d:"M12 22.7C6.09 22.7 1.3 17.91 1.3 12 1.3 6.09 6.09 1.3 12 1.3c5.91 0 10.7 4.79 10.7 10.7 0 5.91-4.79 10.7-10.7 10.7zm0-1.4a9.3 9.3 0 1 0 0-18.6 9.3 9.3 0 0 0 0 18.6z"}),u.jsx("path",{fill:"currentColor",d:"M12 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),u.jsx("path",{fill:"currentColor",d:"M16.06 9.004h-.005l-3.06.336a2.823 2.823 0 0 1-.313.018H11.32c-.104 0-.208-.006-.312-.017l-3.065-.337c-.482-.047-.902.394-.94.984-.038.59.321 1.106.803 1.153l2.473.275c.15.017.265.17.265.355v.822c0 .179-.027.356-.08.522L9.06 17.494c-.195.541.005 1.174.446 1.414.442.24.958-.005 1.154-.546l1.336-4.007 1.349 4.017c.201.528.71.762 1.144.528.435-.235.637-.853.456-1.391l-1.408-4.395a1.717 1.717 0 0 1-.08-.521v-.822c0-.185.115-.339.265-.355l2.47-.275c.48-.045.841-.56.804-1.15-.036-.59-.456-1.033-.938-.988z"})]})}function pht(e){const t=bt();return u.jsxs("svg",{viewBox:"0 0 24 24",className:ae(t.editIcon,e.className),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:k("Edit")}),u.jsx("g",{className:ae({[t.isSmall]:e.small}),children:u.jsxs("g",{transform:"translate(4, 3)",children:[u.jsx("polygon",{fill:"currentColor",points:"1.05405405 14 3 15.9736842 0 17"}),u.jsx("path",{d:"M1.53965611,12.8579964 L14.2200643,0.146669161 C14.4151476,-0.0488897203 14.6102308,-0.0488897203 14.805314,0.146669161 L16.8536876,2.20003741 C17.0487708,2.39559629 17.0487708,2.59115517 16.8536876,2.78671406 L4.17327936,15.4980413 L0.466698493,16.9647329 C0.076532086,17.0625124 -0.118551118,16.9647329 0.076532086,16.5736152 L1.53965611,12.8579964 Z",stroke:"currentColor",fill:"none"})]})})]})}function pfe(e){const t=bt();return u.jsxs("svg",{viewBox:"0 0 17 17",className:ae(t.deleteIcon,e.className),"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:k("Delete")}),u.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",fill:"currentColor",children:[u.jsx("path",{d:"M14,4v9c0,1.1-0.9,2-2,2H5c-1.1,0-2-0.9-2-2V4H2.3C2.1,4,2,3.9,2,3.7V3.3C2,3.1,2.1,3,2.3,3h3.2l0.3-1   C5.9,1.4,6.4,1,7,1h3c0.6,0,1.1,0.4,1.2,1l0.3,1h3.2C14.9,3,15,3.1,15,3.3v0.4C15,3.9,14.9,4,14.7,4H14z M7,2.2C7,2.1,7.1,2,7.2,2   h2.6C9.9,2,10,2.1,10,2.2L10.2,3H6.8L7,2.2z M4,4h9v9c0,0.5-0.4,1-1,1H5c-0.6,0-1-0.5-1-1V4z"}),u.jsx("path",{d:"M8.5,5.5L8.5,5.5C8.8,5.5,9,5.7,9,6v6c0,0.3-0.2,0.5-0.5,0.5l0,0C8.2,12.5,8,12.3,8,12V6   C8,5.7,8.2,5.5,8.5,5.5z"}),u.jsx("path",{d:"M10.5,5.5L10.5,5.5C10.8,5.5,11,5.7,11,6v6c0,0.3-0.2,0.5-0.5,0.5l0,0c-0.3,0-0.5-0.2-0.5-0.5V6   C10,5.7,10.2,5.5,10.5,5.5z"}),u.jsx("path",{d:"M6.5,5.5L6.5,5.5C6.8,5.5,7,5.7,7,6v6c0,0.3-0.2,0.5-0.5,0.5l0,0C6.2,12.5,6,12.3,6,12V6   C6,5.7,6.2,5.5,6.5,5.5z"})]})]})}function ght(e){const t=bt();return u.jsxs("svg",{className:ae(t.discussionIcon,e.className),viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:k("Speech Bubble")}),u.jsx("path",{fill:"currentColor",d:"M12 17.431c4.418 0 8-2.783 8-6.216C20 7.782 16.418 5 12 5s-8 2.783-8 6.216c0 1.572.75 3.008 1.99 4.102l-.765 3.11 3.28-1.619a9.9 9.9 0 0 0 3.495.623zm-6.332 1.892c-.762.376-1.616-.31-1.414-1.134l.627-2.55C3.678 14.396 3 12.854 3 11.215 3 7.168 7.077 4 12 4s9 3.168 9 7.215c0 4.048-4.077 7.215-9 7.215-1.192 0-2.352-.185-3.43-.54l-2.902 1.433z"})]})}function vht(e){const t=bt();return u.jsxs("svg",{className:ae(t.standard,e.className),viewBox:"0 0 24 24","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:k("Translate")}),u.jsx("path",{d:"M9.836,13.2l-.455-1.495H7.09L6.635,13.2H5.2L7.417,6.892H9.046L11.27,13.2Zm-.773-2.612q-.359-1.149-.711-2.3-.065-.209-.114-.42-.142.549-.812,2.72Zm9.472,1.626a.5.5,0,0,0,0-1h-2.07V10a.466.466,0,1,0-.93,0v1.214h-1.9c-.256,0-.088.22,0,.5s0,.5.255.5h.216a4.936,4.936,0,0,0,1.164,2.75c-.528.34.31.329-.35.329-.256,0,0,.077,0,.353s.093.508.35.508c.614,0,.01.03.73-.508a4.216,4.216,0,0,0,2.535.854.5.5,0,0,0,0-1,3.319,3.319,0,0,1-1.8-.536,4.936,4.936,0,0,0,1.164-2.75h.641ZM16,14.34a3.893,3.893,0,0,1-.956-2.125h1.912A3.893,3.893,0,0,1,16,14.34Z",style:{fill:"currentColor"}}),u.jsx("path",{d:"M11.271,2.709H4.017q-1.418,0-1.417,1.9V16.445q0,1.575,1.733,1.575H16.1Z",style:{fill:"none",stroke:"currentColor",strokeWidth:"1.2px"}}),u.jsx("path",{d:"M12.348,6.116h7.7q1.313,0,1.312,1.234v12.7q0,1.47-1.312,1.47H13.635L12,18.02h4.1Zm1.287,15.4,2.817-3.287",style:{fill:"none",stroke:"currentColor",strokeWidth:"1.2px"}})]})}function gfe(e){const t=bt();return u.jsxs("svg",{className:ae(t.hamburger,e.className),viewBox:"0 0 21.999 15.871","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:e.title?e.title:k("Menu")}),u.jsx("path",{d:"M21.111,8.9H.89a.925.925,0,0,1,0-1.849H21.11a.925.925,0,0,1,0,1.849m0-7.012H.89A.906.906,0,0,1,0,.97.907.907,0,0,1,.889.045H21.11A.907.907,0,0,1,22,.969a.907.907,0,0,1-.889.924m0,14.023H.89a.925.925,0,0,1,0-1.849H21.11a.925.925,0,0,1,0,1.849",transform:"translate(0 -0.045)",style:{fill:"currentcolor"}})]})}function vfe(e){return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",className:e.className,children:[u.jsx("title",{children:k("Loader")}),u.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:u.jsxs("g",{fill:"currentColor",children:[u.jsx("path",{d:"M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.07738737,18 0,13.97 0,9 C0,8.99144674 1,8.99144674 3,9 C3,12.3137085 5.6862915,15 9,15 C12.3137085,15 15,12.3137085 15,9 C15,5.6862915 12.3137085,3 9,3 L9,0 Z",id:"Path",opacity:"0.3"}),u.jsx("path",{d:"M9,5.1159077e-13 C9,5 4.97,9 1.42108547e-14,9 C1.42108547e-14,9 1.42108547e-14,6 1.42108547e-14,6 C3.31,6 5.95313475,3.31 6,5.1159077e-13 C6,5.1159077e-13 9,5.1159077e-13 9,5.1159077e-13 Z",id:"Path",transform:"translate(4.500000, 4.500000) rotate(180.000000) translate(-4.500000, -4.500000) "})]})})]})}function bfe(e){const t=bt();return u.jsxs("svg",{className:ae(t.documentation,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11.795 15","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:k("Documentation")}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.689,3.442,8.761.142A.429.429,0,0,0,8.443,0H.424A.424.424,0,0,0,0,.424V14.576A.424.424,0,0,0,.424,15H11.371a.424.424,0,0,0,.424-.424V3.724A.429.429,0,0,0,11.689,3.442ZM8.861,1.534,10.446,3.32H8.861Zm2.086,12.617H.848V.85H8.012v2.9a.424.424,0,0,0,.424.424h2.51v9.977ZM2.368,6.4a.424.424,0,0,0,.424.424H9a.425.425,0,0,0,0-.849H2.793a.425.425,0,0,0-.425.425ZM9,8.269H2.793a.425.425,0,1,0-.041.849H9a.425.425,0,0,0,0-.849Zm0,2.293H2.793a.424.424,0,0,0,0,.848H9a.424.424,0,0,0,0-.848Z",style:{fill:"currentColor",fillRule:"evenodd"}})]})}function yfe(e){return u.jsxs("svg",{className:ae("svgBookmark",e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.733 16.394","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:k("Bookmark")}),u.jsx("path",{className:"svgBookmark-mainPath",strokeWidth:2,d:"M1.05.5H11.683a.55.55,0,0,1,.55.55h0V15.341a.549.549,0,0,1-.9.426L6.714,12a.547.547,0,0,0-.7,0L1.4,15.767a.55.55,0,0,1-.9-.426V1.05A.55.55,0,0,1,1.05.5z"}),u.jsx("path",{d:"M11.7,0.5H6.4v11.4c0.1,0,0.2,0,0.3,0.1l4.6,3.8c0.1,0.1,0.2,0.1,0.4,0.1c0.3,0,0.5-0.2,0.5-0.6V1.1C12.2,0.7,12,0.5,11.7,0.5z",className:"svgBookmark-loadingPath"})]})}function HW(e){return u.jsxs("svg",{className:ae(bt().newPostMenuIcon,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",children:[u.jsx("title",{children:k("New Post")}),u.jsx("path",{d:"M8,0A1,1,0,0,1,9,1V7h6a1,1,0,0,1,.993.883L16,8a1,1,0,0,1-1,1H9v6a1,1,0,0,1-.883.993L8,16a1,1,0,0,1-1-1V9H1a1,1,0,0,1-.993-.883L0,8A1,1,0,0,1,1,7H7V1A1,1,0,0,1,7.883.006Z",fill:"currentColor"})]})}function xfe(e){const t=bt();return u.jsx("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",width:"12",height:"12",className:ae(t,e.className),style:{height:12,width:12},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",children:u.jsx("path",{fill:"currentColor",id:"arrow",d:"M6,0,4.909,1.091l4.13,4.13H0V6.779H9.039l-4.13,4.13L6,12l6-6Z"})})}function UW(e){const t=bt();return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:ge(t.downvote,e.className),children:u.jsx("g",{fillRule:"evenodd",strokeLinejoin:"round",children:u.jsx("path",{d:"M19.087 8.5L12 16.768 4.913 8.5h14.174z"})})})}function Cfe(e){const t=bt();return u.jsx(UW,{"aria-hidden":e["aria-hidden"],className:ge(t.upvote,e.className)})}var jn;(function(e){e.THREE_COLUMNS="three columns",e.TWO_COLUMNS="two columns"})(jn||(jn={}));var vy;(function(e){e.XS="xs",e.MOBILE="mobile",e.TABLET="tablet",e.DESKTOP="desktop",e.NO_BLEED="no_bleed"})(vy||(vy={}));const Ht=re(e=>{const t=ee(e),n=qe(["layoutVariables","panelLayout"],e),r=vy,o=n("colors",{leftColumnBg:t.mainColors.bg}),a=n("foundationalWidths",{fullGutter:t.constants.fullGutter,panelWidth:t.panel.width,middleColumn:t.middleColumn.width,minimalMiddleColumnWidth:550,narrowContentWidth:900,breakPoints:{twoColumns:1200,xs:500}}),i={full:a.fullGutter,size:a.fullGutter/2,halfSize:a.fullGutter/4,quarterSize:a.fullGutter/8},s=n("panel",{width:a.panelWidth}),l=n("panel",{...s,paddedWidth:s.width+i.full}),c=n("middleColumn",{width:a.middleColumn}),d=n("middleColumn",{...c,paddedWidth:c.width+i.full}),f=d.paddedWidth+l.paddedWidth*2,h=n("content",{full:f,narrow:a.narrowContentWidth<f?a.narrowContentWidth:f}),m=n("breakPoints",{noBleed:f,twoColumns:a.breakPoints.twoColumns,oneColumn:a.minimalMiddleColumnWidth+l.paddedWidth,xs:a.breakPoints.xs}),g=n("panelLayoutSpacing",{padding:{top:i.halfSize*1.5},largePadding:{top:64},offset:{left:-44,right:-36},withPanelBackground:{gutter:70}}),p=A=>({noBleed:(z,Y=!0)=>Yt({maxWidth:A.noBleed,minWidth:Y?A.twoColumns+1:void 0},z),noBleedDown:z=>Yt({maxWidth:A.noBleed},z),twoColumns:(z,Y=!0)=>Yt({maxWidth:A.twoColumns,minWidth:Y?A.oneColumn+1:void 0},z),twoColumnsDown:z=>Yt({maxWidth:A.twoColumns},z),oneColumn:(z,Y=!0)=>Yt({maxWidth:A.oneColumn,minWidth:Y?A.xs+1:void 0},z),oneColumnDown:z=>Yt({maxWidth:A.oneColumn},z),aboveOneColumn:z=>Yt({minWidth:A.oneColumn+1},z),xs:z=>Yt({maxWidth:A.xs},z)}),v=()=>p(m),b=()=>{const A=document.body.clientWidth;return A<=m.xs?r.XS.toString():A<=m.oneColumn?r.MOBILE.toString():A<=m.twoColumns?r.TABLET.toString():A<=m.noBleed?r.NO_BLEED.toString():r.DESKTOP.toString()},y=A=>A===r.DESKTOP||A===r.NO_BLEED,C=A=>A===r.XS||A===r.MOBILE;return{type:jn.THREE_COLUMNS.toString(),Devices:r,colors:o,foundationalWidths:a,gutter:i,setMediaQueries:p,panel:l,middleColumn:d,contentSizes:h,calculateDevice:b,contentWidth:f,mediaQueries:v,isFullWidth:y,isCompact:C,panelLayoutSpacing:g,breakPoints:m}}),pO=re(()=>{const e=gv();return{primary:au(e.primary),standard:au(e.standard),outline:au(e.outline),transparent:au(e.transparent),translucid:au(e.translucid),icon:ms().buttonIcon,iconCompact:ms().buttonIconCompact,text:ms().buttonAsText,textPrimary:ms().buttonAsTextPrimary,radio:au(e.radio),custom:"",notStandard:au(e.notStandard)}}),ms=re(()=>{const e=Gi(),t=ee(),n=Kt(),r=Tt("buttonUtils"),o=Ht().mediaQueries(),a=r("pushLeft",{marginRight:je("auto")}),i=r("pushRight",{marginLeft:je("auto")}),s=b=>({...ei(),alignItems:"center",display:"flex",height:w(b),minWidth:w(b),justifyContent:"center",border:"none",padding:0,background:"transparent",color:"inherit",borderRadius:3,"&:disabled, &[aria-disabled='true']":{opacity:.5,cursor:"not-allowed"},"&:not(:disabled):not([aria-disabled='true'])":{"&:hover, &:focus, &.hover, &:focus-visible, &.focus-visible":{background:P.colorOut(t.mainColors.primary.fade(.1))}},"&.active":{background:P.colorOut(t.mainColors.primary.fade(.1)),color:P.colorOut(t.mainColors.primary)},"&&.focus-visible, &:focus-visible":{outline:"none",boxShadow:`0 0 0 1px ${t.mainColors.primary}`}}),l=r("buttonIcon",s(n.sizing.height),o.oneColumnDown({minWidth:e.sizing.compactHeight})),c=S({...s(n.sizing.height-4),whiteSpace:"nowrap"},"label:Button-styles-buttonIconMenuBar"),d=r("iconCompact",s(e.sizing.compactHeight)),f={...ei(),minWidth:je(0),padding:0,overflow:"hidden",textAlign:"start",lineHeight:t.lineHeights.base,fontWeight:t.fonts.weights.semiBold,whiteSpace:"nowrap"},h=r("asText",f,{color:"inherit","&:not(.focus-visible)":{outline:0},"&:focus, &:active, &:hover":{color:P.colorOut(t.mainColors.secondary)}}),m=S(f,{"&&":{color:P.colorOut(t.links.colors.default)},"&&:not(.focus-visible)":{outline:0},"&&:hover, &&:focus, &&:active":{color:P.colorOut(t.links.colors.active)}},"label:Button-styles-buttonAsTextPrimary"),g=r("buttonIconRightMargin",{marginRight:w(6)}),p=r("buttonIconLeftMargin",{marginLeft:w(6)}),v=r("reset",ei());return{pushLeft:a,buttonAsText:h,buttonAsTextPrimary:m,pushRight:i,iconMixin:s,buttonIconCompact:d,buttonIconMenuBar:c,buttonIcon:l,buttonIconRightMargin:g,buttonIconLeftMargin:p,reset:v}}),wfe=re(()=>{const e=wo(),t=re((o="center")=>S({...o==="center"?e.middle():e.middleLeft,paddingLeft:4,paddingRight:4,height:Z(100),width:Z(100),"& + .suggestedTextInput-parentTag":{display:"none"}},"label:Button-styles-root")),n=S({"&&":{paddingLeft:3,paddingRight:3}},"label:Button-styles-reducedPadding"),r=S(gW(),"label:Button-styles-svg");return{root:t,svg:r,reducedPadding:n}}),o2=re(()=>({root:Tt("buttonLabelWrap")({maxWidth:Z(100),textOverflow:"ellipsis",overflow:"hidden"})})),gO=re(()=>{const e=ee(),t=ms(),n=Kt(),r=4,o=S({position:"relative",display:"inline-flex",flexDirection:"column",alignItems:"stretch",background:P.colorOut(n.colors.bg),color:P.colorOut(n.colors.fg),...E.border(),...ld(void 0,void 0,Un().toolbar())},"label:MenuBar-classes-root"),a=S({display:"flex",alignItems:"center",gap:2,padding:2,"&&& li":{width:"auto"}},"label:MenuBar-classes-menuItemsList"),i=S({listStyle:"none",padding:0,margin:0,"&::before":{display:"none"}},"label:MenuBar-classes-menuItem"),s=t.buttonIconMenuBar,l=S({},"label:MenuBar-classes-menuItemTextContent"),c=S({maxWidth:"100%"},"label:MenuBar-classes-subMenuContainer"),d=S({overflow:"hidden",paddingBottom:r},"label:MenuBar-classes-subMenuItemsList"),f=S({borderTop:wt(),borderBottom:wt(),paddingTop:r,paddingBottom:r,marginTop:r,marginBottom:r,"&:first-child, & + .subMenuGroup":{borderTop:"none",marginTop:0,paddingTop:0},"&:last-child":{borderBottom:"none",marginBottom:0,paddingBottom:0}},"label:MenuBar-classes-subMenuGroup"),h=S({...E.padding({vertical:r,horizontal:10}),display:"flex",alignItems:"center",cursor:"pointer",lineHeight:e.lineHeights.condensed,"&:disabled, &[aria-disabled='true']":{opacity:.5,cursor:"not-allowed"},"&:not(:disabled):not([aria-disabled='true'])":{"&:hover, &:focus":{background:P.colorOut(e.mainColors.primary.fade(.1)),color:P.colorOut(e.mainColors.primary)}},"&.active":{color:P.colorOut(e.mainColors.primary)},"&&.focus-visible, &:focus-visible":{outline:"none",boxShadow:`inset 0 0 0 1px ${e.mainColors.primary}`}},"label:MenuBar-classes-subMenuItem"),m=S({marginLeft:-r,marginRight:r},"label:MenuBar-classes-subMenuItemIcon");return{root:o,menuItemsList:a,menuItem:i,menuItemIconContent:s,menuItemTextContent:l,subMenuContainer:c,subMenuItemsList:d,subMenuGroup:f,subMenuItem:h,subMenuItemIcon:m,subMenuItemText:S({paddingTop:r,paddingBottom:r},"label:MenuBar-classes-subMenuItemText")}}),VW=W.createContext({ref:{current:null},renderSubMenu:e=>e});function GW(){return x.useContext(VW)}function Sfe(e){const t=x.useRef(null);return u.jsx(VW.Provider,{value:{ref:t,renderSubMenu:n=>{if(t.current)return aa.createPortal(n,t.current)}},children:e.children})}function Dfe(){const{ref:e}=GW();return u.jsx("div",{ref:e})}const YW=function(t){const n=vO(),{isSubMenuOpen:r}=n,o=GW(),a=x.useRef(null),{isSelected:i,contextProps:s}=XW(t,a),l=!!t.children,c=gO(),d=xr("submenu"),f=h=>{var m;h.preventDefault(),h.stopPropagation(),h.nativeEvent.stopImmediatePropagation(),n.setCurrentItemIndex(t.itemIndex??null),l&&(i&&r?n.setSubMenuOpen(!1):n.setSubMenuOpen(!0)),(m=t.onActivate)==null||m.call(t,h)};return u.jsxs("div",{className:ge(c.menuItem,t.className),onKeyDown:h=>{var m;switch(h.key){case"ArrowRight":n.incrementItemIndex();break;case"ArrowDown":l?r?n.focusActiveSubMenu():n.setSubMenuOpen(!0):n.incrementItemIndex();break;case"ArrowLeft":n.decrementItemIndex();break;case"ArrowUp":l?r&&(n.setSubMenuOpen(!1),(m=s.ref.current)==null||m.focus()):n.decrementItemIndex();break;case"Escape":if(!l||!r)return;n.setSubMenuOpen(!1),n.setCurrentItemIndex(n.currentItemIndex);break;default:return}h.stopPropagation(),h.preventDefault()},children:[u.jsx("span",{children:u.jsx("span",{...s,className:ge("icon"in t?c.menuItemIconContent:c.menuItemTextContent,t.iconClassName,{active:t.active}),title:t.accessibleLabel,"aria-label":t.accessibleLabel,role:"menuitem","aria-owns":l?d:void 0,"aria-haspopup":l,"aria-expanded":l&&r,onKeyDown:h=>{(h.key===" "||h.key==="Enter")&&f(h)},onClick:h=>{f(h)},children:"icon"in t?t.icon:t.textContent})}),i&&r&&t.children!=null&&o.renderSubMenu(u.jsx("div",{id:d,role:"menu",className:c.subMenuItemsList,children:u.jsx(qW,{initialItemIndex:null,isSelected:i,ref:a,children:t.children})}))]})};function Efe(e){const{contextProps:t}=XW(e),n=gO(),r=vO(),o=a=>{var i;a.preventDefault(),a.stopPropagation(),(i=e.onActivate)==null||i.call(e)};return u.jsxs("div",{role:"button",title:typeof e.children=="string"?e.children:void 0,"aria-label":typeof e.children=="string"?e.children:void 0,...t,className:ge(n.subMenuItem,"subMenuItem",{active:e.active}),onKeyDown:a=>{switch(a.key){case"ArrowDown":r.incrementItemIndex();break;case"ArrowUp":r.decrementItemIndex();break;case" ":case"Enter":o(a);break;default:return}a.stopPropagation(),a.preventDefault()},onClick:o,children:[e.icon&&u.jsx("span",{"aria-hidden":!0,className:n.subMenuItemIcon,children:e.icon}),u.jsx("span",{className:n.subMenuItemText,children:e.children})]})}const KW=W.createContext({});function vO(){return x.useContext(KW)}const qW=W.forwardRef(function(t,n){let r=t.isSelected??!0;const{itemChildren:o,itemRefs:a,countItemChildren:i,itemDisabledValues:s}=Ife(t.children),[l,c]=x.useState(t.initialItemIndex),d=A=>{var T;c(A),A!==null&&((T=a.current[A])==null||T.focus())},[f,h]=x.useState(!1),m=i-1,g=0,p=s.filter(A=>!A).length>0,v=A=>!(s[A]??!1),b=(A=l??0)=>{let T=A+1;T>m&&(T=0),!v(T)&&p?b(T):d(T)},y=(A=l??0)=>{let T=A-1;T<g&&(T=m),!v(T)&&p?y(T):d(T)},D={currentItemIndex:r?l:null,setCurrentItemIndex:d,incrementItemIndex:b,decrementItemIndex:y,setSubMenuOpen:h,isSubMenuOpen:f,focusActiveSubMenu:()=>{var A;l!==null&&((A=a.current[l])==null||A.focusSubMenu())}};return x.useImperativeHandle(n,()=>D),u.jsx(KW.Provider,{value:D,children:o})});function Ife(e){let t=x.useRef([]),n=0;const r=[];let o=0;const a=s=>W.Children.map(s,l=>{var c;if(!l)return l;switch(l.type){case YW:case Efe:{const d=o;return n++,o++,r[d]=l.props.disabled??!1,W.cloneElement(l,{itemIndex:d,itemRef:f=>{t.current[d]=f}})}default:return(c=l.props)!=null&&c.children?W.cloneElement(l,{},a(l.props.children)):l}}),i=a(e);return{itemRefs:t,itemChildren:i,countItemChildren:n,itemDisabledValues:r}}function XW(e,t){const n=vO(),r=n.currentItemIndex!==null&&e.itemIndex===n.currentItemIndex,o=W.useRef(null),a=!!t,i=a&&r&&n.isSubMenuOpen,s=r&&!(a&&i);return x.useImperativeHandle(e.itemRef,()=>({isDisabled:e.disabled??!1,itemIndex:e.itemIndex??0,focus:()=>{var l;(l=o.current)==null||l.focus()},focusSubMenu:()=>{var l;(l=t==null?void 0:t.current)==null||l.setCurrentItemIndex(0)}})),{isSelected:r,contextProps:{ref:o,tabIndex:s?0:-1,"aria-disabled":e.disabled}}}const Tfe=W.forwardRef(function(t,n){const{className:r,children:o,rootRef:a,...i}=t,s=gO(),l=x.useRef(null),c=a??l,d=x.useRef(null);x.useImperativeHandle(n,()=>d.current);const f=x.useRef(null),h=Zn(f);return zh(c,m=>{var g;m||(g=d.current)==null||g.setSubMenuOpen(!1)}),u.jsx(Sfe,{children:u.jsxs("div",{...i,ref:c,className:ge(s.root,r),children:[u.jsx("div",{ref:f,className:s.menuItemsList,role:"menubar",children:u.jsx(qW,{ref:d,initialItemIndex:0,children:t.children})}),u.jsx("div",{style:{width:h.width},className:s.subMenuContainer,children:u.jsx(Dfe,{})})]})})}),Afe=W.forwardRef(function(t,n){const{inEditor:r,isSelected:o,isNewEditor:a,deleteSelf:i,descriptionID:s}=_W(),l=ofe();return u.jsxs("div",{"aria-describedby":s,"aria-label":"External embed content - "+t.type,className:ge(t.className,l.root,!t.noBaseClass&&"embedExternal-content",{[cfe]:r&&!a,[l.small]:t.isSmall}),tabIndex:r&&!a?-1:void 0,ref:n,children:[t.children,(!a||t.embedActions)&&r&&o&&u.jsx(lfe,{children:u.jsxs(Tfe,{className:l.menuBar,children:[t.embedActions,u.jsx(YW,{icon:u.jsx(pfe,{}),accessibleLabel:k("Delete item"),onActivate:i})]})})]})});function Hn(e){const{condition:t,className:n,tag:r,children:o,component:a,componentProps:i={}}=e,s=a||r||"div";return t?u.jsx(s,{className:n,...i,children:o}):u.jsx(u.Fragment,{children:o})}let a2=!1;function Ofe(e){return e!=null&&(a2=e),a2}function i2(e){let t=`${e}`;return t.indexOf("px")>=0||t.indexOf("100%")>=0?t:`${parseInt(t)}px`}function Bfe({children:e,width:t}){return u.jsx("div",{style:{display:"block",width:`${t}`,maxWidth:"100%"},children:e})}function bht(e){const t=e.width?i2(e.width):"100%",n={width:t,maxWidth:"100%",height:e.height?i2(e.height):"auto",maxHeight:"80vh",...e.inEditor&&!e.isSelected&&{pointerEvents:"none"},...e.style};return u.jsx(Hn,{condition:t.indexOf("px")>=0,component:Bfe,componentProps:{width:t},children:u.jsx(afe,{"data-testid":"iframe-embed",size:dc.FULL_WIDTH,withShadow:!1,children:u.jsx(Afe,{type:e.embedType,embedActions:u.jsx(u.Fragment,{}),children:u.jsx("iframe",{sandbox:"allow-same-origin allow-scripts allow-forms",src:e.url,frameBorder:0,style:n,className:S({margin:"0 !important"},"label:IFrameEmbed-pointerEvents"),loading:"lazy",allowFullScreen:!0})})})})}$W();zD("trackLegacyPageViews",!0);efe(e=>{$W(window.location.href,e.detail)});var W4;(W4=Ge("inputFormat.desktop"))!=null&&W4.match(/rich2/i)&&Ofe(!0);Zde();const kfe=()=>{const e=ee();return{root:S({...E.font({...e.fontSizeAndWeightVars("medium")}),zIndex:1,...E.padding({horizontal:e.gutter.size,vertical:e.gutter.size}),...E.border(),...Un().dropDown(),background:P.colorOut(e.mainColors.bg),width:280,maxWidth:"100%",maxHeight:120,overflowX:"hidden",overflowY:"auto","&:not(last-of-type)":{marginTop:w(e.gutter.size)},p:{margin:0},a:{...E.clickable.itemState()}},"label:Toast-styles-root"),closeButton:S({position:"absolute",top:16,right:0},"label:Toast-styles-closeButton"),wide:S({width:380},"label:Toast-styles-wide")}},Ut={arr:Array.isArray,obj:e=>Object.prototype.toString.call(e)==="[object Object]",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0,nul:e=>e===null,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Ut.str(e)||Ut.num(e))return e===t;if(Ut.obj(e)&&Ut.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return Ut.und(n)?e===t:!0}};function Pfe(e,t){return t===void 0&&(t=!0),n=>(Ut.arr(n)?n:Object.keys(n)).reduce((r,o)=>{const a=t?o[0].toLowerCase()+o.substring(1):o;return r[a]=e(a),r},e)}function QW(){const e=x.useState(!1),t=e[1];return x.useCallback(()=>t(r=>!r),[])}function su(e,t){return Ut.und(e)||Ut.nul(e)?t:e}function xf(e){return Ut.und(e)?[]:Ut.arr(e)?e:[e]}function yo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ut.fun(e)?e(...n):e}function Rfe(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,vs(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}function oS(e){const t=Rfe(e);if(Ut.und(t))return wn({to:t},e);const n=Object.keys(e).reduce((r,o)=>Ut.und(t[o])?wn({},r,{[o]:e[o]}):r,{});return wn({to:t},n)}function jfe(e,t){return t&&(Ut.fun(t)?t(e):Ut.obj(t)&&(t.current=e)),e}class xi{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(t){this.children.length===0&&this.attach(),this.children.push(t)}removeChild(t){const n=this.children.indexOf(t);this.children.splice(n,1),this.children.length===0&&this.detach()}}class TE extends xi{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(t=>t instanceof xi&&t.addChild(this)),this.detach=()=>this.payload.forEach(t=>t instanceof xi&&t.removeChild(this))}}class ZW extends xi{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(t=>t instanceof xi&&t.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(t=>t instanceof xi&&t.removeChild(this))}getValue(t){t===void 0&&(t=!1);const n={};for(const r in this.payload){const o=this.payload[r];t&&!(o instanceof xi)||(n[r]=o instanceof xi?o[t?"getAnimatedValue":"getValue"]():o)}return n}getAnimatedValue(){return this.getValue(!0)}}let bO;function Nfe(e,t){bO={fn:e,transform:t}}let JW;function Lfe(e){JW=e}let e8=e=>typeof window<"u"?window.requestAnimationFrame(e):-1,by;function $fe(e){by=e}let t8=()=>Date.now(),Mfe=e=>e.current,n8;function _fe(e){n8=e}class Ffe extends ZW{constructor(t,n){super(),this.update=void 0,this.payload=t.style?wn({},t,{style:n8(t.style)}):t,this.update=n,this.attach()}}const Wfe=e=>Ut.fun(e)&&!(e.prototype instanceof W.Component),zfe=e=>x.forwardRef((n,r)=>{const o=QW(),a=x.useRef(!0),i=x.useRef(null),s=x.useRef(null),l=x.useCallback(h=>{const m=i.current,g=()=>{let p=!1;s.current&&(p=bO.fn(s.current,i.current.getAnimatedValue())),(!s.current||p===!1)&&o()};i.current=new Ffe(h,g),m&&m.detach()},[]);x.useEffect(()=>()=>{a.current=!1,i.current&&i.current.detach()},[]),x.useImperativeHandle(r,()=>Mfe(s)),l(n);const c=i.current.getValue();c.scrollTop,c.scrollLeft;const d=vs(c,["scrollTop","scrollLeft"]),f=Wfe(e)?void 0:h=>s.current=jfe(h,r);return W.createElement(e,wn({},d,{ref:f}))});let Fp=!1;const Yu=new Set,r8=()=>{if(!Fp)return!1;let e=t8();for(let t of Yu){let n=!1;for(let r=0;r<t.configs.length;r++){let o=t.configs[r],a,i;for(let s=0;s<o.animatedValues.length;s++){let l=o.animatedValues[s];if(l.done)continue;let c=o.fromValues[s],d=o.toValues[s],f=l.lastPosition,h=d instanceof xi,m=Array.isArray(o.initialVelocity)?o.initialVelocity[s]:o.initialVelocity;if(h&&(d=d.getValue()),o.immediate){l.setValue(d),l.done=!0;continue}if(typeof c=="string"||typeof d=="string"){l.setValue(d),l.done=!0;continue}if(o.duration!==void 0)f=c+o.easing((e-l.startTime)/o.duration)*(d-c),a=e>=l.startTime+o.duration;else if(o.decay)f=c+m/(1-.998)*(1-Math.exp(-(1-.998)*(e-l.startTime))),a=Math.abs(l.lastPosition-f)<.1,a&&(d=f);else{i=l.lastTime!==void 0?l.lastTime:e,m=l.lastVelocity!==void 0?l.lastVelocity:o.initialVelocity,e>i+64&&(i=e);let g=Math.floor(e-i);for(let y=0;y<g;++y){let C=-o.tension*(f-d),D=-o.friction*m,A=(C+D)/o.mass;m=m+A*1/1e3,f=f+m*1/1e3}let p=o.clamp&&o.tension!==0?c<d?f>d:f<d:!1,v=Math.abs(m)<=o.precision,b=o.tension!==0?Math.abs(d-f)<=o.precision:!0;a=p||v&&b,l.lastVelocity=m,l.lastTime=e}h&&!o.toValues[s].done&&(a=!1),a?(l.value!==d&&(f=d),l.done=!0):n=!0,l.setValue(f),l.lastPosition=f}t.props.onFrame&&(t.values[o.name]=o.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Yu.delete(t),t.stop(!0))}return Yu.size?e8(r8):Fp=!1,Fp},Hfe=e=>{Yu.has(e)||Yu.add(e),Fp||(Fp=!0,e8(r8))},Ufe=e=>{Yu.has(e)&&Yu.delete(e)};function yy(e,t,n){if(typeof e=="function")return e;if(Array.isArray(e))return yy({range:e,output:t,extrapolate:n});if(by&&typeof e.output[0]=="string")return by(e);const r=e,o=r.output,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const d=Gfe(c,a);return Vfe(c,a[d],a[d+1],o[d],o[d+1],l,i,s,r.map)}}function Vfe(e,t,n,r,o,a,i,s,l){let c=l?l(e):e;if(c<t){if(i==="identity")return c;i==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function Gfe(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}class hh extends TE{constructor(t,n,r,o){super(),this.calc=void 0,this.payload=t instanceof TE&&!(t instanceof hh)?t.getPayload():Array.isArray(t)?t:[t],this.calc=yy(n,r,o)}getValue(){return this.calc(...this.payload.map(t=>t.getValue()))}updateConfig(t,n,r){this.calc=yy(t,n,r)}interpolate(t,n,r){return new hh(this,t,n,r)}}const Yfe=(e,t,n)=>e&&new hh(e,t,n);function Kfe(e,t,n){n===void 0&&(n=1e3);const r=x.useRef();x.useEffect(()=>{Ut.equ(e,r.current)?e.forEach(o=>{let a=o.current;return a&&a.start()}):t?e.forEach((o,a)=>{let i=o.current;if(i){const s=i.controllers;if(s.length){const l=n*t[a];s.forEach(c=>{c.queue=c.queue.map(d=>wn({},d,{delay:d.delay+l})),c.start()})}}}):e.reduce((o,a,i)=>{let s=a.current;return o=o.then(()=>s.start())},Promise.resolve()),r.current=e})}function o8(e,t){"update"in e?t.add(e):e.getChildren().forEach(n=>o8(n,t))}class AE extends xi{constructor(t){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,o){o===void 0&&(o=!0),n.value=r,o&&n.flush()},this.value=t,this.startPosition=t,this.lastPosition=t}flush(){this.animatedStyles.size===0&&o8(this,this.animatedStyles),this.animatedStyles.forEach(t=>t.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(t,n,r){return new hh(this,t,n,r)}}class qfe extends TE{constructor(t){super(),this.payload=t.map(n=>new AE(n))}setValue(t,n){n===void 0&&(n=!0),Array.isArray(t)?t.length===this.payload.length&&t.forEach((r,o)=>this.payload[o].setValue(r,n)):this.payload.forEach(r=>r.setValue(t,n))}getValue(){return this.payload.map(t=>t.getValue())}interpolate(t,n){return new hh(this,t,n)}}let Xfe=0;class a8{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Xfe++}update(t){if(!t)return this;const n=oS(t),r=n.delay,o=r===void 0?0:r,a=n.to,i=vs(n,["delay","to"]);if(Ut.arr(a)||Ut.fun(a))this.queue.push(wn({},i,{delay:o,to:a}));else if(a){let s={};Object.entries(a).forEach(l=>{let c=l[0],d=l[1];const f=wn({to:{[c]:d},delay:yo(o,c)},i),h=s[f.delay]&&s[f.delay].to;s[f.delay]=wn({},s[f.delay],f,{to:wn({},h,f.to)})}),this.queue=Object.values(s)}return this.queue=this.queue.sort((s,l)=>s.delay-l.delay),this.diff(i),this}start(t){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(o=>{let a=o.from,i=a===void 0?{}:a,s=o.to,l=s===void 0?{}:s;Ut.obj(i)&&(this.merged=wn({},i,this.merged)),Ut.obj(l)&&(this.merged=wn({},this.merged,l))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((o,a)=>{let i=o.delay,s=vs(o,["delay"]);const l=d=>{a===r.length-1&&n===this.guid&&d&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),t&&t()};let c=Ut.arr(s.to)||Ut.fun(s.to);i?setTimeout(()=>{n===this.guid&&(c?this.runAsync(s,l):this.diff(s).start(l))},i):c?this.runAsync(s,l):this.diff(s).start(l)})}else Ut.fun(t)&&this.listeners.push(t),this.props.onStart&&this.props.onStart(),Hfe(this);return this}stop(t){return this.listeners.forEach(n=>n(t)),this.listeners=[],this}pause(t){return this.stop(!0),t&&Ufe(this),this}runAsync(t,n){var r=this;t.delay;let o=vs(t,["delay"]);const a=this.local;let i=Promise.resolve(void 0);if(Ut.arr(o.to))for(let s=0;s<o.to.length;s++){const l=s,c=wn({},o,oS(o.to[l]));Ut.arr(c.config)&&(c.config=c.config[l]),i=i.then(()=>{if(a===this.guid)return new Promise(d=>this.diff(c).start(d))})}else if(Ut.fun(o.to)){let s=0,l;i=i.then(()=>o.to(c=>{const d=wn({},o,oS(c));if(Ut.arr(d.config)&&(d.config=d.config[s]),s++,a===this.guid)return l=new Promise(f=>this.diff(d).start(f))},function(c){return c===void 0&&(c=!0),r.stop(c)}).then(()=>l))}i.then(n)}diff(t){this.props=wn({},this.props,t);let n=this.props,r=n.from,o=r===void 0?{}:r,a=n.to,i=a===void 0?{}:a,s=n.config,l=s===void 0?{}:s,c=n.reverse,d=n.attach,f=n.reset,h=n.immediate;if(c){var m=[i,o];o=m[0],i=m[1]}this.merged=wn({},o,this.merged,i),this.hasChanged=!1;let g=d&&d(this);if(this.animations=Object.entries(this.merged).reduce((p,v)=>{let b=v[0],y=v[1],C=p[b]||{};const D=Ut.num(y),A=Ut.str(y)&&!y.startsWith("#")&&!/\d/.test(y)&&!JW[y],T=Ut.arr(y),B=!D&&!T&&!A;let j=Ut.und(o[b])?y:o[b],R=D||T||A?y:1,N=yo(l,b);g&&(R=g.animations[b].parent);let _=C.parent,U=C.interpolation,V=xf(g?R.getPayload():R),z,Y=y;B&&(Y=by({range:[0,1],output:[y,y]})(1));let te=U&&U.getValue();const he=!Ut.und(_)&&C.animatedValues.some(le=>!le.done),pe=!Ut.equ(Y,te),K=!Ut.equ(Y,C.previous),O=!Ut.equ(N,C.config);if(f||K&&pe||O){if(D||A)_=U=C.parent||new AE(j);else if(T)_=U=C.parent||new qfe(j);else if(B){let le=C.interpolation&&C.interpolation.calc(C.parent.value);le=le!==void 0&&!f?le:j,C.parent?(_=C.parent,_.setValue(0,!1)):_=new AE(0);const be={output:[le,y]};C.interpolation?(U=C.interpolation,C.interpolation.updateConfig(be)):U=_.interpolate(be)}return V=xf(g?R.getPayload():R),z=xf(_.getPayload()),f&&!B&&_.setValue(j,!1),this.hasChanged=!0,z.forEach(le=>{le.startPosition=le.value,le.lastPosition=le.value,le.lastVelocity=he?le.lastVelocity:void 0,le.lastTime=he?le.lastTime:void 0,le.startTime=t8(),le.done=!1,le.animatedStyles.clear()}),yo(h,b)&&_.setValue(B?R:y,!1),wn({},p,{[b]:wn({},C,{name:b,parent:_,interpolation:U,animatedValues:z,toValues:V,previous:Y,config:N,fromValues:xf(_.getValue()),immediate:yo(h,b),initialVelocity:su(N.velocity,0),clamp:su(N.clamp,!1),precision:su(N.precision,.01),tension:su(N.tension,170),friction:su(N.friction,26),mass:su(N.mass,1),duration:N.duration,easing:su(N.easing,le=>le),decay:N.decay})})}else return pe?p:(B&&(_.setValue(1,!1),U.updateConfig({output:[Y,Y]})),_.done=!0,this.hasChanged=!0,wn({},p,{[b]:wn({},p[b],{previous:Y})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let p in this.animations)this.interpolations[p]=this.animations[p].interpolation,this.values[p]=this.animations[p].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const i8=(e,t)=>{const n=x.useRef(!1),r=x.useRef(),o=Ut.fun(t),a=x.useMemo(()=>{r.current&&(r.current.map(f=>f.destroy()),r.current=void 0);let d;return[new Array(e).fill().map((f,h)=>{const m=new a8,g=o?yo(t,h,m):t[h];return h===0&&(d=g.ref),m.update(g),d||m.start(),m}),d]},[e]),i=a[0],s=a[1];r.current=i,x.useImperativeHandle(s,()=>({start:()=>Promise.all(r.current.map(d=>new Promise(f=>d.start(f)))),stop:d=>r.current.forEach(f=>f.stop(d)),get controllers(){return r.current}}));const l=x.useMemo(()=>d=>r.current.map((f,h)=>{f.update(o?yo(d,h,f):d[h]),s||f.start()}),[e]);x.useEffect(()=>{n.current?o||l(t):s||r.current.forEach(d=>d.start())}),x.useEffect(()=>(n.current=!0,()=>r.current.forEach(d=>d.destroy())),[]);const c=r.current.map(d=>d.getValues());return o?[c,l,d=>r.current.forEach(f=>f.pause(d))]:c},$f=e=>{const t=Ut.fun(e),n=i8(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},Qfe=(e,t)=>{const n=x.useRef(!1),r=Ut.fun(t),o=yo(t),a=x.useRef(),i=i8(e,(f,h)=>(f===0&&(a.current=[]),a.current.push(h),wn({},o,{config:yo(o.config,f),attach:f>0&&(()=>a.current[f-1])}))),s=i[0],l=i[1],c=i[2],d=x.useMemo(()=>f=>l((h,m)=>{f.reverse||e-1;const g=f.reverse?h+1:h-1,p=a.current[g];return wn({},f,{config:yo(f.config||o.config,h),attach:p&&(()=>p)})}),[e,o.reverse]);return x.useEffect(()=>void(n.current&&!r&&d(t))),x.useEffect(()=>void(n.current=!0),[]),r?[s,d,c]:s};let Zfe=0;const w0="enter",aS="leave",iS="update",Jfe=(e,t)=>(typeof t=="function"?e.map(t):xf(t)).map(String),OE=e=>{let t=e.items,n=e.keys,r=n===void 0?a=>a:n,o=vs(e,["items","keys"]);return t=xf(t!==void 0?t:null),wn({items:t,keys:Jfe(t,r)},o)};function ehe(e,t,n){const r=wn({items:e,keys:t||(y=>y)},n),o=OE(r),a=o.lazy,i=a===void 0?!1:a;o.unique;const s=o.reset,l=s===void 0?!1:s;o.enter,o.leave,o.update;const c=o.onDestroyed;o.keys,o.items;const d=o.onFrame,f=o.onRest,h=o.onStart,m=o.ref,g=vs(o,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),p=QW(),v=x.useRef(!1),b=x.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!v.current&&new Map,forceUpdate:p});return x.useImperativeHandle(r.ref,()=>({start:()=>Promise.all(Array.from(b.current.instances).map(y=>{let C=y[1];return new Promise(D=>C.start(D))})),stop:y=>Array.from(b.current.instances).forEach(C=>C[1].stop(y)),get controllers(){return Array.from(b.current.instances).map(y=>y[1])}})),b.current=the(b.current,r),b.current.changed&&b.current.transitions.forEach(y=>{const C=y.slot,D=y.from,A=y.to,T=y.config,B=y.trail,j=y.key,R=y.item;b.current.instances.has(j)||b.current.instances.set(j,new a8);const N=b.current.instances.get(j),_=wn({},g,{to:A,from:D,config:T,ref:m,onRest:U=>{b.current.mounted&&(y.destroyed&&(!m&&!i&&s2(b,j),c&&c(R)),!Array.from(b.current.instances).some(Y=>!Y[1].idle)&&(m||i)&&b.current.deleted.length>0&&s2(b),f&&f(R,C,U))},onStart:h&&(()=>h(R,C)),onFrame:d&&(U=>d(R,C,U)),delay:B,reset:l&&C===w0});N.update(_),b.current.paused||N.start()}),x.useEffect(()=>(b.current.mounted=v.current=!0,()=>{b.current.mounted=v.current=!1,Array.from(b.current.instances).map(y=>y[1].destroy()),b.current.instances.clear()}),[]),b.current.transitions.map(y=>{let C=y.item,D=y.slot,A=y.key;return{item:C,key:A,state:D,props:b.current.instances.get(A).getValues()}})}function s2(e,t){const n=e.current.deleted;for(let r of n){let o=r.key;const a=i=>i.key!==o;(Ut.und(t)||t===o)&&(e.current.instances.delete(o),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))}e.current.forceUpdate()}function the(e,t){let n=e.first,r=e.prevProps,o=vs(e,["first","prevProps"]),a=OE(t),i=a.items,s=a.keys,l=a.initial,c=a.from,d=a.enter,f=a.leave,h=a.update,m=a.trail,g=m===void 0?0:m,p=a.unique,v=a.config,b=a.order,y=b===void 0?[w0,aS,iS]:b,C=OE(r),D=C.keys,A=C.items,T=wn({},o.current),B=[...o.deleted],j=Object.keys(T),R=new Set(j),N=new Set(s),_=s.filter(te=>!R.has(te)),U=o.transitions.filter(te=>!te.destroyed&&!N.has(te.originalKey)).map(te=>te.originalKey),V=s.filter(te=>R.has(te)),z=-g;for(;y.length;)switch(y.shift()){case w0:{_.forEach((se,he)=>{p&&B.find(le=>le.originalKey===se)&&(B=B.filter(le=>le.originalKey!==se));const pe=s.indexOf(se),K=i[pe],O=n&&l!==void 0?"initial":w0;T[se]={slot:O,originalKey:se,key:p?String(se):Zfe++,item:K,trail:z=z+g,config:yo(v,K,O),from:yo(n&&l!==void 0?l||{}:c,K),to:yo(d,K)}});break}case aS:{U.forEach(se=>{const he=D.indexOf(se),pe=A[he],K=aS;B.unshift(wn({},T[se],{slot:K,destroyed:!0,left:D[Math.max(0,he-1)],right:D[Math.min(D.length,he+1)],trail:z=z+g,config:yo(v,pe,K),to:yo(f,pe)})),delete T[se]});break}case iS:{V.forEach(se=>{const he=s.indexOf(se),pe=i[he],K=iS;T[se]=wn({},T[se],{item:pe,slot:K,trail:z=z+g,config:yo(v,pe,K),to:yo(h,pe)})});break}}let Y=s.map(te=>T[te]);return B.forEach(te=>{let se=te.left;te.right;let he=vs(te,["left","right"]),pe;(pe=Y.findIndex(K=>K.originalKey===se))!==-1&&(pe+=1),pe=Math.max(0,pe),Y=[...Y.slice(0,pe),he,...Y.slice(pe)]}),wn({},o,{changed:_.length||U.length||V.length,first:n&&_.length===0,transitions:Y,current:T,deleted:B,prevProps:t})}class nhe extends ZW{constructor(t){t===void 0&&(t={}),super(),t.transform&&!(t.transform instanceof xi)&&(t=bO.transform(t)),this.payload=t}}const xy={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ei="[-+]?\\d*\\.?\\d+",Cy=Ei+"%";function h1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const rhe=new RegExp("rgb"+h1(Ei,Ei,Ei)),ohe=new RegExp("rgba"+h1(Ei,Ei,Ei,Ei)),ahe=new RegExp("hsl"+h1(Ei,Cy,Cy)),ihe=new RegExp("hsla"+h1(Ei,Cy,Cy,Ei)),she=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lhe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,che=/^#([0-9a-fA-F]{6})$/,uhe=/^#([0-9a-fA-F]{8})$/;function dhe(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=che.exec(e))?parseInt(t[1]+"ff",16)>>>0:xy.hasOwnProperty(e)?xy[e]:(t=rhe.exec(e))?(Gd(t[1])<<24|Gd(t[2])<<16|Gd(t[3])<<8|255)>>>0:(t=ohe.exec(e))?(Gd(t[1])<<24|Gd(t[2])<<16|Gd(t[3])<<8|u2(t[4]))>>>0:(t=she.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=uhe.exec(e))?parseInt(t[1],16)>>>0:(t=lhe.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ahe.exec(e))?(l2(c2(t[1]),pb(t[2]),pb(t[3]))|255)>>>0:(t=ihe.exec(e))?(l2(c2(t[1]),pb(t[2]),pb(t[3]))|u2(t[4]))>>>0:null}function sS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l2(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=sS(o,r,e+1/3),i=sS(o,r,e),s=sS(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(i*255)<<16|Math.round(s*255)<<8}function Gd(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c2(e){return(parseFloat(e)%360+360)%360/360}function u2(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function pb(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function d2(e){let t=dhe(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${a})`}const gb=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,fhe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hhe=new RegExp(`(${Object.keys(xy).join("|")})`,"g"),mhe=e=>{const t=e.output.map(o=>o.replace(fhe,d2)).map(o=>o.replace(hhe,d2)),n=t[0].match(gb).map(()=>[]);t.forEach(o=>{o.match(gb).forEach((a,i)=>n[i].push(+a))});const r=t[0].match(gb).map((o,a)=>yy(wn({},e,{output:n[a]})));return o=>{let a=0;return t[0].replace(gb,()=>r[a++](o)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(i,s,l,c,d)=>`rgba(${Math.round(s)}, ${Math.round(l)}, ${Math.round(c)}, ${d})`)}};let Wp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const phe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ghe=["Webkit","Ms","Moz","O"];Wp=Object.keys(Wp).reduce((e,t)=>(ghe.forEach(n=>e[phe(n,t)]=e[t]),e),Wp);function vhe(e,t,n){return t==null||typeof t=="boolean"||t===""?"":!n&&typeof t=="number"&&t!==0&&!(Wp.hasOwnProperty(e)&&Wp[e])?t+"px":(""+t).trim()}const f2={};_fe(e=>new nhe(e));$fe(mhe);Lfe(xy);Nfe((e,t)=>{if(e.nodeType&&e.setAttribute!==void 0){const o=t.style,a=t.children,i=t.scrollTop,s=t.scrollLeft,l=vs(t,["style","children","scrollTop","scrollLeft"]),c=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter";i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&(e.textContent=a);for(let d in o)if(o.hasOwnProperty(d)){var n=d.indexOf("--")===0,r=vhe(d,o[d],n);d==="float"&&(d="cssFloat"),n?e.style.setProperty(d,r):e.style[d]=r}for(let d in l){const f=c?d:f2[d]||(f2[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof e.getAttribute(f)<"u"&&e.setAttribute(f,l[d])}return}else return!1},e=>e);const bhe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],yhe=Pfe(zfe,!1),Lo=yhe(bhe);var fc;(function(e){e.TOP="top",e.LEFT="left",e.RIGHT="right",e.BOTTOM="bottom"})(fc||(fc={}));const wy=W.forwardRef(function(t,n){const{firstItemProps:r,lastItemProps:o,isEntered:a,delay:i,fromDirection:s,fade:l,asElement:c,halfDirection:d,targetTransform:f,children:h,onDestroyed:m,...g}=t,p=xhe(t),v=ehe(a?h:null,y=>y==null?void 0:y.key,p),b=c?Lo[c]:Lo.div;return v.map(({item:y,key:C,props:D},A)=>{const T=A===0,B=A===v.length-1,j=ge(g.className,T&&(r==null?void 0:r.className),B&&(o==null?void 0:o.className));return y&&x.createElement(b,{...g,...T?r??{}:{},...B?o??{}:{},className:j,ref:n,key:C,style:D},y)})}),xhe=e=>{const{fromDirection:t,delay:n,fade:r,halfDirection:o,targetTransform:a,onDestroyed:i}=e,{xPercent:s=0,yPercent:l=0}=a??{};return x.useMemo(()=>{const c=r?0:1,d=1;let f,h;if(t){let g=0,p=0,v=0,b=0;const y=o?25:100;switch(t){case"bottom":g=s,p=s,v=l+y,b=l;break;case"top":g=s,p=s,v=l-y,b=l;break;case"right":g=s+y,p=s,v=l,b=l;break;case"left":g=s-y,p=s,v=l,b=l;break}f=`translate3d(${g}%, ${v}%, 0)`,h=`translate3d(${p}%, ${b}%, 0)`}const m={config:{tension:250,friction:30,clamp:!0},trail:n||0,onDestroyed:()=>{i==null||i()},from:{pointerEvents:"none",opacity:c,transform:f},enter:{opacity:d,pointerEvents:"initial",transform:h},leave:{opacity:c,pointerEvents:"none",transform:f}};return m.from.transform||delete m.from.transform,m.enter.transform||delete m.enter.transform,m.leave.transform||delete m.leave.transform,m},[r,t,n,o,s,l,i])},s8=re(()=>{const e=ee(),t=Ht().mediaQueries(),n={sizing:{height:e.icon.sizes.small,width:e.icon.sizes.default*12/21},position:{verticalOffset:e.fonts.alignment.headings.verticalOffsetForAdjacentElements}},r=t.oneColumnDown({height:20}),o=S({...zn(),display:"flex",alignItems:"center",justifyContent:"flex-start",overflow:"visible",height:w(n.sizing.height),minWidth:w(n.sizing.width),...E.margin({left:ca(24),right:e.gutter.half}),transform:Qf("0.5ch")},t.oneColumnDown({...E.margin({left:0})}),r,"label:BackLink-classes-root"),a=S({display:"inline-flex",alignItems:"center",justifyContent:"flex-start",color:"inherit",height:w(n.sizing.height),"&:hover, &:focus":{color:P.colorOut(e.mainColors.primary),outline:0}},"label:BackLink-classes-link"),i=re(c=>c?S({...E.absolute.topLeft("50%"),fontSize:w(c),transform:"translateY(-50%)",marginTop:w(n.position.verticalOffset)},"label:BackLink-classes-inHeading"):""),s=S({fontWeight:e.fonts.weights.semiBold,whiteSpace:"nowrap",paddingLeft:Le(12)},t.xs(E.absolute.srOnly()),"label:BackLink-classes-label"),l=S({height:w(n.sizing.height),width:w(n.sizing.width)},r,"label:BackLink-classes-icon");return{root:o,link:a,label:s,icon:l,inHeading:i}});var Ec;(function(e){e.LEFT="left",e.CENTER="center"})(Ec||(Ec={}));const Nn=re(e=>{const t=ee(e),n=Kt(e),r=qe("titleBar",e),o=r("meBox",{sizing:{buttonContents:n.sizing.height},withSeparator:!1,withLabel:!1,label:{font:ce.font({size:10}),spacing:ce.spacing({horizontal:8,top:-4,bottom:4})}}),a=r("sizing",{height:o.withLabel?64:48,spacer:12,mobile:{height:44,width:n.sizing.height}}),i=r("spacing",{padding:ce.spacing({top:0,bottom:0})}),s=r("overlay",{background:void 0}),l=r("colors",{fg:t.mainColors.primaryContrast,bg:t.mainColors.primary,bgImage:null}),c=r("colors",{...l,state:{bg:P.isLightColor(l.bg)?Za(0,0,0,.1):Za(255,255,255,.1),fg:l.fg}}),d=r("mobileColors",c),f=r("border",{type:dt.NONE,color:t.border.color,width:t.border.width}),h=Wn(a.height)+Wn(i.padding.bottom)+Wn(i.padding.top)+(f.type==dt.SHADOW_AS_BORDER?Wn(f.width):0),m=r("swoop",{amount:0}),g=r("swoop",{...m,swoopOffset:16*m.amount/50}),p=r("fullBleed",{enabled:!1,startingOpacity:0,endingOpacity:.15,bgColor:c.bg}),v={type:dt.NONE,color:"transparent",width:w(0),radius:w(0)},b=r("titleBarContainer",{maxWidth:void 0,gutterSpacing:ce.spacing({}),border:ce.border({left:{...v},right:{...v},top:{...v},bottom:{...v}})});p.endingOpacity=Math.max(p.startingOpacity,p.endingOpacity);const y=r("guest",{spacer:8,signInButtonType:ye.TRANSPARENT,registerButtonType:ye.TRANSLUCID}),C=t.buttonIcon.size,D=r("button",{borderRadius:t.border.radius,size:C,guest:{minWidth:86},mobile:{fontSize:16,width:C},state:{bg:c.state.bg}}),A=r("generatedColors",{state:P.offsetLightness(c.bg,.04)}),T=ce.button({name:ye.TITLEBAR_LINK,colors:{bg:Za(0,0,0,0),fg:c.fg},fonts:ce.font({color:c.fg}),sizing:{minWidth:w(t.icon.sizes.large),minHeight:w(t.icon.sizes.large)},padding:{horizontal:6},borders:{style:"none",color:Za(0,0,0,0)},state:{colors:{bg:A.state}}}),B=r("linkButton",T),j=r("count",{size:18,fontSize:10,fg:t.mainColors.bg,bg:t.mainColors.primary}),R=r("dropDownContents",{minWidth:350,maxHeight:UT(90)}),N=r("endElements",{flexBasis:C*4,mobile:{flexBasis:D.mobile.width-20}}),_=r("buttonContents",{state:{bg:D.state.bg}}),U=r("signIn",{fg:c.fg,bg:P.modifyColorBasedOnLightness({color:t.mainColors.primary,weight:.1,inverse:!0}),border:{...ce.border({color:c.fg})},hover:{bg:P.modifyColorBasedOnLightness({color:t.mainColors.primary,weight:.2,inverse:!0})}}),V=r("register",{fg:c.bg,bg:c.fg,borderColor:c.bg,states:{bg:c.fg.fade(.9)}}),z=r("mobileDropdown",{height:Le(a.mobile.height)}),Y=r("logo",{doubleLogoStrategy:"visible",offsetRight:t.gutter.size,justifyContent:Ec.LEFT,maxHeight:void 0,maxWidth:200,heightOffset:a.height/3,tablet:{},desktop:{url:void 0},mobile:{url:void 0,maxWidth:void 0,maxHeight:void 0,heightOffset:a.mobile.height/4},offsetVertical:{amount:0,mobile:{amount:0}}}),te=r("navAlignment",{alignment:"left"});Y.justifyContent===Ec.CENTER&&(te.alignment="left");const se=r("mobileLogo",{justifyContent:Ec.CENTER}),he=r("breakpoints",{compact:800}),pe=()=>({full:(ie,oe=!0)=>Yt({minWidth:he.compact+1},ie),compact:ie=>Yt({maxWidth:he.compact},ie),customBreakPoint:(ie,oe)=>Yt({maxWidth:oe},ie)}),K=r("closeButtonInit",{allStates:c.fg,hoverOpacity:t.constants.states.hover.borderEmphasis}),O=r("stateColors",{hover:K.allStates.mix(l.bg,K.hoverOpacity),focus:K.allStates,active:K.allStates});return{fullBleed:p,titleBarContainer:b,border:f,sizing:a,colors:c,mobileColors:d,overlay:s,signIn:U,resister:V,guest:y,button:D,linkButton:B,count:j,dropDownContents:R,endElements:N,buttonContents:_,mobileDropDown:z,meBox:o,logo:Y,mediaQueries:pe,breakpoints:he,navAlignment:te,mobileLogo:se,spacing:i,swoop:g,fullHeight:h,stateColors:O}}),Ns=re(()=>{const e=ee(),t=Nn(),n=Kt(),r=t.mediaQueries(),o=wo(),a=()=>{switch(t.border.type){case dt.BORDER:return{borderBottom:wt({color:t.border.color,width:t.border.width})};case dt.SHADOW:return{boxShadow:Un().embed(e.elementaryColors.black).boxShadow};case dt.SHADOW_AS_BORDER:return{};case dt.NONE:return{};default:return{}}},i=S({maxWidth:Z(100),color:P.colorOut(t.colors.fg),position:"relative",...r.compact({color:P.colorOut(t.mobileColors.fg)}),...a(),".searchBar__control":{color:t.colors.fg.toString(),cursor:"pointer"},".searchBar__placeholder":{textAlign:"start",color:t.colors.fg.fade(.8).toString()},[`.${s8().link}`]:{"&, &:hover, &:focus, &:active":{color:P.colorOut(t.colors.fg)}},...t.swoop.amount?{"& + *":{marginTop:-t.swoop.swoopOffset}}:{}},"label:titleBarStyles-root"),s={top:0,left:0,margin:"0 auto",position:"absolute",height:it(`80% - ${w(t.border.width+1)}`),transform:gl("-10vw"),width:"120vw",borderRadius:`0 0 100% 100%/0 0 ${Z(t.swoop.amount)} ${Z(t.swoop.amount)}`},l=S({},"label:titleBarStyles-swoop"),c=t.border.type===dt.SHADOW_AS_BORDER?{boxShadow:`0 ${w(t.border.width)} 0 ${P.colorOut(t.border.color)}`}:{},d=S({willChange:"opacity",...E.absolute.fullSizeOfParent(),backgroundColor:P.colorOut(t.fullBleed.enabled?t.fullBleed.bgColor:t.colors.bg),...c,overflow:"hidden",[`&.${l}`]:s},r.compact({backgroundColor:P.colorOut(t.fullBleed.enabled?t.fullBleed.bgColor:t.mobileColors.bg)}),"label:titleBarStyles-bg1"),f=S({willChange:"opacity",...E.absolute.fullSizeOfParent(),backgroundColor:P.colorOut(t.colors.bg),...c,overflow:"hidden",[`&.${l}`]:s},r.compact({backgroundColor:P.colorOut(t.mobileColors.bg)}),"label:titleBarStyles-bg2"),h=S({position:"relative",height:Z(100),width:Z(100),...E.padding(t.spacing.padding)},"label:titleBarStyles-container"),m=S({...E.absolute.fullSizeOfParent(),height:Z(100),width:Z(100),...E.padding(t.spacing.padding),boxSizing:"content-box",overflow:"hidden"},"label:titleBarStyles-bgContainer"),g=S({...E.absolute.fullSizeOfParent(),objectFit:"cover"},"label:titleBarStyles-bgImage"),p=S({paddingTop:Le(t.sizing.height/2)},r.compact({paddingTop:Le(t.sizing.mobile.height/2+20)}),"label:titleBarStyles-bannerPadding"),v=S({marginTop:Le(-t.sizing.height)},r.compact({marginTop:Le(-t.sizing.mobile.height)}),"label:titleBarStyles-negativeSpacer"),b=S({height:Le(t.sizing.height)},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-spacer"),y=S({display:"flex",justifyContent:"flex-start",flexWrap:"nowrap",alignItems:"center",height:Le(t.sizing.height),width:Z(100),"&.isHome":{justifyContent:"space-between"}},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-bar"),C=t.logo.offsetVertical.amount?{transform:Qf(`${w(t.logo.offsetVertical.amount)}`)}:{},D=t.logo.offsetVertical.mobile.amount?{transform:Qf(`${w(t.logo.offsetVertical.mobile.amount)}`)}:{},A=S({display:"inline-flex",alignSelf:"center",marginRight:w(t.logo.offsetRight),justifyContent:t.logo.justifyContent,...C,maxHeight:Z(100),"&&":{color:P.colorOut(t.colors.fg)},"&.focus-visible":{"&.headerLogo-logoFrame":{outline:`5px solid ${t.buttonContents.state.bg}`,background:P.colorOut(t.buttonContents.state.bg),borderRadius:t.button.borderRadius}}},r.compact({height:Le(t.sizing.mobile.height),marginRight:w(0),...D,"&&":{color:P.colorOut(t.mobileColors.fg)}}),"label:titleBarStyles-logoContainer"),T=S({flexBasis:t.endElements.flexBasis},"label:titleBarStyles-logoFlexBasis"),B=S({justifyContent:"flex-end"},"label:titleBarStyles-meBox"),j=S({display:"flex",flexWrap:"wrap",height:Le(t.sizing.height),color:"inherit",flexGrow:1,justifyContent:t.navAlignment.alignment==="left"?"flex-start":"center","&.titleBar-guestNav":{flex:"initial"}},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-nav"),R=S({height:Le(t.sizing.height),"&.buttonAsText":{"&:hover":{color:"inherit"},"&:focus":{color:"inherit"}}},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-locales"),N=S({color:t.colors.fg.toString()},"label:titleBarStyles-messages"),_=S({color:"inherit"},"label:titleBarStyles-notifications"),U=S({display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"auto",minWidth:w(n.sizing.height),maxWidth:Z(100),height:w(t.sizing.height),"&.isOpen":{flex:1}},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-compactSearch"),V=S({position:"absolute",top:w(n.sizing.height+2),width:Z(100),"&:empty":{display:"none"}},Ht().mediaQueries().xs({"&&&":{width:o3(100),left:it(`50% + ${w(40)}`),transform:gl("-50%"),borderTopRightRadius:0,borderTopLeftRadius:0},".suggestedTextInput-option":{...E.padding({horizontal:21})}}),"label:titleBarStyles-compactSearchResults"),z=S({display:"flex",alignItems:"center",justifyContent:"flex-end",marginLeft:"auto",[`& + .${U}`]:{marginLeft:0},li:{listStyle:"none"}},"label:titleBarStyles-extraMeBoxIcons"),Y=S({color:t.colors.fg.toString(),padding:`0 ${Le(t.sizing.spacer/2)}`,margin:`0 ${Le(t.sizing.spacer/2)}`,borderRadius:Le(t.button.borderRadius)},r.compact({}),"label:titleBarStyles-topElement"),te=S({height:Le(t.sizing.height)},r.compact({height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-localeToggle"),se=S({marginLeft:"auto"},"label:titleBarStyles-languages"),he=S({...ei(),height:Le(t.button.size),minWidth:Le(t.button.size),maxWidth:Z(100),padding:Le(0),"&&":{...Iu({allStates:{color:P.colorOut(t.colors.fg),".meBox-buttonContent":{backgroundColor:P.colorOut(t.buttonContents.state.bg)}},keyboardFocus:{outline:0,color:P.colorOut(t.colors.fg),".meBox-buttonContent":{borderColor:P.colorOut(t.colors.fg),backgroundColor:P.colorOut(t.buttonContents.state.bg)}}},{".meBox-buttonContent":{...E.border({width:1,color:Za(0,0,0,0)})},"&.isOpen":{color:P.colorOut(t.colors.fg),".meBox-buttonContent":{backgroundColor:P.colorOut(t.buttonContents.state.bg)},"&:focus":{color:P.colorOut(t.colors.fg)},"&.focus-visible":{color:P.colorOut(t.colors.fg)}}})}},r.compact({height:Le(t.sizing.mobile.height),width:Le(t.sizing.mobile.width),minWidth:Le(t.sizing.mobile.width),"&&":{...Iu({allStates:{color:P.colorOut(t.mobileColors.fg)},keyboardFocus:{outline:0,color:P.colorOut(t.mobileColors.fg),".meBox-buttonContent":{borderColor:P.colorOut(t.mobileColors.fg)}}})}}),"label:titleBarStyles-button"),pe=S(E.button(t.linkButton),"label:titleBarStyles-linkButton"),K=S({transform:"translateX(6px)"},"label:titleBarStyles-buttonOffset"),O=S({...o.middle()},"label:titleBarStyles-centeredButton"),le=S({...ei(),...zn(),height:Le(n.sizing.height),"&.focus-visible":{"&.meBox-buttonContent":{borderRadius:Le(t.button.borderRadius),backgroundColor:t.buttonContents.state.bg.toString()}}},"label:titleBarStyles-searchCancel"),be={color:e.mainColors.primary.toString(),".titleBar-tabButtonContent":{color:t.colors.fg.toString(),backgroundColor:P.colorOut(P.modifyColorBasedOnLightness({color:t.colors.fg,weight:1})),borderRadius:Le(t.button.borderRadius)}},H=S({display:"block",height:Z(100),padding:Le(0),"&:active":be,"&:hover":be,"&:focus":be},"label:titleBarStyles-tabButton"),ie=S({"&&&":{minWidth:w(t.dropDownContents.minWidth),maxHeight:w(t.dropDownContents.maxHeight)}},"label:titleBarStyles-dropDownContents"),oe=S({height:Le(t.count.size),fontSize:Le(t.count.fontSize),backgroundColor:t.count.bg.toString(),color:t.count.fg.toString()},"label:titleBarStyles-count"),ve=S({display:"flex",height:Le(t.sizing.height),flexWrap:"nowrap",justifyContent:"flex-end",alignItems:"center",flexBasis:t.endElements.flexBasis},r.compact({flexShrink:1,flexBasis:Le(t.endElements.mobile.flexBasis),height:Le(t.sizing.mobile.height)}),"label:titleBarStyles-rightFlexBasis"),$e=S({...o.middleLeft(),flexShrink:1,flexBasis:Le(t.endElements.mobile.flexBasis)},"label:titleBarStyles-leftFlexBasis"),Ne=S(t.guest.signInButtonType===ye.TRANSPARENT&&{"&&&":{color:P.colorOut(t.signIn.fg),borderColor:P.colorOut(t.signIn.border.color)}},"label:titleBarStyles-signIn"),Ze=S(t.guest.signInButtonType===ye.TRANSLUCID&&{backgroundColor:P.colorOut(t.resister.bg),"&&":{...Iu({allStates:{borderColor:P.colorOut(t.resister.borderColor),color:P.colorOut(t.resister.fg)},noState:{backgroundColor:P.colorOut(t.resister.bg)},hover:{color:P.colorOut(t.resister.fg),backgroundColor:P.colorOut(t.resister.states.bg)},focus:{color:P.colorOut(t.resister.fg),backgroundColor:P.colorOut(t.resister.states.bg)},active:{color:P.colorOut(t.resister.fg),backgroundColor:P.colorOut(t.resister.states.bg)}})}},"label:titleBarStyles-register"),ze=S({},"label:titleBarStyles-clearButtonClass"),Xe=S({"&&":{marginLeft:w(t.guest.spacer),marginRight:w(t.guest.spacer),minWidth:w(t.button.guest.minWidth),borderRadius:w(t.button.borderRadius),...E.font({textDecoration:"none"}),"&:last-child":{marginRight:0}}},"label:titleBarStyles-guestButton"),Me=S({position:"relative",flexGrow:1,...Che(e.gutter.half*4,t.colors.bg)},"label:titleBarStyles-desktopNavWrap"),Je=S({...E.absolute.middleOfParent(!0),display:"inline-flex",alignItems:"center",justifyContent:"center"},"label:titleBarStyles-logoCenterer"),pt=S({position:"relative",height:Z(100),display:"flex",alignItems:"center",justifyContent:"flex-start"},"label:titleBarStyles-logoLeftAligned"),ot=S({marginRight:w(12),"&&":{...Iu({allStates:{color:P.colorOut(t.colors.fg)}})}},r.compact({"&&":{...Iu({allStates:{color:P.colorOut(t.mobileColors.fg)}})}}),"label:titleBarStyles-hamburger"),Et=S({...Hh(),top:0,zIndex:10},"label:titleBarStyles-isSticky"),Vt=S({display:"inline-flex",alignItems:"center"},"label:titleBarStyles-logoAnimationWrap"),nt=S({...E.absolute.fullSizeOfParent(),background:t.overlay.background},"label:titleBarStyles-overlay"),Ee=S({marginRight:Ta(e.buttonIcon.offset+3)},"label:titleBarStyles-signInIconOffset"),kt=S({...E.border(t.titleBarContainer.border)},"label:titleBarStyles-titleBarContainer"),ne=S({position:"absolute",backgroundColor:P.colorOut(e.mainColors.bg),color:"gray",border:0,borderRadius:w(6),clip:"rect(0 0 0 0)",height:w(0),width:w(0),margin:w(-1),padding:0,overflow:"hidden",display:"inline-flex",alignItems:"center",justifyContent:"center","&:focus, &:active":{left:w(-40),width:w(144),height:w(38),clip:"auto"}},"label:titleBarStyles-skipNav");return{root:i,bg1:d,bg2:f,container:h,bgContainer:m,bgImage:g,negativeSpacer:v,bannerPadding:p,spacer:b,bar:y,logoContainer:A,meBox:B,nav:j,locales:R,messages:N,notifications:_,compactSearch:U,topElement:Y,localeToggle:te,languages:se,button:he,buttonOffset:K,linkButton:pe,searchCancel:le,tabButton:H,dropDownContents:ie,count:oe,extraMeBoxIcons:z,rightFlexBasis:ve,leftFlexBasis:$e,signIn:Ne,register:Ze,centeredButton:O,compactSearchResults:V,clearButtonClass:ze,guestButton:Xe,logoFlexBasis:T,desktopNavWrap:Me,logoCenterer:Je,logoLeftAligned:pt,hamburger:ot,isSticky:Et,logoAnimationWrap:Vt,overlay:nt,swoop:l,signInIconOffset:Ee,titleBarContainer:kt,skipNav:ne}}),h2=(e,t)=>{const n=t?e.sizing.mobile??e.sizing.height:e.sizing.height;let r=t?e.logo.mobile.maxHeight??e.logo.maxHeight??e.sizing.mobile.height:e.logo.maxHeight??e.sizing.height;return r>n&&(r=n),r-(t?e.logo.mobile.heightOffset:e.logo.heightOffset)},l8=re(()=>{const e=Nn(),t=e.mediaQueries(),n=S({display:"inline-flex",alignSelf:"center",justifyContent:"center"},"label:titleBarStyles-logoFrame"),r={display:"flex",justifyContent:e.mobileLogo.justifyContent,maxHeight:w(h2(e,!0)),maxWidth:w(e.logo.mobile.maxWidth??e.logo.maxWidth)},o=S({display:"block",maxHeight:w(h2(e,!1)),maxWidth:w(e.logo.maxWidth),"&.isCentred":{margin:"auto"}},t.compact(r),"label:titleBarStyles-logo"),a=S(r,"label:titleBarStyles-mobileLogo"),i=S({position:"absolute",left:Z(50),transform:K0("-50%","-50%")},"label:titleBarStyles-isCenter");return{logoFrame:n,logo:o,mobileLogo:a,isCenter:i}}),Che=(e,t)=>({"&:after":{...E.absolute.topRight(),background:Xf("right",`${P.colorOut(t.fade(0))} 0%`,`${P.colorOut(t.fade(.3))} 20%`,`${P.colorOut(t)} 90%`)},"&:before":{...E.absolute.topLeft(),background:Xf("left",`${P.colorOut(t.fade(0))} 0%`,`${P.colorOut(t.fade(.3))} 20%`,`${P.colorOut(t)} 90%`)},"&:before, &:after":{...bv(),content:Fc(""),height:Z(100),width:w(e),zIndex:1}});function mh(e){if(e){const t=ms(),n=pO();switch(e){case ye.STANDARD:return n.standard;case ye.TEXT:return n.text;case ye.TEXT_PRIMARY:return n.textPrimary;case ye.ICON:return t.buttonIcon;case ye.ICON_MENUBAR:return t.buttonIconMenuBar;case ye.ICON_COMPACT:return t.buttonIconCompact;case ye.PRIMARY:return n.primary;case ye.TRANSPARENT:return n.transparent;case ye.OUTLINE:return n.outline;case ye.TRANSLUCID:return n.translucid;case ye.TITLEBAR_LINK:return Ns().linkButton;case ye.CUSTOM:return n.custom;case ye.RESET:return ms().reset;case ye.DASHBOARD_STANDARD:return"btn";case ye.DASHBOARD_PRIMARY:return"btn btn-primary";case ye.DASHBOARD_SECONDARY:return"btn btn-secondary";case ye.DASHBOARD_LINK:return"btn btn-link";case ye.NOT_STANDARD:return n.notStandard;default:return""}}else return""}const ut=W.forwardRef(function(t,n){const r={id:void 0,disabled:!1,prefix:"button",legacyMode:!1,buttonType:ye.STANDARD,...t},{buttonType:o,legacyMode:a,className:i,submit:s,ariaLabel:l,ariaHidden:c,controls:d,buttonRef:f,id:h,...m}=r,g=xr(r.prefix),p=h??g,v=ge(mh(o),{Button:a},i);return u.jsx("button",{id:p,type:s?"submit":"button",className:v,"aria-label":l??m.title,"aria-hidden":c,ref:n??f,"aria-controls":d,...m,children:r.children})});class m1 extends W.PureComponent{render(){const t=this.props.title?this.props.title:k("Close"),n=ae("buttonClose","closeButton",this.props.className);return u.jsx(ut,{disabled:this.props.disabled,className:n,title:t,onClick:this.props.onClick,buttonType:this.props.buttonType,children:this.props.compact?u.jsx(fO,{}):u.jsx(WW,{})})}}q(m1,"defaultProps",{buttonType:ye.ICON,compact:!1});function BE(e){const{children:t,role:n,className:r,visibility:o,autoCloseDuration:a,onVisibilityChange:i,wide:s,dismissible:l}=e,c=kfe(),[d,f]=x.useState(o??!0);return x.useEffect(()=>{a&&d&&setTimeout(()=>f(!1),a)},[d,a]),x.useEffect(()=>{i&&i(d)},[d,i]),x.useEffect(()=>{f(!!o)},[o]),u.jsx(wy,{isEntered:d,fromDirection:fc.LEFT,children:u.jsxs("div",{className:ge(c.root,r,s&&c.wide),role:n??"status","aria-live":"assertive","aria-atomic":!0,children:[l&&u.jsx(m1,{className:c.closeButton,onClick:()=>f(!1),compact:!0}),t]})})}const whe={applyStatus:{status:X.PENDING},cancelStatus:{status:X.PENDING}},She=fa(Vi(whe).case(Br.putCurrentThemeACs.started,(e,t)=>(e.applyStatus.status=X.LOADING,e.applyStatus.data={themeID:t.themeID},e)).case(Br.putCurrentThemeACs.done,(e,t)=>(e.applyStatus.status=X.SUCCESS,e.applyStatus.error=void 0,e)).case(Br.putCurrentThemeACs.failed,(e,t)=>(e.applyStatus.status=X.ERROR,e.applyStatus.error=t.error,e)).case(Br.putPreviewThemeACs.started,(e,t)=>(t.type===Hu.CANCEL&&(e.cancelStatus.status=X.LOADING),e.cancelStatus.data={themeID:t.themeID},e)).case(Br.putPreviewThemeACs.done,(e,t)=>(t.params.type===Hu.CANCEL&&(e.cancelStatus.status=X.SUCCESS),e.cancelStatus.error=void 0,e)).case(Br.putPreviewThemeACs.failed,(e,t)=>(e.cancelStatus.status=X.ERROR,e.cancelStatus.error=t.error,e)));function Dhe(){return fn(e=>e.themePreviewToaster)}const ti=re(e=>{const t=ee(e),n=Kt(e),r=qe("input",e),o=r("colors",{placeholder:t.mixBgAndFg(.5),fg:t.mainColors.fg,bg:t.mainColors.bg,state:{fg:t.mainColors.primary}}),a=r("sizing",{height:n.sizing.height}),i=r("font",ce.font({...t.fontSizeAndWeightVars("large","normal"),color:o.fg})),s=r("borders",{...t.borderType.formElements.default});return{colors:o,border:s,sizing:a,font:i}}),c8=e=>{const t=ti();return{sizing:Xt({...t.sizing},(e==null?void 0:e.sizing)??{}),font:ce.font(Xt({...t.font},(e==null?void 0:e.font)??{})),colors:Xt({...t.colors},(e==null?void 0:e.colors)??{}),border:Xt({...t.border},(e==null?void 0:e.border)??{})}},xa=e=>{const t=c8(e),n=ee(),{sizing:r,font:o,colors:a,border:i}=t;return{...eO(r.height,o.size,i.width*2),backgroundColor:P.colorOut(a.bg),color:P.colorOut(a.fg),...E.border(i),...E.font(o),outline:0,height:r.height,...Vce({color:P.colorOut(a.placeholder)}),".SelectOne__input":{width:Z(100)},".SelectOne__placeholder":{color:P.colorOut(Kt().placeholder.color)},".tokens__placeholder":{color:P.colorOut(Kt().placeholder.color)},".SelectOne__input input":{display:"inline-block",width:je("100%"),overflow:"hidden",lineHeight:void 0,minHeight:0},"&:not(:disabled)":{"&:active, &:hover, &:focus, &.focus-visible, &:focus-within":{...E.border({...i,color:a.state.fg})}},"&.hasError":{borderColor:P.colorOut(n.messageColors.error.fg),backgroundColor:P.colorOut(n.messageColors.error.bg),color:P.colorOut(n.messageColors.error.fg)},"@media (max-width: 600px)":{fontSize:n.fonts.size.large}}},wd=re(()=>{const e=ti();c8(e);const t=Tt("input");Kt();const n=ee(),r={padding:xa().padding,paddingTop:xa().paddingTop,paddingBottom:xa().paddingBottom,paddingLeft:xa().paddingLeft,paddingRight:xa().paddingRight},o=S({...xa()},"label:inputStyles-text"),a=()=>Q(" .inputText.inputText",xa()),i=t("inputText",{...xa(),marginBottom:0,"&&":{marginTop:w(n.gutter.quarter)}}),s=t("inputWrapper",{display:"flex",flexDirection:"row",alignItems:"center"}),l=t("inputContainer",{flex:1,display:"flex",flexDirection:"row",alignItems:"center",...xa(),...E.padding({all:0}),"& input":{...xa({border:{style:"none"}}),...r,flex:1,background:"none"}}),c=t("invalidIcon",{color:P.colorOut(n.messageColors.error.fg),minWidth:n.icon.sizes.large});return{text:o,inputText:i,inputPaddingMixin:r,applyInputCSSRules:a,inputWrapper:s,inputContainer:l,errorIcon:c,hugRight:S({marginRight:-6},"label:inputStyles-hugRight")}}),Tn=re(()=>{const e=ee(),t=qe("metas"),n=t("font",ce.font({...e.fontSizeAndWeightVars("small","normal"),color:e.options.preset===fg.LIGHT?On("#767676"):e.elementaryColors.white,lineHeight:e.lineHeights.base})),r=t("linkFont",ce.font({...n,textDecoration:"auto",weight:e.links.linkDecorationType===ch.ALWAYS?e.fonts.weights.normal:e.fonts.weights.semiBold})),o=t("linkFontState",ce.font({color:e.mainColors.primary})),a=t("specialFonts",{deleted:ce.font({...n,color:e.messageColors.deleted.fg})}),i=t("spacing",ce.spacing({horizontal:e.gutter.quarter,vertical:2})),s=Math.round(Wn(n.size)*C3(n.lineHeight,1));return{font:n,linkFont:r,linkFontState:o,specialFonts:a,spacing:i,height:s}}),Ehe=re(()=>{const e=ee(),t=Tn(),n=ZA("tokens"),r={fontSize:t.font.size,bg:e.mixBgAndFg(.1),textShadow:`${e.mainColors.bg} 0 0 1px`,minHeight:26};return{clearIcon:{width:8,...n.subComponentStyles("clearIcon")},token:r}}),Sy=re(()=>{const e=ee(),t=Ehe(),n=Kt(),r=Tt("tokens"),o=r({".tokens__value-container":{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flexStart",minHeight:w(n.sizing.height),paddingTop:0,paddingRight:Le(12),paddingBottom:0,paddingLeft:Le(12),...E.border(e.borderType.formElements.default),"&.tokens__value-container--has-value":{...E.padding({horizontal:4,vertical:0})},".tokens__multi-value + div:not(.tokens__multi-value)":{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flexStart",flexGrow:1},".tokens__input":{flexGrow:1,display:je("inline-flex"),alignItems:"center",justifyContent:"stretch",...E.margin({vertical:0}),minHeight:w(t.token.minHeight),"@media(max-width: 600px)":{fontSize:16}},input:{width:Z(100),minWidth:w(45),minHeight:0}},".tokens__multi-value":{display:"flex",alignItems:"center",flexWrap:"nowrap",fontSize:w(t.token.fontSize),fontWeight:e.fonts.weights.bold,textShadow:t.token.textShadow,margin:Le((n.sizing.height-t.token.minHeight)/2-n.border.width),backgroundColor:P.colorOut(t.token.bg),minHeight:w(t.token.minHeight),borderRadius:Le(2),...zn()},".tokens__multi-value__label":{paddingLeft:Le(6),...E.font({...e.fontSizeAndWeightVars("small","normal")})},".tokens--is-disabled":{opacity:n.disabled.opacity},".tokens-clear":{background:0,border:0,height:w(e.icon.sizes.default),width:w(e.icon.sizes.default),padding:0,"&:hover, &:focus":{color:e.mainColors.primary.toString()}},".tokens__group":{...E.padding({vertical:8}),...E.border({width:0,top:{width:1,radius:0}}),"&:first-of-type":{border:0},".tokens__group-heading":{width:"100%",textAlign:"center",fontSize:"0.875em",color:"inherit",opacity:.75}},".suggestedTextInput-option":{...E.padding({all:8}),width:"100%","& > .suggestedTextInput-head":{display:"flex",justifyContent:"space-between"},"&:hover":{background:e.states.hover.highlight.toString()}}}),a=r("inputWrap",{"&.hasFocus .inputBlock-inputText":{...E.border({...e.borderType.formElements.default,color:e.mainColors.primary})}}),i=r("removeIcon",{"&.icon":{width:w(t.clearIcon.width),height:w(t.clearIcon.width)}}),s=r("withIndicator",{});return{root:o,removeIcon:i,inputWrap:a,withIndicator:s,containerLegacyForm:S({"& label > span":{fontWeight:700,marginBottom:0},"& label > p":{color:"#666",opacity:"unset",fontSize:"80%",marginTop:3,marginBottom:-4}},"label:tokensStyles-containerLegacyForm")}}),Ihe=re(()=>{const e=ee(),t=Kt(),n=qe("checkRadio"),r=n("border",ce.border({...t.border,radius:2})),o=n("check",{fg:e.mainColors.bg,bg:e.mainColors.bg,checked:{fg:e.elementaryColors.white,bg:e.mainColors.primary,border:e.mainColors.primary},checkedHover:{fg:e.mainColors.primary,bg:e.mainColors.primary.fade(.15)},hover:{border:{color:e.mainColors.primary},fg:e.mainColors.primary,bg:e.mainColors.primary.fade(.1),opacity:.8}}),a=n("checkBox",{check:{width:10,height:10},disk:{width:6,height:6}}),i=n("radioButton",{icon:{width:6,height:6}}),s=n("labelNote",{fontSize:".8em",opacity:.7}),l=n("sizing",{width:16}),c=n("spacing",{horizontal:6,vertical:9,left:0});return{border:r,main:o,checkBox:a,radioButton:i,labelNote:s,sizing:l,spacing:c}}),p1=re(()=>{const e=ee(),t=Ihe(),n=S({...E.padding({vertical:5,horizontal:6,left:0})},"label:checkRadioStyles-dashboardRadioButton"),r=S({lineHeight:1,paddingLeft:w(8),cursor:"pointer",...E.font({weight:e.fonts.weights.normal}),...zn()},"label:checkRadioStyles-label"),o=S({...E.font({weight:e.fonts.weights.semiBold})},"label:checkRadioStyles-labelBold"),a=S({display:"inline-block",fontSize:w(t.labelNote.fontSize),marginLeft:w(24),opacity:t.labelNote.opacity,verticalAlign:"middle"},"label:checkRadioStyles-labelNote"),i=S({...Hc("border","background","opacity"),position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:w(t.sizing.width),height:w(t.sizing.width),flexBasis:w(t.sizing.width),minWidth:w(t.sizing.width),verticalAlign:"middle",cursor:"pointer",backgroundColor:P.colorOut(t.main.bg),...E.border(t.border)},"label:checkRadioStyles-iconContainer"),s=S({...E.absolute.middleLeftOfParent(),display:"none",width:w(t.radioButton.icon.width),height:w(t.radioButton.icon.height),margin:"auto"},"label:checkRadioStyles-radioIcon"),l=S({...E.absolute.middleOfParent(),display:"none",width:w(t.checkBox.check.width),height:w(t.checkBox.check.height),color:"inherit",margin:"auto"},"label:checkRadioStyles-checkIcon"),c=S({...E.verticallyAlignInContainer(24,1)},"label:checkRadioStyles-tooltipIcon"),d=S({marginLeft:4,maxHeight:"1em"},"label:checkRadioStyles-tooltipIconContainer"),f=S({borderRadius:Z(50),aspectRatio:"1 / 1"},"label:checkRadioStyles-disk"),h=S({display:"none",width:t.checkBox.disk.width,height:t.checkBox.disk.height},"label:checkRadioStyles-diskIcon"),m={borderColor:P.colorOut(t.main.hover.border.color),backgroundColor:P.colorOut(t.main.hover.bg)},g={backgroundColor:P.colorOut(t.main.checkedHover.bg),color:P.colorOut(t.main.checkedHover.fg)},p=S({...E.absolute.srOnly(),[`&:hover:not(:disabled) + .${i}`]:m,[`&.focus-visible:not(:disabled) + .${i}`]:m,[`&:checked + .${i}`]:{borderColor:P.colorOut(t.main.checked.border),color:P.colorOut(t.main.checked.fg),backgroundColor:P.colorOut(t.main.checked.bg),"& svg":{display:"block"}},[`&:hover:checked:not(:disabled) + .${i}`]:g,[`&.focus-visible:checked:not(:disabled) + .${i}`]:g,[`&:disabled ~ .${r}`]:FN(),[`&:disabled + .${i}`]:FN()},"label:checkRadioStyles-input"),v=S({display:je("flex"),alignItems:"center",outline:0,...E.padding(t.spacing),"&&":{margin:0},"&.isHorizontal.isHorizontal.isHorizontal":E.margin({all:0,right:Le(e.spacer.size/2)}),[`&.${n} + .info`]:{...E.margin({top:w(2),bottom:w(6)})},"&.minContent":{width:"min-content"}},"label:checkRadioStyles-root"),b=S({width:"100%"},"label:checkRadioStyles-fullWidth"),y=S({display:"flex",flexWrap:"wrap",alignItems:"strech",[`.${v}`]:{flexBasis:"50%",display:"block !important",...E.margin({top:0})},[`.${v}:nth-child(n + 3)`]:{...E.margin({top:w(e.gutter.half)})},[`.${v}:nth-child(odd)`]:{...E.padding({right:w(e.gutter.half)})}},"label:checkRadioStyles-grid"),C=S({marginLeft:25,marginTop:-5,...E.font(Tn().font)},"label:checkRadioStyles-checkBoxDescription");return{root:v,label:r,labelBold:o,labelNote:a,iconContainer:i,radioIcon:s,checkIcon:l,tooltipIcon:c,tooltipIconContainer:d,tooltipPerOption:S({marginLeft:8,marginBottom:-4},"label:checkRadioStyles-tooltipPerOption"),fullWidth:b,disk:f,diskIcon:h,input:p,grid:y,dashboardRadioButton:n,checkBoxDescription:C,radioNote:S({marginLeft:30},"label:checkRadioStyles-radioNote")}}),Gh=re(()=>{const e=ee(),t=Kt(),n=S({display:"block",fontSize:"14px"},"label:InputBlockStyles-inputText"),r=S({display:"block"},"label:InputBlockStyles-inputWrap"),o=S({display:"block",width:Z(100),color:P.colorOut(t.colors.fg),marginBottom:4},"label:InputBlockStyles-labelAndDescription"),a=S({color:P.colorOut(e.messageColors.error.fg),marginRight:4},"label:InputBlockStyles-labelRequired"),i=S({display:"block",width:Z(100),margin:0,"& + &":{marginTop:w(t.spacing.margin)},"&.isLast":{marginBottom:w(t.spacing.margin)},[`&.hasError .${n}`]:{borderColor:P.colorOut(e.messageColors.error.fg),backgroundColor:P.colorOut(e.messageColors.error.bg),color:P.colorOut(e.messageColors.error.fg)},"&.isHorizontal":{display:"flex",width:Z(100),alignItems:"center",flexWrap:"wrap"},[`&.isHorizontal .${o}`]:{display:"inline-flex",width:"auto"},[`&.isHorizontal .${r}`]:{display:"inline-flex",flexGrow:1},[`&.${Sy().withIndicator} .tokens__value-container`]:{paddingRight:w(ti().sizing.height)},[`&.${Sy().withIndicator} .tokens__indicators`]:{position:"absolute",top:0,right:6,bottom:0}},"label:InputBlockStyles-root"),s=S({...E.verticallyAlignInContainer(24,e.lineHeights.base)},"label:InputBlockStyles-tooltipIcon"),l=S({display:"inline-block",marginLeft:4,maxHeight:`calc(1em * ${e.lineHeights.base})`},"label:InputBlockStyles-tooltipIconContainer"),c=S({display:"block",...E.font({...e.fontSizeAndWeightVars("small"),lineHeight:e.lineHeights.base})},"label:InputBlockStyles-errors"),d=S(wd().inputPaddingMixin,"label:InputBlockStyles-errorsPadding"),f=S({...E.padding({horizontal:0})},"label:InputBlockStyles-extendErrorPadding"),h=S({display:"block",...E.font({...e.fontSizeAndWeightVars("small","normal")}),color:P.colorOut(e.messageColors.error.fg),"& + &":{marginTop:w(6)}},"label:InputBlockStyles-error"),m=S({display:"block",...E.font({...e.fontSizeAndWeightVars("small","normal")}),opacity:.6},"label:InputBlockStyles-labelNote"),g=S({display:"block",...E.font({...e.fontSizeAndWeightVars("small","normal")}),marginTop:4,opacity:.6},"label:InputBlockStyles-noteAfterInput"),p=S({display:"block",...E.font({...e.fontSizeAndWeightVars("medium","semiBold")})},"label:InputBlockStyles-labelText"),v=S({fontWeight:e.fonts.weights.semiBold,lineHeight:e.lineHeights.base},"label:InputBlockStyles-sectionTitle"),b=S({marginTop:4,"&.noMargin":{marginTop:w(0)}},"label:InputBlockStyles-fieldsetGroup"),y=(T,B)=>S({height:"auto",...E.padding({vertical:9}),resize:T||"vertical",overflow:B||"auto"},"label:InputBlockStyles-multiLine"),C=S({marginTop:w(e.gutter.size)},"label:InputBlockStyles-related"),D=S({display:"flex",flexWrap:"wrap",[`.${p1().root}`]:{width:Z(50),alignItems:"flex-start"},[`&.${b}`]:{marginTop:w(9)}},"label:InputBlockStyles-grid"),A=S({"&&&":{marginTop:Ta(9)}},"label:InputBlockStyles-tight");return{root:i,inputText:n,tooltipIcon:s,tooltipIconContainer:l,errors:c,errorsPadding:d,error:h,labelNote:m,labelText:p,inputWrap:r,labelAndDescription:o,labelRequired:a,sectionTitle:v,fieldsetGroup:b,multiLine:y,related:C,grid:D,tight:A,noteAfterInput:g,extendErrorPadding:f}});function El(e){const t=xr("errorMessages"),n=e.id??t,{errors:r,padded:o}=e,a=Gh();if(r&&r.length>0){const i=ae(a.errors,e.className,o&&a.errorsPadding),s=r.map((l,c)=>u.jsx("span",{className:a.error,children:_D(l.message)},c));return u.jsx("span",{id:n,className:i,children:s})}else return null}class Cr extends W.PureComponent{render(){const t=this.props.tag||"div";return u.jsx(t,{...this.props,className:ae(Rc().visuallyHidden,"sr-only"),children:this.props.children})}}function oi(e){var n;const t=wfe();return u.jsxs("span",{className:ge(t.root(e.alignLeft?"left":"center"),((n=e.buttonType)==null?void 0:n.startsWith("dashboard"))&&t.reducedPadding,e.className),children:[u.jsx(vfe,{className:t.svg}),u.jsx(Cr,{children:k("Loading")})]})}const The=()=>{const e=ee();return{toastActions:S({minHeight:Gi().sizing.minHeight,...wo().middleLeft(),"& button":{margin:w("3px"),...E.font({...e.fontSizeAndWeightVars("medium")})}},"label:ThemePreviewToast-style-toastActions")}},Ahe=()=>{const e=ee();return{area:S({display:"flex",flexDirection:"column-reverse",position:"fixed",top:0,left:0,height:"100vh",width:"auto",pointerEvents:"none",...E.padding({all:e.gutter.size}),"& > *":{pointerEvents:"auto"}},"label:ToastContext-styles-area")}},yO=W.createContext({toasts:null,addToast:()=>"",updateToast:()=>{},removeToast:()=>{}});function ha(){return x.useContext(yO)}function Ohe(e){const{children:t}=e,[n,r]=x.useState(null),o=s=>{const l=XT(),c={...s,toastID:l,visibility:!0};return r(d=>d?[...d,c]:[c]),l};window.__LEGACY_ADD_TOAST__=o;const a=(s,l)=>{l&&r(c=>c&&c.map(d=>d.toastID===s?{...d,...l,toastID:d.toastID}:d))},i=s=>{r(l=>l&&l.map((c,d)=>c.toastID===s?{...l[d],visibility:!1}:c)),setTimeout(()=>{r(l=>l&&l.filter(c=>c.toastID!==s))},2e3)};return u.jsxs(yO.Provider,{value:{toasts:n,addToast:o,updateToast:a,removeToast:i},children:[u.jsx(Bhe,{}),t]})}function Bhe(){const e=Ahe(),{toasts:t}=x.useContext(yO);return u.jsx(u.Fragment,{children:t&&t.length>0&&u.jsx("section",{className:e.area,children:u.jsxs(u.Fragment,{children:[t.filter(n=>n.persistent).map(n=>u.jsx(BE,{wide:n.wide,visibility:n.visibility??!0,autoCloseDuration:n.autoDismiss?3e3:void 0,dismissible:n.dismissible,className:n.className,children:n.body},n.toastID)),t.filter(n=>!n.persistent).map(n=>u.jsx(BE,{visibility:n.visibility??!0,autoCloseDuration:n.autoDismiss?3e3:void 0,dismissible:n.dismissible,className:n.className,children:n.body},n.toastID))]})})})}function khe(){const{applyStatus:e,cancelStatus:t}=Dhe(),[n,r]=x.useState(Ge("themePreview",null)),{putCurrentTheme:o,putPreviewTheme:a,patchThemeWithRevisionID:i}=kae(),[s,l]=x.useState(!1),[c,d]=x.useState(!1),f=(n==null?void 0:n.revisionID)??!1,h=The(),{addToast:m,updateToast:g}=ha(),p=async()=>{n&&(f?(l(!0),await i({themeID:n.themeID,revisionID:n.revisionID})&&(l(!1),d(!0)),a({themeID:"",revisionID:void 0,type:Hu.APPLY})):(o(n.themeID),a({themeID:"",type:Hu.APPLY})))},v=async()=>{a({themeID:"",type:Hu.CANCEL})},b=x.useMemo(()=>t.status===X.LOADING||t.status===X.SUCCESS,[t]),y=x.useMemo(()=>e.status===X.LOADING||e.status===X.SUCCESS||s,[e,s]),C=x.useMemo(()=>k(f?"Restore":"Apply"),[f]);x.useEffect(()=>{n&&(n.name&&e.status===X.SUCCESS||t.status===X.SUCCESS||c)&&(window.location.href=f?`/appearance/style-guides/${n.themeID}/revisions`:n.redirect)});const[D,A]=x.useState(),T=x.useMemo(()=>n?u.jsxs(u.Fragment,{children:["You are previewing the ",u.jsx("b",{children:n&&n.name})," theme.",e.error&&u.jsx(El,{errors:[e.error]}),u.jsxs("div",{className:h.toastActions,children:[u.jsx(ut,{onClick:p,buttonType:ye.TEXT,children:y?u.jsx(oi,{buttonType:ye.TEXT}):u.jsx(u.Fragment,{children:C})}),u.jsx(ut,{onClick:v,buttonType:ye.TEXT_PRIMARY,children:b?u.jsx(oi,{buttonType:ye.TEXT_PRIMARY}):k("Cancel")})]})]}):null,[C,e.error,y,b,n]);return x.useEffect(()=>{if(T&&!D){const B=m({persistent:!0,body:T});A(B)}T&&D&&g(D,{body:T})},[T]),null}const Phe=$h("@@roles"),Ax=class Ax extends br{constructor(){super(...arguments);q(this,"getAllRoles",()=>{const n=Gt(Ax.getAllACs,async()=>(await this.api.get("/roles",{params:{limit:500}})).data)({});return this.dispatch(n)})}};q(Ax,"getAllACs",Phe.async("GET_ALL"));let Mf=Ax;function yht(){return Cd(Mf)}const Rhe={rolesByID:{status:X.PENDING}},jhe=fa(Vi(Rhe).case(Mf.getAllACs.started,(e,t)=>(e.rolesByID={status:X.LOADING},e)).case(Mf.getAllACs.done,(e,t)=>{const n={};return t.result.forEach(r=>{n[r.roleID]=r}),e.rolesByID={status:X.SUCCESS,data:n},e}).case(Mf.getAllACs.failed,(e,t)=>(e.rolesByID.status=X.ERROR,e.rolesByID.error=t.error,e))),Nhe="previewContainer";Wh("themePreviewToaster",She);Wh("roles",jhe);an("toaster",BE);Wc(()=>{o1(u.jsx(khe,{}),Nhe)});const Yd={},vb={};let u8;const Lhe=Ge("mentionMinChars",2),m2=Ge("mentionSuggestionCount",5),p2=30,xO=Ge("emoji",{}),$he=xO.emoji||{},Mhe=xO.format||"",g2=xO.assetPath||"",_he=Object.entries($he).map(([e,t])=>{const n=t.split(".");return{name:e,filename:t,basename:n[0],ext:"."+n[1]}}),Fhe=Mhe.replace(/{(.+?)}/g,"$${$1}").replace("%1$s","${src}").replace("%2$s","${name}").replace("${src}",g2+"/${filename}").replace("${dir}",g2),Whe='<li data-value=":${name}:" class="at-suggest-emoji"><span class="emoji-wrap">'+Fhe+'</span> <span class="emoji-name">${name}</span></li>';function zhe(e,t,n){const r=aee(t,n);return r?(u8=r.rawMatch,r.match):null}function Hhe(e,t,n){e=e.replace(/[-[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n&&(e="(?:^|\\s)"+e);const o=new RegExp(e+"([A-Za-z0-9_+-]*|[^\\x00-\\xff]*)(?:\\n)?$","gi").exec(t);return o?o[2]||o[1]:null}function lS(e,t){const n=t?t.contentWindow:"",r=(s,l)=>{if(s=s||"",s.length>=Lhe){let c=!0,d="";for(let m=0,g=s.length;m<g;m++)if(d=s.slice(0,-m),Yd[d]&&Yd[d].length<p2){vb[s]=s,c=!1;break}let f=!1;for(const m in vb)if(vb.hasOwnProperty(m)&&s.match(new RegExp("^"+m+"+"))!==null){f=!0;break}const h=m=>{Array.isArray(m)&&m.forEach(g=>{typeof g=="object"&&typeof g.name=="string"&&(g.name=g.name.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))}),l(m),m.length?Yd[s]=m:vb[s]=s};c&&!f&&!Yd[s]?$.getJSON(oo("/user/tagsearch"),{q:s,limit:p2},h):l(c?Yd[s]:Yd[d])}};function o(s,l){let c=l.data("value")||"";c=c.slice(1,c.length);const d=/[^\w-]/.test(c),f=/(["'])(.+)(["'])/g.test(c);let h=c;d&&!f&&(h='"'+c+'"');const m=u8||"";return/.?@(["'])/.test(m)||(h=this.at+h),h}function a(s,l){if(!l)return s;const c=new RegExp(">\\s*(\\w*)("+l.replace("+","\\+")+")(\\w*)\\s*(\\s+.+)?<","ig");return s.replace(c,(d,f,h,m,g)=>(typeof m>"u"&&(m=""),typeof g>"u"&&(g=""),"> "+f+"<strong>"+h+"</strong>"+m+g+" <"))}$(e).atwho({at:"@",tpl:'<li data-value="@${name}" data-id="${id}">${name}</li>',limit:m2,callbacks:{remote_filter:r,before_insert:o,highlighter:a,matcher:zhe},cWindow:n}).atwho({at:":",tpl:Whe,insert_tpl:"${atwho-data-value}",callbacks:{matcher:Hhe,tplEval:(s,l)=>wa(l)},limit:m2,data:_he,cWindow:n});function i(s,l,c){const d=c.view.$el,f=c.$inputor,h=parseInt(f.css("line-height"),10),m=$(t).offset();let g=(m?m.left:0)+l.left,p=m?m.top:0,v=0;const b=c.at,{text:y}=c.query,C=$(".BodyBox,.js-bodybox"),D=C.css("font-size")+" "+C.css("font-family"),A=(b+y).width(D)-2;b==="@"&&(g-=A),b===":"&&(g-=2),$(d).each((_,U)=>{const V=$(U).outerHeight(),z=$(U).height();V&&z&&V>0&&(v+=z+h)});const T=$(window).height()||0,B=$(window).scrollTop()||0,j=p+l.top-($(window).scrollTop()||0);T-(j-B)>=v?p=p+l.top+v-B:p=p+l.top-B;const N={left:g,top:p};$(d).offset(N)}n&&$(n).on("reposition.atwho",i)}window.escapeHTML=w3;window.$&&window.$.fn.atwho&&(Wc(()=>lS(".BodyBox,.js-bodybox")),jh(()=>lS(".BodyBox,.js-bodybox")),window.gdn.atCompleteInit=lS);const cS="highlighted";function Uhe(){v2(),jh(()=>void v2())}async function v2(e=document.body){const t=e.querySelectorAll(`.code.codeBlock:not([data-${cS}])`);if(t.length===0)return;const n=await d8();t.forEach(r=>{r.dataset[cS]||(r.setAttribute(`data-${cS}`,!0),n.highlightBlock(r))})}let bb=null;function d8(){return bb!==null||(bb=(async()=>{const t=await mt(()=>import("../chunks/library/highlightJs.CKzSZx5L.min.js"),__vite__mapDeps([0,1]),import.meta.url);return ee().mainColors.bg.lightness()>=.5?await mt(()=>Promise.resolve({}),__vite__mapDeps([2]),import.meta.url):await mt(()=>Promise.resolve({}),__vite__mapDeps([3]),import.meta.url),t.default,t.default})()),bb}function xht(){const e=x.useRef(null);return x.useEffect(()=>{d8().then(t=>e.current=t)},[]),e.current}function Vhe(){Wc(()=>document.body),jh(()=>document.body)}function Ghe(){iv("click",".js-toggleSpoiler",Yhe)}function Yhe(e,t){const r=t.closest(".spoiler");r&&r.classList.toggle("isShowingSpoiler")}async function f8(e=document.body){const t=e.querySelectorAll(".js-embed[data-embedjson]"),n=[];for(const r of Array.from(t))try{const o=JSON.parse(r.getAttribute("data-embedjson")||"{}"),a=await mt(()=>import("../chunks/embedService.loadable.CY6S3edF.min.js").then(i=>i.p),__vite__mapDeps([4,1]),import.meta.url).then(i=>i.mountEmbed);n.push(a(r,o,!1))}catch(o){return mn("failed to mountEmbed",{error:o,mountPoint:r}),Promise.resolve()}await Promise.all(n)}const Khe=re(e=>{const t=ee(),n=Tt("collapsableContent"),r=n("paddingAdjustment",{}),o=(e==null?void 0:e.bgColor)??t.mainColors.bg,a=n({background:P.colorOut(o),position:"relative"}),i=n("heightContainer",{position:"relative",display:"block",overflow:"hidden"}),s=n("collapser",{"&&":{...ei(),borderRadius:0,width:Z(100),height:w(t.icon.sizes.default),padding:0,margin:0}}),l=n("footer",{position:"relative",height:w(t.icon.sizes.default)}),c=n("collapserIcon",{...Hc("transform"),margin:"auto",height:w(t.icon.sizes.default),display:"block"}),d=n("gradient",{...ki.topLeft(),width:Z(100),height:75,background:Xf("to bottom",P.colorOut(o.fade(0)),P.colorOut(o)),transform:"translateY(-100%)"});return{heightContainer:i,root:a,collapser:s,collapserIcon:c,footer:l,gradient:d,paddingAdjustment:r}});function CO(e){const{isExpandedDefault:t=!1,domNodesToAttach:n,onToggle:r}=e,[o,a]=x.useState(t),i=e.maxHeight?e.maxHeight:100,s=e.overshoot?e.overshoot:50,l=i+s,c=x.useRef(null),d=XA(n),f=Zn(d);x.useLayoutEffect(()=>{setTimeout(()=>{var R,N;(N=(R=c.current)==null?void 0:R.scrollTo)==null||N.call(R,{top:0})},0)});const h=()=>{if(o){if(d.current){const R=window.pageYOffset||document.documentElement.scrollTop,N=d.current.getBoundingClientRect(),_=N.height<i?0:N.height-i,U=Math.max(R-_,0);window.scrollTo({top:U,behavior:"smooth"})}a(!1)}else a(!0);r==null||r(o)},m=f.height>0,g=f.height<l,p=m&&g?f.height:i,v=o?f.height:p,b=p>f.height?f.height:p,{height:y}=$f({height:v>0?v:"auto"}),C=$f({opacity:o?0:1}),D=Khe({bgColor:e.bgColor}),A=f.height>l,T=k(o?"Collapse":"Expand"),B=x.useMemo(()=>ro("collapsableContent_toggle"),[]),j=x.useMemo(()=>ro("collapsableContent_content"),[]);return u.jsxs("div",{className:ae(D.root,e.allowsCssOverrides&&"collapsableContent"),children:[u.jsx(Lo.div,{id:j,ref:c,style:{minHeight:b,height:y},className:ae(D.heightContainer),"aria-expanded":o,children:u.jsx("div",{ref:d,className:e.className,children:e.children})}),A&&u.jsxs("div",{className:D.footer,children:[u.jsx(Lo.div,{style:C,className:ae(D.gradient,e.gradientClasses,e.allowsCssOverrides&&"collapsableContent-gradient")}),u.jsx(ut,{id:B,title:T,className:D.collapser,buttonType:ye.CUSTOM,onClick:h,controls:j,children:u.jsx(ffe,{title:T,className:D.collapserIcon,rotate:o?180:void 0})})]})]})}async function qhe(){const e=document.body.querySelectorAll(".js-collapsable");return await Promise.all(Array.from(e).map(t=>new Promise(n=>{const r=Array.from(t.childNodes),o=t.getAttribute("data-className")||void 0;aa.render(u.jsx(CO,{className:o,domNodesToAttach:r,allowsCssOverrides:!0}),t,()=>n()),t.classList.remove("js-collapsable")})))}const Xhe={setScrollOffset:()=>{hs("Set scroll offset called, but a proper provider was not configured.")},resetScrollOffset:()=>{hs("Reset scroll offset called, but a proper provider was not configured.")},scrollOffset:null,rawScrollOffset:null,topOffset:0,setTopOffset:e=>{hs("Set scroll offset called, but a proper provider was not configured.")},getCalcedHashOffset:()=>0,temporarilyDisabledWatching:()=>{hs("Attempted to disable watching but a proper provider was not configured.")},hashOffsetRef:{current:null},offsetClass:""},h8=W.createContext({...Xhe});window.__VANILLA_GLOBAL_SCROLL_OFFSET__=0;class Qhe extends W.Component{constructor(){super(...arguments);q(this,"state",{scrollOffset:0,topOffset:0,isScrolledOff:!1,hashOffset:0,isWatchingEnabled:!0});q(this,"hashOffsetRef",W.createRef());q(this,"temporarilyDisabledWatching",n=>{this.setState({isWatchingEnabled:!1}),setTimeout(()=>{this.setState({isWatchingEnabled:!0})},n)});q(this,"previousScrollValue",0);q(this,"scrollHandler",()=>{this.shouldWatchScroll&&requestAnimationFrame(()=>{const r=window.scrollY;if(r<400){this.setState({isScrolledOff:!1});return}const o=r>this.previousScrollValue+10,a=r<this.previousScrollValue-10;this.previousScrollValue=window.scrollY,o?this.setState({isScrolledOff:!0}):a&&this.setState({isScrolledOff:!1})})});q(this,"resetScrollOffset",()=>{this.setState({scrollOffset:0,isScrolledOff:!1})});q(this,"setScrollOffset",n=>{window.__VANILLA_GLOBAL_SCROLL_OFFSET__=n,this.setState({scrollOffset:n})});q(this,"setTopOffset",n=>{this.setState({topOffset:n})});q(this,"getCalcedHashOffset",()=>{const n=this.hashOffsetRef.current;return n?n.getBoundingClientRect().bottom:0})}render(){const{scrollWatchingEnabled:n}=this.props,{scrollOffset:r,isScrolledOff:o}=this.state,a=S({transition:"transform 0.3s ease",willChange:"transform",transform:o?`translateY(-${r}px)`:"none",label:"offsetClass"},"label:ScrollOffsetContext-offsetClass");return u.jsx(h8.Provider,{value:{setScrollOffset:this.setScrollOffset,resetScrollOffset:this.resetScrollOffset,scrollOffset:o&&n?r:0,rawScrollOffset:r,topOffset:this.state.topOffset,setTopOffset:this.setTopOffset,offsetClass:n?a:"",getCalcedHashOffset:this.getCalcedHashOffset,hashOffsetRef:this.hashOffsetRef,temporarilyDisabledWatching:this.temporarilyDisabledWatching},children:this.props.children})}componentDidMount(){window.addEventListener("scroll",this.scrollHandler)}componentWillUnmount(){window.removeEventListener("scroll",this.scrollHandler)}get shouldWatchScroll(){return this.props.scrollWatchingEnabled&&this.state.isWatchingEnabled}}function Sd(){const e=x.useContext(h8);return x.useDebugValue(e),e}function Zhe(e){const t=Sd();return u.jsx("div",{className:e.className,ref:t.hashOffsetRef,children:e.children})}let wO=0;function m8(e,t){const{temporarilyDisabledWatching:n,getCalcedHashOffset:r}=Sd(),o=r();wO=o,x.useEffect(()=>{t||b8().then(()=>{eme(o,()=>n(500))})},[o,n,t,e])}function Jhe(e,t,n){const r=t??wO;e&&(n&&n(),setTimeout(()=>{const o=window.pageYOffset+e.getBoundingClientRect().top-r;window.scrollTo({top:o,behavior:"smooth"})},10))}function uS(e,t){const n=e??wO,r=window.location.hash.replace("#",""),o=document.querySelector(`[data-id="${r}"]`)||document.getElementById(r);Jhe(o,n,t)}function eme(e=0,t){window.onload=()=>{uS(e,t),setTimeout(()=>{uS(e,t)},500)};const n=r=>{r.preventDefault(),uS(e,t)};return window.addEventListener("hashchange",n),()=>{window.removeEventListener("hashchange",n)}}function bl(e,t,n){const r=ee(),o=n||r.fonts.alignment.headings.verticalOffset,a=t||r.fonts.alignment.headings.capitalLetterRatio;let i;(function(f){f.BEFORE="before",f.AFTER="after"})(i||(i={}));const s=f=>{const h=f==="before",m=h?o:1-o,g=1-a,p=g*m,v=eo(g<1?ca(p):p);return v===0?null:{content:Fc(""),display:"block",position:"relative",height:0,width:0,...E.margin({top:h?v:void 0,bottom:h?void 0:v})}},l=e||{},c=s("before");c&&(l["::before"]=c);const d=s("after");return d&&(l["::after"]=d),l}function p8(){const e=Dl();return{".code":{position:"relative",fontSize:e.code.fontSize,fontFamily:'Menlo, Monaco, Consolas, "Courier New", monospace',maxWidth:Z(100),overflowX:"auto",margin:0,color:P.colorOut(e.blocks.fg),backgroundColor:P.colorOut(e.blocks.bg),border:"none"},"&& .codeInline":{whiteSpace:"normal",...E.padding(e.codeInline.padding),color:P.colorOut(e.codeInline.fg),backgroundColor:P.colorOut(e.codeInline.bg),borderRadius:e.codeInline.borderRadius,display:"inline",position:"static"},"&& .codeBlock":{display:"block",wordWrap:"normal",lineHeight:e.codeBlock.lineHeight,borderRadius:e.codeBlock.borderRadius,flexShrink:0,whiteSpace:"pre",color:P.colorOut(e.codeBlock.fg),backgroundColor:P.colorOut(e.codeBlock.bg),...E.padding(e.codeBlock.padding),"&&::selection":{background:"#c1def1"}},"&& .codeBlockWrapped":{whiteSpace:"normal"},"& code":{fontFamily:'Menlo, Monaco, Consolas, "Courier New", monospace'}}}function g8(){var y;const e=Dl(),t=ee(),n=(C,D)=>({marginTop:w(e.spacing.base),fontSize:D,...E.font({size:D,color:P.colorOut(t.mainColors.fg),weight:t.fonts.weights.bold}),...bl(),lineHeight:t.lineHeights.condensed}),r={"& h1:not(.heading)":n("h1",e.fonts.headings.h2),"& h2:not(.heading)":n("h2",e.fonts.headings.h2),"& h3:not(.heading)":n("h3",e.fonts.headings.h3),"& h4:not(.heading)":n("h4",e.fonts.headings.h4),"& h5:not(.heading)":n("h5",e.fonts.headings.h5),"& h6:not(.heading)":n("h6",e.fonts.headings.h6)},o={"& ol, & ul":{listStylePosition:"inside",margin:"1em 0 1em 2em",padding:0},"& ul":{listStyle:"disc",display:"flex",flexDirection:"column","& > li":{listStyle:"disc !important",position:"relative","&::marker":{fontSize:".85rem"}},"& ul > li":{listStyle:"circle !important"},"& ul ul > li":{listStyle:"square !important"},"& ul ul ul > li":{listStyle:"disc !important"},"& ul ul ul ul > li":{listStyle:"circle !important"},"& ul ul ul ul ul > li":{listStyle:"square !important"},"& ul ul ul ul ul ul > li":{listStyle:"disc !important"},"& ol, & ul":{margin:e.list.nestedList.margin}},"& ol":{"& > li":{listStyle:"decimal"},"& ol > li":{listStyle:"lower-alpha"},"& ol ol > li":{listStyle:"lower-roman"},"& ol ol ol > li":{listStyle:"decimal"},"& ol ol ol ol > li":{listStyle:"lower-alpha"},"& ol ol ol ol ol > li":{listStyle:"lower-roman"},"& ol ol ol ol ol ol > li":{listStyle:"decimal"},"& ol, & ul":{margin:e.list.nestedList.margin}},"& li":{margin:"5px 0","&, & *:first-child":{marginTop:0},"&, & *:last-child":{marginBottom:0}},"& .listItemChild::after":{content:'""',display:"table",clear:"both"}},a={"& > p":{marginTop:0,marginBottom:0,minHeight:"1rem","&:not(:first-child)":{marginTop:e.blocks.margin*.5},"&:first-child":{...bl()}},"&& > *:not(:last-child):not(.embedResponsive):not(.emoji)":{marginBottom:e.blocks.margin},"&& > *:first-child":{marginTop:0,"&::before":{marginTop:0}}},i=E.clickable.itemState(),s={"& a":{fontSize:"inherit",color:P.colorOut(i.color),textDecoration:t.links.linkDecorationType===ch.ALWAYS?"underline":void 0},"& a:hover":{color:P.colorOut(t.links.colors.hover),textDecoration:"underline"},"& a:focus":{color:P.colorOut(t.links.colors.focus),textDecoration:"underline"},"& a.focus-visible":{color:P.colorOut(t.links.colors.keyboardFocus),textDecoration:"underline"},"& a:active":{color:P.colorOut(t.links.colors.active),textDecoration:"underline"}},l={".embedExternal-content":{borderRadius:e.embeds.borderRadius,"&::after":{borderRadius:e.embeds.borderRadius}},".embedText-content":{background:P.colorOut(e.embeds.bg),color:P.colorOut(e.embeds.fg),overflow:"hidden",...ld(t.body.backgroundImage.color,E.border({color:e.embeds.fg.fade(.3)}),Un().embed())},".embedText-title,\n          .embedLink-source,\n          .embedLink-excerpt":{color:P.colorOut(e.embeds.fg??e.blocks.fg)},".metaStyle":{opacity:.8},".embedLoader-box":{background:P.colorOut(e.embeds.bg),...E.border({color:e.embeds.fg.fade(.3)})}},c={"&& .embedExternal":{marginBottom:e.blocks.margin},"&& .float-left,\n          && .float-right":{marginBottom:"0 !important"},"&& .float-left .embedExternal-content,\n          && .float-right .embedExternal-content":{marginBottom:e.blocks.margin},"&& .inlineEmbed .embedExternal-content + div":{display:"inline-flex"}},d=PW(),f={".blockquote":{color:P.colorOut(d.colors.fg)},".blockquote-content":{...E.margin({top:8}),"&:first-of-type":{...E.margin({top:0})}}},h={".emoji":{...E.margin({top:-2,bottom:-3}),width:t.fonts.size.large,height:"auto"}},m={".tableWrapper":{overflowX:"auto",width:Z(100)},"& table":{width:Z(100),fontSize:"clamp(12px, 1dvw, 94%)"},"& .tableWrapper th":{whiteSpace:"nowrap"},"& .tableWrapper td, & .tableWrapper th":{overflowWrap:"break-word",textOverflow:"ellipsis",wordBreak:"keep-all",minWidth:80,...E.padding({vertical:6,horizontal:12}),border:"none",textAlign:"start",...e.tables.horizontalBorders.enabled?{borderTop:wt(e.tables.horizontalBorders.borders),borderBottom:wt(e.tables.horizontalBorders.borders)}:{},...e.tables.verticalBorders.enabled?{borderLeft:wt(e.tables.verticalBorders.borders),borderRight:wt(e.tables.verticalBorders.borders)}:{},"& > *:not(ul):not(ol)":{margin:0},"& p, & code":{textOverflow:"ellipsis",wordBreak:"keep-all"}},"& .tableWrapper tr:nth-child(even)":e.tables.striped?{background:P.colorOut(e.tables.stripeColor)}:{},"& .tableWrapper th, & .tableWrapper thead td":{fontWeight:t.fonts.weights.bold},".mobileTableHead":{display:"none"}},g=()=>({borderRadius:e.tables.outerBorderRadius,borderTop:e.tables.horizontalBorders.enabled?wt(e.tables.horizontalBorders.borders):void 0,borderBottom:e.tables.horizontalBorders.enabled?wt(e.tables.horizontalBorders.borders):void 0,borderLeft:e.tables.verticalBorders.enabled?wt(e.tables.verticalBorders.borders):void 0,borderRight:e.tables.verticalBorders.enabled?wt(e.tables.verticalBorders.borders):void 0}),p=Yt({minWidth:e.tables.mobileBreakpoint+1},{".tableWrapper":g(),"& .tableWrapper thead tr:first-child > *, & .tableWrapper tbody:first-child tr:first-child > *":{borderTop:"none"},"& .tableWrapper :not(thead) tr:last-child > *":{borderBottom:"none"},"& .tableWrapper tr > *:last-child":{borderRight:"none"},"& .tableWrapper tr > *:first-child, & .tableWrapper tr > .mobileTableHead:first-child + *":{borderLeft:"none"}}),v=Yt({maxWidth:e.tables.mobileBreakpoint},{".tableWrapper .tableHead":{...E.absolute.srOnly()},".tableWrapper tr":{display:"block",flexWrap:"wrap",width:Z(100),background:"none !important",marginBottom:e.blocks.margin,...g()},".tableWrapper tr .mobileStripe":e.tables.striped?{borderTop:"none",borderBottom:"none",background:P.colorOut(e.tables.stripeColor)}:{borderTop:"none",borderBottom:"none"},".tableWrapper tr > *:first-child":{borderTop:"none"},".tableWrapper tr > *:last-child":{borderBottom:"none"},".tableWrapper .mobileTableHead":{borderBottom:"none"},".tableWrapper .mobileTableHead + *":{marginTop:-6,borderTop:"none"},".tableWrapper tr > *":{width:Z(100),wordWrap:"break-word",display:"block",borderLeft:"none",borderRight:"none"},".tableWrapper tr > :not(.mobileTableHead)":{borderRight:"none"}});return{position:"relative",width:Z(100),wordBreak:"break-word",...E.font({size:e.fonts.size,lineHeight:t.lineHeights.base,color:P.colorOut(t.mainColors.fg)}),marginTop:(y=bl()["::before"])==null?void 0:y.marginTop,"& iframe":{width:Z(100)},...m,...r,...o,...a,...p8(),...l,...c,...f,...h,...s,...p,...v,display:"block !important","&.Hidden":{display:"none !important"},"& .moderationImageAndButtonContainer":{position:"relative",".toggleButton":{position:"absolute",display:"block",zIndex:100,top:"8px",left:"8px",border:"1px solid rgb(214, 215, 217)",borderRadius:"6px",fontWeight:600,padding:"2px 16px",color:"rgb(85, 90, 98)",background:"rgb(255, 255, 255)","&:hover":{color:"rgb(255, 255, 255)",borderColor:"rgb(3, 125, 188)",background:"rgb(3, 125, 188)"}},".moderationContainer.blur":{position:"relative","&::before":{position:"absolute",content:"''",width:"100%",height:"100%",zIndex:50,background:"rgba(119, 119, 119, 0.45)",backdropFilter:"blur(25px)",top:0,left:0}}}}}const Dy=re(()=>{const e=Dl(),t=ee(),n=()=>({borderRadius:e.tables.outerBorderRadius,borderTop:e.tables.horizontalBorders.enabled?wt(e.tables.horizontalBorders.borders):void 0,borderBottom:e.tables.horizontalBorders.enabled?wt(e.tables.horizontalBorders.borders):void 0,borderLeft:e.tables.verticalBorders.enabled?wt(e.tables.verticalBorders.borders):void 0,borderRight:e.tables.verticalBorders.enabled?wt(e.tables.verticalBorders.borders):void 0}),r=Yt({minWidth:e.tables.mobileBreakpoint+1},{...n(),"& thead tr:first-child > *, & tbody:first-child tr:first-child > *":{borderTop:"none"},"& :not(thead) tr:last-child > *":{borderBottom:"none"},"& tr > *:last-child":{borderRight:"none"},"& tr > *:first-child":{borderLeft:"none"}}),o=Yt({maxWidth:e.tables.mobileBreakpoint},{"& .tableHead":{...E.absolute.srOnly()},"& tr":{display:"block",flexWrap:"wrap",width:Z(100),background:"none !important",marginBottom:e.blocks.margin,...n()},"& tr .mobileStripe":e.tables.striped?{borderTop:"none",borderBottom:"none",background:P.colorOut(e.tables.stripeColor)}:{borderTop:"none",borderBottom:"none"},"& tr > *:first-child":{borderTop:"none"},"& tr > *:last-child":{borderBottom:"none"},"& .mobileTableHead":{borderBottom:"none"},"& .mobileTableHead + *":{marginTop:-6,borderTop:"none"},"& tr > *":{width:Z(100),wordWrap:"break-word",display:"block",borderLeft:"none",borderRight:"none"},"& tr > :not(.mobileTableHead)":{borderRight:"none"}}),a=S({overflowX:"auto",width:Z(100),"& > table":{width:Z(100),"& th":{whiteSpace:"pre"},"& th, & td":{overflowWrap:"break-word",minWidth:80,...E.padding({vertical:6,horizontal:12}),border:"none",textAlign:"start",...e.tables.horizontalBorders.enabled?{borderTop:wt(e.tables.horizontalBorders.borders),borderBottom:wt(e.tables.horizontalBorders.borders)}:{},...e.tables.verticalBorders.enabled?{borderLeft:wt(e.tables.verticalBorders.borders),borderRight:wt(e.tables.verticalBorders.borders)}:{},"& span, & p":{textOverflow:"ellipsis",wordBreak:"keep-all"}},"& tr:nth-child(even)":e.tables.striped?{background:P.colorOut(e.tables.stripeColor)}:{},"& th, & thead td":{fontWeight:t.fonts.weights.bold},...r,...o}},"label:UserContent-styles-tableWrapper");return{root:S(g8(),"label:UserContent-styles-root"),tableWrapper:a}});function kE(e){let t=e.content;t=tme(t);const n=nme(t);e.moderateEmbeds&&(t=n),m8(t,e.ignoreHashScrolling);const r=Dy();return x.useEffect(()=>{f8()},[t]),u.jsx("div",{className:ge("userContent",r.root,e.className),dangerouslySetInnerHTML:{__html:t}})}function tme(e){return x.useMemo(()=>{const t=document.createElement("div");t.innerHTML=e;try{t.querySelectorAll("table").forEach(v8)}catch(n){return console.error("Failed to responsify table",n),t.innerHTML}return t.innerHTML},[e])}function nme(e){return x.useMemo(()=>{const t=document.createElement("div");return t.innerHTML=e,Array.from(t.getElementsByClassName("embedImage-link")).concat(Array.from(t.getElementsByClassName("js-embed"))).forEach(r=>{var i,s;const o=document.createElement("div");o.classList.add("moderationImageAndButtonContainer");const a=document.createElement("div");a.classList.add("moderationContainer"),a.classList.add("blur"),(i=r.parentNode)==null||i.insertBefore(a,r),a.appendChild(r),(s=a.parentNode)==null||s.insertBefore(o,a),o.appendChild(a)}),t.innerHTML},[e])}function v8(e){let t=e.querySelector("thead");if(!t){const o=e.querySelector("tr");let a=!0;o&&Array.from(o==null?void 0:o.children).forEach(i=>{i.tagName!=="TH"&&(a=!1)}),a&&(t=o)}let n=null;if(t&&(t.classList.add("tableHead"),n=Array.from(t.querySelectorAll("th")).map(o=>o.textContent??null).filter(Do),t.querySelectorAll("th").forEach(o=>o.setAttribute("scope","col"))),e.querySelectorAll("tbody tr").forEach(o=>{const a=o.querySelector("th");a&&a.setAttribute("scope","row"),o.querySelectorAll("td, th").forEach((s,l)=>{const c=document.createElement("th");if(n){const d=n[l]??"";c.textContent=d,c.classList.add("mobileTableHead"),c.setAttribute("aria-hidden","true"),s.insertAdjacentElement("beforebegin",c)}l%2===1&&(s.classList.add("mobileStripe"),c.classList.add("mobileStripe"))})}),e.parentNode){const o=document.createElement("div");o.classList.add("tableWrapper"),e.parentNode.insertBefore(o,e),o.appendChild(e)}}function rme(){document.querySelectorAll(".tableWrapper table:not(table[data-responsive])").forEach(t=>{t.setAttribute("data-responsive",""),v8(t)})}async function b8(){await qhe(),Vhe(),Ghe(),Uhe()}function ome(){f8(),rme()}let ame=[];function ime(e){if(!e.startsWith(Ni("")))return!1;const t=Lee(e);return!!nQ(t,{path:ame,exact:!0})}const b2=e=>{if(!e)return"";const t=typeof e=="string"?e:G4(e);return oo(t,!0)},sme={linkContexts:[oo("/")],pushSmartLocation:e=>{const t=b2(e);window.location.href=t},isDynamicNavigation:()=>!1,makeHref:b2,areLinksDisabled:!1},y8=W.createContext(sme),lme=e=>{const t=Oh(),{urlFormatter:n,linkContexts:r,useLayoutRouting:o}=e,a=x.useCallback(l=>{const c=n||oo,d=typeof l=="string"?l:G4(l);return c(d,!0)},[n]),i=x.useCallback(l=>{const c=new URL(l,window.location.href);if(c.pathname===window.location.pathname&&c.search===window.location.search)return!1;if(o)return ime(l);let f=!1;for(const h of r)if(l.startsWith(h)){f=!0;break}return f},[r,o]),s=x.useCallback(l=>{const c=a(l);i(c)?t.push(x8(l,c)):window.location.href=c},[a,i,t]);return u.jsx(y8.Provider,{value:{linkContexts:e.linkContexts,pushSmartLocation:s,isDynamicNavigation:i,makeHref:a,areLinksDisabled:!1},children:e.children})};function Yh(){return x.useContext(y8)}function x8(e,t){const n=new URL(t,window.location.href),{search:r,pathname:o,hash:a}=n,i=o.replace(oo("/"),"/");return typeof e=="string"?{pathname:i,hash:a,search:r}:{...e,pathname:i,hash:a,search:r}}const C8=W.createContext({});function cme(){return x.useContext(C8)}function ume(e){const{children:t,options:n}=e;return u.jsx(C8.Provider,{value:{options:n},children:t})}const w8=W.createContext({isRealBox:!1});function dme(){return x.useContext(w8)}function S8(e){const t=dme(),[n,r]=x.useState(t.depth!=null?t.depth+1:2);return x.useLayoutEffect(()=>{var a;if(t.boxRef)return;((a=e==null?void 0:e.current)==null?void 0:a.closest(".Panel"))&&r(4)},[e,t.boxRef,r]),n}function mg(e){const{children:t,depth:n,boxRef:r}=e,o=S8(r);return u.jsx(w8.Provider,{value:{boxRef:r,depth:n??o,isRealBox:!0},children:t})}const D8=re(()=>{const e=ee(),t=Ht().mediaQueries(),n={color:P.colorOut(e.mainColors.fgHeading)},r=S({...n,width:"100%",...E.font({...e.fontSizeAndWeightVars("title"),lineHeight:e.lineHeights.condensed}),textWrap:"balance",transform:`translateX(${eo(e.fonts.alignment.headings.horizontalOffset)})`,margin:0,...bl()},t.oneColumnDown({fontSize:w(e.fonts.mobile.size.title)}),"label:typographyStyles-pageTitle"),o=S({...n,width:"100%",...E.font({...e.fontSizeAndWeightVars("largeTitle")})},t.oneColumnDown({fontSize:w(e.fonts.mobile.size.largeTitle)}),"label:typographyStyles-largeTitle"),a=S({...n,width:"100%",...E.font({...e.fontSizeAndWeightVars("title")})},"label:typographyStyles-subTitle"),i=S({...n,width:"100%",...E.font({...e.fontSizeAndWeightVars("subTitle")})},"label:typographyStyles-componentSubTitle");return{largeTitle:o,pageTitle:r,subTitle:a,componentSubTitle:i}}),Dn=W.forwardRef(function(t,n){const{children:r,title:o,depth:a,renderAsDepth:i,className:s,isLarge:l,custom:c,...d}=t,f=a??2,h=i??f,m=h===1,g=h===2,p=h>=3,v=`h${f}`,b=D8();return u.jsx(v,{...d,ref:n,className:ge({[b.pageTitle]:m&&!c,[b.largeTitle]:l&&!c,[b.subTitle]:g&&!c,[b.componentSubTitle]:p&&!c},!c&&"heading",!c&&`heading-${h}`,s),children:r??o})});var fme="Expected a function";function g1(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(fme);return Ho(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})}var sr;(function(e){e.XS="xs",e.MOBILE="mobile",e.TABLET="tablet",e.NO_BLEED="no_bleed",e.DESKTOP="desktop"})(sr||(sr={}));const SO=W.createContext("desktop");function Ki(){return x.useContext(SO)}function E8(e){const t=x.useCallback(()=>{const o=Ht().breakPoints,a=document.body.clientWidth;return a<=o.xs?"xs":a<=o.oneColumn?"mobile":a<=o.twoColumn?"tablet":a<=o.noBleed?"no_bleed":"desktop"},[]),[n,r]=x.useState(t());return x.useEffect(()=>{const o=g1(()=>{r(t)},100);return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[t,r]),u.jsx(SO.Provider,{value:n,children:e.children})}function Cht(e){const t=e.displayName||e.name||"Component",n=r=>u.jsx(SO.Consumer,{children:o=>u.jsx(e,{device:o,...r})});return n.displayName=`withDevice(${t})`,n}const hme=re(()=>{const e=ee(),t=qe("pageHeading"),n=t("font",{lineHeight:e.lineHeights.condensed}),r=t("cta",{margin:"1em"}),o=t("dropDown",{width:150});return{font:n,cta:r,dropDown:o}}),mme=re(()=>{const e=ee(),t=hme(),n=S({display:"flex",width:Z(100),lineHeight:t.font.lineHeight,alignItems:"start"},"label:pageHeadingStyles-root"),r=S({display:"flex",flexWrap:"nowrap",position:"relative",flexGrow:1},"label:pageHeadingStyles-main"),o=S({display:"flex",position:"relative",alignItems:"center"},"label:pageHeadingStyles-titleBar"),a=S({position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flex:1},"label:pageHeadingStyles-titleWrap"),i=S({display:"flex",alignItems:"center","& > *":{marginLeft:e.gutter.size}},"label:pageHeadingStyles-actions");return{root:n,main:r,titleBar:o,titleWrap:a,actions:i}}),Ey=Ni("/"),I8=W.createContext({historyDepth:1,canGoBack:!1,backFallbackUrl:Ey,setBackFallbackUrl:()=>{},navigateBack:()=>window.location.href=Ey});function pme(e){var h;const[t,n]=x.useState(Ey),r=x.useRef(!1),[{historyDepth:o},a]=x.useReducer((m,g)=>r.current===!0?(r.current=!1,m):g.type==="PUSH"?{historyDepth:m.historyDepth+1}:g.type==="POP"?{historyDepth:m.historyDepth-1}:m,{historyDepth:1}),i=Oh(),{pushSmartLocation:s}=Yh(),l=o>1,c=!!document.referrer&&!!((h=window.history)!=null&&h.back),d=x.useCallback(m=>{l?i.goBack():c?(window.history.back(),setTimeout(()=>{window.location.href=document.referrer},300)):(r.current=!0,s(m??t))},[l,i,s,t,c]);x.useEffect(()=>i.listen((g,p)=>{a({type:p,location:g})}),[a,i]);const f={canGoBack:l,historyDepth:o,backFallbackUrl:t,setBackFallbackUrl:n,navigateBack:d};return u.jsx(I8.Provider,{value:f,children:e.children})}function T8(){const e=x.useContext(I8);return x.useDebugValue(e),e}function wht(e){return gme(e.url),u.jsx(W.Fragment,{})}function gme(e){const{setBackFallbackUrl:t}=T8();x.useEffect(()=>(e&&t(e),()=>{t(Ey)}),[t,e])}const wr=W.forwardRef(function(t,n){const{replace:r,active:o=!1,to:a,...i}=t,s=Yh();for(const d in i)i[d]||delete i[d];let l=s.makeHref(a);const c=s.areLinksDisabled?-1:t.tabIndex??0;if(s.isDynamicNavigation(l))return u.jsx(rQ,{rel:t.target==="_blank"?"noopener ugc":void 0,...i,innerRef:n,to:x8(a,l),tabIndex:c,replace:r,"data-link-type":"modern"});{const d=!l.startsWith(Ni(""));return u.jsx("a",{"aria-current":o?"page":!1,ref:n,href:see(l),target:d?"_blank":void 0,rel:d?"noopener":t.rel,...i,tabIndex:c,"data-link-type":"legacy"})}});function So(e){const{buttonType:t=ye.STANDARD,className:n,title:r,ariaLabel:o,to:a,children:i,tabIndex:s=0,addWrap:l=!1,disabled:c,...d}=e,f=ge(mh(t),n),h=typeof i=="string"?i:void 0,m=x.useMemo(()=>({className:f,title:r??h,"aria-label":o||r||h,tabIndex:s,role:c?"presentation":"button",disabled:c}),[o,f,c,h,s,r]);return c?u.jsx("span",{...m,...d,children:u.jsx(Hn,{className:o2().root,condition:l,children:i})}):u.jsx(wr,{...m,to:a??"",...d,children:u.jsx(Hn,{className:o2().root,condition:l,children:i})})}function DO(e){const t=Oh(),{canGoBack:n,backFallbackUrl:r,navigateBack:o}=T8(),a=s8(),i=ge(a.link,{hasVisibleLabel:!!e.visibleLabel},e.linkClassName),s=e.title||k("Back");if(!n&&e.hideIfNoHistory&&!e.fallbackUrl)return null;let l=u.jsxs(u.Fragment,{children:[u.jsx(dfe,{className:ge(a.icon,e.chevronClass)}),e.visibleLabel&&u.jsx("span",{className:a.label,children:s})]});return e.onClick?l=u.jsx(ut,{buttonType:ye.TEXT,className:i,"aria-label":s,title:s,onClick:e.onClick,children:l}):n?l=u.jsx(ut,{buttonType:ye.TEXT,className:i,"aria-label":s,title:s,onClick:c=>{c.preventDefault(),c.stopPropagation(),t.goBack()},children:l}):l=u.jsx(So,{buttonType:ye.TEXT,to:e.fallbackUrl??r,className:i,"aria-label":s,title:s,onClick:c=>{c.preventDefault(),c.stopPropagation(),o(e.fallbackUrl)},children:l}),u.jsx("div",{className:ge(a.root,e.className),children:l})}DO.defaultProps={visibleLabel:!1};function vme(e){const{includeBackLink:t=!0,actions:n,children:r,headingClassName:o,title:a,className:i,titleCount:s}=e,l=mme(),c=Ki(),d=[sr.MOBILE,sr.XS].includes(c);return u.jsxs("div",{className:ae(l.root,i),children:[u.jsxs("div",{className:l.main,children:[t&&!d&&u.jsx(DO,{}),u.jsx(Hn,{condition:!!n,className:l.titleWrap,children:u.jsx(Dn,{isLarge:e.depth===1,renderAsDepth:e.renderDepth,depth:e.depth,title:a,className:o,children:r})})]}),(n||s)&&u.jsxs("div",{className:l.actions,children:[s,n]})]})}var Iy;(function(e){e.STANDARD="standard",e.OVERLINE="overline"})(Iy||(Iy={}));const v1=re(e=>{const t=ee(),n=qe("pageHeadingBox",void 0,[new Z6({"homeWidgetContainer.options.subtitle.font":"subtitle.font","homeWidgetContainer.options.subtitle.type":"options.subtitleType"})]),r=n("options",{subtitleType:"overline",alignment:"left"},e),o=n("subtitle",{font:ce.font(r.subtitleType==="overline"?{...t.fontSizeAndWeightVars("small","normal"),letterSpacing:1,transform:"uppercase",color:t.mainColors.primary}:{...t.fontSizeAndWeightVars("subTitle","semiBold")})}),a={letterSpacing:"0.2em"},i={weight:t.fonts.weights.normal,size:t.fonts.size.small,color:t.mainColors.fg};return{options:r,subtitle:o,font:a,count:i}}),A8=re(e=>{const t=ee();Ht().mediaQueries();const n=v1(e),r={"& h1, & h2, & h3, & h4, & h5, & h6":{marginBottom:"0 !important"}},o=S({textAlign:n.options.alignment==="left"?"start":n.options.alignment,display:"flex",flexDirection:"column",...E.margin({bottom:t.spacer.headingBox})},"label:PageHeadingBox-styles-root"),a=S({width:"100%",...E.margin({bottom:t.spacer.headingItem})},r,"label:PageHeadingBox-styles-titleWrap"),i=S({width:"100%",marginBottom:t.spacer.headingItem,"&:last-child":{marginBottom:0}},"label:PageHeadingBox-styles-descriptionWrap"),s=S({width:"100%",...E.font(n.subtitle.font),...E.margin({bottom:Wn(t.spacer.headingItem)*1.5})},r,"label:PageHeadingBox-styles-subtitle"),l=S({whiteSpace:"nowrap",textAlign:"right",paddingLeft:n.font.letterSpacing,...E.font(n.count)},"label:PageHeadingBox-styles-titleCount");return{root:o,titleWrap:a,descriptionWrap:i,subtitle:s,titleCount:l}}),bu={widgetClass:"widget-dontUseCssOnMe",widgetWithContainerClass:"widgetWithContainer-dontUseCssOnMe",headingBlockClass:"headingBlock-dontUseCssOnMe"},bme={widgetClass:"widget-legacy",widgetWithContainerClass:"widgetWithContainer-legacy",headingBlockClass:"headingBlock-legacy"},EO=W.createContext(bu);function Kh(){let e=x.useContext(EO);return e=x.useMemo(()=>{const t=!Ge("themeFeatures.DataDrivenTheme",!1),n=e;if(t)for(const[r,o]of Object.entries(e))n[r]=ge(o,bme[r]);return n},[e]),e}function qh(e){const{title:t,description:n,subtitle:r,actions:o,includeBackLink:a,titleCount:i,classNames:s}=e,l=v1(e.options).options,c=A8(e.options),{subtitleType:d}=l,f=Kh(),h=x.useRef(null),m=S8(h),g=e.depth??m;if(!t&&!n&&!r&&!o)return u.jsx(u.Fragment,{});const p=i?u.jsx(u.Fragment,{children:u.jsx("span",{className:c.titleCount,children:u.jsx("span",{title:i,children:i})})}):u.jsx(u.Fragment,{}),v=r?u.jsx(Dn,{className:ge(c.subtitle,"subtitle"),depth:g+1,children:r}):u.jsx(u.Fragment,{});return u.jsxs("div",{ref:h,className:ge(c.root,f.headingBlockClass,"pageHeadingBox",s),children:[d===Iy.OVERLINE&&v,u.jsx("div",{className:c.titleWrap,children:u.jsx(vme,{depth:g,actions:o,titleCount:p,includeBackLink:a??!1,children:t})}),d===Iy.STANDARD&&v,n&&u.jsx("div",{className:c.descriptionWrap,children:n})]})}const ps=re(()=>{const e=Ht(),t=ee(),n=qe("containerVariables");let r=n("spacing",{padding:t.constants.fullGutter/2,mobile:{padding:t.widget.padding}});const o=n("sizes",{full:e.contentWidth,narrowContentSize:e.contentSizes.narrow}),a=n("colors",{bg:t.mainColors.bg});return{sizing:o,colors:a,spacing:r}}),Ty=()=>{const e=ps();return{display:"flex",flexDirection:"column",position:"relative",boxSizing:"border-box",width:Z(100),maxWidth:w(e.sizing.full+e.spacing.padding*2),marginLeft:"auto",marginRight:"auto",...E.padding({horizontal:e.spacing.padding}),"&.isNarrow":{maxWidth:e.sizing.narrowContentSize}}};function O8(){const e=Ht().mediaQueries(),t=ps();return e.oneColumnDown({...E.padding({horizontal:t.spacing.mobile.padding})})}const yme=re(e=>{const t=Tt("container"),n=Ht().mediaQueries(),r=ps(),o=t(Ty(),O8()),a=t("fullGutter",{...Ty(),...E.padding({horizontal:r.spacing.padding*2}),...e!=null&&e.maxWidth?{maxWidth:e.maxWidth}:{}},(e==null?void 0:e.desktopSpacing)&&E.padding(e.desktopSpacing),n.oneColumnDown({...E.padding({horizontal:r.spacing.mobile.padding*2})}));return{root:o,fullGutter:a}}),xme=W.createContext({maxWidth:void 0}),PE=W.createContext({hasParentContainer:!1});function Cme(e){return u.jsx(PE.Provider,{value:{hasParentContainer:!1},children:e.children})}const zo=W.forwardRef(function(t,n){const{tag:r,children:o,className:a,fullGutter:i=!1,narrow:s=!1,style:l={},gutterSpacing:c,ignoreContext:d}=t;let{maxWidth:f}=x.useContext(xme);f=f??t.maxWidth;const h=yme({maxWidth:f,desktopSpacing:c}),m=x.useRef(null);n=n??m;const{hasParentContainer:g}=x.useContext(PE);f&&(l.maxWidth=f);const[p,v]=x.useState(!1);if(x.useLayoutEffect(()=>{var y,C;(((y=n.current)==null?void 0:y.closest(".Container"))??((C=n.current)==null?void 0:C.closest(h.root)))instanceof HTMLElement&&v(!0)},[n]),!d&&(g||p))return u.jsx(u.Fragment,{children:o});if(o){const b=r||"div";return u.jsx(b,{ref:n,style:l,className:ge(h.root,{[h.fullGutter]:i,isNarrow:s},a),children:u.jsx(PE.Provider,{value:{hasParentContainer:!0},children:o})})}else return null}),IO=re(()=>{const e=ee(),t=Ht(),n={clear:"both",...E.margin({vertical:e.spacer.pageComponent}),...t.mediaQueries().oneColumnDown({...E.margin({vertical:e.spacer.pageComponentCompact})})},r=S(n,"label:WidgetLayout-styles-widget"),o={clear:"both",...E.padding({vertical:e.spacer.pageComponent}),...t.mediaQueries().oneColumnDown({...E.padding({vertical:e.spacer.pageComponentCompact})})},a=S(o,"label:WidgetLayout-styles-widgetWithContainer"),i=S({clear:"both",marginBottom:e.spacer.headingBox},"label:WidgetLayout-styles-headingBlock");return{widgetMixin:n,widget:r,widgetWithContainerMixin:o,widgetWithContainer:a,headingBlock:i}}),wme=re(()=>{const e=IO(),t=S({position:"relative"},"label:SectionOneColumn-classes-root"),n=S({display:"block"},"label:SectionOneColumn-classes-container"),r=S({...e.widgetMixin,"&:first-child":{marginTop:0},"&:last-child":{marginBottom:0}},"label:SectionOneColumn-classes-widgetClass");return{root:t,container:n,widgetClass:r}});function B8(e){const{className:t,isNarrow:n,children:r,childrenBefore:o,childrenAfter:a,contentRef:i,...s}=e,l=Kh(),c=wme();return u.jsxs("div",{...s,ref:i,className:ge(c.root,l.widgetClass,t),children:[o,u.jsx(zo,{fullGutter:!0,narrow:n,className:c.container,children:u.jsx(EO.Provider,{value:{widgetClass:c.widgetClass,widgetWithContainerClass:l.widgetWithContainerClass,headingBlockClass:l.headingBlockClass},children:u.jsx(u.Fragment,{children:r})})}),a]})}const Sme=W.createContext({}),Ls=W.forwardRef(function(t,n){const{withContainer:r,children:o,customContainer:a,...i}=t,s=Kh(),l=x.useContext(Sme);return u.jsxs("div",{...i,tabIndex:l.tabIndex??i.tabIndex,onClick:l.onClick,ref:c=>{n&&(n.current=c),l.widgetRef&&(l.widgetRef.current=c)},className:ge(!a&&(r?s.widgetWithContainerClass:s.widgetClass),l.extraClasses,i.className),children:[l.extraContent,u.jsx(Hn,{condition:!!l.childrenWrapperClassName,componentProps:{className:l.childrenWrapperClassName},children:o})]})});function _f(e){const{children:t,...n}=e,r=IO();return u.jsx(EO.Provider,{value:{widgetClass:r.widget,widgetWithContainerClass:r.widgetWithContainer,headingBlockClass:r.headingBlock,...n},children:e.children})}function k8(e){const t=x.useMemo(()=>{const n=Ge("ui.siteName",""),r=[];return e.title&&e.title.length>0&&r.push(e.title),n.length>0&&n!==e.title&&r.push(n),r.join(" - ")},[e.title]);return x.useEffect(()=>{document.title=t},[t]),u.jsx(u.Fragment,{children:e.children})}function Dme(e){const t=e.type??"Page",n=e.title||yt.sprintf(k("%s Not Found"),k(t));return u.jsx("div",{className:"Center SplashInfo",children:u.jsx(_f,{children:u.jsx(B8,{isNarrow:!0,children:u.jsx(Ls,{children:u.jsx(mg,{depth:0,children:u.jsx(qh,{options:{alignment:"center"},title:u.jsx(k8,{title:n,children:n}),description:e.message||yt.sprintf(k("The %s you were looking for could not be found."),k(t.toLowerCase()))})})})})})})}function Eme(e){const{detailedErrors:t}=e;return!t||Object.keys(e).length===0?u.jsx(u.Fragment,{}):u.jsxs("div",{className:Dy().root,children:[u.jsx("h3",{children:"Debug Errors"}),Object.entries(t).map(([n,r],o)=>u.jsxs("label",{children:[u.jsx("strong",{children:n}),u.jsx(El,{errors:r})]},o))]})}const P8=()=>{const e=Tt("pageErrorMessage"),t=ee(),n=e({justifyContent:"center"}),r=e("title",{...E.font({...t.fontSizeAndWeightVars("title","semiBold"),lineHeight:t.lineHeights.condensed,align:"center"})}),o=e("description",{...E.font({...t.fontSizeAndWeightVars("large"),align:"center"}),marginTop:w(12)}),a=e("cta",{display:"flex",justifyContent:"center",alignItems:"center",...E.margin({top:w(21),horizontal:"auto"})}),i=e("titleAsParagraph",{...E.font({...t.fontSizeAndWeightVars("large")})}),s=S({marginTop:24,"& > h2":{marginBottom:12}},"label:pageErrorMessageStyles-trace"),l=e("icon",{"&&":{display:"block",color:P.colorOut(t.mainColors.primary),height:w(85),width:w(85),...E.margin({bottom:12,horizontal:"auto"})}});return{root:n,title:r,description:o,cta:a,titleAsParagraph:i,errorIcon:l,trace:s}},R8=W.createContext({currentUser:void 0});function Ime(){return x.useContext(R8)}function qi(){return Ime().currentUser}function b1(){const e=qi();return e==null?void 0:e.userID}function Xh(){const e=qi();return(e==null?void 0:e.userID)!==A6}function Tme(e){const{currentUser:t,children:n}=e,r=t?{...t,countUnreadNotifications:"countUnreadNotifications"in t?t.countUnreadNotifications:0,countUnreadConversations:"countUnreadConversations"in t?t.countUnreadConversations:0,isAdmin:"isAdmin"in t?t.isAdmin:!1,emailConfirmed:"emailConfirmed"in t?t.emailConfirmed:!1}:void 0;return u.jsx(R8.Provider,{value:{currentUser:r},children:n})}function Ame(e){const{children:t}=e,n=fn(r=>r.users.current.data);return u.jsx(Tme,{currentUser:n,children:t})}function TO(e){const t=t1(),{userID:n}=e,r=fn(a=>{const i={status:X.PENDING};return n==null?i:a.users.usersByID[n]??i}),{status:o}=r;return x.useEffect(()=>{n!=null&&[X.PENDING].includes(o)&&t.getUserByID({userID:n})},[o,t,n]),x.useDebugValue(r),r}function Ome(e){return e.trim()?e.split(",").join(" ").split(" ").filter(t=>t):[]}function Bme(e){return e.map(t=>t.value)}function Sht(e){const{userID:t,groupID:n,onSuccess:r}=e,{inviteUsersByGroupID:o,updateInvitees:a,updateEmailsString:i,clearInviteUsers:s}=t1(),l=fn(p=>{var v;return((v=p.users.usersInvitationsByID[t])==null?void 0:v.emailsString)??""}),c=p=>{i({userID:t,emailsString:p})},d=fn(p=>{var v;return((v=p.users.usersInvitationsByID[t])==null?void 0:v.invitees)??[]}),f=p=>{a({userID:t,invitees:p})},h=()=>{const p=Bme(d),v=Ome(l);return p.length===0&&v.length===0?void 0:o({userID:t,groupID:n,userIDs:p,emails:v})},m=fn(p=>{var v,b;return(b=(v=p.users.usersInvitationsByID[t])==null?void 0:v.results)==null?void 0:b.error}),g=fn(p=>{var v,b;return((b=(v=p.users.usersInvitationsByID[t])==null?void 0:v.results)==null?void 0:b.status)??X.PENDING});return x.useEffect(()=>{g===X.SUCCESS&&(r(),s({userID:t}))}),{emailsString:l,updateStoreEmails:c,invitees:d,updateStoreInvitees:f,sentInvitations:h,errors:m}}function y1(e){const t=t1(),n=xr("userPatch"),r=fn(i=>{var s;return((s=i.users.patchStatusByPatchID[`${e}-${n}`])==null?void 0:s.status)??X.PENDING}),o=fn(i=>{var s;return(s=i.users.patchStatusByPatchID[`${e}-${n}`])==null?void 0:s.error});return{patchUser:x.useCallback(async i=>await t.patchUser({...i,patchID:n}),[t,n]),patchErrors:o,patchStatus:r}}class $i extends W.Component{constructor(n){super(n);q(this,"id");this.id=dee(n,"Paragraph")}render(){if(this.props.children){const n=ae({isError:this.props.isError},this.props.className);let r={};return this.props.isError&&(r={"aria-live":"assertive",role:"alert"}),u.jsx("p",{id:this.id,className:n,...r,children:this.props.children})}else return null}}q($i,"defaultProps",{id:!1});function yv(e){var i,s;const t=P8(),n={...kme(N8(e)),...e.error||{}},{message:r,messageAsParagraph:o,description:a}=n;return u.jsxs("main",{className:ae(e.className,t.root),children:[n.icon,!o&&u.jsx(Dn,{depth:1,className:t.title,title:r}),o&&u.jsx($i,{className:t.titleAsParagraph,children:r}),n.description&&u.jsx($i,{className:t.description,children:a}),eg()&&u.jsx(Eme,{detailedErrors:(s=(i=n==null?void 0:n.response)==null?void 0:i.data)==null?void 0:s.errors}),eg()&&n.trace&&u.jsxs("div",{className:t.trace,children:[u.jsx("h2",{children:"Stack Trace"}),u.jsx(CO,{maxHeight:300,bgColor:Dl().codeBlock.bg,children:u.jsx(kE,{content:`<pre class="code codeBlock">${w3(n.trace)}</pre>`})})]}),n.actionButton?u.jsx("div",{className:t.cta,children:u.jsx(So,{to:n.actionButton.url,target:n.actionButton.target,children:n.actionButton.label})}):n.actionItem&&u.jsx("div",{className:t.cta,children:n.actionItem})]})}function kme(e){const t=P8(),n=pO(),r=j8(e);switch(e){case 403:case"permission":return{message:r,description:k("You don't have permission to view this resource."),actionItem:u.jsx(Pme,{}),icon:u.jsx(rS,{message:r,className:t.errorIcon})};case 404:case"notfound":return{message:r,description:k("The page you were looking for could not be found."),actionItem:u.jsx(So,{buttonType:ye.PRIMARY,to:"/",children:k("Back to home page")}),icon:u.jsx(rS,{message:r,className:t.errorIcon})};case"generic":default:return{message:r,description:k("Please try again later."),actionItem:u.jsx(So,{className:n.primary,to:"/",children:k("Back to Home")}),icon:u.jsx(rS,{message:r,className:t.errorIcon})}}}function Pme(){const e=qi();return e&&O6(e)?u.jsx(So,{to:`/entry/signin?Target=${encodeURIComponent(window.location.href)}`,children:k("Sign In")}):null}function j8(e){switch(e){case 403:case"permission":return k("Permission Problem");case 404:case"generic":default:return k("There was an error")}}function N8(e){return e.apiError&&e.apiError.response?e.apiError.response.status:e.error&&e.error.status?e.error.status:(e.defaultError,e.defaultError)}var y2;(function(e){e.GENERIC="generic",e.PERMISSION="permission",e.NOT_FOUND="notfound"})(y2||(y2={}));const L8=re(()=>{const e=qe("panelBackground"),t=e("config",{render:!1}),n=e("colors",{backgroundColor:On("#f4f6f9")});return{config:t,colors:n}}),$8=e=>{const{vars:t,name:n,mediaQueries:r}=e,o=ee(),a=Tt(n),i=S({width:Z(100)},"label:Section-styles-main"),s={oneColumnDown:{marginTop:o.spacer.pageComponentCompact}},l=a({position:"relative",width:Z(100),"&&":{marginTop:o.spacer.mainLayout,...r({[jn.TWO_COLUMNS]:s,[jn.THREE_COLUMNS]:s})},[`&.noBreadcrumbs > .${i}`]:{marginTop:Ta(o.widget.padding)}}),c=a("content",{display:"flex",flexGrow:1,width:Z(100),justifyContent:"space-between",alignSelf:"stretch"}),d=a("panel",{width:Z(100),"& > .panelArea:first-child .panelList":{marginTop:w(o.fonts.size.title*o.lineHeights.condensed/2-ee().fonts.size.medium/2)}}),f=a("top",{width:Z(100),marginBottom:w(o.gutter.half)}),h=a("container",{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between"}),m=a("fullWidth",{position:"relative",padding:0}),g=L8().config.render?Ht().panelLayoutSpacing.withPanelBackground.gutter-o.widget.padding*2:0,p=a("leftColumn",{position:"relative",width:w(t.panel.paddedWidth),flexBasis:w(t.panel.paddedWidth),minWidth:w(t.panel.paddedWidth),paddingRight:w(g)}),v=a("rightColumn",{position:"relative",width:w(t.panel.paddedWidth),flexBasis:w(t.panel.paddedWidth),minWidth:w(t.panel.paddedWidth),overflow:"initial",paddingLeft:w(g)}),b=a("mainColumn",{justifyContent:"space-between",flexGrow:1,width:Z(100),maxWidth:Z(100),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{...E.padding({left:je(0),right:je(0)})}}})}),y=a("mainColumnMaxWidth",{"&.hasAdjacentPanel":{flexBasis:it(`100% - ${w(t.panel.paddedWidth)}`),maxWidth:it(`100% - ${w(t.panel.paddedWidth)}`),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{flexBasis:Z(100),maxWidth:Z(100)}}})},"&.hasTwoAdjacentPanels":{flexBasis:it(`100% - ${w(t.panel.paddedWidth*2)}`),maxWidth:it(`100% - ${w(t.panel.paddedWidth*2)}`),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{flexBasis:Z(100),maxWidth:Z(100)}}})}}),C=a("breadcrumbs",{}),D=a("isSticky",{...Hh(),height:Z(100),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{position:"relative",top:"auto",left:"auto",bottom:"auto"}}})});_o(`.overlay .${l}.noBreadcrumbs .${i}`,{paddingTop:0});const A=a("breadcrumbs",{paddingBottom:w(14)}),T=V=>{const z=V("middleColumnMaxWidth",{"&.hasAdjacentPanel":{flexBasis:it(`100% - ${w(t.panel.paddedWidth)}`),maxWidth:it(`100% - ${w(t.panel.paddedWidth)}`),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{flexBasis:Z(100),maxWidth:Z(100)}}})},"&.hasTwoAdjacentPanels":{flexBasis:it(`100% - ${w(t.panel.paddedWidth*2)}`),maxWidth:it(`100% - ${w(t.panel.paddedWidth*2)}`),...r({[jn.THREE_COLUMNS]:{oneColumnDown:{flexBasis:Z(100),maxWidth:Z(100)}}})}}),Y=V("leftColumn",{position:"relative",width:w(t.panel.paddedWidth),flexBasis:w(t.panel.paddedWidth),minWidth:w(t.panel.paddedWidth),paddingRight:g?w(g):void 0}),te=V("rightColumn",{position:"relative",width:w(t.panel.paddedWidth),flexBasis:w(t.panel.paddedWidth),minWidth:w(t.panel.paddedWidth),overflow:"initial",paddingRight:g?w(g):void 0});return{leftColumn:Y,rightColumn:te,middleColumnMaxWidth:z}},B={...E.margin({vertical:o.spacer.pageComponentCompact}),"&:first-child":{marginTop:0},"&:last-child":{marginBottom:0}},j=S(B,"label:Section-styles-mainPanelWidget"),R={...E.margin({vertical:o.spacer.panelComponent}),"&:first-child":{marginTop:0},"&:last-child":{marginBottom:0}},N=S(R,"label:Section-styles-secondaryPanelWidget"),_=S({marginBottom:o.spacer.headingBoxCompact},"label:Section-styles-mainPanelHeadingBlock");return{root:l,content:c,top:f,main:i,container:h,fullWidth:m,leftColumn:p,rightColumn:v,mainColumn:b,mainColumnMaxWidth:y,panel:d,isSticky:D,breadcrumbs:C,breadcrumbsContainer:A,layoutSpecificStyles:T,mainPanelWidgetMixin:B,mainPanelWidget:j,secondaryPanelWidgetMixin:R,secondaryPanelWidget:N,mainPanelHeadingBlock:_,secondaryPanelHeadingBlock:S({marginBottom:0},"label:Section-styles-secondaryPanelHeadingBlock")}};var RE;(function(e){e.XS="xs",e.MOBILE="mobile",e.DESKTOP="desktop",e.NO_BLEED="no_bleed"})(RE||(RE={}));const Il=re(()=>{const e=Ht(),t=RE,{fullGutter:n}=e.foundationalWidths,r=qe("twoColumnLayout"),o=r("foundationalWidths",{fullGutter:n,minimalMiddleColumnWidth:600,panelWidth:292,breakPoints:{xs:e.foundationalWidths.breakPoints.xs}}),a=r("gutter",{full:o.fullGutter,size:o.fullGutter/2,halfSize:o.fullGutter/4,quarterSize:o.fullGutter/8}),i=r("panel",{width:o.panelWidth}),s=r("panel",{...i,paddedWidth:i.width+e.gutter.full}),l=r("mainColumn",{width:e.contentWidth-s.paddedWidth-e.gutter.full}),c=r("mainColumn",{...l,paddedWidth:l.width+e.gutter.full}),d=r("breakPoints",{noBleed:e.contentWidth,oneColumn:o.minimalMiddleColumnWidth+s.paddedWidth,xs:o.breakPoints.xs}),f=c.paddedWidth+s.paddedWidth*2,h=()=>({noBleed:(B,j=!0)=>Yt({maxWidth:d.noBleed,minWidth:j?d.oneColumn+1:void 0},B),noBleedDown:B=>Yt({maxWidth:d.noBleed},B),oneColumn:(B,j=!0)=>Yt({maxWidth:d.oneColumn,minWidth:j?d.xs+1:void 0},B),oneColumnDown:B=>Yt({maxWidth:d.oneColumn},B),aboveOneColumn:B=>Yt({minWidth:d.oneColumn+1},B),xs:B=>Yt({maxWidth:d.xs},B)}),m=()=>{const b=document.body.clientWidth;return b<=d.xs?t.XS.toString():b<=d.oneColumn?t.MOBILE.toString():b<=d.noBleed?t.NO_BLEED.toString():t.DESKTOP.toString()},g=b=>b===t.DESKTOP||b===t.NO_BLEED,p=b=>b===t.XS||b===t.MOBILE,v=r("panelLayoutSpacing",e.panelLayoutSpacing);return{type:jn.TWO_COLUMNS.toString(),Devices:t,foundationalWidths:o,panel:s,middleColumn:c,gutter:a,panelLayoutSpacing:v,contentWidth:f,breakPoints:d,mediaQueries:h,calculateDevice:m,isFullWidth:g,isCompact:p}}),M8=()=>$8({vars:Il(),name:"twoColumnLayout",mediaQueries:AO(Il().mediaQueries,jn.TWO_COLUMNS)}),Ay=re(()=>{const e=Ht(),t=vy,n=qe("threeColumnLayout"),r=n("colors",{...e.colors}),o=n("contentSizes",{...e.contentSizes}),a=n("gutter",{...e.gutter}),i=n("panelLayoutSpacing",{...e.panelLayoutSpacing}),s=n("foundationalWidths",{...e.foundationalWidths}),l=n("panel",{width:s.panelWidth}),c=n("panel",{...l,paddedWidth:l.width+e.gutter.full}),d=n("middleColumn",{width:e.middleColumn.width}),f=n("middleColumn",{...d,paddedWidth:d.width+e.gutter.full}),h=f.paddedWidth+c.paddedWidth*2,m=n("breakPoints",{noBleed:h,twoColumns:s.breakPoints.twoColumns,oneColumn:s.minimalMiddleColumnWidth+c.paddedWidth,xs:s.breakPoints.xs}),g=e.mediaQueries,p=()=>{const y=document.body.clientWidth;return y<=m.xs?t.XS.toString():y<=m.oneColumn?t.MOBILE.toString():y<=m.twoColumns?t.TABLET.toString():y<=m.noBleed?t.NO_BLEED.toString():t.DESKTOP.toString()},v=y=>y===t.DESKTOP||y===t.NO_BLEED,b=y=>y===t.XS||y===t.MOBILE;return{colors:r,contentSizes:o,gutter:a,panelLayoutSpacing:i,type:jn.THREE_COLUMNS,Devices:t,foundationalWidths:s,panel:c,middleColumn:f,contentWidth:h,breakPoints:m,mediaQueries:g,calculateDevice:p,isFullWidth:v,isCompact:b}}),Rme=()=>$8({vars:Ay(),name:"threeColumnLayout",mediaQueries:AO(Ay().mediaQueries,jn.THREE_COLUMNS)}),AO=(e,t)=>n=>{let r={};return Object.keys(n).forEach(o=>{if(o===t){const a=n[o],i=t===jn.TWO_COLUMNS?Il().mediaQueries():Ay().mediaQueries();a&&Object.keys(a).forEach(s=>{const l=i[s],c=a[s];l?r=l(c):mn(`Error calculating media queries: 
The styles provided were not in a valid media query.
You likely forgot to wrap your styles in the key of the proper media query.
Media queries available: ${JSON.stringify(Object.keys(i))}
Looking for media query called "${s}"
in: `,JSON.stringify(a))})}}),r},jE=e=>{const t={variables:e===jn.TWO_COLUMNS?Il():Ay(),classes:e===jn.TWO_COLUMNS?M8():Rme()},n=t.variables.calculateDevice().toString();return{type:e,currentDevice:n,Devices:t.variables.Devices,isCompact:t.variables.isCompact(n),isFullWidth:t.variables.isFullWidth(n),classes:t.classes,currentSectionVariables:t.variables,mediaQueries:AO(t.variables.mediaQueries,e),contentWidth:t.variables.contentWidth,calculateDevice:t.variables.calculateDevice,sectionSpecificStyles:t.variables.sectionSpecificStyles??void 0}},OO=W.createContext(jE(jn.THREE_COLUMNS));function Xi(){return x.useContext(OO)}function BO(e){const{type:t=jn.THREE_COLUMNS,children:n}=e,[r,o]=x.useState(jE(t));return x.useEffect(()=>{const a=g1(()=>{o(jE(t))},100);return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[t,o]),u.jsx(OO.Provider,{value:r,children:n})}function Dd(e){const t=e.displayName||e.name||"Component",n=r=>u.jsx(OO.Consumer,{children:o=>u.jsx(e,{...o,...r})});return n.displayName=`withSection(${t})`,n}const x1=re(e=>{const t=ee();return{root:S({clear:"both",position:"relative",width:Z(100),...E.padding({all:t.widget.padding}),":first-child > &":{paddingTop:0},":last-child > &":{paddingBottom:0},"&.hasNoVerticalPadding":{...E.padding({vertical:0})},"&.hasNoHorizontalPadding":{...E.padding({horizontal:0})},"&.isSelfPadded":{...E.padding({all:0})},"&:empty":{...E.padding({all:0})},...e({[jn.TWO_COLUMNS]:{oneColumnDown:{...E.padding({all:t.widget.padding})}},[jn.THREE_COLUMNS]:{oneColumnDown:{...E.padding({all:t.widget.padding})}}})},"label:panelWidgetStyles-root")+" panelWidget"}});function jme(e){const t=x1(Xi().mediaQueries);return u.jsx("div",{className:ae(t.root,"hasNoHorizontalPadding",e.className),children:e.children})}const Nme=Dd(jme),Oy=Dd(function(t){const n=x1(Xi().mediaQueries);return u.jsx("div",{className:ae(n.root,t.className),children:t.children})});function C1(e){const t=N8(e),n=j8(t),r={inheritHeight:us()};return u.jsx(k8,{title:n,children:u.jsx(zo,{className:r.inheritHeight,tag:"main",children:u.jsx(Nme,{className:r.inheritHeight,children:u.jsx(Oy,{className:r.inheritHeight,children:u.jsx(yv,{...e,className:r.inheritHeight})})})})})}class kO extends W.Component{constructor(){super(...arguments);q(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){mn(n,r)}render(){const{error:n}=this.state;return n?u.jsx(C1,{error:n}):this.props.children}}class Lme{constructor(){q(this,"routes",[]);q(this,"addRoutes",t=>{Array.isArray(t)?this.routes.push(...t):this.routes.push(t)})}}const $me=da("RouterRegistry",new Lme),PO=$me.current();function Mme(e){var d;const{onRouteChange:t}=e,n=x.useMemo(()=>Y4({basename:oo("")}),[]),r=e.history??n,o=md(),a=x.useCallback(()=>{o(Vu.resetAC())},[o]),i=fn(f=>f.route.error),s=e.ErrorPageComponent??C1;x.useEffect(()=>{kW(r)},[r]);const l=x.useCallback(()=>{a(),window.scrollTo(0,0),t==null||t(r)},[r,t,a]);OW(l);let c=u.jsx(kO,{children:i?u.jsx(s,{error:i}):u.jsxs(oQ,{children:[PO.routes,u.jsx(K4,{component:Dme},"@not-found")]})});return c=u.jsxs(pme,{children:[e.children,c]}),e.disableDynamicRouting||(c=u.jsx(lme,{useLayoutRouting:e.useLayoutRouting,linkContexts:(d=e.sectionRoots??["/"])==null?void 0:d.map(f=>oo(f,!0)),children:c})),u.jsx(aQ,{history:r,children:c})}const _me=/<([\d ]+)>(.*?)<\/\1>|<([\d ]+)\/>|([^<]+|<)/g,Fme=/%(?:\d+\$)?[dfsu]/g;class dn extends W.Component{render(){return this.translatedSource.match(/<([\d ]+)\/?>/)?this.renderHtmlStubs():this.renderSprintf()}renderSprintf(){[this.props.c0,this.props.c1,this.props.c2,this.props.c3,this.props.c4].filter(Do).forEach(a=>{typeof a=="function"&&this.props.errorHandler(`Cannot use a functional translation interpolation value with a sprintf source string: ${this.props.source}. 
The translated value of source is ${this.translatedSource}.`)});const r=this.translatedSource.split(Fme),o=[];return r.forEach((a,i)=>{o.push(u.jsx(W.Fragment,{children:a},`text-${i}`)),i===r.length-1||o.push(this.getInterpolatedComponent(i.toString(),`replaced-${i}`))}),o}renderHtmlStubs(){const t=[];return this.translatedSource.replace(_me,(n,r,o,a,i,s)=>(i!=null&&t.push(u.jsx(W.Fragment,{children:i},s)),a!=null&&t.push(this.getInterpolatedComponent(a,s)),o!=null&&r!=null&&t.push(this.getInterpolatedComponent(r,s,o)),n)),t}getInterpolatedComponent(t,n,r){if(t=t.trim(),!(`c${t}`in this.props))return this.logIDNotFound(t),null;const o=this.props[`c${t}`],a=typeof o=="function"?o(r):o;return u.jsx(W.Fragment,{children:a},n)}get translatedSource(){return this.props.translateFunction(this.props.shortSource??this.props.source,this.props.source)}logIDNotFound(t){this.props.errorHandler(`A translation interpolation value #${t} was not provided for source string ${this.props.source}. 
The translated value of source is ${this.translatedSource}.`)}}q(dn,"defaultProps",{errorHandler:mn,translateFunction:k});const Wme=1e4;function Dht(e){const t=Go(),n=fn(o=>{var a;return{status:o.discussions.discussionsByID[e]?X.SUCCESS:((a=o.discussions.fullRecordStatusesByID[e])==null?void 0:a.status)??X.PENDING,data:o.discussions.discussionsByID[e]}}),{status:r}=n;return x.useEffect(()=>{X.PENDING.includes(r)&&t.getDiscussionByID({discussionID:e})},[r,t,e]),n}function zme(e){const{putDiscussionBookmarked:t}=Go(),{addToast:n}=ha(),r=Fh(),o=fn(s=>{var l;return(l=s.discussions.bookmarkStatusesByID[e])==null?void 0:l.error})??null,a=fn(s=>{var l;return((l=s.discussions.discussionsByID[e])==null?void 0:l.bookmarked)??!1});x.useEffect(()=>{o&&n({dismissible:!0,body:u.jsx(El,{errors:[o??{message:k("There was a problem bookmarking this discussion.")}]})})},[o]);async function i(s){return await r(t({discussionID:e,bookmarked:s}))}return{toggleDiscussionBookmarked:i,isBookmarked:a}}function RO(e){return fn(function(t){var n,r;return(r=(n=t.discussions.discussionsByID[e])==null?void 0:n.reactions)==null?void 0:r.find(({hasReacted:o})=>o)})}function Hme(e){const{postDiscussionReaction:t}=Go(),n=RO(e);async function r(o){return await t({discussionID:e,reaction:o,currentReaction:n})}return r}function Ume(e){const{deleteDiscussionReaction:t}=Go(),n=RO(e);async function r(){return await t({discussionID:e,currentReaction:n})}return r}function jO(e,t,n){const r=md(),o=Go(),a=zr(e);x.useEffect(()=>{t?r(Nt.getDiscussionListACs.done({params:e,result:{data:t,pagination:n}})):o.getDiscussionList(e)},[t,a]);const i=fn(c=>{var d;return((d=c.discussions.discussionIDsByParamHash[a])==null?void 0:d.status)??X.PENDING}),s=fn(c=>i===X.SUCCESS?c.discussions.discussionIDsByParamHash[a].data.discussions.map(d=>c.discussions.discussionsByID[d]).filter(Do):[]),l=fn(c=>{var d;return i===X.SUCCESS?(d=c.discussions.discussionIDsByParamHash[a].data)==null?void 0:d.pagination:{}});return{status:i,data:{discussionList:s,pagination:l}}}function Vme(e,t){const{hasPermission:n}=mr(),r=t??e,o=t?"comments.edit":"discussions.edit",a={mode:xs.RESOURCE_IF_JUNCTION,resourceType:"category",resourceID:r.categoryID},i=b1(),s=r.insertUserID===i,l=Ge("ui.editContentTimeout",-1)>-1?new Date(new Date(r.dateInserted).getTime()+Ge("ui.editContentTimeout")*1e3):null;let c=(l==null?void 0:l.getTime())??1/0;function d(){const m=new Date;let g=0;return n("community.moderate")||n(o,a)?g=1/0:s&&!e.closed&&(l!==null?g=Math.max(0,Math.round(c-m.getTime())):g=1/0),g}return{canEdit:d()>0,getRemainingTime:d,cutoffTimestamp:c}}function Gme(e,t){const{canEdit:n,cutoffTimestamp:r,getRemainingTime:o}=Vme(e,t),a=o(),[i,s]=x.useState(a);x.useEffect(()=>{const d=setInterval(()=>{s(o()),i===0&&clearInterval(d)},i&&i>6e4?1e4:5e3);return function(){clearInterval(d)}});const l=n&&!!i&&i>0,c=i&&i!==1/0?yt.sprintf(k("Edit (%s)"),m6(new Date(r),new Date,!1)):k("Edit");return{canStillEdit:l,humanizedRemainingTime:c}}function Yme(e,t){return fn(n=>{var r;return((r=n.discussions.patchStatusByPatchID[`${e}-${t}`])==null?void 0:r.status)??X.PENDING})}function NO(e,t=null){const n=xr("discussionPatch"),r=t??n,o=Yme(e,r)===X.LOADING,a=Go(),i=Fh(),s=x.useCallback(l=>i(a.patchDiscussion({discussionID:e,patchStatusID:r,...l})),[r,a,e]);return{isLoading:o,patchDiscussion:s}}function Kme(e){return fn(t=>{var n;return((n=t.discussions.changeTypeByID[e])==null?void 0:n.status)??X.PENDING})}function Eht(e){const t=Kme(e)===X.LOADING,n=Go(),r=Fh(),o=x.useCallback(a=>r(n.putDiscussionType({discussionID:e,...a})),[n,e]);return{isLoading:t,putDiscussionType:o}}function Iht(e){const t=Go(),n=Fh();async function r(o){try{return n(t.putDiscussionTags({discussionID:e,tagIDs:o}))}catch(a){throw new Error(a.description)}}return r}function LO(e){const t=Fh(),{getDiscussionByIDs:n}=Go(),[r,o]=x.useState(null),a=fn(c=>c.discussions.fullRecordStatusesByID??{}),i=fn(c=>c.discussions.discussionsByID),s=x.useMemo(()=>Object.fromEntries(e.map(c=>{var d;return[c,((d=a[c])==null?void 0:d.status)??null]})),[a]),l=x.useMemo(()=>Object.keys(i).length>0&&e.length>0?e.filter(c=>!i[c]).filter(c=>![X.LOADING,X.ERROR,X.SUCCESS].includes(s[c])):[],[i,e,s]);return x.useEffect(()=>{e.length!==(r?Object.keys(r).length:0)&&o(()=>Object.fromEntries(e.map(c=>i[c]&&[c,i[c]]).filter(Do)))},[e,i]),x.useEffect(()=>{l.length>0&&t(n({discussionIDs:l}))},[l]),r}function Tht(e){const{bulkDeleteDiscussion:t}=Go(),{addCheckedDiscussionsByIDs:n,removeCheckedDiscussionsByIDs:r,addPendingDiscussionByIDs:o,removePendingDiscussionByIDs:a}=wv(),[i,s]=x.useState(null),l=fn(g=>g.discussions.deleteStatusesByID),c=x.useMemo(()=>i?Object.values(i).some(g=>g===X.LOADING):!1,[i]),d=(g,p)=>{if(g){const v=Object.keys(g).filter(b=>g[b]===p);return v.length>0?v:null}return null},f=x.useMemo(()=>d(i,X.ERROR),[i]),h=x.useMemo(()=>d(i,X.SUCCESS),[i]);return x.useEffect(()=>{const g=Array.isArray(e)?e:[e];s(()=>Object.fromEntries(g.map(p=>{var v;return[p,((v=l[p])==null?void 0:v.status)??null]})))},[l,e]),x.useEffect(()=>{f&&f.length>0&&(n(f),a(f))},[f]),x.useEffect(()=>{h&&h.length>0&&a(h)},[h]),{isDeletePending:c,deletionFailedIDs:f,deletionSuccessIDs:h,deleteSelectedIDs:()=>{t({discussionIDs:[e].flat()}),o(e),r(e)}}}function Aht(e,t,n,r){const{bulkMoveDiscussions:o,getCategoryByID:a}=Go(),{addCheckedDiscussionsByIDs:i,removeCheckedDiscussionsByIDs:s,addPendingDiscussionByIDs:l,removePendingDiscussionByIDs:c}=wv(),d=x.useMemo(()=>Array.isArray(e)?e:[e],[e]),f=fn(A=>A.discussions.patchStatusByPatchID),h=(A,T)=>{if(A){const B=Object.keys(A).filter(j=>{const R=j.replace("-move","");return d.includes(Number(R))}).filter(j=>A[j].status===T).map(j=>Number(j.replace("-move","")));return B.length>0?B:null}return null},m=x.useMemo(()=>h(f,X.LOADING),[f]),g=x.useMemo(()=>h(f,X.ERROR),[f]),p=x.useMemo(()=>h(f,X.SUCCESS),[f]),v=x.useMemo(()=>m&&m.length>0,[m]),b=x.useMemo(()=>(p&&p.length>0)??!1,[p]),y=LO(g??[]);x.useEffect(()=>{g&&g.length>0&&!r&&(i(g),c(g))},[g]),x.useEffect(()=>{p&&p.length>0&&!r&&c(p)},[p]);const C=qme(t);return{isSuccess:b,isPending:v,failedDiscussions:y,moveSelectedDiscussions:()=>{t&&C&&o({discussionIDs:d,categoryID:t,addRedirects:n,category:C}),r||(l(e),s(e))}}}function Oht(e,t=!0){const{bulkCloseDiscussions:n}=Go(),{addCheckedDiscussionsByIDs:r,removeCheckedDiscussionsByIDs:o,addPendingDiscussionByIDs:a,removePendingDiscussionByIDs:i}=wv(),s=fn(v=>v.discussions.patchStatusByPatchID),l=(v,b)=>v?Object.keys(v).filter(y=>{var C;return((C=v[y])==null?void 0:C.status)===b}).map(y=>Number(y.replace("-close",""))).filter(y=>e.indexOf(y)>=0):[],c=x.useMemo(()=>l(s,X.LOADING),[s]),d=x.useMemo(()=>l(s,X.SUCCESS),[s]),f=x.useMemo(()=>l(s,X.ERROR),[s]),h=x.useMemo(()=>d.length>0,[d]),m=x.useMemo(()=>c.length>0,[c]),g=LO(f??[]);return x.useEffect(()=>{r(f),i(f)},[f]),x.useEffect(()=>{i(d)},[d]),{isSuccess:h,isPending:m,failedDiscussions:g,closeSelectedDiscussions:()=>{a(e),o(e),n({discussionIDs:e,closed:t})}}}function qme(e){const{getCategoryByID:t}=Go(),n=fn(o=>o.discussions.categoriesByID),r=x.useMemo(()=>(e&&n[e])??null,[n,e]);return x.useEffect(()=>{r||e&&t({categoryID:e})},[e,t,r]),r}var Ci;(function(e){e.DEFAULT="default",e.META="meta",e.TOP="top",e.HIDDEN="hidden"})(Ci||(Ci={}));var qa;(function(e){e.TITLE_DESCRIPTION_METAS="title-description-metas",e.TITLE_METAS_DESCRIPTION="title-metas-description",e.TITLE_METAS="title-metas"})(qa||(qa={}));const Qh=re((e,t)=>{const n=qe("listItem"),r=ee(),o=n("options",{iconPosition:"default"},e),a=n("title",{font:ce.font({...r.fontSizeAndWeightVars("large","semiBold"),color:r.mainColors.fg})}),i=a.font.color===r.mainColors.fg,s=n("title",{...a,fontState:ce.font({color:i?r.mainColors.primary:P.offsetLightness(a.font.color,.04)})}),l=n("description",{font:ce.font({size:r.fonts.size.medium,color:r.mainColors.fg})});return{title:s,options:o,description:l}}),wi=re(()=>{const e=qe("tags",void 0,[new Rs({"border.radius":"tagItem.border.radius"})]),t=ee(),{font:n}=Tn(),r=e("font",ce.font(n)),o=e("fontState",ce.font({color:t.mainColors.statePrimary})),a=e("background",ce.background({color:t.mainColors.bg})),i=e("padding",ce.spacing({vertical:0,horizontal:9}));let s=e("border",ce.border({color:n.color,width:1}));s=e("border",ce.border({...s,radius:s.radius??(r.lineHeight||1.45)*(r.size??12)/2+(i.vertical||0)+(s.width&&Wn(s.width)>0?s.width:0)}));const l=Wn(r.size)*C3(r.lineHeight,1)+Wn(i.vertical)*2+Wn(s.width)*2;return{font:r,fontState:o,padding:i,border:s,background:a,height:l}});var pg;(function(e){e.STANDARD="standard",e.PRIMARY="primary",e.GREYSCALE="greyscale",e.COLORED="colored",e.SUCCESS="success",e.ERROR="error"})(pg||(pg={}));const lc=re(function(){const e=qe("tags",void 0,[new Rs({"standard.fontColor":"tagItem.font.color","standard.fontColorState":"tagItem.fontState.color","standard.bgColor":"tagItem.background.color","standard.bgColorState":"tagItem.backgroundState.color","standard.borderColor":"tagItem.border.color","standard.borderColorState":"tagItem.borderState.color"})]),{font:t,fontState:n,background:r}=wi(),o=ee();let a=e("primary",{fontColor:o.mainColors.primary,bgColor:r.color,borderColor:"#dddee0"});a=e("primary",{...a,fontColorState:n.color,bgColorState:a.bgColor,borderColorState:n.color});let i=e("standard",{fontColor:t.color,bgColor:r.color,fontColorState:n.color});i=e("standard",{...i,borderColor:a.borderColor,fontColorState:a.fontColorState,borderColorState:a.borderColorState,bgColorState:a.bgColorState});let s=e("greyscale",{fontColor:"#555a62",bgColor:"#EEEEEF"});s=e("greyscale",{...s,fontColorState:s.fontColor,borderColor:s.bgColor,bgColorState:"#D8D8D8"}),s=e("greyscale",{...s,borderColorState:s.bgColorState});let l=e("colored",{fontColor:o.mainColors.primary});const c=ra(l.fontColor),d=P.isLightColor(c);l=e("colored",{...l,bgColor:d?c.darken(.6):c.fade(.08),borderColor:d?c.lighten(.2):c.fade(.6)}),l=e("colored",{...l,fontColorState:l.fontColor,bgColorState:l.bgColor,borderColorState:c});let f=e("success",{fontColor:o.messageColors.success});const h=ra(f.fontColor),m=P.isLightColor(h);f=e("success",{...f,bgColor:m?h.darken(.6):r.color,borderColor:h}),f=e("success",{...f,fontColorState:f.fontColor,bgColorState:f.bgColor,borderColorState:h});const g=ra(o.messageColors.error.fg),p=P.isLightColor(g)?g.darken(.6):g.lighten(.57);let v=e("error",{fontColor:g,bgColor:p,borderColor:g,fontColorState:g,bgColorState:p,borderColorState:g});return{primary:a,standard:i,greyscale:s,colored:l,success:f,error:v}});var By;(function(e){e.LIST="list",e.CLOUD="cloud"})(By||(By={}));const Xme=re(e=>{const t=qe("tags",e,[new Rs({tagCloud:"tagItem"})]),n=ee();return t("tagCloud",{type:"cloud",box:ce.box({background:e==null?void 0:e.innerBackground,borderType:e==null?void 0:e.borderType,border:n.border}),tagPreset:"standard",margin:ce.spacing({horizontal:w(2),vertical:w(2)}),showCount:!0})}),Is=re((e,t)=>{var v,b;const n=qe("discussionList",t),r=Qh(void 0,t),o=ee(t),a=n("profilePhoto",{size:ho.MEDIUM}),i=n("contentBoxes",ce.contentBoxes(o.contentBoxes)),s=n("panelBoxes",ce.contentBoxes(o.panelBoxes)),l=n("labels",{tagPreset:pg.GREYSCALE}),c=n("userTags",{maxNumber:3,tagPreset:pg.STANDARD}),d=n("item",{options:{iconPosition:r.options.iconPosition},excerpt:{display:!0},title:{font:ce.font(r.title.font),fontRead:ce.font({weight:o.fonts.weights.normal}),fontState:ce.font(r.title.fontState)},featuredImage:{display:((v=e==null?void 0:e.featuredImage)==null?void 0:v.display)??!1,fallbackImage:((b=e==null?void 0:e.featuredImage)==null?void 0:b.fallbackImage)??void 0},metas:{asIcons:!1,display:{category:!0,startedByUser:!0,lastUser:!0,unreadCount:!0,qnaStatus:!0,viewCount:!0,commentCount:!0,lastCommentDate:!0,score:!0,userTags:!0,resolved:!0}}},e),f=n("announcementTag",lc()[l.tagPreset]),h=n("closedTag",lc()[l.tagPreset]),m=n("qnaStatusUnanswered",lc()[l.tagPreset]),g=n("qnaStatusAnswered",lc()[l.tagPreset]),p=n("qnaStatusAccepted",lc()[l.tagPreset]);return{profilePhoto:a,panelBoxes:s,contentBoxes:i,item:d,labels:l,userTags:c,announcementTag:f,closedTag:h,qnaStatusUnanswered:m,qnaStatusAnswered:g,qnaStatusAccepted:p}}),_8=re(()=>{const e=ee();return{colors:qe("voteCounter")("colors",{bg:"#e8e8e8",fg:e.elementaryColors.darkText}),sizing:{height:32,width:32,magicOffset:16}}}),$o=(e,t,n)=>{const{font:r,fontState:o,background:a,border:i,padding:s}=e;return{display:"inline-block",maxWidth:"100%",whiteSpace:"normal",textOverflow:"ellipsis",...zn(),...E.padding(s),...E.font(ce.font({...r,color:(t==null?void 0:t.fontColor)??r.color})),...E.background(ce.background({...a,color:(t==null?void 0:t.bgColor)??a.color})),...E.border(ce.border({...i,color:(t==null?void 0:t.borderColor)??i.color})),...n?{...Hc("border","color","background"),"&:hover, &:focus, &:active, &.focus-visible":{...E.font(ce.font({color:(t==null?void 0:t.fontColorState)??(t==null?void 0:t.fontColor)??o.color})),...t!=null&&t.bgColorState?E.background(ce.background({color:t==null?void 0:t.bgColorState})):{},...E.border(ce.border({...i,color:(t==null?void 0:t.borderColorState)??o.color}))}}:{}}},Qme=re(function(){const e=wi(),t=lc();return{primary:(n=!1)=>S($o(e,t.primary,n),"label:Tags-styles-primary"),standard:(n=!1)=>S($o(e,t.standard,n),"label:Tags-styles-standard"),greyscale:(n=!1)=>S($o(e,t.greyscale,n),"label:Tags-styles-greyscale"),colored:(n=!1)=>S($o(e,t.colored,n),"label:Tags-styles-colored"),success:(n=!1)=>S($o(e,t.success,n),"label:Tags-styles-success"),error:(n=!1)=>S($o(e,t.error,n),"label:Tags-styles-error")}}),Pi=re((e,t)=>{const n=Is(e),r=ee(),o=Qh(t?{iconPosition:Ci.TOP}:void 0),a=S({...E.font(n.item.title.font),fontWeight:r.fonts.weights.semiBold,"&.isRead":{...E.font(n.item.title.fontRead)},"&:hover, &:focus, &:active":{...E.font(n.item.title.fontState)}},"label:DiscussionList-classes-title"),s=(()=>{switch(o.options.iconPosition){case Ci.TOP:return{top:"0",left:"75%"};case Ci.META:return{top:"20%",left:"75%"};default:return{top:"72.5%",left:"35%"}}})(),l=S({position:"absolute",...s},"label:DiscussionList-classes-voteCounterContainer"),c=S({backgroundColor:P.colorOut(r.states.hover.highlight)},"label:DiscussionList-classes-checkedboxRowStyle"),d={move:S({minHeight:w(70)},"label:DiscussionList-classes-move")},f=_8(),h=re((pe=1)=>S({position:"relative",...o.options.iconPosition===Ci.META?E.margin({right:f.sizing.width,bottom:pe>1?f.sizing.magicOffset:0}):{}},"label:DiscussionList-classes-iconAndVoteCounterWrapper")),m=re((pe=0)=>o.options.iconPosition!==Ci.META&&!n.item.featuredImage.display?S({...E.margin({bottom:pe>0?f.sizing.magicOffset*pe:0})},"label:DiscussionList-classes-voteCounterWrapper"):S({},"label:DiscussionList-classes-voteCounterWrapper")),g=S({...E.margin({horizontal:0})},"label:DiscussionList-classes-resolved"),p=S({width:"fit-content"},"label:DiscussionList-classes-bulkActionsToast"),v=S({display:"block",marginBottom:12,fontSize:r.fonts.size.medium,color:"#838691"},"label:DiscussionList-classes-bulkActionsText"),b=S({display:"flex",flexDirection:"row",justifyContent:"start","& > *":{...E.margin({horizontal:6}),"&:first-child":{marginLeft:0}}},"label:DiscussionList-classes-bulkActionsButtons"),y=S({paddingTop:0,paddingBottom:0,transform:"translateY(2px)"},"label:DiscussionList-classes-legacySelectAllCheckbox"),C=S({width:"100%"},"label:DiscussionList-classes-fullWidth"),D=S({borderStyle:"solid",borderWidth:2,borderColor:P.colorOut(r.mainColors.bg),borderRadius:"100%",background:P.colorOut(r.mainColors.bg)},"label:DiscussionList-classes-userIcon"),A=S({"&&&":{...E.padding({bottom:0,top:2}),...E.margin({right:8})}},"label:DiscussionList-classes-selectAllCheckBox"),T=S({display:"flex",alignItems:"center",justifyContent:"space-between","& > *:not(:first-child)":{paddingLeft:8},paddingBottom:16,"& > div":{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"@media(max-width: 600px)":{[`.${A}`]:{...E.padding({right:12})}}},"label:DiscussionList-classes-assetHeader"),B=S({...E.padding({vertical:24})},"label:DiscussionList-classes-filterBody"),j=S({display:"flex",alignItems:"center",...E.padding({right:1})},"label:DiscussionList-classes-filterContainer"),R=S({display:"flex",alignItems:"baseline","& > span":{paddingRight:8}},"label:DiscussionList-classes-filterAndSortingContainer"),N=S({whiteSpace:"nowrap"},"label:DiscussionList-classes-filterAndSortingLabel"),_=S({marginRight:"2rem"},"label:DiscussionList-classes-filterAndSortingDropdown"),U=S({display:"flex",alignItems:"center","& > svg":{...E.margin({horizontal:4})}},"label:DiscussionList-classes-filterAndSortingButton"),V=S({pointerEvents:"none"},"label:DiscussionList-classes-disablePointerEvents"),z=S($o(wi(),n.announcementTag,!1),"label:DiscussionList-classes-announcementTag"),Y=S($o(wi(),n.qnaStatusUnanswered,!1),"label:DiscussionList-classes-qnaStatusUnanswered"),te=S($o(wi(),n.qnaStatusAnswered,!1),"label:DiscussionList-classes-qnaStatusAnswered"),se=S($o(wi(),n.qnaStatusAccepted,!1),"label:DiscussionList-classes-qnaStatusAccepted"),he=S($o(wi(),n.closedTag,!1),"label:DiscussionList-classes-closedTag");return{title:a,iconAndVoteCounterWrapper:h,voteCounterWrapper:m,voteCounterContainer:l,checkedboxRowStyle:c,options:d,resolved:g,bulkActionsToast:p,bulkActionsButtons:b,bulkActionsText:v,legacySelectAllCheckbox:y,fullWidth:C,userIcon:D,assetHeader:T,selectAllCheckBox:A,filterBody:B,filterContainer:j,filterAndSortingContainer:R,filterAndSortingLabel:N,filterAndSortingDropdown:_,filterAndSortingButton:U,disablePointerEvents:V,announcementTag:z,closedTag:he,qnaStatusUnanswered:Y,qnaStatusAnswered:te,qnaStatusAccepted:se}});var Zme=0,Jme=function(){return++Zme},epe=function(){var t=x.useState(null),n=t[0],r=t[1];return x.useEffect(function(){return r(Jme())},[]),n},tpe=function(){},lu=function(t,n){return function(r){if(t&&t(r),!r.defaultPrevented)return n(r)}};function yb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function npe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rpe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var qm=function(t){t.initialState,t.getInitialState,t.refs,t.getRefs,t.didMount,t.didUpdate,t.willUnmount,t.getSnapshotBeforeUpdate,t.shouldUpdate,t.render;var n=rpe(t,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"]);return n},F8=function(e){npe(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=e.call.apply(e,[this].concat(a))||this,Cp(yb(r),"state",r.props.initialState||r.props.getInitialState(r.props)),Cp(yb(r),"_refs",r.props.refs||r.props.getRefs(r.getArgs())),Cp(yb(r),"_setState",function(){var s;return(s=r).setState.apply(s,arguments)}),Cp(yb(r),"_forceUpdate",function(){var s;return(s=r).forceUpdate.apply(s,arguments)}),r}var n=t.prototype;return n.getArgs=function(){var o=this.state,a=this.props,i=this._setState,s=this._forceUpdate,l=this._refs;return{state:o,props:qm(a),refs:l,setState:i,forceUpdate:s}},n.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},n.shouldComponentUpdate=function(o,a){return this.props.shouldUpdate?this.props.shouldUpdate({props:this.props,state:this.state,nextProps:qm(o),nextState:a}):!0},n.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:qm(this.props),refs:this._refs})},n.componentDidUpdate=function(o,a,i){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:qm(o),prevState:a}),i)},n.getSnapshotBeforeUpdate=function(o,a){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:qm(o),prevState:a})):null},n.render=function(){var o=this.props,a=o.children,i=o.render;return i?i(this.getArgs()):typeof a=="function"?a(this.getArgs()):a||null},t}(W.Component);Cp(F8,"defaultProps",{getInitialState:function(){},getRefs:function(){return{}}});var ope=function(t){var n=t.children,r=t.type,o=r===void 0?"reach-portal":r;return W.createElement(F8,{getRefs:function(){return{mountNode:null,portalNode:null}},didMount:function(i){var s=i.refs,l=i.forceUpdate,c=s.mountNode.ownerDocument;s.portalNode=c.createElement(o),c.body.appendChild(s.portalNode),l()},willUnmount:function(i){var s=i.refs.portalNode;s.ownerDocument.body.removeChild(s)},render:function(i){var s=i.refs,l=s.portalNode;return l?Rl.createPortal(n,l):W.createElement("div",{ref:function(d){return s.mountNode=d}})}})};function NE(){return NE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NE.apply(this,arguments)}var ape={border:0,clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,overflow:"hidden",position:"absolute"};function ipe(e){return W.createElement("div",NE({style:ape},e))}function W8(e,t){t===void 0&&(t=!0);var n=x.useState(null),r=n[0],o=n[1],a=x.useRef(null);return x.useLayoutEffect(function(){return!a.current&&e.current&&(a.current=yA(e.current,o)),t&&a.current.observe(),function(){return a.current.unobserve()}},[t]),r}var cu;function gg(){return gg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gg.apply(this,arguments)}function z8(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var al="idle",dl="focused",Ca="visible",Pu="leavingVisible",Cf="dismissed",LE={initial:al,states:(cu={},cu[al]={enter:x2,on:{mouseenter:dl,focus:Ca}},cu[dl]={enter:cpe,leave:upe,on:{mousemove:dl,mouseleave:al,mousedown:Cf,blur:al,rest:Ca}},cu[Ca]={on:{focus:dl,mouseenter:dl,mouseleave:Pu,blur:Pu,mousedown:Cf,selectWithKeyboard:Cf,globalMouseMove:Pu}},cu[Pu]={enter:dpe,leave:function(){fpe(),x2()},on:{mouseenter:Ca,focus:Ca,timecomplete:al}},cu[Cf]={leave:function(){hc.id=null},on:{mouseleave:al,blur:al}},cu)},hc={id:null},Zo=LE.initial;function il(e,t){var n=LE.states[Zo],r=n.on[e];if(!r)throw new Error('Unknown state for action "'+e+'" from state "'+Zo+'"');n.leave&&n.leave(),t&&(hc=t);var o=LE.states[r];o.enter&&o.enter(),Zo=r,lpe()}var S0=[];function spe(e){return S0.push(e),function(){S0.splice(S0.indexOf(e),1)}}function lpe(){S0.forEach(function(e){return e(Zo,hc)})}var $E;function cpe(){clearTimeout($E),$E=setTimeout(function(){return il("rest")},100)}function upe(){clearTimeout($E)}var ME;function dpe(){clearTimeout(ME),ME=setTimeout(function(){return il("timecomplete")},500)}function fpe(){clearTimeout(ME)}function x2(){hc.id=null}function hpe(e){var t=e===void 0?{}:e,n=t.onMouseEnter,r=t.onMouseMove,o=t.onMouseLeave,a=t.onFocus,i=t.onBlur,s=t.onKeyDown,l=t.onMouseDown,c=t.ref,d=t.DEBUG_STYLE,f="tooltip:"+epe(),h=x.useState(d?!0:hc.id===f&&Zo===Ca),m=h[0],g=h[1],p=x.useRef(),v=c||p,b=W8(v,m);x.useEffect(function(){return spe(function(){hc.id===f&&(Zo===Ca||Zo===Pu)?g(!0):g(!1)})},[f]),x.useEffect(function(){return tpe()});var y=function(){switch(Zo){case al:case Ca:case Pu:il("mouseenter",{id:f})}},C=function(){switch(Zo){case dl:il("mousemove",{id:f})}},D=function(U){if(!window.__REACH_DISABLE_TOOLTIPS)switch(Zo){case al:case Ca:case Pu:il("focus",{id:f})}},A=function(){switch(Zo){case dl:case Ca:case Cf:il("mouseleave")}},T=function(){if(hc.id===f)switch(Zo){case dl:case Ca:case Cf:il("blur")}},B=function(){if(hc.id===f)switch(Zo){case dl:case Ca:il("mousedown")}},j=function(U){if(U.key==="Enter"||U.key===" "||U.key==="Escape")switch(Zo){case Ca:il("selectWithKeyboard")}},R={"aria-describedby":m?f:void 0,"data-reach-tooltip-trigger":"",ref:v,onMouseEnter:lu(n,y),onMouseMove:lu(r,C),onFocus:lu(a,D),onBlur:lu(i,T),onMouseLeave:lu(o,A),onKeyDown:lu(s,j),onMouseDown:lu(l,B)},N={id:f,triggerRect:b,isVisible:m};return[R,N,m]}var mpe=x.forwardRef(function(t,n){var r=t.label,o=t.ariaLabel,a=t.position,i=t.isVisible,s=t.id,l=t.triggerRect,c=z8(t,["label","ariaLabel","position","isVisible","id","triggerRect"]);return i?W.createElement(ope,null,W.createElement(ppe,gg({label:r,ariaLabel:o,position:a,isVisible:i,id:s,triggerRect:l,ref:n},c))):null}),ppe=x.forwardRef(function(t,n){var r=t.label,o=t.ariaLabel,a=t.position,i=a===void 0?vpe:a,s=t.isVisible,l=t.id,c=t.triggerRect,d=t.style,f=z8(t,["label","ariaLabel","position","isVisible","id","triggerRect","style"]),h=o!=null,m=x.useRef(),g=W8(m,s);return W.createElement(x.Fragment,null,W.createElement("div",gg({"data-reach-tooltip":!0,role:h?void 0:"tooltip",id:h?void 0:l,children:r,style:gg({},d,{},gpe(i,c,g)),ref:function(v){m.current=v,n&&n(v)}},f)),h&&W.createElement(ipe,{role:"tooltip",id:l},o))}),dS=8,gpe=function(t,n,r){var o=!r;return o?{visibility:"hidden"}:t(n,r)},vpe=function(t,n){var r={top:t.top-n.height<0,right:window.innerWidth<t.left+n.width,bottom:window.innerHeight<t.bottom+n.height+dS,left:t.left-n.width<0},o=r.right&&!r.left,a=r.bottom&&!r.top;return{left:o?t.right-n.width+window.pageXOffset+"px":t.left+window.pageXOffset+"px",top:a?t.top-dS-n.height+window.pageYOffset+"px":t.top+dS+t.height+window.pageYOffset+"px"}};const $O=re(()=>{const e=qe("toolTips");ee();const t=e("sizes",{min:150,max:320}),n=e("nub",{width:12});return{sizes:t,nub:n}}),H8=re(e=>{const t=Tt("toolTip"),n=ee(),r=$O(),o=Un(),a=t("content",{position:"relative",display:"inline-flex","& *":{pointerEvents:"none"}}),i=t("noPointerTrigger",{pointerEvents:je("initial"),position:"absolute",top:Z(50),left:Z(50),minWidth:Le(45),minHeight:Le(45),transform:"translate(-50%, -50%)",zIndex:1}),s=t("box",{position:"absolute",...E.font({...n.fontSizeAndWeightVars("medium"),lineHeight:n.lineHeights.base}),minWidth:e??w(r.sizes.min),maxWidth:w(r.sizes.max),backgroundColor:P.colorOut(n.mainColors.bg),...E.border(),...E.padding({all:n.fonts.size.medium}),...o.toolbar()}),l=(h=1)=>S({zIndex:h},"label:toolTipStyles-boxStackingLevel"),c=t("nubPosition",{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",width:w(r.nub.width*2),height:w(r.nub.width*2),transform:gl("-50%"),marginLeft:w(r.nub.width),pointerEvents:"none",...zn()}),d=(h=1)=>S({zIndex:h+1},"label:toolTipStyles-nubStackingLevel"),f=t("nub",{position:"relative",display:"block",width:w(r.nub.width),height:w(r.nub.width),borderTop:wt({width:n.border.width}),borderRight:wt({width:n.border.width}),boxShadow:n.overlay.dropShadow,background:P.colorOut(n.mainColors.bg),zIndex:1,"&.isUp":{transform:"rotate(-45deg)"},"&.isDown":{transform:"rotate(135deg)"}});return{box:s,nub:f,nubPosition:c,noPointerContent:a,noPointerTrigger:i,nubStackingLevel:d,boxStackingLevel:l}}),bpe=(e,t)=>{const n=$O(),r=ee(),o=e.top-n.nub.width*2+r.border.width*2+window.scrollY,a=e.bottom-r.border.width*2+window.scrollY;return{left:e.left+e.width/2-n.nub.width,top:t?o:a}};function ype(e){const t=ee(),{children:n,label:r,ariaLabel:o,customZIndex:a,customWidth:i}=e,{zIndex:s}=ja(),[l,c]=hpe(),{isVisible:d,triggerRect:f}=c,[h,m]=x.useState(!1),g=H8(i),p=$O(),v=t.border.width*2,b=(C,D)=>{const A=p.nub.width/2,B=C.left+C.width/2-D.width/2,j=window.innerWidth-D.width-2,R=C.bottom+D.height+A>window.innerHeight;m(R);const N=C.top-D.height+v-p.nub.width+window.scrollY,_=C.bottom-v+p.nub.width+window.scrollY;return{left:Math.min(Math.max(2,B),j)+window.scrollX,top:R?N:_}},y=xpe();return u.jsx(u.Fragment,{children:u.jsxs(Ps,{children:[x.cloneElement(n,l),d&&!y&&f&&u.jsxs(u.Fragment,{children:[u.jsx(doe,{children:u.jsx("div",{className:ge(g.nubPosition,g.nubStackingLevel(a??s)),style:bpe(f,h),children:u.jsx("div",{className:ae(g.nub,h?"isDown":"isUp")})})}),u.jsx(mpe,{...c,label:r,"aria-label":o||r,position:b,className:ge(g.box,g.boxStackingLevel(a??s))})]})]})})}function xpe(){let e=x.useRef(null);const[t,n]=x.useState(!1);return x.useEffect(()=>{const r=g1(()=>{e.current&&clearTimeout(e.current),n(!0),e.current=setTimeout(()=>{n(!1)},200)},100);return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[]),t}function In(e){const{children:t,...n}=e;return u.jsx(ype,{...n,children:t})}const ky=W.forwardRef(function(t,n){const r=H8();return u.jsxs("span",{...t,ref:n,tabIndex:0,className:ge(r.noPointerContent,t.className),children:[u.jsx("span",{className:r.noPointerTrigger}),t.children]})});function Cpe(e){const{selectedIDs:t,handleSelectionClear:n,handleBulkDelete:r,handleBulkMove:o,handleBulkMerge:a,handleBulkClose:i}=e,s=Pi(),l=x.useMemo(()=>t.map(p=>Number(p)),[t]),c=l.length,d=LO(l??[]),{hasPermission:f}=mr(),h=(p,v)=>v?Object.values(v).map(b=>f(p,{resourceType:"category",mode:xs.RESOURCE_IF_JUNCTION,resourceID:b.categoryID})?null:b.name).filter(b=>b):[],m=x.useMemo(()=>d?Object.values(d).filter(({closed:v})=>!v).length===0:!1,[d]),g=x.useMemo(()=>h("discussions.manage",d),[d]);return u.jsxs(u.Fragment,{children:[u.jsx("span",{className:s.bulkActionsText,children:u.jsx(dn,{source:"You have selected <0/> discussions.",c0:t.length})}),u.jsxs("div",{className:s.bulkActionsButtons,children:[u.jsx(ut,{onClick:n,buttonType:ye.TEXT,children:k("Cancel")}),u.jsx(Hn,{condition:g.length>0,component:In,componentProps:{label:`${k("You don’t have the edit permission on the following discussions:")} ${g.join(", ")}`},children:u.jsx("span",{children:u.jsx(ut,{onClick:o,buttonType:ye.TEXT,disabled:g.length>0,children:k("Move")})})}),u.jsx(Hn,{condition:g.length>0||c<2,component:In,componentProps:{label:c<2?k("You must select at least 2 discussions to merge."):`${k("You don’t have the edit permission on the following discussions:")} ${g.join(", ")}`},children:u.jsx("span",{children:u.jsx(ut,{onClick:a,buttonType:ye.TEXT,disabled:g.length>0||c<2,children:k("Merge")})})}),u.jsx(Hn,{condition:g.length>0,component:In,componentProps:{label:`${k("You don't have the close permission on the following discussions:")} ${g.join(", ")}`},children:u.jsx("span",{children:u.jsx(ut,{onClick:i,buttonType:ye.TEXT,disabled:g.length>0||m,children:k("Close")})})}),u.jsx(Hn,{condition:g.length>0,component:In,componentProps:{label:`${k("You don’t have the delete permission on the following discussions:")} ${g.join(", ")}`},children:u.jsx("span",{children:u.jsx(ut,{onClick:r,buttonType:ye.TEXT,disabled:g.length>0,children:k("Delete")})})})]})]})}const wpe=re(()=>{const e=ee(),t=qe("loader"),n=t("colors",{fg:e.mainColors.primary}),r=t("fullPage",{size:100,thickness:6,color:n.fg}),o=t("medium",{size:50,thickness:4,color:n.fg}),a=t("small",{size:36,thickness:4,color:n.fg});return{fullPage:r,small:a,medium:o}}),Pr=re(()=>{const e=wpe(),t=wo(),n=Tt("loader"),r=n("fullPageLoader",{position:"fixed",top:0,left:0,right:0,bottom:0,margin:"auto",height:w(e.fullPage.size),width:w(e.fullPage.size),"&:after":{...tS(e.fullPage)},zIndex:1}),o=n("mediumLoader",{...E.absolute.fullSizeOfParent(),...t.middle(),height:Z(100),width:Z(100),"&:after":{...tS(e.medium)}}),a=n("smallLoader",{...t.middle(),height:Z(46),width:Z(46),margin:"auto","&:after":{...tS(e.small)}});return{fullPageLoader:r,mediumLoader:o,smallLoader:a,loaderContainer:s=>n("loaderContainer",{position:"relative",display:"block",margin:"auto",height:w(s),width:w(s)})}});class pr extends W.Component{constructor(){super(...arguments);q(this,"state",{showLoader:!1});q(this,"timeout")}render(){if(this.props.minimumTime&&this.props.minimumTime>0&&!this.state.showLoader)return null;const n=this.props.small?Pr().smallLoader:this.props.loaderStyleClass||Pr().fullPageLoader;return u.jsx(W.Fragment,{children:u.jsxs(Hn,{condition:!!this.props.padding||!!this.props.size,className:ae(this.props.padding&&S({padding:w(this.props.padding)},"label:Loader-styleClass"),this.props.size&&Pr().loaderContainer(this.props.size)),children:[u.jsx("div",{className:n,"aria-hidden":"true"}),u.jsx(Cr,{children:u.jsx("p",{children:k("Loading")})})]})})}componentDidMount(){const n=this.props.minimumTime||150;this.timeout=setTimeout(()=>{this.setState({showLoader:!0})},n)}componentWillUnmount(){this.timeout&&clearTimeout(this.timeout)}}const Spe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/BulkDeleteDiscussionsForm.loadable.1SaZn4cj.min.js"),__vite__mapDeps([5,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),Dpe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/BulkMergeDiscussionsForm.loadable.CpnYBYG5.min.js"),__vite__mapDeps([6,1,7]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),Epe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/BulkMoveDiscussionsForm.loadable.BiWrSh2I.min.js"),__vite__mapDeps([8,1,7,9,10]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),Ipe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/BulkCloseDiscussionsForm.loadable.D2nvd3-u.min.js"),__vite__mapDeps([11,1,7]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});var _E;(function(e){e.FULL_SCREEN="full screen",e.MODAL_AS_SIDE_PANEL_RIGHT="render as full screen side panel from right",e.MODAL_AS_SIDE_PANEL_RIGHT_LARGE="render as full screen side panel from right large",e.MODAL_AS_SIDE_PANEL_LEFT="render as full screen side panel from left",e.MODAL_AS_DROP_DOWN="render as drop down",e.XL="xl",e.XXL="xxl",e.LARGE="large",e.MEDIUM="medium",e.SMALL="small"})(_E||(_E={}));const jt=_E,w1=re(()=>{const e=Tn(),t=ee(),n=qe("dropDown"),r=n("sizing",{widths:{default:250,medium:300}}),o=n("spacer",{margin:{vertical:8}}),a=n("metas",{font:ce.font({size:e.font.size,color:e.font.color}),padding:{vertical:6,horizontal:14}}),i=n("item",{minHeight:30,mobile:{minHeight:44,fontSize:16},padding:{top:6,horizontal:14}}),s=n("sectionTitle",{padding:{top:0,bottom:0}}),l=n("title",{color:t.mainColors.fg}),c=n("contents",{bg:t.mainColors.bg,fg:t.mainColors.fg,border:t.borderType.dropDowns,padding:{vertical:9,horizontal:16}});return{sizing:r,metas:a,item:i,sectionTitle:s,spacer:o,title:l,contents:c}}),Rr=re(()=>{const e=w1(),t=Tn(),n=ee(),r=Un(),o=Ht().mediaQueries(),a=S({position:"relative",listStyle:"none"},"label:dropDownStyles-root"),i={minWidth:w(e.sizing.widths.default),backgroundColor:P.colorOut(e.contents.bg),color:P.colorOut(e.contents.fg),overflow:"auto",...E.border(e.contents.border),...ld(e.contents.bg,E.border(e.contents.border),r.dropDown()),"&&":{zIndex:3,...E.border(e.contents.border)},"&.isMedium":{width:w(e.sizing.widths.medium)}},s=S(i,"label:dropDownStyles-contentsBox"),l=S({position:"absolute",...i,"&.isParentWidth":{minWidth:"initial",left:e.item.padding.horizontal*-1,right:`${Wn(e.item.padding.horizontal)*-1}px!important`,width:`calc(100% + ${Wn(e.item.padding.horizontal)*2}px)`},"&.isOwnWidth":{width:"initial"},"&.isRightAligned":{right:0,top:0},".frame":{boxShadow:"none"},"&.noMinWidth":{minWidth:0},"&.hasVerticalPadding":{...E.padding({vertical:12,horizontal:je(0)})},".tokens__group":{...E.padding({vertical:8}),...E.border({width:0,top:{width:1,radius:0}}),"&:first-of-type":{border:0},".tokens__group-heading":{width:"100%",textAlign:"center",fontSize:"0.875em",color:"inherit",opacity:.75}},".suggestedTextInput-option":{...E.padding({all:8}),width:"100%","& > .suggestedTextInput-head":{display:"flex",justifyContent:"space-between"},"&:hover, &.isFocused":{background:n.states.hover.highlight.toString()}}},o.oneColumnDown({"&.isOwnWidth":{width:Z(100)}}),"label:dropDownStyles-contents"),c=S({"&.hasVerticalPadding":E.padding({vertical:12})},"label:dropDownStyles-asModal"),d=S({...r.dropDown(),backgroundColor:P.colorOut(n.mainColors.bg),...E.border(e.contents.border)},"label:dropDownStyles-likeDropDownContent"),f=S({padding:0,...E.font({...n.fontSizeAndWeightVars("medium")})},o.oneColumnDown({...E.padding({vertical:9})}),"label:dropDownStyles-items"),h=S({"&&":{display:"block"},...E.padding(e.metas.padding)},"label:dropDownStyles-metaItems"),m=S({"& + &":{paddingTop:w(e.item.padding.top)},...E.font(e.metas.font)},"label:dropDownStyles-metaItem"),g=S({marginLeft:n.gutter.size,...E.padding({vertical:n.gutter.quarter,horizontal:n.gutter.half}),backgroundColor:P.colorOut(e.contents.fg.fade(.4)),color:P.colorOut(n.elementaryColors.white),borderRadius:n.border.radius},"label:dropDownStyles-badge"),p=S({...zn("none"),display:"flex",alignItems:"center",justifyContent:"flex-start",width:Z(100),margin:0,color:"inherit",textAlign:"start",lineHeight:n.lineHeights.condensed},"label:dropDownStyles-item"),v=S({display:"block"},"label:dropDownStyles-section"),b=S({...pW({allStates:{color:P.colorOut(n.mainColors.primary)}})},"label:dropDownStyles-toggleButtonIcon"),y=S({"&&":U8()},"label:dropDownStyles-action"),C=S({"&&":{color:je(P.colorOut(n.links.colors.active)),fontWeight:je(n.fonts.weights.bold)}},"label:dropDownStyles-actionActive"),D=S({display:"flex",flex:1},"label:dropDownStyles-text"),A=S({listStyle:"none",height:w(n.separator.size),backgroundColor:P.colorOut(n.separator.color),...E.margin(e.spacer.margin),border:"none","&:first-child":{height:0,...E.margin({all:0,top:e.spacer.margin.vertical*1.5})},"& + &, &:last-child, &:first-child":{display:"none"}},"label:dropDownStyles-separator"),T=S({display:"flex",alignItems:"flex-start"},"label:dropDownStyles-panelNavItems"),B=S({backgroundColor:P.colorOut(e.contents.bg),...E.absolute.fullSizeOfParent(),zIndex:2},"label:dropDownStyles-panel"),j={"& li":{paddingLeft:je(w(0))},"&&":{position:"relative",height:"initial",zIndex:0}},R=S(j,"label:dropDownStyles-panelFirst"),N=S({"&&":{}},"label:dropDownStyles-panelLast"),_=S({flex:1,"&.isNested":{}},"label:dropDownStyles-panelContent"),U=S({display:"block",position:"relative"},"label:dropDownStyles-sectionContents"),V=S({"&&":{...E.font({...n.fontSizeAndWeightVars("small","semiBold"),color:P.colorOut(t.font.color),transform:"uppercase",align:"center"}),...E.padding(e.sectionTitle.padding)},[`& + .${U} li:first-child`]:{paddingTop:w(e.spacer.margin.vertical)}},"label:dropDownStyles-sectionHeading"),z=S({display:"flex",alignItems:"center",height:w(44)},"label:dropDownStyles-headingContentContainer"),Y=S({flex:"auto"},"label:dropDownStyles-headingTitleContainer"),te=S({"&&":{padding:w(n.gutter.quarter)}},"label:dropDownStyles-arrow"),se=S({marginRight:n.gutter.half},"label:dropDownStyles-actionIcon"),he=S({"&&":{zIndex:2,minHeight:w(e.item.minHeight),transform:"translateX(12px)"}},o.oneColumnDown({"&&":{minHeight:w(e.item.mobile.minHeight),minWidth:w(e.item.mobile.minHeight),transform:"none"}}),"label:dropDownStyles-backButton"),pe=S({...E.font({...n.fontSizeAndWeightVars("small")}),paddingLeft:"1em",marginLeft:"auto"},"label:dropDownStyles-count"),K=S({...E.padding({vertical:e.contents.padding.vertical,horizontal:0})},o.oneColumnDown({...E.padding({vertical:0})}),"label:dropDownStyles-verticalPadding"),O=S({...E.padding({vertical:0})},"label:dropDownStyles-noVerticalPadding"),le=S({...E.font({...n.fontSizeAndWeightVars("medium","semiBold"),lineHeight:n.lineHeights.condensed}),...E.padding({all:0}),...E.margin({all:0}),textAlign:"start",flexGrow:1,color:P.colorOut(e.title.color)},"label:dropDownStyles-title"),be=S({...E.padding(e.contents.padding)},"label:dropDownStyles-paddedFrame"),H=S({color:P.colorOut(n.mainColors.primary),transform:"translateX(4px)"},"label:dropDownStyles-check"),ie=e.item.padding.horizontal+n.border.width,oe=S({transform:"translateX(-50%)"},"label:dropDownStyles-contentOffsetCenter"),ve=S({transform:`translateX(${w(ie)})`},"label:dropDownStyles-contentOffsetLeft"),$e=S({transform:`translateX(${Ta(ie)})`},"label:dropDownStyles-contentOffsetRight"),Ne=S({...bv(),...E.absolute.srOnly()},"label:dropDownStyles-positioning"),Ze=S({display:"inline-block",marginRight:w(12)},"label:dropDownStyles-closeButton"),ze=S({paddingLeft:n.gutter.size},"label:dropDownStyles-itemButton"),Xe=S({display:"inline-block",marginTop:8},"label:dropDownStyles-thumbnailItemLabel"),Me=S({display:"inline-block",border:"1px solid #dddee0",borderRadius:6},"label:dropDownStyles-thumbnailItemThumbnail"),Je=S({width:220,height:186,padding:6,borderRadius:6,display:"inline-block",cursor:"pointer","&:hover,&active,&:focus,&.focus-visible":{[`.${Me}`]:{borderColor:P.colorOut(n.mainColors.primary),background:P.colorOut(n.mainColors.primary.fade(.1))}}},"label:dropDownStyles-thumbnailItem"),pt=S({width:154,height:166,"& svg":{width:140,height:126}},"label:dropDownStyles-thumbnailItemSmall"),ot=S({width:680,padding:"0 10px"},"label:dropDownStyles-gridItem"),Et=S({display:"flex",flexWrap:"wrap",justifyContent:"center",width:"100%"},"label:dropDownStyles-gridItemSmall"),Vt=S({width:"initial",padding:"0px",color:P.colorOut(n.mainColors.primary)},"label:dropDownStyles-loader");return{root:a,contents:l,contentsBox:s,asModal:c,likeDropDownContent:d,items:f,metaItems:h,metaItem:m,item:p,section:v,toggleButtonIcon:b,action:y,actionIcon:se,actionActive:C,text:D,separator:A,sectionHeading:V,sectionContents:U,count:pe,arrow:te,verticalPadding:K,title:le,noVerticalPadding:O,paddedFrame:be,panelFirst:R,panelLast:N,panelNavItems:T,panel:B,panelContent:_,backButton:he,check:H,contentOffsetCenter:oe,contentOffsetLeft:ve,contentOffsetRight:$e,positioning:Ne,closeButton:Ze,itemButton:ze,headingContentContainer:z,headingTitleContainer:Y,thumbnailItem:Je,thumbnailItemSmall:pt,thumbnailItemLabel:Xe,thumbnailItemThumbnail:Me,gridItem:ot,gridItemSmall:Et,badge:g,loader:Vt}}),U8=e=>{const t=w1(),n=ee(),r=Ht().mediaQueries();return{...ei(),cursor:"pointer",appearance:"none",display:"flex",alignItems:"center",width:Z(100),textAlign:"start",minHeight:w(t.item.minHeight),lineHeight:n.lineHeights.condensed,fontWeight:n.fonts.weights.normal,...E.padding({vertical:4,horizontal:t.item.padding.horizontal}),...E.border({color:Za(0,0,0,0),radius:0}),color:P.colorOut(t.contents.fg,{makeImportant:!0}),...zn("none"),...pW({allStates:{textShadow:"none",outline:0},hover:{backgroundColor:je(P.colorOut(n.states.hover.highlight)),color:n.states.hover.contrast?P.colorOut(n.states.hover.contrast):void 0},focus:{backgroundColor:je(P.colorOut(n.states.focus.highlight)),color:n.states.hover.contrast?P.colorOut(n.states.focus.contrast):void 0},active:{backgroundColor:je(P.colorOut(n.states.active.highlight)),color:n.states.hover.contrast?P.colorOut(n.states.active.contrast):void 0},keyboardFocus:{borderColor:P.colorOut(n.states.focus.highlight),color:n.states.hover.contrast?P.colorOut(n.states.focus.contrast):void 0}},void 0,e),...r.oneColumnDown({fontSize:w(t.item.mobile.fontSize),minHeight:w(t.item.mobile.minHeight)})}},Tpe=re(()=>{const e=ee(),t=qe("modal"),{elementaryColors:n}=e,r=t("colors",{fg:e.mainColors.fg,bg:e.mainColors.bg,overlayBg:e.mainColors.fg.lightness()>.5?n.white.fade(.4):n.black.fade(.4)}),o=t("sizing",{xl:1022,xxl:1320,large:720,medium:516,small:375,height:Z(96),zIndex:1050}),a=t("spacing",{horizontalMargin:40}),i=t("border",{radius:e.borderType.modals.radius}),s=t("dropDown",{padding:e.spacer.size}),l=t("header",{minHeight:60,verticalPadding:12,boxShadow:`0 1px 2px 0 ${P.colorOut(e.overlay.bg)}`}),c=t("footer",{minHeight:l.minHeight,verticalPadding:l.verticalPadding,boxShadow:`0 -1px 2px 0 ${P.colorOut(e.overlay.bg)}`}),d=t("fullScreenModalTitle",{gap:52});return{colors:r,sizing:o,spacing:a,border:i,dropDown:s,header:l,footer:c,fullScreenTitleSpacing:d}}),Ape=re(()=>{const e=ee(),t=Tpe(),n=Tt("modal"),r=Ht().mediaQueries(),o=Un(),a=Nn(),i=re((v=1050)=>S({zIndex:v+1,position:"absolute"},"label:modalStyles-stackingZindex")),s={position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},l=n("overlayScrim",{...s,background:P.colorOut(t.colors.overlayBg)}),c=n("overlayContent",{...s}),d={left:w(t.dropDown.padding),width:it(`100% - ${w(t.dropDown.padding)}`),display:"flex",flexDirection:"column",top:0,bottom:0,transform:"none",borderTopRightRadius:0,borderBottomRightRadius:0,maxWidth:400,[`.${Rr().action}`]:{fontWeight:e.fonts.weights.normal}},f=n({display:"flex",flexDirection:"column",width:Z(100),maxWidth:Z(100),maxHeight:w(t.sizing.height),zIndex:1,backgroundColor:P.colorOut(t.colors.bg),color:P.colorOut(t.colors.fg),position:"fixed",bottom:"initial",overflow:"hidden",borderRadius:w(t.border.radius),transform:"translate3d(0,0,0)",...E.margin({all:"auto"}),"&&.isFullScreen":{width:Z(100),height:Z(100),maxHeight:Z(100),maxWidth:Z(100),borderRadius:0,border:"none",top:0,bottom:0,transform:"none",left:0,right:0},"&.isXL":{width:w(t.sizing.xl),height:Z(100),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`)},"&.isXXL":{width:w(t.sizing.xxl),height:Z(100),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`)},"&.isLarge":{width:w(t.sizing.large),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`)},"&.isMedium":{width:w(t.sizing.medium),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`)},"&.isSmall":{width:w(t.sizing.small),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`)},"&&&.isSidePanelRight":{...d,right:0,left:"initial"},"&&&.isSidePanelRightLarge":{...d,right:0,left:"initial",width:w(t.sizing.xl),maxWidth:it(`100% - ${w(t.spacing.horizontalMargin)}`),height:Z(100),maxHeight:Z(100),top:0,bottom:0},"&&&.isSidePanelLeft":{...d,left:0,right:"initial"},"&&.isDropDown":{top:0,left:0,right:0,width:Z(100),marginBottom:"auto",transform:"none",maxHeight:it(`100% - ${w(e.gutter.size)}`),borderTopLeftRadius:0,borderTopRightRadius:0,border:"none"},"&.isShadowed":{...o.dropDown(),...E.border(e.borderType.modals)},"&.noTransform":{transform:"none !important"},"&.isFixHeight":{height:Z(80),...r.xs({height:Z(96)})}}),h=n("scroll",{width:Z(100),height:Z(100),maxHeight:Z(100),overflow:"auto"}),m=n("content",o.modal()),g=n("pageHeader",Hh(),{...o.embed(),top:0,display:"flex",alignItems:"center",justifyContent:"center",height:w(a.sizing.height),minHeight:w(a.sizing.height),zIndex:2,background:P.colorOut(t.colors.bg),"&.noShadow":{boxShadow:"none"}},r.oneColumnDown({height:w(a.sizing.mobile.height),minHeight:w(a.sizing.mobile.height)})),p=n("frameWrapper",{position:"relative",display:"flex",flexDirection:"column",height:Z(100),maxHeight:Z(100),minHeight:Z(0),width:Z(100),".frame":{maxHeight:"100%",flex:1}});return{root:f,scroll:h,content:m,pageHeader:g,overlayScrim:l,overlayContent:c,frameWrapper:p,stackingZindex:i}});var xv={},MO={},V8={exports:{}};(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(V8);var Zh=V8.exports,Cv={},Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.pipe=Tr.listenerOptions=void 0;Tr.preventTouchMove=Ope;Tr.allowTouchMove=Bpe;Tr.preventInertiaScroll=kpe;Tr.isTouchDevice=Ppe;Tr.camelToKebab=Rpe;Tr.parse=jpe;Tr.getPadding=Lpe;Tr.getWindowHeight=$pe;Tr.getDocumentHeight=Mpe;Tr.makeStyleTag=_pe;Tr.injectStyles=Fpe;Tr.insertStyleTag=Wpe;var Ed=Zh;Tr.listenerOptions={capture:!1,passive:!1};function Ope(e){return e.preventDefault(),!1}function Bpe(e){var t=e.currentTarget;return t.scrollHeight>t.clientHeight?(e.stopPropagation(),!0):(e.preventDefault(),!1)}function kpe(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ppe(){return Ed.canUseDOM?"ontouchstart"in window||navigator.maxTouchPoints:!1}function Rpe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function jpe(e){return isNaN(e)?e:e+"px"}var Npe=function(t,n){return function(){return n(t.apply(void 0,arguments))}};Tr.pipe=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(Npe)};function Lpe(){if(!Ed.canUseDOM)return 0;var e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}function $pe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(Ed.canUseDOM)return window.innerHeight*e}function Mpe(){if(Ed.canUseDOM)return document.body.clientHeight}function _pe(){if(Ed.canUseDOM){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-react-scrolllock",""),e}}function Fpe(e,t){Ed.canUseDOM&&(e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)))}function Wpe(e){if(Ed.canUseDOM){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}}Object.defineProperty(Cv,"__esModule",{value:!0});Cv.TouchScrollable=void 0;var zpe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hpe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C2=x,w2=Zh,Xl=Tr;function Upe(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Vpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Gpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Cv.TouchScrollable=function(e){Gpe(t,e);function t(){var n,r,o,a;Vpe(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(r=(o=S2(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.getScrollableArea=function(c){o.scrollableArea=c},r),S2(o,a)}return Hpe(t,[{key:"componentDidMount",value:function(){w2.canUseEventListeners&&(this.scrollableArea.addEventListener("touchstart",Xl.preventInertiaScroll,Xl.listenerOptions),this.scrollableArea.addEventListener("touchmove",Xl.allowTouchMove,Xl.listenerOptions))}},{key:"componentWillUnmount",value:function(){w2.canUseEventListeners&&(this.scrollableArea.removeEventListener("touchstart",Xl.preventInertiaScroll,Xl.listenerOptions),this.scrollableArea.removeEventListener("touchmove",Xl.allowTouchMove,Xl.listenerOptions))}},{key:"render",value:function(){var r=this.props,o=r.children,a=Upe(r,["children"]);return typeof o=="function"?o(this.getScrollableArea):(0,C2.cloneElement)(o,zpe({ref:this.getScrollableArea},a))}}]),t}(C2.PureComponent);var _O={};Object.defineProperty(_O,"__esModule",{value:!0});var Ype=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();_O.default=Zpe;var G8=x,Kpe=qpe(G8),Xm=Tr;function qpe(e){return e&&e.__esModule?e:{default:e}}function Xpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Qpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function Zpe(e){return function(t){Qpe(n,t);function n(){var r,o,a,i;Xpe(this,n);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=(o=(a=D2(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(l))),a),a.addSheet=function(){var d=a.getStyles(),f=(0,Xm.makeStyleTag)();f&&((0,Xm.injectStyles)(f,d),(0,Xm.insertStyleTag)(f),a.sheet=f)},a.getStyles=function(){var d=a.props.accountForScrollbars,f=(0,Xm.getDocumentHeight)(),h=d?(0,Xm.getPadding)():null,m=`body {
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        `+(f?"height: "+f+"px !important;":"")+`
        `+(h?"padding-right: "+h+"px !important;":"")+`
      }`;return m},o),D2(a,i)}return Ype(n,[{key:"componentDidMount",value:function(){this.addSheet()}},{key:"removeSheet",value:function(){this.sheet&&(this.sheet.parentNode.removeChild(this.sheet),this.sheet=null)}},{key:"componentWillUnmount",value:function(){this.removeSheet()}},{key:"render",value:function(){return Kpe.default.createElement(e,this.props)}}]),n}(G8.PureComponent)}var FO={};Object.defineProperty(FO,"__esModule",{value:!0});var Jpe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();FO.default=age;var Y8=x,ege=tge(Y8),E2=Zh,Kd=Tr;function tge(e){return e&&e.__esModule?e:{default:e}}function nge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rge(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function oge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function age(e){return function(t){oge(n,t);function n(){return nge(this,n),rge(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return Jpe(n,[{key:"componentDidMount",value:function(){!E2.canUseDOM||!(0,Kd.isTouchDevice)()||document.addEventListener("touchmove",Kd.preventTouchMove,Kd.listenerOptions)}},{key:"componentWillUnmount",value:function(){!E2.canUseDOM||!(0,Kd.isTouchDevice)()||document.removeEventListener("touchmove",Kd.preventTouchMove,Kd.listenerOptions)}},{key:"render",value:function(){return ege.default.createElement(e,this.props)}}]),n}(Y8.PureComponent)}Object.defineProperty(MO,"__esModule",{value:!0});var ige=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),K8=x,q8=WO(K8),sge=Zh,lge=Cv,cge=_O,uge=WO(cge),dge=FO,fge=WO(dge),hge=Tr;function WO(e){return e&&e.__esModule?e:{default:e}}function mge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pge(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vge=function(e){gge(t,e);function t(){return mge(this,t),pge(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ige(t,[{key:"componentDidMount",value:function(){sge.canUseDOM&&(this.initialHeight=window.innerHeight)}},{key:"componentWillUnmount",value:function(){var r=window.innerHeight-this.initialHeight;r&&window.scrollTo(0,window.pageYOffset+r),this.initialHeight=window.innerHeight}},{key:"render",value:function(){var r=this.props.children;return r?q8.default.createElement(lge.TouchScrollable,null,r):null}}]),t}(K8.PureComponent),bge=(0,hge.pipe)(fge.default,uge.default),yge=bge(vge),X8=function(t){return t.isActive?q8.default.createElement(yge,t):t.children};X8.defaultProps={accountForScrollbars:!0,children:null,isActive:!0};MO.default=X8;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=MO;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(t).default}});var n=Cv;Object.defineProperty(e,"TouchScrollable",{enumerable:!0,get:function(){return n.TouchScrollable}});function r(o){return o&&o.__esModule?o:{default:o}}})(xv);const xge=jr(xv);function Cge(e,t,n=!1,r=!1){if(!n)return{top:e?void 0:"100%",right:t&&!r?"0":void 0,bottom:e?"100%":void 0,left:!t&&!r?"0":r?"50%":void 0}}var Py;(function(e){e.SMALL="small",e.MEDIUM="medium"})(Py||(Py={}));class wge extends x.Component{constructor(){super(...arguments);q(this,"forceTryFocus",n=>{n.target instanceof HTMLElement&&Es.isTabbable(n.target)});q(this,"doNothing",n=>{n.stopPropagation(),n.nativeEvent.stopPropagation(),n.nativeEvent.stopImmediatePropagation()})}render(){const n=Rr(),r=this.props.openAsModal?void 0:ae("dropDown-contents",n.contents,{isMedium:this.props.size==="medium"}),o=this.props.openAsModal?ae("dropDown-asModal",n.asModal):void 0;return this.props.openAsModal?this.props.children:u.jsx(Ps,{children:u.jsx(mg,{depth:3,children:u.jsx("div",{ref:this.props.contentRef,id:this.props.id,className:ae(r,o,this.props.className,{[n.verticalPadding]:!this.props.selfPadded,[n.contentOffsetCenter]:this.props.renderCenter,[n.contentOffsetLeft]:this.props.horizontalOffset&&this.props.renderLeft,[n.contentOffsetRight]:this.props.horizontalOffset&&!this.props.renderLeft}),style:Cge(this.props.renderAbove,this.props.renderLeft,!!this.props.legacyMode,this.props.renderCenter),onClick:this.doNothing,tabIndex:-1,onMouseDown:this.forceTryFocus,children:this.props.children})})})}}function Sge(e){const{initialFocusElement:t,preventFocusOnVisible:n,onVisibilityChange:r,onClose:o,id:a,contentID:i,buttonType:s}=e,l=x.useRef(null),c=e.buttonRef||l,d=x.useRef(null),[f,h]=x.useState(!1),m=e.forceVisible?!0:e.isVisible!==void 0?e.isVisible:f,g=x.useCallback(N=>{h(N),r&&r(N),N&&window.closeAllFlyouts&&window.closeAllFlyouts()},[h,r]);x.useEffect(()=>{var N;if(m&&!n)if(t)t.focus();else{const _=document.getElementById(i);if(!_)return;(N=new Es(_).getInitial())==null||N.focus()}},[m,t,i,n]);const p=x.useCallback(N=>{var _;N.stopPropagation(),g(!m),(_=N.toElement)==null||_.focus()},[m,g]);x.useEffect(()=>{const N=c.current;if(N)return N.addEventListener("click",p),()=>{N.removeEventListener("click",p)}},[c,p]);const v=x.useCallback(N=>{N.stopPropagation(),N.preventDefault(),o&&o();const{activeElement:_}=document,U=d.current;g(!1),U&&U.contains(_)&&c.current&&(c.current.focus(),c.current.classList.add("focus-visible"))},[o,d,c,g]),b=N=>{switch(N.key){case"Escape":v(N)}},y=x.useCallback(N=>{N.stopPropagation()},[]),C=x.useCallback(N=>{N||g(!1)},[g]);zh(d,C,e.openAsModal),Y6({root:d.current,returnElement:c.current,callback:v});const D=Rr(),A=ge(e.buttonClassName,{isOpen:m}),T={id:i,handleID:a,isVisible:!!m,closeMenuHandler:v,renderAbove:e.renderAbove,renderLeft:e.renderLeft,buttonRef:c},B=e.openAsModal?null:ge("flyouts",D.root),j=e.tag??"div",R=!e.disabled&&m;return u.jsxs(j,{className:ae(B,e.className,{asModal:e.openAsModal}),ref:d,onClick:y,children:[u.jsxs(ut,{...e.buttonProps,id:a,className:A,title:e.name,"aria-label":"name"in e?e.name:void 0,"aria-controls":i,"aria-expanded":m,"aria-haspopup":"true",disabled:e.disabled,buttonType:s,buttonRef:c,children:[e.name&&u.jsx(Cr,{children:e.name}),e.buttonContents]}),u.jsx(W.Fragment,{children:e.openAsModal?u.jsx(ao,{id:i,label:k("title"),size:e.modalSize??jt.SMALL,exitHandler:v,elementToFocusOnExit:c.current,isVisible:R,onKeyPress:b,children:e.children(T)}):(R||e.alwaysRender)&&e.children(T)})]})}const S1=re(()=>{const e=ee(),t=qe("frame"),n=t("colors",{bg:void 0,fg:e.mainColors.fg}),r=t("sizing",{large:720,medium:516,small:375}),o=t("border",{radius:e.border.radius}),a=t("spacing",{padding:16}),i=t("header",{spacing:a.padding,minHeight:44,fontSize:e.fonts.size.subTitle}),s=t("footer",{spacing:a.padding,minHeight:i.minHeight});return{colors:n,sizing:r,border:o,spacing:a,header:i,footer:s}}),Dge=re(()=>{const e=S1(),t=Ht().mediaQueries(),n=S({background:P.colorOut(e.colors.bg),zIndex:2,willChange:"height"},"label:frameStyles-headerWrap"),r=S({position:"relative",background:P.colorOut(e.colors.bg),width:Z(100)},"label:frameStyles-bodyWrap"),o=S({background:P.colorOut(e.colors.bg),zIndex:2,willChange:"height"},"label:frameStyles-footerWrap");return{root:S({backgroundColor:P.colorOut(e.colors.bg),maxHeight:UT(80),height:Z(100),borderRadius:w(e.border.radius),width:Z(100),position:"relative",display:"flex",flexDirection:"column",minHeight:0,[`.${r}`]:{flexGrow:1,overflowY:"auto"}},t.xs({maxHeight:Z(100)}),"label:frameStyles-root"),headerWrap:n,bodyWrap:r,footerWrap:o}}),zO=re(()=>{const e=S1(),t=ee(),n=Kt(),r=Tt("frameHeader"),o=r({display:"flex",position:"relative",alignItems:"center",flexWrap:"nowrap",width:Z(100),color:P.colorOut(e.colors.fg),zIndex:1,borderBottom:wt(),...E.padding({top:4,right:e.footer.spacing,bottom:4,left:e.footer.spacing}),".button + .button":{marginLeft:w(12-n.border.width)}}),a=r("rootBorderless",{borderBottom:"none"}),i=r("rootMinimal",{display:"block"}),s=r("backButton",{display:"flex",flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-end",flexShrink:1,transform:"translateX(-6px) translateY(-1px)"}),l=r("heading",{display:"flex",alignItems:"center",flexGrow:1,margin:0,textOverflow:"ellipsis",width:it(`100% - ${w(n.sizing.height)}`),flexBasis:it(`100% - ${w(n.sizing.height)}`),...E.font({...t.fontSizeAndWeightVars("large","semiBold")})}),c=r("headingMinimal",{...wo().middle(),...E.padding({horizontal:24}),"& *":{...E.font({...t.fontSizeAndWeightVars("small"),transform:"uppercase"})}}),d=r("left",{fontSize:w(e.header.fontSize)}),f=r("centred",{...E.font({...t.fontSizeAndWeightVars("small","semiBold"),align:"center",transform:"uppercase",color:P.colorOut(t.mixBgAndFg(.6))})}),h=t.icon.sizes.large-(t.gutter.half+t.gutter.quarter),m=r("leftSpacer",{display:"block",height:w(h),flexBasis:w(h),width:w(h)}),g=r("action",{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",flexShrink:1,height:w(n.sizing.height),width:w(n.sizing.height),flexBasis:w(n.sizing.height),color:P.colorOut(e.colors.fg),transform:"translateX(10px)",marginLeft:"auto","&:not(.focus-visible)":{outline:0},"&:hover, &:focus, &.focus-visible":{color:P.colorOut(t.mainColors.primary)}}),p=r("backButtonIcon",{display:"block"}),v=r("close",{...Gce(),cursor:"pointer",height:w(n.sizing.height),width:w(n.sizing.height),flexBasis:w(n.sizing.height),padding:0,border:0}),b=r("closeMinimal",{color:P.colorOut(t.mixBgAndFg(.6)),position:"absolute",top:0,bottom:0,...E.margin({vertical:"auto"}),right:w(6)}),y=r("categoryIcon",{flexBasis:w(18),marginRight:0,opacity:.8});return{closeMinimal:b,root:o,rootMinimal:i,rootBorderLess:a,backButton:s,heading:l,left:d,centred:f,leftSpacer:m,action:g,backButtonIcon:p,close:v,categoryIcon:y,headingMinimal:c}});class Uc extends W.PureComponent{render(){const t=k("Back"),n=zO();let r;this.props.onBackClick&&(r=u.jsx(ut,{title:t,"aria-label":t,buttonType:ye.ICON_COMPACT,onClick:this.props.onBackClick,className:ae("frameHeader-backButton",n.backButton),children:u.jsx(dO,{className:ae(n.backButtonIcon),centred:!0})}));let o;return this.props.closeFrame&&(o=u.jsx("div",{className:n.action,children:u.jsx(m1,{className:n.close,onClick:this.props.closeFrame,compact:!0})})),u.jsxs("header",{className:ae("frameHeader",this.props.className,n.root,this.props.borderless&&n.rootBorderLess),children:[u.jsxs(Dn,{id:this.props.titleID,title:this.props.title,depth:this.props.depth,className:ae("frameHeader-heading",n.heading,this.props.titleClass,{"sr-only":this.props.srOnlyTitle}),tabIndex:0,children:[r,this.props.title]}),this.props.children,o]})}}q(Uc,"defaultProps",{heading:2,srOnlyTitle:!1});function Ege(e){const t=zO();return u.jsxs("header",{className:ae(t.root,t.rootMinimal),children:[u.jsx("h2",{id:e.id,className:ae(t.centred,t.headingMinimal),children:e.children}),e.onClose&&u.jsxs(ut,{buttonType:ye.ICON_COMPACT,onClick:e.onClose,className:t.closeMinimal,children:[u.jsx(Cr,{children:k("Close")}),u.jsx(Vh,{"aria-hidden":"true"})]})]})}function vg(e=dh){return e(["profiles.view","users.add","users.edit","users.delete"])}const Q8=W.createContext({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},contentRef:{current:null},contents:null,contentID:"",triggerID:""});function Z8(){return x.useContext(Q8)}const Ige=re(e=>{const t=qe("userCard",e),n=ee(),r=t("container",{spacing:n.gutter.size}),o=t("button",{minWidth:120,mobile:{minWidth:0}}),a=t("name",{font:ce.font({...n.fontSizeAndWeightVars("large","bold")}),margin:ce.spacing({top:9})}),i=t("label",{border:ce.border({color:n.mainColors.primary,radius:3}),padding:ce.spacing({horizontal:10}),margin:ce.spacing({top:12}),font:ce.font({color:n.mainColors.primary,size:10,lineHeight:15/10,transform:"uppercase"})}),s=t("containerWithBorder",{color:P.colorOut(n.border.color)}),l=t("message",{font:ce.font({size:n.fonts.size.small}),margin:ce.spacing({top:12})}),c=t("headerLink",{color:P.colorOut(n.mainColors.fg),font:ce.font({...n.fontSizeAndWeightVars("small"),align:"center"}),margin:ce.spacing({top:8}),minHeight:w(24)});return{container:r,button:o,name:a,label:i,containerWithBorder:s,message:l,headerLink:c}}),Id=re((e={})=>{const t=Ige(),n=Ht().mediaQueries(),r=ee();Zt({"[data-reach-popover]":{zIndex:e.zIndex??1050}});const o=S({display:"flex",flexDirection:"row",alignItems:"stretch",justifyContent:"center",...E.padding({all:t.container.spacing}),flexWrap:"wrap"},"label:UserCard-styles-container"),a=ge(o,S({borderTop:`1px solid ${t.containerWithBorder.color}`},"label:UserCard-styles-containerWithBorder")),i=S({display:"flex",width:"100%",justifyContent:"center"},"label:UserCard-styles-row"),s=S({marginTop:12},"label:UserCard-styles-rankRow"),l=S({maxWidth:Z(100),"&&":{minWidth:w(t.button.minWidth)},...n.oneColumnDown({"&&":{width:Z(100),minWidth:w(t.button.mobile.minWidth)}})},"label:UserCard-styles-button"),c=S({...E.padding({horizontal:t.container.spacing/2}),flexWrap:"wrap"},"label:UserCard-styles-buttonsContainer"),d=S({maxWidth:Z(100),...E.padding({top:0,bottom:t.container.spacing,horizontal:t.container.spacing/2}),...n.oneColumnDown({"&&":{flexGrow:1,flexBasis:Z(50)}})},"label:UserCard-styles-buttonContainer"),f=S({...E.margin(t.name.margin),...E.font(t.name.font),width:Z(100),textAlign:"center"},n.oneColumnDown({fontSize:t.name.font.size*1.25}),"label:UserCard-styles-name"),h=S({...E.padding(t.label.padding),...E.font(t.label.font),...E.border(t.label.border),...E.margin(t.label.margin)},"label:UserCard-styles-label"),m=S({borderRight:wt({}),...E.padding({right:r.spacer.size/2,left:r.spacer.size})},"label:UserCard-styles-statLeft"),g=S({...E.padding({right:r.spacer.size,left:r.spacer.size/2})},"label:UserCard-styles-statRight"),p=S({position:"relative"},"label:UserCard-styles-header"),v=E.clickable.itemState({default:t.headerLink.color}),b=S({...v,"&&":{minHeight:t.headerLink.minHeight,display:"inline-flex",alignItems:"center",...E.font(t.headerLink.font),...E.margin(t.headerLink.margin)}},"label:UserCard-styles-headerLink"),y=S({"&&":{textAlign:"center"}},"label:UserCard-styles-metas"),C=S({...E.margin({vertical:0})},"label:UserCard-styles-metaItem"),D=Kt(),A=S({"&&&":{...E.absolute.topRight(),width:w(D.sizing.height),height:w(D.sizing.height),...n.oneColumnDown({height:w(D.sizing.height)})}},"label:UserCard-styles-close"),T=S({...E.margin({top:t.container.spacing}),display:"block"},"label:UserCard-styles-userPhoto"),B=S({...E.font(t.message.font),...E.margin(t.message.margin)},"label:UserCard-styles-message");return{container:o,containerWithBorder:a,buttonsContainer:c,button:l,buttonContainer:d,name:f,label:h,header:p,headerLink:b,statLeft:m,statRight:g,close:A,userPhoto:T,row:i,rankRow:s,metas:y,metaItem:C,message:B}}),J8=e=>{const t=Tn();return{...E.font(t.font),display:"block",...kr(t.spacing.horizontal),overflow:"initial",textAlign:"start",...e}},HO=re(()=>{const e=Tn();return{...E.font(e.font),display:"inline-block",...E.margin(e.spacing),"& > a":{fontSize:"inherit"},"& &":{margin:0},".isDeleted, &.isDeleted":{...E.font(e.specialFonts.deleted)},maxHeight:e.height}}),wf=re(()=>{const e=Tn();return{...E.font(e.linkFont),"&:hover, &:focus, &:active, &.focus-visible":{...E.font(e.linkFontState)}}}),Aa=re(()=>{const e=Tn(),t=ee(),n=S({...J8()},"label:Metas-styles-root"),r=S(wf(),"label:Metas-styles-metaLink"),o=S({...HO(),[`.${r}`]:{...wf()}},"label:Metas-styles-meta"),a=S({display:"inline-flex",alignItems:"center",gap:"0.5ch"},"label:Metas-styles-metaFlexed"),i=S({display:"inline-block",fontSize:w(e.font.size),color:P.colorOut(e.font.color)},"label:Metas-styles-metaStyle"),s=S({flexGrow:1,textAlign:"start"},"label:Metas-styles-draftStatus"),l=S({textDecoration:"none !important"},"label:Metas-styles-noUnderline"),c=S({display:"inline-flex",borderTop:"none !important","& *:hover, & *:focus, & .isFocused":{color:`${t.links.colors.default} !important`,backgroundColor:"transparent !important"}},"label:Metas-styles-inlineBlock"),d=S({...E.margin(e.spacing)},"label:Metas-styles-itemSpacing"),f=re(g=>S(E.verticallyAlignInContainer(g,e.font.lineHeight),"label:Metas-styles-alignVerticallyInMetaItem")),h=S({...wf(),maxHeight:e.height,padding:0},"label:Metas-styles-iconButton"),m=S({maxHeight:"unset","& a":{display:"flex",alignItems:"center",gap:6,...wf()}},"label:Metas-styles-profileMeta");return{root:n,meta:o,metaFlexed:a,itemSpacing:d,metaLink:r,metaStyle:i,draftStatus:s,noUnderline:l,inlineBlock:c,alignVerticallyInMetaItem:f,iconButton:h,profileMeta:m}});function Tge(e){const{to:t,className:n,color:r,preset:o=pg.STANDARD,tooltipLabel:a,...i}=e,s=Qme();let l;return t?l=u.jsx(wr,{...i,to:t,className:ge([s[o](!0),n])}):l=u.jsx("span",{...i,className:ge(s[o](!1),n)}),a&&(l=u.jsx(In,{label:a,children:u.jsx("span",{children:l})})),u.jsx(u.Fragment,{children:l})}function ai(e){const{userFragment:t,isUserCard:n=!0}=e,r=u.jsx(Age,{...e});return n?u.jsx(oz,{userID:t.userID,userFragment:t,children:r}):r}function Age(e){const{userFragment:t,isUserCard:n=!0}=e,r=e.children||t.name||"Deleted User",o=iA(t.userID,t.name),a=az();return u.jsxs(wr,{...a.props,ref:a.triggerRef,to:o,className:ae(e.className),children:[r,a.contents]})}function ph(e){const t=Aa();return u.jsx("div",{...e,className:ae(t.root,e.className)})}const Bn=W.forwardRef(function(t,n){const r=Aa(),{flex:o,...a}=t;return u.jsx("div",{...a,ref:n,className:ge(r.meta,o&&r.metaFlexed,t.className)})});function Ry(e){const t=Aa(),{className:n,...r}=e;return u.jsx(Bn,{className:e.className,children:u.jsx(wr,{...r,className:t.metaLink})})}const Ru=W.forwardRef(function(t,n){const{tagPreset:r,...o}=t,{height:a}=wi(),i=Aa();return u.jsx(Bn,{ref:n,children:u.jsx(Tge,{...o,preset:t.tagPreset,className:ge(i.alignVerticallyInMetaItem(a),t.className)})})});function ds(e){const{className:t,children:n,...r}=e,{standard:{height:o}}=nO(),a=e.size?ku[e.size]:o,i=Aa();return u.jsxs(Bn,{className:t,children:[u.jsx(Bt,{...r,className:i.alignVerticallyInMetaItem(a),"aria-hidden":!1})," ",n]})}const UO=re(()=>{const e=Ht().mediaQueries(),t=ee(),n=S({...E.font({...t.fontSizeAndWeightVars("subTitle","bold")}),...E.margin({bottom:t.spacer.headingBox})},"label:Stat-styles-title"),r=S({...E.padding({vertical:t.spacer.size}),...E.flex.middle(),...e.oneColumnDown({flexWrap:"wrap",...E.padding({vertical:t.spacer.headingItem})})},"label:Stat-styles-container"),o=S({display:"flex",flexDirection:"column",alignItems:"center",flexGrow:1,maxWidth:Z(50),...E.font({color:P.colorOut(t.mainColors.fg)})},"label:Stat-styles-statItem"),a=S({minWidth:100},"label:Stat-styles-statItemSkeleton"),i=S({"&:hover, &:focus, &:active, &.focus-visible":{...E.font({color:t.mainColors.primary})}},"label:Stat-styles-statItemLink"),s=S({flexGrow:1,boxSizing:"content-box",...E.padding({horizontal:t.spacer.size}),"&:not(:last-of-type)":{borderRight:wt()},...e.oneColumnDown({flexGrow:0,borderLeft:wt(),...E.margin({vertical:t.spacer.size/2,left:-1}),"&:last-child":{borderRight:wt()},"& > div":{...E.font({...t.fontSizeAndWeightVars("subTitle","semiBold")})}})},"label:Stat-styles-statItemResponsive"),l=S({marginTop:w(3),...E.font({size:t.fonts.size.medium*2,lineHeight:t.lineHeights.condensed}),whiteSpace:"nowrap"},"label:Stat-styles-statData"),c=S({marginTop:w(2),marginBottom:w(3),...E.font({...t.fontSizeAndWeightVars("small"),lineHeight:t.lineHeights.condensed}),whiteSpace:"nowrap",...e.oneColumnDown({...E.font({...t.fontSizeAndWeightVars("medium"),lineHeight:t.lineHeights.condensed})})},"label:Stat-styles-statLabel");return{title:n,container:r,statItem:o,statItemSkeleton:a,statItemLink:i,statItemResponsive:s,statData:l,statLabel:c}}),Oge=re(()=>({root:Tt("numberFormatter")({textDecoration:"inherit"})}));function Bge(e){return isNaN(Number(e))?e:Number(e).toString()}function Ff(e,t=1){const n=Math.abs(e),r=e<0?"-":"";return n<1e3?r+n.toFixed(t):n>=1e3&&n<1e6?r+(n/1e3).toFixed(t)+"k":n>=1e6&&n<1e9?r+(n/1e6).toFixed(t)+"m":n>=1e9&&n<1e12?r+(n/1e9).toFixed(t)+"b":r+(n/1e12).toFixed(t)+"t"}function wp(e,t=0){return e.toFixed(t).replace(/\B(?=(\d{3})+(?!\d))/g,",")}function kge(e){const{value:t}=e;let n=Bge(Ff(t));const r=wp(t);e.showFullValue&&(n=r);const o=!e.showFullValue&&r!==t.toString();return{compactValue:n,fullValue:r,isAbbreviated:o}}function ez(e){const t=kge(e),{fullValue:n,isAbbreviated:r}=t,o=r?"abbr":e.fallbackTag??"span",a=ae("number",e.className,Oge().root),i=e.title||n;return{...t,Tag:o,attributes:{className:a,title:i}}}function Qm(e){const{Tag:t,attributes:n,compactValue:r}=ez(e);return u.jsx(t,{...n,children:r})}function VO(e){const{compactValue:t,Tag:n,attributes:r}=ez(e);return u.jsx(n,{...r,children:t})}function FE(e){const t=UO(),{to:n,value:r,label:o,classNames:a}=e,i=u.jsxs(u.Fragment,{children:[u.jsx("div",{className:t.statData,children:typeof r=="number"?u.jsx(VO,{fallbackTag:"div",value:r||0,title:o}):r}),u.jsx("label",{className:t.statLabel,children:k(QT(o))})]});return n?u.jsx(wr,{title:o,to:n,className:ge(t.statItem,t.statItemLink,a),children:i}):u.jsx("div",{className:ge(t.statItem,a),children:i})}const Pge=re(e=>{const t=qe("dateTime",e),n=ee();return{compact:t("compact",{container:{size:38,bg:n.mixBgAndFg(.1),border:{radius:8}},month:{font:ce.font({size:10,transform:"uppercase",lineHeight:1})},day:{font:ce.font({size:16,weight:n.fonts.weights.bold,lineHeight:1})}})}}),Rge=re(()=>{const e=Tt("dateTime"),n=Pge().compact,r=e("compactRoot",{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:P.colorOut(n.container.bg),minWidth:w(n.container.size),minHeight:w(n.container.size),...zn(),"&&":{borderRadius:w(n.container.border.radius)}}),o=e("compactDay",{...E.font(n.day.font)}),a=e("compactMonth",{...E.font(n.month.font)});return{compactRoot:r,compactDay:o,compactMonth:a}});var WE;(function(e){e.DEFAULT="default",e.EXTENDED="extended",e.COMPACT="compact",e.TIME="time"})(WE||(WE={}));class Uo extends x.Component{constructor(){super(...arguments);q(this,"interval")}render(){return u.jsx("time",{className:this.props.className,dateTime:this.props.timestamp,title:this.titleTime,children:this.humanTime})}componentDidMount(){this.props.mode==="relative"&&(this.interval=setInterval(()=>{this.forceUpdate()},3e4))}componentWillUnmount(){this.interval&&clearInterval(this.interval)}get titleTime(){return new Date(this.props.timestamp).toLocaleString(nj(),{year:"numeric",month:"long",day:"numeric",weekday:"long",hour:"numeric",minute:"numeric",timeZone:this.props.timezone})}get options(){switch(this.props.type){case"extended":return{...!this.props.isSameYear&&{year:"numeric"},month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeZone:this.props.timezone};case"time":return{hour:"numeric",minute:"numeric",timeZone:this.props.timezone};default:return{...!this.props.isSameYear&&{year:"numeric"},month:"short",day:"numeric",timeZone:this.props.timezone}}}get humanTime(){const n=new Date(this.props.timestamp),r=new Date,o=nj();if(this.props.mode==="relative"){const a=(r.getTime()-n.getTime())/1e3;return a>=0&&a<=5?k("just now"):m6(n,r)}else{if(this.props.type!=="compact")return die(n,r,aE.DAY)?n.toLocaleString(o,{hour:"numeric",minute:"numeric",timeZone:this.props.timezone}).toLowerCase():n.toLocaleString(o,this.options);{const a=Rge();return u.jsxs("span",{className:a.compactRoot,children:[u.jsx("span",{className:a.compactMonth,children:n.toLocaleString(o,{month:"short",timeZone:this.props.timezone})},"month"),u.jsx("span",{className:a.compactDay,children:n.toLocaleString(o,{day:"numeric",timeZone:this.props.timezone})},"day")]})}}}}q(Uo,"defaultProps",{mode:"fixed",type:"default"});const jge=re(()=>{const e=ee(),n=js().sizing.medium,r=S({display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",width:"100%",minHeight:n},"label:UserLabel-classes-root"),o=`calc(100% - ${w(Wn(n)+8)})`,a=S({display:"flex",flexDirection:"column",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between",width:o,flexBasis:o,minHeight:n},"label:UserLabel-classes-main"),i=S({"&&&":{...E.font({...e.fontSizeAndWeightVars("medium","bold"),color:P.colorOut(e.mainColors.fgHeading),lineHeight:e.lineHeights.condensed})}},"label:UserLabel-classes-userName"),s=S({...E.padding({horizontal:10}),...E.font({color:e.mainColors.primary,size:10,lineHeight:15/10,transform:"uppercase"}),...E.border({color:e.mainColors.primary,radius:3}),display:"inline",verticalAlign:"middle",position:"relative",top:"-1px"},"label:UserLabel-classes-rankLabel");return{root:r,rankLabel:s,userName:i,main:a,flexWrapper:S({display:"flex",gap:4},"label:UserLabel-classes-flexWrapper")}});function Nge(e){const{user:t,showOPTag:n}=e,r=jge(),{label:o,title:a}=t??{};let i=null;return t.banned?i=u.jsx("div",{className:r.rankLabel,children:k("Banned")}):a?i=u.jsx("div",{className:r.rankLabel,children:a}):o&&(i=u.jsx("div",{className:r.rankLabel,dangerouslySetInnerHTML:{__html:o}})),n?u.jsxs("div",{className:r.flexWrapper,children:[i,u.jsx("span",{className:r.rankLabel,children:"OP"})]}):i}const Lge="This user has been deleted.",tz="This user has been banned.",$ge="This user's profile is private.",Mge="Banned",_ge="Private",Fge="ERROR",Wge="DELETED";ir.extraContent=[];ir.registerContent=function(e){return ir.extraContent.find(t=>t.key===e.key)||ir.extraContent.push(e),()=>{ir.unregisterContent(e)}};ir.unregisterContent=function(e){ir.extraContent=ir.extraContent.filter(t=>t.key!==e.key)};ir.extraButtons=[];ir.registerButtons=function(e){ir.extraButtons.find(t=>t.key===e.key)||ir.extraButtons.push(e)};ir.extraLinks=[];ir.registerLinks=function(e){ir.extraLinks.find(t=>t.key===e.key)||ir.extraLinks.push(e)};function ir(e){const{zIndex:t}=ja(),{hasPermission:n}=mr(),r=Id({zIndex:t}),{user:o}=e,a=Ki(),i=a===sr.MOBILE||a===sr.XS,s=i?ho.XLARGE:ho.LARGE,l=Ge("context.conversationsEnabled",!1),c=b1(),d=o.userID===c,f=(o==null?void 0:o.private)??!1,h=n("personalInfo.view"),m=(o==null?void 0:o.banned)??0,g=m===1;let p=Ge("ui.bannedPrivateProfile","0");if(p=p===""?"0":"1",(f||g&&p!=="0")&&!h&&!d)return u.jsx(nz,{user:o,onClose:e.onClose});const y=u.jsx(Nge,{user:o});return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:r.header,children:i&&u.jsx(ut,{className:r.close,onClick:e.onClose,buttonType:ye.ICON,children:u.jsxs(u.Fragment,{children:[u.jsx(fO,{}),u.jsx(Cr,{children:k("Close")})]})})}),u.jsxs(gs,{children:[u.jsx("div",{className:r.row,children:u.jsx(Yi,{userInfo:o,size:s,className:r.userPhoto})}),u.jsx("div",{className:r.row,children:u.jsx("div",{className:r.name,children:o.name})}),y&&u.jsx("div",{className:ge(r.row,r.rankRow),children:y}),o.email&&u.jsx(hg,{permission:"personalInfo.view",children:u.jsx("div",{className:r.row,children:u.jsx("a",{className:r.headerLink,href:`mailto:${o.email}`,children:o.email})})}),ir.extraLinks.map((C,D)=>u.jsx(C.component,{userID:o.userID},D)),g&&u.jsx("div",{className:ge(r.row,r.message),children:u.jsx("div",{children:k(tz)})})]}),u.jsxs("div",{className:ge(r.row,r.buttonsContainer),children:[u.jsx(jy,{to:iA(o.userID,o.name),children:k("View Profile")}),u.jsx(hg,{permission:"conversations.add",children:l&&!m&&u.jsx(jy,{to:`/messages/add/${o.name}`,children:k("Message")})}),ir.extraButtons.map((C,D)=>u.jsx(C.component,{userID:o.userID},D))]}),u.jsxs(gs,{borderTop:!0,children:[u.jsx(FE,{to:_ee(o.userID,o.name),value:o.countDiscussions,label:k("Discussions"),classNames:r.statLeft}),u.jsx(FE,{to:Fee(o.userID,o.name),value:o.countComments,label:k("Comments"),classNames:r.statRight})]}),ir.extraContent.map((C,D)=>u.jsx(gs,{borderTop:!0,children:u.jsx(C.component,{userID:o.userID})},D)),u.jsx(gs,{borderTop:!0,children:u.jsxs(ph,{className:r.metas,children:[u.jsxs(Bn,{className:r.metaItem,children:[k("Joined"),": ",u.jsx(Uo,{timestamp:o.dateInserted})]}),o.dateLastActive&&u.jsxs(Bn,{className:r.metaItem,children:[k("Last Active"),": ",u.jsx(Uo,{timestamp:o.dateLastActive})]})]})})]})}function zge(e){const{userFragment:t}=e,n=Ki(),r=n===sr.MOBILE||n===sr.XS,o=r?ho.XLARGE:ho.LARGE,a=Ge("context.conversationsEnabled",!1),i=Id();return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:i.header,children:r&&u.jsx(ut,{className:i.close,onClick:e.onClose,buttonType:ye.ICON,children:u.jsxs(u.Fragment,{children:[u.jsx(fO,{}),u.jsx(Cr,{children:k("Close")})]})})}),u.jsxs(gs,{children:[u.jsx("div",{className:i.row,children:t!=null&&t.photoUrl?u.jsx(Yi,{userInfo:t,size:o,className:i.userPhoto}):u.jsx(iue,{size:o,className:i.userPhoto})}),u.jsx("div",{className:i.row,children:u.jsx("div",{className:i.name,children:(t==null?void 0:t.name)??u.jsx(tn,{inline:!0,height:12,width:60})})}),u.jsx(hg,{permission:"personalInfo.view",mode:xs.GLOBAL,children:u.jsx("div",{className:i.row,children:u.jsx("span",{className:i.headerLink,children:u.jsx(tn,{inline:!0,height:12,width:120})})})}),!!(t!=null&&t.userID)&&ir.extraLinks.map((s,l)=>u.jsx(W.Fragment,{children:s.skeleton?u.jsx(s.skeleton,{userID:t.userID}):u.jsx(tn,{inline:!0,height:12,width:120})},l))]}),u.jsxs("div",{className:ge(i.row,i.buttonsContainer),children:[u.jsx(jy,{disabled:!(t!=null&&t.name),to:t!=null&&t.name?iA(t==null?void 0:t.userID,t==null?void 0:t.name):"",children:k("View Profile")}),u.jsx(hg,{permission:"conversations.add",children:a&&u.jsx(jy,{disabled:!(t!=null&&t.name),to:`/messages/add/${t==null?void 0:t.name}`,children:k("Message")})}),!!(t!=null&&t.userID)&&ir.extraButtons.map((s,l)=>u.jsx(u.Fragment,{children:s.skeleton?u.jsx(s.skeleton,{userID:t.userID},l):u.jsx(tn,{inline:!0,height:"2em",width:120})}))]}),u.jsxs(gs,{borderTop:!0,children:[u.jsx(T2,{text:k("Discussions"),position:"left"}),u.jsx(T2,{text:k("Comments"),position:"right"})]}),!!(t!=null&&t.userID)&&ir.extraContent.map((s,l)=>u.jsx(gs,{borderTop:!0,children:s.skeleton?u.jsx(s.skeleton,{userID:t.userID}):u.jsx(tn,{inline:!0,height:"2em",width:120})},l)),u.jsx(gs,{borderTop:!0,children:u.jsxs(ph,{className:i.metas,children:[u.jsxs(Bn,{className:i.metaItem,children:[k("Joined"),": ",u.jsx(tn,{inline:!0,height:8,width:60})]}),u.jsxs(Bn,{className:i.metaItem,children:[k("Last Active"),": ",u.jsx(tn,{inline:!0,height:8,width:60})]})]})})]})}function nz(e){const{user:t,userFragment:n}=e,r=Id(),o=Ki(),i=o===sr.MOBILE||o===sr.XS?ho.XLARGE:ho.LARGE;let l=((t==null?void 0:t.banned)??(n==null?void 0:n.banned)??0)===1,c=k(l?Mge:_ge),d=k(l?tz:$ge),f=(t==null?void 0:t.name)??(n==null?void 0:n.name),h=t??n;return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:r.header}),u.jsxs(gs,{children:[u.jsx("div",{className:r.row,children:u.jsx(Yi,{userInfo:h,size:i,className:r.userPhoto})}),u.jsx("div",{className:r.row,children:u.jsx("div",{className:r.name,children:f})}),u.jsx("div",{className:r.row,children:u.jsx("div",{className:r.label,children:c})}),u.jsx("div",{className:ge(r.row,r.message),children:u.jsx("div",{children:d})})]})]})}function I2(e){const t=Id(),n=Ki(),o=n===sr.MOBILE||n===sr.XS?ho.XLARGE:ho.LARGE,a={photoUrl:oo("/applications/dashboard/design/images/banned.png",!0)},i=e.error?e.error:Lge,s=e.error?k(Fge):k(Wge);return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:t.header}),u.jsxs(gs,{children:[u.jsx("div",{className:t.row,children:u.jsx(Yi,{userInfo:a,size:o,className:t.userPhoto})}),u.jsx("div",{className:t.row,children:u.jsx("div",{className:t.label,children:s})}),u.jsx("div",{className:ge(t.row,t.message),children:u.jsx("div",{children:i})})]})]})}function jy(e){const{zIndex:t}=ja(),n=Id({zIndex:t});return u.jsx("div",{className:n.buttonContainer,children:u.jsx(So,{disabled:e.disabled,to:e.to??"",buttonType:ye.STANDARD,className:n.button,target:e.target,children:e.children})})}function T2(e){const{zIndex:t}=ja(),n=UO(),r=Id({zIndex:t}),{text:o,position:a}=e;return u.jsxs("div",{className:ge(n.statItem,{[r.statLeft]:a==="left"},{[r.statRight]:a==="right"}),children:[u.jsx("div",{className:n.statData,children:u.jsx(tn,{height:35,width:48})}),u.jsx("div",{className:n.statLabel,children:o})]})}function gs(e){const{borderTop:t}=e,{zIndex:n}=ja(),r=Id({zIndex:n});return u.jsx("div",{className:t?r.containerWithBorder:r.container,children:e.children})}function rz(e){const{hasPermission:t}=mr();return vg(t)?e.user?u.jsx(ir,{user:e.user,onClose:e.onClose}):u.jsx(Uge,{...e}):u.jsx(u.Fragment,{})}function oz(e){const{hasPermission:t}=mr(),[n,r]=x.useState(!1),o=e.forceOpen??n;function a(h){r(h),h&&window.closeAllFlyouts&&window.closeAllFlyouts()}const i=xr("popupTrigger"),s=i+"-content",l=x.useRef(null),c=x.useRef(null),d=Ki(),f=d===sr.MOBILE||d===sr.XS;return vg(t)?u.jsx(Ps,{children:u.jsx(Q8.Provider,{value:{isOpen:o,setIsOpen:a,triggerRef:l,contentRef:c,triggerID:i,contentID:s,contents:u.jsxs(u.Fragment,{children:[!f&&o&&u.jsx(q5,{targetRef:l,position:iz,children:u.jsx(Hge,{...e,onClose:()=>{a(!1)}})}),f&&u.jsx(ao,{isVisible:o,size:jt.SMALL,exitHandler:()=>{a(!1)},children:u.jsx(rz,{...e,onClose:()=>{a(!1)}})})]})},children:e.children})}):u.jsx(u.Fragment,{children:e.children})}function az(){const{hasPermission:e}=mr(),t=Z8(),n=x.useCallback((r,o)=>{var a;!r&&o!==t.contentRef.current&&!((a=t.contentRef.current)!=null&&a.contains(o))&&t.setIsOpen(!1)},[t.setIsOpen,t.contentRef]);return zh(t.triggerRef,n),{props:vg(e)?{"aria-controls":t.contentID,"aria-expanded":t.isOpen,"aria-haspopup":t.isOpen,role:"button",onClick:r=>{r.preventDefault(),r.stopPropagation(),t.setIsOpen(!t.isOpen)},onKeyPress:r=>{var o;(r.key===" "||r.key==="Enter")&&(r.preventDefault(),t.setIsOpen(!t.isOpen)),r.key==="Escape"&&(r.preventDefault(),t.setIsOpen(!1),(o=t.triggerRef.current)==null||o.focus())}}:{},triggerRef:t.triggerRef,isOpen:t.isOpen,contents:t.contents}}function iz(e,t){const n=Q5(e,t),r=((t==null?void 0:t.width)??0)/2,o=((e==null?void 0:e.width)??0)/2,a=((e==null?void 0:e.left)??0)+o+window.pageXOffset-r,i=16;return a<i||a+r*2>window.innerWidth-i?n:{...n,left:a}}function Hge(e){const t=Z8(),n=x.useCallback((r,o)=>{o&&!r&&o!==t.triggerRef.current&&t.setIsOpen(!1)},[t.setIsOpen,t.triggerRef]);return zh(t.contentRef,n),u.jsx("div",{ref:t.contentRef,className:ge(Rr().contentsBox,"isMedium"),onKeyDown:r=>{var o;r.key==="Escape"&&(r.preventDefault(),t.setIsOpen(!1),(o=t.triggerRef.current)==null||o.focus())},onClick:r=>{r.stopPropagation(),r.nativeEvent.stopPropagation(),r.nativeEvent.stopImmediatePropagation()},children:u.jsx(rz,{...e})})}function Uge(e){var h;const{userFragment:t,forceSkeleton:n=!1}=e,r=TO({userID:e.userID}),o=b1(),a=(t==null?void 0:t.userID)===o,{hasPermission:i}=mr(),s=i("personalInfo.view");let l=Ge("ui.bannedPrivateProfile","0");l=l===""?"0":"1";const c=l!=="0";let f=((t==null?void 0:t.banned)??0)===1;return(t!=null&&t.private||c&&f)&&!s&&!a?u.jsx(nz,{userFragment:t,onClose:e.onClose}):n||r.status===X.PENDING||r.status===X.LOADING?u.jsx(zge,{userFragment:t,onClose:e.onClose}):r.error&&((h=r==null?void 0:r.error)==null?void 0:h.response.status)===404?u.jsx(I2,{onClose:e.onClose}):!r.data||r.status===X.ERROR?u.jsx(I2,{error:k("Failed to load user"),onClose:e.onClose}):u.jsx(ir,{user:r.data,onClose:e.onClose})}var A2;(function(e){e.ABOVE_LEFT="aboveLeft",e.ABOVE_RIGHT="aboveRight",e.ABOVE_CENTER="aboveCenter",e.BELOW_LEFT="belowLeft",e.BELOW_RIGHT="belowRight",e.BELOW_CENTER="belowCenter",e.AUTO="auto",e.HIDDEN="hidden"})(A2||(A2={}));var O2;(function(e){e.ABOVE_CENTER="aboveCenter"})(O2||(O2={}));var jc;(function(e){e.LIST="list",e.FRAME="frame"})(jc||(jc={}));const sz=W.createContext({isForcedOpen:!1,setIsForcedOpen:()=>{}});function Vge(){return x.useContext(sz)}function Jh(e){const t=Ki(),{title:n,preferredDirection:r}=e,o=e.mobileTitle??n,a=Rr(),i=e.flyoutType==="frame"?"div":"ul",s=e.openAsModal||t===sr.MOBILE||t===sr.XS,l=x.useRef(null),c=x.useRef(null),d=e.buttonRef??l,f=e.contentRef??c,h=xr("flyout"),[m,g]=x.useState(!1),[p,v]=x.useState(!1),b=e.isVisible??(r?p:void 0),y=e.onVisibilityChange??(r?v:void 0),C=Zn(d),D=Zn(f),A=Gge({props:e,buttonRect:C,contentRect:D,dropDownID:h}),T=A==="hidden",B=["aboveLeft","belowLeft"].includes(A),j=["aboveCenter","belowCenter"].includes(A),R=["aboveRight","aboveLeft","aboveCenter"].includes(A),N=e.handleID??h+"-handle",_=e.contentID??h+"-contents",U=e.buttonContents||u.jsx(Bt,{icon:"navigation-ellipsis"});return u.jsx(Sge,{id:N,className:ge(e.className),buttonType:e.buttonType??ye.ICON,name:e.name,buttonContents:U,buttonClassName:e.buttonClassName,disabled:e.disabled,buttonRef:d,isVisible:b,forceVisible:m,onVisibilityChange:y,openAsModal:s,modalSize:e.modalSize,initialFocusElement:e.initialFocusElement,tag:e.tag,contentID:_,preventFocusOnVisible:e.preventFocusOnVisible,children:V=>u.jsx(sz.Provider,{value:{isForcedOpen:m,setIsForcedOpen:g},children:u.jsx(Hn,{condition:(!b||T)&&!s&&!!r,className:a.positioning,children:u.jsx(Hn,{condition:!!e.asReachPopover&&!s,component:q5,componentProps:{targetRef:d,position:(z,Y)=>{const te=j?iz(z,Y):Z5(z,Y),se=R&&z&&z.height?(parseFloat(te.top)??0)-z.height:te.top;return{...te,top:se}}},children:u.jsxs(wge,{...V,contentRef:f,id:_,className:ge(e.contentsClassName),renderCenter:j,renderLeft:B,renderAbove:R,openAsModal:s,selfPadded:e.selfPadded!==void 0?e.selfPadded:e.flyoutType==="frame",size:e.flyoutType==="frame"&&!e.isSmall?Py.MEDIUM:Py.SMALL,horizontalOffset:e.horizontalOffset,children:[!s&&n&&u.jsx(Uc,{title:n,closeFrame:V.closeMenuHandler}),s&&o&&u.jsx(Ege,{onClose:V.closeMenuHandler,children:o??n}),s&&e.flyoutType==="frame"?e.children:u.jsx(i,{className:ge("dropDownItems",a.items),role:"menu","aria-describedby":e.describedBy,children:e.children})]})})})})})}const Gge=e=>{const{props:t,buttonRect:n,contentRect:r}=e;let{renderAbove:o,renderLeft:a,preferredDirection:i,openDirection:s}=t;if(i&&(r.height===0||r.width===0))return"hidden";if(s&&o||s&&a)throw new Error("`renderAbove` & `renderLeft` may not be used with `openDirection` in <DropDown />");if(i&&n.width!==0&&r.width!==0)switch(i){case"aboveCenter":const l=n.top,c=n.left,d=window.innerWidth-n.right,f=r.width/2,h=r.height;if(o=l>=h,f<=c&&f<=d)return o?"aboveCenter":"belowCenter";break}if(t.openDirection==="auto"||!t.openDirection&&(!o||!a)){if(!o){const l=window.scrollY+window.innerHeight,c=r.height===0?window.innerHeight*.3:r.height;o=n.bottom+c>=l}if(!a){const l=document.body.clientWidth;a=(n.left+n.right)/2>l/2}}else if(t.openDirection)return t.openDirection;return o&&a?"aboveLeft":o&&!a?"aboveRight":!o&&a?"belowLeft":"belowRight"};function Yge(e){const{titleID:t,label:n,size:r,isVisible:o,onDestroyed:a}=e,[i,s]=x.useState(!1),l=Vge(),[c,d]=x.useState(!1),f=a1(o);x.useLayoutEffect(()=>{f&&!o?(s(!0),d(!1),l.setIsForcedOpen(!1)):!f&&o&&l.setIsForcedOpen(!0)},[o,f]);const h=x.useCallback(()=>{s(!1),a()},[a]),g=x.useMemo(()=>ro("modal"),[])+"-description",p=x.useRef(null),v=e.modalRef||p,{zIndex:b}=ja(),y=Ape();let C=u.jsxs(u.Fragment,{children:[e.description&&u.jsx("div",{id:g,className:"sr-only",children:e.description}),e.children]});e.scrollable&&(C=u.jsx(xv.TouchScrollable,{children:u.jsx("div",{className:y.scroll,children:C})}));const D=x.useMemo(()=>{switch(r){case jt.SMALL:case jt.MEDIUM:case jt.LARGE:case jt.XL:case jt.XXL:return{xPercent:0,yPercent:0};default:return}},[r]),A=(()=>{switch(e.size){case jt.SMALL:case jt.MEDIUM:case jt.LARGE:return{fade:!0,fromDirection:fc.BOTTOM,halfDirection:!0};case jt.XL:case jt.XXL:return{fade:!0};case jt.FULL_SCREEN:return{fade:!1};case jt.MODAL_AS_DROP_DOWN:return{fade:!1,fromDirection:fc.TOP};case jt.MODAL_AS_SIDE_PANEL_RIGHT:case jt.MODAL_AS_SIDE_PANEL_RIGHT_LARGE:return{fade:!1,fromDirection:fc.RIGHT};case jt.MODAL_AS_SIDE_PANEL_LEFT:return{fade:!1,fromDirection:fc.LEFT}}})();return u.jsx(Ps,{children:u.jsxs("div",{onKeyPress:e.onKeyPress,"data-modal-real-root-id":e.realRootID,className:y.stackingZindex(b),children:[u.jsx(wy,{fade:!0,isEntered:e.isVisible,className:y.overlayScrim,onDestroyed:h,children:u.jsx("span",{})}),u.jsx(xge,{isActive:e.isVisible||f||i,children:u.jsx("div",{className:y.overlayContent,onClick:e.onOverlayClick,style:{pointerEvents:e.isVisible?"initial":"none"},children:u.jsx(wy,{id:e.id,...A,tabIndex:-1,targetTransform:D,isEntered:e.isVisible,role:"dialog","aria-modal":!0,onTransitionEndCapture:()=>{d(!0)},className:ae(y.root,{isFullScreen:r===jt.FULL_SCREEN||r===jt.MODAL_AS_SIDE_PANEL_RIGHT||r===jt.MODAL_AS_SIDE_PANEL_LEFT,isSidePanelRight:r===jt.MODAL_AS_SIDE_PANEL_RIGHT,isSidePanelRightLarge:r===jt.MODAL_AS_SIDE_PANEL_RIGHT_LARGE,isSidePanelLeft:r===jt.MODAL_AS_SIDE_PANEL_LEFT,isDropDown:r===jt.MODAL_AS_DROP_DOWN,isXL:r===jt.XL,isXXL:r===jt.XXL,isLarge:r===jt.LARGE,isMedium:r===jt.MEDIUM,isSmall:r===jt.SMALL,isShadowed:r===jt.LARGE||jt.MEDIUM||jt.SMALL,noTransform:c,isFixHeight:e.isFixHeight},e.className),ref:v,onKeyDown:e.onKeyDown,onClick:e.onModalClick,"aria-label":n,"aria-labelledby":t,"aria-describedby":e.description?g:void 0,children:C})})})]})})}const GO="modals",B2="page";function lz(e){return o1(e,GO)}const cz=x.createContext({isInModal:!1});function D1(){return x.useContext(cz).isInModal}const Ou=class Ou extends W.Component{constructor(){super(...arguments);q(this,"closeFocusElement",null);q(this,"selfRef",W.createRef());q(this,"state",{wasDestroyed:!this.props.isVisible,realRootID:ro("realModalRoot")});q(this,"onMountIn",()=>{const n=this.getPageContainer();this.setCloseFocusElement(),this.focusInitialElement(),n&&n.setAttribute("aria-hidden",!0),Ou.stack.push(this)});q(this,"handleDestroyed",()=>{this.setState({wasDestroyed:!0});const n=this.getPageContainer();Ou.stack.pop(),Ou.stack.length===0?n&&n.removeAttribute("aria-hidden"):n&&n.setAttribute("aria-hidden",!0)});q(this,"handleTabbing",n=>{n.shiftKey&&n.keyCode===9?this.handleShiftTab(n):!n.shiftKey&&n.keyCode===9&&this.handleTab(n)});q(this,"handleDocumentEscapePress",n=>{if("keyCode"in n&&n.keyCode===27){if(n.preventDefault(),n.stopPropagation(),Ou.stack.length===1&&this.props.isWholePage)return;this.props.exitHandler&&this.props.isVisible&&this.props.exitHandler(n)}});q(this,"handleModalClick",n=>{n.stopPropagation()});q(this,"handleScrimClick",n=>{n.preventDefault(),n.stopPropagation(),this.props.exitHandler&&this.props.exitHandler(n)})}render(){if(this.state.wasDestroyed)return null;const n=o1(u.jsxs(u.Fragment,{children:[u.jsx(Yge,{id:this.props.id,className:this.props.className,onDestroyed:this.handleDestroyed,scrollable:this.props.scrollable,onKeyDown:this.handleTabbing,onModalClick:this.handleModalClick,onOverlayClick:this.handleScrimClick,description:this.props.description,size:this.props.size,modalRef:this.selfRef,titleID:"titleID"in this.props?this.props.titleID:void 0,label:"label"in this.props?this.props.label:void 0,isVisible:this.props.isVisible,onKeyPress:this.props.onKeyPress,realRootID:this.state.realRootID,isFixHeight:this.props.isFixHeight,children:u.jsx(cz.Provider,{value:{isInModal:!0},children:this.props.children})}),this.props.afterContent]}),GO,!0);return u.jsxs(u.Fragment,{children:[u.jsx("span",{id:this.state.realRootID,style:{display:"none"}}),n]})}get tabHandler(){return this.selfRef.current?new Es(this.selfRef.current):null}componentDidMount(){this.getPageContainer()||hs(`
A modal was mounted, but the page container could not be found.
Please wrap your primary content area with the ID "${B2}" so it can be hidden to screenreaders.
            `),document.addEventListener("keydown",this.handleDocumentEscapePress)}componentWillUnmount(){var n;document.removeEventListener("keydown",this.handleDocumentEscapePress),this.props.noFocusOnExit||(n=this.closeFocusElement)==null||n.focus()}componentDidUpdate(n,r){var o;this.props.elementToFocusOnExit!==n.elementToFocusOnExit&&this.setCloseFocusElement(),r.wasDestroyed&&!this.state.wasDestroyed&&this.onMountIn(),!n.isVisible&&this.props.isVisible&&(this.setState({wasDestroyed:!1}),this.setCloseFocusElement()),n.isVisible&&!this.props.isVisible&&!this.props.noFocusOnExit&&((o=this.closeFocusElement)==null||o.focus())}getPageContainer(){return document.getElementById(B2)}focusInitialElement(){var r;const n=this.props.elementToFocus?this.props.elementToFocus:(r=this.tabHandler)==null?void 0:r.getInitial();n&&n.focus()}setCloseFocusElement(){if(this.props.elementToFocusOnExit?this.closeFocusElement=this.props.elementToFocusOnExit:this.closeFocusElement=document.activeElement,eg()&&(!this.closeFocusElement||this.closeFocusElement===document.documentElement)){const n=`
Dev Mode Error: Could not detect an element to focus on <Modal /> close.

It seems auto-detection isn't working, so you'll need to specify the "elementToFocusOnExit" props.`;throw new Error(n)}}handleShiftTab(n){var o;const r=(o=this.tabHandler)==null?void 0:o.getNext(void 0,!0);r&&(n.preventDefault(),n.stopPropagation(),r.focus())}handleTab(n){var o;const r=(o=this.tabHandler)==null?void 0:o.getNext();r&&(n.preventDefault(),n.stopPropagation(),r.focus())}};q(Ou,"stack",[]);let ao=Ou;var Sf;(function(e){e.DELETE="delete",e.MERGE="merge",e.MOVE="move",e.CLOSE="close"})(Sf||(Sf={}));function Kge(e){const{visibility:t,onVisibilityChange:n,bulkActionType:r}=e,o=x.useMemo(()=>r?{delete:Spe,move:Epe,merge:Dpe,close:Ipe}[r]??null:null,[r]),a=()=>n(!1);return u.jsx(ao,{isVisible:t,size:jt.MEDIUM,exitHandler:a,children:o&&u.jsx(o,{onCancel:a})})}function qge(e){const{action:t,setAction:n}=e;return u.jsx(Kge,{visibility:!!t,onVisibilityChange:r=>{r===!1&&n(null)},bulkActionType:t})}const uz=W.createContext({checkedDiscussionIDs:[],pendingActionIDs:[],addCheckedDiscussionsByIDs:()=>{},removeCheckedDiscussionsByIDs:()=>{},addPendingDiscussionByIDs:()=>{},removePendingDiscussionByIDs:()=>{}});function wv(){return x.useContext(uz)}function Xge(e){const{children:t}=e,n=Pi(),{addToast:r,updateToast:o,removeToast:a}=ha(),[i,s]=LN("checkedDiscussionsIDs",[]),[l,c]=LN("pendingDiscussionIDs",[]),[d,f]=x.useState({}),[h,m]=x.useState(null),g=A=>Array.isArray(A)?A:[A],p=A=>{s([...new Set([...i,...g(A)])])},v=A=>{s(T=>T.filter(B=>!g(A).includes(B)))},b=A=>{c([...new Set([...l,...g(A)])])},y=A=>{v(A),c(T=>T.filter(B=>!g(A).includes(B)))},C=()=>{s([])},D=x.useMemo(()=>i.length>0?u.jsx(Cpe,{selectedIDs:i,handleSelectionClear:C,handleBulkDelete:()=>m(Sf.DELETE),handleBulkMove:()=>m(Sf.MOVE),handleBulkMerge:()=>m(Sf.MERGE),handleBulkClose:()=>m(Sf.CLOSE)}):null,[i]);return x.useEffect(()=>{const A=d.action;D&&!A?f({action:r({persistent:!0,body:D,className:n.bulkActionsToast})}):o(A,{body:D}),!D&&A&&(a(A),f(T=>({...T,action:null})))},[D]),u.jsxs(uz.Provider,{value:{checkedDiscussionIDs:i,pendingActionIDs:l,addCheckedDiscussionsByIDs:p,removeCheckedDiscussionsByIDs:v,addPendingDiscussionByIDs:b,removePendingDiscussionByIDs:y},children:[u.jsx(qge,{action:h,setAction:m}),t]})}const Qge=W.createContext({setFontSize:()=>{hs("'setFontSize' called, but a proper provider was not configured.")},fontSize:null});function Zge(e){const{children:t}=e,[n,r]=x.useState(null);return u.jsx(Qge.Provider,{value:{setFontSize:r,fontSize:n},children:t})}const k2=re(()=>({backgroundImage:qe("homePage")("backgroundImage",ce.background({}))}));var Jge="[object Map]",eve="[object Set]",tve=Object.prototype,nve=tve.hasOwnProperty;function rve(e){if(e==null)return!0;if(yd(e)&&(fo(e)||typeof e=="string"||typeof e.splice=="function"||Jf(e)||Mx(e)||Zf(e)))return!e.length;var t=sh(e);if(t==Jge||t==eve)return!e.size;if($x(e))return!p6(e).length;for(var n in e)if(nve.call(e,n))return!1;return!0}const dz=re(()=>{const e=ee();return{background:P.colorOut(e.body.backgroundImage.color),...E.font({...e.fontSizeAndWeightVars("medium"),family:e.fonts.families.body,color:e.mainColors.fg}),wordBreak:"break-word","h1, h2, h3, h4, h5, h6":{...E.font({lineHeight:e.lineHeights.condensed,color:P.colorOut(e.mainColors.fgHeading),family:e.fonts.families.headings})}}}),ove=()=>{const e=ee();x.useEffect(()=>{const t=dz(),n=document.createElement("style");return n.innerHTML=`
            body {
                background: ${t.background};
                font-size: ${t.fontSize};
                font-family: ${t.fontFamily};
                color: ${t.color};
                word-break: ${t.wordBreak};
            }

            h1, h2, h3, h4, h5, h6 {
                line-height: ${e.lineHeights.condensed};
                color: ${P.colorOut(e.mainColors.fgHeading)};
                font-family: ${e.fonts.families.headings};
            }
        `,document.head.insertBefore(n,document.head.querySelector("[data-emotion]")??document.head.firstChild),function(){document.head.removeChild(n)}},[e])},fz=re(()=>{Zt({html:{msOverflowStyle:"-ms-autohiding-scrollbar"}}),Zt({"*":{WebkitOverflowScrolling:"touch"}}),Zt({"h1, h2, h3, h4, h5, h6":{display:"block",...E.margin({all:0}),...E.padding({all:0})}}),Zt({p:{...E.margin({all:0}),...E.padding({all:0})}}),Zt({button:{WebkitAppearance:"none",MozAppearance:"none"}}),Zt({'input[type="number"]':{WebkitAppearance:"none",MozAppearance:"textfield","&::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}}})}),hz=re((e=!1)=>{const t=ee(),n=Tt("fullBackground"),r=t.body.backgroundImage,o=k2(),a=e&&!rve(o.backgroundImage)?k2():t.body;return{root:n({display:r?"block":"none",position:"fixed",top:0,left:0,width:Z(100),height:UT(100),zIndex:-1},E.background(a.backgroundImage))}}),fS=()=>{ove(),fz();const e=ave(),t=hz(e.isHomePage);return u.jsx("div",{className:t.root})},mz=W.createContext({isHomePage:!1,setIsHomePage:()=>{}}),ave=()=>x.useContext(mz),ive=e=>{const[t,n]=x.useState(!1),r=Oh();return x.useEffect(()=>r.listen(()=>{n(!1)}),[r]),u.jsx(mz.Provider,{value:{isHomePage:t,setIsHomePage:n},children:e.children})},P2="vanillaCompatBodyBg";function sve(e=!1){if(!document.getElementById(P2)){fz();const t=hz(!!e),n=document.createElement("div");n.id=P2,n.classList.add(t.root);const r=document.querySelector(".Frame-body");r&&r.prepend(n)}}let R2=!1;const lve=e=>{const{themeKey:t,disabled:n,variablesOnly:r,revisionID:o}=e,{getAssets:a}=Cd(Br),{assets:i}=fn(f=>f.theme),{setTopOffset:s}=Sd(),{cacheID:l}=Bae(),[c,d]=x.useState({});return x.useEffect(()=>{d(t)},[t,d]),x.useEffect(()=>{if(!n){if(i.status===X.PENDING){try{return}catch(f){mn("Failed to load theme",f)}return}if(i.data&&!R2){R2=!0;const f=document.getElementById("themeHeader");if(f&&s(f.getBoundingClientRect().height),r)return}}},[i,n,s,r,a,t,l]),e.disabled||e.variablesOnly?u.jsx(u.Fragment,{children:e.children}):[X.PENDING,X.LOADING].includes(i.status)?u.jsxs(u.Fragment,{children:[u.jsx(fS,{}),!r&&u.jsx(pr,{})]}):i.status===X.ERROR?u.jsxs(u.Fragment,{children:[u.jsx(fS,{}),e.errorComponent]}):i.data?(wd().applyInputCSSRules(),u.jsx(u.Fragment,{children:u.jsx(iQ,{children:u.jsxs(ive,{children:[u.jsx(fS,{}),e.children]})})})):null};var cve={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Sp=function(t){var n=t.message,r=t["aria-live"];return W.createElement("div",{style:cve,role:"log","aria-live":r},n||"")};Sp.propTypes={};function uve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function dve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var pz=function(e){dve(t,e);function t(){var n,r,o;uve(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return o=(n=(r=j2(this,e.call.apply(e,[this].concat(i))),r),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},n),j2(r,o)}return t.getDerivedStateFromProps=function(r,o){var a=o.oldPolitemessage,i=o.oldPoliteMessageId,s=o.oldAssertiveMessage,l=o.oldAssertiveMessageId,c=r.politeMessage,d=r.politeMessageId,f=r.assertiveMessage,h=r.assertiveMessageId;return a!==c||i!==d?{politeMessage1:o.setAlternatePolite?"":c,politeMessage2:o.setAlternatePolite?c:"",oldPolitemessage:c,oldPoliteMessageId:d,setAlternatePolite:!o.setAlternatePolite}:s!==f||l!==h?{assertiveMessage1:o.setAlternateAssertive?"":f,assertiveMessage2:o.setAlternateAssertive?f:"",oldAssertiveMessage:f,oldAssertiveMessageId:h,setAlternateAssertive:!o.setAlternateAssertive}:null},t.prototype.render=function(){var r=this.state,o=r.assertiveMessage1,a=r.assertiveMessage2,i=r.politeMessage1,s=r.politeMessage2;return W.createElement("div",null,W.createElement(Sp,{"aria-live":"assertive",message:o}),W.createElement(Sp,{"aria-live":"assertive",message:a}),W.createElement(Sp,{"aria-live":"polite",message:i}),W.createElement(Sp,{"aria-live":"polite",message:s}))},t}(x.Component);pz.propTypes={};var gz=W.createContext({announceAssertive:N2,announcePolite:N2});function N2(){console.warn("Announcement failed, LiveAnnouncer context is missing")}function fve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hve(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function mve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var pve=function(e){mve(t,e);function t(n){fve(this,t);var r=hve(this,e.call(this,n));return r.announcePolite=function(o,a){r.setState({announcePoliteMessage:o,politeMessageId:a||""})},r.announceAssertive=function(o,a){r.setState({announceAssertiveMessage:o,assertiveMessageId:a||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return t.prototype.render=function(){var r=this.state,o=r.announcePoliteMessage,a=r.politeMessageId,i=r.announceAssertiveMessage,s=r.assertiveMessageId,l=r.updateFunctions;return W.createElement(gz.Provider,{value:l},this.props.children,W.createElement(pz,{assertiveMessage:i,assertiveMessageId:s,politeMessage:o,politeMessageId:a}))},t}(x.Component),zE={exports:{}},L2=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(L2){var $2=new Uint8Array(16);zE.exports=function(){return L2($2),$2}}else{var M2=new Array(16);zE.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),M2[t]=n>>>((t&3)<<3)&255;return M2}}var gve=zE.exports,vz=[];for(var xb=0;xb<256;++xb)vz[xb]=(xb+256).toString(16).substr(1);function vve(e,t){var n=t||0,r=vz;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}var bve=vve,yve=gve,xve=bve;function Cve(e,t,n){var r=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||yve)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||xve(o)}var wve=Cve;const _2=jr(wve);function Sve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Dve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var bz=function(e){Dve(t,e);function t(){var n,r,o;Sve(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return o=(n=(r=F2(this,e.call.apply(e,[this].concat(i))),r),r.announce=function(){var l=r.props,c=l.message,d=l["aria-live"],f=l.announceAssertive,h=l.announcePolite;d==="assertive"&&f(c||"",_2()),d==="polite"&&h(c||"",_2())},n),F2(r,o)}return t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(r){var o=this.props.message;o!==r.message&&this.announce()},t.prototype.componentWillUnmount=function(){var r=this.props,o=r.clearOnUnmount,a=r.announceAssertive,i=r.announcePolite;(o===!0||o==="true")&&(a(""),i(""))},t.prototype.render=function(){return null},t}(x.Component);bz.propTypes={};var Eve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yz=function(t){return W.createElement(gz.Consumer,null,function(n){return W.createElement(bz,Eve({},n,t))})};yz.propTypes={};var HE;(function(e){e.AND="and",e.OR="or"})(HE||(HE={}));const Bht="empty",Ive="all_content",kht=["domain","scope","page","query","sort","queryOperator"],YO=Ge("themeFeatures.useNewSearchPage",!1),Pht="user",Tve="knowledgeBase",Ave="group",Ove="category",Rht=HE.AND;function jht(e){let{start:t,end:n}=e,r;return t&&n?t===n?r=t:(t=t.replace(/,/g,""),n=n.replace(/,/g,""),r=`[${t},${n}]`):t?r=`>=${t}`:n&&(r=`<=${n}`),r}const xz=(e,t,n)=>{const o={...t,[YO?"query":"search"]:e};return n&&n!==""?n.replace("%s",encodeURI(e)):oo(`/search?${Oc.stringify(o)}`,!0)},Cz={supportsAutoComplete:!1,autocomplete:()=>Promise.resolve([]),makeSearchUrl:(e,t,n)=>xz(e,t,n)},KO=W.createContext({searchOptionProvider:Cz,externalSearch:void 0});function gh({children:e}){return u.jsx(KO.Provider,{value:{searchOptionProvider:gh.optionProvider,externalSearch:Ge("search.externalSearch",!1)},children:e})}gh.optionProvider=Cz;gh.setOptionProvider=e=>{gh.optionProvider=e};function wz(){return x.useContext(KO)}function Bve(e){const t=e.displayName||e.name||"Component";class n extends W.Component{render(){return u.jsx(KO.Consumer,{children:o=>u.jsx(e,{...o,...this.props})})}}return q(n,"displayName",`withSearch(${t})`),n}var bg;(function(e){e.COMPACT="compact",e.FULL="full"})(bg||(bg={}));const Sz=W.createContext("full");function Dz(){return x.useContext(Sz)}function kve(e){const t=x.useCallback(()=>{const o=Nn().breakpoints;return document.body.clientWidth<=o.compact?"compact":"full"},[]),[n,r]=x.useState(t());return x.useEffect(()=>{const o=g1(()=>{r(t)},100);return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[t,r]),u.jsx(Sz.Provider,{value:n,children:e.children})}var Sa;(function(e){e.NO_BORDER="no border",e.BORDER="border",e.UNIFIED_BORDER="unified border"})(Sa||(Sa={}));const qO=re(e=>{var B,j,R,N;const t=ee(e),n=Kt(e),r=qe("searchBar",e),o=r("search",{minWidth:109,fullBorderRadius:{extraHorizontalPadding:10},compact:{minWidth:n.sizing.height}}),a=r("placeholder",{color:n.placeholder.color}),i=r("heading",{margin:12}),s=r("border",{color:t.border.color,width:t.borderType.formElements.default.width,radius:t.borderType.formElements.default.radius,inset:!1}),l=r("sizing",{height:n.sizing.height}),c=r("sizing",{height:l.height,heightMinusBorder:l.height-s.width*2}),d=r("input",{fg:t.mainColors.fg,bg:t.mainColors.bg}),f=r("searchIcon",{gap:40,height:13,width:14,fg:d.fg.fade(.7),padding:{right:5}}),h=r("results",{fg:t.mainColors.fg,bg:t.mainColors.bg,borderRadius:t.border.radius}),m=r("scope",{width:142,padding:18,compact:{padding:12,width:58}}),g=r("scopeIcon",{width:10,ratio:6/10}),p=r("stateColors",{allStates:t.mainColors.primary,hoverOpacity:t.constants.states.hover.borderEmphasis}),v=r("stateColors",{...p,hover:p.allStates.fade(p.hoverOpacity),focus:p.allStates,active:p.allStates}),b=r("noBorder",{offset:1}),y=r("withBorder",{borderColor:t.border.color}),C=r("options",{compact:!1,preset:Sa.NO_BORDER}),D=gv().primary,A=ce.button({...D,name:"searchSubmitButton",borders:{...D.borders,radius:s.radius,left:{...(B=D.borders)==null?void 0:B.left,radius:0}},sizing:{minHeight:c.height,minWidth:o.minWidth+2},state:{...D.state,borders:{...(j=D.state)==null?void 0:j.borders,radius:s.radius,left:{...(N=(R=D.state)==null?void 0:R.borders)==null?void 0:N.left,radius:0}}}}),T=ce.button({...A,sizing:{minWidth:o.compact.minWidth+2}});return{search:o,noBorder:b,withBorder:y,searchIcon:f,sizing:c,placeholder:a,input:d,heading:i,results:h,border:s,scope:m,scopeIcon:g,stateColors:v,options:C,submitButton:A,compactSubmitButton:T}}),Ez=re(e=>{const t=ee(e),n=qe("compactSearch",e),r=Nn(e),o=Kt(e),a=n("searchButtonOptions",{preset:Fo.TRANSPARENT}),s=n("searchInputOptions",{preset:Sa.NO_BORDER}).preset===Sa.UNIFIED_BORDER,l=a.preset===Fo.TRANSPARENT;a.preset,Fo.SOLID;let c=P.modifyColorBasedOnLightness({color:r.colors.bg,weight:.2});r.colors.bgImage!==null&&(c=c.fade(.3));const d=n("colors",{primary:t.mainColors.primary,secondary:t.mainColors.secondary,contrast:t.elementaryColors.white,bg:t.mainColors.bg,fg:t.mainColors.fg,borderColor:t.mainColors.fg.fade(.4),placeholder:t.mainColors.fg.fade(.8),active:{bg:c}}),f=d.contrast.lightness()>=.5,h=n("backgrounds",{useOverlay:!1,overlayColor:f?t.elementaryColors.black.fade(.25):t.elementaryColors.white.fade(.25)});l?Za(0,0,0,0):d.primary,l?h.overlayColor.fade(.15):d.secondary,l?d.contrast:d.fg,l?d.contrast:d.bg;const m=n("searchBar",{sizing:{height:o.giantInput.height,width:705},font:{color:d.fg,size:o.giantInput.fontSize},border:{leftColor:l?d.contrast:d.borderColor,width:t.border.width}});return{colors:d,searchBar:m,backgrounds:h}}),Pve=re(()=>{const e=ee(),t=Kt(),n=Ez();wd().applyInputCSSRules();const r=S({".searchBar":{flexGrow:1},".searchBar__input":{color:P.colorOut(n.searchBar.font.color),width:Z(100)},".searchBar__input input":{color:P.colorOut(n.searchBar.font.color),borderRadius:je(0)},".searchBar-valueContainer":{height:w(t.sizing.height)},".searchBar__placeholder":{color:P.colorOut(n.colors.placeholder)},".searchBar-icon":{color:P.colorOut(n.colors.placeholder)},"&.isOpen":{maxWidth:Z(100)},"&.isCentered":{margin:"auto"},".suggestedTextInput-inputTextutText":{borderTopRightRadius:w(e.border.radius),borderBottomRightRadius:w(e.border.radius)}},"label:compactSearchStyles-root"),o=S({display:"flex",alignItems:"center",flexWrap:"nowrap",minHeight:w(t.sizing.height),justifyContent:"center",width:Z(100),position:"relative"},"label:compactSearchStyles-contents"),a=S({color:"inherit",whiteSpace:"nowrap",fontWeight:e.fonts.weights.semiBold,margin:0,outline:0,...E.border({radius:0,color:e.elementaryColors.transparent}),...E.padding({horizontal:10})},"label:compactSearchStyles-close"),i=S({},"label:compactSearchStyles-cancelContents"),s=S({flex:1,position:"relative",width:Z(100),height:w(t.sizing.height),display:"flex",flexWrap:"nowrap",...E.margin({horizontal:1})},"label:compactSearchStyles-searchAndResults");return{root:r,contents:o,close:a,cancelContents:i,searchAndResults:s,valueContainer:S({},"label:compactSearchStyles-valueContainer"),compactSearchWrapper:S({display:"flex",alignItems:"center",flexDirection:"column"},"label:compactSearchStyles-compactSearchWrapper")}});function Rve(e){return{breakpoints:e,breakpointUIEnabled:!1}}var Ku;(function(e){e.LEFT="left",e.CENTER="center"})(Ku||(Ku={}));const cd=re((e,t,n)=>{var Ne,Ze,ze,Xe,Me,Je,pt;const r=qe(n??"banner",t,new Rs({padding:"spacing.padding"}),!!n),o=ee(t),a=Ez(t),i=qO(t),s=r("backgrounds",{useOverlay:!0,overlayColor:a.backgrounds.overlayColor}),l=r("options",{enabled:!0,alignment:"center",mobileAlignment:"center",hideDescription:!1,hideTitle:!1,hideSearch:!1,hideSearchOnMobile:!1,hideIcon:!0,searchPlacement:"middle",overlayTitleBar:!0,url:"",deduplicateTitles:!0,bgColor:o.mainColors.primary,fgColor:o.mainColors.primaryContrast,useOverlay:s.useOverlay},e),c=r("colors",{primary:l.bgColor,primaryContrast:l.fgColor,bg:l.bgColor},(e==null?void 0:e.fgColor)&&{primaryContrast:e==null?void 0:e.fgColor}),d=r("colors",{...c,fg:c.primaryContrast},(e==null?void 0:e.fgColor)&&{primaryContrast:e==null?void 0:e.fgColor}),f={...s,...l.useOverlay!=null&&{useOverlay:l.useOverlay,overlayColor:P.isLightColor(d.fg)?o.elementaryColors.black.fade(.25):o.elementaryColors.white.fade(.25)}},h=r("presets",{input:{preset:Sa.NO_BORDER}}),m=r("presets",{...h,button:{preset:h.input.preset===Sa.UNIFIED_BORDER||P.isDarkColor(d.primaryContrast)?Fo.SOLID:Fo.TRANSPARENT}}),g=m.button.preset===Fo.SOLID,p=m.input.preset===Sa.BORDER,v=m.button.preset===Fo.TRANSPARENT,b=p&&g,y=r("padding",ce.spacing({top:o.spacer.pageComponent*1.5,bottom:o.spacer.pageComponent,horizontal:o.gutter.half})),C=r("dimensions",{minHeight:50,maxHeight:void 0,mobile:{minHeight:void 0,maxHeight:void 0}}),D=r("border",{width:i.border.width,radius:i.border.radius}),A=r("contentContainer",{minWidth:550,padding:ce.spacing({top:y.top,bottom:y.bottom,horizontal:0}),mobile:{padding:ce.spacing({top:o.spacer.componentInner*2,bottom:o.spacer.componentInner})}}),T=r("rightImage",{image:void 0,minWidth:500,padding:ce.spacing({vertical:o.gutter.size,horizontal:ps().spacing.padding*2})}),B=r("logo",{height:"auto",width:300,padding:ce.spacing({all:12}),image:void 0,mobile:{height:void 0,width:void 0}}),j={width:void 0,height:void 0,margins:ce.spacing({}),image:void 0,borderRadius:void 0},R=r("icon",{...j}),N=r("icon",{...R,mobile:{...R}}),_=r("outerBackground",ce.background({color:P.modifyColorBasedOnLightness({color:d.primary,weight:.05,inverse:!0}),repeat:"no-repeat",position:"50% 50%",size:"cover"})),U=r("outerBackground",{..._,...Rve({tablet:{...ce.background({}),breakpointUILabel:k("Tablet")},mobile:{...ce.background({}),breakpointUILabel:k("Mobile")}})}),V=r("innerBackground",ce.background({unsetBackground:!0,size:"unset"})),z=r("text",{shadowMix:1,innerShadowOpacity:.25,outerShadowOpacity:.75}),Y=r("font",ce.font({color:d.primaryContrast,align:l.alignment==="left"?"start":l.alignment,shadow:`0 1px 1px ${P.colorOut(ra(P.modifyColorBasedOnLightness({color:d.primaryContrast,weight:z.shadowMix})).fade(z.innerShadowOpacity))}, 0 1px 25px ${P.colorOut(ra(P.modifyColorBasedOnLightness({color:d.primaryContrast,weight:z.shadowMix})).fade(z.outerShadowOpacity))}`})),te=r("textAndSearchContainer",{maxWidth:705}),se=r("title",{font:ce.font({...Y,...o.fontSizeAndWeightVars("largeTitle","semiBold")}),fontMobile:ce.font({...Y,...o.fontSizeAndWeightVars("title"),weight:Y.weight}),margins:ce.spacing({bottom:o.spacer.headingItem}),text:Ge("ui.siteName",k("How can we help you?"))}),he=r("description",{text:void 0,font:ce.font({...Y,...o.fontSizeAndWeightVars("large"),weight:Y.weight}),margins:ce.spacing({bottom:12})}),pe=r("searchBar",{preset:m.button.preset,input:i.input,sizing:{maxWidth:te.maxWidth,height:Math.max(40,ti().sizing.height)},border:{color:p?d.primary:d.bg,radius:D.radius,width:D.radius}}),K=r("searchBar",{preset:pe.preset,border:pe.border,sizing:{...pe.sizing,heightMinusBorder:pe.sizing.height-pe.border.width*2},font:ce.font({...o.fontSizeAndWeightVars("large"),weight:Y.weight,color:pe.input.fg}),margin:ce.spacing({top:24}),marginMobile:ce.spacing({top:16}),shadow:{show:!1,style:`0 1px 1px ${P.colorOut(ra(P.modifyColorBasedOnLightness({color:d.fg,weight:z.shadowMix})).fade(z.innerShadowOpacity))}, 0 1px 25px ${P.colorOut(ra(P.modifyColorBasedOnLightness({color:d.fg,weight:z.shadowMix})).fade(z.outerShadowOpacity))}`},state:{border:{color:g?d.fg:d.primaryContrast}}});let O=d.bg;(v||b)&&(O=m.input.preset===Sa.NO_BORDER?i.input.bg:i.border.color);let le=r("searchButton",{...i.submitButton,name:"searchButton",presetName:m.button.preset,sizing:{...i.submitButton.sizing,minHeight:K.sizing.height},colors:{bg:v?Za(0,0,0,0):d.bg,fg:d.fg},borders:{color:O,radius:K.border.radius,left:{radius:0}},fonts:{...o.fontSizeAndWeightVars("large","bold")}}),be=(Ze=(Ne=le.state)==null?void 0:Ne.colors)==null?void 0:Ze.bg,H=(Xe=(ze=le.state)==null?void 0:ze.colors)==null?void 0:Xe.fg,ie=(Je=(Me=le.state)==null?void 0:Me.borders)==null?void 0:Je.color;v&&(be=P.isLightColor(U.color)?o.elementaryColors.white.fade(.3):o.elementaryColors.black.fade(.3),H=d.primaryContrast,ie=(pt=le.borders)==null?void 0:pt.color),le=r("searchButton",ce.button({...le,state:{...le.state,colors:{bg:be,fg:H},borders:{...le.borders,color:ie}}}));const oe=r("unifiedBorder",{width:i.border.width*2,color:le.colors.bg}),ve=r("shadow",{color:ra(P.modifyColorBasedOnLightness({color:d.primaryContrast,weight:z.shadowMix})).fade(.05),full:`0 1px 15px ${P.colorOut(ra(P.modifyColorBasedOnLightness({color:d.primaryContrast,weight:z.shadowMix})).fade(.3))}`,background:ra(P.modifyColorBasedOnLightness({color:d.primaryContrast,weight:z.shadowMix})).fade(.1).toString()}),$e=r("searchStrip",{bg:d.primary,minHeight:60,offset:void 0,padding:ce.spacing({top:12,bottom:12}),mobile:{bg:void 0,minHeight:void 0,offset:void 0,padding:ce.spacing({bottom:void 0})}});return{font:Y,presets:m,options:l,outerBackground:U,backgrounds:f,padding:y,innerBackground:V,contentContainer:A,dimensions:C,unifiedBorder:oe,text:z,title:se,description:he,searchBar:K,buttonShadow:ve,searchButton:le,colors:d,rightImage:T,border:D,searchStrip:$e,logo:B,icon:N,textAndSearchContainer:te}}),Iz=W.createContext({bannerExists:!1,setBannerExists:()=>{},bannerRect:null,setBannerRect:()=>{},overlayTitleBar:!1,setOverlayTitleBar:()=>{}});function E1(){const e=x.useContext(Iz);return x.useDebugValue(e),e}function Nht(){const e=E1(),t=cd().options.deduplicateTitles;return!e.bannerExists||!t}function jve(){const e=x.useRef(null),t=Zn(e,!0),{setBannerRect:n,setBannerExists:r}=E1();return x.useEffect(()=>{e.current&&(n(t),r(!0))},[e,t,r,n]),e}function Nve(e){const[t,n]=x.useState(!1),[r,o]=x.useState(!1),[a,i]=x.useState(null);return OW(()=>{n(!1),i(null),o(!1)}),u.jsx(Iz.Provider,{value:{bannerExists:t,setBannerExists:n,bannerRect:a,setBannerRect:i,overlayTitleBar:r,setOverlayTitleBar:o},children:e.children})}const W2="X-Apply-Entry-Link-Parameters",Tz=W.createContext({}),Lve=e=>{const[t,n]=x.useState({});return x.useEffect(()=>{const r=o=>{n(o.detail)};return document.addEventListener(W2,r),()=>{document.removeEventListener(W2,r)}},[]),u.jsx(Tz.Provider,{...e,value:t})};function XO(){return x.useContext(Tz)}function Az(){const e=XO(),t=Ge("signInUrl","/entry/signin");return QO(t,e)}function $ve(){const e=XO(),t=Ge("registrationUrl","/entry/register");return t?QO(t,e):null}function Mve(){const e=XO(),t=Ge("signOutUrl","/entry/signout");return QO(t,e)}function QO(e,t){const n=oo(e,!0),r=new URL(n),a={...Object.fromEntries(r.searchParams.entries()),...t};window.location.href.includes("/entry")||(a.target=window.location.href);for(const[i,s]of Object.entries(a))r.searchParams.set(i,s);return r.toString()}const _ve=function(){return null},Oz=new sQ({defaultOptions:{queries:{staleTime:1e3*60*5,networkMode:"always"},mutations:{networkMode:"always"}}}),z2=window.__REACT_QUERY_PRELOAD__??[];Array.isArray(z2)&&z2.forEach(([e,t])=>{Oz.setQueryData(e,t)});const Fve=W.lazy(()=>mt(()=>import("../vendor/index.prod.Rp3sF0Y8.min.js"),__vite__mapDeps([12,1]),import.meta.url).then(e=>({default:e.ReactQueryDevtools})));function Wve(e){const[t,n]=W.useState(!1);return x.useEffect(()=>{window.toggleDevtools=()=>n(r=>!r)},[]),u.jsxs(lQ,{client:Oz,children:[u.jsx(_ve,{}),e.children,t&&u.jsx(W.Suspense,{fallback:null,children:u.jsx(Fve,{})})]})}const Bz=W.createContext({siteSection:void 0});function zve(e){const t=Ge("siteSection",void 0);return u.jsx(Bz.Provider,{value:{siteSection:t},children:e.children})}function Lht(){return x.useContext(Bz)}const kz=W.createContext(h6);function Hve(e){const{theme:t,children:n}=e;return u.jsx(kz.Provider,{value:t,children:n})}function Uve(e){const{children:t}=e,n=fn(({theme:r})=>r);return u.jsx(Hve,{theme:n,children:t})}function Pz(){return x.useContext(kz)}function Vve(){return Pz().forcedVariables}function UE(e){switch(e.status){case"error":return{status:X.ERROR,error:e.error};case"success":return{status:X.SUCCESS,data:e.data};case"loading":return{status:e.isFetching?X.LOADING:X.PENDING};default:return{status:X.PENDING}}}const Gve="/attachments/catalog",Yve="/attachments/schema",Kve="/attachments",qve="/attachments/refresh",Xve={getIntegrationsCatalog:async function(){return(await Ct.get(Gve)).data},getAttachmentSchema:async function(e){return(await Ct.get(Yve,{params:e})).data},postAttachment:async function(e){return(await Ct.post(Kve,e)).data},refreshAttachments:async function(e){const{attachmentIDs:t,onlyStale:n=!1}=e;return(await Ct.post(qve,{attachmentIDs:t,onlyStale:n})).data}};function Qve(e){return["all","own"].includes(e.writeableContentScope)}const Rz={};function $ht(e,t){Rz[e]=t}function Zve(e){return Rz[e]??null}const Jve=x.createContext({api:Xve});function jz(){return x.useContext(Jve).api}const ebe="externalAttachments";function tbe(){return Ge(ebe,void 0)}const ZO=x.createContext({integrations:[],writeableIntegrations:[],refreshStaleAttachments:async e=>({})});function nbe(){return x.useContext(ZO).integrations}function JO(){return x.useContext(ZO).writeableIntegrations}function rbe(e){const t=jz(),n=e.integrations??tbe(),o=Ss({queryFn:async()=>await t.getIntegrationsCatalog(),queryKey:["integrations"],initialData:n,enabled:n===void 0}).data??n,a=Object.values(o??{}),i=o?Object.values(o).filter(l=>Qve(l)):[],s=Bh({mutationFn:async l=>{const c=l.map(({attachmentID:d})=>d);c.length>0&&await t.refreshAttachments({attachmentIDs:c,onlyStale:!0})}});return u.jsx(ZO.Provider,{value:{integrations:a,writeableIntegrations:i,refreshStaleAttachments:s.mutateAsync},children:e.children})}const Nz=x.createContext({title:"",externalIDLabel:"",logoIcon:"meta-external-compact",attachmentTypeIcon:void 0});function obe(){return x.useContext(Nz)}function abe(e){const t=nbe(),{children:n,attachmentType:r}=e,o=t.find(c=>c.attachmentType===r);if(!o)return wa(`No integration found for attachment type: ${r}. Are you missing the <AttachmentIntegrationsContextProvider/>?`),null;const{title:a,externalIDLabel:i,logoIcon:s="meta-external-compact",attachmentTypeIcon:l}=o??{};return u.jsx(Nz.Provider,{value:{title:a,externalIDLabel:i,logoIcon:s,attachmentTypeIcon:l},children:n})}const Lz=x.createContext({getSchema:async()=>({}),schema:{status:X.PENDING},postAttachment:async()=>({}),label:"",submitButton:"",name:"",postSuccessMessage:void 0});function ibe(){return x.useContext(Lz)}function $z(e){var C,D,A;const t=jz(),n=JO(),{children:r,attachmentType:o,recordType:a,recordID:i}=e,s=n.find(T=>T.attachmentType===o),{label:l="",submitButton:c="",title:d="",externalIDLabel:f="",logoIcon:h="meta-external-compact",attachmentTypeIcon:m,postSuccessMessage:g}=s??{},p=Ss({queryFn:async()=>{const T=Zve(o);return T?(await T())():null},queryKey:[o]}),v=Ss({retry:!1,queryFn:async()=>await t.getAttachmentSchema({attachmentType:o,recordType:a,recordID:i}),queryKey:["attachmentSchema",o,a,i],enabled:!1});let b=UE(v);p.isLoading&&(b={status:X.LOADING,data:void 0});const y=Bh({mutationFn:async T=>await t.postAttachment(T)});return s?u.jsx(Lz.Provider,{value:{name:s.name,label:l,submitButton:c,title:d,externalIDLabel:f,logoIcon:h,attachmentTypeIcon:m,postSuccessMessage:g,schema:b,getSchema:async()=>(await v.refetch()).data,postAttachment:async T=>await y.mutateAsync(T),transformLayout:(C=p==null?void 0:p.data)==null?void 0:C.transformLayout,beforeSubmit:(D=p==null?void 0:p.data)==null?void 0:D.beforeSubmit,CustomIntegrationForm:(A=p==null?void 0:p.data)==null?void 0:A.CustomIntegrationForm},children:r}):(wa(`No integration found for attachment type: ${o}. Are you missing the <AttachmentIntegrationsContextProvider/>?`),null)}let Mz=[];function Mht(e){Mz.unshift(e)}function sbe(e,t){return e.reverse().reduce((n,r)=>{const[o,a]=Array.isArray(r)?[r[0],r[1]]:[r,{}];return u.jsx(o,{...a,children:n})},t)}function lbe(e){const t=x.useMemo(()=>Pc(),[]),n=S({label:"appContext",width:Z(100)},"label:AppContext-rootStyle"),r=sbe([Wve,[cQ,{store:t}],Ame,Bde,zve,zde,Pee,gh,R3,pve,[Qhe,{scrollWatchingEnabled:!1}],[lve,{disabled:e.noTheme,errorComponent:u.jsx(C1,{}),themeKey:Ge("ui.themeKey","keystone"),variablesOnly:e.variablesOnly}],Uve,Zge,...Mz,kve,Nve,Lve,E8,Ohe,Xge,rbe],e.children);return e.noWrap?r:u.jsx("div",{className:ae("js-appContext",n,us()),children:r})}const cbe=re(()=>(ee(),{sizing:qe("hamburger")("sizing",{})})),ube=re(()=>{cbe();const e=ee(),t=Tt("hamburger"),n=t({}),r=Kt(),o=t({".Navigation-row":{display:"flex",justifyContent:"center",alignItems:"center"},".NewDiscussion":{width:Z(100)},".BoxButtons":{width:Z(100)},".ButtonGroup.Multi":{maxWidth:Z(100)},".Dropdown.MenuItems":{"&&":{top:Z(100)}},".ButtonGroup.NewDiscussion.Multi":{display:"flex",flexWrap:"wrap",".Button.Primary":{position:"relative"},".Button.Handle":{position:"relative",width:w(r.sizing.height),height:w(r.sizing.height),marginLeft:w(ca(r.sizing.height)),borderTopLeftRadius:je(0),borderBottomLeftRadius:je(0)},".Dropdown.MenuItems":{position:"relative",maxWidth:Z(100),marginTop:w(ca(r.border.width))},".mobileFlyoutOverlay":{position:"relative",height:"auto",background:"none"}}}),a=t("closeButton",{position:"absolute",top:w(e.gutter.half),right:w(e.gutter.half),zIndex:10}),i=l=>{const c=Kt();return t("spacer",{height:w(1),width:w(l?l*c.sizing.height:c.sizing.height*2)})},s=t("container",{paddingBottom:e.gutter.half});return{root:n,content:o,spacer:i,container:s,closeButton:a}}),_z=[];function _ht(e){_z.push(e)}const I1=re(e=>{const t=qe("navigation",e);let n=t("navigationItems",H2());n=n.filter(dbe);let r=t("mobileOnlyNavigationItems",[]);r=r.filter(H2);const o=t("logo",{url:"/"});return{navigationItems:n,mobileOnlyNavigationItems:r,logo:o}});function dbe(e){const t=!e.url&&(!e.children||e.children&&!e.children.length);return!(!e.name||t)}function H2(){var n,r,o;const e=(n=dg())==null?void 0:n.navigation,t=((r=e==null?void 0:e.navItems)==null?void 0:r[If()])??((o=e==null?void 0:e.navItems)==null?void 0:o.default)??null;return t?t.map(fbe):hbe()}function fbe(e){return{name:e.children,url:e.to,permission:e.permission,id:XT(),children:[]}}function hbe(){const e=Ge("siteSection.apps.forum",!0);let t=[];return e&&(t.push({id:"builtin-discussions",url:"/discussions",name:k("Discussions"),children:[]}),t.push({id:"builtin-categories",url:"/categories",name:k("Categories"),children:[]})),_z.forEach(n=>{t.push(n())}),t}class Fz extends x.Component{render(){const t=Rr();return u.jsx("li",{className:ae(this.props.className,t.item),role:"menuitem",children:this.props.children})}}function Na(e){const{children:t,name:n,disabled:r=!1}=e,o=t||n,a=Rr(),i=Rr().action,s=ae("dropDownItem-button",e.buttonClassName??i);return u.jsx(Fz,{className:ae(e.className),children:u.jsxs(ut,{buttonRef:e.buttonRef,title:e.name,onClick:e.onClick,className:ae(s,a.action,e.isActive&&a.actionActive),buttonType:ye.CUSTOM,disabled:r,"aria-current":e.current?"true":"false",lang:e.lang,role:e.role,children:[u.jsx("span",{className:a.text,children:o}),e.isLoading&&u.jsx(oi,{className:a.loader})]})})}class vh extends W.Component{render(){const{children:t,name:n,className:r,to:o}=this.props,a=t||n,i=Rr();return u.jsx(Fz,{className:ae(r,i.item),children:u.jsxs(wr,{to:o,title:n,lang:this.props.lang,className:ae(i.action,this.props.isActive&&i.actionActive),children:[a,this.props.isChecked&&u.jsx(d1,{className:i.check,"aria-hidden":!0})]})})}}const mbe=/^\s*((https?:\/\/))|^\s*\/|^\s*~/i;function U2(e){const{isActive:t,navItems:n=[]}=e,r=x.useRef(null),o=x.useRef(null);x.useEffect(()=>{if(t)return o.current=document.activeElement,setTimeout(()=>{var s;(s=r.current)==null||s.focus()},200),()=>{var s;(s=o.current)==null||s.focus()}},[t]);const a=x.useMemo(()=>n.map(({url:s,...l})=>{const c=s&&mbe.test(s)?s:`/${s}`;return{...l,url:c}}),[n]),i=Rr();return u.jsxs(u.Fragment,{children:[e.nestedTitle&&u.jsx(u.Fragment,{children:u.jsx(Dn,{title:e.nestedTitle,className:ae("dropDown-sectionHeading",i.sectionHeading),children:u.jsxs("div",{className:i.headingContentContainer,children:[e.canGoBack&&u.jsx(ut,{buttonRef:r,buttonType:ye.ICON_COMPACT,onClick:e.popParentItem,className:i.backButton,children:u.jsx(dO,{className:i.arrow})}),u.jsxs("div",{className:i.headingTitleContainer,children:[" ",e.nestedTitle," "]}),u.jsxs(ut,{className:i.closeButton,onClick:e.onClose,buttonType:ye.ICON_COMPACT,children:[u.jsx(Cr,{children:k("Close")}),u.jsx(Vh,{})]})]})})}),u.jsx("div",{className:i.panelNavItems,children:u.jsxs("div",{className:ae(i.panelContent,{isNested:e.canGoBack}),children:[u.jsx("ul",{className:i.sectionContents,children:a.map((s,l)=>{var f,h,m;const c=e.isNestable&&(((f=s.children)==null?void 0:f.length)??0)>0,d=s.recordType===((h=e.activeRecord)==null?void 0:h.recordType)&&s.recordID===((m=e.activeRecord)==null?void 0:m.recordID);return c?u.jsxs(Na,{isActive:d,onClick:()=>{e.pushParentItem(s)},className:i.itemButton,children:[u.jsx("span",{className:i.text,children:s.name}),u.jsx(EE,{className:i.arrow})]},l):s.isLink?u.jsxs(vh,{className:i.itemButton,isActive:d,to:s.url||"",children:[u.jsx("span",{className:i.text,children:s.name}),u.jsx(EE,{className:i.arrow})]},l):u.jsxs(vh,{className:i.itemButton,isActive:d,to:s.url||"",children:[s.name,s.badge&&s.badge.type==="text"&&u.jsx("span",{className:i.badge,children:s.badge.text})]},l)})}),e.extraSections]})})]})}function Wz(e,t){const n=new URL(Ni(t));return e.filter(a=>n.pathname.startsWith(a)).sort((a,i)=>-zZ(a.length,i.length))[0]??void 0}function zz(e,t){return e.reduce((n,r)=>(n.push(r),Array.isArray(r[t])&&(n=n.concat(zz(r[t],t))),n),[])}function pbe(e,t){const n=tv();if(t)return t;const r=zz(e,"children"),o=r.filter(s=>!!s.url).map(({url:s})=>s),a=Wz(o,n.pathname);return r.find(({url:s})=>s===a)??null}function gbe(e,t){const n=tv().search;let o=Oc.parse(n,{ignoreQueryPrefix:!0})[e];if(o==null)return t??null;let a=null;if(typeof t=="boolean")a=o==="true";else if(y3(o)){const i=parseInt(o,10);Number.isNaN(i)?a=t??null:a=i}else a=o;return a}function Fht(){return gbe("page",1)}function Hz(e){const[t,n]=x.useState([]),r=Rr(),o=pbe(e.navItems,e.activeRecord),a=()=>{t.pop(),n(Array.from(t))},i=s=>{t.push(s),n(Array.from(t))};return u.jsxs(u.Fragment,{children:[e.title&&u.jsx(Dn,{title:e.title,className:ae("dropDown-sectionHeading",r.sectionHeading),"aria-hidden":t.length>0,children:u.jsxs("div",{className:r.headingContentContainer,children:[u.jsxs("div",{className:r.headingTitleContainer,children:[" ",e.title," "]}),!!e.onClose&&u.jsxs(ut,{className:r.closeButton,onClick:e.onClose,buttonType:ye.ICON_COMPACT,children:[u.jsx(Cr,{children:k("Close")}),u.jsx(Vh,{})]})]})}),u.jsx("div",{className:ae(r.panel,r.panelFirst),"aria-hidden":t.length>0,children:u.jsx(U2,{activeRecord:o??void 0,isActive:!1,navItems:e.navItems,isNestable:e.isNestable,popParentItem:a,pushParentItem:i,canGoBack:!1,onClose:e.onClose,extraSections:e.afterNavSections})}),u.jsx(wy,{isEntered:!0,fromDirection:fc.RIGHT,className:r.panel,"aria-hidden":!0,lastItemProps:{className:r.panelLast,"aria-hidden":"false"},children:t.map((s,l)=>{const c=s?s.children:e.navItems;let d="root";return s&&(d=s.recordType+s.recordID),u.jsx(U2,{activeRecord:e.activeRecord,isActive:l===t.length-1,navItems:c??[],isNestable:e.isNestable,popParentItem:a,pushParentItem:i,canGoBack:s!==null,onClose:e.onClose,nestedTitle:s==null?void 0:s.name},d)})})]})}class uf extends x.Component{render(){const t=Rr();return u.jsx("li",{role:"separator",className:ae(this.props.className,t.separator)})}}function vbe(e){const{hasPermission:t}=mr(),{mobileOnlyNavigationItems:n}=I1(),[r,o]=x.useMemo(()=>{const a=n.map(s=>T1(s,t)).filter(Do),i=Gz(a);return[a,i]},[n]);return u.jsx(u.Fragment,{children:r.length>0&&u.jsxs(u.Fragment,{children:[u.jsx(uf,{}),u.jsx(Hz,{navItems:r,activeRecord:o,isNestable:!0})]})})}var VE;(function(e){e[e.tree=0]="tree",e[e.node=1]="node"})(VE||(VE={}));const bbe=x.createContext({dynamicComponents:{},addComponent:e=>-1,removeComponentByID:e=>null,isCompact:!1});function Uz(){return x.useContext(bbe)}const Vz=[];function Wht(e){Vz.push(e)}function ybe(e){const[t,n]=x.useState(e.forceHamburgerOpen||!1),r=ube(),o=()=>{n(!1)},a=()=>{n(!t)},{showCloseIcon:i=!0}=e,{dynamicComponents:s}=Uz(),l=x.useMemo(()=>s?u.jsx(u.Fragment,{children:Object.values(s).map(({component:c},d)=>u.jsx(W.Fragment,{children:c},d))}):u.jsx(u.Fragment,{}),[s]);return u.jsxs(u.Fragment,{children:[u.jsx(ut,{buttonType:ye.ICON,className:ae(r.root,e.className),onClick:a,children:u.jsxs(u.Fragment,{children:[u.jsx(gfe,{}),u.jsx(Cr,{children:k("Menu")})]})}),u.jsxs(ao,{scrollable:!0,isVisible:t,size:jt.MODAL_AS_SIDE_PANEL_LEFT,exitHandler:o,children:[i&&u.jsxs(ut,{className:r.closeButton,buttonType:ye.ICON_COMPACT,onClick:()=>{n(!1)},children:[u.jsx(Cr,{children:k("Close")}),u.jsx(Vh,{})]}),u.jsxs("div",{className:r.container,children:[u.jsx(xbe,{onClose:()=>n(!1),navigationItems:e.navigationItems}),u.jsx(vbe,{}),l,e.extraNavAfterDynamicComponents,e.extraNavBottom,Vz.map((c,d)=>u.jsx(c,{},d))]})]})]})}function T1(e,t,n="root"){const{permission:r,name:o,url:a,id:i,children:s,isHidden:l,badge:c}=e;if(r&&!t(r)||l)return null;const d={name:o,url:a,recordID:i,recordType:"customLink",parentID:n,children:(s==null?void 0:s.map(f=>T1(f,t,n)).filter(Do))??[],sort:0};return c&&(d.badge=c),d}function Gz(e){let t=null;for(const n of e)window.location.href.includes(n&&n.url?n.url.replace("~",""):"")&&(t=`${n.recordID}`);return{recordID:t??"notspecified",recordType:"customLink"}}function xbe(e){const{hasPermission:t}=mr(),n=e.navigationItems&&e.navigationItems.length?e.navigationItems:I1().navigationItems,[r,o]=x.useMemo(()=>{const a=n.map(s=>T1(s,t)).filter(Do),i=Gz(a);return[a,i]},[n]);return u.jsx(Hz,{onClose:e.onClose,navItems:r,title:k("Site Navigation"),isNestable:!0,activeRecord:o})}const A1=re(()=>{const e=ee(),t=Kt(),n=Nn(),r=Xce("meBox"),o=Ht().mediaQueries(),a=wo(),i=S({...r.name(),display:"flex",alignItems:"center",height:w(n.sizing.height)},o.oneColumnDown({height:w(n.sizing.mobile.height)}),"label:meBoxStyles-root"),s=S({...a.middle(),width:w(t.sizing.height),maxWidth:w(t.sizing.height),flexBasis:w(t.sizing.height),height:w(n.meBox.sizing.buttonContents),borderRadius:w(e.border.radius)},"label:meBoxStyles-buttonContent"),l=S({display:"flex",alignItems:"center",flexDirection:"column"},"label:meBoxStyles-meboxItem"),c=S({...E.font({...n.meBox.label.font}),...E.margin({...n.meBox.label.spacing}),whiteSpace:"nowrap"},"label:meBoxStyles-label");return{root:i,buttonContent:s,meboxItem:l,label:c}}),GE=Hr({loadFunction:()=>mt(()=>import("../chunks/library/MessagesContentsImpl.pkbJtDQM.min.js"),__vite__mapDeps([13,1,14]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),Cbe=re(()=>{const e=ee(),t=qe("count"),n=t("font",{size:10}),r=t("sizing",{height:e.fonts.size.large}),o=t("notifications",{bg:e.messageColors.deleted.bg});return{font:n,sizing:r,notifications:o}}),Yz=re(()=>{const e=ee(),t=Cbe(),n=P.isLightColor(t.notifications.bg)?e.elementaryColors.almostBlack:e.elementaryColors.white,r=S({...ki.topRight(4),display:"block",backgroundColor:P.colorOut(t.notifications.bg),height:w(t.sizing.height),lineHeight:w(t.sizing.height),minWidth:w(t.sizing.height),fontSize:w(t.font.size),fontWeight:e.fonts.weights.semiBold,borderRadius:w(t.sizing.height/2),whiteSpace:"nowrap",padding:"0 3px"},"label:countStyles-root"),o=S({display:"block",textAlign:"center",color:P.colorOut(n)},"label:countStyles-text");return{root:r,text:o}});class Kz extends x.Component{render(){const t=!!this.props.count,n=this.props.useMax??!0,r=this.props.useFormatted??!1,o=this.props.max||99,a=t&&this.props.count>1050?1:0,i=this.props.count&&r?Ff(this.props.count,a):this.props.count,s=r?`${Ff(o,a)}+`:`${o}+`,l=n?s:i,c=t&&this.props.count<o?i:l,d=Yz();return u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"sr-only","aria-live":"polite",children:this.props.label+` ${this.props.count}`}),t&&u.jsx("div",{className:ge(d.root,this.props.className),children:u.jsx("div",{className:d.text,"aria-hidden":!0,children:c})})]})}}const qz=re(()=>{const e=qe("compactMeBox"),t=ee(),n=e("tab",{height:44,width:44}),r=e("colors",{bg:t.mainColors.bg});return{tab:n,colors:r}}),Xz=re(()=>{const e=ee(),t=qz(),n=S({display:"block",marginRight:Ta((Nn().sizing.mobile.width-js().sizing.small)/2)},"label:compactMeBoxStyles-root"),r=S({color:e.elementaryColors.white.toString()},"label:compactMeBoxStyles-openButton"),o=S({position:"relative",height:Z(100)},"label:compactMeBoxStyles-contents"),a=S({"&&":{...E.absolute.topRight(),width:w(t.tab.width),height:w(t.tab.height)}},"label:compactMeBoxStyles-closeModal"),i=S(Hh(),{top:0,background:P.colorOut(t.colors.bg),zIndex:2,paddingRight:w(t.tab.width),height:w(t.tab.height),flexBasis:w(t.tab.width),color:e.mainColors.fg.toString()},"label:compactMeBoxStyles-tabList"),s=S({...wo().middle(),position:"relative",width:w(t.tab.width),height:w(t.tab.height)},"label:compactMeBoxStyles-tabButtonContent"),l=S({height:it(`100% - ${t.tab.height}px`),position:"relative"},"label:compactMeBoxStyles-tabPanels"),c=S({...ei(),...wo().middle()},"label:compactMeBoxStyles-tabButton"),d=S({maxHeight:Z(100),borderTop:0,borderRadius:0},"label:compactMeBoxStyles-panel");return{root:n,openButton:r,contents:o,closeModal:a,tabList:i,tabPanels:l,tabButton:c,tabButtonContent:s,panel:d,body:S({flexGrow:1},"label:compactMeBoxStyles-body"),scrollContainer:S({overflow:"auto"},"label:compactMeBoxStyles-scrollContainer")}});function yg(e){const{count:t,countLabel:n,compact:r,children:o}=e,a=Xz(),i=A1();return u.jsxs("div",{className:ae("meBox-buttonContent",r?a.tabButtonContent:i.buttonContent),children:[o,t!=null&&n&&t>=0&&u.jsx(Kz,{label:n,count:t})]})}function YE(e){const{open:t,compact:n}=e,r=qi(),o=(r==null?void 0:r.countUnreadConversations)??0;return u.jsx(yg,{count:o,countLabel:k("Messages")+": ",compact:n,children:u.jsx(Bt,{icon:t?"me-messages-solid":"me-messages"})})}class wbe extends W.Component{constructor(){super(...arguments);q(this,"id",ro("messagesDropDown"));q(this,"state",{open:!1});q(this,"setOpen",n=>{this.setState({open:n})})}render(){const n=Ge("context.conversationsEnabled",!1),r=Ns();return n?u.jsx(Jh,{contentID:this.id+"-content",handleID:this.id+"-handle",name:yt.sprintf("Messages: %s",this.props.count),renderLeft:!Ge("ui.isDirectionRTL",!1),buttonClassName:r.button,contentsClassName:r.dropDownContents,buttonContents:u.jsx(YE,{open:this.state.open,compact:!1}),onVisibilityChange:this.setOpen,flyoutType:jc.FRAME,onHover:GE.preload,children:u.jsx(GE,{countClass:this.props.countClass})}):null}}const KE=Hr({loadFunction:()=>mt(()=>import("../chunks/library/NotificationsContentsImpl.B7nO0UXv.min.js"),__vite__mapDeps([15,1,14]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});function qE(e){const{open:t,compact:n}=e,r=qi(),o=(r==null?void 0:r.countUnreadNotifications)??0;return u.jsx(yg,{count:o,countLabel:k("Notifications")+": ",compact:n,children:t?u.jsx(Bt,{icon:"me-notifications-solid"}):u.jsx(Bt,{icon:"me-notifications"})})}class Sbe extends W.Component{constructor(){super(...arguments);q(this,"id",ro("notificationsDropDown"));q(this,"state",{open:!1});q(this,"setOpen",n=>{this.setState({open:n})})}render(){const{userSlug:n}=this.props,r=Ns();return u.jsx(Jh,{contentID:this.id+"-content",handleID:this.id+"-handle",name:yt.sprintf("Notifications: %s",this.props.countUnread),renderLeft:!Ge("ui.isDirectionRTL",!1),buttonClassName:r.button,contentsClassName:r.dropDownContents,buttonContents:u.jsx(qE,{open:this.state.open,compact:!1}),onVisibilityChange:this.setOpen,flyoutType:jc.FRAME,onHover:KE.preload,children:u.jsx(KE,{userSlug:n})})}}const Dbe=[],Ebe=e=>{Dbe.push(e)},Ibe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/UserDropDownContentsImpl.CnxAMuc7.min.js"),__vite__mapDeps([16,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),Ny=Ibe;Ny.registerBeforeUserDropDown=Ebe;const Tbe=re(()=>{const e=ee(),t=ZA("userDropDown"),n={topPadding:6,rightPadding:18,bottomPadding:6,leftPadding:18,...t.subComponentStyles("item")},r={topMargin:24,bottomMargin:24,...t.subComponentStyles("userCard")},o={topMargin:9,bottomMargin:24,paddingRight:n.rightPadding,paddingLeft:n.leftPadding,fontWeight:e.fonts.weights.semiBold,fontSize:e.fonts.size.subTitle,lineHeight:e.lineHeights.condensed,...t.subComponentStyles("userName")},a={width:300,...t.subComponentStyles("contents")};return{userCard:r,userName:o,contents:a,item:n}}),Abe=re(()=>{const e=ee(),t=Tbe(),n=S({listStyle:"none",...E.padding({vertical:4,horizontal:14}),display:"flex",justifyContent:"start",alignItems:"center",gap:12},"label:userDropDownStyles-userCard"),r=S({display:"block"},"label:userDropDownStyles-userCardPhotoLink"),o=S({border:`solid 1px ${e.mixBgAndFg(.3)}`,"&&":{width:70,height:"auto",aspectRatio:"1/1"}},"label:userDropDownStyles-userCardPhoto"),a=S({color:"inherit",fontWeight:t.userName.fontWeight,fontSize:w(t.userName.fontSize),lineHeight:t.userName.lineHeight,textWrap:"pretty"},"label:userDropDownStyles-userCardName"),i=S({width:w(t.contents.width)},"label:userDropDownStyles-contents"),s=S({display:"flex",flexDirection:"column",alignItems:"start"},"label:userDropDownStyles-userInfo"),l=S({fontSize:w(e.fonts.size.small)},"label:userDropDownStyles-email"),c=S({fontSize:w(e.fonts.size.medium),color:P.colorOut(e.elementaryColors.darkText),...E.linkDecoration()},"label:userDropDownStyles-accountLinks");return{userCardPhotoLink:r,userCardPhoto:o,userCardName:a,contents:i,userInfo:s,accountLinks:c,email:l,userCard:n}});function Obe(e){const t=x.useMemo(()=>ro("userDropDown"),[]),[n,r]=x.useState(!1),{checkCountData:o}=e;x.useEffect(()=>{n&&o()},[n,o]);const{userInfo:a}=e;if(!a)return null;const i=Abe(),s=Ns();return u.jsx(Jh,{handleID:t+"-handle",contentID:t+"-content",name:k("My Account"),buttonClassName:ae(s.button),contentsClassName:ae(i.contents,s.dropDownContents),renderLeft:!Ge("ui.isDirectionRTL",!1),buttonContents:u.jsx(yg,{compact:!1,children:u.jsx(Yi,{userInfo:a,styleType:uh.SELECTED_ACTIVE,className:"headerDropDown-user meBox-user",size:ho.SMALL})}),flyoutType:jc.FRAME,onVisibilityChange:r,onHover:Ny.preload,children:u.jsx(Ny,{})})}function Bbe(e){return{userInfo:e.users.current.data?e.users.current.data:null,counts:e.users.countInformation.counts}}function kbe(e){const t=new En(e,Ct),{checkCountData:n}=t;return{checkCountData:n}}const Pbe=uQ(Bbe,kbe)(Obe);class Rbe extends W.Component{render(){const t=this.props.currentUser;if(!t)return null;const n=A1(),r=this.props.withSeparator&&u.jsx("span",{children:"|"}),o=this.props.withLabel;return u.jsxs("div",{className:ae("meBox",this.props.className,n.root),children:[r,u.jsxs("div",{className:n.meboxItem,children:[u.jsx(Sbe,{userSlug:t.name,countUnread:t.countUnreadNotifications}),o&&u.jsx("div",{className:n.label,children:k("Notifications")})]}),r,u.jsxs("div",{className:n.meboxItem,children:[u.jsx(wbe,{count:t.countUnreadConversations}),o&&u.jsx("div",{className:n.label,children:k("Messages")})]}),r,u.jsxs("div",{className:n.meboxItem,children:[u.jsx(Pbe,{}),o&&u.jsx("div",{className:n.label,children:k("Profile")})]})]})}}let jbe=class extends x.Component{render(){const{className:t,tabs:n,selectedTab:r,getTabButtonID:o,getTabPanelID:a,tabPanelClass:i}=this.props,s=n.map((l,c)=>{const d=`tabPanel-${c}`;return r===c?u.jsx("div",{id:a(c),"aria-labelledby":o(c),role:"tabpanel",className:ae("tabPanel",i),tabIndex:0,children:l.panelContent},d):u.jsx(x.Fragment,{},d)});return u.jsx("div",{className:ae("tabPanels",t),children:s})}};class Nbe extends x.Component{constructor(){super(...arguments);q(this,"handleClick",()=>{this.props.setTab(this.props.index)})}render(){const{id:n,ariaControls:r,ariaSelected:o,className:a,buttonType:i,tabIndex:s,children:l}=this.props;return u.jsx(ut,{id:n,"aria-controls":r,"aria-selected":o,buttonType:i,className:a,role:"tab",tabIndex:s,onClick:this.handleClick,onKeyDown:this.props.onKeyDown,children:l})}}const Lbe=re(()=>{const e=ee(),t=Tt("tabButtonList"),n=Yz(),r=qz(),o=t({display:"flex",alignItems:"center",justifyContent:"stretch"}),a=t("button",{flexGrow:1,color:P.colorOut(e.mainColors.fg),".icon":{...Hc("opacity"),opacity:.8},"&:hover":{color:P.colorOut(e.mainColors.primary),".icon":{opacity:1}},"&:focus, &:active, &.focus-visible":{color:P.colorOut(e.mainColors.primary)},[`.${n.text}`]:{color:P.colorOut(r.colors.bg)}});return{root:o,button:a}});class $be extends W.Component{constructor(){super(...arguments);q(this,"tabButtons",W.createRef());q(this,"state",{setAllTabIndexes:!1});q(this,"handleKeyDown",n=>{n.persist();const r=n.currentTarget;this.setState({setAllTabIndexes:!0},()=>{const o=new Es(this.tabButtons.current);switch(n.key){case"ArrowRight":{n.stopPropagation();const a=o.getNext(r,!1,!0);a&&a.focus();break}case"ArrowLeft":{n.stopPropagation();const a=o.getNext(r,!0,!0);a&&a.focus();break}case"Home":{n.stopPropagation();const a=o.getInitial();a&&a.focus();break}case"End":{n.stopPropagation();const a=o.getLast();a&&a.focus();break}}this.setState({setAllTabIndexes:!1})})})}render(){const{className:n,label:r,tabs:o,selectedTab:a,getTabButtonID:i,getTabPanelID:s,buttonClass:l}=this.props,c=Lbe(),d=o.map((f,h)=>{const m=a===h,g=!!f.openButtonContent;return u.jsxs(Nbe,{id:i(h),ariaControls:s(h),ariaSelected:m,buttonType:ye.CUSTOM,className:ae(m,l,c.button),tabIndex:m||this.state.setAllTabIndexes?0:-1,index:h,setTab:this.props.setTab,onKeyDown:this.handleKeyDown,children:[!g||!m&&f.buttonContent,g&&m&&f.openButtonContent]},`tabButton-${h}`)});return u.jsxs("div",{role:"tablist","aria-label":r,className:ae("tabButtonList",n,c.root),ref:this.tabButtons,children:[d,this.props.extraContent]})}}let Mbe=class extends W.PureComponent{constructor(n){super(n);q(this,"id",ro("tabs"));q(this,"setSelectedTab",n=>{this.setState({selectedTab:n})});q(this,"tabButtonID",n=>`${this.id}-tabButton-${n}`);q(this,"tabPanelId",n=>`${this.id}-tabPanel-${n}`);this.state={selectedTab:0}}render(){return this.props,u.jsxs(u.Fragment,{children:[u.jsx($be,{tabs:this.props.tabs,selectedTab:this.state.selectedTab,setTab:this.setSelectedTab,getTabButtonID:this.tabButtonID,getTabPanelID:this.tabPanelId,label:this.props.label,parentID:this.id,buttonClass:this.props.buttonClass,className:this.props.tabListClass,extraContent:this.props.extraTabContent}),u.jsx(jbe,{tabs:this.props.tabs,selectedTab:this.state.selectedTab,getTabButtonID:this.tabButtonID,getTabPanelID:this.tabPanelId,parentID:this.id,tabPanelClass:this.props.tabPanelClass,className:this.props.tabPanelsClass})]})}};class _be extends W.Component{constructor(){super(...arguments);q(this,"buttonRef",W.createRef());q(this,"state",{open:!1});q(this,"open",()=>{this.setState({open:!0})});q(this,"close",()=>{this.setState({open:!1})})}render(){const n=this.props.currentUser;if(!n)return null;const r=Xz(),o=Ns(),a=ae("compactMeBox-body",r.body),i=k("Me"),s=N3(k('User: "%s"'),[k("Me")]),l=Ge("context.conversationsEnabled",!1);return u.jsxs("div",{className:ae("compactMeBox",this.props.className,r.root),children:[u.jsx(ut,{title:k("My Account"),className:ae(r.openButton,o.centeredButton,o.button),onClick:this.open,buttonRef:this.buttonRef,buttonType:ye.CUSTOM,children:u.jsx(Yi,{userInfo:n,className:"meBox-user",size:ho.SMALL})}),u.jsx(ao,{isVisible:this.state.open,size:jt.MODAL_AS_SIDE_PANEL_RIGHT,elementToFocusOnExit:this.buttonRef.current,exitHandler:this.close,children:u.jsx(Mbe,{label:k("My Account Tab"),tabListClass:ae(r.tabList),tabPanelsClass:ae(r.tabPanels,us()),tabPanelClass:ae(us(),r.panel),buttonClass:ae(r.tabButton),extraTabContent:u.jsx(m1,{onClick:this.close,className:ae(r.closeModal)}),tabs:[{buttonContent:u.jsx(yg,{compact:!0,children:u.jsx(xE,{styleType:uh.SELECTED_INACTIVE,title:i,alt:s})}),openButtonContent:u.jsx(yg,{compact:!0,children:u.jsx(xE,{styleType:uh.SELECTED_ACTIVE,title:i,alt:s})}),panelContent:u.jsx(xv.TouchScrollable,{children:u.jsx("div",{className:r.scrollContainer,children:u.jsx(Ny,{})})})},{buttonContent:u.jsx(qE,{open:!1,compact:!0}),openButtonContent:u.jsx(qE,{open:!0,compact:!0}),panelContent:u.jsx(KE,{panelBodyClass:a,userSlug:n.name})},...l?[{buttonContent:u.jsx(YE,{open:!1,compact:!0}),openButtonContent:u.jsx(YE,{open:!0,compact:!0}),panelContent:u.jsx(GE,{className:a})}]:[]]})})]})}}const Ly=re(e=>{const t=ee(),n=Tn(),{forDashboard:r=!1}=e||{},o=Ht().mediaQueries(),a={width:Z(100),display:"block",...E.font({align:"left",...r?t.fontSizeAndWeightVars("medium"):t.fontSizeAndWeightVars("large"),color:t.mainColors.fg}),...E.padding({horizontal:12})},i={...zn("none"),...a,...E.font({size:t.fonts.size.subTitle,weight:t.fonts.weights.bold,lineHeight:t.lineHeights.condensed,color:t.mainColors.fg}),...E.padding({top:12,bottom:10})},s={...ei(),...a,...E.padding({vertical:6}),".suggestedTextInput-parentTag":{...E.font({...n.font,lineHeight:"inherit"})},"&:hover, &:focus, &.isFocused":{color:"inherit",backgroundColor:t.states.hover.highlight.toString()},"&":{...o.xs({...E.padding({vertical:10})})}};return{groupHeading:i,option:s}}),eB=re(()=>{const e=ee(),t=qe("searchResults"),n=t("colors",{fg:e.mainColors.fg}),r=t("title",{font:ce.font({...e.fontSizeAndWeightVars("large","semiBold"),color:n.fg,lineHeight:e.lineHeights.condensed,textDecoration:"none"})}),o=t("excerpt",{fg:e.mainColors.fg,margin:"0.7em"}),a=t("image",{border:{color:e.mixBgAndFg(.1)}}),i=t("icon",{size:26,bg:P.colorOut(e.mixBgAndFg(.1))}),s=t("separator",{fg:e.separator.color,width:e.separator.size}),l=t("spacing",{padding:e.itemList.padding}),c=t("mediaElement",{width:190,height:106.875,margin:15,compact:{ratio:9/16*100}});return{colors:n,title:r,excerpt:o,image:a,separator:s,spacing:l,icon:i,mediaElement:c}}),Fbe=re(()=>{const e=eB();return{iconWrap:S({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:P.colorOut(e.icon.bg),borderRadius:"50%",width:w(e.icon.size),height:w(e.icon.size),flexShrink:0,cursor:"pointer"},"label:searchResultsStyles-iconWrap"),highlight:S({"b, strong, em, mark":{fontStyle:"normal",fontWeight:700,backgroundColor:"transparent"}},"label:searchResultsStyles-highlight")}}),em=re(()=>{const e=ee(),t=S({marginRight:"auto"},"label:selectBoxStyles-buttonIcon"),n=S({display:"flex",alignItems:"center",justifyContent:"flex-start",textAlign:"start",maxWidth:Z(100),border:0,"&.minimalStyles":{justifyContent:"center",[`.${t}`]:{marginRight:0}}},"label:selectBoxStyles-toggle"),r=S({display:"flex",overflow:"hidden",alignItems:"center",justifyContent:"flex-start",textAlign:"start",maxWidth:Z(100),lineHeight:e.lineHeights.condensed,paddingLeft:Le(13.5),"&[disabled]":{opacity:1}},"label:selectBoxStyles-buttonItem"),o=S({},"label:selectBoxStyles-selectBoxDropdown"),a=S({display:"flex",alignItems:"center",justifyContent:"center",color:e.mainColors.primary.toString(),width:Z(100),height:Le(18),flexBasis:Le(18),marginLeft:"auto"},"label:selectBoxStyles-checkContainer"),i=S({display:"block",width:Le(18),height:Le(18)},"label:selectBoxStyles-spacer"),s=S({display:"block",flexGrow:1},"label:selectBoxStyles-itemLabel"),l=S({paddingTop:w(0),paddingBottom:w(0)},"label:selectBoxStyles-offsetPadding"),c=S({"&&&":{"@media (max-width: 600px)":{fontSize:e.fonts.size.large}}},"label:selectBoxStyles-selectOptionLabel");return{toggle:n,buttonItem:r,buttonIcon:t,selectBoxDropdown:o,checkContainer:a,spacer:i,itemLabel:s,offsetPadding:l,selectOptionLabel:c}}),Vc=re(e=>{const t=Un(),n=Gh(),r=qO(),{compact:o=r.options.compact,borderRadius:a=r.border.radius,preset:i=r.options.preset}=e||{},s=ee(),l=Tn(),c=Ht(),d=ti(),f=Nn(),h=Kt(),m=c.mediaQueries(),g=e&&e.preset?e.preset:r.options.preset,p=g===Sa.BORDER,v=g===Sa.NO_BORDER,b=v?r.input.bg:r.border.color,y=S({display:"block",height:Z(100)},"label:SearchBar-styles-independentRoot"),C=i1(r.sizing.height,d.font.size,h.border.width*2),D=r.sizing.height-C*2-h.border.width*2,A=r.border||s.border,T=JA({radius:a,extraPadding:r.search.fullBorderRadius.extraHorizontalPadding,height:r.sizing.height,side:"right"}),B=S({cursor:"pointer",".searchBar__placeholder":{color:P.colorOut(r.placeholder.color),margin:"auto",height:w(D),lineHeight:w(D),overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",top:0,transform:"none",cursor:"text",pointerEvents:"none"},".suggestedTextInput-valueContainer":{[`.${n.inputText}`]:{height:"auto"},"& > *":{width:Z(100)}},".wrap__control":{width:Z(100)},".searchBar__control":{border:0,backgroundColor:P.colorOut(s.elementaryColors.transparent),width:Z(100),flexBasis:Z(100),"&.searchBar__control--is-focused":{boxShadow:"none"}},".searchBar__value-container":{position:"static",overflow:"auto",cursor:"text",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:w(s.lineHeights.base*s.fonts.size.medium),fontSize:w(d.font.size),height:w(D),"& > div":{width:Z(100)}},".searchBar__indicators":{display:"none"},".searchBar__input":{width:Z(100)},".searchBar__input input":{margin:0,height:"auto",minHeight:0,width:je("100%"),borderRadius:je(0),lineHeight:w(s.lineHeights.base*s.fonts.size.medium)}},"label:SearchBar-styles-root"),j=S({...E.button(o?r.compactSubmitButton:r.submitButton),margin:"-1px","&:hover, &:focus":{zIndex:2},paddingRight:hr(Gi().padding.horizontal+T.right),...m.oneColumnDown({minWidth:0})},"label:SearchBar-styles-submitButton"),R={title:{...E.font({...s.fontSizeAndWeightVars("large","semiBold"),lineHeight:s.lineHeights.condensed})},meta:{...E.font(l.font)},excerpt:{marginTop:w(eB().excerpt.margin),...E.font({...s.fontSizeAndWeightVars("medium"),color:r.results.fg,lineHeight:s.lineHeights.excerpt})}},N=S({position:"absolute",width:Z(100),backgroundColor:P.colorOut(r.results.bg),color:P.colorOut(r.results.fg),...Yr({all:Math.min(parseInt(a.toString()),6)}),"&:empty":{display:je("none")},".suggestedTextInput__placeholder":{color:P.colorOut(h.placeholder.color)},".suggestedTextInput-noOptions":{padding:Le(12)},".suggestedTextInput-head":{...wo().middleLeft(),justifyContent:"space-between"},".suggestedTextInput-groupHeading":{...Ly().groupHeading,margin:0},".suggestedTextInput-option":{...Ly().option,margin:0},".suggestedTextInput-menuItems":{margin:0,padding:0},".suggestedTextInput-item":{listStyle:"none","& + .suggestedTextInput-item":{borderTop:`solid 1px ${s.border.color.toString()}`}},".suggestedTextInput-title":{...R.title},".suggestedTextInput-title .suggestedTextInput-searchingFor":{fontWeight:s.fonts.weights.normal}},"label:SearchBar-styles-results"),_=S({position:"absolute",top:w(r.sizing.height),left:0,overflow:"hidden",boxSizing:"border-box",...t.dropDown(),zIndex:2},"label:SearchBar-styles-resultsAsModal"),U=S({position:"relative",display:"flex",boxSizing:"border-box",height:w(r.sizing.height),width:w(r.sizing.height),color:P.colorOut(s.mixBgAndFg(.78)),transform:gl(`${w(4)}`),"&, &.buttonIcon":{border:"none",boxShadow:"none"},"&:hover":{color:P.colorOut(r.stateColors.hover)},"&:focus":{color:P.colorOut(r.stateColors.focus)}},"label:SearchBar-styles-clear"),V=S({...ki.topRight(),bottom:0,...E.margin({vertical:"auto"}),transform:gl(w(r.border.width*2))},"label:SearchBar-styles-clearWithButtonWithoutScope"),z=v?{padding:`0 ${w(A.width)}`}:{},Y=S({flexGrow:1,position:"relative",borderRadius:0,...z,"&&.withoutButton.withoutScope":{...Yr({right:a,left:a})},"&&.withButton.withScope":{...Yr({left:a})},"&&.withoutButton.withScope":{...Yr({right:a})},"&&.withButton.withoutScope":{...Yr({left:a,right:0})},"&.isFocused":{zIndex:p?3:1},"&.isHovered":{zIndex:p?3:void 0}},"label:SearchBar-styles-main"),te=v?{position:"absolute",top:0,left:0,height:it("100% - 2px"),minHeight:it("100% - 2px"),width:it("100% - 2px"),margin:w(1)}:{height:Z(100)},se=S({"&&&":{...te,display:"flex",alignItems:"center",backgroundColor:P.colorOut(r.input.bg),color:P.colorOut(r.input.fg),cursor:"text",flexWrap:"nowrap",justifyContent:"flex-start",borderRadius:0,zIndex:v?2:void 0,...Hc("border-color"),...E.border({color:b}),...Yr({all:a})},"&&&:not(.isFocused)":{borderColor:P.colorOut(v?r.input.bg:r.border.color)},"&&&:not(.isFocused).isHovered":{borderColor:P.colorOut(r.stateColors.hover)},[`&&&&.isFocused .${Y}`]:{borderColor:P.colorOut(r.stateColors.hover)},"&&.inputText.withoutButton.withoutScope":{paddingLeft:w(r.searchIcon.gap),...Yr({all:a})},"&&.inputText.withButton.withoutScope":{paddingLeft:w(r.searchIcon.gap),paddingRight:w(r.searchIcon.gap),...Yr({left:a,right:0})},"&&.inputText.withButton.withScope":{...Yr({all:0}),paddingRight:0},"&&.inputText.withoutButton.withScope:not(.compactScope)":{paddingRight:w(r.searchIcon.gap)},"&&.inputText.withoutButton.withScope":{...Yr({right:a,left:0})}},"label:SearchBar-styles-valueContainer"),he=S({"&&":{borderTopRightRadius:je(0),borderBottomRightRadius:je(0)}},"label:SearchBar-styles-compoundValueContainer"),pe=S({marginLeft:-A.width},"label:SearchBar-styles-actionButton"),K=S({display:"flex",alignItems:"center",justifyContent:"flex-start"},"label:SearchBar-styles-label"),O=p?{display:"none"}:{...ki.topRight(),bottom:0,margin:"auto 0",height:Z(90),width:w(A.width),borderRight:wt({color:A.color})},le=S(O,"label:SearchBar-styles-scopeSeparator"),be=S({display:"flex",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:P.colorOut(r.input.bg),width:Z(100),height:Z(100),"&&.withoutButton.withoutScope":{...Yr({all:a})},"&&.withButton.withScope":{...Yr({left:a,right:0})},"&&.withoutButton.withScope":{...Yr({all:a})},"&&.withButton.withoutScope":{...Yr({left:a,right:0})},[`&.hasFocus .${le}`]:{display:"none"},[`&.hasFocus .${se}`]:{borderColor:P.colorOut(r.stateColors.focus)}},"label:SearchBar-styles-content"),H=S({"&&":{marginBottom:w(r.heading.margin)}},"label:SearchBar-styles-heading"),ie=S({},"label:SearchBar-styles-icon"),oe=we=>{const{compact:Ae=!1}=e||{},Se=w(Ae?r.scope.compact.padding:r.scope.padding),De=we?{right:Se}:{left:Se};return S({...ei(),position:"absolute",top:0,bottom:0,...De,height:Z(100),display:"flex",alignItems:"center",justifyContent:"center",zIndex:5,outline:0,color:P.colorOut(r.searchIcon.fg),[`.${ie}`]:{width:w(r.searchIcon.width),height:w(r.searchIcon.height)},"&&& + .searchBar-valueContainer":{paddingLeft:w(r.searchIcon.gap)},"&:hover":{color:P.colorOut(r.stateColors.hover)},"&:focus":{color:P.colorOut(r.stateColors.focus)}},"label:SearchBar-styles-left")},ve=S({"&&":{height:w(r.sizing.height)}},"label:SearchBar-styles-iconContainerBigInput"),$e=S({...ms().iconMixin(h.sizing.height),height:"auto",width:"auto",position:"relative",zIndex:1,backgroundColor:P.colorOut(r.input.bg),alignSelf:"stretch",color:P.colorOut(r.searchIcon.fg),...E.padding({right:h.sizing.halfHeight,left:h.sizing.halfHeight/4}),...Yr({right:a,left:0}),"&:focus":{color:P.colorOut(r.stateColors.focus)},"&:hover":{backgroundColor:`${P.colorOut(r.input.bg)} !important`,color:P.colorOut(r.stateColors.hover)}},"label:SearchBar-styles-hasScopeIconContainer"),Ne=S({display:"flex",alignItems:"flex-start",justifyContent:"flex-start","&.hasFocus .searchBar-valueContainer":{borderColor:P.colorOut(r.stateColors.focus)},"&&":{position:"relative"},".searchBar__menu-list":{maxHeight:it(`100vh - ${w(f.sizing.height)}`),width:Z(100)},".searchBar__input":{color:P.colorOut(s.mainColors.fg),width:Z(100),display:je("block"),input:{width:je(Z(100).toString()),lineHeight:s.lineHeights.base}},".suggestedTextInput-menu":{borderRadius:w(s.border.radius),marginTop:w(-h.border.width),marginBottom:w(-h.border.width)},"&:empty":{display:"none"}},"label:SearchBar-styles-menu"),{selectBoxDropdown:Ze,buttonIcon:ze}=em(),Xe=S({display:"flex",width:it("100%"),height:it("100%"),justifyContent:"center",alignItems:"stretch",[`.${Ze}`]:{position:"relative",padding:v?w(r.border.width):void 0,width:Z(100),height:Z(100)}},"label:SearchBar-styles-scopeSelect"),Me=v?{position:"absolute",top:0,left:0,height:it("100% - 2px"),width:it("100% - 2px"),margin:w(r.noBorder.offset)}:{width:Z(100),height:Z(100)},Je=S({display:"flex",justifyContent:"stretch",alignItems:"center",lineHeight:"2em",flexWrap:"nowrap",...Me,...E.border({color:b}),...zn(),backgroundColor:P.colorOut(s.mainColors.bg),...E.padding({horizontal:o?r.scope.compact.padding:r.scope.padding}),outline:0,...Yr({left:a,right:0}),[`.${ze}`]:{width:w(r.scopeIcon.width),flexBasis:w(r.scopeIcon.width),height:w(r.scopeIcon.width*r.scopeIcon.ratio),margin:"0 0 0 auto",color:P.colorOut(r.input.fg)},"&:focus, &:hover, &:active, &.focus-visible":{zIndex:3},"&:hover":{borderColor:P.colorOut(r.stateColors.hover)},"&:active":{borderColor:P.colorOut(r.stateColors.active)},"&:focus, &.focus-visible":{borderColor:P.colorOut(r.stateColors.focus)},[`&:focus .${le},
                &:hover .${le},
                &:active .${le},
                &.focus-visible .${le}`]:{display:"none"}},"label:SearchBar-styles-scopeToggle"),pt=S({display:"flex",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",lineHeight:2,color:P.colorOut(r.input.fg)},"label:SearchBar-styles-scopeLabelWrap"),ot=S({position:"relative",minHeight:w(r.sizing.height),width:w(o?r.scope.compact.width:r.scope.width),flexBasis:w(o?r.scope.compact.width:r.scope.width),display:"flex",alignItems:"stretch",justifyContent:"flex-start",backgroundColor:P.colorOut(s.mainColors.bg),paddingRight:v?w(r.border.width):void 0,transform:p?gl(w(r.border.width)):void 0,zIndex:p?2:void 0,...Yr({left:a,right:0}),[`
                &.isOpen .${le},
                &.isActive .${le}
            `]:{display:"none"},[`.${Je}`]:{...Yr({left:a,right:0})},[`&.isCompact .${Je}`]:{paddingLeft:w(12),paddingRight:w(12)},[`& + .${Y}`]:{maxWidth:it(`100% - ${w(o?r.scope.compact.width:r.scope.width)}`),flexBasis:it(`100% - ${w(o?r.scope.compact.width:r.scope.width)}`)}},"label:SearchBar-styles-scope"),Et=S({display:"flex",height:Z(100),width:Z(100)},"label:SearchBar-styles-wrap"),Vt=S({display:"flex",width:Z(100),flexWrap:"nowrap",alignItems:"center"},"label:SearchBar-styles-form"),nt=S({marginLeft:w(6),borderRadius:"6px"},"label:SearchBar-styles-closeButton"),Ee=S({"&&":{width:w(r.searchIcon.width),height:w(r.searchIcon.height)}},"label:SearchBar-styles-compactIcon"),kt=S({display:"block",position:"relative",height:w(r.sizing.height),marginBottom:w(s.gutter.size)},"label:SearchBar-styles-standardContainer"),ne=S({borderTop:`solid 1px ${s.border.color.toString()}`},"label:SearchBar-styles-firstItemBorderTop");return{root:B,submitButton:j,independentRoot:y,compoundValueContainer:he,valueContainer:se,actionButton:pe,label:K,clear:U,clearWithButtonWithoutScope:V,form:Vt,content:be,heading:H,iconContainer:oe,iconContainerBigInput:ve,hasScopeIconContainer:$e,icon:ie,results:N,resultsAsModal:_,menu:Ne,searchResultsStyles:R,scope:ot,scopeToggle:Je,scopeSeparator:le,scopeSelect:Xe,scopeLabelWrap:pt,closeButton:nt,wrap:Et,main:Y,compactIcon:Ee,standardContainer:kt,firstItemBorderTop:ne}});function Sv(e){const t=xr("selectBox"),n=e.options.length>0?e.options[0]:null,r=x.useRef(null),[o,a]=x.useState(n),{renderLeft:i=!0,verticalPadding:s=!0,horizontalOffset:l=!0,afterButton:c,overwriteButtonContents:d}=e,f=e.value||o,[h,m]=x.useState(!1),g=x.useRef(!1),p=C=>{const D=e.onChange||a;g.current=!0,m(!1),D(C),setTimeout(()=>{g.current=!1},2)},v=em(),b=Rr();function y(C){const D=document.getElementById(t+"-content");if(D===null||document.activeElement===null)return;const A=new Es(D),T=C.target;if(!C.shiftKey&&C.key==="Tab"||C.key==="ArrowDown"){C.preventDefault();const B=A.getNext(T,!1,!0);B==null||B.focus()}else if(C.shiftKey&&C.key==="Tab"||C.key==="ArrowUp"){C.preventDefault();const B=A.getNext(T,!0,!0);B==null||B.focus()}else C.key===" "&&(C.preventDefault(),C.target.click())}return u.jsx("div",{className:ge("selectBox",e.className),onKeyDown:C=>y(C),children:u.jsx(Jh,{name:e.name,describedBy:e.describedBy,isVisible:h,onVisibilityChange:C=>{g.current!==!0&&(g.current||m(C))},buttonRef:r,contentID:t+"-content",handleID:t+"-handle",className:ge(v.selectBoxDropdown,{[b.verticalPadding]:s,[v.offsetPadding]:e.offsetPadding}),buttonContents:u.jsxs(u.Fragment,{children:[u.jsx(Wbe,{activeItem:f,labelWrap:e.labelWrap,overwriteButtonContents:d}),c]}),buttonClassName:ge(v.toggle,e.buttonClassName),contentsClassName:ge({isParentWidth:e.widthOfParent}),buttonType:e.buttonType,openAsModal:e.openAsModal,flyoutType:jc.LIST,renderLeft:i,horizontalOffset:l,children:e.options.map((C,D)=>{const A=f&&C.value===f.value;return u.jsx(zbe,{item:C,isSelected:!!A,onClick:p},D)})},f?f.value:void 0)})}Sv.defaultProps={selectedIndex:0,buttonType:ye.TEXT};function Wbe(e){const{activeItem:t,overwriteButtonContents:n}=e,r=em();return t&&(t.name||t.content)?u.jsxs(W.Fragment,{children:[u.jsx(Hn,{tag:"span",condition:!!e.labelWrap,className:e.labelWrap,children:n??(t.content||t.name)}),ufe,u.jsx(f1,{className:ge(r.buttonIcon)})]}):null}function zbe(e){const{item:t,isSelected:n,onClick:r}=e;if("url"in t)return u.jsx(vh,{className:ge({isSelected:n}),name:`${t.name}`,to:t.url||"",children:u.jsx(V2,{item:t,isSelected:n})});{const o=em(),a=Rr();return u.jsx(Na,{className:ge({isSelected:n}),onClick:()=>r(t),"aria-current":n,buttonClassName:ge(a.action,o.buttonItem),children:u.jsx(V2,{item:t,isSelected:n})})}}function V2(e){const{item:t,isSelected:n}=e,r=em();return u.jsxs(u.Fragment,{children:[u.jsx("span",{className:ge("selectBox-itemLabel",r.itemLabel),children:t.content||t.name}),u.jsxs("span",{className:ge("sc-only",r.checkContainer),children:[n&&u.jsx(d1,{className:"selectBox-isSelectedIcon"}),!n&&u.jsx("span",{className:ge("selectBox-spacer",r.spacer),"aria-hidden":!0,children:" "}),t.icon]})]})}function Hbe(e){const{className:t,selectBoxProps:n,separator:r,overwriteSearchBar:o}=e,a=Ki(),i=e.compact??[sr.XS,sr.MOBILE].includes(a),s=Vc(o),l=xr("searchIn");return u.jsxs("div",{className:ge(s.scope,t,{isCompact:i}),children:[u.jsx(Cr,{children:u.jsx("span",{id:l,children:k("Search In")})}),u.jsx(Sv,{...n,className:s.scopeSelect,verticalPadding:!1,buttonType:ye.CUSTOM,buttonClassName:s.scopeToggle,describedBy:l,renderLeft:!1,labelWrap:s.scopeLabelWrap,horizontalOffset:!1,afterButton:r,overwriteButtonContents:i?u.jsx(Bt,{size:"compact",icon:"search-search"}):void 0})]})}function Ube({onClick:e,className:t}){const n=yt.sprintf(k("Clear %s"),k("Search"));return u.jsx(ut,{buttonType:ye.ICON,onClick:e,className:t,title:n,"aria-label":n,children:u.jsx(zW,{})})}var G2=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Vbe(e,t){return!!(e===t||G2(e)&&G2(t))}function Gbe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Vbe(e[n],t[n]))return!1;return!0}function Qz(e,t){t===void 0&&(t=Gbe);var n,r=[],o,a=!1;function i(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return a&&n===this&&t(s,r)||(o=e.apply(this,s),a=!0,n=this,r=s),o}return i}var Zz={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){return function(n){var r="/*|*/",o=r+"}";function a(i){if(i)try{n(i+"}")}catch{}}return function(s,l,c,d,f,h,m,g,p,v){switch(s){case 1:if(p===0&&l.charCodeAt(0)===64)return n(l+";"),"";break;case 2:if(g===0)return l+r;break;case 3:switch(g){case 102:case 112:return n(c[0]+l),"";default:return l+(v===0?r:"")}case-2:l.split(o).forEach(a)}}}})})(Zz);var Ybe=Zz.exports;const Kbe=jr(Ybe);var qbe=/[A-Z]|^ms/g,Y2=hQ(function(e){return e.replace(qbe,"-$&").toLowerCase()}),K2=function(t,n){return n==null||typeof n=="boolean"?"":mQ[t]!==1&&t.charCodeAt(1)!==45&&!isNaN(n)&&n!==0?n+"px":n},Xbe=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"function":i=e([a()]);break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o},Cb=typeof document<"u";function Qbe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(e.container!==void 0?e.container:document.head).appendChild(t),t}var Zbe=function(){function e(n){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=n}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=hS(this.opts),this.injected=!0},t.speedy=function(r){if(this.ctr!==0)throw new Error("cannot change speedy now");this.isSpeedy=!!r},t.insert=function(r,o){if(this.isSpeedy){var a=this.tags[this.tags.length-1],i=Qbe(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else{var s=hS(this.opts);this.tags.push(s),s.appendChild(document.createTextNode(r+(o||"")))}this.ctr++,this.ctr%65e3===0&&this.tags.push(hS(this.opts))},t.flush=function(){this.tags.forEach(function(r){return r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,this.injected=!1},e}();function Jbe(e,t){if(e.__SECRET_EMOTION__!==void 0)return e.__SECRET_EMOTION__;t===void 0&&(t={});var n=t.key||"css",r;function o(Y){r+=Y,Cb&&l.insert(Y,d)}var a=Kbe(o),i;t.prefix!==void 0&&(i={prefix:t.prefix});var s={registered:{},inserted:{},nonce:t.nonce,key:n},l=new Zbe(t);Cb&&l.inject();var c=new dQ(i);c.use(t.stylisPlugins)(a);var d="";function f(Y,te){if(Y==null)return"";switch(typeof Y){case"boolean":return"";case"function":if(Y.__emotion_styles!==void 0){var se=Y.toString();return se}return f.call(this,this===void 0?Y():Y(this.mergedProps,this.context),te);case"object":return m.call(this,Y);default:var he=s.registered[Y];return te===!1&&he!==void 0?he:Y}}var h=new WeakMap;function m(Y){if(h.has(Y))return h.get(Y);var te="";return Array.isArray(Y)?Y.forEach(function(se){te+=f.call(this,se,!1)},this):Object.keys(Y).forEach(function(se){typeof Y[se]!="object"?s.registered[Y[se]]!==void 0?te+=se+"{"+s.registered[Y[se]]+"}":te+=Y2(se)+":"+K2(se,Y[se])+";":Array.isArray(Y[se])&&typeof Y[se][0]=="string"&&s.registered[Y[se][0]]===void 0?Y[se].forEach(function(he){te+=Y2(se)+":"+K2(se,he)+";"}):te+=se+"{"+f.call(this,Y[se],!1)+"}"},this),h.set(Y,te),te}var g,p,v=/label:\s*([^\s;\n{]+)\s*;/g,b=function(te,se){return fQ(te+se)+se},y=function(te){var se=!0,he="",pe="";te==null||te.raw===void 0?(se=!1,he+=f.call(this,te,!1)):he+=te[0];for(var K=arguments.length,O=new Array(K>1?K-1:0),le=1;le<K;le++)O[le-1]=arguments[le];return O.forEach(function(be,H){he+=f.call(this,be,he.charCodeAt(he.length-1)===46),se===!0&&te[H+1]!==void 0&&(he+=te[H+1])},this),p=he,he=he.replace(v,function(be,H){return pe+="-"+H,""}),g=b(he,pe),he};function C(Y,te){s.inserted[g]===void 0&&(r="",c(Y,te),s.inserted[g]=r)}var D=function(){var te=y.apply(this,arguments),se=n+"-"+g;return s.registered[se]===void 0&&(s.registered[se]=p),C("."+se,te),se},A=function(){var te=y.apply(this,arguments),se="animation-"+g;return C("","@keyframes "+se+"{"+te+"}"),se},T=function(){var te=y.apply(this,arguments);C("",te)};function B(Y,te){var se="";return te.split(" ").forEach(function(he){s.registered[he]!==void 0?Y.push(he):se+=he+" "}),se}function j(Y,te){var se=[],he=B(se,Y);return se.length<2?Y:he+D(se,te)}function R(){for(var Y=arguments.length,te=new Array(Y),se=0;se<Y;se++)te[se]=arguments[se];return j(Xbe(te))}function N(Y){s.inserted[Y]=!0}function _(Y){Y.forEach(N)}function U(){Cb&&(l.flush(),l.inject()),s.inserted={},s.registered={}}if(Cb){var V=document.querySelectorAll("[data-emotion-"+n+"]");Array.prototype.forEach.call(V,function(Y){l.tags[0].parentNode.insertBefore(Y,l.tags[0]),Y.getAttribute("data-emotion-"+n).split(" ").forEach(N)})}var z={flush:U,hydrate:_,cx:R,merge:j,getRegisteredStyles:B,injectGlobal:T,keyframes:A,css:D,sheet:l,caches:s};return e.__SECRET_EMOTION__=z,z}var e0e=typeof global<"u"?global:{},$s=Jbe(e0e);$s.flush;$s.hydrate;var Uht=$s.cx;$s.merge;$s.getRegisteredStyles;var t0e=$s.injectGlobal;$s.keyframes;var $n=$s.css;$s.sheet;$s.caches;var O1={exports:{}},Dp={exports:{}};(function(){var e,t,n,r,o,a;typeof performance<"u"&&performance!==null&&performance.now?Dp.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Dp.exports=function(){return(e()-o)/1e6},t=process.hrtime,e=function(){var i;return i=t(),i[0]*1e9+i[1]},r=e(),a=process.uptime()*1e9,o=r-a):Date.now?(Dp.exports=function(){return Date.now()-n},n=Date.now()):(Dp.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(yr);var n0e=Dp.exports,r0e=n0e,yl=typeof window>"u"?yr:window,wb=["moz","webkit"],Wf="AnimationFrame",bh=yl["request"+Wf],xg=yl["cancel"+Wf]||yl["cancelRequest"+Wf];for(var Zm=0;!bh&&Zm<wb.length;Zm++)bh=yl[wb[Zm]+"Request"+Wf],xg=yl[wb[Zm]+"Cancel"+Wf]||yl[wb[Zm]+"CancelRequest"+Wf];if(!bh||!xg){var mS=0,q2=0,uu=[],o0e=1e3/60;bh=function(e){if(uu.length===0){var t=r0e(),n=Math.max(0,o0e-(t-mS));mS=n+t,setTimeout(function(){var r=uu.slice(0);uu.length=0;for(var o=0;o<r.length;o++)if(!r[o].cancelled)try{r[o].callback(mS)}catch(a){setTimeout(function(){throw a},0)}},Math.round(n))}return uu.push({handle:++q2,callback:e,cancelled:!1}),q2},xg=function(e){for(var t=0;t<uu.length;t++)uu[t].handle===e&&(uu[t].cancelled=!0)}}O1.exports=function(e){return bh.call(yl,e)};O1.exports.cancel=function(){xg.apply(yl,arguments)};O1.exports.polyfill=function(e){e||(e=yl),e.requestAnimationFrame=bh,e.cancelAnimationFrame=xg};var a0e=O1.exports;const i0e=jr(a0e);var Jz={};Object.defineProperty(Jz,"__esModule",{value:!0});var pS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0e=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),eH=x,Jm=tH(eH),l0e=jl,Lr=tH(l0e);function tH(e){return e&&e.__esModule?e:{default:e}}function c0e(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d0e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var X2={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},h0e=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],m0e=function(t){return h0e.forEach(function(n){return delete t[n]}),t},Q2=function(t,n){n.style.fontSize=t.fontSize,n.style.fontFamily=t.fontFamily,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.letterSpacing=t.letterSpacing,n.style.textTransform=t.textTransform},nH=typeof window<"u"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,Z2=function(){return nH?"_"+Math.random().toString(36).substr(2,12):void 0},tB=function(e){f0e(t,e);function t(n){u0e(this,t);var r=d0e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.inputRef=function(o){r.input=o,typeof r.props.inputRef=="function"&&r.props.inputRef(o)},r.placeHolderSizerRef=function(o){r.placeHolderSizer=o},r.sizerRef=function(o){r.sizer=o},r.state={inputWidth:n.minWidth,inputId:n.id||Z2()},r}return s0e(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(r){var o=r.id;o!==this.props.id&&this.setState({inputId:o||Z2()})}},{key:"componentDidUpdate",value:function(r,o){o.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var r=this.input&&window.getComputedStyle(this.input);r&&(Q2(r,this.sizer),this.placeHolderSizer&&Q2(r,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var r=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?r=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:r=this.sizer.scrollWidth+2;var o=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;r+=o,r<this.props.minWidth&&(r=this.props.minWidth),r!==this.state.inputWidth&&this.setState({inputWidth:r})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var r=this.props.injectStyles;return nH&&r?Jm.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var r=[this.props.defaultValue,this.props.value,""].reduce(function(s,l){return s??l}),o=pS({},this.props.style);o.display||(o.display="inline-block");var a=pS({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=c0e(this.props,[]);return m0e(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=a,Jm.default.createElement("div",{className:this.props.className,style:o},this.renderStyles(),Jm.default.createElement("input",pS({},i,{ref:this.inputRef})),Jm.default.createElement("div",{ref:this.sizerRef,style:X2},r),this.props.placeholder?Jm.default.createElement("div",{ref:this.placeHolderSizerRef,style:X2},this.props.placeholder):null)}}]),t}(eH.Component);tB.propTypes={className:Lr.default.string,defaultValue:Lr.default.any,extraWidth:Lr.default.oneOfType([Lr.default.number,Lr.default.string]),id:Lr.default.string,injectStyles:Lr.default.bool,inputClassName:Lr.default.string,inputRef:Lr.default.func,inputStyle:Lr.default.object,minWidth:Lr.default.oneOfType([Lr.default.number,Lr.default.string]),onAutosize:Lr.default.func,onChange:Lr.default.func,placeholder:Lr.default.string,placeholderIsMinWidth:Lr.default.bool,style:Lr.default.object,value:Lr.default.any};tB.defaultProps={minWidth:1,injectStyles:!0};var p0e=Jz.default=tB,XE={exports:{}},QE={exports:{}},rH={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rH);var g0e=rH.exports,Sb={exports:{}},J2;function v0e(){return J2||(J2=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,o){return r.classList?!!o&&r.classList.contains(o):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+o+" ")!==-1}e.exports=t.default}(Sb,Sb.exports)),Sb.exports}(function(e,t){var n=g0e;t.__esModule=!0,t.default=o;var r=n(v0e());function o(a,i){a.classList?a.classList.add(i):(0,r.default)(a,i)||(typeof a.className=="string"?a.className=a.className+" "+i:a.setAttribute("class",(a.className&&a.className.baseVal||"")+" "+i))}e.exports=t.default})(QE,QE.exports);var b0e=QE.exports;function eL(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var y0e=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=eL(t.className,n):t.setAttribute("class",eL(t.className&&t.className.baseVal||"",n))},Mo={};function oH(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function aH(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function iH(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}oH.__suppressDeprecationWarning=!0;aH.__suppressDeprecationWarning=!0;iH.__suppressDeprecationWarning=!0;function x0e(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var a=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

`+a+" uses "+i+" but also contains the following legacy lifecycles:"+(n!==null?`
  `+n:"")+(r!==null?`
  `+r:"")+(o!==null?`
  `+o:"")+`

The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=oH,t.componentWillReceiveProps=aH),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=iH;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,f){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,d,h)}}return e}const C0e=Object.freeze(Object.defineProperty({__proto__:null,polyfill:x0e},Symbol.toStringTag,{value:"Module"})),sH=z4(C0e);Mo.__esModule=!0;Mo.default=Mo.EXITING=Mo.ENTERED=Mo.ENTERING=Mo.EXITED=Mo.UNMOUNTED=void 0;var w0e=E0e(jl),gS=lH(x),S0e=lH(Rl),D0e=sH;function lH(e){return e&&e.__esModule?e:{default:e}}function E0e(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}function I0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function T0e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ep="unmounted";Mo.UNMOUNTED=Ep;var yu="exited";Mo.EXITED=yu;var xu="entering";Mo.ENTERING=xu;var df="entered";Mo.ENTERED=df;var ZE="exiting";Mo.EXITING=ZE;var Ms=function(e){T0e(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o.transitionGroup,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=yu,a.appearStatus=xu):l=df:r.unmountOnExit||r.mountOnEnter?l=Ep:l=yu,a.state={status:l},a.nextCallback=null,a}var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Ep?{status:yu}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==xu&&i!==df&&(a=xu):(i===xu||i===df)&&(a=ZE)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null){this.cancelNextCallback();var i=S0e.default.findDOMNode(this);a===xu?this.performEnter(i,o):this.performExit(i)}else this.props.unmountOnExit&&this.state.status===yu&&this.setState({status:Ep})},n.performEnter=function(o,a){var i=this,s=this.props.enter,l=this.context.transitionGroup?this.context.transitionGroup.isMounting:a,c=this.getTimeouts(),d=l?c.appear:c.enter;if(!a&&!s){this.safeSetState({status:df},function(){i.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:xu},function(){i.props.onEntering(o,l),i.onTransitionEnd(o,d,function(){i.safeSetState({status:df},function(){i.props.onEntered(o,l)})})})},n.performExit=function(o){var a=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:yu},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:ZE},function(){a.props.onExiting(o),a.onTransitionEnd(o,s.exit,function(){a.safeSetState({status:yu},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a,i){this.setNextCallback(i);var s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(o,this.nextCallback),a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var o=this.state.status;if(o===Ep)return null;var a=this.props,i=a.children,s=I0e(a,["children"]);if(delete s.in,delete s.mountOnEnter,delete s.unmountOnExit,delete s.appear,delete s.enter,delete s.exit,delete s.timeout,delete s.addEndListener,delete s.onEnter,delete s.onEntering,delete s.onEntered,delete s.onExit,delete s.onExiting,delete s.onExited,typeof i=="function")return i(o,s);var l=gS.default.Children.only(i);return gS.default.cloneElement(l,s)},t}(gS.default.Component);Ms.contextTypes={transitionGroup:w0e.object};Ms.childContextTypes={transitionGroup:function(){}};Ms.propTypes={};function qd(){}Ms.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qd,onEntering:qd,onEntered:qd,onExit:qd,onExiting:qd,onExited:qd};Ms.UNMOUNTED=0;Ms.EXITED=1;Ms.ENTERING=2;Ms.ENTERED=3;Ms.EXITING=4;var A0e=(0,D0e.polyfill)(Ms);Mo.default=A0e;(function(e,t){t.__esModule=!0,t.default=void 0,s(jl);var n=i(b0e),r=i(y0e),o=i(x),a=i(Mo);function i(g){return g&&g.__esModule?g:{default:g}}function s(g){if(g&&g.__esModule)return g;var p={};if(g!=null){for(var v in g)if(Object.prototype.hasOwnProperty.call(g,v)){var b=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(g,v):{};b.get||b.set?Object.defineProperty(p,v,b):p[v]=g[v]}}return p.default=g,p}function l(){return l=Object.assign||function(g){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(g[b]=v[b])}return g},l.apply(this,arguments)}function c(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,g.__proto__=p}var d=function(p,v){return p&&v&&v.split(" ").forEach(function(b){return(0,n.default)(p,b)})},f=function(p,v){return p&&v&&v.split(" ").forEach(function(b){return(0,r.default)(p,b)})},h=function(g){c(p,g);function p(){for(var b,y=arguments.length,C=new Array(y),D=0;D<y;D++)C[D]=arguments[D];return b=g.call.apply(g,[this].concat(C))||this,b.onEnter=function(A,T){var B=b.getClassNames(T?"appear":"enter"),j=B.className;b.removeClasses(A,"exit"),d(A,j),b.props.onEnter&&b.props.onEnter(A,T)},b.onEntering=function(A,T){var B=b.getClassNames(T?"appear":"enter"),j=B.activeClassName;b.reflowAndAddClass(A,j),b.props.onEntering&&b.props.onEntering(A,T)},b.onEntered=function(A,T){var B=b.getClassNames("appear").doneClassName,j=b.getClassNames("enter").doneClassName,R=T?B+" "+j:j;b.removeClasses(A,T?"appear":"enter"),d(A,R),b.props.onEntered&&b.props.onEntered(A,T)},b.onExit=function(A){var T=b.getClassNames("exit"),B=T.className;b.removeClasses(A,"appear"),b.removeClasses(A,"enter"),d(A,B),b.props.onExit&&b.props.onExit(A)},b.onExiting=function(A){var T=b.getClassNames("exit"),B=T.activeClassName;b.reflowAndAddClass(A,B),b.props.onExiting&&b.props.onExiting(A)},b.onExited=function(A){var T=b.getClassNames("exit"),B=T.doneClassName;b.removeClasses(A,"exit"),d(A,B),b.props.onExited&&b.props.onExited(A)},b.getClassNames=function(A){var T=b.props.classNames,B=typeof T=="string",j=B&&T?T+"-":"",R=B?j+A:T[A],N=B?R+"-active":T[A+"Active"],_=B?R+"-done":T[A+"Done"];return{className:R,activeClassName:N,doneClassName:_}},b}var v=p.prototype;return v.removeClasses=function(y,C){var D=this.getClassNames(C),A=D.className,T=D.activeClassName,B=D.doneClassName;A&&f(y,A),T&&f(y,T),B&&f(y,B)},v.reflowAndAddClass=function(y,C){C&&(y&&y.scrollTop,d(y,C))},v.render=function(){var y=l({},this.props);return delete y.classNames,o.default.createElement(a.default,l({},y,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},p}(o.default.Component);h.defaultProps={classNames:""},h.propTypes={};var m=h;t.default=m,e.exports=t.default})(XE,XE.exports);var O0e=XE.exports,JE={exports:{}},eI={exports:{}},tm={};tm.__esModule=!0;tm.getChildMapping=nB;tm.mergeChildMappings=cH;tm.getInitialChildMapping=B0e;tm.getNextChildMapping=k0e;var ll=x;function nB(e,t){var n=function(a){return t&&(0,ll.isValidElement)(a)?t(a):a},r=Object.create(null);return e&&ll.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function cH(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];s[r[l][i]]=n(c)}s[l]=n(l)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function ju(e,t,n){return n[t]!=null?n[t]:e.props[t]}function B0e(e,t){return nB(e.children,function(n){return(0,ll.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:ju(n,"appear",e),enter:ju(n,"enter",e),exit:ju(n,"exit",e)})})}function k0e(e,t,n){var r=nB(e.children),o=cH(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if((0,ll.isValidElement)(i)){var s=a in t,l=a in r,c=t[a],d=(0,ll.isValidElement)(c)&&!c.props.in;l&&(!s||d)?o[a]=(0,ll.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:ju(i,"exit",e),enter:ju(i,"enter",e)}):!l&&s&&!d?o[a]=(0,ll.cloneElement)(i,{in:!1}):l&&s&&(0,ll.isValidElement)(c)&&(o[a]=(0,ll.cloneElement)(i,{onExited:n.bind(null,i),in:c.props.in,exit:ju(i,"exit",e),enter:ju(i,"enter",e)}))}}),o}(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(jl),r=i(x),o=sH,a=tm;function i(p){return p&&p.__esModule?p:{default:p}}function s(p,v){if(p==null)return{};var b={},y=Object.keys(p),C,D;for(D=0;D<y.length;D++)C=y[D],!(v.indexOf(C)>=0)&&(b[C]=p[C]);return b}function l(){return l=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var b=arguments[v];for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(p[y]=b[y])}return p},l.apply(this,arguments)}function c(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,p.__proto__=v}function d(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}var f=Object.values||function(p){return Object.keys(p).map(function(v){return p[v]})},h={component:"div",childFactory:function(v){return v}},m=function(p){c(v,p);function v(y,C){var D;D=p.call(this,y,C)||this;var A=D.handleExited.bind(d(d(D)));return D.state={handleExited:A,firstRender:!0},D}var b=v.prototype;return b.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},b.componentDidMount=function(){this.appeared=!0,this.mounted=!0},b.componentWillUnmount=function(){this.mounted=!1},v.getDerivedStateFromProps=function(C,D){var A=D.children,T=D.handleExited,B=D.firstRender;return{children:B?(0,a.getInitialChildMapping)(C,T):(0,a.getNextChildMapping)(C,A,T),firstRender:!1}},b.handleExited=function(C,D){var A=(0,a.getChildMapping)(this.props.children);C.key in A||(C.props.onExited&&C.props.onExited(D),this.mounted&&this.setState(function(T){var B=l({},T.children);return delete B[C.key],{children:B}}))},b.render=function(){var C=this.props,D=C.component,A=C.childFactory,T=s(C,["component","childFactory"]),B=f(this.state.children).map(A);return delete T.appear,delete T.enter,delete T.exit,D===null?B:r.default.createElement(D,T,B)},v}(r.default.Component);m.childContextTypes={transitionGroup:n.default.object.isRequired},m.propTypes={},m.defaultProps=h;var g=(0,o.polyfill)(m);t.default=g,e.exports=t.default})(eI,eI.exports);var uH=eI.exports;(function(e,t){t.__esModule=!0,t.default=void 0,a(jl);var n=a(x),r=Rl,o=a(uH);function a(d){return d&&d.__esModule?d:{default:d}}function i(d,f){if(d==null)return{};var h={},m=Object.keys(d),g,p;for(p=0;p<m.length;p++)g=m[p],!(f.indexOf(g)>=0)&&(h[g]=d[g]);return h}function s(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.__proto__=f}var l=function(d){s(f,d);function f(){for(var m,g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];return m=d.call.apply(d,[this].concat(p))||this,m.handleEnter=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onEnter",0,y)},m.handleEntering=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onEntering",0,y)},m.handleEntered=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onEntered",0,y)},m.handleExit=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onExit",1,y)},m.handleExiting=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onExiting",1,y)},m.handleExited=function(){for(var b=arguments.length,y=new Array(b),C=0;C<b;C++)y[C]=arguments[C];return m.handleLifecycle("onExited",1,y)},m}var h=f.prototype;return h.handleLifecycle=function(g,p,v){var b,y=this.props.children,C=n.default.Children.toArray(y)[p];C.props[g]&&(b=C.props)[g].apply(b,v),this.props[g]&&this.props[g]((0,r.findDOMNode)(this))},h.render=function(){var g=this.props,p=g.children,v=g.in,b=i(g,["children","in"]),y=n.default.Children.toArray(p),C=y[0],D=y[1];return delete b.onEnter,delete b.onEntering,delete b.onEntered,delete b.onExit,delete b.onExiting,delete b.onExited,n.default.createElement(o.default,b,v?n.default.cloneElement(C,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(D,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},f}(n.default.Component);l.propTypes={};var c=l;t.default=c,e.exports=t.default})(JE,JE.exports);var P0e=JE.exports,R0e=B1(O0e),j0e=B1(P0e),N0e=B1(uH),L0e=B1(Mo);function B1(e){return e&&e.__esModule?e:{default:e}}var rB={Transition:L0e.default,TransitionGroup:N0e.default,ReplaceTransition:j0e.default,CSSTransition:R0e.default};function zf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zf=function(t){return typeof t}:zf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Io(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}function ia(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ke(e,o,n[o])})}return e}function To(e,t){if(typeof t!="function"&&t!==null)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}}),t&&tI(e,t)}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},io(e)}function tI(e,t){return tI=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},tI(e,t)}function $0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function si(e,t){if(e==null)return{};var n=$0e(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:me(e)}function D0(e){return M0e(e)||_0e(e)||F0e()}function M0e(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _0e(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function F0e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var dH=function(){};function W0e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function z0e(e,t,n,r){var o=[t,r];if(n&&e)for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push("".concat(W0e(e,a)));return o.filter(function(i){return i}).map(function(i){return String(i).trim()}).join(" ")}var $y=function(t){return Array.isArray(t)?t.filter(Boolean):zf(t)==="object"&&t!==null?[t]:[]};function H0e(e,t,n){if(n){var r=n(e,t);if(typeof r=="string")return r}return e}function oB(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fH(e){return oB(e)?window.pageYOffset:e.scrollTop}function My(e,t){if(oB(e)){window.scrollTo(0,t);return}e.scrollTop=t}function U0e(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/,o=document.documentElement;if(t.position==="fixed")return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}function V0e(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Db(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:dH,o=fH(e),a=t-o,i=10,s=0;function l(){s+=i;var c=V0e(s,o,a,n);My(e,c),s<n?i0e(l):r(e)}l()}function G0e(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?My(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&My(e,Math.max(t.offsetTop-o,0))}function Y0e(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nL(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function K0e(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}function q0e(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme,l=s.spacing,c=U0e(n),d={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return d;var f=c.getBoundingClientRect(),h=f.height,m=n.getBoundingClientRect(),g=m.bottom,p=m.height,v=m.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,C=window.innerHeight,D=fH(c),A=parseInt(getComputedStyle(n).marginBottom,10),T=parseInt(getComputedStyle(n).marginTop,10),B=y-T,j=C-v,R=B+D,N=h-D-v,_=g-C+D+A,U=D+v-T,V=160;switch(o){case"auto":case"bottom":if(j>=p)return{placement:"bottom",maxHeight:t};if(N>=p&&!i)return a&&Db(c,_,V),{placement:"bottom",maxHeight:t};if(!i&&N>=r||i&&j>=r){a&&Db(c,_,V);var z=i?j-A:N-A;return{placement:"bottom",maxHeight:z}}if(o==="auto"||i){var Y=t,te=i?B:R;return te>=r&&(Y=Math.min(te-A-l.controlHeight,t)),{placement:"top",maxHeight:Y}}if(o==="bottom")return My(c,_),{placement:"bottom",maxHeight:t};break;case"top":if(B>=p)return{placement:"top",maxHeight:t};if(R>=p&&!i)return a&&Db(c,U,V),{placement:"top",maxHeight:t};if(!i&&R>=r||i&&B>=r){var se=t;return(!i&&R>=r||i&&B>=r)&&(se=i?B-T:R-T),a&&Db(c,U,V),{placement:"top",maxHeight:se}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function X0e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var nI=function(t){return t==="auto"?"bottom":t},Q0e=function(t){var n,r=t.placement,o=t.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return n={label:"menu"},ke(n,X0e(r),"100%"),ke(n,"backgroundColor",s.neutral0),ke(n,"borderRadius",a),ke(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),ke(n,"marginBottom",i.menuGutter),ke(n,"marginTop",i.menuGutter),ke(n,"position","absolute"),ke(n,"width","100%"),ke(n,"zIndex",1),n},hH=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"state",{maxHeight:r.props.maxMenuHeight,placement:null}),ke(me(me(r)),"getPlacement",function(s){var l=r.props,c=l.minMenuHeight,d=l.maxMenuHeight,f=l.menuPlacement,h=l.menuPosition,m=l.menuShouldScrollIntoView,g=l.theme,p=r.context.getPortalPlacement;if(s){var v=h==="fixed",b=m&&!v,y=q0e({maxHeight:d,menuEl:s,minHeight:c,placement:f,shouldScroll:b,isFixedPosition:v,theme:g});p&&p(y),r.setState(y)}}),ke(me(me(r)),"getUpdatedProps",function(){var s=r.props.menuPlacement,l=r.state.placement||nI(s);return ia({},r.props,{placement:l,maxHeight:r.state.maxHeight})}),r}return Io(t,[{key:"render",value:function(){var r=this.props.children;return r({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(x.Component);ke(hH,"contextTypes",{getPortalPlacement:q4.func});var Z0e=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerRef,s=t.innerProps,l=o($n(a("menu",t)),{menu:!0},r);return W.createElement("div",Ot({className:l},s,{ref:i}),n)},J0e=function(t){var n=t.maxHeight,r=t.theme.spacing.baseUnit;return{maxHeight:n,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},eye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.isMulti,s=t.innerRef;return W.createElement("div",{className:o($n(a("menuList",t)),{"menu-list":!0,"menu-list--is-multi":i},r),ref:s},n)},mH=function(t){var n=t.theme,r=n.spacing.baseUnit,o=n.colors;return{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px"),textAlign:"center"}},tye=mH,nye=mH,pH=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps;return W.createElement("div",Ot({className:o($n(a("noOptionsMessage",t)),{"menu-notice":!0,"menu-notice--no-options":!0},r)},i),n)};pH.defaultProps={children:"No options"};var gH=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps;return W.createElement("div",Ot({className:o($n(a("loadingMessage",t)),{"menu-notice":!0,"menu-notice--loading":!0},r)},i),n)};gH.defaultProps={children:"Loading..."};var rye=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},vH=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"state",{placement:null}),ke(me(me(r)),"getPortalPlacement",function(s){var l=s.placement,c=nI(r.props.menuPlacement);l!==c&&r.setState({placement:l})}),r}return Io(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var r=this.props,o=r.appendTo,a=r.children,i=r.controlElement,s=r.menuPlacement,l=r.menuPosition,c=r.getStyles,d=l==="fixed";if(!o&&!d||!i)return null;var f=this.state.placement||nI(s),h=Y0e(i),m=d?0:window.pageYOffset,g=h[f]+m,p={offset:g,position:l,rect:h},v=W.createElement("div",{className:$n(c("menuPortal",p))},a);return o?Rl.createPortal(v,o):v}}]),t}(x.Component);ke(vH,"childContextTypes",{getPortalPlacement:q4.func});var rL=Array.isArray,oL=Object.keys,oye=Object.prototype.hasOwnProperty;function rI(e,t){if(e===t)return!0;if(e&&t&&zf(e)=="object"&&zf(t)=="object"){var n=rL(e),r=rL(t),o,a,i;if(n&&r){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!rI(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var f=oL(e);if(a=f.length,a!==oL(t).length)return!1;for(o=a;o--!==0;)if(!oye.call(t,f[o]))return!1;for(o=a;o--!==0;)if(i=f[o],!(i==="_owner"&&e.$$typeof)&&!rI(e[i],t[i]))return!1;return!0}return e!==e&&t!==t}function bH(e,t){try{return rI(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}var vS=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],aL=function(t){for(var n=0;n<vS.length;n++)t=t.replace(vS[n].letters,vS[n].base);return t},iL=function(t){return t.replace(/^\s+|\s+$/g,"")},aye=function(t){return"".concat(t.label," ").concat(t.value)},iye=function(t){return function(n,r){var o=ia({ignoreCase:!0,ignoreAccents:!0,stringify:aye,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,i=o.ignoreAccents,s=o.stringify,l=o.trim,c=o.matchFrom,d=l?iL(r):r,f=l?iL(s(n)):s(n);return a&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=aL(d),f=aL(f)),c==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},sye=function(t){return W.createElement("span",Ot({className:$n({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},t))},lye=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"render",value:function(){var r=this.props;r.in,r.out,r.onExited,r.appear,r.enter,r.exit;var o=r.innerRef;r.emotion;var a=si(r,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return W.createElement("input",Ot({ref:o},a,{className:$n({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(x.Component),yH=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Rl.findDOMNode(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(x.Component),sL=["boxSizing","height","overflow","paddingRight","position"],lL={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cL(e){e.preventDefault()}function uL(e){e.stopPropagation()}function dL(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fL(){return"ontouchstart"in window||navigator.maxTouchPoints}var hL=!!(typeof window<"u"&&window.document&&window.document.createElement),ep=0,xH=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"originalStyles",{}),ke(me(me(r)),"listenerOptions",{capture:!1,passive:!1}),r}return Io(t,[{key:"componentDidMount",value:function(){var r=this;if(hL){var o=this.props,a=o.accountForScrollbars,i=o.touchScrollTarget,s=document.body,l=s&&s.style;if(a&&sL.forEach(function(h){var m=l&&l[h];r.originalStyles[h]=m}),a&&ep<1){var c=parseInt(this.originalStyles.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,f=window.innerWidth-d+c||0;Object.keys(lL).forEach(function(h){var m=lL[h];l&&(l[h]=m)}),l&&(l.paddingRight="".concat(f,"px"))}s&&fL()&&(s.addEventListener("touchmove",cL,this.listenerOptions),i&&(i.addEventListener("touchstart",dL,this.listenerOptions),i.addEventListener("touchmove",uL,this.listenerOptions))),ep+=1}}},{key:"componentWillUnmount",value:function(){var r=this;if(hL){var o=this.props,a=o.accountForScrollbars,i=o.touchScrollTarget,s=document.body,l=s&&s.style;ep=Math.max(ep-1,0),a&&ep<1&&sL.forEach(function(c){var d=r.originalStyles[c];l&&(l[c]=d)}),s&&fL()&&(s.removeEventListener("touchmove",cL,this.listenerOptions),i&&(i.removeEventListener("touchstart",dL,this.listenerOptions),i.removeEventListener("touchmove",uL,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(x.Component);ke(xH,"defaultProps",{accountForScrollbars:!0});var cye=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"state",{touchScrollTarget:null}),ke(me(me(r)),"getScrollTarget",function(s){s!==r.state.touchScrollTarget&&r.setState({touchScrollTarget:s})}),ke(me(me(r)),"blurSelectInput",function(){document.activeElement&&document.activeElement.blur()}),r}return Io(t,[{key:"render",value:function(){var r=this.props,o=r.children,a=r.isEnabled,i=this.state.touchScrollTarget;return a?W.createElement("div",null,W.createElement("div",{onClick:this.blurSelectInput,className:$n({position:"fixed",left:0,bottom:0,right:0,top:0})}),W.createElement(yH,{innerRef:this.getScrollTarget},o),i?W.createElement(xH,{touchScrollTarget:i}):null):o}}]),t}(x.PureComponent),uye=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"isBottom",!1),ke(me(me(r)),"isTop",!1),ke(me(me(r)),"scrollTarget",void 0),ke(me(me(r)),"touchStart",void 0),ke(me(me(r)),"cancelScroll",function(s){s.preventDefault(),s.stopPropagation()}),ke(me(me(r)),"handleEventDelta",function(s,l){var c=r.props,d=c.onBottomArrive,f=c.onBottomLeave,h=c.onTopArrive,m=c.onTopLeave,g=r.scrollTarget,p=g.scrollTop,v=g.scrollHeight,b=g.clientHeight,y=r.scrollTarget,C=l>0,D=v-b-p,A=!1;D>l&&r.isBottom&&(f&&f(s),r.isBottom=!1),C&&r.isTop&&(m&&m(s),r.isTop=!1),C&&l>D?(d&&!r.isBottom&&d(s),y.scrollTop=v,A=!0,r.isBottom=!0):!C&&-l>p&&(h&&!r.isTop&&h(s),y.scrollTop=0,A=!0,r.isTop=!0),A&&r.cancelScroll(s)}),ke(me(me(r)),"onWheel",function(s){r.handleEventDelta(s,s.deltaY)}),ke(me(me(r)),"onTouchStart",function(s){r.touchStart=s.changedTouches[0].clientY}),ke(me(me(r)),"onTouchMove",function(s){var l=r.touchStart-s.changedTouches[0].clientY;r.handleEventDelta(s,l)}),ke(me(me(r)),"getScrollTarget",function(s){r.scrollTarget=s}),r}return Io(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(r){r&&(r.scrollHeight<=r.clientHeight||(typeof r.addEventListener=="function"&&r.addEventListener("wheel",this.onWheel,!1),typeof r.addEventListener=="function"&&r.addEventListener("touchstart",this.onTouchStart,!1),typeof r.addEventListener=="function"&&r.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(r){r.scrollHeight<=r.clientHeight||(typeof r.removeEventListener=="function"&&r.removeEventListener("wheel",this.onWheel,!1),typeof r.removeEventListener=="function"&&r.removeEventListener("touchstart",this.onTouchStart,!1),typeof r.removeEventListener=="function"&&r.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return W.createElement(yH,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(x.Component),CH=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"render",value:function(){var r=this.props,o=r.isEnabled,a=si(r,["isEnabled"]);return o?W.createElement(uye,a):this.props.children}}]),t}(x.Component);ke(CH,"defaultProps",{isEnabled:!0});var dye=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.isSearchable,o=n.isMulti,a=n.label,i=n.isDisabled;switch(t){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(a||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},fye=function(t,n){var r=n.value,o=n.isDisabled;if(r)switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.")}},hye=function(t){var n=t.focusedValue,r=t.getOptionLabel,o=t.selectValue;return"value ".concat(r(n)," focused, ").concat(o.indexOf(n)+1," of ").concat(o.length,".")},mye=function(t){var n=t.focusedOption,r=t.getOptionLabel,o=t.options;return"option ".concat(r(n)," focused").concat(n.isDisabled?" disabled":"",", ").concat(o.indexOf(n)+1," of ").concat(o.length,".")},pye=function(t){var n=t.inputValue,r=t.screenReaderMessage;return"".concat(r).concat(n?" for search term "+n:"",".")},gye=function(t){return t.label},vye=function(t){return t.label},bye=function(t){return t.value},wH=function(t){return!!t.isDisabled},yye=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":null,pointerEvents:n?"none":null,position:"relative"}},xye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps,s=t.isDisabled,l=t.isRtl;return W.createElement("div",Ot({className:o($n(a("container",t)),{"--is-disabled":s,"--is-rtl":l},r)},i),n)},Cye=function(t){var n=t.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},wye=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"render",value:function(){var r=this.props,o=r.children,a=r.className,i=r.cx,s=r.isMulti,l=r.getStyles,c=r.hasValue;return W.createElement("div",{className:i($n(l("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":c},a)},o)}}]),t}(x.Component),Sye=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Dye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles;return W.createElement("div",{className:o($n(a("indicatorsContainer",t)),{indicators:!0},r)},n)},SH=function(t){var n=t.size,r=si(t,["size"]);return W.createElement("svg",Ot({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:$n({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},r))},aB=function(t){return W.createElement(SH,Ot({size:20},t),W.createElement("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"}))},DH=function(t){return W.createElement(SH,Ot({size:20},t),W.createElement("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"}))},EH=function(t){var n=t.isFocused,r=t.theme,o=r.spacing.baseUnit,a=r.colors;return{label:"indicatorContainer",color:n?a.neutral60:a.neutral20,display:"flex",padding:o*2,transition:"color 150ms",":hover":{color:n?a.neutral80:a.neutral40}}},Eye=EH,Iye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps;return W.createElement("div",Ot({},i,{className:o($n(a("dropdownIndicator",t)),{indicator:!0,"dropdown-indicator":!0},r)}),n||W.createElement(DH,null))},Tye=EH,Aye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps;return W.createElement("div",Ot({},i,{className:o($n(a("clearIndicator",t)),{indicator:!0,"clear-indicator":!0},r)}),n||W.createElement(aB,null))},Oye=function(t){var n=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,a=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:n?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2,width:1}},Bye=function(t){var n=t.className,r=t.cx,o=t.getStyles,a=t.innerProps;return W.createElement("span",Ot({},a,{className:r($n(o("indicatorSeparator",t)),{"indicator-separator":!0},n)}))},IH="react-select-loading-indicator",mL=!1,kye=function(t){var n=t.isFocused,r=t.size,o=t.theme,a=o.colors,i=o.spacing.baseUnit;return{label:"loadingIndicator",color:n?a.neutral60:a.neutral20,display:"flex",padding:i*2,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},bS=function(t){var n=t.color,r=t.delay,o=t.offset;return W.createElement("span",{className:$n({animationDuration:"1s",animationDelay:"".concat(r,"ms"),animationIterationCount:"infinite",animationName:IH,animationTimingFunction:"ease-in-out",backgroundColor:n,borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},TH=function(t){var n=t.className,r=t.cx,o=t.getStyles,a=t.innerProps,i=t.isFocused,s=t.isRtl,l=t.theme.colors,c=i?l.neutral80:l.neutral20;return mL||(t0e("@keyframes ",IH,"{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),mL=!0),W.createElement("div",Ot({},a,{className:r($n(o("loadingIndicator",t)),{indicator:!0,"loading-indicator":!0},n)}),W.createElement(bS,{color:c,delay:0,offset:s}),W.createElement(bS,{color:c,delay:160,offset:!0}),W.createElement(bS,{color:c,delay:320,offset:!s}))};TH.defaultProps={size:4};var Pye=function(t){var n=t.isDisabled,r=t.isFocused,o=t.theme,a=o.colors,i=o.borderRadius,s=o.spacing;return{label:"control",alignItems:"center",backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?a.primary:a.neutral30}}},Rye=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.className,i=t.isDisabled,s=t.isFocused,l=t.innerRef,c=t.innerProps,d=t.menuIsOpen;return W.createElement("div",Ot({ref:l,className:r($n(o("control",t)),{control:!0,"control--is-disabled":i,"control--is-focused":s,"control--menu-is-open":d},a)},c),n)},jye=function(t){var n=t.theme.spacing;return{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Nye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.Heading,s=t.headingProps,l=t.label,c=t.theme,d=t.selectProps;return W.createElement("div",{className:o($n(a("group",t)),{group:!0},r)},W.createElement(i,Ot({},s,{selectProps:d,theme:c,getStyles:a,cx:o}),l),W.createElement("div",null,n))},Lye=function(t){var n=t.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:n.baseUnit*3,paddingRight:n.baseUnit*3,textTransform:"uppercase"}},$ye=function(t){var n=t.className,r=t.cx,o=t.getStyles,a=t.theme;t.selectProps;var i=si(t,["className","cx","getStyles","theme","selectProps"]);return W.createElement("div",Ot({className:r($n(o("groupHeading",ia({theme:a},i))),{"group-heading":!0},n)},i))},Mye=function(t){var n=t.isDisabled,r=t.theme,o=r.spacing,a=r.colors;return{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:n?"hidden":"visible",color:a.neutral80}},_ye=function(t){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:t?0:1,outline:0,padding:0,color:"inherit"}},Fye=function(t){var n=t.className,r=t.cx,o=t.getStyles,a=t.innerRef,i=t.isHidden,s=t.isDisabled,l=t.theme;t.selectProps;var c=si(t,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]);return W.createElement("div",{className:$n(o("input",ia({theme:l},c)))},W.createElement(p0e,Ot({className:r(null,{input:!0},n),inputRef:a,inputStyle:_ye(i),disabled:s},c)))},Wye=function(t){var n=t.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return{label:"multiValue",backgroundColor:a.neutral10,borderRadius:o/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},zye=function(t){var n=t.theme,r=n.borderRadius,o=n.colors,a=t.cropWithEllipsis;return{borderRadius:r/2,color:o.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},Hye=function(t){var n=t.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=t.isFocused;return{alignItems:"center",borderRadius:o/2,backgroundColor:i&&a.dangerLight,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},AH=function(t){var n=t.children,r=t.innerProps;return W.createElement("div",r,n)},Uye=AH,Vye=AH,Gye=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"render",value:function(){var r=this.props,o=r.children,a=r.innerProps;return W.createElement("div",a,o||W.createElement(aB,{size:14}))}}]),t}(x.Component),OH=function(e){To(t,e);function t(){return Eo(this,t),Ao(this,io(t).apply(this,arguments))}return Io(t,[{key:"render",value:function(){var r=this.props,o=r.children,a=r.className,i=r.components,s=r.cx,l=r.data,c=r.getStyles,d=r.innerProps,f=r.isDisabled,h=r.removeProps,m=r.selectProps,g=i.Container,p=i.Label,v=i.Remove,b=ia({className:s($n(c("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":f},a)},d),y={className:s($n(c("multiValueLabel",this.props)),{"multi-value__label":!0},a)},C=ia({className:s($n(c("multiValueRemove",this.props)),{"multi-value__remove":!0},a)},h);return W.createElement(g,{data:l,innerProps:b,selectProps:m},W.createElement(p,{data:l,innerProps:y,selectProps:m},o),W.createElement(v,{data:l,innerProps:C,selectProps:m}))}}]),t}(x.Component);ke(OH,"defaultProps",{cropWithEllipsis:!0});var Yye=function(t){var n=t.isDisabled,r=t.isFocused,o=t.isSelected,a=t.theme,i=a.spacing,s=a.colors;return{label:"option",backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(i.baseUnit*2,"px ").concat(i.baseUnit*3,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!n&&(o?s.primary:s.primary50)}}},Kye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.isDisabled,s=t.isFocused,l=t.isSelected,c=t.innerRef,d=t.innerProps;return W.createElement("div",Ot({ref:c,className:o($n(a("option",t)),{option:!0,"option--is-disabled":i,"option--is-focused":s,"option--is-selected":l},r)},d),n)},qye=function(t){var n=t.theme,r=n.spacing,o=n.colors;return{label:"placeholder",color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Xye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.innerProps;return W.createElement("div",Ot({className:o($n(a("placeholder",t)),{placeholder:!0},r)},i),n)},Qye=function(t){var n=t.isDisabled,r=t.theme,o=r.spacing,a=r.colors;return{label:"singleValue",color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2,maxWidth:"calc(100% - ".concat(o.baseUnit*2,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},Zye=function(t){var n=t.children,r=t.className,o=t.cx,a=t.getStyles,i=t.isDisabled,s=t.innerProps;return W.createElement("div",Ot({className:o($n(a("singleValue",t)),{"single-value":!0,"single-value--is-disabled":i},r)},s),n)},_s={ClearIndicator:Aye,Control:Rye,DropdownIndicator:Iye,DownChevron:DH,CrossIcon:aB,Group:Nye,GroupHeading:$ye,IndicatorsContainer:Dye,IndicatorSeparator:Bye,Input:Fye,LoadingIndicator:TH,Menu:Z0e,MenuList:eye,MenuPortal:vH,LoadingMessage:gH,NoOptionsMessage:pH,MultiValue:OH,MultiValueContainer:Uye,MultiValueLabel:Vye,MultiValueRemove:Gye,Option:Kye,Placeholder:Xye,SelectContainer:xye,SingleValue:Zye,ValueContainer:wye},BH=function(t){return ia({},_s,t.components)},Jye={clearIndicator:Tye,container:yye,control:Pye,dropdownIndicator:Eye,group:jye,groupHeading:Lye,indicatorsContainer:Sye,indicatorSeparator:Oye,input:Mye,loadingIndicator:kye,loadingMessage:nye,menu:Q0e,menuList:J0e,menuPortal:rye,multiValue:Wye,multiValueLabel:zye,multiValueRemove:Hye,noOptionsMessage:tye,option:Yye,placeholder:qye,singleValue:Qye,valueContainer:Cye},exe={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%)"},txe=4,kH=4,nxe=38,rxe=kH*2,oxe={baseUnit:kH,controlHeight:nxe,menuGutter:rxe},yS={borderRadius:txe,colors:exe,spacing:oxe},axe={backspaceRemovesValue:!0,blurInputOnSelect:nL(),captureMenuScroll:!nL(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:iye(),formatGroupLabel:gye,getOptionLabel:vye,getOptionValue:bye,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:wH,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!K0e(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ixe=1,Dv=function(e){To(t,e);function t(n){var r;Eo(this,t),r=Ao(this,io(t).call(this,n)),ke(me(me(r)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),ke(me(me(r)),"blockOptionHover",!1),ke(me(me(r)),"isComposing",!1),ke(me(me(r)),"clearFocusValueOnUpdate",!1),ke(me(me(r)),"commonProps",void 0),ke(me(me(r)),"components",void 0),ke(me(me(r)),"hasGroups",!1),ke(me(me(r)),"initialTouchX",0),ke(me(me(r)),"initialTouchY",0),ke(me(me(r)),"inputIsHiddenAfterUpdate",void 0),ke(me(me(r)),"instancePrefix",""),ke(me(me(r)),"openAfterFocus",!1),ke(me(me(r)),"scrollToFocusedOptionOnUpdate",!1),ke(me(me(r)),"userIsDragging",void 0),ke(me(me(r)),"controlRef",null),ke(me(me(r)),"getControlRef",function(s){r.controlRef=s}),ke(me(me(r)),"focusedOptionRef",null),ke(me(me(r)),"getFocusedOptionRef",function(s){r.focusedOptionRef=s}),ke(me(me(r)),"menuListRef",null),ke(me(me(r)),"getMenuListRef",function(s){r.menuListRef=s}),ke(me(me(r)),"inputRef",null),ke(me(me(r)),"getInputRef",function(s){r.inputRef=s}),ke(me(me(r)),"cacheComponents",function(s){r.components=BH({components:s})}),ke(me(me(r)),"focus",r.focusInput),ke(me(me(r)),"blur",r.blurInput),ke(me(me(r)),"onChange",function(s,l){var c=r.props,d=c.onChange,f=c.name;d(s,ia({},l,{name:f}))}),ke(me(me(r)),"setValue",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",c=arguments.length>2?arguments[2]:void 0,d=r.props,f=d.closeMenuOnSelect,h=d.isMulti;r.onInputChange("",{action:"set-value"}),f&&(r.inputIsHiddenAfterUpdate=!h,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(s,{action:l,option:c})}),ke(me(me(r)),"selectOption",function(s){var l=r.props,c=l.blurInputOnSelect,d=l.isMulti,f=r.state.selectValue;if(d)if(r.isOptionSelected(s,f)){var h=r.getOptionValue(s);r.setValue(f.filter(function(m){return r.getOptionValue(m)!==h}),"deselect-option",s),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(s)}})}else r.isOptionDisabled(s,f)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(s),isDisabled:!0}}):(r.setValue([].concat(D0(f),[s]),"select-option",s),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(s)}}));else r.isOptionDisabled(s,f)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(s),isDisabled:!0}}):(r.setValue(s,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(s)}}));c&&r.blurInput()}),ke(me(me(r)),"removeValue",function(s){var l=r.state.selectValue,c=r.getOptionValue(s);r.onChange(l.filter(function(d){return r.getOptionValue(d)!==c}),{action:"remove-value",removedValue:s}),r.announceAriaLiveSelection({event:"remove-value",context:{value:s?r.getOptionLabel(s):""}}),r.focusInput()}),ke(me(me(r)),"clearValue",function(){var s=r.props.isMulti;r.onChange(s?[]:null,{action:"clear"})}),ke(me(me(r)),"popValue",function(){var s=r.state.selectValue,l=s[s.length-1];r.announceAriaLiveSelection({event:"pop-value",context:{value:l?r.getOptionLabel(l):""}}),r.onChange(s.slice(0,s.length-1),{action:"pop-value",removedValue:l})}),ke(me(me(r)),"getOptionLabel",function(s){return r.props.getOptionLabel(s)}),ke(me(me(r)),"getOptionValue",function(s){return r.props.getOptionValue(s)}),ke(me(me(r)),"getStyles",function(s,l){var c=Jye[s](l);c.boxSizing="border-box";var d=r.props.styles[s];return d?d(c,l):c}),ke(me(me(r)),"getElementId",function(s){return"".concat(r.instancePrefix,"-").concat(s)}),ke(me(me(r)),"getActiveDescendentId",function(){var s=r.props.menuIsOpen,l=r.state,c=l.menuOptions,d=l.focusedOption;if(!(!d||!s)){var f=c.focusable.indexOf(d),h=c.render[f];return h&&h.key}}),ke(me(me(r)),"announceAriaLiveSelection",function(s){var l=s.event,c=s.context;r.setState({ariaLiveSelection:fye(l,c)})}),ke(me(me(r)),"announceAriaLiveContext",function(s){var l=s.event,c=s.context;r.setState({ariaLiveContext:dye(l,ia({},c,{label:r.props["aria-label"]}))})}),ke(me(me(r)),"onMenuMouseDown",function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),r.focusInput())}),ke(me(me(r)),"onMenuMouseMove",function(s){r.blockOptionHover=!1}),ke(me(me(r)),"onControlMouseDown",function(s){var l=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?s.target.tagName!=="INPUT"&&r.onMenuClose():l&&r.openMenu("first"):(l&&(r.openAfterFocus=!0),r.focusInput()),s.target.tagName!=="INPUT"&&s.preventDefault()}),ke(me(me(r)),"onDropdownIndicatorMouseDown",function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!r.props.isDisabled){var l=r.props,c=l.isMulti,d=l.menuIsOpen;r.focusInput(),d?(r.inputIsHiddenAfterUpdate=!c,r.onMenuClose()):r.openMenu("first"),s.preventDefault(),s.stopPropagation()}}),ke(me(me(r)),"onClearIndicatorMouseDown",function(s){s&&s.type==="mousedown"&&s.button!==0||(r.clearValue(),s.stopPropagation(),r.openAfterFocus=!1,setTimeout(function(){return r.focusInput()}))}),ke(me(me(r)),"onScroll",function(s){typeof r.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&oB(s.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(s)&&r.props.onMenuClose()}),ke(me(me(r)),"onCompositionStart",function(){r.isComposing=!0}),ke(me(me(r)),"onCompositionEnd",function(){r.isComposing=!1}),ke(me(me(r)),"onTouchStart",function(s){var l=s.touches,c=l.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)}),ke(me(me(r)),"onTouchMove",function(s){var l=s.touches,c=l.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),h=5;r.userIsDragging=d>h||f>h}}),ke(me(me(r)),"onTouchEnd",function(s){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(s.target)&&r.menuListRef&&!r.menuListRef.contains(s.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)}),ke(me(me(r)),"onControlTouchEnd",function(s){r.userIsDragging||r.onControlMouseDown(s)}),ke(me(me(r)),"onClearIndicatorTouchEnd",function(s){r.userIsDragging||r.onClearIndicatorMouseDown(s)}),ke(me(me(r)),"onDropdownIndicatorTouchEnd",function(s){r.userIsDragging||r.onDropdownIndicatorMouseDown(s)}),ke(me(me(r)),"handleInputChange",function(s){var l=s.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(l,{action:"input-change"}),r.onMenuOpen()}),ke(me(me(r)),"onInputFocus",function(s){var l=r.props,c=l.isSearchable,d=l.isMulti;r.props.onFocus&&r.props.onFocus(s),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:c,isMulti:d}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1}),ke(me(me(r)),"onInputBlur",function(s){if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(s),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})}),ke(me(me(r)),"onOptionHover",function(s){r.blockOptionHover||r.state.focusedOption===s||r.setState({focusedOption:s})}),ke(me(me(r)),"shouldHideSelectedOptions",function(){var s=r.props,l=s.hideSelectedOptions,c=s.isMulti;return l===void 0?c:l}),ke(me(me(r)),"onKeyDown",function(s){var l=r.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,h=l.inputValue,m=l.isClearable,g=l.isDisabled,p=l.menuIsOpen,v=l.onKeyDown,b=l.tabSelectsValue,y=l.openMenuOnFocus,C=r.state,D=C.focusedOption,A=C.focusedValue,T=C.selectValue;if(!g&&!(typeof v=="function"&&(v(s),s.defaultPrevented))){switch(r.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||h)return;r.focusValue("previous");break;case"ArrowRight":if(!c||h)return;r.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(A)r.removeValue(A);else{if(!d)return;c?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||s.shiftKey||!p||!b||!D||y&&r.isOptionSelected(D,T))return;r.selectOption(D);break;case"Enter":if(s.keyCode===229)break;if(p){if(!D||r.isComposing)return;r.selectOption(D);break}return;case"Escape":p?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):m&&f&&r.clearValue();break;case" ":if(h)return;if(!p){r.openMenu("first");break}if(!D)return;r.selectOption(D);break;case"ArrowUp":p?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":p?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!p)return;r.focusOption("pageup");break;case"PageDown":if(!p)return;r.focusOption("pagedown");break;case"Home":if(!p)return;r.focusOption("first");break;case"End":if(!p)return;r.focusOption("last");break;default:return}s.preventDefault()}});var o=n.value;r.cacheComponents=Qz(r.cacheComponents,bH).bind(me(me(r))),r.cacheComponents(n.components),r.instancePrefix="react-select-"+(r.props.instanceId||++ixe);var a=$y(o),i=r.buildMenuOptions(n,a);return r.state.menuOptions=i,r.state.selectValue=a,r}return Io(t,[{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()}},{key:"componentWillReceiveProps",value:function(r){var o=this.props,a=o.options,i=o.value,s=o.inputValue;if(this.cacheComponents(r.components),r.value!==i||r.options!==a||r.inputValue!==s){var l=$y(r.value),c=this.buildMenuOptions(r,l),d=this.getNextFocusedValue(l),f=this.getNextFocusedOption(c.focusable);this.setState({menuOptions:c,selectValue:l,focusedOption:f,focusedValue:d})}this.inputIsHiddenAfterUpdate!=null&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(r){var o=this.props,a=o.isDisabled,i=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&r.isDisabled||s&&i&&!r.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&G0e(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(){var r=this.props,o=r.isSearchable,a=r.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:o,isMulti:a}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this.state,a=o.menuOptions,i=o.selectValue,s=o.isFocused,l=this.props.isMulti,c=r==="first"?0:a.focusable.length-1;if(!l){var d=a.focusable.indexOf(i[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:a.focusable[c]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(r){var o=this.props,a=o.isMulti,i=o.isSearchable,s=this.state,l=s.selectValue,c=s.focusedValue;if(a){this.setState({focusedOption:null});var d=l.indexOf(c);c||(d=-1,this.announceAriaLiveContext({event:"value"}));var f=l.length-1,h=-1;if(l.length){switch(r){case"previous":d===0?h=0:d===-1?h=f:h=d-1;break;case"next":d>-1&&d<f&&(h=d+1);break}h===-1&&this.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:a}}),this.setState({inputIsHidden:h!==-1,focusedValue:l[h]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state,i=a.focusedOption,s=a.menuOptions,l=s.focusable;if(l.length){var c=0,d=l.indexOf(i);i||(d=-1,this.announceAriaLiveContext({event:"menu"})),r==="up"?c=d>0?d-1:l.length-1:r==="down"?c=(d+1)%l.length:r==="pageup"?(c=d-o,c<0&&(c=0)):r==="pagedown"?(c=d+o,c>l.length-1&&(c=l.length-1)):r==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:wH(l[c])}})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(yS):ia({},yS,this.props.theme):yS}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.getStyles,a=this.setValue,i=this.selectOption,s=this.props,l=s.classNamePrefix,c=s.isMulti,d=s.isRtl,f=s.options,h=this.state.selectValue,m=this.hasValue(),g=function(){return h},p=z0e.bind(null,l);return{cx:p,clearValue:r,getStyles:o,getValue:g,hasValue:m,isMulti:c,isRtl:d,options:f,selectOption:i,setValue:a,selectProps:s,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(r){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var o=this.state,a=o.focusedValue,i=o.selectValue,s=i.indexOf(a);if(s>-1){var l=r.indexOf(a);if(l>-1)return a;if(s<r.length)return r[s]}return null}},{key:"getNextFocusedOption",value:function(r){var o=this.state.focusedOption;return o&&r.indexOf(o)>-1?o:r[0]}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,a=r.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(r,o){return typeof this.props.isOptionDisabled=="function"?this.props.isOptionDisabled(r,o):!1}},{key:"isOptionSelected",value:function(r,o){var a=this;if(o.indexOf(r)>-1)return!0;if(typeof this.props.isOptionSelected=="function")return this.props.isOptionSelected(r,o);var i=this.getOptionValue(r);return o.some(function(s){return a.getOptionValue(s)===i})}},{key:"filterOption",value:function(r,o){return this.props.filterOption?this.props.filterOption(r,o):!0}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:a,selectValue:i})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{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:"buildMenuOptions",value:function(r,o){var a=this,i=r.inputValue,s=i===void 0?"":i,l=r.options,c=function(f,h){var m=a.isOptionDisabled(f,o),g=a.isOptionSelected(f,o),p=a.getOptionLabel(f),v=a.getOptionValue(f);if(!(a.shouldHideSelectedOptions()&&g||!a.filterOption({label:p,value:v,data:f},s))){var b=m?void 0:function(){return a.onOptionHover(f)},y=m?void 0:function(){return a.selectOption(f)},C="".concat(a.getElementId("option"),"-").concat(h);return{innerProps:{id:C,onClick:y,onMouseMove:b,onMouseOver:b,tabIndex:-1},data:f,isDisabled:m,isSelected:g,key:C,label:p,type:"option",value:v}}};return l.reduce(function(d,f,h){if(f.options){a.hasGroups||(a.hasGroups=!0);var m=f.options,g=m.map(function(b,y){var C=c(b,"".concat(h,"-").concat(y));return C&&d.focusable.push(b),C}).filter(Boolean);if(g.length){var p="".concat(a.getElementId("group"),"-").concat(h);d.render.push({type:"group",key:p,data:f,options:g})}}else{var v=c(f,"".concat(h));v&&(d.render.push(v),d.focusable.push(f))}return d},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var r=this.state,o=r.ariaLiveContext,a=r.selectValue,i=r.focusedValue,s=r.focusedOption,l=this.props,c=l.options,d=l.menuIsOpen,f=l.inputValue,h=l.screenReaderStatus,m=i?hye({focusedValue:i,getOptionLabel:this.getOptionLabel,selectValue:a}):"",g=s&&d?mye({focusedOption:s,getOptionLabel:this.getOptionLabel,options:c}):"",p=pye({inputValue:f,screenReaderMessage:h({count:this.countOptions()})});return"".concat(m," ").concat(g," ").concat(p," ").concat(o)}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,a=r.isSearchable,i=r.inputId,s=r.inputValue,l=r.tabIndex,c=this.components.Input,d=this.state.inputIsHidden,f=i||this.getElementId("input");if(!a)return W.createElement(lye,{id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dH,onFocus:this.onInputFocus,readOnly:!0,disabled:o,tabIndex:l,value:""});var h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},m=this.commonProps,g=m.cx,p=m.theme,v=m.selectProps;return W.createElement(c,Ot({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:g,getStyles:this.getStyles,id:f,innerRef:this.getInputRef,isDisabled:o,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:v,spellCheck:"false",tabIndex:l,theme:p,type:"text",value:s},h))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.components,a=o.MultiValue,i=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,h=this.props,m=h.controlShouldRenderValue,g=h.isDisabled,p=h.isMulti,v=h.inputValue,b=h.placeholder,y=this.state,C=y.selectValue,D=y.focusedValue,A=y.isFocused;if(!this.hasValue()||!m)return v?null:W.createElement(d,Ot({},f,{key:"placeholder",isDisabled:g,isFocused:A}),b);if(p){var T=C.map(function(j){var R=j===D;return W.createElement(a,Ot({},f,{components:{Container:i,Label:s,Remove:l},isFocused:R,isDisabled:g,key:r.getOptionValue(j),removeProps:{onClick:function(){return r.removeValue(j)},onTouchEnd:function(){return r.removeValue(j)},onMouseDown:function(_){_.preventDefault(),_.stopPropagation()}},data:j}),r.formatOptionLabel(j,"value"))});return T}if(v)return null;var B=C[0];return W.createElement(c,Ot({},f,{data:B,isDisabled:g}),this.formatOptionLabel(B,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.components.ClearIndicator,o=this.commonProps,a=this.props,i=a.isDisabled,s=a.isLoading,l=this.state.isFocused;if(!this.isClearable()||!r||i||!this.hasValue()||s)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(r,Ot({},o,{innerProps:c,isFocused:l}))}},{key:"renderLoadingIndicator",value:function(){var r=this.components.LoadingIndicator,o=this.commonProps,a=this.props,i=a.isDisabled,s=a.isLoading,l=this.state.isFocused;if(!r||!s)return null;var c={"aria-hidden":"true"};return W.createElement(r,Ot({},o,{innerProps:c,isDisabled:i,isFocused:l}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.components,o=r.DropdownIndicator,a=r.IndicatorSeparator;if(!o||!a)return null;var i=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return W.createElement(a,Ot({},i,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.components.DropdownIndicator;if(!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return W.createElement(r,Ot({},o,{innerProps:s,isDisabled:a,isFocused:i}))}},{key:"renderMenu",value:function(){var r=this,o=this.components,a=o.Group,i=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,h=o.Option,m=this.commonProps,g=this.state,p=g.focusedOption,v=g.menuOptions,b=this.props,y=b.captureMenuScroll,C=b.inputValue,D=b.isLoading,A=b.loadingMessage,T=b.minMenuHeight,B=b.maxMenuHeight,j=b.menuIsOpen,R=b.menuPlacement,N=b.menuPosition,_=b.menuPortalTarget,U=b.menuShouldBlockScroll,V=b.menuShouldScrollIntoView,z=b.noOptionsMessage,Y=b.onMenuScrollToTop,te=b.onMenuScrollToBottom;if(!j)return null;var se=function(H){var ie=p===H.data;return H.innerRef=ie?r.getFocusedOptionRef:void 0,W.createElement(h,Ot({},m,H,{isFocused:ie}),r.formatOptionLabel(H.data,"menu"))},he;if(this.hasOptions())he=v.render.map(function(be){if(be.type==="group"){be.type;var H=si(be,["type"]),ie="".concat(be.key,"-heading");return W.createElement(a,Ot({},m,H,{Heading:i,headingProps:{id:ie},label:r.formatGroupLabel(be.data)}),be.options.map(function(oe){return se(oe)}))}else if(be.type==="option")return se(be)});else if(D){var pe=A({inputValue:C});if(pe===null)return null;he=W.createElement(d,m,pe)}else{var K=z({inputValue:C});if(K===null)return null;he=W.createElement(f,m,K)}var O={minMenuHeight:T,maxMenuHeight:B,menuPlacement:R,menuPosition:N,menuShouldScrollIntoView:V},le=W.createElement(hH,Ot({},m,O),function(be){var H=be.ref,ie=be.placerProps,oe=ie.placement,ve=ie.maxHeight;return W.createElement(s,Ot({},m,O,{innerRef:H,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:D,placement:oe}),W.createElement(CH,{isEnabled:y,onTopArrive:Y,onBottomArrive:te},W.createElement(cye,{isEnabled:U},W.createElement(l,Ot({},m,{innerRef:r.getMenuListRef,isLoading:D,maxHeight:ve}),he))))});return _||N==="fixed"?W.createElement(c,Ot({},m,{appendTo:_,controlElement:this.controlRef,menuPlacement:R,menuPosition:N}),le):le}},{key:"renderFormField",value:function(){var r=this,o=this.props,a=o.delimiter,i=o.isDisabled,s=o.isMulti,l=o.name,c=this.state.selectValue;if(!(!l||i))if(s)if(a){var d=c.map(function(m){return r.getOptionValue(m)}).join(a);return W.createElement("input",{name:l,type:"hidden",value:d})}else{var f=c.length>0?c.map(function(m,g){return W.createElement("input",{key:"i-".concat(g),name:l,type:"hidden",value:r.getOptionValue(m)})}):W.createElement("input",{name:l,type:"hidden"});return W.createElement("div",null,f)}else{var h=c[0]?this.getOptionValue(c[0]):"";return W.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?W.createElement(sye,{"aria-live":"assertive"},W.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),W.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var r=this.components,o=r.Control,a=r.IndicatorsContainer,i=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,h=l.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return W.createElement(i,Ot({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),W.createElement(o,Ot({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:h}),W.createElement(s,Ot({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),W.createElement(a,Ot({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(x.Component);ke(Dv,"defaultProps",axe);var sxe={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},k1=function(t){var n,r;return r=n=function(o){To(a,o);function a(){var i,s;Eo(this,a);for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return s=Ao(this,(i=io(a)).call.apply(i,[this].concat(c))),ke(me(me(s)),"select",void 0),ke(me(me(s)),"state",{inputValue:s.props.inputValue!==void 0?s.props.inputValue:s.props.defaultInputValue,menuIsOpen:s.props.menuIsOpen!==void 0?s.props.menuIsOpen:s.props.defaultMenuIsOpen,value:s.props.value!==void 0?s.props.value:s.props.defaultValue}),ke(me(me(s)),"onChange",function(f,h){s.callProp("onChange",f,h),s.setState({value:f})}),ke(me(me(s)),"onInputChange",function(f,h){var m=s.callProp("onInputChange",f,h);s.setState({inputValue:m!==void 0?m:f})}),ke(me(me(s)),"onMenuOpen",function(){s.callProp("onMenuOpen"),s.setState({menuIsOpen:!0})}),ke(me(me(s)),"onMenuClose",function(){s.callProp("onMenuClose"),s.setState({menuIsOpen:!1})}),s}return Io(a,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(s){return this.props[s]!==void 0?this.props[s]:this.state[s]}},{key:"callProp",value:function(s){if(typeof this.props[s]=="function"){for(var l,c=arguments.length,d=new Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];return(l=this.props)[s].apply(l,d)}}},{key:"render",value:function(){var s=this,l=this.props;l.defaultInputValue,l.defaultMenuIsOpen,l.defaultValue;var c=si(l,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return W.createElement(t,Ot({},c,{ref:function(f){s.select=f},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),a}(x.Component),ke(n,"defaultProps",sxe),r},lxe={cacheOptions:!1,defaultOptions:!1,filterOption:null},PH=function(t){var n,r;return r=n=function(o){To(a,o);function a(i){var s;return Eo(this,a),s=Ao(this,io(a).call(this)),ke(me(me(s)),"select",void 0),ke(me(me(s)),"lastRequest",void 0),ke(me(me(s)),"mounted",!1),ke(me(me(s)),"optionsCache",{}),ke(me(me(s)),"handleInputChange",function(l,c){var d=s.props,f=d.cacheOptions,h=d.onInputChange,m=H0e(l,c,h);if(!m){delete s.lastRequest,s.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});return}if(f&&s.optionsCache[m])s.setState({inputValue:m,loadedInputValue:m,loadedOptions:s.optionsCache[m],isLoading:!1,passEmptyOptions:!1});else{var g=s.lastRequest={};s.setState({inputValue:m,isLoading:!0,passEmptyOptions:!s.state.loadedInputValue},function(){s.loadOptions(m,function(p){s.mounted&&(p&&(s.optionsCache[m]=p),g===s.lastRequest&&(delete s.lastRequest,s.setState({isLoading:!1,loadedInputValue:m,loadedOptions:p||[],passEmptyOptions:!1})))})})}return m}),s.state={defaultOptions:Array.isArray(i.defaultOptions)?i.defaultOptions:void 0,inputValue:typeof i.inputValue<"u"?i.inputValue:"",isLoading:i.defaultOptions===!0,loadedOptions:[],passEmptyOptions:!1},s}return Io(a,[{key:"componentDidMount",value:function(){var s=this;this.mounted=!0;var l=this.props.defaultOptions,c=this.state.inputValue;l===!0&&this.loadOptions(c,function(d){if(s.mounted){var f=!!s.lastRequest;s.setState({defaultOptions:d||[],isLoading:f})}})}},{key:"componentWillReceiveProps",value:function(s){s.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),s.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(s.defaultOptions)?s.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(s,l){var c=this.props.loadOptions;if(!c)return l();var d=c(s,l);d&&typeof d.then=="function"&&d.then(l,function(){return l()})}},{key:"render",value:function(){var s=this,l=this.props;l.loadOptions;var c=si(l,["loadOptions"]),d=this.state,f=d.defaultOptions,h=d.inputValue,m=d.isLoading,g=d.loadedInputValue,p=d.loadedOptions,v=d.passEmptyOptions,b=v?[]:h&&g?p:f||[];return W.createElement(t,Ot({},c,{ref:function(C){s.select=C},options:b,isLoading:m,onInputChange:this.handleInputChange}))}}]),a}(x.Component),ke(n,"defaultProps",lxe),r},cxe=k1(Dv);PH(cxe);var pL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=String(t).toLowerCase(),o=String(n.value).toLowerCase(),a=String(n.label).toLowerCase();return o===r||a===r},uxe={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r){return!(!t||n.some(function(o){return pL(t,o)})||r.some(function(o){return pL(t,o)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}},dxe=ia({allowCreateWhileLoading:!1,createOptionPosition:"last"},uxe),RH=function(t){var n,r;return r=n=function(o){To(a,o);function a(i){var s;Eo(this,a),s=Ao(this,io(a).call(this,i)),ke(me(me(s)),"select",void 0),ke(me(me(s)),"onChange",function(c,d){var f=s.props,h=f.getNewOptionData,m=f.inputValue,g=f.isMulti,p=f.onChange,v=f.onCreateOption,b=f.value;if(d.action!=="select-option")return p(c,d);var y=s.state.newOption,C=Array.isArray(c)?c:[c];if(C[C.length-1]===y){if(v)v(m);else{var D=h(m,m),A={action:"create-option"};p(g?[].concat(D0($y(b)),[D]):D,A)}return}p(c,d)});var l=i.options||[];return s.state={newOption:void 0,options:l},s}return Io(a,[{key:"componentWillReceiveProps",value:function(s){var l=s.allowCreateWhileLoading,c=s.createOptionPosition,d=s.formatCreateLabel,f=s.getNewOptionData,h=s.inputValue,m=s.isLoading,g=s.isValidNewOption,p=s.value,v=s.options||[],b=this.state.newOption;g(h,$y(p),v)?b=f(h,d(h)):b=void 0,this.setState({newOption:b,options:(l||!m)&&b?c==="first"?[b].concat(D0(v)):[].concat(D0(v),[b]):v})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var s=this,l=Ot({},this.props),c=this.state.options;return W.createElement(t,Ot({},l,{ref:function(f){s.select=f},options:c,onChange:this.onChange}))}}]),a}(x.Component),ke(n,"defaultProps",dxe),r},fxe=RH(Dv);k1(fxe);var hxe=RH(Dv),mxe=k1(hxe),pxe=PH(mxe),gxe=function(t){return function(n){n.in,n.onExited,n.appear,n.enter,n.exit;var r=si(n,["in","onExited","appear","enter","exit"]);return W.createElement(t,r)}},jH=function(t){var n=t.component,r=t.duration,o=r===void 0?1:r,a=t.in;t.onExited;var i=si(t,["component","duration","in","onExited"]),s={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(o,"ms")},exiting:{opacity:0},exited:{opacity:0}};return W.createElement(rB.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:a,timeout:o},function(l){var c={style:ia({},s[l])};return W.createElement(n,Ot({innerProps:c},i))})},NH=260,vxe=function(e){To(t,e);function t(){var n,r;Eo(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=Ao(this,(n=io(t)).call.apply(n,[this].concat(a))),ke(me(me(r)),"duration",NH),ke(me(me(r)),"rafID",void 0),ke(me(me(r)),"state",{width:"auto"}),ke(me(me(r)),"transition",{exiting:{width:0,transition:"width ".concat(r.duration,"ms ease-out")},exited:{width:0}}),ke(me(me(r)),"getWidth",function(s){s&&isNaN(r.state.width)&&(r.rafID=window.requestAnimationFrame(function(){var l=s.getBoundingClientRect(),c=l.width;r.setState({width:c})}))}),ke(me(me(r)),"getStyle",function(s){return{overflow:"hidden",whiteSpace:"nowrap",width:s}}),ke(me(me(r)),"getTransition",function(s){return r.transition[s]}),r}return Io(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var r=this,o=this.props,a=o.children,i=o.in,s=this.state.width;return W.createElement(rB.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:i,timeout:this.duration},function(l){var c=ia({},r.getStyle(s),r.getTransition(l));return W.createElement("div",{ref:r.getWidth,style:c},a)})}}]),t}(x.Component),bxe=function(t){return function(n){var r=n.in,o=n.onExited,a=si(n,["in","onExited"]);return W.createElement(vxe,{in:r,onExited:o},W.createElement(t,Ot({cropWithEllipsis:r},a)))}},yxe=function(t){return function(n){return W.createElement(jH,Ot({component:t,duration:n.isMulti?NH:1},n))}},xxe=function(t){return function(n){return W.createElement(jH,Ot({component:t},n))}},Cxe=function(t){return function(n){return W.createElement(rB.TransitionGroup,Ot({component:t},n))}},LH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=BH({components:t}),r=n.Input,o=n.MultiValue,a=n.Placeholder,i=n.SingleValue,s=n.ValueContainer,l=si(n,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return ia({Input:gxe(r),MultiValue:bxe(o),Placeholder:yxe(a),SingleValue:xxe(i),ValueContainer:Cxe(s)},l)},Ev=LH();Ev.Input;Ev.MultiValue;Ev.Placeholder;Ev.SingleValue;Ev.ValueContainer;Qz(LH,bH);var wxe=k1(Dv);const Sxe=re(()=>({padding:qe("selectOne")("padding",{right:30,left:xa().paddingRight})})),iB=re(()=>{const e=Tt("selectOne"),t=Sxe(),n=ee(),r=26,o=6,a=e("inputWrap",{"&.hasFocus .inputBlock-inputText":{...E.border({...n.borderType.formElements.default,color:n.mainColors.primary})},".inputBlock-inputText":{paddingRight:w(t.padding.right),paddingLeft:w(t.padding.left),position:"relative"},".SelectOne__indicators":{position:"absolute",top:0,right:w(o),bottom:0,display:"flex",justifyContent:"flex-end",alignItems:"center",width:w(ti().sizing.height)},".SelectOne__indicator-separator":{display:"none"},".SelectOne__indicator":{display:"flex",alignItems:"center",justifyContent:"center",width:w(ti().sizing.height/2),cursor:"pointer"},".suggestedTextInput-head":{...wo().middleLeft(),justifyContent:"space-between"},".SelectOne__single-value":{textOverflow:"ellipsis",maxWidth:it(`100% - ${w(t.padding.right+r)}`)},".SelectOne__single-value + div":{textOverflow:"ellipsis",maxWidth:it(`100% - ${w(t.padding.right)}`)},".SelectOne__value-container.inputText.inputText":{paddingRight:w(ti().sizing.height+o),...bv()},".SelectOne__value-container > *":{width:Z(100),overflow:"hidden",lineHeight:"inherit"},".SelectOne--is-disabled":{cursor:"pointer",opacity:.5},".SelectOne__menu-notice--no-options":{padding:10,overflow:"hidden"},".suggestedTextInput-option":{width:"100%",textAlign:"start",...E.padding({vertical:6,horizontal:12})},".suggestedTextInput-option:hover":{backgroundColor:P.colorOut(n.states.hover.highlight)},".icon-selectedCategory":{...E.margin({horizontal:4})},".inputBlock":xa()}),i=e("checkIcon",{color:P.colorOut(n.mainColors.primary)}),s=e("checkBoxAfterInput",{marginTop:w(12),[`.${p1().root}`]:{paddingLeft:0}}),l=e("chevron",{marginRight:8});return{inputWrap:a,checkIcon:i,checkBoxAfterInput:s,chevron:l}});function Vht(e){const{className:t,...n}=e;return u.jsx(_s.Control,{className:ae("suggestedTextInput-control",t),...n})}function $H(e){return e={...e,children:u.jsx(oi,{})},u.jsx(P1,{...e,value:""})}function MH(e){const t=Rr();return u.jsx(_s.Menu,{...e,className:ae("suggestedTextInput-menu","dropDown-contents",t.contents)})}function _H(e){const{...t}=e;return u.jsx(_s.MenuList,{...t,children:u.jsx("ul",{className:"suggestedTextInput-menuItems",children:e.children})})}function Ght(e){const{innerProps:t,selectProps:n}=e,r=Sy(),o=a=>{switch(a.key){case"Enter":case"Spacebar":case" ":t.onClick(a);break}};return u.jsx(_s.MultiValueRemove,{...e,className:"suggestedTextInput-tokenRemove",children:u.jsx("button",{...t,className:ae(ye.CUSTOM,`${n.classNamePrefix}-clear`),type:"button",style:{},"aria-hidden":void 0,onKeyDown:o,onClick:t.onClick,onTouchEnd:t.onTouchEnd,onMouseDown:t.onMouseDown,title:k("Clear"),"aria-label":k("Clear"),children:u.jsx(Vh,{className:ae("suggestedTextInput-tokenRemoveIcon",r.removeIcon)})})})}function FH(e){return e={...e,className:ae("suggestedTextInput-noOptions",e.className)},u.jsx(_s.NoOptionsMessage,{...e})}function E0(){return u.jsx(u.Fragment,{})}function P1(e){var a,i,s;const{isSelected:t,isFocused:n,selectProps:r,value:o}=e;return u.jsx("li",{className:"suggestedTextInput-item",children:u.jsx("button",{...e.innerProps,type:"button",className:ae("suggestedTextInput-option",{isSelected:t,isFocused:n}),children:u.jsxs("span",{className:"suggestedTextInput-head",children:[u.jsxs("span",{className:ge("suggestedTextInput-title",em().selectOptionLabel),children:[e.children,((i=(a=e.data)==null?void 0:a.data)==null?void 0:i.parentLabel)&&u.jsx("span",{className:"suggestedTextInput-parentTag",children:` - ${e.data.data.parentLabel}`})]}),(t||o===((s=r.value)==null?void 0:s.value))&&u.jsx(d1,{className:iB().checkIcon})]})})})}function Dxe(e){return u.jsxs(u.Fragment,{children:[u.jsx("li",{className:"suggestedTextInput-item",children:u.jsx("span",{className:"suggestedTextInput-groupHeading",children:e.label})}),e.children]})}function Exe(e){return u.jsx(_s.ValueContainer,{...e,className:ae("suggestedTextInput-valueContainer inputBlock-inputText inputText",e.className)})}function Ixe(e){const{innerProps:t}=e,n=_s.DropdownIndicator;return u.jsx(n,{...e,children:u.jsx("div",{...t,children:u.jsx(f1,{className:iB().chevron})})})}const WH="site",zH="hub",HH=W.createContext({optionsItems:[]});function sB(){return x.useContext(HH)}const Txe=[];function Yht(e){return u.jsx(HH.Provider,{value:{optionsItems:Txe},children:e.children})}function Axe(){return x.useContext(W.createContext({sources:fh.sources}))}const UH=W.forwardRef(function(t,n){var Y;const{pushSmartLocation:r}=Yh();t={disabled:!1,noHeading:!1,isLoading:!1,optionComponent:P1,triggerSearchOnClear:!1,disableAutocomplete:!1,placeholder:"",...t};const{sources:o}=Axe(),[a,i]=x.useState(!1),s="searchBar",l=xr(s),c=t.id??l,d=c+"-searchButton",f=c+"-searchInput",h=x.useRef(null),m=n??h,[g,p]=x.useState(!1),{onSearch:v,onChange:b,disableAutocomplete:y,optionComponent:C,resultsRef:D}=t,A=x.useCallback((te,se)=>{["input-blur","menu-close"].includes(se.action)||(b(te),p(!1))},[b,p]),T=x.useCallback((te,se)=>{if(te)if(y)b(te.label),v();else{const he=te.data||{},{url:pe}=he;se.action==="select-option"&&pe?r(pe):se.action==="create-option"?v():(b(te.label),y?v():p(!0))}},[y,b,v,p,r]),B=g||t.value.length===0||t.disableAutocomplete?!1:void 0,j=Vc(t.overwriteSearchBar),R={...t,isFocused:a,focusInput:()=>{var te;(te=m.current)==null||te.focus()},searchButtonID:d,searchInputID:f},N=x.useRef(R);x.useEffect(()=>{var te;N.current=R,(te=m.current)==null||te.forceUpdate()});const _=x.useMemo(()=>({Control:function(se){return u.jsx(Rxe,{...se,...N.current})},IndicatorSeparator:E0,Menu:D?function(se){return u.jsx(Pxe,{...se,mountRef:D})}:MH,MenuList:_H,Option:C,NoOptionsMessage:FH,ClearIndicator:E0,DropdownIndicator:E0,LoadingMessage:$H,Group:Dxe}),[C,D]),[U,V]=x.useState([]),z=((Y=t.resultsRef)==null?void 0:Y.current)&&t.forceMenuOpen||B;return u.jsx(pxe,{id:c,value:void 0,onChange:T,closeMenuOnSelect:!1,inputId:f,inputValue:t.value,onInputChange:A,components:_,isClearable:!1,blurInputOnSelect:!1,allowCreateWhileLoading:!0,controlShouldRenderValue:!1,isDisabled:t.disabled,isValidNewOption:()=>!0,cached:!0,loadOptions:()=>{var te;return(te=t.loadOptions)==null?void 0:te.call(t,t.value).then(se=>{const he=se.filter(K=>[Ave,Ove,Tve].includes(K.type)).map(K=>({...K,label:`places___${K.label}___`}));he[0]&&(he[0].data.isFirst=!0);const pe=[...he,...se];return V(pe),[...pe.filter(({source:K})=>!K||K==="community"),...o.filter(K=>K.key!=="community").map(K=>({label:K.label,options:pe.filter(({source:O})=>K.key===O)}))]})},defaultOptions:t.forcedOptions,menuIsOpen:z,classNamePrefix:s,className:ae(j.wrap,t.className),placeholder:t.placeholder??k("Search"),"aria-label":yt.sprintf(k("Search %s"),k("Text")),escapeClearsValue:!0,pageSize:20,theme:Oxe,styles:Bxe,backspaceRemovesValue:!0,createOptionPosition:"first",formatCreateLabel:kxe,ref:m,onKeyDown:t.handleOnKeyDown??(te=>{var he;const se=te.target;if(se.value&&te.key==="Tab"&&!te.shiftKey&&se.tagName!=="BUTTON"){te.preventDefault();const pe=(he=se.closest(".isClearable"))==null?void 0:he.querySelector("button");pe&&pe.focus()}if(a&&se instanceof HTMLInputElement){if(te.key==="Enter")return!0;if(te.key==="Home"){if(U.length===0){te.preventDefault(),se.setSelectionRange(0,0),p(!0);return}}else if(te.key==="End"&&U.length===0){te.preventDefault();const pe=se.value.length;se.setSelectionRange(pe,pe);return}p(!1)}}),onMenuOpen:t.onOpenSuggestions,onMenuClose:t.onCloseSuggestions,onFocus:()=>i(!0),onBlur:()=>i(!1),iconContainerClasses:t.iconContainerClasses,resultsAsModalClasses:t.resultsAsModalClasses})});function Oxe(e){return{...e,borderRadius:{},colors:{},spacing:{}}}const Bxe={option:e=>({...e}),menu:e=>({...e,backgroundColor:void 0,boxShadow:void 0}),menuList:e=>({...e,maxHeight:void 0}),control:e=>({...e,borderWidth:0})},kxe=e=>u.jsx("span",{className:"suggestedTextInput-searchingFor",children:u.jsx(dn,{source:"Search for <0/>",c0:u.jsx("strong",{children:e})})});function Pxe(e,t){const n=Vc(t),{mountRef:r}=e;return r.current==null?null:aa.createPortal(u.jsx(_s.Menu,{...e,className:ae("suggestedTextInput-menu","dropDown-contents","isParentWidth",n.menu,n.results)}),r.current)}function Rxe(e){const t=sB(),n=qO(),r={...t,...e.scope},{hideSearchButton:o,overwriteSearchBar:a,isFocused:i,focusInput:s,searchButtonID:l,searchInputID:c}=e,{optionsItems:d=[],value:f,onChange:h}=r,m=r.optionsItems.length>1,g=m?!1:!o,{compact:p=!1,borderRadius:v=n.border.radius,preset:b=n.options.preset}=a||{};x.useMemo(()=>ro("search"),[]);const y=Vc({borderRadius:v,compact:p,preset:b}),[C,D]=x.useState(!1),[A,T]=x.useState(!1),{value:B,triggerSearchOnClear:j,onSearch:R}=e;x.useEffect(()=>{A&&(B==null?void 0:B.length)<1&&(R(),T(!1))},[R,j,B]);const N=U=>{U.preventDefault(),e.onChange(""),j&&T(!0),s()},_=U=>{U.preventDefault(),e.onSearch()};return u.jsxs("form",{role:"search",className:ae(y.form,y.root),onSubmit:_,children:[u.jsxs("div",{onClick:s,className:ae(y.content,e.contentClass,{hasFocus:i,withoutScope:!m,withScope:m,withButton:g||m,withoutButton:!g&&!m}),children:[!p&&!m&&u.jsx(ut,{buttonType:ye.CUSTOM,onClick:()=>{s(),e.onSearch()},className:y.iconContainer(m),ariaLabel:k("Search"),title:k("Search"),tabIndex:1,children:u.jsx(Bt,{size:"compact",icon:"search-search"})}),m&&u.jsx(Hbe,{selectBoxProps:{options:d,value:f,onChange:h},compact:p,overwriteSearchBar:a,separator:C?null:u.jsx("div",{className:y.scopeSeparator,role:"presentation"})}),u.jsx("div",{onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),className:ae(y.main,{"focus-visible":i,isFocused:i,isHovered:C,withoutScope:!m,withScope:m,withButton:g,withoutButton:!g}),children:u.jsxs("div",{className:ae("suggestedTextInput-inputText","inputText","isClearable","searchBar-valueContainer",y.valueContainer,e.valueContainerClasses,{"focus-visible":i,isFocused:i,isHovered:C,[y.compoundValueContainer]:g,withoutScope:!m,withScope:m,withButton:g||m,withoutButton:!g&&!m,compactScope:m&&p}),children:[u.jsx(_s.Control,{...e}),e.value&&u.jsx(Ube,{onClick:N,className:ae(y.clear,{[y.clearWithButtonWithoutScope]:g&&!m},e.clearButtonClass)})]})})]}),u.jsx(Hn,{condition:!m,className:Rc().visuallyHidden,children:m&&u.jsx(ut,{buttonType:ye.CUSTOM,onClick:()=>{s(),e.onSearch()},className:y.hasScopeIconContainer,ariaLabel:k("Search"),title:k("Search"),tabIndex:0,children:u.jsx(Bt,{size:"compact",icon:"search-search"})})}),u.jsx(Hn,{condition:!g,className:Rc().visuallyHidden,children:g&&u.jsx(ut,{submit:!0,id:l,buttonType:e.buttonType,className:ge(y.submitButton,e.buttonClassName??y.actionButton),tabIndex:0,children:e.isLoading?u.jsx(oi,{className:e.buttonLoaderClassName,buttonType:e.buttonType}):e.buttonText||k("Search")})})]})}class VH extends W.Component{render(){const t=" › ",n=this.props.crumbs.length-1,r=this.props.crumbs.map((o,a)=>{const i=a===n;return o.name+(i?"":t)});return u.jsx("span",{className:ae("breadCrumbAsString",this.props.className),children:r})}}const jxe=re(()=>{const e=qe("placesSearchListing"),t=ee(),n=Tn(),r=e("color",{fg:n.font.color,hover:{fg:t.links.colors.active},focus:{fg:t.links.colors.active},active:{fg:t.links.colors.active},deleted:t.messageColors.deleted});return{iconSize:e("iconSize",{size:{width:t.icon.sizes.small,height:t.icon.sizes.small}}),colors:r}}),GH=re(()=>{const e=Tt("placesSearchListing"),t=ee(),n=jxe(),r=E.clickable.itemState(),o=e("container",{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap"}),a=e("buttonIconContainer",{display:"flex",alignItems:"center",...n.iconSize.size}),i=e("link",{...E.font({...t.fontSizeAndWeightVars("small"),color:P.colorOut(n.colors.fg)}),display:je("flex"),alignItems:je("center"),marginRight:w(24),padding:"6px 0",...r});return{container:o,buttonIconContainer:a,link:i}});function Kht(){return u.jsx(Bt,{size:"compact",icon:"search-search"})}function qht(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeDiscussions,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.869 15.804",children:[u.jsx("title",{children:k("Discussions")}),u.jsx("path",{d:"M18.911,8.991a7.516,7.516,0,0,0-3.346-1.476c-.607-2.508-3.854-4.13-6.544-4.13h0c-3.8,0-6.952,2.446-6.952,5.572a4.9,4.9,0,0,0,1.453,3.417l-.484,1.97a.772.772,0,0,0,1.092.875l2.242-1.106a8.334,8.334,0,0,0,.894.235,5.371,5.371,0,0,0,1.8,2.522,7.876,7.876,0,0,0,4.92,1.63,8.447,8.447,0,0,0,2.649-.417l2.242,1.106.608-2.845a4.932,4.932,0,0,0,1.453-3.417A5.038,5.038,0,0,0,18.911,8.991ZM6.321,13.018l-2.533,1.51.764-2.4A4.184,4.184,0,0,1,3.062,8.96c0-2.652,2.546-4.58,5.959-4.58s5.362,1.986,5.362,2.98c0,.007.017.022.024.032-.141-.006-.278-.033-.421-.033A7.877,7.877,0,0,0,9.061,8.99a5.038,5.038,0,0,0-2.027,3.94c0,.134.013.265.024.4C6.831,13.238,6.616,13.129,6.321,13.018Zm12.361,2.729-.106.1-.4,1.886L16.7,17.011l-.2.07a7.4,7.4,0,0,1-2.515.43,6.881,6.881,0,0,1-4.3-1.415A4.073,4.073,0,0,1,8.027,12.93,4.068,4.068,0,0,1,9.682,9.765a6.88,6.88,0,0,1,4.3-1.414,6.867,6.867,0,0,1,4.3,1.415,4.066,4.066,0,0,1,1.655,3.164A3.923,3.923,0,0,1,18.682,15.747Z",transform:"translate(-2.069 -3.385)",style:{fill:"currentColor"}})]})}function Xht(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeArticles,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.666 14.666",children:[u.jsx("title",{children:k("Articles")}),u.jsx("path",{d:"M17.417,3.667a.916.916,0,0,1,.916.916h0V17.417a.916.916,0,0,1-.916.916H4.583a.916.916,0,0,1-.916-.916h0V4.583a.916.916,0,0,1,.916-.916Zm0,.916H4.583V17.417H17.417ZM12.833,13.75v.917H6.417V13.75Zm2.75-1.833v.916H6.417v-.916ZM11,6.417V11H6.417V6.417Zm4.583,3.666V11H11.917v-.917Zm-5.5-2.75H7.333v2.75h2.75Zm5.5.917v.917H11.917V8.25Zm0-1.833v.916H11.917V6.417Z",transform:"translate(-3.667 -3.667)",style:{fill:"currentColor",fillRule:"evenodd"}})]})}function Nxe(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeCategoriesAndGroups,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[u.jsx("title",{children:e.title??k("Categories & Groups")}),u.jsx("defs",{children:u.jsx("filter",{id:"2etungn3ea",children:u.jsx("feColorMatrix",{in:"SourceGraphic",values:"currentColor"})})}),u.jsx("g",{style:{fill:"none",fillRule:"evenodd"},children:u.jsx("g",{filter:"url(#2etungn3ea)",transform:"translate(-120 -263)",children:u.jsx("g",{children:u.jsxs("g",{style:{stroke:"currentColor",strokeWidth:".667px"},children:[u.jsx("path",{d:"M10.654 8.896l2.574 1.417L7.47 13.69l-6.328-3.265c.136-.062.325-.138.472-.229.665-.414 1.606-.935 2.262-1.296.653.384 1.95 1.066 2.692 1.44.57.242 2.371-.575 3.611-1.205.173-.088.333-.169.475-.239h0z",transform:"translate(120 263) translate(1.333 .667)"}),u.jsx("path",{d:"M10.389 5.695l2.84 1.562-5.759 3.377-6.33-3.266c.15-.068.366-.157.537-.262.717-.442 1.73-1.003 2.438-1.393 1.007.713 3.073 1.62 3.15 1.62.052 0 .924-.386 1.852-.895.614-.344.987-.562 1.272-.743h0z",transform:"translate(120 263) translate(1.333 .667)"}),u.jsx("path",{d:"M7.066.734l6.146 3.171L7.47 7.273 1.324 4.102 7.066.734z",transform:"translate(120 263) translate(1.333 .667)"})]})})})})]})}function Qht(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeMember,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[u.jsx("title",{children:k("Members")}),u.jsx("path",{d:"M13.49,11.415l.064.015a8.462,8.462,0,0,1,4.354,3.113,11.459,11.459,0,0,1-.034,3.156,1.016,1.016,0,0,1-.756.3H2.861a1.016,1.016,0,0,1-.756-.3,11.428,11.428,0,0,1,.013-3.156A9.494,9.494,0,0,1,6.471,11.43a.232.232,0,0,1,.193.012A7.144,7.144,0,0,0,9.99,12.675a7.339,7.339,0,0,0,3.372-1.233.234.234,0,0,1,.192-.012ZM10.012,2c1.974,0,3.575,1.029,3.575,4.395,0,2.427-1.6,4.394-3.575,4.394S6.437,8.822,6.437,6.4C6.437,3.029,8.038,2,10.013,2Z",style:{fill:"none",stroke:"currentColor"}})]})}function Zht(e){return u.jsx(Nxe,{...e,title:k("Categories")})}function Jht(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeIdeasIcon,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.444 16.791",children:[u.jsx("title",{children:k("Ideas")}),u.jsx("path",{d:"M14.618,20.686a.388.388,0,0,1,0,.753H11.381a.387.387,0,0,1,0-.753h3.237Zm.79-1.793a.377.377,0,1,1,0,.753H10.592a.377.377,0,1,1,0-.753h4.817ZM13,5.148a5.544,5.544,0,0,1,5.623,5.434,5.406,5.406,0,0,1-1.861,4.028l-.06.058a4.1,4.1,0,0,0-.79,2.718.367.367,0,0,1-.1.254.341.341,0,0,1-.243.1H10.411a.385.385,0,0,1-.243-.1.319.319,0,0,1-.1-.254,3.988,3.988,0,0,0-.79-2.718,5.4,5.4,0,0,1-1.9-4.085A5.546,5.546,0,0,1,13,5.148Zm-.02.645a4.849,4.849,0,0,0-4.936,4.77,4.7,4.7,0,0,0,1.7,3.6,4.44,4.44,0,0,1,1.01,2.893h4.47a4.471,4.471,0,0,1,.951-2.815c0-.02.04-.058.061-.078a4.68,4.68,0,0,0,1.679-3.6A4.848,4.848,0,0,0,12.979,5.793Zm-.472.77a4.345,4.345,0,0,1,4.522,4.187.357.357,0,0,1-.712,0,3.677,3.677,0,0,0-3.81-3.527.331.331,0,1,1,0-.66Z",transform:"translate(-3.84 -4.898)",style:{fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5px"}}),u.jsx("path",{d:"M19.658,5.213a.542.542,0,0,1,.766.767L19.341,7.063a.542.542,0,1,1-.766-.766l1.083-1.083ZM22.28,9.979a.542.542,0,0,1-.471.6l-1.521.186a.542.542,0,1,1-.132-1.075l1.52-.187A.542.542,0,0,1,22.28,9.979ZM4.438,9.38l1.524.16a.542.542,0,0,1-.113,1.078l-1.524-.16a.542.542,0,0,1,.113-1.079ZM5.521,5.316a.541.541,0,0,1,.762-.08L7.474,6.2a.542.542,0,0,1-.682.842L5.6,6.077a.54.54,0,0,1-.08-.761Z",transform:"translate(-3.84 -4.898)",style:{fill:"currentColor",fillRule:"evenodd"}})]})}function emt(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typePollsIcon,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",children:[u.jsx("title",{children:k("Polls")}),u.jsx("rect",{x:"4.603",y:"14.818",width:"8.938",height:"4.063",rx:"1.3",style:{fill:"none",stroke:"currentColor",strokeWidth:"0.9750000238418579px"}}),u.jsx("rect",{x:"4.604",y:"6.987",width:"5.958",height:"4.063",rx:"1.3",style:{fill:"none",stroke:"currentColor",strokeWidth:"0.9750000238418579px"}}),u.jsx("path",{d:"M18.211,9.062H13.955",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4620000123977661px"}}),u.jsx("path",{d:"M12.083,9.062l2.043-2.031v4.063Z",style:{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"0.7310000061988831px;fill-rule: evenodd"}}),u.jsx("path",{d:"M15.4,16.681h4.256",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4620000123977661px"}}),u.jsx("path",{d:"M21.526,16.681l-2.043,2.031V14.649Z",style:{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"0.7310000061988831px;fill-rule: evenodd"}})]})}function Lxe(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeQuestion,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",children:[u.jsx("title",{children:k("Question")}),u.jsx("path",{d:"M13.245,15.427v-.34a1.756,1.756,0,0,1,.238-.973,4.438,4.438,0,0,1,.94-.914,8.084,8.084,0,0,0,1.159-1.042,2.689,2.689,0,0,0,.668-1.849,2.465,2.465,0,0,0-.868-2,3.547,3.547,0,0,0-2.348-.726,6.653,6.653,0,0,0-3.284.853l.634,1.33a9.357,9.357,0,0,1,1.193-.492,4.2,4.2,0,0,1,1.329-.2,1.9,1.9,0,0,1,1.215.34,1.174,1.174,0,0,1,.423.973,1.655,1.655,0,0,1-.26.936,5.8,5.8,0,0,1-1.16,1.1,3.941,3.941,0,0,0-1.056,1.14,2.844,2.844,0,0,0-.3,1.382v.483h1.479ZM12.565,19a1.074,1.074,0,0,0,.828-.313,1.205,1.205,0,0,0,.29-.85,1.159,1.159,0,0,0-.287-.841,1.093,1.093,0,0,0-.83-.3,1,1,0,0,0-1.11,1.14,1.2,1.2,0,0,0,.287.857,1.074,1.074,0,0,0,.823.306Z",style:{fill:"currentColor"}}),u.jsx("circle",{cx:"13",cy:"13",r:"8.667",style:{fill:"none",stroke:"currentColor",strokeWidth:"1.083px"}})]})}function tmt(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typePlaces,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.122 16.416",children:[u.jsx("title",{children:e.title??k("Places")}),u.jsx("defs",{children:u.jsx("filter",{id:"2etungn3ea",children:u.jsx("feColorMatrix",{in:"SourceGraphic",values:"currentColor"})})}),u.jsx("g",{style:{fill:"none",fillRule:"evenodd"},children:u.jsx("g",{filter:"url(#2etungn3ea)",transform:"translate(-120 -263)",children:u.jsx("g",{children:u.jsxs("g",{style:{stroke:"currentColor",strokeWidth:".667px"},children:[u.jsx("path",{d:"M10.654 8.896l2.574 1.417L7.47 13.69l-6.328-3.265c.136-.062.325-.138.472-.229.665-.414 1.606-.935 2.262-1.296.653.384 1.95 1.066 2.692 1.44.57.242 2.371-.575 3.611-1.205.173-.088.333-.169.475-.239h0z",transform:"translate(120 263) translate(1.333 .667)"}),u.jsx("path",{d:"M10.389 5.695l2.84 1.562-5.759 3.377-6.33-3.266c.15-.068.366-.157.537-.262.717-.442 1.73-1.003 2.438-1.393 1.007.713 3.073 1.62 3.15 1.62.052 0 .924-.386 1.852-.895.614-.344.987-.562 1.272-.743h0z",transform:"translate(120 263) translate(1.333 .667)"}),u.jsx("path",{d:"M7.066.734l6.146 3.171L7.47 7.273 1.324 4.102 7.066.734z",transform:"translate(120 263) translate(1.333 .667)"})]})})})})]})}function nmt(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeGroups,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16",children:[u.jsx("title",{children:k("Groups")}),u.jsx("g",{style:{fill:"none",stroke:"currentColor",strokeWidth:".867px",fillRule:"evenodd"},children:u.jsx("g",{style:{fill:"none",stroke:"currentColor",strokeWidth:"0.0.64px",fillRule:"nonzero"},children:u.jsxs("g",{children:[u.jsx("g",{children:u.jsx("path",{d:"M5.182 4.218l.028.006c.674.185 1.298.65 1.873 1.395.053.092.057 1.33-.015 1.414-.072.085-.193.135-.325.135h0H.61c-.132 0-.253-.05-.325-.135C.214 6.95.238 5.711.291 5.62c.374-.558.998-1.022 1.873-1.395.026-.01.059-.008.083.006.34.197.865.553 1.43.553s1.11-.356 1.45-.553c.024-.014.056-.016.083-.006zM3.687 0c.85 0 1.538.46 1.538 1.969 0 1.087-.689 1.969-1.538 1.969-.85 0-1.538-.882-1.538-1.97C2.15.462 2.838 0 3.687 0z",transform:"translate(-625 -263) translate(625 263) translate(8.533 4.8)"})}),u.jsx("g",{children:u.jsx("path",{d:"M5.182 4.218l.028.006c.674.185 1.298.65 1.873 1.395.053.092.057 1.33-.015 1.414-.072.085-.193.135-.325.135h0H.61c-.132 0-.253-.05-.325-.135C.214 6.95.238 5.711.291 5.62c.374-.558.998-1.022 1.873-1.395.026-.01.059-.008.083.006.34.197.865.553 1.43.553s1.11-.356 1.45-.553c.024-.014.056-.016.083-.006zM3.687 0c.85 0 1.538.46 1.538 1.969 0 1.087-.689 1.969-1.538 1.969-.85 0-1.538-.882-1.538-1.97C2.15.462 2.838 0 3.687 0z",transform:"translate(-625 -263) translate(625 263) translate(0 4.8)"})}),u.jsx("g",{fill:"#FFF",children:u.jsx("path",{d:"M7.403 6.026l.04.009c.962.264 1.854.928 2.675 1.992.076.132.082 1.9-.02 2.02-.103.121-.277.193-.465.193h0-8.76c-.188 0-.362-.072-.464-.193-.103-.12-.07-1.888.007-2.02.533-.796 1.425-1.46 2.675-1.992.038-.015.084-.012.118.008.487.28 1.237.79 2.044.79.807 0 1.585-.51 2.072-.79.034-.02.08-.023.118-.008zM5.267 0C6.48 0 7.464.658 7.464 2.813c0 1.553-.984 2.812-2.197 2.812S3.07 4.365 3.07 2.813C3.07.658 4.054 0 5.267 0z",transform:"translate(-625 -263) translate(625 263) translate(2.667 2.667)"})})]})})})]})}function rmt(e){const t=bt();return u.jsxs("svg",{"aria-hidden":e["aria-hidden"]!==void 0?e["aria-hidden"]:"true",className:ae(t.typeKnowledgeBase,e.className),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[u.jsx("title",{children:k("Knowledge Base")}),u.jsx("g",{style:{fill:"none",fillRule:"evenodd"},children:u.jsx("g",{style:{stroke:"currentColor"},children:u.jsx("g",{children:u.jsxs("g",{transform:"translate(-243 -263) translate(243 263) translate(3 2)",children:[u.jsx("path",{style:{strokeWidth:"0.64px"},d:"M1.75 0L1.75 8.565"}),u.jsx("rect",{style:{strokeWidth:"0.64px"},width:"9.1",height:"10.541",x:".35",rx:".8"}),u.jsx("path",{style:{strokeWidth:"0.64px"},d:"M.35 9.882s0-1.317 1.4-1.317h6.3c.933 0 1.4-.44 1.4-1.318"}),u.jsx("path",{style:{strokeWidth:"0.72px",strokeLinecap:"round"},d:"M3.5 2.965L7 2.965M3.5 4.282L7 4.282"}),u.jsx("path",{style:{fill:"currentColor",strokeWidth:"0.64px"},d:"M2.45 8.565L2.45 11.765 3.15 11.125 3.85 11.765 3.85 8.565z"})]})})})})]})}class YH{constructor(t,n){q(this,"key");q(this,"loadable");q(this,"additionalFilterSchema");q(this,"_subTypes");q(this,"promise");q(this,"loadedDomain");this.key=t,this.loadable=n,this.additionalFilterSchema=[],this._subTypes=[],this.promise=null,this.loadedDomain=null}addFieldToFilterSchema(t){this.loadedDomain?this.loadedDomain.addFieldToFilterSchema(t):this.additionalFilterSchema.push(t)}addSubType(t){this.loadedDomain?this.loadedDomain.addSubType(t):this._subTypes.push(t)}get subTypes(){var t;return((t=this.loadedDomain)==null?void 0:t.subTypes)??this._subTypes}async load(){if(this.loadedDomain)return this.loadedDomain;this.promise||(this.promise=this.loadable().then(n=>"default"in n?n.default:n));let t=await this.promise;return this.subTypes.forEach(n=>t.addSubType(n)),this.additionalFilterSchema.forEach(n=>t.addFieldToFilterSchema(n)),this.loadedDomain=t,this.loadedDomain}}const $xe=new YH("places",()=>mt(()=>import("../chunks/addons/dashboard/PlacesSearchDomain.loadable.BQRIj0UB.min.js"),__vite__mapDeps([17,1,18,19,20,21]),import.meta.url));function KH(e){var l;const{name:t,type:n,url:r,className:o,embedLinkClassName:a}=e,i=n?(l=$xe.subTypes.find(c=>c.type===n))==null?void 0:l.icon:u.jsx(Lxe,{}),s=GH();return u.jsx("li",{className:o,children:u.jsxs(wr,{style:{fontSize:"small"},to:r,tabIndex:0,className:ae(a,{[`${s.link}`]:!0}),children:[u.jsx("span",{className:ae(s.buttonIconContainer,ms().buttonIconRightMargin),children:i}),t]})},t)}function omt(e){const{items:t}=e,n=GH();return u.jsx("ul",{className:n.container,children:t.map(r=>u.jsx(KH,{...r},r.name))})}function qH(e){const{innerProps:t,isSelected:n,isFocused:r}=e,o=e.data.data,a=o==null?void 0:o.isForeign;if(o){const i=e.label,s=i.match(/places___(.+)___/);let l;s&&(l=s[1]);const{dateUpdated:c,crumbs:d,url:f,labels:h}=o,m=d&&d.length>0,g=Aa();return s?u.jsxs(u.Fragment,{children:[o.isFirst&&u.jsx("div",{className:Vc().firstItemBorderTop}),u.jsx(KH,{className:ae("suggestedTextInput-item",{[`${g.inlineBlock}`]:!0}),embedLinkClassName:ae("suggestedTextInput-option",{isSelected:n,isFocused:r}),name:l,type:o.type,url:o.url})]}):u.jsx("li",{className:"suggestedTextInput-item",children:u.jsxs(wr,{...t,onClick:void 0,to:f,title:i,"aria-label":i,className:ae("suggestedTextInput-option",{isSelected:n,isFocused:r}),children:[u.jsx("span",{className:"suggestedTextInput-head",children:u.jsx("span",{className:"suggestedTextInput-title",children:e.children})}),u.jsx("span",{className:"suggestedTextInput-main",children:u.jsxs("span",{className:ae("isFlexed",g.root),children:[h&&h.map(p=>u.jsx(Ru,{children:p},p)),c&&u.jsx("span",{className:g.meta,children:u.jsx(Uo,{className:g.meta,timestamp:c})}),m&&u.jsx(VH,{className:g.meta,crumbs:d}),a&&u.jsx(ds,{icon:"meta-external-compact"})]})})]})})}else return u.jsx(P1,{...e,value:e.data.value})}function Mxe(e){var U,V;const[t,n]=x.useState(""),r=xr("compactSearch"),o=x.useRef(null),a=x.useRef(null),i=x.useRef(null),s=x.useRef(null),l=qi(),c=O6(l),{focusOnMount:d,open:f=!1,withLabel:h}=e,m=a1(f),p={...sB(),...e.scope};x.useLayoutEffect(()=>{var z;d&&((z=a.current)==null||z.focus())},[d]),x.useLayoutEffect(()=>{var z,Y;m===!1&&f?(z=a.current)==null||z.focus():m===!0&&!f&&((Y=s.current)==null||Y.focus())});const{searchOptionProvider:v,externalSearch:b}=wz(),{pushSmartLocation:y}=Yh(),C=((U=p.value)==null?void 0:U.value)||"",D=x.useCallback(()=>{const z={};[WH,zH].includes(C)&&(z.scope=C);const Y=v.makeSearchUrl(t,z,b==null?void 0:b.query);if(b!=null&&b.query&&(b!=null&&b.resultsInNewTab)){window.open(Y,"_blank");return}y(Y)},[v,y,t,C,b]);Y6({root:o.current,callback:()=>{e.showingSuggestions||e.onCloseSearch()}}),zh(o,z=>{z||e.onCloseSearch()});const A=Ns(),T=Pve(),B=Vc(e.overwriteSearchBar),j=Rr(),R=A1(),N=(V=e.overwriteSearchBar)==null?void 0:V.compact,_=h&&!c&&!N&&u.jsx("div",{className:R.label,children:k("Search")});return u.jsxs("div",{ref:o,className:ae(e.className,T.root,{isOpen:e.open}),children:[!e.open&&u.jsxs("div",{className:T.compactSearchWrapper,children:[u.jsx(ut,{onClick:e.onSearchButtonClick,className:ae(A.centeredButton,e.buttonClass),title:k("Search"),"aria-expanded":!1,"aria-haspopup":"true",buttonType:ye.CUSTOM,"aria-controls":r,buttonRef:s,children:u.jsx("div",{className:ae(e.buttonContentClassName),children:u.jsx(Bt,{icon:"search-search"})})}),_]}),e.open&&u.jsxs("div",{className:T.contents,children:[u.jsxs("div",{className:T.searchAndResults,children:[u.jsx(UH,{id:r,placeholder:e.placeholder,optionComponent:qH,noHeading:!0,title:k("Search"),value:t,disabled:!e.open,hideSearchButton:!0,onChange:n,onSearch:D,loadOptions:(z,Y)=>{var te;return b!=null&&b.query?Promise.resolve([]):v.autocomplete(z,{...Y,scope:(te=p.value)==null?void 0:te.value})},ref:a,triggerSearchOnClear:!1,resultsRef:i,onOpenSuggestions:e.onOpenSuggestions,onCloseSuggestions:e.onCloseSuggestions,className:"compactSearch-searchBar",clearButtonClass:e.clearButtonClass,valueContainerClasses:ae(T.valueContainer,e.valueContainerClass),scope:e.scope,overwriteSearchBar:e.overwriteSearchBar,disableAutocomplete:!!(b!=null&&b.query)}),u.jsx("div",{ref:i,className:ae({[A.compactSearchResults]:e.showingSuggestions,[B.results]:e.showingSuggestions,[j.contents]:e.showingSuggestions})})]}),u.jsx(ut,{onClick:e.onCloseSearch,className:ge(e.cancelButtonClassName,T.close,B.closeButton),title:k("Cancel"),"aria-expanded":!0,"aria-haspopup":"true","aria-controls":r,buttonType:ye.CUSTOM,children:u.jsx("div",{className:ae(e.cancelContentClassName,T.cancelContents),children:k("Cancel")})})]})]})}var Nu;(function(e){e.DESKTOP="logo",e.MOBILE="mobileLogo"})(Nu||(Nu={}));function _xe(e,t){const n=e.assets.data||{};let r;return t==="logo"?r=n.logo||null:t==="mobileLogo"&&(r=n.mobileLogo||null),r?r.url:null}function Fxe(e){let t;const n=Pz(),r=_xe(n,e.type),o=Nn().logo.desktop.url,a=Nn().logo.mobile.url,i=e.type==="logo",s=i?o:a,l=e.overwriteLogo??s??r;return l?t=u.jsx("img",{className:e.className,src:l,alt:k("Home"),onLoad:()=>{window.dispatchEvent(new Event("resize"))}}):t=u.jsx(Jce,{className:e.className,isMobile:!i}),t}function Eb(e){const{doubleLogoStrategy:t}=Nn().logo,n=l8(),r=e.logoType===Nu.MOBILE?n.mobileLogo:n.logo,o=ae("headerLogo-logo",e.logoClassName,r),a=I1().logo.url;return Dz()===bg.FULL&&t==="mobile-only"?u.jsx(u.Fragment,{}):t==="hidden"?u.jsx(u.Fragment,{}):u.jsx(wr,{to:a,className:ae("headerLogo",e.className),children:u.jsx("span",{className:ae("headerLogo-logoFrame",n.logoFrame),children:u.jsx(Fxe,{overwriteLogo:e.overwriteLogo,alt:k("Vanilla"),className:o,type:e.logoType})})})}const Wxe=re(()=>{const e=qe("titleBarNavigation",void 0,new Rs({"navLinks.font.size":"navLinks.fontSize"})),t=ee(),n=Kt(),r=Nn(),o=e("border",{verticalWidth:3}),a=e("item",{size:n.sizing.height}),i=e("padding",{horizontal:t.gutter.half}),s=e("linkActive",{offset:0,height:3,bg:r.colors.fg,bottomSpace:1,maxWidth:40}),l=e("navLinks",{font:ce.font({size:14,color:r.colors.fg,textDecoration:"auto"}),padding:{left:8,right:8}}),c=e("navPadding",{padding:{bottom:4}});return{border:o,item:a,linkActive:s,padding:i,navLinks:l,navPadding:c}}),lB=re(()=>{const e=ee(),t=Nn(),n=Wxe(),r=t.mediaQueries(),o=wo(),a=S({...o.middleLeft(),position:"relative",height:w(t.sizing.height)},r.compact({height:w(t.sizing.mobile.height)}),"label:titleBarNavStyles-root"),i=S(t.logo.doubleLogoStrategy==="hidden"||t.logo.doubleLogoStrategy==="mobile-only"||t.logo.justifyContent===Ec.CENTER?{marginLeft:w(-(n.padding.horizontal*2+n.navLinks.padding.left))}:{},"label:titleBarNavStyles-navigation"),s=S({...E.absolute.middleOfParent(!0),display:"inline-flex"},"label:titleBarNavStyles-navigationCentered"),l=S({...o.middleLeft(),height:w(t.sizing.height),...E.padding(n.padding)},r.compact({height:Le(t.sizing.mobile.height),justifyContent:"center",width:Z(100)}),"label:titleBarNavStyles-items"),c=S({...zn(),whiteSpace:"nowrap",lineHeight:e.lineHeights.condensed,display:"flex",alignItems:"center",justifyContent:"center",minHeight:w(n.item.size),alignSelf:"center",paddingLeft:w(n.navLinks.padding.left),paddingRight:w(n.navLinks.padding.right),...E.font(n.navLinks.font),"&.focus-visible":{color:P.colorOut(t.colors.state.fg),backgroundColor:P.colorOut(t.colors.state.bg)},"&:focus":{color:P.colorOut(t.colors.state.fg),backgroundColor:P.colorOut(t.colors.state.bg)},"&:hover":{color:P.colorOut(t.colors.state.fg),backgroundColor:P.colorOut(t.colors.state.bg)}},"label:titleBarNavStyles-link"),d=n.linkActive.offset*2,f=S({"&:after":{...E.absolute.topLeft(`calc(50% - ${w(n.linkActive.height+n.linkActive.bottomSpace)})`),maxWidth:w(n.linkActive.maxWidth),content:Fc(""),height:w(n.linkActive.height),left:Z(50),marginLeft:w(ca(n.linkActive.offset)),width:d===0?Z(100):it(`100% + ${w(d)}`),transform:`translate(-50%, ${w(t.sizing.height/2)})`,backgroundColor:P.colorOut(n.linkActive.bg)}},"label:titleBarNavStyles-linkActive"),h=S({zIndex:2},"label:titleBarNavStyles-firstItem"),m=S({zIndex:2},"label:titleBarNavStyles-lastItem"),g=S({paddingBottom:w(n.navPadding.padding.bottom)},"label:titleBarNavStyles-navContiner"),p=S({},"label:titleBarNavStyles-navLinks"),v=S({...E.font({weight:400})},"label:titleBarNavStyles-navLinkAsButton");return{root:a,navigation:i,navigationCentered:s,items:l,link:c,linkActive:f,lastItem:m,firstItem:h,navLinks:p,navContiner:g,navLinkAsButton:v}});class zxe extends x.Component{render(){return u.jsx("li",{className:ae(this.props.className),children:this.props.children})}}const oI=W.forwardRef(function(t,n){const{isActive:r,to:o,className:a,buttonType:i,linkClassName:s,linkContentClassName:l,children:c,permission:d,hasPopupMenu:f,...h}=t,m=lB(),g=u.jsx("div",{className:ae({linkContentClassName:!0,[m.linkActive]:r}),children:c});return u.jsxs(zxe,{className:ae(a,m.root,{isActive:r}),children:[o&&u.jsx(wr,{...h,ref:n,to:o,className:ae(s,m.link,i?mh(i):""),role:"menuitem","aria-haspopup":f,"aria-expanded":(f&&r)??void 0,children:g}),!o&&u.jsx(ut,{buttonRef:n,onFocus:h.onFocus,onMouseEnter:h.onMouseEnter,onKeyDown:h.onKeyDown,buttonType:ye.TEXT,role:"menuitem",className:ae(m.navLinkAsButton,s,m.link,i?mh(i):""),"aria-haspopup":f,"aria-expanded":(f&&r)??void 0,children:g})]})}),Hxe=S({label:"flexSpacer",flex:1},"label:FlexSpacer-flexSpacer");class zp extends W.Component{render(){const t=" ",n=this.props.tag||"div";return u.jsxs(n,{className:ae(this.props.className,this.props.actualSpacer&&Hxe),"aria-hidden":!0,tabIndex:-1,children:[t,this.props.children&&u.jsx("span",{className:"sr-only",children:this.props.children})]})}}const aI=re(e=>{const t=ee(),n=qe("titleBarMegaMenu",e,[new Rs({"item.spacer":"spacing.menuItemSpacer","item.font.color":"colors.fg","wrapper.background.color":"colors.bg"})]),r=n("item",{spacer:10,font:ce.font({size:14,color:t.mainColors.fg})}),o=n("title",{font:ce.font({...t.fontSizeAndWeightVars("medium","bold"),color:r.font.color,lineHeight:1.25})}),a=n("wrapper",{alignment:"firstItem",shadow:`0 5px 5px 0 ${P.colorOut(t.elementaryColors.black.fade(.3))}`,background:ce.background({color:t.mainColors.bg})});return{title:o,wrapper:a,item:r}}),Uxe=re(()=>{const e=ee(),t=aI(),n=S({position:"fixed",left:0,right:0,...E.background(t.wrapper.background),boxShadow:t.wrapper.shadow,overflow:"hidden",transition:"height 200ms"},"label:TitleBarMegaMenu-styles-wrapper"),r=S({"&&":{overflowY:"auto",maxHeight:"60vh",display:"flex",flexDirection:"row",flexWrap:"wrap",paddingBottom:20}},"label:TitleBarMegaMenu-styles-container"),o=S({minWidth:160,maxWidth:300,...E.padding({horizontal:t.item.spacer,top:20})},"label:TitleBarMegaMenu-styles-menuItem"),a=S({},"label:TitleBarMegaMenu-styles-menuItemChildren"),i=S({flex:1,flexBasis:160},"label:TitleBarMegaMenu-styles-fillerItem"),s=S({display:"block",...E.font(t.title.font),marginBottom:w(12)},"label:TitleBarMegaMenu-styles-menuItemTitle"),l=S({fontSize:w(14),lineHeight:1.25,listStyle:"none",marginBottom:w(12),"&:last-child":{marginBottom:0},"& a":{...E.font(t.item.font)},"& a:hover":{color:P.colorOut(e.links.colors.hover)}},"label:TitleBarMegaMenu-styles-menuItemChild");return{wrapper:n,menuItem:o,menuItemChildren:a,fillerItem:i,container:r,menuItemTitle:s,menuItemChild:l}}),Vxe=250;function Gxe(e,t){const{className:n,url:r,text:o,onKeyDown:a}=e;return u.jsx("li",{className:n,role:"menuitem",children:u.jsx(wr,{tabIndex:0,onKeyDown:a,to:r,children:o})})}function Yxe(e,t){var _,U,V;const{expanded:n,leftOffset:r=0,onClose:o,menuItem:a}=e,{hasPermission:i}=mr(),s=Uxe(),{getCalcedHashOffset:l}=Sd(),[c,d]=x.useState(!1),[f,h]=x.useState(!1),[m,g]=x.useState(!0),p=x.useRef(o),v=!!n&&!!((_=n.children)!=null&&_.length),b=c||f,y=x.useRef(null),C=Zn(y,!1,!0),D=C.height,A=l()+D,T=[];(U=n==null?void 0:n.children)==null||U.map(z=>{var Y;(Y=z.children)!=null&&Y.length||T.push(z)}),x.useEffect(()=>{p.current=o},[o]),x.useEffect(()=>{if(v)g(!1);else{const z=setTimeout(()=>{g(!0)},200);return()=>clearTimeout(z)}},[v]),x.useImperativeHandle(t,()=>({focusFirstItem:()=>{var Y;const z=(Y=y.current)==null?void 0:Y.querySelector(`.${s.menuItemChild} a`);z==null||z.focus()}})),x.useEffect(()=>{if(!b){const z=p.current,Y=setTimeout(()=>{z&&z()},Vxe);return()=>clearTimeout(Y)}},[b]),x.useEffect(()=>{function z(Y){h(Y.clientY<=A)}return window.addEventListener("mousemove",z),()=>{window.removeEventListener("mousemove",z)}},[A]),x.useEffect(()=>{h(!1)},[n]);function B(z){if(y.current===null)return;const Y=new Es(y.current),te=z.target,se=Y.getNext(te,!1,!1),he=Y.getNext(te,!0,!1);switch(z.key){case"Escape":{z.preventDefault(),a==null||a.focus(),h(!1);break}case"ArrowRight":case"ArrowLeft":a==null||a.focus(),h(!1),a==null||a.dispatchEvent(new KeyboardEvent("keydown",{key:z.key,bubbles:!0}));break;case"ArrowDown":{z.preventDefault(),se==null||se.focus(),h(!1);break}case"ArrowUp":{z.preventDefault(),he?he==null||he.focus():a==null||a.focus();break}case" ":z.preventDefault(),z.target.click()}}function j(z){return u.jsx("ul",{className:s.menuItemChildren,role:"menu",children:z.map((Y,te)=>Y.permission&&!i(Y.permission)?u.jsx(W.Fragment,{},te):u.jsx(Kxe,{className:s.menuItemChild,url:Y.url,text:Y.name,onKeyDown:se=>B(se)},te))})}const R=aI();function N(){switch(R.wrapper.alignment){case"firstItem":const z=r,Y=C.left;return z-Y;case"logo":return ee().constants.fullGutter-aI().item.spacer}}return u.jsx("div",{className:s.wrapper,style:{top:l(),height:v?D:0,display:m?"none":void 0},onFocus:()=>d(!0),onBlur:()=>d(!1),children:u.jsxs(zo,{ref:y,style:{paddingLeft:N()},className:s.container,ignoreContext:!0,fullGutter:!0,children:[(V=n==null?void 0:n.children)==null?void 0:V.map((z,Y)=>{var te;return(te=z.children)!=null&&te.length?u.jsxs("div",{className:s.menuItem,children:[u.jsx("span",{className:s.menuItemTitle,role:"heading",children:z.name}),z.children&&j(z.children)]},Y):u.jsx(W.Fragment,{},Y)}),T.length?u.jsx("div",{className:s.menuItem,children:j(T)}):u.jsx(W.Fragment,{})]})})}const Kxe=W.forwardRef(Gxe),qxe=W.forwardRef(Yxe);function Cg(e){var y;const t=e.navigationItems??I1().navigationItems,n=tv(),[r,o]=x.useState(),[a,i]=x.useState(),s=Oh();x.useEffect(()=>s.listen(()=>{o(void 0),i(void 0)}),[s,o,i]);const l=x.useRef(null),c=x.useRef(),d=!!a&&!!((y=a.children)!=null&&y.length)&&a,f=Zn(c,!1,!0),{hasPermission:h}=mr(),m=lB();let g=!1;const p=t.filter(C=>C.isHidden?!1:C.permission?h(C.permission):!0),v=Object.keys(p).length,b=p.map((C,D)=>{function A(N){i(C),o(N)}function T(N){a!==C&&i(void 0),C.children&&C.children.length>0&&A(N)}function B(N){var Y,te;const U=N.target.closest("li"),V=U==null?void 0:U.nextSibling,z=U==null?void 0:U.previousSibling;switch(N.key){case"Enter":case" ":N.preventDefault(),C.children&&C.children.length>0?(A(N.target),setTimeout(()=>{var se;(se=l.current)==null||se.focusFirstItem()})):N.target.click();break;case"Escape":N.preventDefault(),i(void 0),o(void 0);break;case"ArrowDown":N.preventDefault(),A(N.target),setTimeout(()=>{var se;(se=l.current)==null||se.focusFirstItem()});break;case"ArrowUp":N.preventDefault(),i(void 0);break;case"ArrowRight":N.preventDefault(),(Y=V==null?void 0:V.querySelector("a"))==null||Y.focus();break;case"ArrowLeft":N.preventDefault(),(te=z==null?void 0:z.querySelector("a"))==null||te.focus();break}}const R=(d?d===C:n&&n.pathname?Ni(window.location.pathname)===oo(C.url,!0):!1)&&!g;return R&&(g=!0),u.jsx(oI,{id:C.id,to:C.url,ref:N=>{D===0&&(c.current=N)},isActive:R,className:ae({[m.lastItem]:v===D,[m.firstItem]:D===0}),onMouseEnter:N=>A(N.target),onFocus:N=>T(N.target),onKeyDown:B,linkClassName:e.linkClassName,hasPopupMenu:C.children&&!!C.children.length,children:k(C.name)},D)});return u.jsxs(u.Fragment,{children:[e.isCentered&&u.jsx(zp,{actualSpacer:!0}),u.jsxs("div",{ref:e.containerRef,className:ae("headerNavigation",e.className,m.navigation,e.isCentered&&m.navigationCentered),children:[u.jsxs("ul",{className:ae(e.listClassName,m.items),children:[e.children?e.children:b,e.excludeExtraNavItems??Cg.extraNavItems.map((C,D)=>u.jsx(C,{},D))]}),e.afterNode]}),u.jsx(qxe,{ref:l,leftOffset:f.left,menuItem:r,expanded:e.forceOpen?p[0]:a,onClose:e.forceOpen?()=>{}:()=>i(void 0)})]})}Cg.extraNavItems=[];Cg.addNavItem=e=>{Cg.extraNavItems.push(e)};class cB{constructor(t,n,r,o=pr,a){q(this,"path");q(this,"loadable");q(this,"route");q(this,"key");q(this,"url");q(this,"Link");q(this,"preload");this.path=n,this.Link=l=>u.jsx(H6,{duration:50,onHover:this.preload,children:c=>u.jsx(wr,{...c,...l,to:this.url(l.data)})}),this.preload=()=>this.loadable.preload();function i(){return u.jsx(o,{})}this.loadable=Hr({fallback:i,loadFunction:t}),this.url=l=>oo(r(l),!0);const s=Array.isArray(n)?n:[n];this.key=a||s.join("-"),this.route=u.jsx(K4,{exact:!0,path:n,component:this.loadable},this.key)}}function Xxe(e){const{status:t=X.LOADING}=e;return t===X.LOADING?u.jsxs(u.Fragment,{children:[u.jsx(yh,{useMobileBackButton:!1}),u.jsx(pr,{})]}):u.jsx(u.Fragment,{children:e.children})}function gL(){return YO?"/search":"/kb/search"}const XH=new cB(()=>mt(()=>import("../chunks/library/SearchPage.zGvJh9iR.min.js"),__vite__mapDeps([22,1,23,19,20,24,25,18,26]),import.meta.url),gL(),gL,Xxe);Zxe()?W.useLayoutEffect:W.useEffect;var Qxe=Jxe;function Zxe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jxe(){}function QH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ZH="reach-skip-nav",vL=function(t){var n=t.children,r=n===void 0?"Skip to content":n,o=t.contentId,a=QH(t,["children","contentId"]),i=o||ZH;return x.useEffect(function(){return Qxe()},[]),W.createElement("a",Object.assign({},a,{href:"#"+i,"data-reach-skip-link":"","data-reach-skip-nav-link":""}),r)},e1e=function(t){var n=t.id,r=QH(t,["id"]),o=n||ZH;return W.createElement("div",Object.assign({},r,{id:o,"data-reach-skip-nav-content":""}))};function yh(e){const t={mobileDropDownContent:null,isFixed:!0,useMobileBackButton:!0,forceVisibility:!1,...e},n=Nn().titleBarContainer,r=Nn().meBox,{bgProps:o,bg2Props:a,logoProps:i}=t1e(),{collisionSourceRef:s,hBoundary1Ref:l,hBoundary2Ref:c,hasCollision:d}=vce(),f=Dz(),[h,m]=x.useState(t.forceVisibility),[g,p]=x.useState(!1),v=d||f===bg.COMPACT,b=v&&!h&&!!t.title,y=A1(),D=!Xh(),A=Nn(),T=Ns(),B=l8(),j=f===bg.COMPACT&&t.hasSubNav,R=v?!h&&u.jsx(r1e,{}):u.jsx(n1e,{}),N=A.mobileLogo.justifyContent===Ec.CENTER,_=A.logo.justifyContent===Ec.CENTER,U=!!Vve(),[V,z]=x.useState(U);x.useEffect(()=>{V&&z(!1)},[V]);let Y=u.jsxs(u.Fragment,{children:[u.jsxs(Zhe,{className:T.container,children:[u.jsxs("div",{className:T.bgContainer,children:[u.jsx(Lo.div,{...o,className:ae(T.bg1,{[T.swoop]:A.swoop.amount>0})}),!V&&u.jsxs(Lo.div,{...a,className:ae(T.bg2,{[T.swoop]:A.swoop.amount>0}),children:[A.colors.bgImage&&u.jsx("img",{src:A.colors.bgImage,className:T.bgImage,alt:"titleBarImage","aria-hidden":!0}),A.overlay&&u.jsx("div",{className:T.overlay})]})]}),u.jsx(zo,{fullGutter:!0,gutterSpacing:n.gutterSpacing,maxWidth:n.maxWidth,children:u.jsx("div",{className:T.titleBarContainer,children:u.jsx("div",{className:ae(T.bar,{isHome:j}),children:t.onlyLogo?u.jsx(u.Fragment,{children:v?u.jsxs(u.Fragment,{children:[N&&u.jsx(zp,{actualSpacer:!0}),u.jsx("div",{className:ae(N&&T.logoCenterer,B.mobileLogo),children:u.jsx(Lo.span,{className:T.logoAnimationWrap,...i,children:u.jsx(Eb,{className:T.logoContainer,logoClassName:"titleBar-logo",logoType:Nu.MOBILE,overwriteLogo:t.overwriteLogo})})})]}):u.jsx(Lo.div,{className:ae(T.logoAnimationWrap),...i,children:u.jsx("span",{className:ae("logoAlignment",{[T.logoCenterer]:_,[T.logoLeftAligned]:!_}),children:u.jsxs(u.Fragment,{children:[u.jsx(vL,{className:T.skipNav,children:k("Skip to content")}),u.jsx(Eb,{className:ae("titleBar-logoContainer",T.logoContainer),logoClassName:"titleBar-logo",logoType:Nu.DESKTOP,overwriteLogo:t.overwriteLogo})]})})})}):u.jsxs(u.Fragment,{children:[v&&(t.useMobileBackButton?u.jsx(DO,{hideIfNoHistory:!0,className:T.leftFlexBasis,linkClassName:T.button}):u.jsx(zp,{className:"pageHeading-leftSpacer"})),!v&&(_?!h:!0)&&u.jsx(Lo.div,{className:ae(T.logoAnimationWrap),...i,children:u.jsx("span",{className:ae("logoAlignment",{[T.logoCenterer]:_,[T.logoLeftAligned]:!_}),children:u.jsxs(u.Fragment,{children:[u.jsx(vL,{className:T.skipNav,children:k("Skip to content")}),u.jsx(Eb,{className:ae("titleBar-logoContainer",T.logoContainer),logoClassName:"titleBar-logo",logoType:Nu.DESKTOP,overwriteLogo:t.overwriteLogo})]})})}),!v&&!_&&u.jsx("div",{ref:l,style:{width:1,height:1}}),!h&&!v&&u.jsx(Cg,{forceOpen:t.forceMenuOpen,isCentered:A.navAlignment.alignment==="center",containerRef:A.navAlignment.alignment==="center"&&!_?s:void 0,className:T.nav,linkClassName:T.topElement,afterNode:!v&&_&&u.jsx("div",{ref:c,style:{width:1,height:20}})}),v&&u.jsx(u.Fragment,{children:!h&&u.jsxs(u.Fragment,{children:[u.jsx(ybe,{className:T.hamburger,extraNavAfterDynamicComponents:t.extraBurgerNavigation,showCloseIcon:!1}),N&&u.jsx(zp,{actualSpacer:!0}),u.jsx("div",{className:ae(N&&T.logoCenterer,B.mobileLogo),children:u.jsx(Lo.span,{className:T.logoAnimationWrap,...i,children:u.jsx(Eb,{className:T.logoContainer,logoClassName:"titleBar-logo",logoType:Nu.MOBILE,overwriteLogo:t.overwriteLogo})})})]})}),!v&&!_&&u.jsx("div",{ref:c,style:{width:1,height:1}}),u.jsxs(Hn,{className:T.rightFlexBasis,condition:!!b,children:[!h&&u.jsx("div",{className:T.extraMeBoxIcons,children:yh.extraMeBoxComponents.map((O,le)=>u.jsx(O,{},le))}),u.jsx(Mxe,{className:ae(T.compactSearch,{isCentered:h}),focusOnMount:!0,placeholder:k("Search"),open:h,onSearchButtonClick:()=>{XH.preload(),m(!0)},onCloseSearch:()=>{m(t.forceVisibility)},cancelButtonClassName:ae(T.topElement,T.searchCancel,lB().link),cancelContentClassName:"meBox-buttonContent",buttonClass:ae(T.button,{[T.buttonOffset]:!v&&D}),showingSuggestions:g,onOpenSuggestions:()=>p(!0),onCloseSuggestions:()=>p(!1),buttonContentClassName:ae(y.buttonContent,"meBox-buttonContent"),clearButtonClass:T.clearButtonClass,scope:t.scope?{...t.scope}:void 0,searchCloseOverwrites:{source:"fromTitleBar",...A.stateColors},overwriteSearchBar:{compact:v},withLabel:r.withLabel}),R]})]})})})})]}),u.jsx(e1e,{})]});const{resetScrollOffset:te,setScrollOffset:se,offsetClass:he}=Sd(),pe=t.container!==null?t.container||document.getElementById("titleBar"):null;t.wrapperComponent&&(Y=u.jsx(t.wrapperComponent,{children:Y}));const K=ae("titleBar",T.root,t.className,{[T.isSticky]:t.isFixed},he);return x.useEffect(()=>(se(Nn().sizing.height),pe==null||pe.setAttribute("class",K),()=>{te()}),[se,te,pe,K]),pe?aa.createPortal(Y,pe):u.jsx("header",{className:K,children:Y})}function t1e(){var _,U;const e=x.useRef(null),t=x.useRef(null),n=x.useRef(null),{bannerExists:r,bannerRect:o}=E1(),[a,i]=x.useState(0),s=Nn().fullBleed,{doubleLogoStrategy:l}=Nn().logo,c=s.enabled&&r,{topOffset:d}=Sd();x.useEffect(()=>{const V=()=>{requestAnimationFrame(()=>{i(Math.max(0,window.scrollY))})};if(c||l==="fade-in")return window.addEventListener("scroll",V),()=>{window.removeEventListener("scroll",V)}},[l,i,c]);let f=0,h=0,m=0,g=0;if(r&&o&&t.current){const V=o.bottom,z=t.current.getBoundingClientRect().height;f=o.top,h=f+z,m=V-z*2,g=V-z}const p=d===0?-1:0,v=d,{bgSpring:b,bg2Spring:y,clientHeaderSpring:C}=$f({bgSpring:Math.max(f,Math.min(h,a)),bg2Spring:Math.max(m,Math.min(g,a)),clientHeaderSpring:Math.max(p,Math.min(v,a)),tension:100}),D=b.interpolate({range:[f,h],output:[s.startingOpacity,s.endingOpacity]}),A=y.interpolate({range:[m,g],output:[0,1]}),T=C.interpolate({range:[p,v],output:[0,1]}),B=c?{style:{opacity:D},ref:e}:{},j=c?{style:{opacity:A},ref:t}:{},R=((U=(_=T.payload)==null?void 0:_[0])==null?void 0:U.value)??0,N=l==="fade-in"?{style:{opacity:T,pointerEvents:R<=.15?"none":"initial"},ref:n}:{};return x.useDebugValue({bgProps:B,bg2Props:j,logoProps:N}),{bgProps:B,bg2Props:j,logoProps:N}}function n1e(){const e=Ns(),t=qi(),r=!Xh(),o=$ve(),a=Az(),i=Nn().guest,s=Nn().meBox;return r?u.jsxs("div",{className:ae("titleBar-nav titleBar-guestNav",e.nav),children:[u.jsx(oI,{buttonType:i.signInButtonType,linkClassName:ae(e.signIn,e.guestButton),to:a,children:k("Sign In")}),o&&u.jsx(oI,{buttonType:i.registerButtonType,linkClassName:ae(e.register,e.guestButton),to:o,children:k("Register")})]}):u.jsx(Rbe,{currentUser:t,className:ae("titleBar-meBox",e.meBox),buttonClassName:e.button,contentClassName:ae("titleBar-dropDownContents",e.dropDownContents),withSeparator:s.withSeparator,withLabel:s.withLabel})}function r1e(){const e=qi(),n=!Xh(),r=Ns(),o=Az();return n?u.jsx(wr,{className:ae(r.centeredButton,r.button,r.signInIconOffset),title:k("Sign In"),to:o,children:u.jsx(Bt,{icon:"me-sign-in"})}):u.jsx(_be,{className:ae("titleBar-button",r.button),currentUser:e})}yh.extraMeBoxComponents=[];yh.registerBeforeMeBox=e=>{yh.extraMeBoxComponents.push(e)};function o1e(e){return u.jsx(MT,{children:u.jsx(yh,{useMobileBackButton:!1})})}const xS=$h("@@auth"),ac=class ac extends br{constructor(){super(...arguments);q(this,"resetPassword",n=>{const r=Gt(ac.resetPasswordACs,async()=>(await Ct.post("/users/request-password",n)).data)(n);return this.dispatch(r)});q(this,"loginWithPassword",async n=>{const r=Gt(ac.passwordLoginACs,async()=>(await Ct.post("/authenticate/password",n)).data)(n);if(!await this.dispatch(r))return;const a=new URLSearchParams;window.location.href=oo(a.get("target")||"/",!0)});q(this,"getAuthenticators",()=>{const n=Gt(ac.getAuthenticatorsACs,async()=>(await Ct.get("/authenticate/authenticators")).data)({});return this.dispatch(n)})}};q(ac,"resetPasswordACs",xS.async("RESET_PASSWORD")),q(ac,"passwordLoginACs",xS.async("PASSWORD_LOGIN")),q(ac,"getAuthenticatorsACs",xS.async("GET_ALL_AUTHENTICATORS"));let mi=ac;const a1e={authenticators:{status:X.PENDING},signin:{status:X.PENDING},passwordReset:{status:X.PENDING}},i1e=fa(Vi(a1e).case(mi.getAuthenticatorsACs.started,(e,t)=>(e.authenticators.status=X.LOADING,e)).case(mi.getAuthenticatorsACs.done,(e,t)=>(e.authenticators={status:X.SUCCESS,data:t.result},e)).case(mi.getAuthenticatorsACs.failed,(e,t)=>(e.authenticators={status:X.ERROR,error:t.error},e)).case(mi.resetPasswordACs.started,(e,t)=>(e.passwordReset.status=X.LOADING,e)).case(mi.resetPasswordACs.done,(e,t)=>(e.passwordReset={status:X.SUCCESS,data:t.result},e)).case(mi.resetPasswordACs.failed,(e,t)=>(e.passwordReset={status:X.ERROR,error:t.error},e)).case(mi.passwordLoginACs.started,(e,t)=>(e.signin.status=X.LOADING,e)).case(mi.passwordLoginACs.done,(e,t)=>(e.signin={status:X.SUCCESS,data:t.result},e)).case(mi.passwordLoginACs.failed,(e,t)=>(e.signin={status:X.ERROR,error:t.error},e)));function wg(e){return e.trim().replace(new RegExp("[,]+$"),"")}var iI;(function(e){e.STANDARD="siteNavNodeStandard",e.DASHBOARD="siteNavNodeDashboard"})(iI||(iI={}));const R1=re(()=>{const e=ee(),t=qe("siteNav"),n=t("node",{fontSize:e.fonts.size.medium,fg:e.mainColors.fg,lineHeight:e.lineHeights.condensed,borderWidth:1,padding:4,active:{fg:e.links.colors.default,fontWeight:e.fonts.weights.bold}}),r=t("title",{...e.fontSizeAndWeightVars("large","bold")}),o=t("nodeToggle",{height:n.fontSize*n.lineHeight,width:e.gutter.size,iconWidth:7}),a=t("spacer",{default:12});return{node:n,title:r,nodeToggle:o,spacer:a}}),amt=re(()=>{const e=ee(),t=R1(),n=Ht().mediaQueries(),r=Tt("siteNav"),o=t.nodeToggle.width-t.nodeToggle.iconWidth/2-t.spacer.default,a=r({position:"relative",display:"block",zIndex:1},n.noBleedDown({marginLeft:o,width:`calc(100% - ${o}px)`})),i=r("title",{...E.font({...e.fontSizeAndWeightVars("large","bold")})}),s=r("children",{position:"relative",display:"block"});return{root:a,title:i,children:s}}),uB=(e,t,n)=>{const r=ee(),o={...e},a={...vv({noState:{color:P.colorOut(t?r.mainColors.fg:r.links.colors.default)},hover:{color:P.colorOut(r.links.colors.hover)},keyboardFocus:{color:P.colorOut(r.links.colors.keyboardFocus),outline:"none","& > *":{outline:"auto 2px -webkit-focus-ring-color"}},active:{color:P.colorOut(r.links.colors.active)}}),"&:not(.focus-visible):active":{outline:0}};if(n){const i=n.split(",");i.length&&i.length>0?i.map(s=>{Q(wg(s),a)}):Q(wg(n),a)}return n?(t&&(o.color=P.colorOut(r.mainColors.fg)),o):{...o,...a}},imt=re((e=!1,t=!1,n=!1)=>{const r=ee(),o=R1(),a=Ht().mediaQueries(),i=Tt("siteNavNode"),s=i({position:"relative",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexWrap:"nowrap",fontSize:w(o.node.fontSize),color:o.node.fg.toString()}),l=i("children",{marginLeft:w(o.spacer.default)}),c=S({...t?E.font({...r.fontSizeAndWeightVars("large","normal")}):{},...uB({display:"block",flexGrow:1,lineHeight:o.node.lineHeight,minHeight:Le(30),padding:0,width:Z(100)},!0)},"label:siteNavStyles-link"),d=S({position:"relative",display:"flex",alignItems:"center",width:it(`100% + ${w(o.nodeToggle.width)}`),marginLeft:w(-o.nodeToggle.width),textAlign:"start",border:`solid transparent ${w(o.node.borderWidth)}`,paddingTop:w(o.node.padding+o.node.borderWidth),paddingRight:w(o.node.padding),paddingBottom:w(o.node.padding+o.node.borderWidth),paddingLeft:w(o.nodeToggle.width-o.node.borderWidth),...e?{color:o.node.active.fg.toString()}:{},...n?{fontWeight:r.fonts.weights.bold}:{}},a.oneColumnDown({...E.font({...r.fontSizeAndWeightVars("large")})}),"label:siteNavStyles-label"),f=S({flex:1},"label:siteNavStyles-labelText"),h=i("spacer",{display:"block",height:w(o.nodeToggle.height),width:w(o.spacer.default),margin:"6px 0"}),m=i("toggle",{margin:"6px 0",padding:0,zIndex:1,display:"block",alignItems:"center",justifyContent:"center",outline:0,height:w(o.nodeToggle.height),width:w(o.nodeToggle.width),lineHeight:0}),g=i("buttonOffset",{position:"relative",display:"flex",justifyContent:"flex-end",width:w(o.nodeToggle.width),marginLeft:w(-o.nodeToggle.width),top:Le(16),transform:"translateY(-50%)"}),p=i("contents",{display:"block",width:Z(100),[`.${g}`]:{top:w(15.5)}}),v=i("active",{fontWeight:r.fonts.weights.semiBold,color:P.colorOut(r.links.colors.active)}),b=S({height:18,width:18,position:"relative",transform:"scale(1.25)",...E.margin({left:4,right:8}),color:P.colorOut(r.mainColors.fg),"&.disabled":{opacity:.5}},"label:siteNavStyles-icon"),y=S({display:"flex",alignItems:"center",gap:8,marginRight:8,"& *":{margin:0}},"label:siteNavStyles-iconGroup"),C=ge(b,S({color:P.colorOut(r.mainColors.primary),...E.margin({left:4,right:8})},"label:siteNavStyles-checkMark"));return{root:s,children:l,contents:p,link:c,label:d,labelText:f,spacer:h,toggle:m,buttonOffset:g,activeLink:v,iconGroup:y,icon:b,checkMark:C,badge:S({},"label:siteNavStyles-badge")}}),smt=re((e=!1,t=!1,n=!1)=>{const r=ee(),o=R1();Tt(iI.DASHBOARD);const a=S({...t?E.font({size:w(r.fonts.size.medium),weight:r.fonts.weights.semiBold,transform:"uppercase"}):{},...uB({display:"block",flexGrow:1,lineHeight:o.node.lineHeight,minHeight:Le(30),padding:0,width:Z(100)},!0),overflow:"visible !important"},"label:siteNavStyles-link"),i=S({position:"relative",display:"flex",alignItems:"center",width:it(`100% + ${w(o.nodeToggle.width)}`),marginLeft:w(-o.nodeToggle.width),textAlign:"start",border:`solid transparent ${w(o.node.borderWidth)}`,paddingTop:w(o.node.padding+o.node.borderWidth),paddingRight:w(o.node.padding),paddingBottom:w(o.node.padding+o.node.borderWidth),paddingLeft:w(o.nodeToggle.width-o.node.borderWidth),fontSize:w(r.fonts.size.medium),"& > svg":{height:18,width:18},...e?{borderTopLeftRadius:6,borderBottomLeftRadius:6,backgroundColor:"#e8ecf2"}:{},...n?{fontWeight:r.fonts.weights.semiBold}:{}},"label:siteNavStyles-label"),s=S({fontSize:11,display:"inline",padding:"0px 4px",position:"relative",top:-1,marginLeft:6,color:P.colorOut(r.mainColors.primary),verticalAlign:"text-bottom",border:`1px solid ${P.colorOut(r.mainColors.primary)}`,borderRadius:4},"label:siteNavStyles-badge");return{link:a,label:i,badge:s}}),s1e=()=>{Q(".DataList-Connections .Connection-Header",{alignItems:"flex-end"}),Q(".DataList-Connections .Gloss",{minHeight:"42px",marginTop:w(5),minWidth:w(200)}),Q(".ActivateSlider",{minWidth:w(200),marginLeft:w(16)});const e=768;Q(".DataList-Connections .Connection-Header",Yt({maxWidth:e},{flexDirection:"column",alignItems:"center"})),Q(".Connection-Name",{minHeight:w(42)},Yt({maxWidth:e},{justifyContent:"center"})),Q(".DataList-Connections .IconWrap",Yt({maxWidth:e},{marginRight:0})),Q(".ActivateSlider",Yt({maxWidth:e},{minWidth:w(200),marginLeft:0}))},l1e=()=>{const e=ee(),t=Tn();Q(".Reactions",{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-start",marginLeft:hr(ca(t.spacing.horizontal)),width:it(`100% + ${w(t.spacing.horizontal*2)}`),...E.padding({all:w(t.spacing.horizontal)})}),Q(`
        .DataList .Reactions > .ReactButton,
        .MessageList .Reactions > .ReactButton,
        .Reactions  > .FlagMenu,
        .DataList .Reactions .ReactButton,
        .MessageList .Reactions .ReactButton
    `,{fontSize:w(t.font.size),...E.margin({all:w(t.spacing.horizontal)}),textDecoration:"none"}),Q(".Item.Item .Reactions a, .Item:hover .Reactions a",{textDecoration:"none",width:"initial"}),Q(".FlagMenu > .ReactButton",{margin:je(0)}),Q(".Reactions .ReactButton",{color:P.colorOut(t.font.color),...vv({hover:{color:P.colorOut(e.links.colors.hover)},focus:{color:P.colorOut(e.links.colors.focus)},active:{color:P.colorOut(e.links.colors.active)}})})},c1e=()=>{const e=ee(),t=Kt(),n=Gi();Ft(".Button-Options",ye.ICON_COMPACT),Ft(".DataList a.Delete.Delete.Delete",ye.ICON_COMPACT),Ft(".MessageList a.Delete.Delete.Delete",ye.ICON_COMPACT),Ft(".Button.Primary",ye.PRIMARY),Ft(".FormTitleWrapper .Buttons .Button",ye.PRIMARY),Ft(".FormWrapper .Buttons .Button",ye.PRIMARY),Ft(".FormWrapper .file-upload-browse",ye.PRIMARY),Ft(".FormTitleWrapper .Buttons .Button.Primary",ye.PRIMARY),Ft(".FormTitleWrapper .file-upload-browse",ye.PRIMARY),Ft(".FormWrapper .Buttons .Button.Primary",ye.PRIMARY),Ft(".Button-Controls .Button.Primary",ye.PRIMARY),Ft(".BigButton:not(.Danger)",ye.PRIMARY),Ft(".NewConversation.NewConversation",ye.PRIMARY),Ft(".groupToolbar .Button.Primary",ye.PRIMARY),Ft(".BoxButtons .ButtonGroup.Multi .Button.Primary",ye.PRIMARY),Ft(".Section-Members .Group-RemoveMember.Group-RemoveMember",ye.PRIMARY),Ft(".Section-Members .Buttons .Group-RemoveMember.Group-RemoveMember",ye.PRIMARY),Ft(".Section-Members .Buttons .Group-Leader.Group-Leader",ye.STANDARD),Ft(".group-members-filter-box .Button.search",ye.PRIMARY),Ft("#Form_Ban",ye.PRIMARY),Ft(".Popup #UserBadgeForm button",ye.PRIMARY),Ft(".Button.Handle",ye.PRIMARY),Ft("div.Popup .Body .Button.Primary",ye.PRIMARY),Ft(".ButtonGroup.Multi .Button.Handle",ye.PRIMARY),Ft(".ButtonGroup.Multi .Button.Handle .Sprite.SpDropdownHandle",ye.PRIMARY),Ft(".AdvancedSearch .InputAndButton .bwrap .Button",ye.PRIMARY);const r=n.border.radius,o=n.border.width*2,a=n.sizing.minHeight-o;r&&r>0&&Q(".Frame .ButtonGroup.Multi.NewDiscussion .Button.Handle .SpDropdownHandle::before",{marginTop:w(t.sizing.height*2/36),marginRight:w(r*.035),maxHeight:w(a),height:w(a),lineHeight:w(a),maxWidth:w(a),minWidth:w(a)}),Q(".FormWrapper .file-upload-browse, .FormTitleWrapper .file-upload-browse",{marginRight:w(0)}),Q(".Group-Box .BlockColumn .Buttons a:first-child",{marginRight:w(e.gutter.quarter)}),Q(".Frame .ButtonGroup.Multi .Button.Handle .Sprite.SpDropdownHandle",{height:w(a),maxHeight:w(a),width:w(a),background:je("transparent"),backgroundColor:je("none"),...E.border({color:Za(0,0,0,0)}),maxWidth:w(a),minWidth:w(a)}),Zt({".Frame .ButtonGroup.Multi.NewDiscussion .Button.Primary":{paddingLeft:hr(a+4),paddingRight:hr(a+4)},".Frame .ButtonGroup.Multi.NewDiscussion .Button.Handle.Handle":{position:"absolute",top:w(0),right:w(t.border.width),bottom:w(0),minWidth:hr(a),maxWidth:hr(a),maxHeight:hr(a),minHeight:hr(a),height:hr(a),width:hr(a),borderTopRightRadius:w(r),borderBottomRightRadius:w(r),display:"block",boxShadow:"none"}}),Q(".Frame .ButtonGroup.Multi.Open .Button.Handle",{width:w(t.sizing.height)}),Q(".Frame .ButtonGroup.Multi.NewDiscussion .Sprite.SpDropdownHandle",{...ki.fullSizeOfParent(),padding:je(0),border:je(0),borderRadius:je(0),minWidth:w(a)}),Q(".ButtonGroup.Multi.NewDiscussion",{position:"relative",maxWidth:Z(100),boxSizing:"border-box",".Button.Primary":{maxWidth:Z(100),width:Z(100),...E.padding({horizontal:t.sizing.height})},".Button.Handle":{...ki.middleRightOfParent(),width:w(t.sizing.height),maxWidth:w(t.sizing.height),minWidth:w(t.sizing.height),height:w(t.sizing.height),padding:0,display:"flex",alignItems:"center",justifyContent:"center",border:je(0),borderTopLeftRadius:je(0),borderBottomLeftRadius:je(0)},".Button.Handle .SpDropdownHandle::before":{padding:je(0)}}),Q(".ButtonGroup.Multi > .Button:first-child",{borderTopLeftRadius:w(r)}),Ft(".Button",ye.STANDARD),Ft(".DataList .Item-Col .Options .OptionsLink",ye.STANDARD),Ft(".MessageList .Item-Col .Options .OptionsLink",ye.STANDARD),Ft(".PrevNextPager .Previous",ye.STANDARD),Ft(".PrevNextPager .Next",ye.STANDARD),Ft("div.Popup .Button.change-picture-new",ye.STANDARD),Ft("div.Popup .Button.change-picture-remove",ye.STANDARD),Ft("body.Section-BestOf .FilterMenu a",ye.STANDARD),Ft(".group-members-filter-box .Button",ye.STANDARD),Ft("body.Section-Profile .ProfileOptions .Button-EditProfile",ye.STANDARD),Ft("body.Section-Profile .ProfileOptions .MemberButtons",ye.STANDARD),Ft("body.Section-Profile .ProfileOptions .ProfileButtons-BackToProfile",ye.STANDARD),Ft(".Button.Close",ye.STANDARD),Ft(".viewPollResults",ye.STANDARD),Ft(".FormWrapper .Buttons .Button.Cancel",ye.STANDARD),Ft(".FormWrapper .Buttons .Button.DraftButton",ye.STANDARD),Ft(".FormWrapper .Buttons .Button.PreviewButton",ye.STANDARD),Q(".Panel-main .ApplyButton",{width:"auto"}),Q(".AdvancedSearch .InputAndButton .bwrap.bwrap",{...ki.topRight()}),Q(".AdvancedSearch .InputAndButton .bwrap .Button",{minWidth:"auto",borderTopLeftRadius:je(0),borderBottomLeftRadius:je(0)}),Q(".AdvancedSearch .InputAndButton .bwrap .Button .Sprite.SpSearch",{width:"auto",height:"auto"})},Ft=(e,t=ye.STANDARD)=>{const n=gv();e=wg(e),t===ye.PRIMARY?Zt({[e]:E.button(n.primary)}):t===ye.STANDARD?Zt({[e]:E.button(n.standard)}):t===ye.ICON_COMPACT&&Q(e,ms().iconMixin(Gi().sizing.compactHeight))},qr=(e,t,n)=>{const r=E.clickable.itemState(t,n);Zt({[e]:{...r}})},JH=re(()=>{const e=ee(),t=qe("breadcrumbs"),n=t("sizing",{minHeight:16}),r=t("link",{font:ce.font({...e.fontSizeAndWeightVars("small"),color:ra(e.links.colors.default),lineHeight:e.lineHeights.condensed,transform:"uppercase",textDecoration:e.links.linkDecorationType===ch.ALWAYS?"underline":"none"})}),o=t("separator",{spacing:eo(.2),font:ce.font({})});return{sizing:n,link:r,separator:o}}),u1e=re(()=>{const e=ee(),t=JH(),n=Tt("breadcrumbs"),r=E.clickable.itemState(),o=n("link",{...yE(),display:"inline-flex",...E.font(t.link.font),...r}),a=n({display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap","& + div":{...E.margin({top:e.spacer.pageComponentCompact})}}),i=n("crumb",{...yE(),display:"inline-flex",...E.font({...e.fontSizeAndWeightVars("small"),lineHeight:e.lineHeights.condensed}),overflow:"hidden"}),s=n("list",{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",minHeight:w(t.sizing.minHeight)}),l=n("separator",{...zn(),marginTop:0,marginBottom:0,marginLeft:t.separator.spacing,marginRight:t.separator.spacing,...E.font(t.separator.font)}),c=n("separatorIcon",{display:"inline-flex",justifyContent:"center",alignItems:"center",fontFamily:"arial, sans-serif !important",width:"1ex",opacity:.5,position:"relative",color:"inherit"}),d=n("breadcrumb",{display:"inline-flex",lineHeight:1,minHeight:w(t.sizing.minHeight)}),f=n("current",{color:"inherit",opacity:1});return{root:a,list:s,separator:l,separatorIcon:c,breadcrumb:d,link:o,current:f,crumb:i}}),d1e=""+new URL("widgetDefaultIcon-C3W-DE0s.svg",import.meta.url).href;var un;(function(e){e.TITLE="title",e.TITLE_DESCRIPTION="title-description",e.TITLE_DESCRIPTION_IMAGE="title-description-image",e.TITLE_DESCRIPTION_ICON="title-description-icon",e.TITLE_BACKGROUND="title-background",e.TITLE_BACKGROUND_DESCRIPTION="title-background-description",e.TITLE_CHAT_BUBBLE="title-chat-bubble"})(un||(un={}));const La=re((e,t)=>{var C,D,A;const n=qe("homeWidgetItem",t,[new Rs({"icon.border":"options.iconProps.border","icon.background":"options.iconProps.background","icon.backgroundState.color":"iconContainer.hoverBackgroundColor","icon.padding":"iconContainer.padding","icon.border.radius":"iconContainer.borderRadius","icon.size":"options.iconProps.size","options.imagePlacement":"options.iconProps.placement","options.box.background":"options.background","options.box.borderType":"options.borderType","options.box.border.radius":"options.borderRadius","options.box.spacing":"spacing.contentPadding","name.font":"options.name.font"})]),r=ee(t);Ht(t);let o=n("options",{box:ce.box({borderType:dt.NONE,border:r.border}),contentType:"title-description-icon",display:{name:!0,description:!0,counts:!0,cta:!0},fg:r.mainColors.fg,verticalAlignment:"middle",alignment:"left",viewMore:{buttonType:ye.TRANSPARENT,labelCode:"View More"},defaultIconUrl:d1e,defaultImageUrl:void 0,imagePlacement:"top",imagePlacementMobile:"top",callToActionText:"Read More",iconProps:{placement:void 0,background:ce.background({}),border:ce.border({}),size:void 0}},e);const a=o.contentType==="title-description-image",i=["title-background","title-background-description"].includes(o.contentType),s=o.contentType==="title-description-icon",l=o.contentType==="title-chat-bubble";o=n("options",{...o,imagePlacement:((C=o.iconProps)==null?void 0:C.placement)??o.imagePlacement,imagePlacementMobile:((D=o.iconProps)==null?void 0:D.placement)??o.imagePlacementMobile,fg:r.getFgForBg(o.box.background.color),box:{...o.box,borderType:(A=o.box.background)!=null&&A.color||a||i||s||l?dt.SHADOW:o.box.borderType},alignment:s||i?"center":"left"},e);const c=ce.boxHasOutline(o.box);o=n("options",{...o,box:{...o.box,spacing:ce.spacing({all:c||l?l?24:16:void 0})}},e);const d=n("sizing",{minWidth:180}),f=n("icon",{background:ce.background(o.iconProps.background??{}),size:72}),h=n("icon",{...f,padding:16,size:o.iconProps.size??(o.imagePlacement==="left"?48:f.size),sizeMobile:o.iconProps.size??(o.imagePlacementMobile==="left"?48:f.size),border:ce.border({radius:o.iconProps.border.radius??r.border.radius,width:o.iconProps.border.width??0}),backgroundState:ce.background({color:f.background.color?P.modifyColorBasedOnLightness({color:f.background.color,weight:.1}):void 0})});let m=n("background",{fg:{color:r.elementaryColors.white},bg:ce.background({}),scrim:ce.background({})});const g=m.fg.color.lightness()>=.5;m=n("background",{...m,scrim:{...m.scrim,color:g?r.elementaryColors.black.fade(.3):r.elementaryColors.white.fade(.3)}});const p=n("name",{font:ce.font({...r.fontSizeAndWeightVars("large","semiBold"),color:o.fg,textDecoration:"none"}),fontState:ce.font({color:!c||l?r.mainColors.statePrimary:void 0}),afterContent:l?"triangle":"none",spacing:ce.spacing({})}),v=n("callToAction",{padding:{...o.box.spacing,top:16},font:ce.font({...p.font,...r.fontSizeAndWeightVars("small","semiBold"),transform:"uppercase"}),fontState:ce.font({...p.fontState,...r.fontSizeAndWeightVars("small","semiBold"),transform:"uppercase"})}),b=n("description",{spacing:ce.spacing({...l?o.box.spacing:{},top:0,bottom:0}),font:ce.font({color:o.fg,lineHeight:r.lineHeights.base})}),y=n("image",{ratio:{height:i?16:9,width:16},maxHeight:i?400:250});return{options:o,sizing:d,name:p,callToAction:v,description:b,image:y,icon:h,background:m}}),Gc=re(e=>{const t=La(e),n=ee(),r=Tt("homeWidgetItem"),o=Ht().mediaQueries().oneColumnDown,a=t.options.imagePlacement==="left",i=t.options.imagePlacementMobile==="left",s=ce.boxHasOutline(t.options.box),l=t.options.box.borderType===dt.SEPARATOR,c=t.options.contentType==="title-chat-bubble",d=t.name.afterContent==="triangle"?{...(()=>{switch(t.options.box.borderType){case dt.SHADOW:return Un().embedTooltip();case dt.BORDER:}})(),...E.background({color:t.options.box.background.color??n.mainColors.bg}),content:"''",width:20,height:20,position:"absolute",top:"calc(100% - 10px)",transform:"rotate(135deg)",left:30,display:"block !important"}:{},f=r({"--content-type":t.options.contentType,height:Z(100),color:P.colorOut(t.options.fg),overflow:c?"visible":"hidden",minWidth:w(t.sizing.minWidth),display:"flex",flexDirection:"column"},!c&&E.box(t.options.box,{noPaddings:!0,interactiveOutline:!0}),l&&{"& + :before":{borderTop:"none"}}),h=r("name",{...E.padding(t.name.spacing),...E.font(t.name.font)},c?{...E.box(t.options.box),marginBottom:30,position:"relative","&:after":c?d:void 0}:{[Mp(`.${f}`,"&")]:E.font(t.name.fontState)}),m={alignItems:t.options.display.description?"flex-start":"center",flexDirection:"row"},g=r("backgroundContainer",{position:"relative",...E.background(t.background.bg),flex:"0 1 auto",display:"flex",flexDirection:"column",minHeight:"80px"},a&&m,i&&o(m)),p=r("backgroundScrim",{...E.absolute.fullSizeOfParent(),...E.background(t.background.scrim)}),v={"&&":{textAlign:a?"start":t.options.alignment}},b=r("content",{flex:1,display:"flex",flexDirection:"column"},!c&&E.box(t.options.box,{onlyPaddings:!0}),v),y=r("absoluteContent",{...E.absolute.fullSizeOfParent(),...t.options.alignment==="left"?wo().middleLeft():wo().middle(),flexDirection:"column",...E.box(t.options.box,{onlyPaddings:!0}),paddingTop:16,paddingBottom:16,justifyContent:(()=>{switch(t.options.verticalAlignment){case"top":return"flex-start";case"bottom":return"flex-end";default:return"center"}})()},v),C=r("absoluteName",{...E.font(t.name.font),color:P.colorOut(t.background.fg.color),marginBottom:16,textAlign:t.options.alignment}),D=Z(t.image.ratio.height/t.image.ratio.width*100),A={height:"100%"},T=r("imageContainer",{background:P.colorOut(n.mixPrimaryAndBg(.08)),width:Z(100),paddingTop:D,position:"relative"},a&&A,i&&o(A)),B=t.options.box.spacing,j={maxWidth:200,height:120,flexBasis:"33%",alignSelf:"stretch",minHeight:"100%",[`& + .${b}`]:{paddingLeft:B.left??B.horizontal??B.all??16,paddingTop:s?void 0:0}},R=r("imageContainerWrapper",{maxHeight:w(t.image.maxHeight),overflow:"hidden"},!s&&!a&&{[`& + .${b}`]:{paddingTop:B.top??B.vertical??B.all??16}},a&&j,i&&o(j)),N=r("image",{...E.absolute.fullSizeOfParent(),objectFit:"cover",objectPosition:"center center"}),_=S({...E.absolute.fullSizeOfParent()},"label:HomeWidgetItem-styles-defaultImageSVG"),U=r("iconContainer",{display:"flex",justifyContent:t.options.alignment==="left"?"left":"center",padding:t.icon.padding,...E.padding(!s&&a?{top:0,left:0,bottom:0}:{}),[`& + .${b}`]:{paddingTop:a?void 0:0,paddingLeft:a?0:void 0}},o({[`& + .${b}`]:{paddingTop:i?void 0:0,paddingLeft:i?0:void 0}})),V=!!t.icon.background.color,z=t.icon.size+(V?t.icon.padding*2:0),Y=r("iconWrap",{height:z,padding:V?t.icon.padding:0,...E.background(t.icon.background),...E.border(t.icon.border),[Mp(`.${f}`,"&")]:{...E.background(t.icon.backgroundState)},overflow:"hidden"}),te=r("icon",{height:t.icon.size,maxHeight:t.icon.size},o({height:t.icon.sizeMobile,maxHeight:t.icon.sizeMobile})),se=S({"&&":{position:"relative",paddingTop:4}},v,["title-background","title-background-description"].includes(t.options.contentType)&&{"&&":{...E.box(t.options.box,{onlyPaddings:!0}),paddingTop:4,paddingBottom:4,textAlign:"start",flex:1,display:"flex",alignItems:"center"}},"label:HomeWidgetItem-styles-metas"),he=S({maxHeight:"none"},"label:HomeWidgetItem-styles-longMetaItem"),pe=S({whiteSpace:"normal"},"label:HomeWidgetItem-styles-metaDescription"),K=r("callToAction",{display:"flex",alignItems:"center",...E.padding({...t.callToAction.padding}),...E.font(t.callToAction.font),"& svg":{marginLeft:10},[Mp(`.${f}`,"&")]:E.font(t.callToAction.fontState)}),O=r("description",{marginTop:n.gutter.half,...E.padding(t.description.spacing),...E.font(t.description.font)});return{root:f,name:h,callToAction:K,absoluteName:C,metas:se,longMetaItem:he,metaDescription:pe,content:b,backgroundScrim:p,backgroundContainer:g,absoluteContent:y,imageContainer:T,imageContainerWrapper:R,image:N,defaultImageSVG:_,description:O,icon:te,iconWrap:Y,iconContainer:U}}),e9=re((e,t,n,r)=>{const o=ee(),a=Qh(),i=La(),s=e||r,l=S({".tabContent &":{marginTop:12}},"label:ListItem-styles-listInTab"),c=S({flex:1,display:"flex",alignItems:"flex-start",...s&&(t||n)&&{flexDirection:"column",alignItems:"stretch",padding:0},...e&&!r&&!t&&{...E.box(i.options.box,{onlyPaddings:!0})}},"label:ListItem-styles-item"),d=S({alignItems:"center"},"label:ListItem-styles-itemCentered"),f=S({marginRight:"8px",...s&&{display:"flex",alignItems:"center"}},"label:ListItem-styles-checkboxContainer"),h=S({display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,color:P.colorOut(o.mainColors.fg),...(t||s)&&{...E.padding({horizontal:8,vertical:s?8:0})},...s&&!t&&{...E.padding({vertical:0})},...e&&!r&&!t&&{height:"100%"}},"label:ListItem-styles-contentContainer"),m=S({display:"flex",alignItems:"center",maxHeight:20},"label:ListItem-styles-actionsContainer"),g=S({display:"flex",alignItems:"center",justifyContent:"space-between",...t&&{...E.padding({horizontal:8,vertical:8})},...s&&{...E.margin({bottom:o.gutter.quarter})}},"label:ListItem-styles-tileActions"),p=S({display:"flex"},"label:ListItem-styles-iconAndCheckbox"),v=S({position:"relative",display:"flex",alignItems:"center",...!t&&{marginRight:s?8:16,marginInlineEnd:s?8:16},...!s&&t&&{position:"absolute",width:"fit-content",top:-10,bottom:-10,right:0,flexDirection:"column",alignItems:"center",justifyContent:"space-between"}},"label:ListItem-styles-iconContainer"),b=S({display:"flex",alignItems:"center",justifyContent:"center",...!s&&t&&{order:1}},"label:ListItem-styles-icon"),y=S({...E.margin({left:-10}),...!s&&{position:"initial",left:"initial",bottom:"initial",margin:0},...!t&&{position:"absolute",top:30,left:-5,margin:0},...s&&n&&{position:"initial",margin:-10}},"label:ListItem-styles-secondIcon"),C=S({},"label:ListItem-styles-secondIconInList"),D=S({display:"flex",alignItems:"flex-start"},"label:ListItem-styles-titleContainer"),A=S({flex:1,...E.font(a.title.font),margin:0,marginBottom:0},"label:ListItem-styles-title"),T=S(t9(),"label:ListItem-styles-titleLink"),B=E.margin({horizontal:8}),j=S({},"label:ListItem-styles-mobileMediaContainer"),R=S({...s?{aspectRation:"9/6"}:{width:160,...E.padding({right:16})},position:"relative","& > div:first-child":{borderRadius:s?0:8,overflow:"hidden",position:"relative"}},"label:ListItem-styles-mediaWrapContainer"),N=S({borderRadius:s?0:8,overflow:"hidden",position:"relative"},"label:ListItem-styles-mediaContainer"),_=S({},"label:ListItem-styles-mediaIconContainer"),U=S({...s&&{marginTop:"auto"}},"label:ListItem-styles-metasContainer"),V=S({...E.font(a.description.font),marginBottom:0,[`.${U} + &`]:{marginTop:4},[`& + .${U}`]:{marginTop:8,...s&&{marginTop:"auto"}},...s&&{marginBottom:8,lineHeight:"21px"}},"label:ListItem-styles-description"),z=S({display:"flex",flexWrap:"wrap",flexDirection:"row-reverse",...kr(8),...s&&{flexGrow:1}},"label:ListItem-styles-metaWrapContainer"),Y=S({...B,flexGrow:1,flexBasis:"300px",marginTop:4,...s&&{display:"flex",flexDirection:"column"}},"label:ListItem-styles-metaDescriptionContainer"),te=Tn(),se=Math.round(te.height+Wn(te.spacing.vertical)*2),he=S({...E.margin({right:Wn(te.spacing.horizontal)*2}),"& > *:first-child":{position:"relative",...E.margin({top:`calc((${se}px - 100%)/2)`,right:0})}},"label:ListItem-styles-inlineIconContainer"),pe=S({display:"flex",alignItems:"center",...E.margin({top:18})},"label:ListItem-styles-inlineIconAndMetasContainer"),K=S({"& > *:first-child":{...E.padding({right:20}),"& > *:last-child":{left:35,top:10}}},"label:ListItem-styles-twoIconsInMetas");return{listInTab:l,item:c,itemCentered:d,checkboxContainer:f,contentContainer:h,actionsContainer:m,tileActions:g,iconAndCheckbox:p,iconContainer:v,icon:b,secondIcon:y,secondIconInList:C,titleContainer:D,title:A,titleLink:T,mobileMediaContainer:j,mediaWrapContainer:R,mediaContainer:N,mediaIconContainer:_,description:V,metasContainer:U,metaWrapContainer:z,metaDescriptionContainer:Y,inlineIconContainer:he,inlineIconAndMetasContainer:pe,twoIconsInMetas:K}});function t9(){const e=Qh();return{...E.font(e.title.font),"&:hover, &:focus, &:active":{...E.font(e.title.fontState)}}}const f1e=()=>{const e=ee(),t=JH();qr(".Navigation-linkContainer a"),qr(".Panel .Leaderboard a"),qr(".FieldInfo a"),qr("div.Popup .Body a"),qr(".selectBox-toggle"),qr(".followButton"),qr(".Back a"),qr(".OptionsLink-Clipboard"),qr("a.OptionsLink"),qr("a.MoreWrap, .MoreWrap a, .MorePager a, .more.More, .MoreWrap a.more.More"),qr("body.Section-BestOf .Tile .Message a"),qr(`
        .DataList .IdeationTag,
        .DataList .MItem.RoleTracker,
        .MessageList .IdeationTag,
        .MessageList .tag-tracker,
        .DataTableWrap .IdeationTag,
        .DataTableWrap .tag-tracker,
        .DataTableWrap .MItem.RoleTracker
        `),qr(`
        .userContent a,
        .UserContent a
    `),qr(".BreadcrumbsBox .Breadcrumbs a",{default:e.links.colors.default}),qr("body.Section-Entry label.RadioLabel a, body.Section-Entry label.CheckBoxLabel a"),Ro(".ItemContent a"),Ro(`
        .Content .DataList .DiscussionMeta a,
        .Content .DataList .CommentMeta a,
        .Content .DataList-Search a,
        .Content .Breadcrumbs a,
        .Content .MessageList .DiscussionMeta a,
        .Content .MessageList .CommentMeta a,
        .Content .Container .Frame-contentWrap .ChildCategories a,
        .Content .Item.Application .Meta a,
        .Content .Meta.Group-Meta.Group-Info a
    `),Zt({"\n            .DataList .Item .Title a,\n            .DateList Item h3 a,\n            .DataList .Item a.Title,\n            .DataTable .Title.Title a,\n            .DataTable h3 a,\n            .DataTable h2 a,\n            .DataTable.DiscussionsTable a.Title\n        ":t9()}),Ro(".MenuItems a"),Ro(".DataTable .Title.Title a"),Ro(".Timebased.EndTime a"),Ro(".FilterMenu a"),Ro(".Box.SideMenu .PanelInfo li a"),Ro(".DataList#search-results .Breadcrumbs a"),Ro(".Container a.UserLink"),Ro(".DataTable a.CommentDate"),Ro(".DataTable .Meta .MItem"),Ro(".Panel .InThisConversation a"),Ro(".Panel .PanelInThisDiscussion a"),Ro(".ShowTags a"),Zt({".Panel.Panel-main .PanelInfo.PanelInThisDiscussion .Aside":{paddingLeft:0,paddingRight:"1ex",display:"inline"}}),Zt({".Panel.Panel-main .PanelInfo.PanelInThisDiscussion .Username":{fontWeight:e.fonts.weights.semiBold}}),Zt({".BreadcrumbsBox .Breadcrumbs a":{marginRight:"0.5ex",color:P.colorOut(t.link.font.color),...E.font(t.link.font)}}),Zt({".BreadcrumbsBox  .Crumb":{marginLeft:t.separator.spacing,marginRight:t.separator.spacing,...E.font(t.separator.font)}})},Ro=e=>{const t=ee();qr(e,{default:t.mainColors.fg,textDecoration:"none"})},h1e=()=>{m1e();const e=ee(),t=Tn(),n=ti(),r=Kt(),o=e.mainColors,a=P.colorOut(o.fg),i=P.colorOut(o.bg),s=P.colorOut(o.primary);Q(`
        .Container ul.token-input-list.token-input-focused,
        .AdvancedSearch .InputBox:focus`,{borderColor:s}),Q(`
        input[type= "text"],
        textarea,
        input.InputBox,
        .file-upload-choose,
        .AdvancedSearch .InputBox,
        .AdvancedSearch select,
        select,
        div.token-input-dropdown.token-input-dropdown,
    `,{color:a,backgroundColor:i,...E.border(e.borderType.formElements.default)}),Q(`
        #token-input-Form_tags,

        input.SmallInput:focus,
        input.InputBox:focus,
        .file-upload-choose:focus,
        textarea:focus
        `,{background:i,color:a}),Q("div.token-input-dropdown",{...E.border(e.borderType.dropDowns),transform:Qf(w(e.border.width))}),Q(".token-input-input-token input",{...eO(n.sizing.height,n.font.size,r.border.width*2),border:je(0),paddingTop:je(0),paddingBottom:je(0)}),di('input[type= "text"]'),di("textarea"),di("input.InputBox"),di(".file-upload-choose"),di(".InputBox"),di(".InputBox.BigInput"),di("ul.token-input-list, div.Popup .Body ul.token-input-list"),di(`
        .Container input[type= "text"],
        .Container textarea,
        .Container input.InputBox,
        .Container .AdvancedSearch .InputBox,
        .Container .AdvancedSearch select,
        .Container select
        `),di(".Container ul.token-input-list",".Container ul.token-input-list.token-input-focused"),di(".input:-internal-autofill-selected",!1,!0),di(".AdvancedSearch .InputBox",!1,!1),Q(".InputBox.InputBox.InputBox",xa()),Q(".richEditor-frame.InputBox.InputBox.InputBox ",{padding:0}),Q("select",{"&:hover, &:focus, &.focus-visible, &:active":{borderColor:je(P.colorOut(e.mainColors.primary))}}),Q("form .SelectWrapper:after",{color:"inherit"}),Q("form .SelectWrapper, .AdvancedSearch .Handle.Handle ",{color:P.colorOut(n.colors.fg)}),Q("form .SelectWrapper",{"& select":{cursor:"pointer"},"&:hover, &:focus, &.focus-visible, &:active":{color:P.colorOut(e.mainColors.primary)}}),Q(".AdvancedSearch .Handle.Handle .Arrow::after",{color:"inherit"});const l=i1(r.sizing.height,e.fonts.size.small,r.border.width*2),c=mW(r.sizing.height,e.fonts.size.small,r.border.width*2),d=r.sizing.height-l*2-r.border.width*2;Q(".Container ul.token-input-list",{minHeight:w(r.sizing.height),paddingRight:je(0),paddingBottom:je(0)}),Q("ul.token-input-list li input",{boxSizing:"border-box",height:w(d),paddingTop:je(0),paddingBottom:je(0),paddingLeft:je(0),minHeight:je("initial"),maxWidth:it(`100% - ${w(c)}`),lineHeight:je(1),borderRadius:je(0),background:je("transparent"),border:je(0)}),Q("li.token-input-token.token-input-token",{margin:0,...E.padding({all:w(t.spacing.horizontal)}),marginBottom:w(l),lineHeight:w(t.font.lineHeight),minHeight:w(d),...E.border({...e.borderType.formElements.default,color:t.font.color}),display:"inline-flex",alignItems:"center",justifyContent:"space-between",marginRight:je(w(c))}),Q("li.token-input-token.token-input-token p",{...E.font({...t.font,color:P.colorOut(e.mainColors.fg)})}),Q("li.token-input-token span.token-input-delete-token",{"&:hover, &:focus, &.focus-visible, &:active":{color:P.colorOut(e.mainColors.primary)}}),Q(".Checkboxes.Inline",{display:"flex",flexWrap:"wrap",width:it(`100% + ${w(t.spacing.horizontal*2)}`),marginLeft:w(ca(t.spacing.horizontal)),marginTop:w(t.spacing.horizontal),".CheckBoxLabel":{cursor:"pointer",...E.margin({all:0,right:w(t.spacing.horizontal),bottom:w(t.spacing.horizontal)})}}),Q("#Form_date",{marginRight:w(e.gutter.half)}),Q(".FormWrapper label",{...E.font({...e.fontSizeAndWeightVars("medium"),color:P.colorOut(e.mainColors.fg)})}),Q(".js-datetime-picker",{display:"flex",flexWrap:"wrap",width:it(`100% + ${w(t.spacing.horizontal*2)}`),...E.margin({left:ca(t.spacing.horizontal),right:t.spacing.horizontal})}),Q(".EventTime",{display:"flex",flexWrap:"nowrap"}),Q(".InputBox.DatePicker",{flexGrow:1,minWidth:w(200),maxWidth:Z(100),...E.margin({all:t.spacing.horizontal})});const f=8;Q(".StructuredForm .P",{...E.margin({vertical:e.gutter.size,horizontal:0})}),Q(".EventTime",{...E.margin({left:Ta(f)}),width:it(`100% + ${w(f*2)}`)}),Q(".EventTime .From, .EventTime .To",{position:"relative",boxSizing:"border-box",width:it(`50% - ${w(f*2)}`),...E.margin({top:0,horizontal:f})}),Q(".Event.add .DatePicker, .Event.edit .DatePicker",{paddingRight:w(36),...E.margin({horizontal:0,vertical:f})}),Q(".EventTime.Times .Timebased.EndTime",{...E.margin({top:f,bottom:0,horizontal:0})}),Ro(".EventTime.Times .Timebased.NoEndTime a"),Q(".EventTime.Times .Timebased.NoEndTime a",{color:P.colorOut(e.mainColors.fg),fontSize:w(20),cursor:"pointer"}),Q(".js-datetime-picker",{margin:0,width:Z(100)}),Q(".InputBox.InputBox.InputBox.TimePicker",{flexGrow:1,width:Z(100),...E.margin({all:0})}),Q(".EventTime.Times.Both .Timebased.NoEndTime",{...ki.topRight(0,6)}),Q(".StructuredForm input.hasDatepicker, .StructuredForm input.hasDatepicker:focus",{backgroundPosition:"99% 50%",backgroundPositionX:it(`100% - ${w(5)}`)})};function m1e(){document.querySelectorAll("select").forEach(t=>{var r;const n=document.createElement("div");n.classList.add("SelectWrapper"),(r=t.parentElement)==null||r.insertBefore(n,t),n.appendChild(t)})}const di=(e,t,n=!1)=>{const r=ee(),o=ti();e=wg(e);const a=Kt(),i=P.colorOut(r.mainColors.primary);let s={};t&&(s={[t]:{borderColor:n?je(i):i}}),Q(e,{...eO(o.sizing.height,o.font.size,a.border.width*2),borderColor:P.colorOut(r.border.color),borderStyle:n?je(r.border.style):r.border.style,borderWidth:n?je(w(r.border.width)):w(r.border.width),borderRadius:n?je(w(r.border.radius)):w(r.border.radius),backgroundColor:n?je(P.colorOut(r.mainColors.bg)):P.colorOut(r.mainColors.bg),color:n?je(P.colorOut(r.mainColors.fg)):P.colorOut(r.mainColors.fg)}),Q(e,{"&:active":{borderColor:n?je(i):i},"&:hover":{borderColor:n?je(i):i},"&:focus":{borderColor:n?je(i):i},"&.focus-visible":{borderColor:n?je(i):i},"&.token-input-highlighted-token":{borderColor:n?je(i):i},...s}),Q("ul.token-input-list, div.Popup .Body ul.token-input-list",{paddingBottom:hr(0),paddingRight:hr(0),minHeight:w(a.sizing.height)}),Q(".TextBoxWrapper li.token-input-token.token-input-token",{marginBottom:hr(a.spacing.verticalPadding-a.border.width),marginRight:hr(a.spacing.horizontalPadding-2*a.border.width)}),Q("li.token-input-token span",{color:P.colorOut(r.mainColors.fg)}),Q("ul.token-input-list li input",{marginBottom:hr(4)})},p1e=()=>{const e=ee(),t=w1(),n=e.mainColors;P.colorOut(n.fg);const r=P.colorOut(n.bg);du(".MenuItems .Item a"),du(".MenuItems.MenuItems li a"),du(".Flyout.Flyout li a"),du(".editor-action.editor-action.editor-action a"),du("div.token-input-dropdown ul li",{hover:".token-input-selected-dropdown-item"}),du("div.token-input-dropdown ul li.token-input-dropdown-item"),du("div.token-input-dropdown ul li.token-input-dropdown-item2"),Q(`
        .Flyout.Flyout,
        .richEditorFlyout,
        .MenuItems
        `,{background:r,...E.font({...e.fontSizeAndWeightVars("medium")})}),Q(".selectBox-item .dropdown-menu-link.selectBox-link",{...E.padding({left:hr(26),right:hr(38)})}),Q(".selectBox-item.isActive .dropdown-menu-link.selectBox-link",{backgroundColor:P.colorOut(e.states.active.highlight),".dropdown-menu-link.selectBox-link":{cursor:"pointer"}}),Q(".selectBox-selectedIcon",{left:"auto",right:w(13),color:P.colorOut(e.mainColors.primaryContrast)}),Q(`
        .MenuItems hr,
        .MenuItems .menu-separator,
        .MenuItems .dd-separator,
        .MenuItems .editor-action-separator,
        .Flyout.Flyout hr,
        .Flyout.Flyout .menu-separator,
        .Flyout.Flyout .dd-separator,
        .Flyout.Flyout .editor-action-separator
        `,{borderBottomColor:P.colorOut(e.separator.color)}),Q(".MenuItems, .Flyout.Flyout",{...E.border(e.borderType.dropDowns),...ld(t.contents.bg,E.border(t.contents.border),Un().dropDown()),overflow:"hidden"})};function du(e,t){e=wg(e);const n=U8(t);Q(e,n)}const g1e=()=>{const e=ee(),t=e.mainColors,n=P.colorOut(t.primary);qr(`
        .Pager > span,
        .Pager > a,
    `,{},{default:{...zn()},allStates:{...zn(),backgroundColor:P.colorOut(t.fg.fade(.05))}}),qr(`
        .Pager > a.Highlight
    `,{default:n,allStates:n},{default:{backgroundColor:P.colorOut(e.mixBgAndFg(.1)),cursor:"pointer",...zn()},allStates:{backgroundColor:P.colorOut(e.mixBgAndFg(.1)),...zn()}}),Q(".Pager > a, .Pager > a.Highlight",{textDecoration:"none"}),Q(".Pager .Next",{borderTopRightRadius:e.border.radius,borderBottomRightRadius:e.border.radius}),Q(".Pager .Previous",{borderBottomLeftRadius:e.border.radius,borderTopLeftRadius:e.border.radius}),Q(".Pager span",{cursor:je("default"),backgroundColor:P.colorOut(t.bg,{makeImportant:!0}),color:P.colorOut(e.links.colors.default,{makeImportant:!0}),opacity:.5,textDecoration:"none"}),Q(".Content .PageControls",{display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between",marginBottom:0,"& > *":{marginBottom:e.spacer.headingBox}}),Q(".Pager ~ .PageControls-filters",{marginTop:16,width:"100%"}),Q(".MorePager",{textAlign:"right","& a":{color:P.colorOut(t.primary)}}),Q(".PageControls-filters.PageControls-filters",{flex:"auto",width:"100%",display:"inline-flex",alignItems:"baseline",...kr(8),"& > *":{...E.margin({horizontal:8})}}),Q(".PageControls.PageControls .selectBox",{height:"auto"}),Q(".Pager.NumberedPager > a.Highlight",{color:P.colorOut(P.isLightColor(t.fg)?t.fg.fade(.85):t.fg),pointerEvents:"none",backgroundColor:P.colorOut(P.modifyColorBasedOnLightness({color:t.bg,weight:.05}))}),Zt({".Pager.NumberedPager .Pager-p.FirstPage":{"@media(max-width: 500px)":{display:"flex"}}})},n9=re(()=>{const e=ee(),t=qe("panelList"),n=t("title",{fontSize:e.fonts.size.large}),r=t("offset",{default:12}),o=t("link",{fontSize:e.fonts.size.medium,hover:{color:e.links.colors.default},focus:{color:e.links.colors.focus}});return{title:n,offset:r,link:o}}),lmt=re(e=>{const t=ee(),n=n9(),r=Tt("panelList"),o=r({position:"relative",display:"block"}),a=r("title",{fontSize:w(n.title.fontSize),marginBottom:w(n.offset.default)}),i=r("item",{"& + &":{marginTop:w(n.offset.default)}}),s=r("link",{display:"block",position:"relative",width:Z(100),fontSize:w(n.link.fontSize),color:"inherit",...vv({allStates:{textDecoration:"none"},hover:{color:P.colorOut(t.links.colors.hover)},focus:{color:P.colorOut(t.links.colors.focus)}})}),l=r("items",{});return{root:o+" panelList",title:a,item:i,link:s,items:l}}),dB=re(()=>{const e=qe("forumFonts"),t=ee(),n=e("fonts",{sizes:{title:t.fonts.size.large,base:t.fonts.size.medium}}),r=R1(),o=e("panelLink",{padding:{all:r.node.padding+r.node.borderWidth},spacer:{default:n9().offset.default}}),a=e("panelTitle",{margins:ce.spacing({bottom:r.spacer.default})});return{fonts:n,panelLink:o,panelTitle:a}}),v1e=()=>{const e=ee(),t=dB();Q(`
        .Content .Title,
        .Content .Title a
    `,{...b1e()}),Q(`
        body.Section-EditProfile .Box .PanelCategories li.Heading,
        .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Heading,
        .BoxCategories.BoxCategories .PanelCategories li.Heading
    `,{...E.font({size:t.fonts.sizes.title,weight:e.fonts.weights.semiBold,lineHeight:e.lineHeights.condensed})}),Q(`
        body.Section-EditProfile .Box .PanelCategories li.Depth2 a,
        .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Depth2 a,
        .BoxCategories.BoxCategories .PanelCategories li.Depth2 a,
    `,{...E.font({size:t.fonts.sizes.base,weight:e.fonts.weights.semiBold,lineHeight:e.lineHeights.condensed})}),Q(`
        .Panel .Box a:not(.Button):not(.Tag),
        .Panel .BoxFilter a:not(.Button):not(.Tag),
        body.Section-EditProfile .Box .PanelCategories li.Depth3 a,
        body.Section-EditProfile .Box .PanelCategories li.Depth4 a,
        body.Section-EditProfile .Box .PanelCategories li.Depth5 a,
        .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Depth3 a,
        .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Depth4 a,
        .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Depth5 a,
        .BoxCategories.BoxCategories .PanelCategories li.Depth3 a,
        .BoxCategories.BoxCategories .PanelCategories li.Depth4 a,
        .BoxCategories.BoxCategories .PanelCategories li.Depth5 a
    `,{...E.font({size:t.fonts.sizes.base,weight:e.fonts.weights.normal,lineHeight:e.lineHeights.condensed})});for(let n=1;n<=12;n++){const r=w((n-1)*t.panelLink.spacer.default);Q(`
            body.Section-EditProfile .Box .PanelCategories li.Depth${n} a.ItemLink,
            .BoxFilter:not(.BoxBestOfFilter) .PanelCategories li.Depth${n} a.ItemLink,
            .BoxCategories.BoxCategories .PanelCategories li.Depth${n} a.ItemLink,
            .Panel.Panel-main .Box .Heading[aria-level='${n}'],
        `,{...E.font({...e.fontSizeAndWeightVars(w(n===1?"medium":"small")),color:P.colorOut(e.mainColors.fg)}),paddingLeft:r}),Q(`
            .Panel.Panel-main .Box .Heading.Heading[aria-level='${n}'],
        `,{...E.font({...n===1?e.fontSizeAndWeightVars("large"):e.fontSizeAndWeightVars("small")}),paddingLeft:r})}},b1e=()=>{const e=dB();return{...E.font({size:e.fonts.sizes.title}),textDecoration:"none"}},Td=re(()=>{const e=ee(),t=qe("forumLayout"),n=t("foundationalWidths",{fullGutter:e.constants.fullGutter,panelWidth:288,breakPoints:{oneColumn:1200,tablet:991,mobile:806,xs:576}}),r=()=>{const l=(C,D=!0)=>Yt({maxWidth:a.paddedWidth,minWidth:D?n.breakPoints.oneColumn+1:void 0},C),c=C=>l(C,!1),d=(C,D=!0)=>Yt({maxWidth:n.breakPoints.oneColumn,minWidth:D?n.breakPoints.tablet+1:void 0},C),f=C=>d(C,!1),h=(C,D=!0)=>Yt({maxWidth:n.breakPoints.tablet,minWidth:D?n.breakPoints.mobile+1:void 0},C),m=C=>h(C,!1),g=(C,D=!0)=>Yt({maxWidth:n.breakPoints.mobile,minWidth:D?n.breakPoints.xs+1:void 0},C);return{noBleed:l,noBleedDown:c,oneColumn:d,oneColumnDown:f,tablet:h,tabletDown:m,aboveMobile:C=>Yt({minWidth:n.breakPoints.mobile+1},C),mobile:g,mobileDown:C=>g(C,!1),aboveXs:C=>Yt({minWidth:n.breakPoints.xs+1},C),xs:C=>Yt({maxWidth:n.breakPoints.xs},C)}},o=t("gutter",{full:n.fullGutter,size:n.fullGutter/2,halfSize:n.fullGutter/4,quarterSize:n.fullGutter/8,mainGutterOffset:n.fullGutter}),a=t("panel",{width:n.panelWidth,paddedWidth:n.panelWidth+o.size}),i=t("main",{width:it(`100% - ${w(a.paddedWidth+o.mainGutterOffset)}`),topSpacing:40}),s=t("cell",{paddings:{horizontal:8,vertical:12}});return{gutter:o,panel:a,main:i,cell:s,mediaQueries:r}}),y1e=()=>{const e=ee(),t=Td(),n=t.mediaQueries();Zt({".Frame":{minHeight:"initial",flex:"1 0 auto"},".Frame-content":{...E.margin({vertical:e.spacer.mainLayout}),...n.oneColumnDown({...E.margin({vertical:e.spacer.pageComponentCompact})})},".Breadcrumbs":{marginBottom:24,padding:0}}),Q(".Container, body.Section-Event.NoPanel .Frame-content > .Container",n.mobileDown({...E.padding({horizontal:12})})),Q("body.Section-Event.NoPanel .Frame-content > .Container",Ty()),Q(".Frame-content .HomepageTitle",{...bl()}),Q(".Panel",{width:w(t.panel.paddedWidth),...E.padding({vertical:e.gutter.half})},n.oneColumnDown({width:Z(100)})),Q(".Content.MainContent",{width:w(t.main.width),...E.padding({vertical:e.gutter.half})},n.oneColumnDown({width:Z(100)})),Q(".Container",Ty(),O8()),Q(".Frame-row",{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",...E.padding({horizontal:e.gutter.half}),"& > *":{...E.padding({horizontal:e.gutter.half})},...n.oneColumnDown({flexWrap:je("wrap")}),...n.mobileDown({...E.padding({horizontal:0})})})},x1e=()=>{const e=ee(),t=Td();Q(".DataList .Item .Title",{marginBottom:w(4)}),Q(".ItemContent.Category",{position:"relative"}),Q(".categoryList-heading",{color:P.colorOut(e.mainColors.fg)}),Q(".CategoryGroup",{marginTop:w(e.gutter.size*2.5)}),Q(".Groups .DataTable.CategoryTable thead .CategoryName, .DataTable.CategoryTable thead .CategoryName",{paddingLeft:w(t.cell.paddings.horizontal)}),Q(".Groups .DataTable h2, .Groups .DataTable h3, .Groups .DataTable .Title.Title, .DataTable h2, .DataTable h3, .DataTable .Title.Title",{marginBottom:0}),Q(".CategoryNameHeading.isEmptyDescription + .CategoryDescription",{display:je("none")}),Q(".CategoryNameHeading.isEmptyDescription",{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start"}),Q("a.Bookmark",{backgroundImage:je("none"),color:je("transparent"),font:"0/0 a",height:"auto",textIndent:"0",width:"auto",verticalAlign:"top",overflow:"hidden",fontSize:hr(1),textDecoration:je("none")});const n=js();Q(".Groups .DataTable.CategoryTable tbody td.CategoryName .PhotoWrap, .DataTable.CategoryTable tbody td.CategoryName .PhotoWrap",{width:w(n.sizing.medium),height:w(n.sizing.medium)}),Q(".CategoryBox",{position:"relative"}),Q(".CategoryBox .H",{...E.font({...e.fontSizeAndWeightVars("largeTitle"),lineHeight:e.lineHeights.condensed})}),Q(".CategoryBox-Head",{position:"relative",display:"flex",flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-start",width:Z(100)}),Q(".CategoryBox-Head .H",{width:it(`100% - ${w(35)}`)}),Q(".CategoryBox-Head .OptionsMenu",{float:"none",transform:Qf("-50%"),...E.margin({horizontal:0,top:w(e.fonts.size.largeTitle*e.lineHeights.condensed/2),left:"auto"})}),Q(".Panel .Box.BoxCategories .PanelInfo.PanelCategories .Heading",{paddingLeft:0,paddingTop:w(18),...E.font({...e.fontSizeAndWeightVars("large","bold")})}),Q(".Panel .Box.BoxCategories .PanelInfo.PanelCategories .Heading .Count",{display:"none"}),Q(".Panel .Box.BoxCategories .PanelInfo.PanelCategories  Li.Depth1",{paddingTop:w(18)}),Q(".Panel .Box.BoxCategories .PanelInfo.PanelCategories  Li.Depth1 a.ItemLink",{...E.font({...e.fontSizeAndWeightVars("large","semiBold")})}),Q(".Panel .Box.BoxCategories .PanelInfo.PanelCategories li.Depth2 a.ItemLink",{fontWeight:e.fonts.weights.normal}),Q(".DataList .Item, .DataList .Empty",{width:Z(100)})},C1e=()=>{const e=ee();Q("body.Section-BestOf .Container .FilterMenu li.Active a",{color:P.colorOut(e.mainColors.fg),borderColor:P.colorOut(e.mainColors.fg)}),Q("body.Section-BestOf .Tile",{backgroundColor:P.colorOut(e.mainColors.bg),color:P.colorOut(e.mainColors.fg)}),Q("body.Section-BestOf .DataList .Title",{marginBottom:e.spacer.headingItem})},w1e=()=>{const e=ee();Q(`
        .idea-counter-module .idea-counter-box
        `,{backgroundColor:P.colorOut(e.mixBgAndFg(.1))}),Q(`
        .idea-counter-module .arrow::before,
        .idea-counter-module .arrow::after
    `,{borderColor:P.colorOut(e.mixBgAndFg(.75))}),Q(`
        .idea-counter-module .uservote .arrow::before,
        .idea-counter-module .uservote .arrow::after
    `,{borderColor:P.colorOut(e.mixPrimaryAndBg(.2))}),Q(".idea-counter-module .score",{color:P.colorOut(e.mainColors.fg)}),Q(".idea-counter-module",{float:"none",margin:0}),Q(`
        .DataList .ItemIdea.ItemIdea.ItemIdea .idea-counter-module .idea-counter-box,
        .DataList .ItemIdea.ItemIdea.ItemIdea .PhotoWrap.IndexPhoto,
        .MessageList .ItemIdea.ItemIdea.ItemIdea .idea-counter-module .idea-counter-box,
        .MessageList .ItemIdea.ItemIdea.ItemIdea .PhotoWrap.IndexPhoto
    `,{width:w(40),height:w(40)})},S1e=()=>{const e=ee(),t=Tn(),n=Td(),r=js().sizing,o=vW();Q(`
        .Groups .DataTable .LatestPostTitle,
        .Groups .DataTable .UserLink.BlockTitle,
        .Groups .DataTable .BigCount .Meta,
        .Groups .DataTable .Block.Wrap .Meta,
        .DataTable .LatestPostTitle,
        .DataTable .UserLink.BlockTitle,
        .DataTable .BigCount .Meta,
        .DataTable .Block.Wrap .Meta
        `,{width:it(`100% - ${w(r.medium+12)}`),marginTop:0}),Q(`
        .Groups .DataTable .UserLink.BlockTitle,
        .DataTable .UserLink.BlockTitle,
        `,{fontWeight:e.fonts.weights.normal}),Q(`
        .Groups .DataTable tbody td.LatestPost .PhotoWrap,
        .Groups .DataTable tbody td.LastUser .PhotoWrap,
        .Groups .DataTable tbody td.FirstUser .PhotoWrap,
        .DataTable tbody td.LatestPost .PhotoWrap,
        .DataTable tbody td.LastUser .PhotoWrap,
        .DataTable tbody td.FirstUser .PhotoWrap
    `,{...o.root,...E.absolute.topLeft(),top:12,left:6,width:w(r.medium),height:w(r.medium)}),Q(`
        .Groups .DataTable tbody td.LatestPost .PhotoWrap img,
        .Groups .DataTable tbody td.LastUser .PhotoWrap img,
        .Groups .DataTable tbody td.FirstUser .PhotoWrap img,
        .DataTable tbody td.LatestPost .PhotoWrap img,
        .DataTable tbody td.LastUser .PhotoWrap img,
        .DataTable tbody td.FirstUser .PhotoWrap img
    `,o.photo),Q(`
        .Groups .DataTable tbody td.LatestPost a,
        .Groups .DataTable tbody td.LastUser a,
        .Groups .DataTable tbody td.FirstUser a,
        .DataTable tbody td.LatestPost a,
        .DataTable tbody td.LastUser a,
        .DataTable tbody td.FirstUser a
        `,{color:P.colorOut(e.mainColors.fg),fontSize:w(t.font.size),textDecoration:je("none")}),Q(".Groups .DataTable .Item td, .DataTable .Item td",{borderBottom:wt(),padding:0}),Q(".Groups .DataTable .Item:first-child td, .DataTable .Item:first-child td",{borderTop:wt()}),Q(".Groups .DataTable td .Wrap, .DataTable td .Wrap",{...E.padding({vertical:n.cell.paddings.vertical,left:it(`${w(n.cell.paddings.horizontal)} / 2`),right:it(`${w(n.cell.paddings.horizontal)} / 2`)})}),Q(".Groups .DataTable .Excerpt, .Groups .DataTable .CategoryDescription, .DataTable .Excerpt, .DataTable .CategoryDescription",{...E.font({...e.fontSizeAndWeightVars("medium"),color:P.colorOut(e.mainColors.fg)})}),Q(".DataTable .DiscussionName .Title",{width:it(`100% - ${w(e.icon.sizes.default*2+e.gutter.quarter)}`)})},D1e=()=>{const e=ee(),t=Td(),n=Tn();Q(".DataList.DataList-Search .Item.Item-Search .Img.PhotoWrap",{top:w(t.cell.paddings.vertical),left:w(t.cell.paddings.horizontal)}),Q(`

         #search-results .MessageList a,
         #search-results .DataTableWrap a,
         #search-results .Container .Frame-contentWrap .ChildCategories a,
        .DataList#search-results a,
        .DataList-Search#search-results .MItem-Author,
        .DataList-Search#search-results .MItem-Author a,
        .DataList-Search#search-results a,
        .DataList-Search .MItem-Author a
        `,{textDecoration:"none",color:P.colorOut(n.font.color),fontSize:w(n.font.size)}),Q(`
          .DataList.DataList-Search#search-results .Item.Item-Search h3 a,
      `,{...E.font({color:e.mainColors.fg,...e.fontSizeAndWeightVars("large","semiBold"),lineHeight:e.lineHeights.condensed,textDecoration:"none"}),...vv({hover:{color:P.colorOut(e.links.colors.hover)},keyboardFocus:{color:P.colorOut(e.links.colors.keyboardFocus)},focus:{color:P.colorOut(e.links.colors.focus)},active:{color:P.colorOut(e.links.colors.active)},visited:{color:P.colorOut(e.links.colors.visited)}})}),Q(".Item.Item-Search .Meta .Bullet",{display:je("none")}),Q("#search-results.DataList.DataList-Search .Item.Item-Search .Media-Body .Bullet",{display:"none"}),Q("#search-results .DataList.DataList-Search .Breadcrumbs",{overflow:"visible"}),Q("#search-results .DataList.DataList-Search .Item-Body.Media",{margin:0}),Q("#search-results .DataList.DataList-Search + .PageControls.Bottom",{display:"flex",alignItems:"center",justifyContent:"space-between",".Gloss":{margin:0,minHeight:0,minWidth:0},".Pager":{float:"none",marginRight:"auto"}}),Q("#search-results .DataList.DataList-Search .Crumb",{...E.margin({right:-6,left:-6})}),Q("#search-results.DataList .Item-Body",{paddingLeft:0,margin:0}),Q("#search-results.DataList .Item h3",{padding:0,margin:0}),Q(`
        #search-results .Media-Body .Meta .MItem-Location,
        `,{display:"inline-block",padding:0,textTransform:"none"}),Q("#search-results .Media-Body .Meta .Breadcrumbs",{display:"inline",padding:0,textTransform:"none"}),Q("#search-results .Item-Body .Meta > *",HO()),Q("#search-results .Meta-Body.Meta .Breadcrumbs a",{fontSize:w(n.font.size),textTransform:"initial"}),Q("#search-results .Meta-Body Meta",{}),Q("#search-results .Item-Body.Media .PhotoWrap",{display:"none"});const r=Vc({preset:Sa.BORDER}).searchResultsStyles,o=eB();Q("body.Section-SearchResults .MenuItems.MenuItems-Input.ui-autocomplete",{position:"relative",...E.padding({vertical:0})}),Q("body.Section-SearchResults .MenuItems.MenuItems-Input.ui-autocomplete .ui-menu-item",{position:"relative",padding:0,margin:0,"& + .ui-menu-item":{borderTop:wt({color:o.separator.fg,width:o.separator.width})}}),Q("body.Section-SearchResults .MenuItems.MenuItems-Input.ui-autocomplete .ui-menu-item a",{...Ly().option,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-start",".Title":{...r.title,...bl(),display:"block",width:Z(100),marginBottom:".15em"},".Aside":{display:"inline-block",float:"none",...r.meta},".Aside .Date":{display:"inline",...r.meta},".Gloss":{...r.excerpt,display:"block",paddingLeft:0,marginTop:0,width:Z(100)}}),Q(".Item-Search .Media .ImgExt",{display:"flex",alignItems:"center",justifyContent:"center"}),Q(".Item-Search .Summary",{marginTop:w(o.excerpt.margin)});const a=46;Q("body.Section-SearchResults .AdvancedSearch .InputAndButton .Handle.Handle ",{right:w(a)}),Q("body.Section-SearchResults .AdvancedSearch .InputAndButton .bwrap.bwrap",{minWidth:w(a)}),Q("body.Section-SearchResults .AdvancedSearch .KeywordsWrap.InputAndButton .InputBox.InputBox",{paddingRight:w(a*2-10)})},E1e=re(()=>{const e=qe("groups"),t=e("banner",{height:200}),n=e("logo",{height:140});return{banner:t,logo:n}}),I1e=()=>{const e=E1e(),t=ee(),n=Tn(),o=Td().mediaQueries();Zt({".groupSearch":{marginBottom:w(16)},".groupToolbar":{marginTop:w(16)},".Group-Header":{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap"},".Group-Header.NoBanner":{alignItems:"center"},".Group-Banner":{height:w(e.banner.height)},".Group-Header.HasBanner .Group-Banner":{...o.mobileDown({marginBottom:w(e.logo.height/2+10)})},".Group-GuestModule":{borderTop:"1px solid #dddee0",paddingTop:w(32)},".Group-Icon-Big-Wrap":{width:w(e.logo.height),height:w(e.logo.height),flexBasis:w(e.logo.height),top:0,background:P.colorOut(t.mainColors.fg),zIndex:1,...E.margin({top:0,right:15,left:0,bottom:10})},".Group-Header.HasBanner .Group-Icon-Big-Wrap":{...o.mobileDown({position:"absolute",top:w(e.banner.height-e.logo.height/2),marginBottom:0,marginLeft:15})},"Group-Header.NoBanner .Group-Icon-Big-Wrap":{position:"relative",top:"auto",marginBottom:0},".Group-Header-Info":{flex:1},".Group-Header.NoBanner .Group-Header-Info":{paddingLeft:w(0)},".Group-Header.HasBanner .Group-Header-Info":{paddingLeft:w(0),...o.mobileDown({flex:"unset"})},"\n                .ButtonGroup.Open .Button.GroupOptionsTitle::before,\n                .Button.GroupOptionsTitle::before,\n                .Button.GroupOptionsTitle:active::before,\n                .Button.GroupOptionsTitle:focus::before\n            ":{color:"inherit",marginRight:w(6)},"a.ChangePicture":{...ki.fullSizeOfParent(),display:"flex",alignItems:"center",justifyContent:"center",opacity:0},".DataTableContainer.Group-Box.ApplicantList .PageControls .H":{position:"relative"},"body.Section-Event .Group-Banner":{flexGrow:1,width:Z(100)},".GroupOptions":{top:it(`100% + ${w(t.gutter.size)}`),marginLeft:"auto"},".GroupWrap .DataTable .Title-Icon":{color:P.colorOut(n.font.color)},".Groups .Name.Group-Name .Options .Button":{minWidth:0,marginLeft:w(t.gutter.size)},".DataTableContainer.Group-Box":{marginTop:w(t.gutter.size*3)},".Group-Box .PageControls":{position:"relative",flexDirection:"row"},".Group-Box .PageControls .H":{margin:0},".Group-Box.Group-MembersPreview .H":{position:"relative"},".GroupWrap .DataTable .Buttons":{display:"flex",flexWrap:"wrap",justifyContent:"flex-end"},".groupsMemberFilter":{marginTop:w(100)},".Event-Title":{marginTop:w(75)},"body.Groups .NavButton.Handle.GroupOptionsTitle .Sprite":{marginRight:Ta(2),transform:gl("5px")},"body.Groups .StructuredForm .Buttons-Confirm":{textAlign:"start"},".Group-Box .Item:not(tr)":{width:Z(100)},".Group-Box .ItemContent":{flexGrow:1},".Groups .DataList .Item > .PhotoWrap":{...ki.topLeft(13,8),float:"none"},".Groups .DataList .Item.hasPhotoWrap.hasPhotoWrap .ItemContent":{paddingLeft:w(58)},".Groups .DataList .Item.noPhotoWrap .ItemContent":{paddingLeft:w(0),paddingRight:w(70)},".Group-Box .Item .Options .Buttons":{display:"flex",flexWrap:"nowrap",alignItems:"center"},".Group-Box .Item .Options .Buttons a:first-child":{marginRight:w(4)},".DataList .Item.Event.event .DateTile":{order:2},".DataList .Item.Event.event .DateTile + .Options":{order:1,".ToggleFlyout.OptionsMenu":{display:"flex",alignItems:"center"}},".Group-Box .PageControls .Button-Controls":{...o.aboveMobile({maxHeight:Z(100),maxWidth:Z(100),margin:"auto 0"}),".ButtonGroup + .Button":{marginTop:10,display:"block"}},".Group-Box":{marginBottom:w(36)},".Group-Header-Actions":{display:"flex",alignItems:"center",justifyContent:"space-between",width:Z(100),...E.margin({vertical:w(t.gutter.size)})},".Group-Header-Actions .Group-Buttons, .Group-Header-Actions .ButtonGroup,":{position:"relative",top:"auto"},".Section-Group .Group-Box .H, .Section-Group .Group-Box .EmptyMessage":{textAlign:"start",...o.tabletDown({textAlign:"start"}),...o.mobileDown({marginBottom:w(6)})},".Section-Group .Group-Title":{...E.font({...t.fontSizeAndWeightVars("title")})},".Section-Group .Group-Box .H":{...E.font({...t.fontSizeAndWeightVars("subTitle")})},".Button-Controls.Button-Controls":{...o.mobileDown({display:"block",marginTop:12,".Button":{marginRight:"auto"}})},".Button-Controls.Button-Controls.FollowGroup-ButtonWrapper":{...o.mobileDown({display:"block",marginTop:0})},".Group-Box .DataList .Item .FollowGroup-ButtonWrapper-IsCompact":{marginRight:-6,marginTop:-6},".Group-Content .Group-Box.ApplicantList .Options":{position:"relative",paddingLeft:16},".GroupWrap.DataTableWrap .DataTable .Group-Name .Title-Wrapper":{paddingRight:70}})},T1e=re(()=>({spacer:qe("groups")("spacer",{default:6})})),A1e=()=>{const e=T1e();Q(".PhotoGrid",{display:"flex",flexWrap:"wrap",alignItems:"center",...E.margin({vertical:hr(-e.spacer.default),left:hr(-e.spacer.default)}),width:je(it(`100% + ${w(e.spacer.default*2)}`))}),Q(".PhotoGrid .PhotoWrap",{...E.margin({all:hr(e.spacer.default)})})},O1e=()=>{const e=ee(),t=Td(),n=js();Q(".DismissMessage",{color:P.colorOut(e.elementaryColors.black)}),Q(`
        .Condensed.DataList .ItemContent.Conversation,
        .ConversationMessage,

        `,{paddingLeft:w(n.sizing.medium+t.cell.paddings.horizontal)}),Q(".Section-Conversation .MessageList .Message",{paddingLeft:0}),Q(".Condensed.DataList .ItemContent.Conversation .Excerpt a",{textDecoration:"none"}),Q(".DataList.Conversations .Author.Photo",{...E.absolute.topLeft(t.cell.paddings.vertical,t.cell.paddings.horizontal)}),Q(".DataList.Conversations .Author.Photo .PhotoWrap",{position:"static"})};function B1e(){const e=js();Q(".BlockColumn .Block.Wrap",{display:"flex",flexWrap:"wrap",flexDirection:"column",justifyContent:"space-between",minHeight:w(e.sizing.medium)})}const k1e=()=>{const e=ee();Q(".Content .MessageList .UserSignature",{borderTop:wt(),...E.padding({top:w(e.gutter.size*2),bottom:0}),...E.margin({vertical:0}),clear:"both"}),Q(".Content .MessageList .Signature.UserSignature.userContent  > p",{...E.margin({vertical:je(0)}),padding:0})},P1e=()=>{const e=Tn(),t=lc();Q(".Meta.Meta, .AuthorInfo",{...J8(),"& > .MItem":{...HO(),"&.IdeationTag":{...E.padding({all:0})},"&.BadgeDescription":{whiteSpace:"initial"},"&.Hidden, &.RSS, &.JustNew":{display:"none"}},"& .Tag":{...$o(wi(),t.standard,!1),...E.margin(e.spacing),background:"none"},"& a.Tag":{...$o(wi(),t.standard,!0),...E.margin(e.spacing)},"& .MItem > .Tag":{...E.margin({all:0})},"& > .MItem-Resolved":{width:16,height:"auto",aspectRatio:"1/1",padding:0,marginBottom:0,verticalAlign:"middle"}}),Q(".Meta.Meta .MItem a",{...wf(),display:"inline"}),Q(".DataList-Notes .Meta.Meta",{marginLeft:0}),Q(".BlockColumn.BlockColumn",{"& .Meta > *":{marginLeft:0,marginRight:e.spacing.horizontal*2}}),Q(".resolved2-unresolved, .resolved2-resolved",{top:-2,display:"block"}),Q(".ChildCategories",{...E.margin({horizontal:e.spacing.horizontal})})};function R1e(e){Q(e,{a:{...wf(),fontSize:"inherit",textDecoration:"underline"}})}const j1e=()=>{R1e(".Container .Frame-contentWrap .ChildCategories"),Q(".Tag",{background:"none"}),Q(".MItem.RoleTracker",{...E.margin({all:0}),...E.padding({all:0}),"& a:not(.Tag)":{...E.margin({all:0}),...E.padding({all:0})}});const e=E.clickable.itemState();Q(".InlineTags.Meta a",{...e}),Q(".MItem img",{width:"auto",height:w(12),...E.padding({left:12})})},N1e=()=>{const e=Xme(),t=e.type===By.LIST?"100%":"auto",n=e.type===By.LIST?E.flex.spaceBetween():{};Zt({".TagCloud":{...E.margin({vertical:ca(e.margin.vertical),horizontal:ca(e.margin.horizontal)}),padding:"0 !important"}});const r=wi(),o=lc();Zt({".TagCloud li.TagCloud-Item.TagCloud-Item.TagCloud-Item":{padding:0,...E.margin(e.margin),width:t,maxWidth:Z(100),a:{width:t,...n,".Count":{display:e.showCount?"inherit":"none"},...$o(r,o[e.tagPreset],!0)}}}),Zt({".AuthorInfo .MItem.RoleTracker a":{textDecoration:je("none")}});const a=Tn();Zt({".Container .MessageList .ItemComment .MItem.RoleTracker a.Tag,\n        .MessageList .ItemComment .MItem.RoleTracker a.Tag,\n        .MessageList .ItemDiscussion .MItem.RoleTracker a.Tag":{...$o(r,o.standard,!0),...E.margin(a.spacing)}})},L1e=re(()=>{const e=ee(),t=gv(),n=Kt(),r=Gi(),o=11;Q(".Methods .SocialIcon .Text",{border:0,paddingLeft:w(o),lineHeight:e.lineHeights.condensed,minWidth:0,maxWidth:it(`100% - ${w(n.sizing.height-r.padding.horizontal)}`),float:"none",whiteSpace:"normal",textAlign:"start",minHeight:0}),Q(".SocialIcon.HasText",{lineHeight:1,minWidth:0}),Q(".Methods",{display:"flex",flexDirection:"column",justifyContent:"stretch",alignItems:"flex-start",flexWrap:"wrap"}),Q(`
        .Method,
        .Methods-label`,{display:"block",width:Z(100)}),Q(".Method a",{"&.Button.Primary, &.SocialIcon, &.SocialIcon.HasText":{display:"flex",justifyContent:"flex-start",alignItems:"center",flexWrap:"nowrap",width:w(210),maxWidth:Z(100),...E.border({radius:w(e.borderType.formElements.buttons.radius)})}});const a=E.clickable.itemState({default:t.standard.colors?t.standard.colors.fg:e.mainColors.fg});Q("body.Section-Entry .Methods .SocialIcon",{...a,color:P.colorOut(a.color,{makeImportant:!0})}),Q("body.Section-Entry .Methods .SignInLink.Button.Primary,",{paddingLeft:w(n.sizing.height+o)}),Q(`
        body.Section-Entry .Methods .SignInLink.Button.Primary,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Facebook,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Twitter,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Google,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-OpenID,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-LinkedIn,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Disqus,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-GitHub
        `,{color:P.colorOut(e.elementaryColors.white,{makeImportant:!0}),whiteSpace:"normal",textAlign:"start",lineHeight:e.lineHeights.condensed,display:"flex",alignItems:"center",overflow:"hidden"}),Q(`
        body.Section-Entry .Methods .SignInLink.Button.Primary .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Facebook .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Twitter .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Google .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-OpenID .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-LinkedIn .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-Disqus .Icon::after,
        body.Section-Entry .Methods .SocialIcon.SocialIcon-GitHub .Icon::after`,{backgroundColor:P.colorOut(e.mainColors.primaryContrast.fade(.2))}),Q(".Method .SocialIcon .Icon",{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0,maxWidth:Z(100),position:"relative",float:"none"});const i=6;Q(".Method .Icon::after",{content:Fc(""),position:"absolute",top:w(i),right:0,width:w(e.border.width),height:it(`100% - ${w(i*2)}`)}),Q(`
        .Method .Button.Primary.SignInLink,
        .Method .SocialIcon
        `,{paddingTop:w(4),paddingBottom:w(4)}),Q(".TextBoxWrapper .PasswordStrength",{width:"100% !important",marginTop:"4",marginBottom:"10"}),Q(".PasswordStrength.Score-0 .StrengthText",{color:"#949499"}),Q(".PasswordStrength.Score-2 .Strength",{backgroundColor:"#949499"}),Q(".PasswordStrength .Background",{backgroundColor:"#949499"}),Q(".PasswordStrength.Score-1 .StrengthText",{color:"#c81818"}),Q(".PasswordStrength.Score-1 .Strength",{backgroundColor:"#c81818"}),Q(".PasswordStrength.Score-2 .StrengthText",{color:"#c81818"}),Q(".PasswordStrength.Score-2 .Strength",{backgroundColor:"#c81818"}),Q(".PasswordStrength.Score-3 .StrengthText",{color:"#DE7802"}),Q(".PasswordStrength.Score-3 .Strength",{backgroundColor:"#DE7802"}),Q(".PasswordStrength.Score-4 .StrengthText",{color:"#05A882"}),Q(".PasswordStrength.Score-4 .Strength",{backgroundColor:"#05A882"}),Q(".PasswordStrength.Score-5 .StrengthText",{color:"#049372"}),Q(".PasswordStrength.Score-5 .Strength",{backgroundColor:"#049372"})});var bL;(function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"})(bL||(bL={}));const r9=re(e=>{const t=ee(),n=qe("leaderboard",e),r=n("colors",{bg:t.mainColors.bg}),o=n("box",{enabled:!1,borderRadius:t.border.radius}),a=n("title",{background:ce.background({}),font:ce.font({}),spacing:{padding:o.enabled?ce.spacing({all:t.gutter.size,bottom:0}):ce.spacing({})},alignment:"left"}),i=n("list",{spacing:o.enabled?ce.spacing({all:t.gutter.size}):ce.spacing({})}),s=n("listItem",{spacing:ce.spacing({horizontal:0,vertical:6})}),l=n("profilePhoto",{size:38}),c=n("username",{font:ce.font({textDecoration:"auto"}),margin:ce.spacing({horizontal:10})}),d=n("count",{font:ce.font({})});return{colors:r,box:o,title:a,list:i,listItem:s,profilePhoto:l,username:c,count:d}}),$1e=()=>{const e=r9(),t={...E.background({color:e.colors.bg}),...e.box.enabled?{borderTopLeftRadius:e.box.borderRadius,borderTopRightRadius:e.box.borderRadius,...Un().embed(),overflow:"hidden"}:{}},n={display:"flex",justifyContent:e.title.alignment,...E.background(e.title.background),...E.font(e.title.font),...E.padding(e.title.spacing.padding)},r={...E.padding(e.list.spacing),...E.border({style:dt.NONE})},o={...E.padding(e.listItem.spacing)},a={display:"flex",alignItems:"center",...E.font({color:e.username.font.color})},i={order:2,...E.margin({all:0,left:"auto"})},s={...E.font(e.count.font)},l={display:"flex",alignItems:"center"},c={verticalAlign:"middle",display:"inline-block",...E.margin(e.username.margin),...E.font({...e.username.font,lineHeight:1.125})},d={verticalAlign:"middle",borderRadius:"50%",overflow:"hidden",width:e.profilePhoto.size,height:e.profilePhoto.size,flexShrink:0};Q(".Leaderboard",t,{"h4.Leaderboard__title.Leaderboard__title.Leaderboard__title":n,".Leaderboard__user-list":{"&.Leaderboard__user-list.Leaderboard__user-list":{...r},".Leaderboard__user-list__item":o,a,".Aside":i,".Count":s,".Leaderboard-User":l,".Leaderboard-User .ProfilePhoto":d,".Leaderboard-User .Username":c}})};class Wo{static contentBoxes(t,n,r=".Content"){function o(a){return n?`.Section-${n} ${a}`:a}Zt({[o(`${r} .pageBox`)]:E.box(t.depth1),[o(`${r} .pageBox .pageBox`)]:E.box(t.depth2),[o(`${r} .pageBox .pageBox .pageBox`)]:E.box(t.depth3)})}}var Fs={},o9={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=/[\s]*([a-z-]+)[\s]*\([\s]*([^\)]+)[\s]*\)[\s]*/i,n=/^(\-?\d+\.?\d{0,5})/;e.formatUnit=function(d){return function(f){return f+d}},e.toFloat=parseFloat;function r(d){return typeof d=="number"?d:e.toFloat(d)*.01}e.ensurePercent=r;function o(d){return a(d*100)+"%"}e.formatPercent=o;function a(d){return n.exec(d.toString())[1]}e.formatFloat=a;function i(d){if(d!=null){var f=+d;return f===f?d+"px":d}}e.ensureLength=i;function s(d){var f=t.exec(d);if(!(!f||!f.length))return[f[1]].concat(f[2].split(","))}e.parseCSSFunction=s;function l(d,f){var h=Array.prototype.join.call(f,",");return d+"("+h+")"}e.cssFunction=l;function c(d){return function(){return l(d,arguments)}}e.createFunction=c})(o9);Object.defineProperty(Fs,"__esModule",{value:!0});var _l=o9,M1e=Fs.percent=_l.formatUnit("%");Fs.deg=_l.formatUnit("deg");Fs.em=_l.formatUnit("em");Fs.px=_l.formatUnit("px");Fs.rad=_l.formatUnit("rad");Fs.rem=_l.formatUnit("rem");Fs.viewHeight=_l.formatUnit("vh");Fs.viewWidth=_l.formatUnit("vw");Fs.turn=_l.formatUnit("turn");const _1e=re(()=>{const e=ee(),t=Ht().mediaQueries();Wo.contentBoxes(e.contentBoxes),Wo.contentBoxes(e.panelBoxes,void 0,".Panel");const n="& h1:not(.subtitle), & h2:not(.subtitle), & h3:not(.subtitle), & h4:not(.subtitle), & h5:not(.subtitle), & [role='heading']:not(.subtitle)";Zt({".pageHeadingBox.pageHeadingBox.pageHeadingBox":{margin:0,padding:0,display:"flex",alignItems:"center",flexWrap:"wrap",border:"none",justifyContent:"space-between",...E.margin({bottom:e.spacer.headingBox}),...t.oneColumnDown({...E.margin({bottom:e.spacer.headingBoxCompact})}),...t.xs({minWidth:150}),"&:first-child":{paddingTop:0},".PageTitle":{width:M1e(100)},[n]:{padding:0,...E.font({...e.fontSizeAndWeightVars("title"),color:P.colorOut(e.mainColors.fgHeading)}),width:"auto",flex:1,justifyContent:"flex-start",...E.margin({all:0,bottom:e.spacer.headingItem}),...t.oneColumnDown({fontSize:e.fonts.mobile.size.title}),"& > a:not([role='button'])":{fontSize:"inherit",fontWeight:"inherit",color:"inherit"}},"&.isLarge":{[n]:{...E.font({...e.fontSizeAndWeightVars("largeTitle")}),...t.oneColumnDown({fontSize:e.fonts.mobile.size.largeTitle})}},"& > p, & > .userContent, & > .P, & > .PageDescription":{width:"100%",padding:0,...E.margin({bottom:e.spacer.headingItem})}},".MainContent .pageHeadingBox.pageHeadingBox.pageHeadingBox":{...E.margin({bottom:e.spacer.headingBoxCompact})},".pageBox .Empty":{margin:0,border:"none"},".pageBox + .PageControls":{marginTop:16},".GuestBox":{margin:0,marginBottom:4,"& .GuestBox-buttons":{width:"100%",display:"flex",marginBottom:4,...kr(4)},"& .Button":{flex:1,margin:4}}}),Zt({".Panel .pageHeadingBox.pageHeadingBox.pageHeadingBox.pageHeadingBox.pageHeadingBox":{padding:0,...E.margin({bottom:0}),[n]:{...E.font({...e.fontSizeAndWeightVars("subTitle")})},...t.oneColumnDown({...E.margin({bottom:0}),[n]:{...E.font({...e.fontSizeAndWeightVars("subTitle")})}})}}),Zt({".headerBoxLayout":{position:"relative",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}})});var yL;(function(e){e.LEFT="left",e.CENTER="center"})(yL||(yL={}));const F1e=re(()=>{const e=qe("profile"),t=e("contentBoxes",ce.contentBoxes({depth2:{borderType:dt.NONE},depth3:{borderType:dt.SEPARATOR}})),n=e("panelBoxes",ce.contentBoxes(ee().panelBoxes)),r=e("photo",{border:{radius:"50%"},size:220});return{contentBoxes:t,panelBoxes:n,photo:r}}),W1e=()=>{const e=ee(),t=Tn(),n=F1e();Wo.contentBoxes(n.contentBoxes,"Profile"),Wo.contentBoxes(n.contentBoxes,"ProfileEdit"),Wo.contentBoxes(n.panelBoxes,"Profile",".Panel"),Wo.contentBoxes(n.panelBoxes,"ProfileEdit",".Panel"),Q("body.Section-Profile .Gloss, body.Section-Profile .Profile-rank",{color:P.colorOut(e.mainColors.primary),borderColor:P.colorOut(e.mainColors.primary)}),Q("body.Section-Profile .About a",{display:"inline",...E.font({...e.fontSizeAndWeightVars("large")})}),Q("body.Section-Profile .DataCounts",{width:"100%"}),Q("body.Section-Profile .Profile dd, dt",{...E.font({...e.fontSizeAndWeightVars("large"),size:`${qce(e.fontSizeAndWeightVars("large").size)} !important`,lineHeight:`${t.font.lineHeight*1.25} !important`})}),Q("body.Section-Profile .Profile dt",{width:Z(20)},Ht().mediaQueries().xs({width:"100%",display:"block",paddingLeft:0})),Q("body.Section-Profile .Profile dd",{width:"calc(80% - 16px)",paddingLeft:16},Ht().mediaQueries().oneColumnDown({width:"100%",display:"block",paddingLeft:0})),Q(".DataList.Activities a.CommentLink, .DataList.Activities a.CommentLink:hover",{color:P.colorOut(t.font.color,{makeImportant:!0})}),Q("body.Section-Profile .PhotoWrapLarge",{display:"block",width:n.photo.size,height:n.photo.size,borderRadius:n.photo.border.radius,marginLeft:"auto",marginRight:"auto"}),Q("body.Section-Profile .PhotoWrapLarge img",{width:Z(100),height:Z(100),objectFit:"cover"}),Q(".PhotoWrap a.ChangePicture .ChangePicture-Text ",{...ki.fullSizeOfParent(),display:"flex",alignItems:"center",justifyContent:"center",background:P.colorOut(e.elementaryColors.black.fade(.4),{makeImportant:!0}),...zn()}),Q(".PhotoWrap a.ChangePicture:not(:hover) .ChangePicture-Text ",{...E.absolute.srOnly()}),Q(".PhotoWrap a.ChangePicture",{background:je("none"),textDecoration:"none",color:P.colorOut(e.elementaryColors.white),display:je("flex"),alignItems:"center",justifyContent:"center",opacity:je(1)}),Q("body.Section-Profile .Panel .PhotoWrapLarge",{position:"relative",width:n.photo.size}),Q(".PhotoWrap a.ChangePicture .icon",{display:"inline-block",verticalAlign:"middle",fontSize:w(20),color:P.colorOut(e.elementaryColors.white),marginRight:w(10)}),Zt({".Profile .Panel .UserBox a.Username":{color:P.colorOut(e.mainColors.primary)}}),Q(".Section-Profile .Panel .pageBox .pageBox li.margin-top",{marginTop:w(20)}),Q(".Section-Profile .Panel .pageBox .pageBox li.margin-bottom",{marginBottom:w(20)}),Q(".Section-Profile .Panel .pageBox .pageBox li.Active a",{fontWeight:600}),Zt({".Section-Profile .Discussions > div:not(:first-of-type) li.pageBoxNoCompat:first-of-type:before":{content:'""',display:"block",height:e.spacer.componentInner,width:`calc(100% + ${e.spacer.componentInner}px)`,marginLeft:-8,borderTop:wt()}})},z1e=re(()=>{const e=qe("discussion"),t=ee(),n=Tn(),r=e("author",{name:{font:ce.font({color:t.mainColors.fg,size:n.linkFont.size,weight:t.fonts.weights.bold,textDecoration:"none"}),fontState:ce.font({color:t.mainColors.primary})}}),o=e("contentBoxes",ce.contentBoxes(ee().contentBoxes)),a=e("panelBoxes",ce.contentBoxes(ee().panelBoxes));return{contentBoxes:o,panelBoxes:a,author:r}}),H1e=()=>{Q(".DataTable.DiscussionsTable .ItemIdea .DiscussionName .Wrap .Meta.Meta-Discussion",{marginLeft:-ee().gutter.half}),Q(".DataTable.DiscussionsTable .ItemIdea .DiscussionName .Wrap .HasNew",{marginTop:ee().gutter.half,marginRight:ee().gutter.half}),Q(".DataTable.DiscussionsTable .ItemIdea .DiscussionName .Wrap",{paddingLeft:hr(ee().gutter.half)})},U1e=()=>{const e=z1e(),t=ee();Wo.contentBoxes(e.contentBoxes,"Discussion"),Wo.contentBoxes(e.panelBoxes,"Discussion",".Panel"),Zt({".Item-Header .Author .Username":{...E.font(e.author.name.font),"&:hover, &:focus, &:active":{...E.font(e.author.name.fontState)},marginRight:t.gutter.half},".BeforeCommentHeading:empty":{display:"none"}}),Q(`
        .Item .Poll .PollOptions .PollColor,
        .Item .Poll .PollOptions .PollColor.PollColor1,
        .Item .Poll .PollOptions .PollColor.PollColor2,
        .Item .Poll .PollOptions .PollColor.PollColor3,
        .Item .Poll .PollOptions .PollColor.PollColor4,
        .Item .Poll .PollOptions .PollColor.PollColor5,
        .Item .Poll .PollOptions .PollColor.PollColor6,
        .Item .Poll .PollOptions .PollColor.PollColor7,
        .Item .Poll .PollOptions .PollColor.PollColor8,
        .Item .Poll .PollOptions .PollColor.PollColor9,
        .Item .Poll .PollOptions .PollColor.PollColor10,
    `,{color:P.colorOut(t.mainColors.primaryContrast),backgroundColor:P.colorOut(t.mixPrimaryAndBg(t.constants.stateColorEmphasis),{makeImportant:!0}),opacity:1}),Q(".Container .DataTable span.MItem",{display:"inline-block"}),Q(".Container .DataTable span.MItem a",{display:"inline"}),Q(".MessageList .ItemDiscussion .InlineTags",{margin:0,padding:0}),Q(`
        .Options a.Bookmark,
        .Options a.Bookmarking,
        .Options a.Bookmarked
        `,{opacity:1,width:w(24),height:w(24),display:"block",position:"relative"}),Q(`
        .Content a.Bookmark,
        .Content a.Bookmarking,
        .Content a.Bookmarked`,{cursor:"pointer"}),Q(`
        .Content a.Bookmark .svgBookmark,
        .Content a.Bookmarking .svgBookmark,
        .Content a.Bookmarked .svgBookmark`,{...E.absolute.topLeft("50%","50%"),content:Fc(""),display:"block",width:w(12),height:w(16),fontSize:w(12),transform:K0("-50%","-50%")}),Q(`
        body.Discussions .DataList .Options,
        body.Discussions .MessageList .Options
    `,{marginTop:Ta(2)}),Q("body.Discussion .MItem-Resolved",{width:20,height:16,padding:0,marginBottom:0,verticalAlign:"middle",display:"inline-flex"}),H1e(),Q(".Discussion",{width:"100%"}),Q(".MessageList .Item-Header.Item-Header",{...E.padding({all:0}),display:"flex","& .Item-HeaderContent":{flex:1},"& .PhotoWrap":{marginRight:12},"& .AuthorWrap, & .DiscussionMeta":{paddingLeft:0,display:"block"},"& .RoleTitle":{whiteSpace:"normal"}})},a9=re(e=>({options:qe("list")("options",{box:ce.box({borderType:dt.NONE}),itemBox:ce.box({borderType:dt.SEPARATOR}),itemLayout:qa.TITLE_DESCRIPTION_METAS},e)})),i9=re((e,t=!1,n)=>{const r=qe("categoryList",n),o=Qh(void 0,n),a=La({imagePlacement:e==null?void 0:e.imagePlacement}),i=r("contentBoxes",ce.contentBoxes(ee().contentBoxes)),s=r("panelBoxes",ce.contentBoxes(ee().panelBoxes)),l=r("item",{options:{icon:{size:a.icon.size},alignment:a.options.alignment,box:ce.box({borderType:t?a.options.box.borderType:a9().options.itemBox.borderType})},heading:{firstLevel:{font:ce.font({})},secondLevel:{font:ce.font({})}},title:{font:ce.font(t?{...a.name.font,color:(e==null?void 0:e.contentType)===un.TITLE_BACKGROUND?a.background.fg.color:a.name.font.color}:o.title.font),fontState:ce.font(t?a.name.fontState:{})}},e);return{contentBoxes:i,panelBoxes:s,item:l}}),V1e=()=>{ee();const e=i9();Wo.contentBoxes(e.contentBoxes,"CategoryList"),Wo.contentBoxes(e.panelBoxes,"CategoryList",".Panel")},G1e=re(()=>({contentBoxes:qe("conversationList")("contentBoxes",ce.contentBoxes(ee().contentBoxes))})),Y1e=()=>{ee();const e=G1e();Wo.contentBoxes(e.contentBoxes,"ConversationList"),Q(".Conversation .PhotoWrap",{top:0,left:0}),Q(".Conversation .Bullet",{display:"inline-block"})},K1e=re(()=>{const e=qe("conversation"),t=e("contentBoxes",ce.contentBoxes(ee().contentBoxes)),n=e("panelBoxes",ce.contentBoxes(ee().panelBoxes));return{contentBoxes:t,panelBoxes:n}}),q1e=()=>{const e=K1e();Wo.contentBoxes(e.contentBoxes,"Conversation"),Wo.contentBoxes(e.panelBoxes,"Conversation",".Panel"),Zt({".Section-Conversation .Panel":{"& .pageBox > .Button:first-child":{marginRight:8},"& .Button + .Button":{marginTop:0}},".Section-Conversation .ConversationMessage":{display:"flex",padding:0,"& .PhotoWrap":{position:"static",marginRight:16},"& .Message":{marginTop:4},"& .ConversationMessage-content":{flex:1,maxWidth:"100%"}}})},X1e=()=>{ee();const e=Is();Wo.contentBoxes(e.contentBoxes,"DiscussionList"),Wo.contentBoxes(e.panelBoxes,"DiscussionList",".Panel"),Q("li.ItemDiscussion.ItemDiscussion",{display:"flex",flexWrap:"wrap","& .ItemContent":{flex:1},"& .Title":{marginTop:-4,display:"inline-block"},"& .Excerpt":{marginTop:0}}),Q(".ItemDiscussion.ItemDiscussion",{"& > .PhotoWrap, & > .userCardWrapper-photo, & > .idea-counter-module":{marginRight:16,marginInlineEnd:16},"& .idea-counter-box":{marginRight:0},"& .AdminCheck":{height:"100%",marginTop:6,marginRight:6},"& .Title a":{...E.font(e.item.title.font)},"&.Read .Title a":{...E.font(e.item.title.fontRead)},"& .Title a:hover, & .Title a:active, & .Title a:focus":{...E.font(e.item.title.fontState)}})};function Q1e(){const e=IO(),t=M8(),n=`
        .Content .${bu.widgetClass},
        .Content .DataList,
        .Content .Empty,
        .Content .DataTable,
        .Content .DataListWrap,
        .Trace,
        .Content .MessageList`;Zt({[`.Frame-body .${bu.widgetClass}`]:e.widgetMixin,[`.Frame-body .${bu.widgetWithContainerClass}`]:e.widgetWithContainerMixin,[n]:t.mainPanelWidgetMixin,[`.pageHeadingBox + .DataList,
          .pageHeadingBox + .Empty,
          .pageHeadingBox + .DataTable,
          .Content h2 + .${bu.widgetClass},
          .Content h2 + .DataList,
          .Content h2 + .DataListWrap,
          .Content h2 + .Empty,
          .Content h2 + .DataTable`]:{marginTop:0},[`.Panel .${bu.widgetClass}, .Panel .Box`]:t.secondaryPanelWidgetMixin,".Panel .BoxButtons":{...E.margin({bottom:ee().spacer.panelComponent*1.5})},[`.Frame-row .${bu.widgetClass}:first-child`]:{marginTop:0}})}const Z1e=()=>{Zt({".PhotoGrid .OnlineUserWrap, .Panel .PhotoGrid .OnlineUserWrap":{"&.pageBox":{width:"auto"}}})},J1e=()=>{Zt({".userContent.userContent, .UserContent.UserContent":{...g8()}})};let s9;s9=re(()=>{const e=ee(),t=Td(),n=e.mainColors,r=P.colorOut(n.fg),o=P.colorOut(n.fgHeading),a=P.colorOut(n.bg),i=P.colorOut(n.primary),s=js();sve(),Q("body",{...dz(),backgroundColor:a,color:r}),Q(".Frame",{background:"none"}),Q("html, body, .DismissMessage",{...E.font({family:e.fonts.families.body,color:n.fg})}),Q(".DismissMessage, .DataList .Excerpt, .DataList .CategoryDescription, .MessageList .Excerpt, .MessageList .CategoryDescription",{color:r}),Q(".DataTable .Item td, .Item .Poll .PollOption",{color:r}),Q(".ReactButton.PopupWindow&:hover .Sprite::before",{color:i}),Q(".Box h4",{color:o});const l=`
        .About a,
        .Panel.Panel-main .PanelInfo a.ItemLink
        `;Q(l,{...uB(void 0,!0,l),padding:0,minHeight:0,display:"flex",opacity:1,...E.linkDecoration()}),Q(".Panel .ClearFix::after",{display:je("none")}),Q("a",{cursor:"pointer"}),Q(`
        #Panel.Panel-main .FilterMenu .Aside,
        .Panel.Panel-main .PanelInfo .Aside,
        .Item .Aside
        `,{...E.margin({all:0,left:"auto"}),...E.padding({all:0,left:w(12)}),".Count":{textDecoration:"none",display:"inline-block"}}),Q(`
        a.Title,
        .Title a,
        .DataList .Item .Title,
        .DataList .Item.Read .Title,
        .DataList .Item h3,
        .MessageList .Item .Title,
        .MessageList .Item.Read .Title,
        .MessageList .Item h3
        .MenuItems a
        `,{...E.font({...e.fontSizeAndWeightVars("large"),color:r})}),Q(`
            .MessageList .Item:not(.Read) .Title,
            .DataList .Item:not(.Read) .Title,
            .DataTable .Item:not(.Read) .Title
    `,{fontWeight:e.fonts.weights.bold}),Q(`
            .MessageList .Item.Read .Title,
            .DataList .Item.Read .Title,
            .DataTable .Item.Read .Title
    `,{fontWeight:e.fonts.weights.normal}),Q(`
        .Herobanner .SearchBox .AdvancedSearch .BigInput,
        .Herobanner .SearchBox #Form_Search
    `,{borderRight:0,backgroundColor:a,color:r,...E.border(ti().border),borderTopRightRadius:0,borderBottomRightRadius:0}),Q("div.Popup .Body",{...E.border(e.borderType.modals),backgroundColor:a,color:r}),Q(".DataList .Item ~ .CategoryHeading::before, .MessageList .Item ~ .CategoryHeading::before",{marginTop:w(e.gutter.size*2.5),border:"none"}),Q("div.Popup p",{paddingLeft:0,paddingRight:0}),Q(".Herobanner-bgImage",{WebkitFilter:"none",filter:"none"}),Q(".Herobanner .SearchBox .AdvancedSearch .BigInput",{borderTopRightRadius:je(0),borderBottomRightRadius:je(0)}),Q(`
        a:hover,
        a.TextColor:hover,
        a:hover .TextColor`,{color:P.colorOut(e.links.colors.hover)}),Q(`
        a.TextColor, a .TextColor`,{color:P.colorOut(e.mainColors.fg)}),Q(".ButtonGroup .Dropdown",{marginTop:w(ca(e.border.width))}),Q(".QuickSearchButton",{color:r,...E.border(e.borderType.formElements.buttons)}),Q(".DataList .Item:last-child, .MessageList .Item:last-child",{borderTopColor:P.colorOut(e.border.color)}),Q(".DataList.Discussions .Item .Title",{width:it(`100% - ${w(e.icon.sizes.default*2+e.gutter.quarter)}`)}),Q(".DataList.Discussions .Item .Title a",{textDecoration:"none"}),Q(".DataList.Discussions .Item .Options",{position:"absolute",right:w(t.cell.paddings.horizontal),top:w(t.cell.paddings.vertical),...Ge("ui.isDirectionRTL",!1)&&{left:0,right:"auto"}}),Q(".Container .DataList .Meta .Tag-Announcement",{opacity:1}),Q(".Panel > * + *",{marginTop:w(24)}),Q(".Panel > .PhotoWrapLarge",{padding:0}),Q(".Panel li a",{minHeight:0}),Q(".Panel .Box li + li",{paddingTop:dB().panelLink.spacer.default}),Q("#ConversationForm label",{color:P.colorOut(e.mainColors.fg)}),Q(".Group-Box.Group-MembersPreview .PageControls .H",{position:"relative"}),Q("#Panel .FilterMenu .Aside, .PanelInfo .Aside, .Item .Aside",{float:"none",display:"block",margin:"0 0 14px"}),Q(".HasNew",{backgroundColor:P.colorOut(e.mainColors.primaryContrast),color:P.colorOut(e.mainColors.primary),...E.border({radius:2,color:e.mainColors.primary}),...E.padding({vertical:3,horizontal:6})}),Q(".Bullet, .QuickSearch",{display:"none"}),Q(".suggestedTextInput-option",Ly().option),Q(".DataList .Item .Options .OptionsMenu",{order:10}),Q(".selectBox-item .selectBox-selectedIcon",{color:P.colorOut(w1().contents.fg)}),Q(".HomepageTitle, .pageNotFoundTitle",{...E.font({...e.fontSizeAndWeightVars("largeTitle","bold")})}),Q(".DataList .PhotoWrap, .MessageList .PhotoWrap",{width:w(s.sizing.medium),height:w(s.sizing.medium)}),Q(".LocaleOptions",{textAlign:"center"}),_1e(),Q1e(),B1e(),c1e(),p1e(),f1e(),N1e(),h1e(),s1e(),l1e(),g1e(),y1e(),P1e(),j1e(),v1e(),x1e(),C1e(),w1e(),S1e(),D1e(),I1e(),W1e(),U1e(),J1e(),X1e(),V1e(),Y1e(),q1e(),A1e(),O1e(),k1e(),L1e(),$1e(),Z1e()});function xL(e=document){if(e===void 0)return;_o(".Arrow.SpFlyoutHandle::before",{display:je("none")}),e.querySelectorAll(".Arrow.SpFlyoutHandle:not(.compatIcons)").forEach(a=>{a.classList.add("compatIcons"),aa.render(u.jsx(Bt,{icon:"navigation-circle-ellipsis"}),a)}),e.querySelectorAll("a.documentationLink").forEach(a=>{a.classList.add("compatIcons"),aa.render(u.jsx(bfe,{}),a)}),_o(".Content a.Bookmark::before",{display:je("none")});const r=e.querySelectorAll(".Bookmark:not(.compatIcons)"),o=bt()._bookmark();r.forEach(a=>{a.classList.add(o),a.classList.add("compatIcons"),aa.render(u.jsx(yfe,{}),a)})}function eCe(e){var y;const t=xr("search"),n=x.useRef(null),[r,o]=x.useState(e.initialQuery||""),[a,i]=x.useState([]),l={...sB(),...e.scope},c=l.optionsItems.length>0,{pushSmartLocation:d}=Yh(),{externalSearch:f}=wz(),h=((y=l.value)==null?void 0:y.value)||"",m=x.useCallback(()=>{const C={};[WH,zH].includes(h)&&(C.scope=h);const D=v.makeSearchUrl(r,C,f==null?void 0:f.query);if(f!=null&&f.query&&(f!=null&&f.resultsInNewTab)){window.open(D,"_blank");return}d(D)},[e.searchOptionProvider,d,r,h,f]),g=x.useCallback(C=>{o(C)},[o]),{forceMenuOpen:p,searchOptionProvider:v}=e;x.useEffect(()=>{p&&v.autocomplete("").then(C=>{o("a"),i(C)})},[p,v]);const b=Vc(Xt(Bc(e.overwriteSearchBar),{scope:c?l:void 0}));return u.jsxs("div",{className:ge(b.independentRoot,e.className),children:[u.jsx(UH,{id:t,forceMenuOpen:e.forceMenuOpen,forcedOptions:a,placeholder:e.placeholder,optionComponent:qH,noHeading:!0,title:k("Search"),value:r,onChange:g,onSearch:m,loadOptions:(C,D)=>{var A;return f!=null&&f.query?Promise.resolve([]):e.searchOptionProvider.autocomplete(C,{...D,scope:(A=l.value)==null?void 0:A.value})},triggerSearchOnClear:!1,resultsRef:n,buttonClassName:e.buttonClass,buttonType:e.buttonType,buttonLoaderClassName:e.buttonLoaderClassName,hideSearchButton:e.hideSearchButton||c,contentClass:e.contentClass,valueContainerClasses:e.valueContainerClasses,iconContainerClasses:e.iconContainerClasses,scope:e.scope,overwriteSearchBar:e.overwriteSearchBar,disableAutocomplete:!!(f!=null&&f.query)}),u.jsx("div",{ref:n,className:ge("search-results",{[b.results]:!!r,[b.resultsAsModal]:!!r,[e.resultsAsModalClasses??""]:!!r})})]})}const tCe=Bve(pQ(eCe)),fB=re((e,t)=>{var Je;const n=e??cd(t),r=Kt(),o=ee(),a=n.options.alignment==="center",i=n.searchBar.border.radius!==void 0?n.searchBar.border.radius:n.border.radius,s=n.presets.input.preset===Sa.UNIFIED_BORDER,{almostBlack:l,white:c}=o.elementaryColors,d=Il().mediaQueries(),f=P.modifyColorBasedOnLightness({color:((Je=n.searchButton.colors)==null?void 0:Je.bg)??o.mainColors.primary,weight:.05,inverse:!0}),h={...n.searchButton,hover:{borders:n.searchButton.borders,colors:{...n.searchButton.colors,bg:f,fg:P.isLightColor(f)?l:c},opacity:n.searchButton.opacity}},m=S(E.button(h),"label:Banner-styles-searchButton"),g=re(()=>S({position:"absolute",top:0,left:0,width:Z(100),height:it("100% + 2px"),transform:Qf("-1px"),display:"block",backgroundColor:P.colorOut(n.outerBackground.color)},"label:Banner-styles-outerBackground")),p=S({...E.absolute.fullSizeOfParent()},"label:Banner-styles-defaultBannerSVG"),v=S({...E.absolute.fullSizeOfParent(),objectFit:"cover"},"label:Banner-styles-backgroundImage"),b=S({display:"block",position:"absolute",top:Le(0),left:Le(0),width:Z(100),height:it("100% + 2px"),background:P.colorOut(n.backgrounds.overlayColor)},"label:Banner-styles-backgroundOverlay"),y=(pt=!1)=>S({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:n.options.alignment===Ku.LEFT?"flex-start":"center",...E.padding(n.contentContainer.padding),...E.background(n.innerBackground),minWidth:w(n.contentContainer.minWidth),maxWidth:n.rightImage.image?w(n.contentContainer.minWidth):void 0,minHeight:w(n.dimensions.minHeight),maxHeight:Ha(n.dimensions.maxHeight),flexGrow:0,width:pt||n.options.alignment===Ku.LEFT?Z(100):void 0},Yt({maxWidth:n.contentContainer.minWidth+ps().spacing.padding*2*2},{right:"initial",left:0,minWidth:Z(100),maxWidth:Z(100),minHeight:Ha(n.dimensions.mobile.minHeight),maxHeight:Ha(n.dimensions.mobile.maxHeight??n.dimensions.maxHeight),...n.options.mobileAlignment?{alignItems:n.options.mobileAlignment===Ku.LEFT?"flex-start":"center"}:{},...E.padding(n.contentContainer.mobile.padding)}),"label:Banner-styles-contentContainer"),C=S({color:P.colorOut(n.colors.primaryContrast)},"label:Banner-styles-text"),D=S({},"label:Banner-styles-noTopMargin"),A=s?{borderRadius:i,boxShadow:`0 0 0 ${w(n.unifiedBorder.width)} ${P.colorOut(n.unifiedBorder.color)}`}:{},T=S({position:"relative",width:Z(100),maxWidth:w(n.searchBar.sizing.maxWidth),height:w(n.searchBar.sizing.height),margin:a?"auto":void 0,...E.margin(n.searchBar.margin),...A,".search-results":{width:Z(100),maxWidth:w(n.searchBar.sizing.maxWidth),margin:"auto",zIndex:2},[`&.${D}`]:{marginTop:0},...d.oneColumnDown({...E.margin(n.searchBar.marginMobile),[`.${D}`]:{marginTop:0}})},"label:Banner-styles-searchContainer"),B=S({...bl(),...E.margin(n.icon.margins)},"label:Banner-styles-iconContainer"),j=S({width:w(n.icon.width),maxWidth:w(n.icon.width),height:w(n.icon.height),maxHeight:w(n.icon.height),borderRadius:n.icon.borderRadius,...d.oneColumnDown({width:w(n.icon.mobile.width),maxWidth:w(n.icon.mobile.width),height:w(n.icon.mobile.height),maxHeight:w(n.icon.mobile.height),borderRadius:n.icon.mobile.borderRadius})},"label:Banner-styles-icon"),R=S({display:"block",...E.font(n.title.font),flexGrow:1,...d.oneColumnDown(E.font(n.title.fontMobile))},"label:Banner-styles-title"),N=S({display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",width:Z(100)},"label:Banner-styles-iconTextAndSearchContainer"),_=S({display:"flex",flexDirection:"column",width:Z(100),flexBasis:w(n.textAndSearchContainer.maxWidth),flexGrow:0,marginLeft:a?"auto":void 0,marginRight:a?"auto":void 0},"label:Banner-styles-textAndSearchContainer"),U=S({...E.margin(n.title.margins),display:"flex",flexWrap:"nowrap",alignItems:"center"},"label:Banner-styles-titleWrap"),V=S({marginLeft:a?"auto":void 0,marginRight:a?"auto":void 0},"label:Banner-styles-titleUrlWrap"),z=S({display:a?"block":"none",position:"relative",height:w(r.sizing.height),width:w(r.sizing.height),flexBasis:w(r.sizing.height),transform:gl(Le((r.sizing.height-o.icon.sizes.default)/2-1)),".searchBar-actionButton:after":{content:Fc(""),...E.absolute.middleOfParent(),width:Le(20),height:Le(20),backgroundColor:P.colorOut(n.buttonShadow.background),boxShadow:n.buttonShadow.full},".searchBar-actionButton":{color:je("inherit"),"&:not(.focus-visible)":{outline:0}},".icon-compose":{zIndex:1}},"label:Banner-styles-titleFlexSpacer"),Y=S({...E.margin(n.description.margins),display:"flex",flexWrap:"nowrap",alignItems:"center"},"label:Banner-styles-descriptionWrap"),te=S({display:"block",...E.font(n.description.font),flexGrow:1},"label:Banner-styles-description"),se=S({boxSizing:"border-box",flexGrow:1,zIndex:1,boxShadow:n.searchBar.shadow.show?n.searchBar.shadow.style:void 0,minHeight:w(n.searchBar.sizing.height)},"label:Banner-styles-content"),he=S({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",maxWidth:Z(100),height:Z(100)},"label:Banner-styles-imagePositioner"),pe=(pt,ot)=>{const Et=n.contentContainer.minWidth+n.contentContainer.padding.horizontal+ot;return it(`${w(pt)} - ${w(Et)}`)},K=S({alignSelf:"stretch",maxWidth:pe(Ht().contentWidth,ps().spacing.padding*2*2),flexGrow:1,position:"relative",overflow:"hidden"},Yt({maxWidth:Ht().contentWidth},{minWidth:pe("100vw",ps().spacing.padding*2)}),d.oneColumnDown({minWidth:pe("100vw",ps().spacing.mobile.padding*2)}),Yt({maxWidth:500},{display:"none"}),"label:Banner-styles-imageElementContainer"),O=S({display:"flex",width:Z(100),height:w(n.logo.height),maxWidth:Z(100),minHeight:w(n.logo.height),alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",...d.oneColumnDown({height:Ha(n.logo.mobile.height),minHeight:Ha(n.logo.mobile.height)})},"label:Banner-styles-logoContainer"),le=S({...E.padding(n.logo.padding)},"label:Banner-styles-logoSpacer"),be=S({height:w(n.logo.height),width:w(n.logo.width),maxHeight:Z(100),maxWidth:Z(100),...d.oneColumnDown({height:Ha(n.logo.mobile.height),width:Ha(n.logo.mobile.width)})},"label:Banner-styles-logo"),H=S({...E.absolute.fullSizeOfParent(),minWidth:w(n.rightImage.minWidth),objectPosition:"100% 50%",objectFit:"contain",marginLeft:"auto",...E.padding(n.rightImage.padding)},Yt({maxWidth:n.contentContainer.minWidth+n.rightImage.minWidth},{paddingRight:0}),"label:Banner-styles-rightImage"),ie=Nn(),oe=S({position:"relative",zIndex:1,maxWidth:Z(100),backgroundColor:P.colorOut(n.outerBackground.color),".searchBar":{height:w(n.searchBar.sizing.height)},".layoutEditorToolbarMenu":{transform:"translate(-50%, 50%)"}},ie.swoop.amount>0?{marginTop:-ie.swoop.swoopOffset,paddingTop:ie.swoop.swoopOffset}:{},"label:Banner-styles-root"),ve=S({position:"relative"},"label:Banner-styles-bannerContainer"),$e=S({...E.absolute.fullSizeOfParent(),overflow:"hidden"},"label:Banner-styles-overflowRightImageContainer"),Ne=S({height:Z(100)},"label:Banner-styles-fullHeight"),Ze=typeof n.searchBar.sizing.height=="string"?parseInt(n.searchBar.sizing.height):n.searchBar.sizing.height,ze=S({top:w(Ze+2),...d.xs({width:o3(100),left:"50%",transform:gl("-50%"),borderTopRightRadius:0,borderTopLeftRadius:0,".suggestedTextInput-option, .suggestedTextInput-groupHeading":{...E.padding({horizontal:21})}})},"label:Banner-styles-resultsAsModal"),Xe=S({height:Z(100),position:"relative",minHeight:w(n.dimensions.minHeight),...d.oneColumnDown({minHeight:Ha(n.dimensions.mobile.minHeight)})},"label:Banner-styles-middleContainer"),Me=S({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,background:P.colorOut(n.searchStrip.bg),...E.padding(n.searchStrip.padding),minHeight:Ha(n.searchStrip.minHeight),marginTop:Ha(n.searchStrip.offset),...d.oneColumnDown({background:n.searchStrip.mobile.bg?P.colorOut(n.searchStrip.mobile.bg):void 0,...E.padding(n.searchStrip.mobile.padding),minHeight:Ha(n.searchStrip.mobile.minHeight),marginTop:Ha(n.searchStrip.mobile.offset)})},"label:Banner-styles-searchStrip");return{root:oe,bannerContainer:ve,overflowRightImageContainer:$e,fullHeight:Ne,outerBackground:g,contentContainer:y,text:C,defaultBannerSVG:p,backgroundImage:v,searchContainer:T,searchButton:m,iconTextAndSearchContainer:N,textAndSearchContainer:_,title:R,titleFlexSpacer:z,titleWrap:U,titleUrlWrap:V,description:te,descriptionWrap:Y,content:se,iconContainer:B,icon:j,resultsAsModal:ze,backgroundOverlay:b,imageElementContainer:K,rightImage:H,middleContainer:Xe,imagePositioner:he,searchStrip:Me,noTopMargin:D,logoContainer:O,logoSpacer:le,logo:be}});function nCe(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function Sg(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=kf(n),n=n===n?n:0),t!==void 0&&(t=kf(t),t=t===t?t:0),nCe(kf(e),t,n)}const CL=180,wL=80,j1=re((e,t)=>{const n=qe("contentBanner",t,new Rs({"options.useOverlay":"backgrounds.useOverlay"})),r=cd(e,t,"contentBanner"),o=n("options",{...r.options,enabled:!1,alignment:Ku.CENTER,mobileAlignment:Ku.LEFT,overlayTitleBar:!1,hideDescription:!0,hideTitle:!0,hideSearch:!0,hideIcon:!0}),a=n("dimensions",{minHeight:120,mobile:{minHeight:120}}),i=Sg(a.minHeight,wL,CL),s=Sg(a.mobile.minHeight,wL,CL),l=n("icon",{image:void 0,width:100,height:100,borderRadius:"100%",margins:ce.spacing({top:r.title.margins.top,right:20}),mobile:{width:80,height:80}}),c=n("spacing",{padding:ce.spacing({}),mobile:{padding:ce.spacing({top:0,bottom:0})}}),d=Xt(Bc(t),{contentBanner:{options:o,dimensions:a,spacing:c,logo:{height:i-r.logo.padding.all*2,width:"auto",mobile:{height:s-r.logo.padding.all*2}},icon:l}});return cd(e,d,"contentBanner")}),l9=re(e=>{const t=j1(e),n=fB(t,e);return{...n,textAndSearchContainer:ge(n.textAndSearchContainer,S({flexBasis:w(t.searchBar.sizing.maxWidth),flexGrow:1},"label:contentBannerStyles-textAndSearchContainer"))}});function rCe(e){const{isContentBanner:t}=e,n=t?l9():fB(),r=t?j1():cd(),o=e.bgColor??r.outerBackground.color;return u.jsxs("svg",{className:n.defaultBannerSVG,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 1600 250",preserveAspectRatio:"xMidYMid slice","aria-hidden":"true",children:[u.jsxs("defs",{children:[u.jsxs("linearGradient",{id:"a",x1:"399.6",x2:"1238.185",y1:"-398.455",y2:"440.13",gradientTransform:"matrix(1 0 0 -1 0 252)",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{offset:"0",stopColor:"#9fa2a4"}),u.jsx("stop",{offset:"1",stopColor:"#dcddde"})]}),u.jsx("linearGradient",{id:"b",x1:"-8455.753",x2:"-5370.533",y1:"-1501.49",y2:"1583.73",gradientTransform:"matrix(-.264 0 0 -1 -1028.524 252)",xlinkHref:"#a"}),u.jsx("linearGradient",{id:"c",x1:"390.247",x2:"1197.197",y1:"-389.102",y2:"417.848",xlinkHref:"#a"}),u.jsx("linearGradient",{id:"d",x1:"399.6",x2:"1246.556",y1:"-398.455",y2:"448.501",xlinkHref:"#a"}),u.jsx("linearGradient",{id:"e",x1:"-10482.125",x2:"-7325.674",y1:"-1392.28",y2:"1764.172",gradientTransform:"matrix(-.264 0 0 -1 -1550.139 311.401)",xlinkHref:"#a"}),u.jsx("linearGradient",{id:"f",x1:"2590.443",x2:"5029.843",y1:"-1082.229",y2:"1357.171",gradientTransform:"matrix(.339 0 0 -1 -489.358 311.401)",xlinkHref:"#a"}),u.jsx("clipPath",{id:"g",children:u.jsx("path",{fill:"none",d:"M-1.2 0H1598.8V250H-1.2z"})})]}),u.jsxs("g",{style:{isolation:"isolate"},children:[u.jsx("path",{fill:P.colorOut(o),d:"M-0 0H1600V250H-0z"}),u.jsx("path",{fill:"url(#a)",fillRule:"evenodd",style:{mixBlendMode:"multiply"},d:"M-.4 250s157.2-125.2 321.9-125 217.6 87.3 488.1 87.3 408-149.6 565.9-149.6 224.1 118.4 224.1 118.4v68.9z"}),u.jsx("path",{fill:"url(#b)",fillRule:"evenodd",style:{mixBlendMode:"multiply",isolation:"isolate"},d:"M1601.2 205.755s-157.2-125.2-321.9-125-217.6 87.3-488.1 87.3-408-149.5-565.9-149.5-224.1 118.3-224.1 118.3l-1.6 113.6h1600z",opacity:"0.43"}),u.jsx("path",{fill:"url(#c)",fillRule:"evenodd",style:{mixBlendMode:"multiply",isolation:"isolate"},d:"M-.2 212.755s162.4-169.7 496-149.6c282.8 17 373.6 129.5 566.1 140.7 192.4 11.2 531.8 26.8 531.8 26.8l6 19.8H-.4z",opacity:"0.4"}),u.jsx("path",{fill:"url(#d)",fillRule:"evenodd",style:{mixBlendMode:"multiply",isolation:"isolate"},d:"M-.4 250s176.8-94.5 537.2-94.5 363.8 74.6 525 74.6 218-203.1 356.4-203.1 181.4 223 181.4 223H-.4z",opacity:"0.4"}),u.jsx("path",{fill:"url(#e)",fillRule:"evenodd",style:{mixBlendMode:"multiply",isolation:"isolate"},d:"M1600.4 116.955l-.8-116.5c-17.382 0-372.332-3.194-388.112 1.777C1153.205 20.59 1016.513 118 770.388 116.5 572.8 115.3 458.1 27.455 380.173-.555L-.4.455l.8 77.1-.8 172.9h1600z",opacity:"0.43"}),u.jsx("path",{fill:"url(#f)",fillRule:"evenodd",style:{mixBlendMode:"multiply",isolation:"isolate"},d:"M.5 116.955s156.8-71.6 321.1-71.5 168.6 70.758 438.5 70.758S1215.5 9.955 1373 9.955s223.6 67.7 223.6 67.7l.8 172.9H1.3z",opacity:"0.43"}),u.jsxs("g",{fill:"none",stroke:P.colorOut(ra(o).darken("50%")),strokeDasharray:"1,11",strokeLinecap:"round",strokeLinejoin:"round",clipPath:"url(#g)",opacity:"0.5",children:[u.jsx("path",{strokeWidth:"3",d:"M1609.4 230.155c-567.3 297.5-677.1-176.9-1531 344.9"}),u.jsx("path",{strokeWidth:"2.935",d:"M1609.2 213.955c-582.9 317.6-702.3-174.1-1536.9 332.1"}),u.jsx("path",{strokeWidth:"2.871",d:"M1608.9 197.755c-598.4 337.7-727.4-171.2-1542.7 319.4"}),u.jsx("path",{strokeWidth:"2.806",d:"M1608.6 181.555c-613.9 357.8-752.5-168.3-1548.5 306.7"}),u.jsx("path",{strokeWidth:"2.742",d:"M1608.4 165.355C979 543.255 830.7-.145 54 459.355"}),u.jsx("path",{strokeWidth:"2.677",d:"M1608.1 149.155c-644.9 398-802.8-162.6-1560.2 281.3"}),u.jsx("path",{strokeWidth:"2.613",d:"M1607.9 132.955c-660.5 418.1-828-159.8-1566 268.5"}),u.jsx("path",{strokeWidth:"2.548",d:"M1607.6 116.755c-676 438.2-853.1-156.9-1571.8 255.8"}),u.jsx("path",{strokeWidth:"2.484",d:"M1607.3 100.555c-691.5 458.3-878.2-154-1577.6 243.1"}),u.jsx("path",{strokeWidth:"2.419",d:"M1607.1 84.355c-707 478.4-903.4-151.2-1583.5 230.4"}),u.jsx("path",{strokeWidth:"2.355",d:"M1606.8 68.155c-722.5 498.5-928.5-148.3-1589.3 217.6"}),u.jsx("path",{strokeWidth:"2.29",d:"M1606.6 51.955c-738.1 518.6-953.7-145.5-1595.2 204.9"}),u.jsx("path",{strokeWidth:"2.226",d:"M1606.3 35.755c-753.6 538.7-978.8-142.6-1601 192.2"}),u.jsx("path",{strokeWidth:"2.161",d:"M1606 19.555c-769.1 558.8-1003.8-139.7-1606.7 179.5"}),u.jsx("path",{strokeWidth:"2.097",d:"M1605.8 3.355c-784.6 578.9-1029-136.9-1612.6 166.8"}),u.jsx("path",{strokeWidth:"2.032",d:"M1605.5-12.845c-800.1 598.9-1054.2-134-1618.4 154"}),u.jsx("path",{strokeWidth:"1.968",d:"M1605.3-29.045C789.6 590.055 526-160.145-19 112.255"}),u.jsx("path",{strokeWidth:"1.903",d:"M1605-45.245c-831.2 639.2-1104.4-128.3-1630.1 128.6"}),u.jsx("path",{strokeWidth:"1.839",d:"M1604.7-61.445C758 597.855 475.2-186.845-31.2 54.455"}),u.jsx("path",{strokeWidth:"1.774",d:"M1604.5-77.645c-862.3 679.4-1154.7-122.6-1641.8 103.1"}),u.jsx("path",{strokeWidth:"1.71",d:"M1604.2-93.845c-877.7 699.5-1179.8-119.7-1647.5 90.4"}),u.jsx("path",{strokeWidth:"1.645",d:"M1604-110.045c-893.3 719.6-1205-116.8-1653.4 77.7"}),u.jsx("path",{strokeWidth:"1.581",d:"M1603.7-126.245c-908.8 739.7-1230.1-114-1659.2 65"}),u.jsx("path",{strokeWidth:"1.516",d:"M1603.4-142.345c-924.3 759.7-1255.2-111.2-1665 52.2"}),u.jsx("path",{strokeWidth:"1.452",d:"M1603.2-158.545c-939.9 779.8-1280.4-108.3-1670.9 39.4"}),u.jsx("path",{strokeWidth:"1.387",d:"M1602.9-174.745c-955.3 799.9-1305.5-105.5-1676.7 26.7"}),u.jsx("path",{strokeWidth:"1.323",d:"M1602.7-190.945c-970.9 820-1330.7-102.6-1682.6 14"}),u.jsx("path",{strokeWidth:"1.258",d:"M1602.4-207.145c-986.4 840.1-1355.8-99.8-1688.3 1.3"}),u.jsx("path",{strokeWidth:"1.194",d:"M1602.1-223.345c-1001.9 860.2-1380.9-96.9-1694.1-11.5"}),u.jsx("path",{strokeWidth:"1.129",d:"M1601.9-239.545c-1017.5 880.3-1406.1-94-1700-24.2"}),u.jsx("path",{strokeWidth:"1.064",d:"M1601.6-255.745c-1032.9 900.4-1431.2-91.2-1705.8-36.9"}),u.jsx("path",{d:"M1601.4-271.945c-1048.5 920.5-1456.4-88.3-1711.7-49.6"})]})]})]})}function Ea(e){const{isCompact:t}=Xi(),n=jve(),{setOverlayTitleBar:r}=E1(),{action:o,className:a,isContentBanner:i}=e,s=Nn(),l=Ns();!e.backgroundImage&&e.options&&(e.options.useOverlay=!1);const c=i?l9(e.options):fB(void 0,e.options),d=i?j1(e.options):cd(e.options,e.forcedVars),{options:f}=d,h=Ki(),{title:m=d.title.text}=e;bce({vars:d}),x.useEffect(()=>{r(f.overlayTitleBar)},[f.overlayTitleBar]);const g=x.useMemo(()=>e.iconUrlSrcSet?{srcSet:Ac(e.iconUrlSrcSet)}:{},[e.iconUrlSrcSet]),p=x.useMemo(()=>e.backgroundUrlSrcSet?{srcSet:Ac(e.backgroundUrlSrcSet)}:{},[e.backgroundUrlSrcSet]),v=x.useMemo(()=>{if(!(!e.backgroundImage&&!d.outerBackground.image&&!d.outerBackground.unsetBackground)){const V={src:e.backgroundImage||d.outerBackground.image,...p};return u.jsxs("picture",{children:[!e.backgroundImage&&u.jsxs(u.Fragment,{children:[!!d.outerBackground.breakpoints.mobile.image&&u.jsx("source",{srcSet:d.outerBackground.breakpoints.mobile.image,media:`(max-width: ${Il().breakPoints.xs}px)`}),!!d.outerBackground.breakpoints.tablet.image&&u.jsx("source",{srcSet:d.outerBackground.breakpoints.tablet.image,media:`(max-width: ${Il().breakPoints.oneColumn}px)`})]}),u.jsx("img",{className:c.backgroundImage,...V,role:"presentation"})]})}return u.jsx(rCe,{bgColor:d.outerBackground.color,isContentBanner:i})},[e.backgroundImage,d.outerBackground.image,d.outerBackground.unsetBackground,d.outerBackground.breakpoints.tablet.image,d.outerBackground.breakpoints.mobile.image,p,d.outerBackground.color,i]);if(!f.enabled)return null;const b=e.description??d.description.text;let y=e.contentImage||d.rightImage.image||null;y=y?Tf(y):null;let C=e.logoImage||d.logo.image||null;C=C?Tf(C):null;let D=null;i&&(!f.hideIcon||e.hideIcon)&&(D=e.iconImage||d.icon.image||null,D=D?Tf(D):null);const A=t&&f.hideSearchOnMobile,T=f.searchPlacement==="bottom"&&!f.hideSearch&&!e.hideSearch&&!A,B=f.searchPlacement==="middle"&&!f.hideSearch&&!e.hideSearch&&!A,j=T||B&&f.hideDescription&&f.hideTitle,R=t||d.presets.button.preset===Fo.HIDE||!!e.scope,N=u.jsx("div",{className:ae(c.searchContainer,{[c.noTopMargin]:j}),children:u.jsx(tCe,{forceMenuOpen:e.forceSearchOpen,buttonClass:c.searchButton,buttonType:ye.PRIMARY,isLarge:!0,placeholder:k("SearchBoxPlaceHolder","Search"),hideSearchButton:R,contentClass:c.content,resultsAsModalClasses:c.resultsAsModal,scope:e.scope,initialQuery:e.initialQuery,overwriteSearchBar:{borderRadius:w(d.searchBar.border.radius),preset:d.presets.input.preset,compact:!!y||h===sr.MOBILE||h===sr.XS}})}),_=u.jsx(Dn,{className:c.title,depth:1,isLarge:!0,children:m});return u.jsxs(Ls,{customContainer:!0,ref:n,className:ae(a,c.root,{[l.negativeSpacer]:s.fullBleed.enabled&&f.overlayTitleBar}),children:[u.jsxs("div",{className:c.bannerContainer,children:[u.jsx("div",{className:c.overflowRightImageContainer,children:u.jsxs("div",{className:ae(c.middleContainer,{[l.bannerPadding]:s.fullBleed.enabled}),children:[u.jsx("div",{className:ae(c.outerBackground()),children:v}),d.backgrounds.useOverlay&&u.jsx("div",{className:c.backgroundOverlay}),u.jsx(zo,{className:c.fullHeight,children:u.jsxs("div",{className:c.imagePositioner,children:[f.hideTitle&&u.jsx(u.Fragment,{children:u.jsx(Dn,{className:Rc().visuallyHidden,depth:1,children:m})}),u.jsx(Hn,{className:c.contentContainer(!y),condition:B||!f.hideTitle||!f.hideDescription||!!C}),y&&u.jsx("div",{className:c.imageElementContainer,children:u.jsx("img",{className:c.rightImage,src:y,"aria-hidden":!0})})]})}),T&&u.jsx("div",{className:c.searchStrip,style:{background:"none"}})]})}),u.jsx("div",{className:ae(c.middleContainer,{[l.bannerPadding]:s.fullBleed.enabled}),children:u.jsx(zo,{fullGutter:!0,children:u.jsxs("div",{className:c.imagePositioner,children:[f.hideTitle&&u.jsx(Dn,{className:Rc().visuallyHidden,depth:1,children:m}),u.jsxs(Hn,{className:c.contentContainer(!y),condition:B||!f.hideTitle||!f.hideDescription||!!C||!!D,children:[!!C&&u.jsx("div",{className:c.logoSpacer,children:u.jsx("div",{className:c.logoContainer,children:u.jsx("img",{className:c.logo,src:C,"aria-hidden":!0})})}),u.jsxs("div",{className:c.iconTextAndSearchContainer,children:[i&&D&&u.jsx("div",{className:c.iconContainer,children:u.jsx("img",{className:c.icon,src:D,"aria-hidden":!0,...g})}),Ea.extraBeforeSearchBarComponents.map((U,V)=>x.createElement(U,{...e,key:V})),u.jsxs("div",{className:c.textAndSearchContainer,children:[!f.hideTitle&&u.jsxs("div",{className:c.titleWrap,children:[u.jsx(zp,{className:c.titleFlexSpacer}),m&&u.jsx(u.Fragment,{children:f.url?u.jsx(wr,{to:f.url,className:c.titleUrlWrap,children:_}):u.jsx(u.Fragment,{children:_})}),u.jsx("div",{className:ae(c.text,c.titleFlexSpacer),children:o})]}),!f.hideDescription&&b&&u.jsx("div",{className:c.descriptionWrap,children:u.jsx("p",{className:ae(c.description,c.text),dangerouslySetInnerHTML:{__html:b}})}),B&&N,B&&Ea.extraAfterSearchBarComponents.map((U,V)=>x.createElement(U,{...e,key:V}))]})]})]}),y&&u.jsx("div",{className:c.imageElementContainer})]})})})]}),T&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:c.searchStrip,children:u.jsx(zo,{fullGutter:!0,children:N})}),Ea.extraAfterSearchBarComponents.map((U,V)=>x.createElement(U,{...e,key:V}))]})]})}Ea.extraAfterSearchBarComponents=[];Ea.extraBeforeSearchBarComponents=[];Ea.registerAfterSearchBar=e=>{Ea.extraAfterSearchBarComponents.pop(),Ea.extraAfterSearchBarComponents.push(e)};Ea.registerBeforeSearchBar=e=>{Ea.extraBeforeSearchBarComponents.pop(),Ea.extraBeforeSearchBarComponents.push(e)};const SL=S({fontSize:"0 !important"},"label:CommunityBanner-fontHiddenCss"),CS=S({display:"none !important"},"label:CommunityBanner-hiddenCss");function c9(e,t){const n=t.deduplicateTitles&&e.title&&!t.hideTitle,r=t.deduplicateTitles&&e.description&&!t.hideDescription;x.useLayoutEffect(()=>{var l,c,d,f;let o=null,a=!1,i=!1;const s=[".Section-Discussion"].some(h=>document.querySelector(h));if(n){const h=document.querySelector(".Content h1");h instanceof HTMLElement&&(o=h.closest(".pageHeadingBox")??o,((l=h.textContent)==null?void 0:l.trim())===((c=e.title)==null?void 0:c.trim())?h.classList.add(CS):s||(h.classList.add(SL),a=!0))}if(r){const h=document.querySelector(".Content h1 + .PageDescription");h instanceof HTMLElement&&(o=h.closest(".pageHeadingBox")??o,((d=h.textContent)==null?void 0:d.trim())===((f=e.description)==null?void 0:f.trim())?h.classList.add(CS):s||(h.classList.add(SL),i=!0))}!a&&!i&&o&&!s&&o.classList.add(CS)},[])}function oCe(e){return c9(e,cd().options),u.jsx(MT,{children:u.jsx(Ea,{...e})})}function aCe(e){return c9(e,j1().options),u.jsx(MT,{children:u.jsx(Ea,{...e,isContentBanner:!0})})}function iCe(e){const{Tag:t,tagProps:n,domNodesToAttach:r}=e,o=az();return XA(r,o.triggerRef),u.jsx(t,{...n,...o.props,ref:o.triggerRef,children:o.contents})}function DL(e=document){if(e===void 0)return;const t=e.querySelectorAll(".js-userCard:not(.js-userCardInitialized)"),n=Array.from(t).map(r=>{const o=r.dataset.userid;if(!o)return mn("No userID for found for js-userCard: ",r),null;const a=Number.parseInt(o);if(Number.isNaN(a))return mn(`Invalid userID \`${o}\` found for js-userCard: `,r),null;const i=xce(r),s=r.tagName.toLowerCase();return i.className=i.className??"",i.className+=" js-userCardInitialized",{component:u.jsx(oz,{userID:a,children:u.jsx(iCe,{Tag:s,tagProps:i,domNodesToAttach:Array.from(r.childNodes)})}),target:r}}).filter(Do);G6(n,void 0,{overwrite:!0})}const hB=W.createContext(null);function u9(){const e=x.useContext(hB),t=q6();return e===null&&t(new Error("Attempting to create a dashboard from component without a form group. Be sure to place it in a <DashboardFormGroup />")),e}const I0=re(()=>{const e=ee(),t=Tt("dashboard");Ht().mediaQueries();const n=S({...kr(18),paddingLeft:18,paddingRight:18,marginTop:-1,display:"flex",alignItems:"center",justifyContent:"space-between",fontWeight:600,fontSize:14,lineHeight:1.5},"label:dashboardStyles-subHeading"),r=S({display:"flex",alignItems:"center",gap:8,"& button, & [role='button']":{minHeight:28,lineHeight:"26px"}},"label:dashboardStyles-subHeadingActions"),o=t({"&.subheading":{fontSize:"14px",marginBottom:"0",paddingTop:9,paddingBottom:9,borderTop:"1px solid #D8D8D8",borderBottom:"1px solid #D8D8D8",backgroundColor:"#f6f9fb",textTransform:"uppercase",maxHeight:41}}),a=t({padding:0}),i=S({...kr(18)},"label:dashboardStyles-extendRow"),s=t("helpAsset",{fontSize:"inherit !important",marginBottom:e.gutter.size}),l=t("tokenInput",{fontSize:"inherit"}),c=t("selectOne",{"&.SelectOne__value-container.inputText.inputText":{fontSize:"inherit"}}),d=S({minHeight:49,display:"flex",justifyContent:"flex-end",alignItems:"center",borderBottom:wt(),"& span:first-of-type":{marginRight:"auto"}},"label:dashboardStyles-formListItem"),f=S({fontSize:e.fonts.size.medium,fontWeight:e.fonts.weights.semiBold},"label:dashboardStyles-formListItemTitle"),h=S({display:"inline-block",fontSize:e.fonts.size.small,fontWeight:e.fonts.weights.normal,marginTop:e.fonts.size.medium-e.fonts.size.small,color:"#767676",marginRight:30,"&:last-of-type":{marginRight:53}},"label:dashboardStyles-formListItemStatus"),m=S({"& svg":{maxWidth:21}},"label:dashboardStyles-formListItemAction"),g=S({position:"relative","&:before, &:after":{content:"''",display:"block",width:18,height:"100%",borderBottom:wt(),position:"absolute",bottom:-1},"&:before":{left:-18},"&:after":{right:-18}},"label:dashboardStyles-extendBottomBorder"),p=S({minHeight:102,display:"flex",padding:"16px 0",alignItems:"center",borderBottom:wt(),"& .mediaAddonListItem_icon":{marginRight:14,borderRadius:4,backgroundColor:"#f6f9fb",overflow:"hidden","& img":{maxHeight:84,width:"auto",minWidth:84}},"& .mediaAddonListItem_details":{maxWidth:"80ch",marginRight:"auto","& h3":{fontSize:e.fonts.size.medium,marginBottom:e.spacer.headingItem}},"& .mediaAddonListItem_config":{marginRight:19}},"label:dashboardStyles-mediaAddonListItem"),v=S({pointerEvents:"none",opacity:.5,cursor:"not-allowed",'& div[class^="toggle"]':{cursor:"not-allowed"}},"label:dashboardStyles-disabled"),b=S({"&&":{marginTop:0,borderRadius:"6px 0 0 6px !important"}},"label:dashboardStyles-colorInput"),y=S({"&&":{border:"1px solid",borderColor:P.colorOut(e.borderType.formElements.default.color),borderRadius:"0 6px 6px 0",borderLeft:0}},"label:dashboardStyles-swatch"),C=S({display:"inline-flex",alignItems:"center",...E.font({weight:e.fonts.weights.semiBold}),...E.margin({bottom:0})},"label:dashboardStyles-label"),D=S({position:"absolute",color:P.colorOut(e.messageColors.error.fg),left:8},"label:dashboardStyles-labelRequired"),A=S({marginLeft:4,maxHeight:"1em",verticalAlign:"middle"},"label:dashboardStyles-labelIcon"),T=S({"&&":{paddingLeft:0}},"label:dashboardStyles-noLeftPadding"),B=S({display:"block",fontSize:12,lineHeight:1.3333333333,color:"#949aa2",marginTop:"1em"},"label:dashboardStyles-helperText"),j=S({"& input":{fontSize:14}},"label:dashboardStyles-passwordInput"),R=S({display:"flex",width:"100%","& > input":{flex:1},"&.isCompact":{"& input":{height:"initial"}}},"label:dashboardStyles-inputWrapper"),N=S({"& textarea":{fontSize:"14px"}},"label:dashboardStyles-multiLineInput"),_=S({paddingTop:1,paddingBottom:1,alignItems:"center","& input":{minHeight:32,lineHeight:"32px"}},"label:dashboardStyles-reachAutocompleteInput"),U=S({position:"relative",width:0,transform:"translateX(15px)",fontSize:16,fontWeight:e.fonts.weights.semiBold},"label:dashboardStyles-currencySymbol"),V=S({display:"flex",alignItems:"center","& input":{paddingLeft:"35px"}},"label:dashboardStyles-currencyInput"),z=S({paddingTop:8,paddingBottom:8},"label:dashboardStyles-readonlyRow"),Y=S({display:"flex",alignItems:"center",flexWrap:"wrap",gap:8,paddingTop:8,paddingBottom:8},"label:dashboardStyles-readonlyTokens"),te=S({},"label:dashboardStyles-readonlyDescription"),se=S({},"label:dashboardStyles-readonlyEmptyMessage"),he=S({display:"flex",flexWrap:"wrap",alignItems:"center","& input":{textAlign:"center"},"@media (max-width: 300px)":{flexDirection:"column"},gap:"12px"},"label:dashboardStyles-ratioInputContainer"),pe=S({maxWidth:"4em"},"label:dashboardStyles-ratioInput"),K=S({backgroundColor:P.colorOut(e.messageColors.error.bg.fade(.25))},"label:dashboardStyles-highlight"),O=S({maxWidth:"100%",height:"auto",border:wt(),borderRadius:4,marginTop:8,marginBottom:8},"label:dashboardStyles-imagePreview");return{subHeading:n,subHeadingBackground:o,subHeadingActions:r,formList:a,inputWrapper:R,helpAsset:s,tokenInput:l,selectOne:c,extendRow:i,formListItem:d,formListItemTitle:f,formListItemStatus:h,formListItemAction:m,extendBottomBorder:g,mediaAddonListItem:p,disabled:v,colorInput:b,swatch:y,label:C,labelRequired:D,labelIcon:A,noLeftPadding:T,helperText:B,passwordInput:j,currencySymbol:U,currencyInput:V,multiLineInput:N,readonlyRow:z,readonlyTokens:Y,readonlyDescription:te,readonlyEmptyMessage:se,ratioInputContainer:he,ratioInput:pe,highlight:K,imagePreview:O,content:S({margin:"16px 0",padding:"0 18px"},"label:dashboardStyles-content"),reachAutocompleteInput:_}}),mB=re(e=>{const t=Ht().mediaQueries(),n=ee(),r=S({...kr(18),display:"flex",flexWrap:"nowrap",alignItems:"center",paddingTop:"16px",paddingBottom:"16px",marginBottom:0,borderBottom:wt(),...t.oneColumnDown({flexWrap:"wrap"}),"&:last-child":{borderBottom:"none"},"&.isJustifiedGroup":{justifyContent:"space-between"},"&.isCompact":{borderBottom:"none",paddingTop:8,paddingBottom:8},"&.formGroup-radio, &.formGroup-textarea, &.formGroup-select":{alignItems:"flex-start","& .modernInputWrap > &:first-child":{paddingTop:0}},"&.isCompact.formGroup-checkBox":{marginTop:-16},":not(.formGroup-checkBox) + .formGroup-checkBox":{marginTop:0}},"label:DashboardFormGroup-classes-formGroup"),o=S({position:"relative",minHeight:1,paddingLeft:18,paddingRight:18,minWidth:0,overflow:"hidden",flex:"0 0 58.3333333333%",...t.oneColumnDown({flex:"0 0 100%",marginBottom:4}),"&.isVertical":{flex:"0 0 100%",marginBottom:4},"&.isCompact":{flex:"0 0 41%"}},"label:DashboardFormGroup-classes-labelWrap"),a=ge(o,S({flex:"1 0 41.6666666667%","&.isCompact":{flex:"1 0 41%"}},"label:DashboardFormGroup-classes-labelWrapWide")),i=S({position:"relative",minHeight:1,paddingLeft:18,paddingRight:18,minWidth:0,flex:"0 0 41.6666666667%","&.isCompact":{flex:"0 0 59%",display:"flex",maxWidth:"59%",flexWrap:"wrap","& textarea, & input":{fontSize:13,borderColor:P.colorOut(n.border.color),"&:focus, &:hover, &:active, &.focus-visible":{borderColor:P.colorOut(n.elementaryColors.primary)}},"& input":{minHeight:28,lineHeight:"28px",padding:"0 8px",height:"initial"},"& > button":{minHeight:28,lineHeight:"28px"}},...t.oneColumnDown({flex:"0 0 100%","& input":{fontSize:"16px"}}),"&.isInline":{display:"flex",flexWrap:"wrap",alignItems:"center","& label":{marginRight:4}},"&.isVertical":{flexDirection:"column"},"&.isGrid":{display:"flex",flexWrap:"wrap",alignItems:"stretch",gap:8,"& label":{marginTop:0,flexBasis:"calc(50% - 8px)",display:"block !important",...t.oneColumnDown({flexBasis:"100%",marginTop:8})},"& span":{whiteSpace:"normal"}},".formGroup-checkBox.isCompact &":{width:"100%",flex:1,maxWidth:"100%"}},"label:DashboardFormGroup-classes-inputWrap"),s=ge(i,S({flex:"initial","&.isCompact":{flex:"initial"}},"label:DashboardFormGroup-classes-inputWrapRight")),l=S({position:"relative",minHeight:1,paddingLeft:18,paddingRight:18},"label:DashboardFormGroup-classes-inputWrapNone"),c=S({display:"block",fontSize:12,lineHeight:1.4,color:P.colorOut(Tn().font.color),marginTop:4},"label:DashboardFormGroup-classes-labelInfo"),d=S({"&&":{display:"block"},[`& .${c}`]:{marginBottom:8}},"label:DashboardFormGroup-classes-vertical");return{formGroup:r,labelWrap:o,labelWrapWide:a,inputWrap:i,inputWrapRight:s,labelInfo:c,vertical:d,noBorder:S({borderBottom:"none",paddingBottom:8},"label:DashboardFormGroup-classes-noBorder"),afterGroup:S({width:"100%",minWidth:"100%"},"label:DashboardFormGroup-classes-afterGroup"),isNested:S({paddingTop:0},"label:DashboardFormGroup-classes-isNested"),inputWrapNone:l}}),sCe=W.createContext({compact:!1,forceVerticalLabels:!1});function N1(){return W.useContext(sCe)}var pB=cCe,lCe=Object.prototype.hasOwnProperty;function cCe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)lCe.call(n,r)&&(e[r]=n[r])}return e}var uCe=dCe;function dCe(e){if(e)throw e}var d9=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},T0=Object.prototype.hasOwnProperty,f9=Object.prototype.toString,EL=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,TL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):f9.call(t)==="[object Array]"},AL=function(t){if(!t||f9.call(t)!=="[object Object]")return!1;var n=T0.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&T0.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||T0.call(t,o)},OL=function(t,n){EL&&n.name==="__proto__"?EL(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},BL=function(t,n){if(n==="__proto__")if(T0.call(t,n)){if(IL)return IL(t,n).value}else return;return t[n]},fCe=function e(){var t,n,r,o,a,i,s=arguments[0],l=1,c=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=BL(s,n),o=BL(t,n),s!==o&&(d&&o&&(AL(o)||(a=TL(o)))?(a?(a=!1,i=r&&TL(r)?r:[]):i=r&&AL(r)?r:{},OL(s,{name:n,newValue:e(d,i,o)})):typeof o<"u"&&OL(s,{name:n,newValue:o}));return s},hCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},mCe=[].slice,pCe=gCe;function gCe(e,t){var n;return r;function r(){var i=mCe.call(arguments,0),s=e.length>i.length,l;s&&i.push(o);try{l=e.apply(null,i)}catch(c){if(s&&n)throw c;return o(c)}s||(l&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(){n||(n=!0,t.apply(null,arguments))}function a(i){o(null,i)}}var h9=pCe,vCe=m9;m9.wrap=h9;var kL=[].slice;function m9(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,a=kL.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);s.apply(null,[null].concat(a));function s(l){var c=e[++o],d=kL.call(arguments,0),f=d.slice(1),h=a.length,m=-1;if(l){i(l);return}for(;++m<h;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,c?h9(c,s).apply(null,a):i.apply(null,[null].concat(a))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var Xd={}.hasOwnProperty,p9=bCe;function bCe(e){return!e||typeof e!="object"?"":Xd.call(e,"position")||Xd.call(e,"type")?PL(e.position):Xd.call(e,"start")||Xd.call(e,"end")?PL(e):Xd.call(e,"line")||Xd.call(e,"column")?sI(e):""}function sI(e){return(!e||typeof e!="object")&&(e={}),RL(e.line)+":"+RL(e.column)}function PL(e){return(!e||typeof e!="object")&&(e={}),sI(e.start)+"-"+sI(e.end)}function RL(e){return e&&typeof e=="number"?e:1}var yCe=p9,xCe=gB;function g9(){}g9.prototype=Error.prototype;gB.prototype=new g9;var Yc=gB.prototype;Yc.file="";Yc.name="";Yc.reason="";Yc.message="";Yc.stack="";Yc.fatal=null;Yc.column=null;Yc.line=null;function gB(e,t,n){var r,o,a;typeof t=="string"&&(n=t,t=null),r=CCe(n),o=yCe(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=r[0],this.ruleId=r[1]}function CCe(e){var t=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?t[1]=e:(t[0]=e.slice(0,n),t[1]=e.slice(n+1))),t}var nm={};nm.basename=wCe;nm.dirname=SCe;nm.extname=DCe;nm.join=ECe;nm.sep="/";function wCe(e,t){var n=0,r=-1,o,a,i,s;if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');if(Iv(e),o=e.length,t===void 0||!t.length||t.length>e.length){for(;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";for(a=-1,s=t.length-1;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else a<0&&(i=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(r=o):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function SCe(e){var t,n,r;if(Iv(e),!e.length)return".";for(t=-1,r=e.length;--r;)if(e.charCodeAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function DCe(e){var t=-1,n=0,r=-1,o=0,a,i,s;for(Iv(e),s=e.length;s--;){if(i=e.charCodeAt(s),i===47){if(a){n=s+1;break}continue}r<0&&(a=!0,r=s+1),i===46?t<0?t=s:o!==1&&(o=1):t>-1&&(o=-1)}return t<0||r<0||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)}function ECe(){for(var e=-1,t;++e<arguments.length;)Iv(arguments[e]),arguments[e]&&(t=t===void 0?arguments[e]:t+"/"+arguments[e]);return t===void 0?".":ICe(t)}function ICe(e){var t,n;return Iv(e),t=e.charCodeAt(0)===47,n=TCe(e,!t),!n.length&&!t&&(n="."),n.length&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function TCe(e,t){for(var n="",r=0,o=-1,a=0,i=-1,s,l;++i<=e.length;){if(i<e.length)s=e.charCodeAt(i);else{if(s===47)break;s=47}if(s===47){if(!(o===i-1||a===1))if(o!==i-1&&a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=i,a=0;continue}}else if(n.length){n="",r=0,o=i,a=0;continue}}t&&(n=n.length?n+"/..":"..",r=2)}else n.length?n+="/"+e.slice(o+1,i):n=e.slice(o+1,i),r=i-o-1;o=i,a=0}else s===46&&a>-1?a++:a=-1}return n}function Iv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var v9={};v9.cwd=ACe;function ACe(){return"/"}var Ts=nm,OCe=v9,BCe=d9,kCe=Tl,PCe={}.hasOwnProperty,wS=["history","path","basename","stem","extname","dirname"];Tl.prototype.toString=HCe;Object.defineProperty(Tl.prototype,"path",{get:RCe,set:jCe});Object.defineProperty(Tl.prototype,"dirname",{get:NCe,set:LCe});Object.defineProperty(Tl.prototype,"basename",{get:$Ce,set:MCe});Object.defineProperty(Tl.prototype,"extname",{get:_Ce,set:FCe});Object.defineProperty(Tl.prototype,"stem",{get:WCe,set:zCe});function Tl(e){var t,n;if(!e)e={};else if(typeof e=="string"||BCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Tl))return new Tl(e);for(this.data={},this.messages=[],this.history=[],this.cwd=OCe.cwd(),n=-1;++n<wS.length;)t=wS[n],PCe.call(e,t)&&(this[t]=e[t]);for(t in e)wS.indexOf(t)<0&&(this[t]=e[t])}function RCe(){return this.history[this.history.length-1]}function jCe(e){bB(e,"path"),this.path!==e&&this.history.push(e)}function NCe(){return typeof this.path=="string"?Ts.dirname(this.path):void 0}function LCe(e){b9(this.path,"dirname"),this.path=Ts.join(e||"",this.basename)}function $Ce(){return typeof this.path=="string"?Ts.basename(this.path):void 0}function MCe(e){bB(e,"basename"),vB(e,"basename"),this.path=Ts.join(this.dirname||"",e)}function _Ce(){return typeof this.path=="string"?Ts.extname(this.path):void 0}function FCe(e){if(vB(e,"extname"),b9(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=Ts.join(this.dirname,this.stem+(e||""))}function WCe(){return typeof this.path=="string"?Ts.basename(this.path,this.extname):void 0}function zCe(e){bB(e,"stem"),vB(e,"stem"),this.path=Ts.join(this.dirname||"",e+(this.extname||""))}function HCe(e){return(this.contents||"").toString(e)}function vB(e,t){if(e&&e.indexOf(Ts.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+Ts.sep+"`")}function bB(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b9(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var UCe=xCe,L1=kCe,VCe=L1;L1.prototype.message=GCe;L1.prototype.info=KCe;L1.prototype.fail=YCe;function GCe(e,t,n){var r=new UCe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function YCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function KCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var qCe=VCe,jL=uCe,XCe=d9,Ib=fCe,NL=hCe,y9=vCe,tp=qCe,x9=C9().freeze(),QCe=[].slice,ZCe={}.hasOwnProperty,JCe=y9().use(ewe).use(twe).use(nwe);function ewe(e,t){t.tree=e.parse(t.file)}function twe(e,t,n){e.run(t.tree,t.file,r);function r(o,a,i){o?n(o):(t.tree=a,t.file=i,n())}}function nwe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||XCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function C9(){var e=[],t=y9(),n={},r=-1,o;return a.data=s,a.freeze=i,a.attachers=e,a.use=l,a.parse=d,a.stringify=m,a.run=f,a.runSync=h,a.process=g,a.processSync=p,a;function a(){for(var v=C9(),b=-1;++b<e.length;)v.use.apply(null,e[b]);return v.data(Ib(!0,{},n)),v}function i(){var v,b;if(o)return a;for(;++r<e.length;)v=e[r],v[1]!==!1&&(v[1]===!0&&(v[1]=void 0),b=v[0].apply(a,v.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,a}function s(v,b){return typeof v=="string"?arguments.length===2?(ES("data",o),n[v]=b,a):ZCe.call(n,v)&&n[v]||null:v?(ES("data",o),n=v,a):n}function l(v){var b;if(ES("use",o),v!=null)if(typeof v=="function")A.apply(null,arguments);else if(typeof v=="object")"length"in v?D(v):y(v);else throw new Error("Expected usable value, not `"+v+"`");return b&&(n.settings=Ib(n.settings||{},b)),a;function y(T){D(T.plugins),T.settings&&(b=Ib(b||{},T.settings))}function C(T){if(typeof T=="function")A(T);else if(typeof T=="object")"length"in T?A.apply(null,T):y(T);else throw new Error("Expected usable value, not `"+T+"`")}function D(T){var B=-1;if(T!=null)if(typeof T=="object"&&"length"in T)for(;++B<T.length;)C(T[B]);else throw new Error("Expected a list of plugins, not `"+T+"`")}function A(T,B){var j=c(T);j?(NL(j[1])&&NL(B)&&(B=Ib(!0,j[1],B)),j[1]=B):e.push(QCe.call(arguments))}}function c(v){for(var b=-1;++b<e.length;)if(e[b][0]===v)return e[b]}function d(v){var b=tp(v),y;return i(),y=a.Parser,SS("parse",y),LL(y,"parse")?new y(String(b),b).parse():y(String(b),b)}function f(v,b,y){if($L(v),i(),!y&&typeof b=="function"&&(y=b,b=null),!y)return new Promise(C);C(null,y);function C(D,A){t.run(v,tp(b),T);function T(B,j,R){j=j||v,B?A(B):D?D(j):y(null,j,R)}}}function h(v,b){var y,C;return f(v,b,D),ML("runSync","run",C),y;function D(A,T){C=!0,y=T,jL(A)}}function m(v,b){var y=tp(b),C;return i(),C=a.Compiler,DS("stringify",C),$L(v),LL(C,"compile")?new C(v,y).compile():C(v,y)}function g(v,b){if(i(),SS("process",a.Parser),DS("process",a.Compiler),!b)return new Promise(y);y(null,b);function y(C,D){var A=tp(v);JCe.run(a,{file:A},T);function T(B){B?D(B):C?C(A):b(null,A)}}}function p(v){var b,y;return i(),SS("processSync",a.Parser),DS("processSync",a.Compiler),b=tp(v),g(b,C),ML("processSync","process",y),b;function C(D){y=!0,jL(D)}}}function LL(e,t){return typeof e=="function"&&e.prototype&&(rwe(e.prototype)||t in e.prototype)}function rwe(e){var t;for(t in e)return!0;return!1}function SS(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}function DS(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}function ES(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function $L(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}function ML(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}const cmt=jr(x9);var owe=w9;function w9(e){return e&&(e.value||e.alt||e.title||"children"in e&&_L(e.children)||"length"in e&&_L(e))||""}function _L(e){for(var t=[],n=-1;++n<e.length;)t[n]=w9(e[n]);return t.join("")}var awe=Object.assign,Tv=awe,iwe={}.hasOwnProperty,S9=iwe;function swe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var yB=swe,lwe=String.fromCharCode,$1=lwe,cwe=$1;function uwe(e,t){var n=parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":cwe(n)}var dwe=uwe,xB={};function fwe(e){return e<-2}var Ur=fwe;function hwe(e){return e===-2||e===-1||e===32}var Fl=hwe,FL=Fl;function mwe(e,t,n,r){var o=r?r-1:1/0,a=0;return i;function i(l){return FL(l)?(e.enter(n),s(l)):t(l)}function s(l){return FL(l)&&a++<o?(e.consume(l),s):(e.exit(n),t(l))}}var po=mwe;Object.defineProperty(xB,"__esModule",{value:!0});var pwe=Ur,gwe=po,vwe=bwe;function bwe(e){var t=e.attempt(this.parser.constructs.contentInitial,r,o),n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),gwe(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),a(s)}function a(s){var l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return pwe(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}xB.tokenize=vwe;var CB={},ywe=Ur,xwe=po,Cwe={tokenize:wwe,partial:!0};function wwe(e,t,n){return xwe(e,r,"linePrefix");function r(o){return o===null||ywe(o)?t(o):n(o)}}var M1=Cwe;Object.defineProperty(CB,"__esModule",{value:!0});var Swe=Ur,D9=po,Dwe=M1,Ewe=Twe,IS={tokenize:Awe},Iwe={tokenize:Owe};function Twe(e){var t=this,n=[],r=0,o={tokenize:b,partial:!0},a,i,s;return l;function l(y){return r<n.length?(t.containerState=n[r][1],e.attempt(n[r][0].continuation,c,d)(y)):d(y)}function c(y){return r++,l(y)}function d(y){return a&&a.flowContinue?h(y):(t.interrupt=i&&i.currentConstruct&&i.currentConstruct.interruptible,t.containerState={},e.attempt(IS,f,h)(y))}function f(y){return n.push([t.currentConstruct,t.containerState]),t.containerState=void 0,d(y)}function h(y){if(y===null){v(0,!0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),m(y)}function m(y){return y===null?(p(e.exit("chunkFlow")),h(y)):Swe(y)?(e.consume(y),p(e.exit("chunkFlow")),e.check(o,g)):(e.consume(y),m)}function g(y){return v(a.continued,a&&a.flowEnd),r=0,l(y)}function p(y){s&&(s.next=y),s=y,i.lazy=a&&a.lazy,i.defineSkip(y.start),i.write(t.sliceStream(y))}function v(y,C){var D=n.length;for(i&&C&&(i.write([null]),s=i=void 0);D-- >y;)t.containerState=n[D][1],n[D][0].exit.call(t,e);n.length=y}function b(y,C){var D=0;return a={},A;function A(_){return D<n.length?(t.containerState=n[D][1],y.attempt(n[D][0].continuation,T,B)(_)):i.currentConstruct&&i.currentConstruct.concrete?(a.flowContinue=!0,N(_)):(t.interrupt=i.currentConstruct&&i.currentConstruct.interruptible,t.containerState={},y.attempt(IS,R,N)(_))}function T(_){return D++,t.containerState._closeFlow?R(_):A(_)}function B(_){return i.currentConstruct&&i.currentConstruct.lazy?(t.containerState={},y.attempt(IS,R,y.attempt(Iwe,R,y.check(Dwe,R,j)))(_)):R(_)}function j(_){return D=n.length,a.lazy=!0,a.flowContinue=!0,N(_)}function R(_){return a.flowEnd=!0,N(_)}function N(_){return a.continued=D,t.interrupt=t.containerState=void 0,C(_)}}}function Awe(e,t,n){return D9(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function Owe(e,t,n){return D9(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}CB.tokenize=Ewe;var wB={};function Bwe(e){for(var t=-1,n=0;++t<e.length;)n+=typeof e[t]=="string"?e[t].length:1;return n}var E9=Bwe,kwe=E9;function Pwe(e,t){var n=e[e.length-1];return!n||n[1].type!==t?0:kwe(n[2].sliceStream(n[1]))}var _1=Pwe,Rwe=[].splice,jwe=Rwe,TS=jwe;function Nwe(e,t,n,r){var o=e.length,a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),TS.apply(e,i);else for(n&&TS.apply(e,[t,n]);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),TS.apply(e,i),a+=1e4,t+=1e4}var Kc=Nwe,Lwe=Tv;function $we(e){return Lwe({},e)}var rm=$we,Mwe=Tv,I9=Kc,_we=rm;function Fwe(e){for(var t={},n=-1,r,o,a,i,s,l,c;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1].isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Mwe(t,Wwe(e,n)),n=t[n],c=!0);else if(r[1]._container||r[1]._movePreviousLineEndings){for(a=n,o=void 0;a--&&(i=e[a],i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);o&&(r[1].end=_we(e[o][1].start),s=e.slice(o,n),s.unshift(r),I9(e,o,n-o+1,s))}}return!c}function Wwe(e,t){for(var n=e[t][1],r=e[t][2],o=t-1,a=[],i=n._tokenizer||r.parser[n.contentType](n.start),s=i.events,l=[],c={},d,f,h,m,g,p;n;){for(;e[++o][1]!==n;);a.push(o),n._tokenizer||(d=r.sliceStream(n),n.next||d.push(null),f&&i.defineSkip(n.start),n.isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(d),n.isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=n,n=n.next}for(n=f,h=s.length;h--;)s[h][0]==="enter"?m=!0:m&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v(s.slice(h+1,g)),n._tokenizer=n.next=void 0,n=n.previous,g=h+1);for(i.events=n._tokenizer=n.next=void 0,v(s.slice(0,g)),h=-1,p=0;++h<l.length;)c[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return c;function v(b){var y=a.pop();l.unshift([y,y+b.length-1]),I9(e,y,2,b)}}var T9=Fwe,A9=Ur,zwe=_1,Hwe=T9,Uwe=po,Vwe={tokenize:Kwe,resolve:Ywe,interruptible:!0,lazy:!0},Gwe={tokenize:qwe,partial:!0};function Ywe(e){return Hwe(e),e}function Kwe(e,t){var n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?a(s):A9(s)?e.check(Gwe,i,a)(s):(e.consume(s),o)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}}function qwe(e,t,n){var r=this;return o;function o(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Uwe(e,a,"linePrefix")}function a(i){return i===null||A9(i)?n(i):r.parser.constructs.disable.null.indexOf("codeIndented")>-1||zwe(r.events,"linePrefix")<4?e.interrupt(r.parser.constructs.flow,n,t)(i):t(i)}}var Xwe=Vwe;Object.defineProperty(wB,"__esModule",{value:!0});var Qwe=Xwe,Zwe=po,Jwe=M1,eSe=tSe;function tSe(e){var t=this,n=e.attempt(Jwe,r,e.attempt(this.parser.constructs.flowInitial,o,Zwe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Qwe,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}wB.tokenize=eSe;var om={};Object.defineProperty(om,"__esModule",{value:!0});var nSe=Tv,WL=rm,rSe=O9("text"),oSe=O9("string"),aSe={resolveAll:B9()};function O9(e){return{tokenize:t,resolveAll:B9(e==="text"?iSe:void 0)};function t(n){var r=this,o=this.parser.constructs[e],a=n.attempt(o,i,s);return i;function i(d){return c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(d){var f=o[d],h=-1;if(d===null)return!0;if(f){for(;++h<f.length;)if(!f[h].previous||f[h].previous.call(r,r.previous))return!0}}}}function B9(e){return t;function t(n,r){for(var o=-1,a;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function iSe(e,t){for(var n=-1,r,o,a,i,s,l,c,d;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){for(o=e[n-1][1],r=t.sliceStream(o),i=r.length,s=-1,l=0,c=void 0;i--;)if(a=r[i],typeof a=="string"){for(s=a.length;a.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(a===-2)c=!0,l++;else if(a!==-1){i++;break}l&&(d={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+i,_bufferIndex:i?s:o.start._bufferIndex+s},end:WL(o.end)},o.end=WL(d.start),o.start.offset===o.end.offset?nSe(o,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)),n++}return e}om.resolver=aSe;om.string=oSe;om.text=rSe;function sSe(e){return e==null?[]:"length"in e?e:[e]}var SB=sSe,zL=S9,lSe=Kc,cSe=SB;function uSe(e){for(var t={},n=-1;++n<e.length;)dSe(t,e[n]);return t}function dSe(e,t){var n,r,o,a;for(n in t){r=zL.call(e,n)?e[n]:e[n]={},o=t[n];for(a in o)r[a]=fSe(cSe(o[a]),zL.call(r,a)?r[a]:[])}}function fSe(e,t){for(var n=-1,r=[];++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);return lSe(t,0,0,r),t}var hSe=uSe,mSe=Kc;function pSe(e,t){return e.length?(mSe(e,e.length,0,t),e):t}var DB=pSe;function gSe(e,t,n){for(var r=[],o=-1,a;++o<e.length;)a=e[o].resolveAll,a&&r.indexOf(a)<0&&(t=a(t,n),r.push(a));return t}var EB=gSe,vSe=$1;function bSe(e){for(var t=-1,n=[],r,o,a;++t<e.length;){if(r=e[t],typeof r=="string")o=r;else if(r===-5)o="\r";else if(r===-4)o=`
`;else if(r===-3)o=`\r
`;else if(r===-2)o="	";else if(r===-1){if(a)continue;o=" "}else o=vSe(r);a=r===-2,n.push(o)}return n.join("")}var ySe=bSe;function xSe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex,i;return n===o?i=[e[n].slice(r,a)]:(i=e.slice(n,o),r>-1&&(i[0]=i[0].slice(r)),a>0&&i.push(e[o].slice(0,a))),i}var CSe=xSe,wSe=Tv,SSe=Ur,DSe=DB,ESe=Kc,AS=SB,ISe=EB,TSe=ySe,HL=rm,ASe=CSe;function OSe(e,t,n){var r=n?HL(n):{line:1,column:1,offset:0},o={},a=[],i=[],s=[],l={consume:y,enter:C,exit:D,attempt:B(A),check:B(T),interrupt:B(T,{interrupt:!0}),lazy:B(T,{lazy:!0})},c={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:h,now:g,defineSkip:p,write:f},d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),r._index=0,r._bufferIndex=-1,c;function f(_){return i=DSe(i,_),v(),i[i.length-1]!==null?[]:(j(t,0),c.events=ISe(a,c.events,c),c.events)}function h(_){return TSe(m(_))}function m(_){return ASe(i,_)}function g(){return HL(r)}function p(_){o[_.line]=_.column,N()}function v(){for(var _,U;r._index<i.length;)if(U=i[r._index],typeof U=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<U.length;)b(U.charCodeAt(r._bufferIndex));else b(U)}function b(_){d=d(_)}function y(_){SSe(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,N()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=_}function C(_,U){var V=U||{};return V.type=_,V.start=g(),c.events.push(["enter",V,c]),s.push(V),V}function D(_){var U=s.pop();return U.end=g(),c.events.push(["exit",U,c]),U}function A(_,U){j(_,U.from)}function T(_,U){U.restore()}function B(_,U){return V;function V(z,Y,te){var se,he,pe,K;return z.tokenize||"length"in z?le(AS(z)):O;function O(oe){return oe in z||null in z?le(z.null?AS(z[oe]).concat(AS(z.null)):z[oe])(oe):te(oe)}function le(oe){return se=oe,he=0,be(oe[he])}function be(oe){return ve;function ve($e){return K=R(),pe=oe,oe.partial||(c.currentConstruct=oe),oe.name&&c.parser.constructs.disable.null.indexOf(oe.name)>-1?ie():oe.tokenize.call(U?wSe({},c,U):c,l,H,ie)($e)}}function H(oe){return _(pe,K),Y}function ie(oe){return K.restore(),++he<se.length?be(se[he]):te}}}function j(_,U){_.resolveAll&&a.indexOf(_)<0&&a.push(_),_.resolve&&ESe(c.events,U,c.events.length-U,_.resolve(c.events.slice(U),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function R(){var _=g(),U=c.previous,V=c.currentConstruct,z=c.events.length,Y=Array.from(s);return{restore:te,from:z};function te(){r=_,c.previous=U,c.currentConstruct=V,c.events.length=z,s=Y,N()}}function N(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var BSe=OSe,Ws={};function kSe(e){return e<0||e===32}var qc=kSe,PSe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,RSe=PSe,jSe=$1;function NSe(e){return t;function t(n){return e.test(jSe(n))}}var Xc=NSe,LSe=RSe,$Se=Xc,MSe=$Se(LSe),_Se=MSe,FSe=Xc,WSe=FSe(/\s/),zSe=WSe,HSe=qc,USe=_Se,VSe=zSe;function GSe(e){if(e===null||HSe(e)||VSe(e))return 1;if(USe(e))return 2}var YSe=GSe;function KSe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var qSe=KSe,np=DB,XSe=Kc,UL=YSe,VL=qSe,QSe=EB,rs=rm,ZSe={name:"attention",tokenize:eDe,resolveAll:JSe};function JSe(e,t){for(var n=-1,r,o,a,i,s,l,c,d;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,i={type:l>1?"strongSequence":"emphasisSequence",start:VL(rs(e[r][1].end),-l),end:rs(e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:rs(e[n][1].start),end:VL(rs(e[n][1].start),l)},a={type:l>1?"strongText":"emphasisText",start:rs(e[r][1].end),end:rs(e[n][1].start)},o={type:l>1?"strong":"emphasis",start:rs(i.start),end:rs(s.end)},e[r][1].end=rs(i.start),e[n][1].start=rs(s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=np(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=np(c,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),c=np(c,QSe(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=np(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=np(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,XSe(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function eDe(e,t){var n=UL(this.previous),r;return o;function o(i){return e.enter("attentionSequence"),r=i,a(i)}function a(i){var s,l,c,d;return i===r?(e.consume(i),a):(s=e.exit("attentionSequence"),l=UL(i),c=!l||l===2&&n,d=!n||n===2&&l,s._open=r===42?c:c&&(n||!d),s._close=r===42?d:d&&(l||!c),t(i))}}var tDe=ZSe,nDe=Xc,rDe=nDe(/[A-Za-z]/),IB=rDe,oDe=Xc,aDe=oDe(/[\dA-Za-z]/),F1=aDe,iDe=Xc,sDe=iDe(/[#-'*+\--9=?A-Z^-~]/),lDe=sDe;function cDe(e){return e<32||e===127}var k9=cDe,uDe=IB,Tb=F1,GL=lDe,dDe=k9,fDe={name:"autolink",tokenize:hDe};function hDe(e,t,n){var r=1;return o;function o(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return uDe(g)?(e.consume(g),i):GL(g)?c(g):n(g)}function i(g){return g===43||g===45||g===46||Tb(g)?s(g):c(g)}function s(g){return g===58?(e.consume(g),l):(g===43||g===45||g===46||Tb(g))&&r++<32?(e.consume(g),s):c(g)}function l(g){return g===62?(e.exit("autolinkProtocol"),m(g)):g===32||g===60||dDe(g)?n(g):(e.consume(g),l)}function c(g){return g===64?(e.consume(g),r=0,d):GL(g)?(e.consume(g),c):n(g)}function d(g){return Tb(g)?f(g):n(g)}function f(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",m(g)):h(g)}function h(g){return(g===45||Tb(g))&&r++<63?(e.consume(g),g===45?h:f):n(g)}function m(g){return e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t}}var mDe=fDe,pDe=Fl,gDe=po,P9={name:"blockQuote",tokenize:vDe,continuation:{tokenize:bDe},exit:yDe};function vDe(e,t,n){var r=this;return o;function o(i){return i===62?(r.containerState.open||(e.enter("blockQuote",{_container:!0}),r.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a):n(i)}function a(i){return pDe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function bDe(e,t,n){return gDe(e,e.attempt(P9,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function yDe(e){e.exit("blockQuote")}var xDe=P9,CDe=Xc,wDe=CDe(/[!-/:-@[-`{-~]/),SDe=wDe,DDe=SDe,EDe={name:"characterEscape",tokenize:IDe};function IDe(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return DDe(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}var TDe=EDe,Ab,ADe=59,R9=ODe;function ODe(e){var t="&"+e+";",n;return Ab=Ab||document.createElement("i"),Ab.innerHTML=t,n=Ab.textContent,n.charCodeAt(n.length-1)===ADe&&e!=="semi"||n===t?!1:n}var BDe=Xc,kDe=BDe(/\d/),j9=kDe,PDe=Xc,RDe=PDe(/[\dA-Fa-f]/),jDe=RDe,NDe=R9,YL=F1,LDe=j9,$De=jDe;function MDe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _De=MDe(NDe),FDe={name:"characterReference",tokenize:WDe};function WDe(e,t,n){var r=this,o=0,a,i;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,i=YL,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=$De,d):(e.enter("characterReferenceValue"),a=7,i=LDe,d(f))}function d(f){var h;return f===59&&o?(h=e.exit("characterReferenceValue"),i===YL&&!_De.default(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):i(f)&&o++<a?(e.consume(f),d):n(f)}}var zDe=FDe,Qd=Ur,HDe=qc,UDe=_1,rp=po,VDe={name:"codeFenced",tokenize:GDe,concrete:!0};function GDe(e,t,n){var r=this,o={tokenize:y,partial:!0},a=UDe(this.events,"linePrefix"),i=0,s;return l;function l(C){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=C,c(C)}function c(C){return C===s?(e.consume(C),i++,c):(e.exit("codeFencedFenceSequence"),i<3?n(C):rp(e,d,"whitespace")(C))}function d(C){return C===null||Qd(C)?g(C):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||HDe(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rp(e,h,"whitespace")(C)):C===96&&C===s?n(C):(e.consume(C),f)}function h(C){return C===null||Qd(C)?g(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||Qd(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(C)):C===96&&C===s?n(C):(e.consume(C),m)}function g(C){return e.exit("codeFencedFence"),r.interrupt?t(C):p(C)}function p(C){return C===null?b(C):Qd(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),e.attempt(o,b,a?rp(e,p,"linePrefix",a+1):p)):(e.enter("codeFlowValue"),v(C))}function v(C){return C===null||Qd(C)?(e.exit("codeFlowValue"),p(C)):(e.consume(C),v)}function b(C){return e.exit("codeFenced"),t(C)}function y(C,D,A){var T=0;return rp(C,B,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function B(N){return C.enter("codeFencedFence"),C.enter("codeFencedFenceSequence"),j(N)}function j(N){return N===s?(C.consume(N),T++,j):T<i?A(N):(C.exit("codeFencedFenceSequence"),rp(C,R,"whitespace")(N))}function R(N){return N===null||Qd(N)?(C.exit("codeFencedFence"),D(N)):A(N)}}}var YDe=VDe,lI=Ur,KL=Kc,KDe=_1,qL=po,qDe={name:"codeIndented",tokenize:QDe,resolve:XDe},XL={tokenize:ZDe,partial:!0};function XDe(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return KL(e,0,0,[["enter",n,t]]),KL(e,e.length,0,[["exit",n,t]]),e}function QDe(e,t,n){return e.attempt(XL,r,n);function r(a){return a===null?t(a):lI(a)?e.attempt(XL,r,t)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||lI(a)?(e.exit("codeFlowValue"),r(a)):(e.consume(a),o)}}function ZDe(e,t,n){var r=this;return qL(e,o,"linePrefix",5);function o(a){return lI(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),qL(e,o,"linePrefix",5)):KDe(r.events,"linePrefix")<4?n(a):t(a)}}var JDe=qDe,QL=Ur,eEe={name:"codeText",tokenize:rEe,resolve:tEe,previous:nEe};function tEe(e){var t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[t][1].type=e[n][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function nEe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rEe(e,t,n){var r=0,o,a;return i;function i(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===96?(a=e.enter("codeTextSequence"),o=0,d(f)):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):QL(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||QL(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",c(f))}}var oEe=eEe,ZL=k9,aEe=qc,iEe=Ur;function sEe(e,t,n,r,o,a,i,s,l){var c=l||1/0,d=0;return f;function f(b){return b===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(b),e.exit(a),h):ZL(b)||b===41?n(b):(e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function h(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(s),h(b)):b===null||b===60||iEe(b)?n(b):(e.consume(b),b===92?g:m)}function g(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function p(b){return b===40?++d>c?n(b):(e.consume(b),p):b===41?d--?(e.consume(b),p):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(b)):b===null||aEe(b)?d?n(b):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(b)):ZL(b)?n(b):(e.consume(b),b===92?v:p)}function v(b){return b===40||b===41||b===92?(e.consume(b),p):p(b)}}var N9=sEe,JL=Ur,lEe=Fl;function cEe(e,t,n,r,o,a){var i=this,s=0,l;return c;function c(m){return e.enter(r),e.enter(o),e.consume(m),e.exit(o),e.enter(a),d}function d(m){return m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs||s>999?n(m):m===93?(e.exit(a),e.enter(o),e.consume(m),e.exit(o),e.exit(r),t):JL(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||JL(m)||s++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l=l||!lEe(m),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}var L9=cEe,uEe=Ur,dEe=Fl,fEe=po;function hEe(e,t){var n;return r;function r(o){return uEe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):dEe(o)?fEe(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}var $9=hEe,e$=Ur,mEe=po;function pEe(e,t,n,r,o,a){var i;return s;function s(h){return e.enter(r),e.enter(o),e.consume(h),e.exit(o),i=h===40?41:h,l}function l(h){return h===i?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===i?(e.exit(a),l(i)):h===null?n(h):e$(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),mEe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===i||h===null||e$(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:d)}function f(h){return h===i||h===92?(e.consume(h),d):d(h)}}var M9=pEe,_9=Ur,gEe=qc,vEe=yB,bEe=N9,yEe=L9,cI=po,F9=$9,xEe=M9,CEe={name:"definition",tokenize:SEe},wEe={tokenize:DEe,partial:!0};function SEe(e,t,n){var r=this,o;return a;function a(l){return e.enter("definition"),yEe.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function i(l){return o=vEe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),F9(e,bEe(e,e.attempt(wEe,cI(e,s,"whitespace"),cI(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||_9(l)?(e.exit("definition"),r.parser.defined.indexOf(o)<0&&r.parser.defined.push(o),t(l)):n(l)}}function DEe(e,t,n){return r;function r(i){return gEe(i)?F9(e,o)(i):n(i)}function o(i){return i===34||i===39||i===40?xEe(e,cI(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(i):n(i)}function a(i){return i===null||_9(i)?t(i):n(i)}}var EEe=CEe,IEe=Ur,TEe={name:"hardBreakEscape",tokenize:AEe};function AEe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return IEe(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):n(a)}}var OEe=TEe,BEe=Ur,t$=qc,kEe=Fl,PEe=Kc,REe=po,jEe={name:"headingAtx",tokenize:LEe,resolve:NEe};function NEe(e,t){var n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},PEe(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function LEe(e,t,n){var r=this,o=0;return a;function a(d){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(d)}function i(d){return d===35&&o++<6?(e.consume(d),i):d===null||t$(d)?(e.exit("atxHeadingSequence"),r.interrupt?t(d):s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||BEe(d)?(e.exit("atxHeading"),t(d)):kEe(d)?REe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||t$(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}var $Ee=jEe,MEe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_Ee=MEe,FEe=["pre","script","style","textarea"],WEe=FEe,op=IB,n$=F1,Zd=Ur,r$=qc,Jd=Fl,Ob=$1,zEe=_Ee,o$=WEe,HEe=M1,UEe={name:"htmlFlow",tokenize:YEe,resolveTo:GEe,concrete:!0},VEe={tokenize:KEe,partial:!0};function GEe(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YEe(e,t,n){var r=this,o,a,i,s,l;return c;function c(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),d}function d(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),g):O===63?(e.consume(O),o=3,r.interrupt?t:he):op(O)?(e.consume(O),i=Ob(O),a=!0,p):n(O)}function f(O){return O===45?(e.consume(O),o=2,h):O===91?(e.consume(O),o=5,i="CDATA[",s=0,m):op(O)?(e.consume(O),o=4,r.interrupt?t:he):n(O)}function h(O){return O===45?(e.consume(O),r.interrupt?t:he):n(O)}function m(O){return O===i.charCodeAt(s++)?(e.consume(O),s===i.length?r.interrupt?t:_:m):n(O)}function g(O){return op(O)?(e.consume(O),i=Ob(O),p):n(O)}function p(O){return O===null||O===47||O===62||r$(O)?O!==47&&a&&o$.indexOf(i.toLowerCase())>-1?(o=1,r.interrupt?t(O):_(O)):zEe.indexOf(i.toLowerCase())>-1?(o=6,O===47?(e.consume(O),v):r.interrupt?t(O):_(O)):(o=7,r.interrupt?n(O):a?y(O):b(O)):O===45||n$(O)?(e.consume(O),i+=Ob(O),p):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:_):n(O)}function b(O){return Jd(O)?(e.consume(O),b):R(O)}function y(O){return O===47?(e.consume(O),R):O===58||O===95||op(O)?(e.consume(O),C):Jd(O)?(e.consume(O),y):R(O)}function C(O){return O===45||O===46||O===58||O===95||n$(O)?(e.consume(O),C):D(O)}function D(O){return O===61?(e.consume(O),A):Jd(O)?(e.consume(O),D):y(O)}function A(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),l=O,T):Jd(O)?(e.consume(O),A):(l=void 0,B(O))}function T(O){return O===l?(e.consume(O),j):O===null||Zd(O)?n(O):(e.consume(O),T)}function B(O){return O===null||O===34||O===39||O===60||O===61||O===62||O===96||r$(O)?D(O):(e.consume(O),B)}function j(O){return O===47||O===62||Jd(O)?y(O):n(O)}function R(O){return O===62?(e.consume(O),N):n(O)}function N(O){return Jd(O)?(e.consume(O),N):O===null||Zd(O)?_(O):n(O)}function _(O){return O===45&&o===2?(e.consume(O),z):O===60&&o===1?(e.consume(O),Y):O===62&&o===4?(e.consume(O),pe):O===63&&o===3?(e.consume(O),he):O===93&&o===5?(e.consume(O),se):Zd(O)&&(o===6||o===7)?e.check(VEe,pe,U)(O):O===null||Zd(O)?U(O):(e.consume(O),_)}function U(O){return e.exit("htmlFlowData"),V(O)}function V(O){return O===null?K(O):Zd(O)?(e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),V):(e.enter("htmlFlowData"),_(O))}function z(O){return O===45?(e.consume(O),he):_(O)}function Y(O){return O===47?(e.consume(O),i="",te):_(O)}function te(O){return O===62&&o$.indexOf(i.toLowerCase())>-1?(e.consume(O),pe):op(O)&&i.length<8?(e.consume(O),i+=Ob(O),te):_(O)}function se(O){return O===93?(e.consume(O),he):_(O)}function he(O){return O===62?(e.consume(O),pe):_(O)}function pe(O){return O===null||Zd(O)?(e.exit("htmlFlowData"),K(O)):(e.consume(O),pe)}function K(O){return e.exit("htmlFlow"),t(O)}}function KEe(e,t,n){return r;function r(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(HEe,t,n)}}var qEe=UEe,Bb=IB,OS=F1,Qs=Ur,BS=qc,kb=Fl,XEe=po,QEe={name:"htmlText",tokenize:ZEe};function ZEe(e,t,n){var r=this,o,a,i,s;return l;function l(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),c}function c(O){return O===33?(e.consume(O),d):O===47?(e.consume(O),B):O===63?(e.consume(O),A):Bb(O)?(e.consume(O),N):n(O)}function d(O){return O===45?(e.consume(O),f):O===91?(e.consume(O),a="CDATA[",i=0,v):Bb(O)?(e.consume(O),D):n(O)}function f(O){return O===45?(e.consume(O),h):n(O)}function h(O){return O===null||O===62?n(O):O===45?(e.consume(O),m):g(O)}function m(O){return O===null||O===62?n(O):g(O)}function g(O){return O===null?n(O):O===45?(e.consume(O),p):Qs(O)?(s=g,he(O)):(e.consume(O),g)}function p(O){return O===45?(e.consume(O),K):g(O)}function v(O){return O===a.charCodeAt(i++)?(e.consume(O),i===a.length?b:v):n(O)}function b(O){return O===null?n(O):O===93?(e.consume(O),y):Qs(O)?(s=b,he(O)):(e.consume(O),b)}function y(O){return O===93?(e.consume(O),C):b(O)}function C(O){return O===62?K(O):O===93?(e.consume(O),C):b(O)}function D(O){return O===null||O===62?K(O):Qs(O)?(s=D,he(O)):(e.consume(O),D)}function A(O){return O===null?n(O):O===63?(e.consume(O),T):Qs(O)?(s=A,he(O)):(e.consume(O),A)}function T(O){return O===62?K(O):A(O)}function B(O){return Bb(O)?(e.consume(O),j):n(O)}function j(O){return O===45||OS(O)?(e.consume(O),j):R(O)}function R(O){return Qs(O)?(s=R,he(O)):kb(O)?(e.consume(O),R):K(O)}function N(O){return O===45||OS(O)?(e.consume(O),N):O===47||O===62||BS(O)?_(O):n(O)}function _(O){return O===47?(e.consume(O),K):O===58||O===95||Bb(O)?(e.consume(O),U):Qs(O)?(s=_,he(O)):kb(O)?(e.consume(O),_):K(O)}function U(O){return O===45||O===46||O===58||O===95||OS(O)?(e.consume(O),U):V(O)}function V(O){return O===61?(e.consume(O),z):Qs(O)?(s=V,he(O)):kb(O)?(e.consume(O),V):_(O)}function z(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),o=O,Y):Qs(O)?(s=z,he(O)):kb(O)?(e.consume(O),z):(e.consume(O),o=void 0,se)}function Y(O){return O===o?(e.consume(O),te):O===null?n(O):Qs(O)?(s=Y,he(O)):(e.consume(O),Y)}function te(O){return O===62||O===47||BS(O)?_(O):n(O)}function se(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===62||BS(O)?_(O):(e.consume(O),se)}function he(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),XEe(e,pe,"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function pe(O){return e.enter("htmlTextData"),s(O)}function K(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}}var JEe=QEe,eIe=qc,ef=DB,tIe=Kc,W9=yB,nIe=EB,tf=rm,rIe=N9,oIe=L9,aIe=M9,kS=$9,iIe={name:"labelEnd",tokenize:fIe,resolveTo:dIe,resolveAll:uIe},sIe={tokenize:hIe},lIe={tokenize:mIe},cIe={tokenize:pIe};function uIe(e){for(var t=-1,n;++t<e.length;)n=e[t][1],!n._used&&(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function dIe(e,t){for(var n=e.length,r=0,o,a,i,s,l,c,d;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(c=n);return o={type:e[l][1].type==="labelLink"?"link":"image",start:tf(e[l][1].start),end:tf(e[e.length-1][1].end)},a={type:"label",start:tf(e[l][1].start),end:tf(e[c][1].end)},i={type:"labelText",start:tf(e[l+r+2][1].end),end:tf(e[c-2][1].start)},d=[["enter",o,t],["enter",a,t]],d=ef(d,e.slice(l+1,l+r+3)),d=ef(d,[["enter",i,t]]),d=ef(d,nIe(t.parser.constructs.insideSpan.null,e.slice(l+r+4,c-3),t)),d=ef(d,[["exit",i,t],e[c-2],e[c-1],["exit",a,t]]),d=ef(d,e.slice(c+1)),d=ef(d,[["exit",o,t]]),tIe(e,l,e.length,d),e}function fIe(e,t,n){for(var r=this,o=r.events.length,a,i;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return s;function s(d){return a?a._inactive?c(d):(i=r.parser.defined.indexOf(W9(r.sliceSerialize({start:a.end,end:r.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(sIe,t,i?t:c)(d):d===91?e.attempt(lIe,t,i?e.attempt(cIe,t,c):c)(d):i?t(d):c(d)}function c(d){return a._balanced=!0,n(d)}}function hIe(e,t,n){return r;function r(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),kS(e,o)}function o(l){return l===41?s(l):rIe(e,a,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(l)}function a(l){return eIe(l)?kS(e,i)(l):s(l)}function i(l){return l===34||l===39||l===40?aIe(e,kS(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):s(l)}function s(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):n(l)}}function mIe(e,t,n){var r=this;return o;function o(i){return oIe.call(r,e,a,n,"reference","referenceMarker","referenceString")(i)}function a(i){return r.parser.defined.indexOf(W9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(i):t(i)}}function pIe(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}var TB=iIe,gIe=TB,vIe={name:"labelStartImage",tokenize:bIe,resolveAll:gIe.resolveAll};function bIe(e,t,n){var r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var yIe=vIe,xIe=TB,CIe={name:"labelStartLink",tokenize:wIe,resolveAll:xIe.resolveAll};function wIe(e,t,n){var r=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}var SIe=CIe,DIe=po,EIe={name:"lineEnding",tokenize:IIe};function IIe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),DIe(e,t,"linePrefix")}}var TIe=EIe,AIe=Ur,OIe=Fl,BIe=po,kIe={name:"thematicBreak",tokenize:PIe};function PIe(e,t,n){var r=0,o;return a;function a(l){return e.enter("thematicBreak"),o=l,i(l)}function i(l){return l===o?(e.enter("thematicBreakSequence"),s(l)):OIe(l)?BIe(e,i,"whitespace")(l):r<3||l!==null&&!AIe(l)?n(l):(e.exit("thematicBreak"),t(l))}function s(l){return l===o?(e.consume(l),r++,s):(e.exit("thematicBreakSequence"),i(l))}}var z9=kIe,a$=j9,AB=Fl,OB=_1,RIe=E9,_y=po,H9=M1,jIe=z9,U9={name:"list",tokenize:$Ie,continuation:{tokenize:MIe},exit:FIe},NIe={tokenize:WIe,partial:!0},LIe={tokenize:_Ie,partial:!0};function $Ie(e,t,n){var r=this,o=OB(r.events,"linePrefix"),a=0;return i;function i(h){var m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:a$(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(jIe,n,l)(h):l(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return a$(h)&&++a<10?(e.consume(h),s):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),l(h)):n(h)}function l(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(H9,r.interrupt?n:c,e.attempt(NIe,f,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,f(h)}function d(h){return AB(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=o+RIe(r.sliceStream(e.exit("listItemPrefix"))),t(h)}}function MIe(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(H9,o,a);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_y(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!AB(s)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,i(s)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(LIe,t,i)(s))}function i(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,_y(e,e.attempt(U9,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(s)}}function _Ie(e,t,n){var r=this;return _y(e,o,"listItemIndent",r.containerState.size+1);function o(a){return OB(r.events,"listItemIndent")===r.containerState.size?t(a):n(a)}}function FIe(e){e.exit(this.containerState.type)}function WIe(e,t,n){var r=this;return _y(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5);function o(a){return AB(a)||!OB(r.events,"listItemPrefixWhitespace")?n(a):t(a)}}var zIe=U9,HIe=Ur,PS=rm,UIe=po,VIe={name:"setextUnderline",tokenize:YIe,resolveTo:GIe};function GIe(e,t){for(var n=e.length,r,o,a,i;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);return i={type:"setextHeading",start:PS(e[o][1].start),end:PS(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=PS(e[a][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function YIe(e,t,n){for(var r=this,o=r.events.length,a,i;o--;)if(r.events[o][1].type!=="lineEnding"&&r.events[o][1].type!=="linePrefix"&&r.events[o][1].type!=="content"){i=r.events[o][1].type==="paragraph";break}return s;function s(d){return!r.lazy&&(r.interrupt||i)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=d,l(d)):n(d)}function l(d){return d===a?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),UIe(e,c,"lineSuffix")(d))}function c(d){return d===null||HIe(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}var KIe=VIe;Object.defineProperty(Ws,"__esModule",{value:!0});var qIe=om,uI=tDe,XIe=mDe,QIe=xDe,V9=TDe,G9=zDe,i$=YDe,RS=JDe,ZIe=oEe,JIe=EEe,eTe=OEe,tTe=$Ee,nTe=qEe,rTe=JEe,oTe=TB,aTe=yIe,iTe=SIe,jS=TIe,ga=zIe,s$=KIe,NS=z9,sTe={42:ga,43:ga,45:ga,48:ga,49:ga,50:ga,51:ga,52:ga,53:ga,54:ga,55:ga,56:ga,57:ga,62:QIe},lTe={91:JIe},cTe={"-2":RS,"-1":RS,32:RS},uTe={35:tTe,42:NS,45:[s$,NS],60:nTe,61:s$,95:NS,96:i$,126:i$},dTe={38:G9,92:V9},fTe={"-5":jS,"-4":jS,"-3":jS,33:aTe,38:G9,42:uI,60:[XIe,rTe],91:iTe,92:[eTe,V9],93:oTe,95:uI,96:ZIe},hTe={null:[uI,qIe.resolver]},mTe={null:[]};Ws.contentInitial=lTe;Ws.disable=mTe;Ws.document=sTe;Ws.flow=uTe;Ws.flowInitial=cTe;Ws.insideSpan=hTe;Ws.string=dTe;Ws.text=fTe;var pTe=xB,gTe=CB,vTe=wB,l$=om,bTe=hSe,yTe=BSe,xTe=SB,CTe=Ws;function wTe(e){var t=e||{},n={defined:[],constructs:bTe([CTe].concat(xTe(t.extensions))),content:r(pTe),document:r(gTe),flow:r(vTe),string:r(l$.string),text:r(l$.text)};return n;function r(o){return a;function a(i){return yTe(n,o,i)}}}var STe=wTe,c$=/[\0\t\n\r]/g;function DTe(){var e=!0,t=1,n="",r;return o;function o(a,i,s){var l=[],c,d,f,h,m;for(a=n+a.toString(i),f=0,n="",e&&(a.charCodeAt(0)===65279&&f++,e=void 0);f<a.length;){if(c$.lastIndex=f,c=c$.exec(a),h=c?c.index:a.length,m=a.charCodeAt(h),!c){n=a.slice(f);break}if(m===10&&f===h&&r)l.push(-3),r=void 0;else if(r&&(l.push(-5),r=void 0),f<h&&(l.push(a.slice(f,h)),t+=h-f),m===0)l.push(65533),t++;else if(m===9)for(d=Math.ceil(t/4)*4,l.push(-2);t++<d;)l.push(-1);else m===10?(l.push(-4),t=1):(r=!0,t=1);f=h+1}return s&&(r&&l.push(-5),n&&l.push(n),l.push(null)),l}}var ETe=DTe,ITe=T9;function TTe(e){for(;!ITe(e););return e}var ATe=TTe,OTe=$Te,BTe=owe,kTe=Tv,Y9=S9,LS=yB,PTe=dwe,RTe=STe,jTe=ETe,NTe=ATe,LTe=R9,Pb=p9;function $Te(e,t,n){return typeof t!="string"&&(n=t,t=void 0),MTe(n)(NTe(RTe(n).document().write(jTe()(e,t,!0))))}function MTe(e){var t=e||{},n=_Te({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ne),autolinkProtocol:V,autolinkEmail:V,atxHeading:c(Vt),blockQuote:c(Me),characterEscape:V,characterReference:V,codeFenced:c(Je),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(Je,d),codeText:c(pt,d),codeTextData:V,data:V,codeFlowValue:V,definition:c(ot),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(Et),hardBreakEscape:c(nt),hardBreakTrailing:c(nt),htmlFlow:c(Ee,d),htmlFlowData:V,htmlText:c(Ee,d),htmlTextData:V,image:c(kt),label:d,link:c(ne),listItem:c(Ae),listItemValue:v,listOrdered:c(we,p),listUnordered:c(we),paragraph:c(Se),reference:ve,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(Vt),strong:c(De),thematicBreak:c(Qe)},exit:{atxHeading:h(),atxHeadingSequence:R,autolink:h(),autolinkEmail:Xe,autolinkProtocol:ze,blockQuote:h(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:Ze,codeFenced:h(D),codeFencedFence:C,codeFencedFenceInfo:b,codeFencedFenceMeta:y,codeFlowValue:z,codeIndented:h(A),codeText:h(pe),codeTextData:z,data:z,definition:h(),definitionDestinationString:j,definitionLabelString:T,definitionTitleString:B,emphasis:h(),hardBreakEscape:h(te),hardBreakTrailing:h(te),htmlFlow:h(se),htmlFlowData:z,htmlText:h(he),htmlTextData:z,image:h(O),label:be,labelText:le,lineEnding:Y,link:h(K),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:$e,resourceDestinationString:H,resourceTitleString:ie,resource:oe,setextHeading:h(U),setextHeadingLineSequence:_,setextHeadingText:N,strong:h(),thematicBreak:h()}},t.mdastExtensions||[]),r={};return o;function o(xe){for(var vt={type:"root",children:[]},Mt=[vt],vn=[],lo=[],bn=-1,Vr,_a,vo={stack:Mt,tokenStack:vn,config:n,enter:f,exit:m,buffer:d,resume:g,setData:i,getData:s};++bn<xe.length;)(xe[bn][1].type==="listOrdered"||xe[bn][1].type==="listUnordered")&&(xe[bn][0]==="enter"?lo.push(bn):(_a=lo.pop(bn),bn=a(xe,_a,bn)));for(bn=-1;++bn<xe.length;)Vr=n[xe[bn][0]],Y9.call(Vr,xe[bn][1].type)&&Vr[xe[bn][1].type].call(kTe({sliceSerialize:xe[bn][2].sliceSerialize},vo),xe[bn][1]);if(vn.length)throw new Error("Cannot close document, a token (`"+vn[vn.length-1].type+"`, "+Pb({start:vn[vn.length-1].start,end:vn[vn.length-1].end})+") is still open");for(vt.position={start:l(xe.length?xe[0][1].start:{line:1,column:1,offset:0}),end:l(xe.length?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},bn=-1;++bn<n.transforms.length;)vt=n.transforms[bn](vt)||vt;return vt}function a(xe,vt,Mt){for(var vn=vt-1,lo=-1,bn=!1,Vr,_a,vo,Oo,Pn,Ji,Yl;++vn<=Mt;)if(Pn=xe[vn],Pn[1].type==="listUnordered"||Pn[1].type==="listOrdered"||Pn[1].type==="blockQuote"?(Pn[0]==="enter"?lo++:lo--,Yl=void 0):Pn[1].type==="lineEndingBlank"?Pn[0]==="enter"&&(Vr&&!Yl&&!lo&&!Ji&&(Ji=vn),Yl=void 0):Pn[1].type==="linePrefix"||Pn[1].type==="listItemValue"||Pn[1].type==="listItemMarker"||Pn[1].type==="listItemPrefix"||Pn[1].type==="listItemPrefixWhitespace"||(Yl=void 0),!lo&&Pn[0]==="enter"&&Pn[1].type==="listItemPrefix"||lo===-1&&Pn[0]==="exit"&&(Pn[1].type==="listUnordered"||Pn[1].type==="listOrdered")){if(Vr){for(_a=vn,vo=void 0;_a--;)if(Oo=xe[_a],Oo[1].type==="lineEnding"||Oo[1].type==="lineEndingBlank"){if(Oo[0]==="exit")continue;vo&&(xe[vo][1].type="lineEndingBlank",bn=!0),Oo[1].type="lineEnding",vo=_a}else if(!(Oo[1].type==="linePrefix"||Oo[1].type==="blockQuotePrefix"||Oo[1].type==="blockQuotePrefixWhitespace"||Oo[1].type==="blockQuoteMarker"||Oo[1].type==="listItemIndent"))break;Ji&&(!vo||Ji<vo)&&(Vr._spread=!0),Vr.end=l(vo?xe[vo][1].start:Pn[1].end),xe.splice(vo||vn,0,["exit",Vr,Pn[2]]),vn++,Mt++}Pn[1].type==="listItemPrefix"&&(Vr={type:"listItem",_spread:!1,start:l(Pn[1].start)},xe.splice(vn,0,["enter",Vr,Pn[2]]),vn++,Mt++,Ji=void 0,Yl=!0)}return xe[vt][1]._spread=bn,Mt}function i(xe,vt){r[xe]=vt}function s(xe){return r[xe]}function l(xe){return{line:xe.line,column:xe.column,offset:xe.offset}}function c(xe,vt){return Mt;function Mt(vn){f.call(this,xe(vn),vn),vt&&vt.call(this,vn)}}function d(){this.stack.push({type:"fragment",children:[]})}function f(xe,vt){return this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push(vt),xe.position={start:l(vt.start)},xe}function h(xe){return vt;function vt(Mt){xe&&xe.call(this,Mt),m.call(this,Mt)}}function m(xe){var vt=this.stack.pop(),Mt=this.tokenStack.pop();if(Mt){if(Mt.type!==xe.type)throw new Error("Cannot close `"+xe.type+"` ("+Pb({start:xe.start,end:xe.end})+"): a different token (`"+Mt.type+"`, "+Pb({start:Mt.start,end:Mt.end})+") is open")}else throw new Error("Cannot close `"+xe.type+"` ("+Pb({start:xe.start,end:xe.end})+"): it’s not open");return vt.position.end=l(xe.end),vt}function g(){return BTe(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function v(xe){s("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(xe),10),i("expectingFirstListItemValue"))}function b(){var xe=this.resume();this.stack[this.stack.length-1].lang=xe}function y(){var xe=this.resume();this.stack[this.stack.length-1].meta=xe}function C(){s("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function D(){var xe=this.resume();this.stack[this.stack.length-1].value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function A(){var xe=this.resume();this.stack[this.stack.length-1].value=xe}function T(xe){var vt=this.resume();this.stack[this.stack.length-1].label=vt,this.stack[this.stack.length-1].identifier=LS(this.sliceSerialize(xe)).toLowerCase()}function B(){var xe=this.resume();this.stack[this.stack.length-1].title=xe}function j(){var xe=this.resume();this.stack[this.stack.length-1].url=xe}function R(xe){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(xe).length)}function N(){i("setextHeadingSlurpLineEnding",!0)}function _(xe){this.stack[this.stack.length-1].depth=this.sliceSerialize(xe).charCodeAt(0)===61?1:2}function U(){i("setextHeadingSlurpLineEnding")}function V(xe){var vt=this.stack[this.stack.length-1].children,Mt=vt[vt.length-1];(!Mt||Mt.type!=="text")&&(Mt=Ye(),Mt.position={start:l(xe.start)},this.stack[this.stack.length-1].children.push(Mt)),this.stack.push(Mt)}function z(xe){var vt=this.stack.pop();vt.value+=this.sliceSerialize(xe),vt.position.end=l(xe.end)}function Y(xe){var vt=this.stack[this.stack.length-1];if(s("atHardBreak")){vt.children[vt.children.length-1].position.end=l(xe.end),i("atHardBreak");return}!s("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(vt.type)>-1&&(V.call(this,xe),z.call(this,xe))}function te(){i("atHardBreak",!0)}function se(){var xe=this.resume();this.stack[this.stack.length-1].value=xe}function he(){var xe=this.resume();this.stack[this.stack.length-1].value=xe}function pe(){var xe=this.resume();this.stack[this.stack.length-1].value=xe}function K(){var xe=this.stack[this.stack.length-1];s("inReference")?(xe.type+="Reference",xe.referenceType=s("referenceType")||"shortcut",delete xe.url,delete xe.title):(delete xe.identifier,delete xe.label,delete xe.referenceType),i("referenceType")}function O(){var xe=this.stack[this.stack.length-1];s("inReference")?(xe.type+="Reference",xe.referenceType=s("referenceType")||"shortcut",delete xe.url,delete xe.title):(delete xe.identifier,delete xe.label,delete xe.referenceType),i("referenceType")}function le(xe){this.stack[this.stack.length-2].identifier=LS(this.sliceSerialize(xe)).toLowerCase()}function be(){var xe=this.stack[this.stack.length-1],vt=this.resume();this.stack[this.stack.length-1].label=vt,i("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=xe.children:this.stack[this.stack.length-1].alt=vt}function H(){var xe=this.resume();this.stack[this.stack.length-1].url=xe}function ie(){var xe=this.resume();this.stack[this.stack.length-1].title=xe}function oe(){i("inReference")}function ve(){i("referenceType","collapsed")}function $e(xe){var vt=this.resume();this.stack[this.stack.length-1].label=vt,this.stack[this.stack.length-1].identifier=LS(this.sliceSerialize(xe)).toLowerCase(),i("referenceType","full")}function Ne(xe){i("characterReferenceType",xe.type)}function Ze(xe){var vt=this.sliceSerialize(xe),Mt=s("characterReferenceType"),vn,lo;Mt?(vn=PTe(vt,Mt==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):vn=LTe(vt),lo=this.stack.pop(),lo.value+=vn,lo.position.end=l(xe.end)}function ze(xe){z.call(this,xe),this.stack[this.stack.length-1].url=this.sliceSerialize(xe)}function Xe(xe){z.call(this,xe),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(xe)}function Me(){return{type:"blockquote",children:[]}}function Je(){return{type:"code",lang:null,meta:null,value:""}}function pt(){return{type:"inlineCode",value:""}}function ot(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Et(){return{type:"emphasis",children:[]}}function Vt(){return{type:"heading",depth:void 0,children:[]}}function nt(){return{type:"break"}}function Ee(){return{type:"html",value:""}}function kt(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function we(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function Ae(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function Se(){return{type:"paragraph",children:[]}}function De(){return{type:"strong",children:[]}}function Ye(){return{type:"text",value:""}}function Qe(){return{type:"thematicBreak"}}}function _Te(e,t){for(var n=-1;++n<t.length;)FTe(e,t[n]);return e}function FTe(e,t){var n,r;for(n in t)r=Y9.call(e,n)?e[n]:e[n]={},n==="canContainEols"||n==="transforms"?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}var WTe=OTe,K9=HTe,zTe=WTe;function HTe(e){var t=this;this.Parser=n;function n(r){return zTe(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}const umt=jr(K9);var UTe=VTe;function VTe(e,t,n){var r=[];typeof t=="function"&&(n=t,t=null),o(e);function o(i){var s;return(!t||i.type===t)&&(s=n(i,r.concat())),i.children&&s!==!1?a(i.children,i):s}function a(i,s){var l=i.length,c=-1,d;for(r.push(s);++c<l;)if(d=i[c],d&&o(d)===!1)return!1;return r.pop(),!0}}var GTe=UTe;function YTe(){return function(e){return GTe(e,"list",function(t,n){var r=0,o,a;for(o=0,a=n.length;o<a;o++)n[o].type==="list"&&(r+=1);for(o=0,a=t.children.length;o<a;o++){var i=t.children[o];i.index=o,i.ordered=t.ordered}t.depth=r}),e}}var KTe=YTe,qTe=q9;function q9(e){if(e==null)return JTe;if(typeof e=="string")return ZTe(e);if(typeof e=="object")return"length"in e?QTe(e):XTe(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function XTe(e){return t;function t(n){var r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function QTe(e){for(var t=[],n=-1;++n<e.length;)t[n]=q9(e[n]);return r;function r(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}function ZTe(e){return t;function t(n){return!!(n&&n.type===e)}}function JTe(){return!0}var eAe=tAe;function tAe(e){return e}var nAe=W1,rAe=qTe,oAe=eAe,X9=!0,Q9="skip",dI=!1;W1.CONTINUE=X9;W1.SKIP=Q9;W1.EXIT=dI;function W1(e,t,n,r){var o,a;typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),a=rAe(t),o=r?-1:1,i(e,null,[])();function i(s,l,c){var d=typeof s=="object"&&s!==null?s:{},f;return typeof d.type=="string"&&(f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0,h.displayName="node ("+oAe(d.type+(f?"<"+f+">":""))+")"),h;function h(){var m=c.concat(s),g=[],p,v;if((!t||a(s,l,c[c.length-1]||null))&&(g=aAe(n(s,c)),g[0]===dI))return g;if(s.children&&g[0]!==Q9)for(v=(r?s.children.length:-1)+o;v>-1&&v<s.children.length;){if(p=i(s.children[v],v,m)(),p[0]===dI)return p;v=typeof p[1]=="number"?p[1]:v+o}return g}}}function aAe(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[X9,e]:[e]}var z1=U1,H1=nAe,iAe=H1.CONTINUE,sAe=H1.SKIP,lAe=H1.EXIT;U1.CONTINUE=iAe;U1.SKIP=sAe;U1.EXIT=lAe;function U1(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),H1(e,t,o,r);function o(a,i){var s=i[i.length-1],l=s?s.children.indexOf(a):null;return n(a,l,s)}}var cAe=z1,Z9="virtualHtml",uAe=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,dAe=/^<(\/?)([a-z]+)\s*>$/,fAe=function(e){var t,n;return cAe(e,"html",function(r,o,a){n!==a&&(t=[],n=a);var i=pAe(r);if(i)return a.children.splice(o,1,{type:Z9,tag:i,position:r.position}),!0;var s=mAe(r);if(!s)return!0;var l=hAe(t,s.tag);return l?a.children.splice(o,0,gAe(s,l,a)):s.opening||t.push(s),!0},!0),e};function hAe(e,t){for(var n=e.length;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}function mAe(e,t){var n=e.value.match(dAe);return n?{tag:n[2],opening:!n[1],node:e}:!1}function pAe(e){var t=e.value.match(uAe);return t?t[1]:!1}function gAe(e,t,n){var r=n.children.indexOf(e.node),o=n.children.indexOf(t.node),a=n.children.splice(r,o-r+1),i=a.slice(1,-1);return{type:Z9,children:i,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}var BB={},vAe=z1,bAe=[].splice;BB.ofType=function(e,t){return J9(n,t);function n(r,o,a){return!e.includes(r.type)}};BB.ifNotMatch=J9;function J9(e,t){return n;function n(o){return vAe(o,r),o}function r(o,a,i){if(i&&!e(o,a,i)){var s=[a,1];return t==="unwrap"&&o.children&&(s=s.concat(o.children)),bAe.apply(i.children,s),a}}}var Tu=x,u$=pB,yAe=X4;function Fy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=t.renderers[e.type];e.position||(e.position={start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}});var a=e.position.start,i=[e.type,a.line,a.column,r].join("-");if(!yAe.isValidElementType(o))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var s=xAe(e,i,t,o,n,r);return Tu.createElement(o,s,s.children||l()||void 0);function l(){return e.children&&e.children.map(function(c,d){return Fy(c,t,{node:e,props:s},d)})}}function xAe(e,t,n,r,o,a){var i={key:t},s=typeof r=="string"||r===Tu.Fragment;n.sourcePos&&e.position&&(i["data-sourcepos"]=wAe(e.position)),n.rawSourcePos&&!s&&(i.sourcePosition=e.position),n.includeNodeIndex&&o.node&&o.node.children&&!s&&(i.index=o.node.children.indexOf(e),i.parentChildCount=o.node.children.length);var l=e.identifier!==null&&e.identifier!==void 0?n.definitions[e.identifier.toUpperCase()]||{}:null;switch(e.type){case"root":Zs(i,{className:n.className});break;case"text":i.nodeKey=t,i.children=e.value;break;case"heading":i.level=e.depth;break;case"list":i.start=e.start,i.ordered=e.ordered,i.spread=e.spread,i.depth=e.depth;break;case"listItem":i.checked=e.checked,i.spread=e.spread,i.ordered=e.ordered,i.index=e.index,i.children=SAe(e,o).map(function(d,f){return Fy(d,n,{node:e,props:i},f)});break;case"definition":Zs(i,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":Zs(i,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":i.children=e.value,i.inline=!0;break;case"link":Zs(i,{title:e.title||void 0,target:typeof n.linkTarget=="function"?n.linkTarget(e.url,e.children,e.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":Zs(i,{src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url,alt:e.alt||"",title:e.title||void 0});break;case"linkReference":Zs(i,u$(l,{href:n.transformLinkUri?n.transformLinkUri(l.href):l.href}));break;case"imageReference":Zs(i,{src:n.transformImageUri&&l.href?n.transformImageUri(l.href,e.children,l.title,e.alt):l.href,alt:e.alt||"",title:l.title||void 0});break;case"table":case"tableHead":case"tableBody":i.columnAlignment=e.align;break;case"tableRow":i.isHeader=o.node.type==="tableHead",i.columnAlignment=o.props.columnAlignment;break;case"tableCell":Zs(i,{isHeader:o.props.isHeader,align:o.props.columnAlignment[a]});break;case"virtualHtml":i.tag=e.tag;break;case"html":i.isBlock=e.position.start.line!==e.position.end.line,i.allowDangerousHtml=n.allowDangerousHtml,i.escapeHtml=n.escapeHtml,i.skipHtml=n.skipHtml;break;case"parsedHtml":{var c;e.children&&(c=e.children.map(function(d,f){return Fy(d,n,{node:e,props:i},f)})),i.allowDangerousHtml=n.allowDangerousHtml,i.escapeHtml=n.escapeHtml,i.skipHtml=n.skipHtml,i.element=e.element?CAe(e,c):null;break}default:Zs(i,u$(e,{type:void 0,position:void 0,children:void 0}))}return!s&&e.value&&(i.value=e.value),s||(i.node=e),i}function Zs(e,t){for(var n in t)typeof t[n]<"u"&&(e[n]=t[n])}function CAe(e,t){var n=e.element;if(Array.isArray(n)){var r=Tu.Fragment||"div";return Tu.createElement(r,null,n)}if(n.props.children||t){var o=Tu.Children.toArray(n.props.children).concat(t);return Tu.cloneElement(n,null,o)}return Tu.cloneElement(n,null)}function wAe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}function SAe(e,t){var n=t&&t.node?EAe(t.node):e7(e);return n?e.children:DAe(e)}function DAe(e){return e.children.reduce(function(t,n){return t.concat(n.type==="paragraph"?n.children:[n])},[])}function EAe(e){for(var t=e.children,n=e.spread,r=-1;!n&&++r<t.length;)n=e7(t[r]);return n}function e7(e){var t=e.spread;return t??e.children.length>1}var IAe=Fy,TAe=z1,AAe=function(e){return TAe(e,"table",OAe),e};function OAe(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}var BAe=z1,kAe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return BAe(t,"definition",function(r){var o=r.identifier.toUpperCase();o in n||(n[o]={href:r.url,title:r.title})}),n},d$=["http","https","mailto","tel"],PAe=function(t){var n=(t||"").trim(),r=n.charAt(0);if(r==="#"||r==="/")return n;var o=n.indexOf(":");if(o===-1)return n;for(var a=d$.length,i=-1;++i<a;){var s=d$[i];if(o===s.length&&n.slice(0,s.length).toLowerCase()===s)return n}return i=n.indexOf("?"),i!==-1&&o>i||(i=n.indexOf("#"),i!==-1&&o>i)?n:"javascript:void(0)"},RAe=pB,Av=x,jAe=parseInt((Av.version||"16").slice(0,2),10)>=16,ua=Av.createElement,NAe={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:Rb.bind(null,"table"),tableHead:Rb.bind(null,"thead"),tableBody:Rb.bind(null,"tbody"),tableRow:Rb.bind(null,"tr"),tableCell:MAe,root:$Ae,text:LAe,list:FAe,listItem:WAe,definition:YAe,heading:_Ae,inlineCode:HAe,code:zAe,html:UAe,virtualHtml:GAe,parsedHtml:VAe};function LAe(e){var t=e.children||"";return jAe?t:ua("span",null,t)}function $Ae(e){var t=e.className,n=!t&&Av.Fragment||"div";return ua(n,t?{className:t}:null,e.children)}function Rb(e,t){return ua(e,Qc(t),t.children)}function MAe(e){var t=e.align?{textAlign:e.align}:void 0,n=Qc(e);return ua(e.isHeader?"th":"td",t?RAe({style:t},n):n,e.children)}function _Ae(e){return ua("h".concat(e.level),Qc(e),e.children)}function FAe(e){var t=Qc(e);return e.start!==null&&e.start!==1&&e.start!==void 0&&(t.start=e.start.toString()),ua(e.ordered?"ol":"ul",t,e.children)}function WAe(e){var t=null;if(e.checked!==null&&e.checked!==void 0){var n=e.checked;t=ua("input",{type:"checkbox",checked:n,readOnly:!0})}return ua("li",Qc(e),t,e.children)}function zAe(e){var t=e.language&&"language-".concat(e.language),n=ua("code",t?{className:t}:null,e.value);return ua("pre",Qc(e),n)}function HAe(e){return ua("code",Qc(e),e.children)}function UAe(e){if(e.skipHtml)return null;var t=e.allowDangerousHtml||e.escapeHtml===!1,n=e.isBlock?"div":"span";if(!t)return ua(Av.Fragment||n,null,e.value);var r={dangerouslySetInnerHTML:{__html:e.value}};return ua(n,r)}function VAe(e){return e["data-sourcepos"]?Av.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}function GAe(e){return ua(e.tag,Qc(e),e.children)}function YAe(){return null}function Qc(e){var t=e["data-sourcepos"];return t?{"data-sourcepos":t}:{}}var t7={},f$="__RMD_HTML_PARSER__";t7.HtmlParser=typeof Symbol>"u"?f$:Symbol(f$);var h$=pB,KAe=x9,qAe=K9,Vn=jl,XAe=KTe,QAe=fAe,m$=BB,ZAe=IAe,JAe=AAe,eOe=kAe,n7=PAe,kB=NAe,tOe=t7,Wy=Object.keys(kB),am=function(t){var n=t.source||t.children||"";if(t.allowedTypes&&t.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=h$(kB,t.renderers),o=KAe().use(qAe).use(t.plugins||[]),a=o.runSync(o.parse(n)),i=h$(t,{renderers:r,definitions:eOe(a)});return nOe(t).forEach(function(s){a=s(a,i)}),a};function nOe(e){var t=[JAe,XAe()],n=e.disallowedTypes;e.allowedTypes&&(n=Wy.filter(function(i){return i!=="root"&&e.allowedTypes.indexOf(i)===-1}));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(m$.ofType(n,r)),e.allowNode&&t.push(m$.ifNotMatch(e.allowNode,r));var o=(e.allowDangerousHtml||e.escapeHtml===!1)&&!e.skipHtml,a=(e.astPlugins||[]).some(function(i){return i.identity===tOe.HtmlParser});return o&&!a&&t.push(QAe),e.astPlugins&&(t=t.concat(e.astPlugins)),t.push(ZAe),t}am.defaultProps={transformLinkUri:n7};am.propTypes={className:Vn.string,source:Vn.string,children:Vn.string,sourcePos:Vn.bool,rawSourcePos:Vn.bool,escapeHtml:Vn.bool,allowDangerousHtml:Vn.bool,skipHtml:Vn.bool,allowNode:Vn.func,allowedTypes:Vn.arrayOf(Vn.oneOf(Wy)),disallowedTypes:Vn.arrayOf(Vn.oneOf(Wy)),transformLinkUri:Vn.oneOfType([Vn.func,Vn.bool]),linkTarget:Vn.oneOfType([Vn.func,Vn.string]),transformImageUri:Vn.func,astPlugins:Vn.arrayOf(Vn.func),unwrapDisallowed:Vn.bool,renderers:Vn.object,plugins:Vn.array};am.types=Wy;am.renderers=kB;am.uriTransformer=n7;var rOe=am;const oOe=jr(rOe);var co;(function(e){e.STANDARD="standard",e.WIDE="wide",e.VERTICAL="vertical",e.JUSTIFIED="justified",e.NONE="none"})(co||(co={}));const p$=e=>{const{inputID:t,labelID:n}=u9(),{labelType:r="standard",fieldset:o=!1}=e,a=N1();if(r==="none")return u.jsx(u.Fragment,{});const{required:i,tooltip:s,label:l,description:c,afterDescription:d}=e,f=mB();let h=(()=>{switch(r){case"wide":return f.labelWrapWide;case"standard":default:return f.labelWrap}})();if(h=ge(h,{isCompact:a.compact,isVertical:r==="vertical"||a.forceVerticalLabels}),e.inputType==="checkBox"&&e.checkPosition!=="right")return a.compact?u.jsx(u.Fragment,{}):u.jsx("div",{className:h,id:n});const m=o?"div":"label",g=i&&l&&l!="";return u.jsxs("div",{className:h,id:n,children:[u.jsx(Hn,{condition:!!s||!!i,component:In,componentProps:{label:s||k("Required field")},children:u.jsxs(m,{htmlFor:o?void 0:t,className:ge(I0().label),children:[g&&u.jsx("span",{"aria-label":k("required"),className:ge(I0().labelRequired),children:"*"}),u.jsxs("span",{children:[l,s&&u.jsx(mO,{className:I0().labelIcon})]})]})}),e.metas,!!c&&u.jsx(u.Fragment,{children:typeof c=="string"?u.jsx(oOe,{className:ge(Dy().root,f.labelInfo),children:c}):u.jsx("div",{className:ge(Dy().root,f.labelInfo),children:c})}),d]})};function aOe(e){const{fieldset:t=!1}=e,n=t?"div":e.tag??"li",r=xr("formGroup-"),o=e.inputID??r,a=e.labelID??o+"-label",i=mB(),s=N1();let l=e.labelType??co.STANDARD;return s.forceVerticalLabels&&[co.STANDARD,co.WIDE,co.JUSTIFIED].includes(l)&&(l=co.VERTICAL),e.inputType==="subheading"?u.jsx(u.Fragment,{children:e.children}):u.jsxs(n,{className:ge(i.formGroup,{[`formGroup-${e.inputType}`]:!!e.inputType,hasError:e.errors&&!!e.errors.length,[i.vertical]:l===co.VERTICAL,[i.noBorder]:e.noBorder,[i.isNested]:e.isNested,isJustifiedGroup:e.labelType===co.WIDE||e.labelType===co.JUSTIFIED,isCompact:s.compact},"modernFormGroup",e.className),role:"group","aria-labelledby":t?a:void 0,children:[u.jsxs(hB.Provider,{value:{inputID:o,labelID:a,labelType:e.labelType||co.STANDARD},children:[!!e.label&&u.jsx(p$,{...e}),!e.label&&![co.NONE,co.VERTICAL].includes(l)&&u.jsx(p$,{...e}),e.children]}),e.after]})}const iOe=W.forwardRef(function(t,n){const{className:r,children:o,isGrid:a,isInline:i,isVertical:s,...l}=t,c=x.useContext(hB),d=mB(),{labelType:f}=c||{};let h=(()=>{switch(f){case co.WIDE:case co.JUSTIFIED:return d.inputWrapRight;case co.NONE:return d.inputWrapNone;case co.STANDARD:default:return d.inputWrap}})();const m=N1();return u.jsx("div",{ref:n,className:ge(h,"modernInputWrap",{isCompact:m.compact,isGrid:a,isInline:i,isVertical:s},t.className),...l,children:t.children})}),sOe=re(()=>{const e=ee();return{fileUpload:S({"&.isCompact":{minHeight:30,"& > input, & .file-upload-choose, & .file-upload-browse":{lineHeight:"28px",fontSize:13,maxHeight:30,borderColor:P.colorOut(e.border.color),"&:focus, &:hover, &:active, &.focus-visible":{borderColor:P.colorOut(e.elementaryColors.primary)}},"& .file-upload-choose":{padding:"0 8px",maxWidth:"calc(100% - 63px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderTopRightRadius:0,borderBottomRightRadius:0},"& .file-upload-browse":{minWidth:64,background:P.colorOut(e.mainColors.bg),color:P.colorOut(e.mainColors.fg),"&:focus, &:hover, &:active, &.focus-visible":{background:P.colorOut(e.mainColors.primary),borderColor:P.colorOut(e.elementaryColors.primary),color:P.colorOut(e.mainColors.primaryContrast)}}}},"label:DashboardImageUpload-classes-fileUpload")}});function lOe(e){var m,g;const{inputID:t}=u9(),n=e.imageUploader||Ade,[r,o]=x.useState(!1),[a,i]=x.useState(null),[s,l]=x.useState(null),c=x.useRef(null);x.useEffect(()=>{c.current!==e.value&&i(null)},[e.value]);const d=(g=e.value)==null?void 0:g.substring(((m=e.value)==null?void 0:m.lastIndexOf("/"))+1),f=sOe(),h=N1();return u.jsxs(iOe,{children:[u.jsxs("label",{className:ge("file-upload",f.fileUpload,{isCompact:h.compact}),children:[u.jsx("input",{type:"file",id:t,className:ge("form-control",e.className),disabled:e.disabled,onChange:async p=>{const v=p.target.files&&p.target.files[0];if(!v)return;o(!0),i(v.name);const b=URL.createObjectURL(v);e.onImagePreview&&e.onImagePreview(b);try{l(null);const y=await n(v);c.current=y.url,e.onChange(y.url),o(!1)}catch(y){l(y),o(!1)}}},`${r}`),u.jsx("span",{className:"file-upload-choose",children:a||d||e.placeholder||k("Choose")}),u.jsx("span",{className:"file-upload-browse",children:r?u.jsx(oi,{buttonType:ye.DASHBOARD_PRIMARY}):k("Browse")})]}),e.preview,e.errors&&u.jsx(El,{errors:e.errors}),s&&u.jsx(El,{errors:[{message:s.message,code:"UploadError",field:""}]})]})}function im(e){const{scrollable:t=!0}=e,n=Dge();let r=e.body;return t&&(r=u.jsx(xv.TouchScrollable,{children:u.jsx("div",{className:ae(n.bodyWrap,e.bodyWrapClass),children:r})})),u.jsxs("section",{className:ge("frame",n.root,e.canGrow&&us(),e.className),children:[e.header&&u.jsxs("div",{className:n.headerWrap,children:[" ",e.header]}),r,u.jsx("div",{className:n.footerWrap,children:e.footer})]})}const sm=re(()=>{const e=S1(),t=ee(),n=Tt("frameBody"),r=Gh(),o=n({position:"relative",width:Z(100),...E.padding({horizontal:e.spacing.padding}),"&.isSelfPadded":{overflowX:"hidden",...E.padding({left:0,right:0})},"&.hasVerticalPadding":{...E.padding({vertical:e.spacing.padding})},[`& > .${r.root}`]:{"&.isFirst":{marginTop:w(t.gutter.half)},"&.isLast":{marginBottom:w(t.gutter.half)}},"& .modernFormGroup:last-child":{marginBottom:0,borderBottom:"none"}}),a=n("framePaddings",{...E.padding({left:e.spacing.padding,right:e.spacing.padding})}),i=n("noContentMessage",{...E.padding({top:e.header.spacing*2,right:e.header.spacing,bottom:e.header.spacing*2,left:e.header.spacing})}),s=n("contents",{...E.padding({top:e.spacing.padding,right:0,bottom:e.spacing.padding,left:0}),fontSize:hr(t.fonts.size.medium),minHeight:w(50),color:P.colorOut(t.mainColors.fg),"& p:last-child":{marginBottom:0}});return{root:o,framePaddings:a,noContentMessage:i,contents:s,error:S({marginBottom:16,position:"sticky",top:16,zIndex:1},"label:frameBodyStyles-error")}});class lm extends W.PureComponent{render(){const t=sm();return u.jsx("div",{className:ae("frameBody",this.props.className,t.root,{isSelfPadded:this.props.selfPadded,hasVerticalPadding:this.props.hasVerticalPadding}),style:this.props.style,children:this.props.children})}}const Ov=re(()=>{const e=ee(),t=Tt("frameFooter"),n=S1(),r=t({display:"flex",minHeight:w(n.footer.minHeight),alignItems:"center",position:"relative",zIndex:1,borderTop:wt(),flexWrap:"wrap",justifyContent:"space-between",...E.padding({top:0,bottom:0,left:n.footer.spacing,right:n.footer.spacing})}),o=t("justifiedRight",{"&&":{justifyContent:"flex-end"},"& > *":{marginLeft:e.spacer.componentInner}}),a=t("markRead",{"&.buttonAsText":{fontWeight:e.fonts.weights.semiBold,color:P.colorOut(e.mainColors.primary)}}),i=t("actionButton",{marginLeft:w(24)}),s=t({paddingLeft:je(0),paddingRight:je(0)}),l=t({minHeight:w(65)});return{root:r,markRead:a,selfPadded:s,actionButton:i,justifiedRight:o,forDashboard:l}});class Ad extends W.PureComponent{render(){const t=Ov();return u.jsx("footer",{className:ae("frameFooter",t.root,this.props.className,this.props.justifyRight&&t.justifiedRight,this.props.selfPadded?t.selfPadded:"",this.props.forDashboard?t.forDashboard:""),children:this.props.children})}}q(Ad,"defaultProps",{validSelection:!1});const cOe=re(()=>({root:S({display:"flex",alignItems:"center",justifyContent:"center",width:Z(100)},"label:smartAlignStyles-root"),inner:S({textAlign:"start"},"label:smartAlignStyles-inner")}));class uOe extends W.Component{render(){const t=this.props.outerTag||"div",n=this.props.outerTag||"div",r=cOe();return u.jsx(t,{className:ge(r.root,this.props.className),children:u.jsx(n,{className:ge(r.inner),children:this.props.children})})}}class PB extends W.Component{constructor(){super(...arguments);q(this,"cancelRef",W.createRef());q(this,"id",ro("confirmModal"));q(this,"handleCancel",n=>{this.props.onCancel&&this.props.onCancel(n)})}render(){const{onConfirm:n,confirmLinkTo:r,srOnlyTitle:o,isConfirmLoading:a,isConfirmDisabled:i,title:s,children:l,size:c,fullWidthContent:d}=this.props,f=this.handleCancel,h=sm(),m=Ov();return u.jsx(ao,{isVisible:this.props.isVisible,size:c||jt.SMALL,elementToFocus:this.cancelRef.current,exitHandler:f,titleID:this.titleID,elementToFocusOnExit:this.props.elementToFocusOnExit,children:u.jsx(im,{header:u.jsx(Uc,{titleID:this.titleID,closeFrame:f,srOnlyTitle:o,title:s}),body:u.jsx(lm,{children:d?u.jsx("div",{className:ge(h.contents,this.props.bodyClassName),children:l}):u.jsx(uOe,{className:ge(h.contents,this.props.bodyClassName),children:l})}),footer:u.jsxs(Ad,{justifyRight:!0,children:[u.jsx(ut,{className:m.actionButton,buttonType:ye.TEXT,buttonRef:this.cancelRef,onClick:f,children:this.props.cancelTitle??k("Cancel")}),!!n&&u.jsx(ut,{className:ge(m.actionButton,this.props.confirmClasses),onClick:n,buttonType:ye.TEXT_PRIMARY,disabled:a||i,children:a?u.jsx(oi,{}):this.props.confirmTitle||k("OK")}),!!r&&u.jsx(So,{className:ge(m.actionButton,this.props.confirmClasses),to:r,buttonType:ye.TEXT_PRIMARY,disabled:a||i,children:this.props.confirmTitle||k("OK")})]})})})}get titleID(){return this.id+"-title"}componentDidMount(){this.forceUpdate()}}function dOe(e){const[t,n]=x.useState(null),[r,o]=x.useState(e.initialValue||null),[a,i]=x.useState(!1),s=e.value??r,l=e.onChange??o,[c]=x.useState(s),d=t||s,f=c===s,h=k(f?"Delete":"Undo"),m=I0();return u.jsxs(u.Fragment,{children:[u.jsxs(aOe,{inputType:"upload",label:e.label,tooltip:e.tooltip,description:e.description,children:[e.fieldName&&u.jsx("input",{type:"hidden",value:s||"",name:e.fieldName}),u.jsx(lOe,{value:s,onChange:l,onImagePreview:n,imageUploader:e.imageUploader,disabled:e.disabled,errors:e.errors,preview:d&&u.jsxs(u.Fragment,{children:[u.jsx("div",{children:u.jsx("img",{className:m.imagePreview,src:d,loading:"lazy"})}),u.jsx("div",{children:u.jsx(ut,{buttonType:ye.TEXT_PRIMARY,onClick:()=>{n(null),f?i(!0):l(c)},disabled:e.disabled,children:h})})]})})]}),u.jsx(PB,{isVisible:a,title:k("Confirm Deletion"),onConfirm:()=>{l(""),i(!1)},onCancel:()=>{i(!1)},children:k("Are you sure you want to delete this image? You won't be able to recover it.")})]})}const Zc="/profile-fields",A0=so("@@userProfiles/fetchProfileFields",async(e,{rejectWithValue:t})=>{try{const{data:n}=await Ct.get(Zc,{params:{...e}});return n}catch(n){return t(n)}}),fOe=so("@@userProfiles/fetchProfileField",async(e,{rejectWithValue:t})=>{try{const{data:n}=await Ct.get(`${Zc}/${e}`);return n}catch(n){return t(n)}}),hOe=so("@@userProfiles/postProfileField",async(e,{rejectWithValue:t})=>{try{const{data:n}=await Ct.post(Zc,e);return n}catch(n){return t(n)}}),mOe=so("@@userProfiles/patchProfileField",async({apiName:e,...t},{rejectWithValue:n})=>{try{const{data:r}=await Ct.patch(`${Zc}/${e}`,t);return r}catch(r){return n(r)}}),O0=so("@@userProfiles/fetchUserProfileFields",async({userID:e,...t},{rejectWithValue:n})=>{try{const{data:r}=await Ct.get(`users/${e}${Zc}`,t);return r}catch(r){return n(r)}}),$S=so("@@userProfiles/deleteProfileField",async(e,{rejectWithValue:t})=>{try{return(await Ct.delete(`${Zc}/${e}`)).data}catch(n){return t(n)}}),pOe=so("@@userProfiles/patchUserProfileFields",async({userID:e,...t},{rejectWithValue:n})=>{try{const{data:r}=await Ct.patch(`users/${e}${Zc}`,t);return r}catch(r){return n(r)}}),gOe=so("@@userProfiles/putProfileFieldsSorts",async(e,{rejectWithValue:t})=>{try{(await Ct.put(`${Zc}/sorts`,e)).data}catch(n){return t(n)}}),vOe={profileFieldApiNamesByParamHash:{},profileFieldsByApiName:{},profileFieldsByUserID:{},deleteStatusByApiName:{}},zy=r1({name:"userProfiles",initialState:vOe,reducers:{},extraReducers:e=>{e.addCase(A0.pending,(t,n)=>{const r=zr(n.meta.arg);t.profileFieldApiNamesByParamHash[r]={status:X.LOADING}}).addCase(A0.fulfilled,(t,n)=>{const r=zr(n.meta.arg);t.profileFieldApiNamesByParamHash[r]={status:X.SUCCESS,data:n.payload.map(o=>o.apiName)},n.payload.forEach(o=>{t.profileFieldsByApiName[o.apiName]=o})}).addCase(A0.rejected,(t,n)=>{const r=zr(n.meta.arg);t.profileFieldApiNamesByParamHash[r]={status:X.ERROR,error:n.error}}).addCase(fOe.fulfilled,(t,n)=>{const r=n.meta.arg;t.profileFieldsByApiName[r]=n.payload}).addCase(hOe.fulfilled,(t,n)=>{const{apiName:r}=n.payload;t.profileFieldsByApiName[r]=n.payload}).addCase(mOe.fulfilled,(t,n)=>{const r=n.payload.apiName;t.profileFieldsByApiName[r]={...t.profileFieldsByApiName[r],...n.payload}}).addCase(O0.pending,(t,n)=>{const r=n.meta.arg.userID;t.profileFieldsByUserID[r]={status:X.LOADING}}).addCase(O0.fulfilled,(t,n)=>{const r=n.meta.arg.userID;t.profileFieldsByUserID[r]={status:X.SUCCESS,data:n.payload}}).addCase(O0.rejected,(t,n)=>{const r=n.meta.arg.userID;t.profileFieldsByUserID[r]={status:X.ERROR,error:n.error}}).addCase($S.pending,(t,n)=>{const r=n.meta.arg;t.deleteStatusByApiName[r]={status:X.LOADING}}).addCase($S.fulfilled,(t,n)=>{const r=n.meta.arg;t.deleteStatusByApiName[r]={status:X.SUCCESS,data:n.payload},delete t.profileFieldsByApiName[r],Object.keys(t.profileFieldApiNamesByParamHash).forEach(o=>{var a;t.profileFieldApiNamesByParamHash[o].data=(a=t.profileFieldApiNamesByParamHash[o].data)==null?void 0:a.filter(i=>i!==r)})}).addCase($S.rejected,(t,n)=>{const r=n.meta.arg;t.deleteStatusByApiName[r]={status:X.ERROR,error:n.error}}).addCase(gOe.fulfilled,(t,n)=>{Object.entries(n.meta.arg).forEach(([r,o])=>{t.profileFieldsByApiName[r]={...t.profileFieldsByApiName[r],sort:o}})})}});n1({reducer:{[zy.name]:zy.reducer}});const RB=()=>md(),g$=fn,bOe=fn,Bv=Hr({loadFunction:()=>mt(()=>import("../chunks/library/Tokens.loadable.9Yl82qPR.min.js"),__vite__mapDeps([27,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});function yOe(e){const{label:t,fieldName:n,description:r}=e,[o,a]=x.useState(()=>xOe(e.initialValue)),i=x.useMemo(()=>Object.keys(e.options).length?Object.entries(e.options).map(([s,l])=>({value:s,label:l})):[],[e.options]);return u.jsx("div",{className:Sy().containerLegacyForm,children:u.jsx(Bv,{label:k(t??""),placeholder:k("Select..."),options:i,onChange:s=>a(s),value:o??[],fieldName:n,labelNote:r})})}function xOe(e){let t=[];try{t=typeof e=="string"?JSON.parse(e):e}catch{t=[]}return t}var v$;(function(e){e.STANDARD="inputBlock",e.CUSTOM=""})(v$||(v$={}));class ni extends W.Component{constructor(t){super(t),this.state={id:zx(t,"inputText")}}render(){const{label:t,legend:n,required:r,tooltip:o,tooltipIcon:a="data-information"}=this.props,i=n?"div":t?"label":"div",s=n?"group":void 0,l=n?"div":"span",c=!!this.props.legend||!!this.props.label,d=Gh(),f=ae(this.props.baseClass==="inputBlock"?d.root:"",this.props.className),h=!!this.props.errors&&this.props.errors.length>0;let m;return typeof this.props.children=="function"?m=this.props.children({hasErrors:h,errorID:this.errorID,labelID:this.labelID}):m=this.props.children,u.jsxs(i,{className:f,role:s,"aria-labelledby":s==="group"?this.labelID:void 0,children:[c&&u.jsxs("span",{className:d.labelAndDescription,children:[u.jsxs(l,{id:this.labelID,className:ae(d.labelText,this.props.labelClassName),children:[r&&u.jsx("span",{"aria-label":k("required"),className:d.labelRequired,children:"*"}),this.props.legend??this.props.label,o&&u.jsx(In,{label:o,children:u.jsx(ky,{children:u.jsx("span",{className:d.tooltipIconContainer,children:u.jsx(Bt,{className:d.tooltipIcon,icon:a})})})})]}),u.jsx($i,{className:d.labelNote,children:this.props.labelNote})]}),u.jsx("span",{className:ae(d.inputWrap,[d.fieldsetGroup],this.props.wrapClassName,{[d.grid]:this.props.grid},{[d.tight]:this.props.tight},{noMargin:this.props.noMargin}),children:m}),u.jsx($i,{className:d.noteAfterInput,children:this.props.noteAfterInput}),u.jsx(El,{id:this.errorID,errors:this.props.errors,className:ge({[d.extendErrorPadding]:this.props.extendErrorMessage}),padded:!0})]})}get labelID(){return this.state.id+"-label"}get errorID(){return this.state.id+"-errors"}}q(ni,"defaultProps",{errors:[],baseClass:"inputBlock"});var Ii={},jB={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.formatDay=o7;Qi.formatMonthTitle=a7;Qi.formatWeekdayShort=i7;Qi.formatWeekdayLong=s7;Qi.getFirstDayOfWeek=l7;Qi.getMonths=c7;var COe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],wOe=["Su","Mo","Tu","We","Th","Fr","Sa"],r7=["January","February","March","April","May","June","July","August","September","October","November","December"];function o7(e){return e.toDateString()}function a7(e){return r7[e.getMonth()]+" "+e.getFullYear()}function i7(e){return wOe[e]}function s7(e){return COe[e]}function l7(){return 0}function c7(){return r7}Qi.default={formatDay:o7,formatMonthTitle:a7,formatWeekdayShort:i7,formatWeekdayLong:s7,getFirstDayOfWeek:l7,getMonths:c7};var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LEFT=37;$a.UP=38;$a.RIGHT=39;$a.DOWN=40;$a.ENTER=13;$a.SPACE=32;$a.ESC=27;$a.TAB=9;Object.defineProperty(jB,"__esModule",{value:!0});var SOe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u7=x,b$=d7(u7),DOe=Qi,EOe=d7(DOe),IOe=$a;function d7(e){return e&&e.__esModule?e:{default:e}}function TOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AOe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f7=function(e){OOe(t,e);function t(n){TOe(this,t);var r=AOe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.handleKeyUp=r.handleKeyUp.bind(r),r}return SOe(t,[{key:"shouldComponentUpdate",value:function(r){return r.locale!==this.props.locale||r.classNames!==this.props.classNames||r.date.getMonth()!==this.props.date.getMonth()||r.date.getFullYear()!==this.props.date.getFullYear()}},{key:"handleKeyUp",value:function(r){r.keyCode===IOe.ENTER&&this.props.onClick(r)}},{key:"render",value:function(){var r=this.props,o=r.classNames,a=r.date,i=r.months,s=r.locale,l=r.localeUtils,c=r.onClick;return b$.default.createElement("div",{className:o.caption,role:"heading","aria-live":"polite"},b$.default.createElement("div",{onClick:c,onKeyUp:this.handleKeyUp},i?i[a.getMonth()]+" "+a.getFullYear():l.formatMonthTitle(a,s)))}}]),t}(u7.Component);f7.defaultProps={localeUtils:EOe.default};jB.default=f7;var NB={},cm={};Object.defineProperty(cm,"__esModule",{value:!0});cm.default={container:"DayPicker",wrapper:"DayPicker-wrapper",interactionDisabled:"DayPicker--interactionDisabled",months:"DayPicker-Months",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",navButtonInteractionDisabled:"DayPicker-NavButton--interactionDisabled",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"};Object.defineProperty(NB,"__esModule",{value:!0});var BOe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h7=x,MS=m7(h7),kOe=cm,POe=m7(kOe),jb=$a;function m7(e){return e&&e.__esModule?e:{default:e}}function ROe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function jOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p7=function(e){jOe(t,e);function t(){var n,r,o,a;ROe(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(r=(o=y$(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.handleNextClick=function(){o.props.onNextClick&&o.props.onNextClick()},o.handlePreviousClick=function(){o.props.onPreviousClick&&o.props.onPreviousClick()},o.handleNextKeyDown=function(c){c.keyCode!==jb.ENTER&&c.keyCode!==jb.SPACE||(c.preventDefault(),o.handleNextClick())},o.handlePreviousKeyDown=function(c){c.keyCode!==jb.ENTER&&c.keyCode!==jb.SPACE||(c.preventDefault(),o.handlePreviousClick())},r),y$(o,a)}return BOe(t,[{key:"shouldComponentUpdate",value:function(r){return r.labels!==this.props.labels||r.dir!==this.props.dir||this.props.showPreviousButton!==r.showPreviousButton||this.props.showNextButton!==r.showNextButton}},{key:"render",value:function(){var r=this.props,o=r.classNames,a=r.className,i=r.showPreviousButton,s=r.showNextButton,l=r.labels,c=r.dir,d=void 0,f=void 0,h=void 0,m=void 0,g=void 0,p=void 0;c==="rtl"?(d=this.handleNextClick,f=this.handlePreviousClick,h=this.handleNextKeyDown,m=this.handlePreviousKeyDown,p=i,g=s):(d=this.handlePreviousClick,f=this.handleNextClick,h=this.handlePreviousKeyDown,m=this.handleNextKeyDown,p=s,g=i);var v=g?o.navButtonPrev:o.navButtonPrev+" "+o.navButtonInteractionDisabled,b=p?o.navButtonNext:o.navButtonNext+" "+o.navButtonInteractionDisabled,y=MS.default.createElement("span",{tabIndex:"0",role:"button","aria-label":l.previousMonth,key:"previous",className:v,onKeyDown:g?h:void 0,onClick:g?d:void 0}),C=MS.default.createElement("span",{tabIndex:"0",role:"button","aria-label":l.nextMonth,key:"right",className:b,onKeyDown:p?m:void 0,onClick:p?f:void 0});return MS.default.createElement("div",{className:a||o.navBar},c==="rtl"?[C,y]:[y,C])}}]),t}(h7.Component);p7.defaultProps={classNames:POe.default,dir:"ltr",labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},showPreviousButton:!0,showNextButton:!0};NB.default=p7;var LB={},$B={};Object.defineProperty($B,"__esModule",{value:!0});var NOe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g7=x,nf=LOe(g7);function LOe(e){return e&&e.__esModule?e:{default:e}}function $Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MOe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var FOe=function(e){_Oe(t,e);function t(){return $Oe(this,t),MOe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return NOe(t,[{key:"shouldComponentUpdate",value:function(r){return this.props!==r}},{key:"render",value:function(){for(var r=this.props,o=r.classNames,a=r.firstDayOfWeek,i=r.showWeekNumbers,s=r.weekdaysLong,l=r.weekdaysShort,c=r.locale,d=r.localeUtils,f=r.weekdayElement,h=[],m=0;m<7;m+=1){var g=(m+a)%7,p={key:m,className:o.weekday,weekday:g,weekdaysLong:s,weekdaysShort:l,localeUtils:d,locale:c},v=nf.default.isValidElement(f)?nf.default.cloneElement(f,p):nf.default.createElement(f,p);h.push(v)}return nf.default.createElement("div",{className:o.weekdays,role:"rowgroup"},nf.default.createElement("div",{className:o.weekdaysRow,role:"row"},i&&nf.default.createElement("div",{className:o.weekday}),h))}}]),t}(g7.Component);$B.default=FOe;var MB={},Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.clone=Al;Nr.isDate=v7;Nr.addMonths=b7;Nr.isSameDay=qu;Nr.isSameMonth=y7;Nr.isDayBefore=ud;Nr.isDayAfter=Hy;Nr.isPastDay=x7;Nr.isFutureDay=C7;Nr.isDayBetween=_B;Nr.addDayToRange=w7;Nr.isDayInRange=S7;Nr.getWeekNumber=D7;function Al(e){return new Date(e.getTime())}function v7(e){return e instanceof Date&&!isNaN(e.valueOf())}function b7(e,t){var n=Al(e);return n.setMonth(e.getMonth()+t),n}function qu(e,t){return!e||!t?!1:e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function y7(e,t){return!e||!t?!1:e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function ud(e,t){var n=Al(e).setHours(0,0,0,0),r=Al(t).setHours(0,0,0,0);return n<r}function Hy(e,t){var n=Al(e).setHours(0,0,0,0),r=Al(t).setHours(0,0,0,0);return n>r}function x7(e){var t=new Date;return t.setHours(0,0,0,0),ud(e,t)}function C7(e){var t=new Date(new Date().getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function _B(e,t,n){var r=Al(e);return r.setHours(0,0,0,0),Hy(r,t)&&ud(r,n)||Hy(r,n)&&ud(r,t)}function w7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&qu(n,r)&&qu(e,n)?(n=null,r=null):r&&ud(e,n)?n=e:r&&qu(e,r)?(n=e,r=e):(r=e,ud(r,n)&&(r=n,n=e)):n=e,{from:n,to:r}}function S7(e,t){var n=t.from,r=t.to;return n&&qu(e,n)||r&&qu(e,r)||n&&r&&_B(e,n,r)}function D7(e){var t=Al(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Nr.default={addDayToRange:w7,addMonths:b7,clone:Al,getWeekNumber:D7,isDate:v7,isDayAfter:Hy,isDayBefore:ud,isDayBetween:_B,isDayInRange:S7,isFutureDay:C7,isPastDay:x7,isSameDay:qu,isSameMonth:y7};var go={};Object.defineProperty(go,"__esModule",{value:!0});var WOe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};go.cancelEvent=GOe;go.getFirstDayOfMonth=E7;go.getDaysInMonth=I7;go.getModifiersFromProps=YOe;go.getFirstDayOfWeekFromProps=KOe;go.isRangeOfDates=qOe;go.getMonthsDiff=XOe;go.getWeekArray=QOe;go.startOfMonth=ZOe;go.getDayNodes=JOe;go.nodeListToArray=eBe;go.hasOwnProp=tBe;var B0=Nr,zOe=Qi,HOe=cm,UOe=VOe(HOe);function VOe(e){return e&&e.__esModule?e:{default:e}}function GOe(e){e.preventDefault(),e.stopPropagation()}function E7(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function I7(e){var t=E7(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}function YOe(e){var t=WOe({},e.modifiers);return e.selectedDays&&(t[e.classNames.selected]=e.selectedDays),e.disabledDays&&(t[e.classNames.disabled]=e.disabledDays),t}function KOe(e){var t=e.firstDayOfWeek,n=e.locale,r=n===void 0?"en":n,o=e.localeUtils,a=o===void 0?{}:o;return isNaN(t)?a.getFirstDayOfWeek?a.getFirstDayOfWeek(r):0:t}function qOe(e){return!!(e&&e.from&&e.to)}function XOe(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}function QOe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(0,zOe.getFirstDayOfWeek)(),n=arguments[2],r=I7(e),o=[],a=[],i=[],s=1;s<=r;s+=1)o.push(new Date(e.getFullYear(),e.getMonth(),s,12));o.forEach(function(D){a.length>0&&D.getDay()===t&&(i.push(a),a=[]),a.push(D),o.indexOf(D)===o.length-1&&i.push(a)});for(var l=i[0],c=7-l.length;c>0;c-=1){var d=(0,B0.clone)(l[0]);d.setDate(l[0].getDate()-1),l.unshift(d)}for(var f=i[i.length-1],h=f.length;h<7;h+=1){var m=(0,B0.clone)(f[f.length-1]);m.setDate(f[f.length-1].getDate()+1),f.push(m)}if(n&&i.length<6)for(var g=void 0,p=i.length;p<6;p+=1){g=i[i.length-1];for(var v=g[g.length-1],b=[],y=0;y<7;y+=1){var C=(0,B0.clone)(v);C.setDate(v.getDate()+y+1),b.push(C)}i.push(b)}return i}function ZOe(e){var t=(0,B0.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t}function JOe(e,t){var n=void 0;t===UOe.default?n=t.day+"--"+t.outside:n=""+t.outside;var r=t.day.replace(/ /g,"."),o=n.replace(/ /g,"."),a="."+r+":not(."+o+")";return e.querySelectorAll(a)}function eBe(e){return Array.prototype.slice.call(e,0)}function tBe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Object.defineProperty(MB,"__esModule",{value:!0});var nBe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rBe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T7=x,x$=A7(T7),oBe=Nr,C$=go,aBe=cm,iBe=A7(aBe);function A7(e){return e&&e.__esModule?e:{default:e}}function sBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lBe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function cBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function Js(e,t,n){if(e)return function(r){r.persist(),e(t,n,r)}}var FB=function(e){cBe(t,e);function t(){return sBe(this,t),lBe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return rBe(t,[{key:"shouldComponentUpdate",value:function(r){var o=this,a=Object.keys(this.props),i=Object.keys(r);return a.length!==i.length?!0:a.some(function(s){if(s==="modifiers"||s==="modifiersStyles"||s==="classNames"){var l=o.props[s],c=r[s],d=Object.keys(l),f=Object.keys(c);return d.length!==f.length?!0:d.some(function(h){return!(0,C$.hasOwnProp)(c,h)||l[h]!==c[h]})}return s==="day"?!(0,oBe.isSameDay)(o.props[s],r[s]):!(0,C$.hasOwnProp)(r,s)||o.props[s]!==r[s]})}},{key:"render",value:function(){var r=this.props,o=r.classNames,a=r.modifiersStyles,i=r.day,s=r.tabIndex,l=r.empty,c=r.modifiers,d=r.onMouseEnter,f=r.onMouseLeave,h=r.onMouseUp,m=r.onMouseDown,g=r.onClick,p=r.onKeyDown,v=r.onTouchStart,b=r.onTouchEnd,y=r.onFocus,C=r.ariaLabel,D=r.ariaDisabled,A=r.ariaSelected,T=r.children,B=o.day;o!==iBe.default?B+=" "+Object.keys(c).join(" "):B+=Object.keys(c).map(function(R){return" "+B+"--"+R}).join("");var j=void 0;return a&&Object.keys(c).filter(function(R){return!!a[R]}).forEach(function(R){j=nBe({},j,a[R])}),l?x$.default.createElement("div",{"aria-disabled":!0,className:B,style:j}):x$.default.createElement("div",{className:B,tabIndex:s,style:j,role:"gridcell","aria-label":C,"aria-disabled":D,"aria-selected":A,onClick:Js(g,i,c),onKeyDown:Js(p,i,c),onMouseEnter:Js(d,i,c),onMouseLeave:Js(f,i,c),onMouseUp:Js(h,i,c),onMouseDown:Js(m,i,c),onTouchEnd:Js(b,i,c),onTouchStart:Js(v,i,c),onFocus:Js(y,i,c)},T)}}]),t}(T7.Component);FB.defaultProps={tabIndex:-1};FB.defaultProps={modifiers:{},modifiersStyles:{},empty:!1};MB.default=FB;var um={};Object.defineProperty(um,"__esModule",{value:!0});um.dayMatchesModifier=WB;um.getModifiersForDay=O7;var fi=Nr,uBe=go;function WB(e,t){if(!t)return!1;var n=Array.isArray(t)?t:[t];return n.some(function(r){return r?r instanceof Date?(0,fi.isSameDay)(e,r):(0,uBe.isRangeOfDates)(r)?(0,fi.isDayInRange)(e,r):r.after&&r.before&&(0,fi.isDayAfter)(r.before,r.after)?(0,fi.isDayAfter)(e,r.after)&&(0,fi.isDayBefore)(e,r.before):r.after&&r.before&&((0,fi.isDayAfter)(r.after,r.before)||(0,fi.isSameDay)(r.after,r.before))?(0,fi.isDayAfter)(e,r.after)||(0,fi.isDayBefore)(e,r.before):r.after?(0,fi.isDayAfter)(e,r.after):r.before?(0,fi.isDayBefore)(e,r.before):r.daysOfWeek?r.daysOfWeek.some(function(o){return e.getDay()===o}):typeof r=="function"?r(e):!1:!1})}function O7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,r){var o=t[r];return WB(e,o)&&n.push(r),n},[])}um.default={dayMatchesModifier:WB,getModifiersForDay:O7};Object.defineProperty(LB,"__esModule",{value:!0});var dBe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),B7=x,el=HB(B7),fBe=$B,hBe=HB(fBe),mBe=MB,pBe=HB(mBe),gBe=$a,vBe=um,bBe=zB(vBe),yBe=go,w$=zB(yBe),xBe=Nr,S$=zB(xBe);function zB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function HB(e){return e&&e.__esModule?e:{default:e}}function CBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function wBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var SBe=function(e){wBe(t,e);function t(){var n,r,o,a;CBe(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(r=(o=D$(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.renderDay=function(c){var d=o.props.month.getMonth(),f=w$.getModifiersFromProps(o.props),h=bBe.getModifiersForDay(c,f);S$.isSameDay(c,new Date)&&!Object.prototype.hasOwnProperty.call(f,o.props.classNames.today)&&h.push(o.props.classNames.today),c.getMonth()!==d&&h.push(o.props.classNames.outside);var m=c.getMonth()!==d,g=-1;o.props.onDayClick&&!m&&c.getDate()===1&&(g=o.props.tabIndex);var p=""+c.getFullYear()+c.getMonth()+c.getDate(),v={};return h.forEach(function(b){v[b]=!0}),el.default.createElement(pBe.default,{key:(m?"outside-":"")+p,classNames:o.props.classNames,day:c,modifiers:v,modifiersStyles:o.props.modifiersStyles,empty:m&&!o.props.showOutsideDays&&!o.props.fixedWeeks,tabIndex:g,ariaLabel:o.props.localeUtils.formatDay(c,o.props.locale),ariaDisabled:m||h.indexOf(o.props.classNames.disabled)>-1,ariaSelected:h.indexOf(o.props.classNames.selected)>-1,onClick:o.props.onDayClick,onFocus:o.props.onDayFocus,onKeyDown:o.props.onDayKeyDown,onMouseEnter:o.props.onDayMouseEnter,onMouseLeave:o.props.onDayMouseLeave,onMouseDown:o.props.onDayMouseDown,onMouseUp:o.props.onDayMouseUp,onTouchEnd:o.props.onDayTouchEnd,onTouchStart:o.props.onDayTouchStart},o.props.renderDay(c,v))},r),D$(o,a)}return dBe(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.classNames,i=o.month,s=o.months,l=o.fixedWeeks,c=o.captionElement,d=o.weekdayElement,f=o.locale,h=o.localeUtils,m=o.weekdaysLong,g=o.weekdaysShort,p=o.firstDayOfWeek,v=o.onCaptionClick,b=o.showWeekNumbers,y=o.showWeekDays,C=o.onWeekClick,D={date:i,classNames:a,months:s,localeUtils:h,locale:f,onClick:v?function(B){return v(i,B)}:void 0},A=el.default.isValidElement(c)?el.default.cloneElement(c,D):el.default.createElement(c,D),T=w$.getWeekArray(i,p,l);return el.default.createElement("div",{className:a.month,role:"grid"},A,y&&el.default.createElement(hBe.default,{classNames:a,weekdaysShort:g,weekdaysLong:m,firstDayOfWeek:p,showWeekNumbers:b,locale:f,localeUtils:h,weekdayElement:d}),el.default.createElement("div",{className:a.body,role:"rowgroup"},T.map(function(B){var j=void 0;return b&&(j=S$.getWeekNumber(B[6])),el.default.createElement("div",{key:B[0].getTime(),className:a.week,role:"row"},b&&el.default.createElement("div",{className:a.weekNumber,tabIndex:C?0:-1,role:"gridcell",onClick:C?function(R){return C(j,B,R)}:void 0,onKeyUp:C?function(R){return R.keyCode===gBe.ENTER&&C(j,B,R)}:void 0},r.props.renderWeek(j,B,i)),B.map(r.renderDay))})))}}]),t}(B7.Component);LB.default=SBe;var UB={};Object.defineProperty(UB,"__esModule",{value:!0});var DBe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k7=x,E$=EBe(k7);function EBe(e){return e&&e.__esModule?e:{default:e}}function IBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TBe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ABe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var OBe=function(e){ABe(t,e);function t(){return IBe(this,t),TBe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return DBe(t,[{key:"shouldComponentUpdate",value:function(r){return this.props!==r}},{key:"render",value:function(){var r=this.props,o=r.weekday,a=r.className,i=r.weekdaysLong,s=r.weekdaysShort,l=r.localeUtils,c=r.locale,d=void 0;i?d=i[o]:d=l.formatWeekdayLong(o,c);var f=void 0;return s?f=s[o]:f=l.formatWeekdayShort(o,c),E$.default.createElement("div",{className:a,role:"columnheader"},E$.default.createElement("abbr",{title:d},f))}}]),t}(k7.Component);UB.default=OBe;Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ModifiersUtils=Ii.LocaleUtils=Ii.DateUtils=Ii.DayPicker=void 0;var I$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BBe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P7=x,Ya=dm(P7),kBe=jB,PBe=dm(kBe),RBe=NB,jBe=dm(RBe),NBe=LB,LBe=dm(NBe),$Be=UB,MBe=dm($Be),_Be=go,yn=V1(_Be),FBe=Nr,qo=V1(FBe),WBe=Qi,VB=V1(WBe),zBe=um,GB=V1(zBe),HBe=cm,_S=dm(HBe),os=$a;function V1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function dm(e){return e&&e.__esModule?e:{default:e}}function UBe(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function VBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GBe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function YBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fm=Ii.DayPicker=function(e){YBe(t,e);function t(n){VBe(this,t);var r=GBe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));r.dayPicker=null,r.showNextMonth=function(a){if(r.allowNextMonth()){var i=r.props.pagedNavigation?r.props.numberOfMonths:1,s=qo.addMonths(r.state.currentMonth,i);r.showMonth(s,a)}},r.showPreviousMonth=function(a){if(r.allowPreviousMonth()){var i=r.props.pagedNavigation?r.props.numberOfMonths:1,s=qo.addMonths(r.state.currentMonth,-i);r.showMonth(s,a)}},r.handleKeyDown=function(a){switch(a.persist(),a.keyCode){case os.LEFT:r.props.dir==="rtl"?r.showNextMonth():r.showPreviousMonth(),yn.cancelEvent(a);break;case os.RIGHT:r.props.dir==="rtl"?r.showPreviousMonth():r.showNextMonth(),yn.cancelEvent(a);break;case os.UP:r.showPreviousYear(),yn.cancelEvent(a);break;case os.DOWN:r.showNextYear(),yn.cancelEvent(a);break}r.props.onKeyDown&&r.props.onKeyDown(a)},r.handleDayKeyDown=function(a,i,s){switch(s.persist(),s.keyCode){case os.LEFT:yn.cancelEvent(s),r.props.dir==="rtl"?r.focusNextDay(s.target):r.focusPreviousDay(s.target);break;case os.RIGHT:yn.cancelEvent(s),r.props.dir==="rtl"?r.focusPreviousDay(s.target):r.focusNextDay(s.target);break;case os.UP:yn.cancelEvent(s),r.focusPreviousWeek(s.target);break;case os.DOWN:yn.cancelEvent(s),r.focusNextWeek(s.target);break;case os.ENTER:case os.SPACE:yn.cancelEvent(s),r.props.onDayClick&&r.handleDayClick(a,i,s);break}r.props.onDayKeyDown&&r.props.onDayKeyDown(a,i,s)},r.handleDayClick=function(a,i,s){s.persist(),i[r.props.classNames.outside]&&r.props.enableOutsideDaysClick&&r.handleOutsideDayClick(a),r.props.onDayClick&&r.props.onDayClick(a,i,s)},r.handleTodayButtonClick=function(a){var i=new Date,s=new Date(i.getFullYear(),i.getMonth());r.showMonth(s),a.target.blur(),r.props.onTodayButtonClick&&(a.persist(),r.props.onTodayButtonClick(new Date(i.getFullYear(),i.getMonth(),i.getDate()),GB.getModifiersForDay(i,r.props.modifiers),a))};var o=r.getCurrentMonthFromProps(n);return r.state={currentMonth:o},r}return BBe(t,[{key:"componentDidUpdate",value:function(r){if(r.month!==this.props.month&&!qo.isSameMonth(r.month,this.props.month)){var o=this.getCurrentMonthFromProps(this.props);this.setState({currentMonth:o})}}},{key:"getCurrentMonthFromProps",value:function(r){var o=yn.startOfMonth(r.month||r.initialMonth||new Date),a=o;if(r.pagedNavigation&&r.numberOfMonths>1&&r.fromMonth){var i=yn.startOfMonth(r.fromMonth),s=yn.getMonthsDiff(i,a);a=qo.addMonths(i,Math.floor(s/r.numberOfMonths)*r.numberOfMonths)}else r.toMonth&&r.numberOfMonths>1&&yn.getMonthsDiff(a,r.toMonth)<=0&&(a=qo.addMonths(yn.startOfMonth(r.toMonth),1-this.props.numberOfMonths));return a}},{key:"getNextNavigableMonth",value:function(){return qo.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return qo.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var r=qo.addMonths(this.state.currentMonth,-1);return this.allowMonth(r)}},{key:"allowNextMonth",value:function(){var r=qo.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(r)}},{key:"allowMonth",value:function(r){var o=this.props,a=o.fromMonth,i=o.toMonth,s=o.canChangeMonth;return!(!s||a&&yn.getMonthsDiff(a,r)<0||i&&yn.getMonthsDiff(i,r)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(r,o){var a=this;this.allowMonth(r)&&this.setState({currentMonth:yn.startOfMonth(r)},function(){o&&o(),a.props.onMonthChange&&a.props.onMonthChange(a.state.currentMonth)})}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var r=qo.addMonths(this.state.currentMonth,12);this.showMonth(r)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var r=qo.addMonths(this.state.currentMonth,-12);this.showMonth(r)}}},{key:"focus",value:function(){this.wrapper.focus()}},{key:"focusFirstDayOfMonth",value:function(){yn.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var r=yn.getDayNodes(this.dayPicker,this.props.classNames);r[r.length-1].focus()}},{key:"focusPreviousDay",value:function(r){var o=this,a=yn.getDayNodes(this.dayPicker,this.props.classNames),i=yn.nodeListToArray(a).indexOf(r);i!==-1&&(i===0?this.showPreviousMonth(function(){return o.focusLastDayOfMonth()}):a[i-1].focus())}},{key:"focusNextDay",value:function(r){var o=this,a=yn.getDayNodes(this.dayPicker,this.props.classNames),i=yn.nodeListToArray(a).indexOf(r);i!==-1&&(i===a.length-1?this.showNextMonth(function(){return o.focusFirstDayOfMonth()}):a[i+1].focus())}},{key:"focusNextWeek",value:function(r){var o=this,a=yn.getDayNodes(this.dayPicker,this.props.classNames),i=yn.nodeListToArray(a).indexOf(r),s=i>a.length-8;s?this.showNextMonth(function(){var l=a.length-i,c=7-l;yn.getDayNodes(o.dayPicker,o.props.classNames)[c].focus()}):a[i+7].focus()}},{key:"focusPreviousWeek",value:function(r){var o=this,a=yn.getDayNodes(this.dayPicker,this.props.classNames),i=yn.nodeListToArray(a).indexOf(r),s=i<=6;s?this.showPreviousMonth(function(){var l=yn.getDayNodes(o.dayPicker,o.props.classNames),c=l.length-7,d=c+i;l[d].focus()}):a[i-7].focus()}},{key:"handleOutsideDayClick",value:function(r){var o=this.state.currentMonth,a=this.props.numberOfMonths,i=yn.getMonthsDiff(o,r);i>0&&i>=a?this.showNextMonth():i<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var r=this.props,o=r.labels,a=r.locale,i=r.localeUtils,s=r.canChangeMonth,l=r.navbarElement,c=UBe(r,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!s)return null;var d={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:c.dir,labels:o,locale:a,localeUtils:i};return Ya.default.isValidElement(l)?Ya.default.cloneElement(l,d):Ya.default.createElement(l,d)}},{key:"renderMonths",value:function(){for(var r=[],o=yn.getFirstDayOfWeekFromProps(this.props),a=0;a<this.props.numberOfMonths;a+=1){var i=qo.addMonths(this.state.currentMonth,a);r.push(Ya.default.createElement(LBe.default,I$({key:a},this.props,{month:i,firstDayOfWeek:o,onDayKeyDown:this.handleDayKeyDown,onDayClick:this.handleDayClick})))}return this.props.reverseMonths&&r.reverse(),r}},{key:"renderFooter",value:function(){return this.props.todayButton?Ya.default.createElement("div",{className:this.props.classNames.footer},this.renderTodayButton()):null}},{key:"renderTodayButton",value:function(){return Ya.default.createElement("button",{type:"button",tabIndex:0,className:this.props.classNames.todayButton,"aria-label":this.props.todayButton,onClick:this.handleTodayButtonClick},this.props.todayButton)}},{key:"render",value:function(){var r=this,o=this.props.classNames.container;return this.props.onDayClick||(o=o+" "+this.props.classNames.interactionDisabled),this.props.className&&(o=o+" "+this.props.className),Ya.default.createElement("div",I$({},this.props.containerProps,{className:o,ref:function(i){return r.dayPicker=i},lang:this.props.locale}),Ya.default.createElement("div",{className:this.props.classNames.wrapper,ref:function(i){return r.wrapper=i},tabIndex:this.props.canChangeMonth&&typeof this.props.tabIndex<"u"?this.props.tabIndex:-1,onKeyDown:this.handleKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur},this.renderNavbar(),Ya.default.createElement("div",{className:this.props.classNames.months},this.renderMonths()),this.renderFooter()))}}]),t}(P7.Component);fm.defaultProps={classNames:_S.default,tabIndex:0,numberOfMonths:1,labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},locale:"en",localeUtils:VB,showOutsideDays:!1,enableOutsideDaysClick:!0,fixedWeeks:!1,canChangeMonth:!0,reverseMonths:!1,pagedNavigation:!1,showWeekNumbers:!1,showWeekDays:!0,renderDay:function(t){return t.getDate()},renderWeek:function(t){return t},weekdayElement:Ya.default.createElement(MBe.default,null),navbarElement:Ya.default.createElement(jBe.default,{classNames:_S.default}),captionElement:Ya.default.createElement(PBe.default,{classNames:_S.default})};fm.VERSION="7.4.10";fm.DateUtils=qo;fm.LocaleUtils=VB;fm.ModifiersUtils=GB;Ii.DateUtils=qo;Ii.LocaleUtils=VB;Ii.ModifiersUtils=GB;Ii.default=fm;var KBe=Ii;const qBe=jr(KBe);var R7;function et(){return R7.apply(null,arguments)}function XBe(e){R7=e}function Mi(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Xu(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function hn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function YB(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(hn(e,t))return!1;return!0}function Xo(e){return e===void 0}function Ol(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function kv(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function j7(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function mc(e,t){for(var n in t)hn(t,n)&&(e[n]=t[n]);return hn(t,"toString")&&(e.toString=t.toString),hn(t,"valueOf")&&(e.valueOf=t.valueOf),e}function zs(e,t,n,r){return rU(e,t,n,r,!0).utc()}function QBe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function zt(e){return e._pf==null&&(e._pf=QBe()),e._pf}var fI;Array.prototype.some?fI=Array.prototype.some:fI=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function KB(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=zt(e),n=fI.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function G1(e){var t=zs(NaN);return e!=null?mc(zt(t),e):zt(t).userInvalidated=!0,t}var T$=et.momentProperties=[],FS=!1;function qB(e,t){var n,r,o,a=T$.length;if(Xo(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Xo(t._i)||(e._i=t._i),Xo(t._f)||(e._f=t._f),Xo(t._l)||(e._l=t._l),Xo(t._strict)||(e._strict=t._strict),Xo(t._tzm)||(e._tzm=t._tzm),Xo(t._isUTC)||(e._isUTC=t._isUTC),Xo(t._offset)||(e._offset=t._offset),Xo(t._pf)||(e._pf=zt(t)),Xo(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=T$[n],o=t[r],Xo(o)||(e[r]=o);return e}function Pv(e){qB(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),FS===!1&&(FS=!0,et.updateOffset(this),FS=!1)}function _i(e){return e instanceof Pv||e!=null&&e._isAMomentObject!=null}function N7(e){et.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function li(e,t){var n=!0;return mc(function(){if(et.deprecationHandler!=null&&et.deprecationHandler(null,e),n){var r=[],o,a,i,s=arguments.length;for(a=0;a<s;a++){if(o="",typeof arguments[a]=="object"){o+=`
[`+a+"] ";for(i in arguments[0])hn(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];r.push(o)}N7(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var A$={};function L7(e,t){et.deprecationHandler!=null&&et.deprecationHandler(e,t),A$[e]||(N7(t),A$[e]=!0)}et.suppressDeprecationWarnings=!1;et.deprecationHandler=null;function Hs(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ZBe(e){var t,n;for(n in e)hn(e,n)&&(t=e[n],Hs(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function hI(e,t){var n=mc({},e),r;for(r in t)hn(t,r)&&(Xu(e[r])&&Xu(t[r])?(n[r]={},mc(n[r],e[r]),mc(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)hn(e,r)&&!hn(t,r)&&Xu(e[r])&&(n[r]=mc({},n[r]));return n}function XB(e){e!=null&&this.set(e)}var mI;Object.keys?mI=Object.keys:mI=function(e){var t,n=[];for(t in e)hn(e,t)&&n.push(t);return n};var JBe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function eke(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Hs(r)?r.call(t,n):r}function As(e,t,n){var r=""+Math.abs(e),o=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var QB=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Nb=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,WS={},Hf={};function xt(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Hf[e]=o),t&&(Hf[t[0]]=function(){return As(o.apply(this,arguments),t[1],t[2])}),n&&(Hf[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function tke(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function nke(e){var t=e.match(QB),n,r;for(n=0,r=t.length;n<r;n++)Hf[t[n]]?t[n]=Hf[t[n]]:t[n]=tke(t[n]);return function(o){var a="",i;for(i=0;i<r;i++)a+=Hs(t[i])?t[i].call(o,e):t[i];return a}}function k0(e,t){return e.isValid()?(t=$7(t,e.localeData()),WS[t]=WS[t]||nke(t),WS[t](e)):e.localeData().invalidDate()}function $7(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(Nb.lastIndex=0;n>=0&&Nb.test(e);)e=e.replace(Nb,r),Nb.lastIndex=0,n-=1;return e}var rke={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function oke(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(QB).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var ake="Invalid date";function ike(){return this._invalidDate}var ske="%d",lke=/\d{1,2}/;function cke(e){return this._ordinal.replace("%d",e)}var uke={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function dke(e,t,n,r){var o=this._relativeTime[n];return Hs(o)?o(e,t,n,r):o.replace(/%d/i,e)}function fke(e,t){var n=this._relativeTime[e>0?"future":"past"];return Hs(n)?n(t):n.replace(/%s/i,t)}var O$={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ci(e){return typeof e=="string"?O$[e]||O$[e.toLowerCase()]:void 0}function ZB(e){var t={},n,r;for(r in e)hn(e,r)&&(n=ci(r),n&&(t[n]=e[r]));return t}var hke={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function mke(e){var t=[],n;for(n in e)hn(e,n)&&t.push({unit:n,priority:hke[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var M7=/\d/,Ma=/\d\d/,_7=/\d{3}/,JB=/\d{4}/,Y1=/[+-]?\d{6}/,er=/\d\d?/,F7=/\d\d\d\d?/,W7=/\d\d\d\d\d\d?/,K1=/\d{1,3}/,ek=/\d{1,4}/,q1=/[+-]?\d{1,6}/,hm=/\d+/,X1=/[+-]?\d+/,pke=/Z|[+-]\d\d:?\d\d/gi,Q1=/Z|[+-]\d\d(?::?\d\d)?/gi,gke=/[+-]?\d+(\.\d{1,3})?/,Rv=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,mm=/^[1-9]\d?/,tk=/^([1-9]\d|\d)/,Uy;Uy={};function lt(e,t,n){Uy[e]=Hs(t)?t:function(r,o){return r&&n?n:t}}function vke(e,t){return hn(Uy,e)?Uy[e](t._strict,t._locale):new RegExp(bke(e))}function bke(e){return xl(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,a){return n||r||o||a}))}function xl(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ka(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ka(t)),n}var pI={};function kn(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Ol(t)&&(r=function(a,i){i[t]=nn(a)}),o=e.length,n=0;n<o;n++)pI[e[n]]=r}function jv(e,t){kn(e,function(n,r,o,a){o._w=o._w||{},t(n,o._w,o,a)})}function yke(e,t,n){t!=null&&hn(pI,e)&&pI[e](t,n._a,n,e)}function Z1(e){return e%4===0&&e%100!==0||e%400===0}var xo=0,fl=1,fs=2,Fr=3,Ti=4,hl=5,Lu=6,xke=7,Cke=8;xt("Y",0,0,function(){var e=this.year();return e<=9999?As(e,4):"+"+e});xt(0,["YY",2],0,function(){return this.year()%100});xt(0,["YYYY",4],0,"year");xt(0,["YYYYY",5],0,"year");xt(0,["YYYYYY",6,!0],0,"year");lt("Y",X1);lt("YY",er,Ma);lt("YYYY",ek,JB);lt("YYYYY",q1,Y1);lt("YYYYYY",q1,Y1);kn(["YYYYY","YYYYYY"],xo);kn("YYYY",function(e,t){t[xo]=e.length===2?et.parseTwoDigitYear(e):nn(e)});kn("YY",function(e,t){t[xo]=et.parseTwoDigitYear(e)});kn("Y",function(e,t){t[xo]=parseInt(e,10)});function Hp(e){return Z1(e)?366:365}et.parseTwoDigitYear=function(e){return nn(e)+(nn(e)>68?1900:2e3)};var z7=pm("FullYear",!0);function wke(){return Z1(this.year())}function pm(e,t){return function(n){return n!=null?(H7(this,e,n),et.updateOffset(this,t),this):Dg(this,e)}}function Dg(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function H7(e,t,n){var r,o,a,i,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=e.date(),s=s===29&&i===1&&!Z1(a)?28:s,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Ske(e){return e=ci(e),Hs(this[e])?this[e]():this}function Dke(e,t){if(typeof e=="object"){e=ZB(e);var n=mke(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=ci(e),Hs(this[e]))return this[e](t);return this}function Eke(e,t){return(e%t+t)%t}var Dr;Array.prototype.indexOf?Dr=Array.prototype.indexOf:Dr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function nk(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Eke(t,12);return e+=(t-n)/12,n===1?Z1(e)?29:28:31-n%7%2}xt("M",["MM",2],"Mo",function(){return this.month()+1});xt("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});xt("MMMM",0,0,function(e){return this.localeData().months(this,e)});lt("M",er,mm);lt("MM",er,Ma);lt("MMM",function(e,t){return t.monthsShortRegex(e)});lt("MMMM",function(e,t){return t.monthsRegex(e)});kn(["M","MM"],function(e,t){t[fl]=nn(e)-1});kn(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[fl]=o:zt(n).invalidMonth=e});var Ike="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),U7="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),V7=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Tke=Rv,Ake=Rv;function Oke(e,t){return e?Mi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||V7).test(t)?"format":"standalone"][e.month()]:Mi(this._months)?this._months:this._months.standalone}function Bke(e,t){return e?Mi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[V7.test(t)?"format":"standalone"][e.month()]:Mi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function kke(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=zs([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(o=Dr.call(this._shortMonthsParse,i),o!==-1?o:null):(o=Dr.call(this._longMonthsParse,i),o!==-1?o:null):t==="MMM"?(o=Dr.call(this._shortMonthsParse,i),o!==-1?o:(o=Dr.call(this._longMonthsParse,i),o!==-1?o:null)):(o=Dr.call(this._longMonthsParse,i),o!==-1?o:(o=Dr.call(this._shortMonthsParse,i),o!==-1?o:null))}function Pke(e,t,n){var r,o,a;if(this._monthsParseExact)return kke.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=zs([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function G7(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nn(t);else if(t=e.localeData().monthsParse(t),!Ol(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,nk(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Y7(e){return e!=null?(G7(this,e),et.updateOffset(this,!0),this):Dg(this,"Month")}function Rke(){return nk(this.year(),this.month())}function jke(e){return this._monthsParseExact?(hn(this,"_monthsRegex")||K7.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hn(this,"_monthsShortRegex")||(this._monthsShortRegex=Tke),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Nke(e){return this._monthsParseExact?(hn(this,"_monthsRegex")||K7.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hn(this,"_monthsRegex")||(this._monthsRegex=Ake),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function K7(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],o,a,i,s;for(o=0;o<12;o++)a=zs([2e3,o]),i=xl(this.monthsShort(a,"")),s=xl(this.months(a,"")),t.push(i),n.push(s),r.push(s),r.push(i);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Lke(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Eg(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Vy(e,t,n){var r=7+t-n,o=(7+Eg(e,0,r).getUTCDay()-t)%7;return-o+r-1}function q7(e,t,n,r,o){var a=(7+n-r)%7,i=Vy(e,r,o),s=1+7*(t-1)+a+i,l,c;return s<=0?(l=e-1,c=Hp(l)+s):s>Hp(e)?(l=e+1,c=s-Hp(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Ig(e,t,n){var r=Vy(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return o<1?(i=e.year()-1,a=o+Cl(i,t,n)):o>Cl(e.year(),t,n)?(a=o-Cl(e.year(),t,n),i=e.year()+1):(i=e.year(),a=o),{week:a,year:i}}function Cl(e,t,n){var r=Vy(e,t,n),o=Vy(e+1,t,n);return(Hp(e)-r+o)/7}xt("w",["ww",2],"wo","week");xt("W",["WW",2],"Wo","isoWeek");lt("w",er,mm);lt("ww",er,Ma);lt("W",er,mm);lt("WW",er,Ma);jv(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=nn(e)});function $ke(e){return Ig(e,this._week.dow,this._week.doy).week}var Mke={dow:0,doy:6};function _ke(){return this._week.dow}function Fke(){return this._week.doy}function Wke(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function zke(e){var t=Ig(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}xt("d",0,"do","day");xt("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});xt("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});xt("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});xt("e",0,0,"weekday");xt("E",0,0,"isoWeekday");lt("d",er);lt("e",er);lt("E",er);lt("dd",function(e,t){return t.weekdaysMinRegex(e)});lt("ddd",function(e,t){return t.weekdaysShortRegex(e)});lt("dddd",function(e,t){return t.weekdaysRegex(e)});jv(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:zt(n).invalidWeekday=e});jv(["d","e","E"],function(e,t,n,r){t[r]=nn(e)});function Hke(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Uke(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function rk(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Vke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),X7="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yke=Rv,Kke=Rv,qke=Rv;function Xke(e,t){var n=Mi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?rk(n,this._week.dow):e?n[e.day()]:n}function Qke(e){return e===!0?rk(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Zke(e){return e===!0?rk(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Jke(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=zs([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(o=Dr.call(this._weekdaysParse,i),o!==-1?o:null):t==="ddd"?(o=Dr.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=Dr.call(this._minWeekdaysParse,i),o!==-1?o:null):t==="dddd"?(o=Dr.call(this._weekdaysParse,i),o!==-1||(o=Dr.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=Dr.call(this._minWeekdaysParse,i),o!==-1?o:null)):t==="ddd"?(o=Dr.call(this._shortWeekdaysParse,i),o!==-1||(o=Dr.call(this._weekdaysParse,i),o!==-1)?o:(o=Dr.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=Dr.call(this._minWeekdaysParse,i),o!==-1||(o=Dr.call(this._weekdaysParse,i),o!==-1)?o:(o=Dr.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function ePe(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Jke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=zs([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function tPe(e){if(!this.isValid())return e!=null?this:NaN;var t=Dg(this,"Day");return e!=null?(e=Hke(e,this.localeData()),this.add(e-t,"d")):t}function nPe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function rPe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Uke(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function oPe(e){return this._weekdaysParseExact?(hn(this,"_weekdaysRegex")||ok.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hn(this,"_weekdaysRegex")||(this._weekdaysRegex=Yke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function aPe(e){return this._weekdaysParseExact?(hn(this,"_weekdaysRegex")||ok.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function iPe(e){return this._weekdaysParseExact?(hn(this,"_weekdaysRegex")||ok.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ok(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],a,i,s,l,c;for(a=0;a<7;a++)i=zs([2e3,1]).day(a),s=xl(this.weekdaysMin(i,"")),l=xl(this.weekdaysShort(i,"")),c=xl(this.weekdays(i,"")),t.push(s),n.push(l),r.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ak(){return this.hours()%12||12}function sPe(){return this.hours()||24}xt("H",["HH",2],0,"hour");xt("h",["hh",2],0,ak);xt("k",["kk",2],0,sPe);xt("hmm",0,0,function(){return""+ak.apply(this)+As(this.minutes(),2)});xt("hmmss",0,0,function(){return""+ak.apply(this)+As(this.minutes(),2)+As(this.seconds(),2)});xt("Hmm",0,0,function(){return""+this.hours()+As(this.minutes(),2)});xt("Hmmss",0,0,function(){return""+this.hours()+As(this.minutes(),2)+As(this.seconds(),2)});function Q7(e,t){xt(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Q7("a",!0);Q7("A",!1);function Z7(e,t){return t._meridiemParse}lt("a",Z7);lt("A",Z7);lt("H",er,tk);lt("h",er,mm);lt("k",er,mm);lt("HH",er,Ma);lt("hh",er,Ma);lt("kk",er,Ma);lt("hmm",F7);lt("hmmss",W7);lt("Hmm",F7);lt("Hmmss",W7);kn(["H","HH"],Fr);kn(["k","kk"],function(e,t,n){var r=nn(e);t[Fr]=r===24?0:r});kn(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kn(["h","hh"],function(e,t,n){t[Fr]=nn(e),zt(n).bigHour=!0});kn("hmm",function(e,t,n){var r=e.length-2;t[Fr]=nn(e.substr(0,r)),t[Ti]=nn(e.substr(r)),zt(n).bigHour=!0});kn("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Fr]=nn(e.substr(0,r)),t[Ti]=nn(e.substr(r,2)),t[hl]=nn(e.substr(o)),zt(n).bigHour=!0});kn("Hmm",function(e,t,n){var r=e.length-2;t[Fr]=nn(e.substr(0,r)),t[Ti]=nn(e.substr(r))});kn("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Fr]=nn(e.substr(0,r)),t[Ti]=nn(e.substr(r,2)),t[hl]=nn(e.substr(o))});function lPe(e){return(e+"").toLowerCase().charAt(0)==="p"}var cPe=/[ap]\.?m?\.?/i,uPe=pm("Hours",!0);function dPe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var J7={calendar:JBe,longDateFormat:rke,invalidDate:ake,ordinal:ske,dayOfMonthOrdinalParse:lke,relativeTime:uke,months:Ike,monthsShort:U7,week:Mke,weekdays:Vke,weekdaysMin:Gke,weekdaysShort:X7,meridiemParse:cPe},or={},ap={},Tg;function fPe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function B$(e){return e&&e.toLowerCase().replace("_","-")}function hPe(e){for(var t=0,n,r,o,a;t<e.length;){for(a=B$(e[t]).split("-"),n=a.length,r=B$(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=J1(a.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&fPe(a,r)>=n-1)break;n--}t++}return Tg}function mPe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function J1(e){var t=null,n;if(or[e]===void 0&&typeof module<"u"&&module&&module.exports&&mPe(e))try{t=Tg._abbr,n=require,n("./locale/"+e),Ic(t)}catch{or[e]=null}return or[e]}function Ic(e,t){var n;return e&&(Xo(t)?n=Wl(e):n=ik(e,t),n?Tg=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Tg._abbr}function ik(e,t){if(t!==null){var n,r=J7;if(t.abbr=e,or[e]!=null)L7("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=or[e]._config;else if(t.parentLocale!=null)if(or[t.parentLocale]!=null)r=or[t.parentLocale]._config;else if(n=J1(t.parentLocale),n!=null)r=n._config;else return ap[t.parentLocale]||(ap[t.parentLocale]=[]),ap[t.parentLocale].push({name:e,config:t}),null;return or[e]=new XB(hI(r,t)),ap[e]&&ap[e].forEach(function(o){ik(o.name,o.config)}),Ic(e),or[e]}else return delete or[e],null}function pPe(e,t){if(t!=null){var n,r,o=J7;or[e]!=null&&or[e].parentLocale!=null?or[e].set(hI(or[e]._config,t)):(r=J1(e),r!=null&&(o=r._config),t=hI(o,t),r==null&&(t.abbr=e),n=new XB(t),n.parentLocale=or[e],or[e]=n),Ic(e)}else or[e]!=null&&(or[e].parentLocale!=null?(or[e]=or[e].parentLocale,e===Ic()&&Ic(e)):or[e]!=null&&delete or[e]);return or[e]}function Wl(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Tg;if(!Mi(e)){if(t=J1(e),t)return t;e=[e]}return hPe(e)}function gPe(){return mI(or)}function sk(e){var t,n=e._a;return n&&zt(e).overflow===-2&&(t=n[fl]<0||n[fl]>11?fl:n[fs]<1||n[fs]>nk(n[xo],n[fl])?fs:n[Fr]<0||n[Fr]>24||n[Fr]===24&&(n[Ti]!==0||n[hl]!==0||n[Lu]!==0)?Fr:n[Ti]<0||n[Ti]>59?Ti:n[hl]<0||n[hl]>59?hl:n[Lu]<0||n[Lu]>999?Lu:-1,zt(e)._overflowDayOfYear&&(t<xo||t>fs)&&(t=fs),zt(e)._overflowWeeks&&t===-1&&(t=xke),zt(e)._overflowWeekday&&t===-1&&(t=Cke),zt(e).overflow=t),e}var vPe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bPe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yPe=/Z|[+-]\d\d(?::?\d\d)?/,Lb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zS=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xPe=/^\/?Date\((-?\d+)/i,CPe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wPe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function eU(e){var t,n,r=e._i,o=vPe.exec(r)||bPe.exec(r),a,i,s,l,c=Lb.length,d=zS.length;if(o){for(zt(e).iso=!0,t=0,n=c;t<n;t++)if(Lb[t][1].exec(o[1])){i=Lb[t][0],a=Lb[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(o[3]){for(t=0,n=d;t<n;t++)if(zS[t][1].exec(o[3])){s=(o[2]||" ")+zS[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(o[4])if(yPe.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=i+(s||"")+(l||""),ck(e)}else e._isValid=!1}function SPe(e,t,n,r,o,a){var i=[DPe(e),U7.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function DPe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function EPe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function IPe(e,t,n){if(e){var r=X7.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return zt(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function TPe(e,t,n){if(e)return wPe[e];if(t)return 0;var r=parseInt(n,10),o=r%100,a=(r-o)/100;return a*60+o}function tU(e){var t=CPe.exec(EPe(e._i)),n;if(t){if(n=SPe(t[4],t[3],t[2],t[5],t[6],t[7]),!IPe(t[1],n,e))return;e._a=n,e._tzm=TPe(t[8],t[9],t[10]),e._d=Eg.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),zt(e).rfc2822=!0}else e._isValid=!1}function APe(e){var t=xPe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(eU(e),e._isValid===!1)delete e._isValid;else return;if(tU(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:et.createFromInputFallback(e)}et.createFromInputFallback=li("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ff(e,t,n){return e??t??n}function OPe(e){var t=new Date(et.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lk(e){var t,n,r=[],o,a,i;if(!e._d){for(o=OPe(e),e._w&&e._a[fs]==null&&e._a[fl]==null&&BPe(e),e._dayOfYear!=null&&(i=ff(e._a[xo],o[xo]),(e._dayOfYear>Hp(i)||e._dayOfYear===0)&&(zt(e)._overflowDayOfYear=!0),n=Eg(i,0,e._dayOfYear),e._a[fl]=n.getUTCMonth(),e._a[fs]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Fr]===24&&e._a[Ti]===0&&e._a[hl]===0&&e._a[Lu]===0&&(e._nextDay=!0,e._a[Fr]=0),e._d=(e._useUTC?Eg:Lke).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Fr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(zt(e).weekdayMismatch=!0)}}function BPe(e){var t,n,r,o,a,i,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=ff(t.GG,e._a[xo],Ig(Jn(),1,4).year),r=ff(t.W,1),o=ff(t.E,1),(o<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=Ig(Jn(),a,i),n=ff(t.gg,e._a[xo],c.year),r=ff(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>Cl(n,a,i)?zt(e)._overflowWeeks=!0:l!=null?zt(e)._overflowWeekday=!0:(s=q7(n,r,o,a,i),e._a[xo]=s.year,e._dayOfYear=s.dayOfYear)}et.ISO_8601=function(){};et.RFC_2822=function(){};function ck(e){if(e._f===et.ISO_8601){eU(e);return}if(e._f===et.RFC_2822){tU(e);return}e._a=[],zt(e).empty=!0;var t=""+e._i,n,r,o,a,i,s=t.length,l=0,c,d;for(o=$7(e._f,e._locale).match(QB)||[],d=o.length,n=0;n<d;n++)a=o[n],r=(t.match(vke(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&zt(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Hf[a]?(r?zt(e).empty=!1:zt(e).unusedTokens.push(a),yke(a,r,e)):e._strict&&!r&&zt(e).unusedTokens.push(a);zt(e).charsLeftOver=s-l,t.length>0&&zt(e).unusedInput.push(t),e._a[Fr]<=12&&zt(e).bigHour===!0&&e._a[Fr]>0&&(zt(e).bigHour=void 0),zt(e).parsedDateParts=e._a.slice(0),zt(e).meridiem=e._meridiem,e._a[Fr]=kPe(e._locale,e._a[Fr],e._meridiem),c=zt(e).era,c!==null&&(e._a[xo]=e._locale.erasConvertYear(c,e._a[xo])),lk(e),sk(e)}function kPe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function PPe(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(l===0){zt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)a=0,i=!1,t=qB({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],ck(t),KB(t)&&(i=!0),a+=zt(t).charsLeftOver,a+=zt(t).unusedTokens.length*10,zt(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||i)&&(r=a,n=t,i&&(s=!0));mc(e,n||t)}function RPe(e){if(!e._d){var t=ZB(e._i),n=t.day===void 0?t.date:t.day;e._a=j7([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),lk(e)}}function jPe(e){var t=new Pv(sk(nU(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function nU(e){var t=e._i,n=e._f;return e._locale=e._locale||Wl(e._l),t===null||n===void 0&&t===""?G1({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),_i(t)?new Pv(sk(t)):(kv(t)?e._d=t:Mi(n)?PPe(e):n?ck(e):NPe(e),KB(e)||(e._d=null),e))}function NPe(e){var t=e._i;Xo(t)?e._d=new Date(et.now()):kv(t)?e._d=new Date(t.valueOf()):typeof t=="string"?APe(e):Mi(t)?(e._a=j7(t.slice(0),function(n){return parseInt(n,10)}),lk(e)):Xu(t)?RPe(e):Ol(t)?e._d=new Date(t):et.createFromInputFallback(e)}function rU(e,t,n,r,o){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Xu(e)&&YB(e)||Mi(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,jPe(a)}function Jn(e,t,n,r){return rU(e,t,n,r,!1)}var LPe=li("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G1()}),$Pe=li("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:G1()});function oU(e,t){var n,r;if(t.length===1&&Mi(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function MPe(){var e=[].slice.call(arguments,0);return oU("isBefore",e)}function _Pe(){var e=[].slice.call(arguments,0);return oU("isAfter",e)}var FPe=function(){return Date.now?Date.now():+new Date},ip=["year","quarter","month","week","day","hour","minute","second","millisecond"];function WPe(e){var t,n=!1,r,o=ip.length;for(t in e)if(hn(e,t)&&!(Dr.call(ip,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[ip[r]]){if(n)return!1;parseFloat(e[ip[r]])!==nn(e[ip[r]])&&(n=!0)}return!0}function zPe(){return this._isValid}function HPe(){return Zi(NaN)}function eC(e){var t=ZB(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=WPe(t),this._milliseconds=+d+c*1e3+l*6e4+s*1e3*60*60,this._days=+i+a*7,this._months=+o+r*3+n*12,this._data={},this._locale=Wl(),this._bubble()}function P0(e){return e instanceof eC}function gI(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function UPe(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&nn(e[i])!==nn(t[i]))&&a++;return a+o}function aU(e,t){xt(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+As(~~(n/60),2)+t+As(~~n%60,2)})}aU("Z",":");aU("ZZ","");lt("Z",Q1);lt("ZZ",Q1);kn(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=uk(Q1,e)});var VPe=/([\+\-]|\d\d)/gi;function uk(e,t){var n=(t||"").match(e),r,o,a;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(VPe)||["-",0,0],a=+(o[1]*60)+nn(o[2]),a===0?0:o[0]==="+"?a:-a)}function dk(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_i(e)||kv(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),et.updateOffset(n,!1),n):Jn(e).local()}function vI(e){return-Math.round(e._d.getTimezoneOffset())}et.updateOffset=function(){};function GPe(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=uk(Q1,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=vI(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?lU(this,Zi(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,et.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:vI(this)}function YPe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function KPe(e){return this.utcOffset(0,e)}function qPe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(vI(this),"m")),this}function XPe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=uk(pke,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function QPe(e){return this.isValid()?(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ZPe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function JPe(){if(!Xo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return qB(e,this),e=nU(e),e._a?(t=e._isUTC?zs(e._a):Jn(e._a),this._isDSTShifted=this.isValid()&&UPe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function eRe(){return this.isValid()?!this._isUTC:!1}function tRe(){return this.isValid()?this._isUTC:!1}function iU(){return this.isValid()?this._isUTC&&this._offset===0:!1}var nRe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rRe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zi(e,t){var n=e,r=null,o,a,i;return P0(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ol(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=nRe.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:nn(r[fs])*o,h:nn(r[Fr])*o,m:nn(r[Ti])*o,s:nn(r[hl])*o,ms:nn(gI(r[Lu]*1e3))*o}):(r=rRe.exec(e))?(o=r[1]==="-"?-1:1,n={y:fu(r[2],o),M:fu(r[3],o),w:fu(r[4],o),d:fu(r[5],o),h:fu(r[6],o),m:fu(r[7],o),s:fu(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=oRe(Jn(n.from),Jn(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new eC(n),P0(e)&&hn(e,"_locale")&&(a._locale=e._locale),P0(e)&&hn(e,"_isValid")&&(a._isValid=e._isValid),a}Zi.fn=eC.prototype;Zi.invalid=HPe;function fu(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function k$(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function oRe(e,t){var n;return e.isValid()&&t.isValid()?(t=dk(t,e),e.isBefore(t)?n=k$(e,t):(n=k$(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function sU(e,t){return function(n,r){var o,a;return r!==null&&!isNaN(+r)&&(L7(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),o=Zi(n,r),lU(this,o,e),this}}function lU(e,t,n,r){var o=t._milliseconds,a=gI(t._days),i=gI(t._months);e.isValid()&&(r=r??!0,i&&G7(e,Dg(e,"Month")+i*n),a&&H7(e,"Date",Dg(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&et.updateOffset(e,a||i))}var aRe=sU(1,"add"),iRe=sU(-1,"subtract");function cU(e){return typeof e=="string"||e instanceof String}function sRe(e){return _i(e)||kv(e)||cU(e)||Ol(e)||cRe(e)||lRe(e)||e===null||e===void 0}function lRe(e){var t=Xu(e)&&!YB(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,i=r.length;for(o=0;o<i;o+=1)a=r[o],n=n||hn(e,a);return t&&n}function cRe(e){var t=Mi(e),n=!1;return t&&(n=e.filter(function(r){return!Ol(r)&&cU(e)}).length===0),t&&n}function uRe(e){var t=Xu(e)&&!YB(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,a;for(o=0;o<r.length;o+=1)a=r[o],n=n||hn(e,a);return t&&n}function dRe(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function fRe(e,t){arguments.length===1&&(arguments[0]?sRe(arguments[0])?(e=arguments[0],t=void 0):uRe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),r=dk(n,this).startOf("day"),o=et.calendarFormat(this,r)||"sameElse",a=t&&(Hs(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Jn(n)))}function hRe(){return new Pv(this)}function mRe(e,t){var n=_i(e)?e:Jn(e);return this.isValid()&&n.isValid()?(t=ci(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function pRe(e,t){var n=_i(e)?e:Jn(e);return this.isValid()&&n.isValid()?(t=ci(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function gRe(e,t,n,r){var o=_i(e)?e:Jn(e),a=_i(t)?t:Jn(t);return this.isValid()&&o.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function vRe(e,t){var n=_i(e)?e:Jn(e),r;return this.isValid()&&n.isValid()?(t=ci(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function bRe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function yRe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function xRe(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(r=dk(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=ci(t),t){case"year":a=R0(this,r)/12;break;case"month":a=R0(this,r);break;case"quarter":a=R0(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Ka(a)}function R0(e,t){if(e.date()<t.date())return-R0(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,a;return t-r<0?(o=e.clone().add(n-1,"months"),a=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),a=(t-r)/(o-r)),-(n+a)||0}et.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";et.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function CRe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wRe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?k0(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Hs(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",k0(n,"Z")):k0(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function SRe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+o+a)}function DRe(e){e||(e=this.isUtc()?et.defaultFormatUtc:et.defaultFormat);var t=k0(this,e);return this.localeData().postformat(t)}function ERe(e,t){return this.isValid()&&(_i(e)&&e.isValid()||Jn(e).isValid())?Zi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function IRe(e){return this.from(Jn(),e)}function TRe(e,t){return this.isValid()&&(_i(e)&&e.isValid()||Jn(e).isValid())?Zi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ARe(e){return this.to(Jn(),e)}function uU(e){var t;return e===void 0?this._locale._abbr:(t=Wl(e),t!=null&&(this._locale=t),this)}var dU=li("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function fU(){return this._locale}var Gy=1e3,Uf=60*Gy,Yy=60*Uf,hU=(365*400+97)*24*Yy;function Vf(e,t){return(e%t+t)%t}function mU(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hU:new Date(e,t,n).valueOf()}function pU(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hU:Date.UTC(e,t,n)}function ORe(e){var t,n;if(e=ci(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?pU:mU,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Vf(t+(this._isUTC?0:this.utcOffset()*Uf),Yy);break;case"minute":t=this._d.valueOf(),t-=Vf(t,Uf);break;case"second":t=this._d.valueOf(),t-=Vf(t,Gy);break}return this._d.setTime(t),et.updateOffset(this,!0),this}function BRe(e){var t,n;if(e=ci(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?pU:mU,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Yy-Vf(t+(this._isUTC?0:this.utcOffset()*Uf),Yy)-1;break;case"minute":t=this._d.valueOf(),t+=Uf-Vf(t,Uf)-1;break;case"second":t=this._d.valueOf(),t+=Gy-Vf(t,Gy)-1;break}return this._d.setTime(t),et.updateOffset(this,!0),this}function kRe(){return this._d.valueOf()-(this._offset||0)*6e4}function PRe(){return Math.floor(this.valueOf()/1e3)}function RRe(){return new Date(this.valueOf())}function jRe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function NRe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function LRe(){return this.isValid()?this.toISOString():null}function $Re(){return KB(this)}function MRe(){return mc({},zt(this))}function _Re(){return zt(this).overflow}function FRe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}xt("N",0,0,"eraAbbr");xt("NN",0,0,"eraAbbr");xt("NNN",0,0,"eraAbbr");xt("NNNN",0,0,"eraName");xt("NNNNN",0,0,"eraNarrow");xt("y",["y",1],"yo","eraYear");xt("y",["yy",2],0,"eraYear");xt("y",["yyy",3],0,"eraYear");xt("y",["yyyy",4],0,"eraYear");lt("N",fk);lt("NN",fk);lt("NNN",fk);lt("NNNN",QRe);lt("NNNNN",ZRe);kn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?zt(n).era=o:zt(n).invalidEra=e});lt("y",hm);lt("yy",hm);lt("yyy",hm);lt("yyyy",hm);lt("yo",JRe);kn(["y","yy","yyy","yyyy"],xo);kn(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xo]=n._locale.eraYearOrdinalParse(e,o):t[xo]=parseInt(e,10)});function WRe(e,t){var n,r,o,a=this._eras||Wl("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":o=et(a[n].since).startOf("day"),a[n].since=o.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=et(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf();break}}return a}function zRe(e,t,n){var r,o,a=this.eras(),i,s,l;for(e=e.toUpperCase(),r=0,o=a.length;r<o;++r)if(i=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),l=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(l===e)return a[r];break}else if([i,s,l].indexOf(e)>=0)return a[r]}function HRe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?et(e.since).year():et(e.since).year()+(t-e.offset)*n}function URe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function VRe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function GRe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function YRe(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-et(o[e].since).year())*n+o[e].offset;return this.year()}function KRe(e){return hn(this,"_erasNameRegex")||hk.call(this),e?this._erasNameRegex:this._erasRegex}function qRe(e){return hn(this,"_erasAbbrRegex")||hk.call(this),e?this._erasAbbrRegex:this._erasRegex}function XRe(e){return hn(this,"_erasNarrowRegex")||hk.call(this),e?this._erasNarrowRegex:this._erasRegex}function fk(e,t){return t.erasAbbrRegex(e)}function QRe(e,t){return t.erasNameRegex(e)}function ZRe(e,t){return t.erasNarrowRegex(e)}function JRe(e,t){return t._eraYearOrdinalRegex||hm}function hk(){var e=[],t=[],n=[],r=[],o,a,i,s,l,c=this.eras();for(o=0,a=c.length;o<a;++o)i=xl(c[o].name),s=xl(c[o].abbr),l=xl(c[o].narrow),t.push(i),e.push(s),n.push(l),r.push(i),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}xt(0,["gg",2],0,function(){return this.weekYear()%100});xt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function tC(e,t){xt(0,[e,e.length],0,t)}tC("gggg","weekYear");tC("ggggg","weekYear");tC("GGGG","isoWeekYear");tC("GGGGG","isoWeekYear");lt("G",X1);lt("g",X1);lt("GG",er,Ma);lt("gg",er,Ma);lt("GGGG",ek,JB);lt("gggg",ek,JB);lt("GGGGG",q1,Y1);lt("ggggg",q1,Y1);jv(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=nn(e)});jv(["gg","GG"],function(e,t,n,r){t[r]=et.parseTwoDigitYear(e)});function eje(e){return gU.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function tje(e){return gU.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function nje(){return Cl(this.year(),1,4)}function rje(){return Cl(this.isoWeekYear(),1,4)}function oje(){var e=this.localeData()._week;return Cl(this.year(),e.dow,e.doy)}function aje(){var e=this.localeData()._week;return Cl(this.weekYear(),e.dow,e.doy)}function gU(e,t,n,r,o){var a;return e==null?Ig(this,r,o).year:(a=Cl(e,r,o),t>a&&(t=a),ije.call(this,e,t,n,r,o))}function ije(e,t,n,r,o){var a=q7(e,t,n,r,o),i=Eg(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}xt("Q",0,"Qo","quarter");lt("Q",M7);kn("Q",function(e,t){t[fl]=(nn(e)-1)*3});function sje(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}xt("D",["DD",2],"Do","date");lt("D",er,mm);lt("DD",er,Ma);lt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kn(["D","DD"],fs);kn("Do",function(e,t){t[fs]=nn(e.match(er)[0])});var vU=pm("Date",!0);xt("DDD",["DDDD",3],"DDDo","dayOfYear");lt("DDD",K1);lt("DDDD",_7);kn(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nn(e)});function lje(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}xt("m",["mm",2],0,"minute");lt("m",er,tk);lt("mm",er,Ma);kn(["m","mm"],Ti);var cje=pm("Minutes",!1);xt("s",["ss",2],0,"second");lt("s",er,tk);lt("ss",er,Ma);kn(["s","ss"],hl);var uje=pm("Seconds",!1);xt("S",0,0,function(){return~~(this.millisecond()/100)});xt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});xt(0,["SSS",3],0,"millisecond");xt(0,["SSSS",4],0,function(){return this.millisecond()*10});xt(0,["SSSSS",5],0,function(){return this.millisecond()*100});xt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});xt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});xt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});xt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});lt("S",K1,M7);lt("SS",K1,Ma);lt("SSS",K1,_7);var pc,bU;for(pc="SSSS";pc.length<=9;pc+="S")lt(pc,hm);function dje(e,t){t[Lu]=nn(("0."+e)*1e3)}for(pc="S";pc.length<=9;pc+="S")kn(pc,dje);bU=pm("Milliseconds",!1);xt("z",0,0,"zoneAbbr");xt("zz",0,0,"zoneName");function fje(){return this._isUTC?"UTC":""}function hje(){return this._isUTC?"Coordinated Universal Time":""}var Fe=Pv.prototype;Fe.add=aRe;Fe.calendar=fRe;Fe.clone=hRe;Fe.diff=xRe;Fe.endOf=BRe;Fe.format=DRe;Fe.from=ERe;Fe.fromNow=IRe;Fe.to=TRe;Fe.toNow=ARe;Fe.get=Ske;Fe.invalidAt=_Re;Fe.isAfter=mRe;Fe.isBefore=pRe;Fe.isBetween=gRe;Fe.isSame=vRe;Fe.isSameOrAfter=bRe;Fe.isSameOrBefore=yRe;Fe.isValid=$Re;Fe.lang=dU;Fe.locale=uU;Fe.localeData=fU;Fe.max=$Pe;Fe.min=LPe;Fe.parsingFlags=MRe;Fe.set=Dke;Fe.startOf=ORe;Fe.subtract=iRe;Fe.toArray=jRe;Fe.toObject=NRe;Fe.toDate=RRe;Fe.toISOString=wRe;Fe.inspect=SRe;typeof Symbol<"u"&&Symbol.for!=null&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Fe.toJSON=LRe;Fe.toString=CRe;Fe.unix=PRe;Fe.valueOf=kRe;Fe.creationData=FRe;Fe.eraName=URe;Fe.eraNarrow=VRe;Fe.eraAbbr=GRe;Fe.eraYear=YRe;Fe.year=z7;Fe.isLeapYear=wke;Fe.weekYear=eje;Fe.isoWeekYear=tje;Fe.quarter=Fe.quarters=sje;Fe.month=Y7;Fe.daysInMonth=Rke;Fe.week=Fe.weeks=Wke;Fe.isoWeek=Fe.isoWeeks=zke;Fe.weeksInYear=oje;Fe.weeksInWeekYear=aje;Fe.isoWeeksInYear=nje;Fe.isoWeeksInISOWeekYear=rje;Fe.date=vU;Fe.day=Fe.days=tPe;Fe.weekday=nPe;Fe.isoWeekday=rPe;Fe.dayOfYear=lje;Fe.hour=Fe.hours=uPe;Fe.minute=Fe.minutes=cje;Fe.second=Fe.seconds=uje;Fe.millisecond=Fe.milliseconds=bU;Fe.utcOffset=GPe;Fe.utc=KPe;Fe.local=qPe;Fe.parseZone=XPe;Fe.hasAlignedHourOffset=QPe;Fe.isDST=ZPe;Fe.isLocal=eRe;Fe.isUtcOffset=tRe;Fe.isUtc=iU;Fe.isUTC=iU;Fe.zoneAbbr=fje;Fe.zoneName=hje;Fe.dates=li("dates accessor is deprecated. Use date instead.",vU);Fe.months=li("months accessor is deprecated. Use month instead",Y7);Fe.years=li("years accessor is deprecated. Use year instead",z7);Fe.zone=li("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",YPe);Fe.isDSTShifted=li("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",JPe);function mje(e){return Jn(e*1e3)}function pje(){return Jn.apply(null,arguments).parseZone()}function yU(e){return e}var gn=XB.prototype;gn.calendar=eke;gn.longDateFormat=oke;gn.invalidDate=ike;gn.ordinal=cke;gn.preparse=yU;gn.postformat=yU;gn.relativeTime=dke;gn.pastFuture=fke;gn.set=ZBe;gn.eras=WRe;gn.erasParse=zRe;gn.erasConvertYear=HRe;gn.erasAbbrRegex=qRe;gn.erasNameRegex=KRe;gn.erasNarrowRegex=XRe;gn.months=Oke;gn.monthsShort=Bke;gn.monthsParse=Pke;gn.monthsRegex=Nke;gn.monthsShortRegex=jke;gn.week=$ke;gn.firstDayOfYear=Fke;gn.firstDayOfWeek=_ke;gn.weekdays=Xke;gn.weekdaysMin=Zke;gn.weekdaysShort=Qke;gn.weekdaysParse=ePe;gn.weekdaysRegex=oPe;gn.weekdaysShortRegex=aPe;gn.weekdaysMinRegex=iPe;gn.isPM=lPe;gn.meridiem=dPe;function Ky(e,t,n,r){var o=Wl(),a=zs().set(r,t);return o[n](a,e)}function xU(e,t,n){if(Ol(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ky(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Ky(e,r,n,"month");return o}function mk(e,t,n,r){typeof e=="boolean"?(Ol(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ol(t)&&(n=t,t=void 0),t=t||"");var o=Wl(),a=e?o._week.dow:0,i,s=[];if(n!=null)return Ky(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Ky(t,(i+a)%7,r,"day");return s}function gje(e,t){return xU(e,t,"months")}function vje(e,t){return xU(e,t,"monthsShort")}function bje(e,t,n){return mk(e,t,n,"weekdays")}function yje(e,t,n){return mk(e,t,n,"weekdaysShort")}function xje(e,t,n){return mk(e,t,n,"weekdaysMin")}Ic("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});et.lang=li("moment.lang is deprecated. Use moment.locale instead.",Ic);et.langData=li("moment.langData is deprecated. Use moment.localeData instead.",Wl);var tl=Math.abs;function Cje(){var e=this._data;return this._milliseconds=tl(this._milliseconds),this._days=tl(this._days),this._months=tl(this._months),e.milliseconds=tl(e.milliseconds),e.seconds=tl(e.seconds),e.minutes=tl(e.minutes),e.hours=tl(e.hours),e.months=tl(e.months),e.years=tl(e.years),this}function CU(e,t,n,r){var o=Zi(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function wje(e,t){return CU(this,e,t,1)}function Sje(e,t){return CU(this,e,t,-1)}function P$(e){return e<0?Math.floor(e):Math.ceil(e)}function Dje(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,a,i,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=P$(bI(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Ka(e/1e3),r.seconds=o%60,a=Ka(o/60),r.minutes=a%60,i=Ka(a/60),r.hours=i%24,t+=Ka(i/24),l=Ka(wU(t)),n+=l,t-=P$(bI(l)),s=Ka(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function wU(e){return e*4800/146097}function bI(e){return e*146097/4800}function Eje(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ci(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+wU(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bI(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function zl(e){return function(){return this.as(e)}}var SU=zl("ms"),Ije=zl("s"),Tje=zl("m"),Aje=zl("h"),Oje=zl("d"),Bje=zl("w"),kje=zl("M"),Pje=zl("Q"),Rje=zl("y"),jje=SU;function Nje(){return Zi(this)}function Lje(e){return e=ci(e),this.isValid()?this[e+"s"]():NaN}function Od(e){return function(){return this.isValid()?this._data[e]:NaN}}var $je=Od("milliseconds"),Mje=Od("seconds"),_je=Od("minutes"),Fje=Od("hours"),Wje=Od("days"),zje=Od("months"),Hje=Od("years");function Uje(){return Ka(this.days()/7)}var sl=Math.round,Df={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vje(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function Gje(e,t,n,r){var o=Zi(e).abs(),a=sl(o.as("s")),i=sl(o.as("m")),s=sl(o.as("h")),l=sl(o.as("d")),c=sl(o.as("M")),d=sl(o.as("w")),f=sl(o.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,Vje.apply(null,h)}function Yje(e){return e===void 0?sl:typeof e=="function"?(sl=e,!0):!1}function Kje(e,t){return Df[e]===void 0?!1:t===void 0?Df[e]:(Df[e]=t,e==="s"&&(Df.ss=t-1),!0)}function qje(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Df,o,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Df,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),a=Gje(this,!n,r,o),n&&(a=o.pastFuture(+this,a)),o.postformat(a)}var HS=Math.abs;function rf(e){return(e>0)-(e<0)||+e}function nC(){if(!this.isValid())return this.localeData().invalidDate();var e=HS(this._milliseconds)/1e3,t=HS(this._days),n=HS(this._months),r,o,a,i,s=this.asSeconds(),l,c,d,f;return s?(r=Ka(e/60),o=Ka(r/60),e%=60,r%=60,a=Ka(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=rf(this._months)!==rf(s)?"-":"",d=rf(this._days)!==rf(s)?"-":"",f=rf(this._milliseconds)!==rf(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+i+"S":"")):"P0D"}var ln=eC.prototype;ln.isValid=zPe;ln.abs=Cje;ln.add=wje;ln.subtract=Sje;ln.as=Eje;ln.asMilliseconds=SU;ln.asSeconds=Ije;ln.asMinutes=Tje;ln.asHours=Aje;ln.asDays=Oje;ln.asWeeks=Bje;ln.asMonths=kje;ln.asQuarters=Pje;ln.asYears=Rje;ln.valueOf=jje;ln._bubble=Dje;ln.clone=Nje;ln.get=Lje;ln.milliseconds=$je;ln.seconds=Mje;ln.minutes=_je;ln.hours=Fje;ln.days=Wje;ln.weeks=Uje;ln.months=zje;ln.years=Hje;ln.humanize=qje;ln.toISOString=nC;ln.toString=nC;ln.toJSON=nC;ln.locale=uU;ln.localeData=fU;ln.toIsoString=li("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nC);ln.lang=dU;xt("X",0,0,"unix");xt("x",0,0,"valueOf");lt("x",X1);lt("X",gke);kn("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kn("x",function(e,t,n){n._d=new Date(nn(e))});et.version="2.30.1";XBe(Jn);et.fn=Fe;et.min=MPe;et.max=_Pe;et.now=FPe;et.utc=zs;et.unix=mje;et.months=gje;et.isDate=kv;et.locale=Ic;et.invalid=G1;et.duration=Zi;et.isMoment=_i;et.weekdays=bje;et.parseZone=pje;et.localeData=Wl;et.isDuration=P0;et.monthsShort=vje;et.weekdaysMin=xje;et.defineLocale=ik;et.updateLocale=pPe;et.locales=gPe;et.weekdaysShort=yje;et.normalizeUnits=ci;et.relativeTimeRounding=Yje;et.relativeTimeThreshold=Kje;et.calendarFormat=dRe;et.prototype=Fe;et.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Xje=re(()=>{const e=ee(),t=Kt(),n=qe("datePicker"),r=n("spacing",{padding:9}),o=n("sizing",{height:t.sizing.height}),a=n("colors",{today:e.mainColors.primary,selected:{color:e.mainColors.primary,bg:e.states.hover.highlight},hover:{bg:e.states.hover.highlight,color:e.elementaryColors.darkText}}),i=n("border",{radius:e.border.radius});return{spacing:r,sizing:o,colors:a,border:i}}),R$=re(()=>{const e=Tt("dayPicker"),t=Xje(),n=e({".DayPicker-wrapper":{padding:0},".DayPicker-Month":{margin:w(t.spacing.padding)},".DayPicker-Day":{borderRadius:w(t.border.radius),padding:w(t.spacing.padding),whiteSpace:"nowrap","&:not(.DayPicker-Day--disabled):hover":{backgroundColor:t.colors.hover.bg.toString()}},".DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside)":{backgroundColor:t.colors.selected.bg.toString(),color:t.colors.selected.color.toString(),fontWeight:"bold","&:hover":{backgroundColor:t.colors.selected.bg.toString(),color:t.colors.hover.color.toString(),fontWeight:"normal"}},".DayPicker-Day.DayPicker-Day--today":{color:P.colorOut(t.colors.today)},".DayPicker-Weekday:not(.DayPicker-Day--disabled), .DayPicker-Day--outside:not(.DayPicker-Day--disabled)":{color:"#767676"}}),r=e("header",{display:"flex",alignItems:"center",height:w(t.sizing.height),paddingLeft:w(t.spacing.padding),marginTop:w(t.spacing.padding)}),o=e("title",{flex:1,padding:w(t.spacing.padding)}),a=e("navigation",{display:"flex",alignItems:"center"});return{root:n,header:r,title:o,navigation:a}});var DU={},EU="Expected a function",j$=NaN,Qje="[object Symbol]",Zje=/^\s+|\s+$/g,Jje=/^[-+]0x[0-9a-f]+$/i,eNe=/^0b[01]+$/i,tNe=/^0o[0-7]+$/i,nNe=parseInt,rNe=typeof yr=="object"&&yr&&yr.Object===Object&&yr,oNe=typeof self=="object"&&self&&self.Object===Object&&self,aNe=rNe||oNe||Function("return this")(),iNe=Object.prototype,sNe=iNe.toString,lNe=Math.max,cNe=Math.min,US=function(){return aNe.Date.now()};function uNe(e,t,n){var r,o,a,i,s,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(EU);t=N$(t)||0,qy(n)&&(d=!!n.leading,f="maxWait"in n,a=f?lNe(N$(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(T){var B=r,j=o;return r=o=void 0,c=T,i=e.apply(j,B),i}function g(T){return c=T,s=setTimeout(b,t),d?m(T):i}function p(T){var B=T-l,j=T-c,R=t-B;return f?cNe(R,a-j):R}function v(T){var B=T-l,j=T-c;return l===void 0||B>=t||B<0||f&&j>=a}function b(){var T=US();if(v(T))return y(T);s=setTimeout(b,p(T))}function y(T){return s=void 0,h&&r?m(T):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function D(){return s===void 0?i:y(US())}function A(){var T=US(),B=v(T);if(r=arguments,o=this,l=T,B){if(s===void 0)return g(l);if(f)return s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),i}return A.cancel=C,A.flush=D,A}function dNe(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(EU);return qy(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),uNe(e,t,{leading:r,maxWait:t,trailing:o})}function qy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fNe(e){return!!e&&typeof e=="object"}function hNe(e){return typeof e=="symbol"||fNe(e)&&sNe.call(e)==Qje}function N$(e){if(typeof e=="number")return e;if(hNe(e))return j$;if(qy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Zje,"");var n=eNe.test(e);return n||tNe.test(e)?nNe(e.slice(2),n?2:8):Jje.test(e)?j$:+e}var mNe=dNe,pk={};Object.defineProperty(pk,"__esModule",{value:!0});var pNe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gNe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),vNe=x,L$=gk(vNe),bNe=jl,yNe=gk(bNe),xNe=Rl,CNe=gk(xNe),VS=Zh;function gk(e){return e&&e.__esModule?e:{default:e}}function wNe(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function SNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DNe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ENe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var IU=function(e){ENe(t,e);function t(n,r){SNe(this,t);var o=DNe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return VS.canUseDOM&&(o.node=document.createElement("div"),o.root=null,o.handleRootRef=function(a){o.root=a},o.handleOutClick=function(a){var i=o.props.onOutClick;typeof i=="function"&&(o.root&&!o.root.contains(a.target)&&i(a),o.root||i(a))},document.addEventListener("click",o.handleOutClick,!0)),o}return gNe(t,[{key:"componentDidMount",value:function(){VS.canUseDOM&&document.body.appendChild(this.node)}},{key:"componentWillUnmount",value:function(){VS.canUseDOM&&(document.removeEventListener("click",this.handleOutClick,!0),document.body.removeChild(this.node))}},{key:"render",value:function(){var r=this.props;r.onOutClick;var o=wNe(r,["onOutClick"]);return CNe.default.createPortal(L$.default.createElement("div",pNe({},o,{ref:this.handleRootRef})),this.node)}}]),t}(L$.default.Component);IU.propTypes={onOutClick:yNe.default.func};pk.default=IU;Object.defineProperty(DU,"__esModule",{value:!0});var INe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TNe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ANe=x,$b=rC(ANe),ONe=jl,hu=rC(ONe),BNe=mNe,$$=rC(BNe),kNe=Zh,PNe=pk,RNe=rC(PNe);function rC(e){return e&&e.__esModule?e:{default:e}}function jNe(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function NNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function LNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Xy={};function _$(){Object.keys(Xy).forEach(function(e){return Xy[e]()})}function $Ne(){return{x:window.pageXOffset!==void 0?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,y:window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}}function F$(){document.body.addEventListener("wheel",(0,$$.default)(_$,100,{leading:!0,trailing:!0})),window.addEventListener("resize",(0,$$.default)(_$,50,{leading:!0,trailing:!0}))}kNe.canUseDOM&&(document.body?F$():document.addEventListener("DOMContentLoaded",F$));var W$=0;function MNe(e){W$+=1;var t=W$;return Xy[t]=e,function(){return delete Xy[t]}}var vk=function(e){LNe(t,e);function t(){var n,r,o,a;NNe(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return a=(r=(o=M$(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),o),o.state={right:0,left:0,top:0},r),M$(o,a)}return TNe(t,[{key:"componentDidMount",value:function(){var r=this;this.handleScroll=function(){if(r.element){var o=r.element.getBoundingClientRect(),a=$Ne(),i=a.y+o.top,s=document.documentElement.clientWidth-o.right-a.x,l=a.x+o.left;(i!==r.state.top||l!==r.state.left||s!==r.state.right)&&r.setState({left:l,top:i,right:s})}},this.unsubscribe=MNe(this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){this.handleScroll()}},{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var r=this,o=this.props,a=o.component,i=o.top,s=o.left,l=o.right,c=o.fullWidth,d=jNe(o,["component","top","left","right","fullWidth"]),f=l!==void 0?{right:this.state.right+l}:{left:this.state.left+s},h=c?{right:this.state.right+l,left:this.state.left+s}:f;return $b.default.createElement(a,{ref:function(g){r.element=g}},$b.default.createElement(RNe.default,d,$b.default.createElement("div",{style:INe({position:"absolute",top:this.state.top+i},h)},this.props.children)))}}]),t}($b.default.Component);vk.propTypes={right:hu.default.number,left:hu.default.number,fullWidth:hu.default.bool,top:hu.default.number,children:hu.default.any,onOutClick:hu.default.func,component:hu.default.string.isRequired};vk.defaultProps={left:0,top:0,component:"span"};var _Ne=DU.default=vk;class bk extends W.PureComponent{constructor(){super(...arguments);q(this,"state",{showPopover:!1});q(this,"handleNativeInputChange",n=>{this.updateDate(n.target.value?et(n.target.value):null,n.target.value==="")});q(this,"updateDate",(n,r=!1)=>{n?this.props.onChange(this.normalizeIsoString(n.toISOString())):this.props.onChange("")});q(this,"CustomNavBar",({month:n,onPreviousClick:r,onNextClick:o,className:a})=>{const i=()=>r(),s=()=>o(),l=n.toLocaleDateString(void 0,{year:"numeric",month:"long"}),c=R$();return u.jsxs("div",{className:ae("datePicker-header",c.header),children:[u.jsx("h3",{className:ae("datePicker-title",c.title),children:l}),u.jsxs("span",{className:ae("datePicker-navigation",a,c.navigation),children:[u.jsx(ut,{buttonType:ye.ICON,onClick:i,children:u.jsx(dO,{centred:!0})}),u.jsx(ut,{buttonType:ye.ICON,onClick:s,children:u.jsx(EE,{centred:!0})})]})]})})}render(){const n=lee(),r=n===Q0.ANDROID||n===Q0.IOS,o=this.props.value?et(this.props.value).toDate():void 0,a=R$(),i=k("Date Input"),s=zx({id:this.props.id},"datePicker"),l=ae("dropDown-contents",Rr().contents,"isOwnWidth",{isRightAligned:this.props.alignment==="right"});return u.jsxs("div",{className:ae(a.root),children:[u.jsx("input",{id:s,name:this.props.fieldName,className:ae(wd().text,this.props.inputClassName),"aria-label":this.props.inputAriaLabel?`${this.props.inputAriaLabel} ${i}`:i,type:"date",role:"date",max:this.props.max?et(this.props.max).format("YYYY-MM-DD"):void 0,min:this.props.min?et(this.props.min).format("YYYY-MM-DD"):void 0,onClick:c=>{r||(c.preventDefault(),this.setState({showPopover:!0}))},onChange:this.handleNativeInputChange,value:this.props.value??"",onBlur:this.props.onBlur,required:this.props.required}),this.state.showPopover&&u.jsx(_Ne,{component:"div",top:0,right:this.props.alignment==="right"?0:void 0,className:a.root,onOutClick:()=>{this.setState({showPopover:!1})},children:u.jsx("div",{className:ae("dropDown",Rr().root,this.props.datePickerDropdownClassName),role:"dialog","aria-label":k("DatePicker"),children:u.jsx("div",{className:l,children:u.jsx(qBe,{onBlur:this.props.onBlur,initialMonth:o,selectedDays:[o],onDayClick:(c,{disabled:d,selected:f})=>{d||(this.updateDate(et(c)),this.setState({showPopover:!1}))},captionElement:E0,navbarElement:this.CustomNavBar,disabledDays:{...this.props.max?{after:new Date(this.props.max)}:void 0,...this.props.min?{before:new Date(this.props.min)}:void 0},showOutsideDays:!0})})})})]})}normalizeIsoString(n){return n.substr(0,10)}}q(bk,"defaultProps",{alignment:"left"});function FNe(e){const{fieldName:t,initialValue:n,label:r,description:o}=e,[a,i]=x.useState(n);return u.jsx(ni,{label:r,labelNote:o,children:u.jsx(bk,{value:a,onChange:s=>i(s),fieldName:t})})}const TU=e=>{const{status:t=X.LOADING}=e;return t===X.LOADING?u.jsx(pr,{}):u.jsx(u.Fragment,{children:e.children})},WNe=new cB(()=>mt(()=>import("../chunks/library/LeavingPage.BA8IqTsy.min.js"),__vite__mapDeps([28,1,26]),import.meta.url),"/home/leaving",()=>"/home/leaving",TU);var zNe=Math.ceil,HNe=Math.max;function UNe(e,t,n,r){for(var o=-1,a=HNe(zNe((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var z$=1/0,VNe=17976931348623157e292;function Up(e){if(!e)return e===0?e:0;if(e=kf(e),e===z$||e===-z$){var t=e<0?-1:1;return t*VNe}return e===e?e:0}function GNe(e){return function(t,n,r){return r&&typeof r!="number"&&og(t,n,r)&&(n=r=void 0),t=Up(t),n===void 0?(n=t,t=0):n=Up(n),r=r===void 0?t<n?1:-1:Up(r),UNe(t,n,r,e)}}var YNe=GNe();const gm=re(()=>{const e=ee(),t=Tt("carouselClasses"),n=t("sectionWrapper",{position:"relative"}),r=t("skipCarousel",{position:"absolute",backgroundColor:P.colorOut(e.mainColors.bg),color:P.colorOut(e.mainColors.fg),border:0,borderRadius:w(6),clip:"rect(0 0 0 0)",height:w(0),width:w(0),margin:w(-1),padding:0,overflow:"hidden",display:"inline-flex",alignItems:"center",justifyContent:"center",zIndex:10,"&:focus, &:active":{left:w(0),width:w(165),height:w(38),clip:"auto"}}),o=t("carousel",{display:"flex",flexDirection:"row",position:"relative",button:{backgroundColor:"transparent",border:"none"},"& [data-direction]":{outline:"none",position:"absolute",top:0,bottom:0,height:"100%",svg:{position:"relative"}},"& [data-direction='prev']":{left:-36},"& [data-direction='next']":{right:-36,zIndex:1},"& .focus-visible:not(button), & a:focus":{outlineWidth:"1px !important",outlineStyle:"solid !important",outlineColor:`${P.colorOut(e.mainColors.primary)} !important`},"& .focus-visible > svg":{borderWidth:2,borderStyle:"solid",borderColor:P.colorOut(e.mainColors.primary)}}),a=t("sliderWrapper",{display:"flex",flexWrap:"nowrap",alignItems:"center",position:"relative",zIndex:0,overflow:"hidden",width:Z(100),"& *":{...zn("none")}}),i=t("slider",{willChange:"transform",position:"absolute",right:"auto",display:"flex",flexDirection:"row",padding:"0 2px",".swipable":{display:"flex",flexDirection:"row"},".swipable > * + *":{marginLeft:16}}),s=t("pagingWrapper",{display:"flex",flexDirection:"row",justifyContent:"center",button:{backgroundColor:"transparent",border:"none",display:"flex",alignItems:"center"},marginTop:8}),l=t("dotWrapper",{display:"flex",alignItems:"center",justifyContent:"center",listStyle:"none",paddingLeft:0,"& .focus-visible":{outline:"none"}}),c=t("dotBt",{padding:"0 4px",height:"24px !important",minWidth:"24px !important",width:"24px !important","&.active > span":{backgroundColor:P.colorOut(e.mainColors.primary.fade(.8))},"&.focus-visible > span":{borderWidth:2,borderStyle:"solid",borderColor:P.colorOut(e.mainColors.primary)},"&[disabled]":{opacity:"1 !important"}}),d=t("dot",{width:10,height:10,backgroundColor:P.colorOut(e.mainColors.fg.fade(.5)),borderRadius:Z(50),display:"inline-block"});return{sectionWrapper:n,skipCarousel:r,carousel:o,sliderWrapper:a,slider:i,pagingWrapper:s,dotWrapper:l,dotBt:c,dot:d}}),Qy=re(()=>{const e=qe("navLinks"),t=ee(),n=e("item",{fontSize:t.fonts.size.large,padding:ce.spacing({vertical:t.spacer.mainLayout,horizontal:ps().spacing.padding*2}),paddingMobile:ce.spacing({horizontal:0})}),r=e("linksWithHeadings",{paddings:{horizontal:n.padding.horizontal/2}}),o=e("title",{font:ce.font({...t.fontSizeAndWeightVars("title","bold"),lineHeight:t.lineHeights.condensed,color:void 0}),maxWidth:Z(100),margins:{bottom:t.gutter.size},mobile:{font:ce.font({...t.fontSizeAndWeightVars("large","bold")})}}),a=e("link",{fg:t.mainColors.fg,fontWeight:t.fonts.weights.normal,lineHeight:t.lineHeights.condensed,width:203,maxWidth:Z(100),fontSize:16}),i=E.clickable.itemState(),s=e("viewAll",{fontWeight:t.fonts.weights.semiBold,fontSize:t.fonts.size.medium,margins:{top:"auto"},paddings:{top:t.gutter.size},icon:!1,...i}),l=e("spacing",{margin:6}),c=e("columns",{desktop:2}),d=e("separator",{height:1,bg:t.mixBgAndFg(.3),hidden:!1}),f=e("breakPoints",{oneColumn:750});return{linksWithHeadings:r,item:n,title:o,columns:c,link:a,viewAll:s,spacing:l,separator:d,mediaQueries:()=>({oneColumn:g=>Yt({maxWidth:f.oneColumn},g)})}}),KNe=re(()=>{const e=ee(),t=Qy(),n=Tt("navLinks"),r=t.mediaQueries(),o=n({...E.padding({...t.item.padding,horizontal:t.item.padding.horizontal/2}),display:"flex",flexDirection:"column",maxWidth:Z(100),width:Z(100/t.columns.desktop),"&:only-of-type":{marginRight:"auto"}},r.oneColumn({width:Z(100),...E.padding({...t.item.paddingMobile,horizontal:t.item.paddingMobile.horizontal/2})})),a=n("items",{display:"flex",flexDirection:"column",flexGrow:1}),i=n("item",{display:"block",fontSize:w(t.item.fontSize),marginTop:w(t.spacing.margin),marginBottom:w(t.spacing.margin)}),s=n("title",{"&&":{display:"block",...E.font(t.title.font),maxWidth:Z(100),...E.margin(t.title.margins),...r.oneColumn(E.font(t.title.mobile.font))}}),l=n("topTitle",{"&&":{...E.margin({vertical:t.item.padding.vertical,top:t.item.padding.top,bottom:0}),...E.padding({horizontal:t.item.padding.horizontal/2}),width:"100%"}}),c=E.clickable.itemState({default:t.link.fg}),d=n("link",{display:"block",...E.font({size:t.link.fontSize,lineHeight:t.link.lineHeight,weight:t.link.fontWeight,color:c.color}),...c}),f=n("viewAllItem",{display:"block",fontSize:w(t.item.fontSize),...E.margin(t.viewAll.margins),...E.padding(t.viewAll.paddings)}),h=E.clickable.itemState({default:e.mainColors.primary}),m=n("noItemLink",{...E.clickable.itemState(),marginTop:e.gutter.quarter}),g=n("viewAll",{display:"block",...E.font({weight:t.viewAll.fontWeight,size:t.viewAll.fontSize,color:t.viewAll.color}),...h,span:{marginRight:t.viewAll.icon?10:void 0}}),p=n("linksWithHeadings",{...E.padding(t.linksWithHeadings.paddings),...kr(t.item.padding.horizontal+t.linksWithHeadings.paddings.horizontal),display:"flex",flexWrap:"wrap",alignItems:"stretch",justifyContent:"space-between"},r.oneColumn({...kr(t.item.paddingMobile.horizontal+t.linksWithHeadings.paddings.horizontal)})),v=n("separator",{display:t.separator.hidden?"none":"block",width:Z(100),borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:wt({color:t.separator.bg,width:t.separator.height}),"&:last-child":{display:"none"}},r.oneColumn(E.margin({horizontal:t.item.paddingMobile.horizontal}))),b=n("separatorIndependant",{display:"block",...kr(t.item.padding.horizontal),borderBottom:wt({color:t.separator.bg,width:t.separator.height})},r.oneColumn(E.margin({horizontal:t.item.paddingMobile.horizontal})),r.oneColumn({...kr(t.item.paddingMobile.horizontal)})),y=n("separatorOdd",{display:"none"},r.oneColumn({display:"block"}));return{root:o,items:a,item:i,noItemLink:m,title:s,topTitle:l,link:d,viewAllItem:f,viewAll:g,linksWithHeadings:p,separator:v,separatorOdd:y,separatorIndependant:b}});var Ln;(function(e){e.GRID="grid",e.CAROUSEL="carousel",e.LIST="list",e.LINK="link"})(Ln||(Ln={}));const vm=re((e,t)=>{var h,m;const n=qe("homeWidgetContainer",t),r=ee(t),o=La({},t),a=v1();let i=n("options",{outerBackground:ce.background({}),innerBackground:ce.background({}),borderType:dt.NONE,maxWidth:void 0,viewAll:{onClick:void 0,to:void 0,position:"bottom",displayType:ye.TEXT_PRIMARY,name:"View All"},maxColumnCount:[un.TITLE_BACKGROUND,un.TITLE_DESCRIPTION_IMAGE,un.TITLE_BACKGROUND_DESCRIPTION].includes(o.options.contentType)?4:3,subtitle:{type:a.options.subtitleType,content:void 0},description:void 0,headerAlignment:a.options.alignment,contentAlignment:"flex-start",displayType:void 0,isGrid:!1,isCarousel:!1,contentIsListWithSeparators:void 0},e);i=n("options",{...i,borderType:(h=i.innerBackground)!=null&&h.color||(m=i.innerBackground)!=null&&m.image?dt.SHADOW:dt.NONE,maxColumnCount:i.displayType==="list"?1:i.maxColumnCount,displayType:i.isCarousel?"carousel":i.isGrid?"grid":i.displayType},e),i=n("options",{...i,innerBackground:{...i.innerBackground,color:i.borderType!==dt.NONE?r.body.backgroundImage.color:void 0}},e);const s=Qy().item.padding,l=Qy().item.paddingMobile,c=n("itemSpacing",{horizontal:i.borderType==="navLinks"?s.horizontal:r.gutter.size,vertical:r.gutter.size,mobile:{horizontal:i.borderType==="navLinks"?l.horizontal:r.gutter.size}},!i.displayType||i.displayType==="carousel"?{horizontal:0,vertical:r.gutter.size/2,mobile:{horizontal:0}}:{}),d=ce.boxHasOutline(ce.box({background:i.innerBackground,borderType:i.borderType}))&&i.borderType!==dt.NAV_LINKS,f=Ht().mediaQueries().oneColumnDown;return{options:i,itemSpacing:c,mobileMediaQuery:f,hasVisibleContainer:d}}),Nv=re(e=>{const t=ee(),n=vm(e),r=Qy(),o=S({...E.background(n.options.outerBackground??{}),color:P.colorOut(t.getFgForBg(n.options.outerBackground.color)),width:"100%"},n.options.borderType==="navLinks"&&E.margin({vertical:r.item.padding.vertical,top:r.item.padding.top,bottom:r.item.padding.bottom}),"label:HomeWidgetContainer-styles-root"),a=S(kr(Wn(r.linksWithHeadings.paddings.horizontal)*2),n.mobileMediaQuery(kr(0)),"label:HomeWidgetContainer-styles-separator"),i=Wn(n.itemSpacing.horizontal)/2,s=Wn(n.itemSpacing.mobile.horizontal)/2,l=S({clear:"both",maxWidth:w(n.options.maxWidth),margin:"0 auto",width:"100%"},n.options.borderType==="navLinks"&&{...kr(r.linksWithHeadings.paddings.horizontal)},n.mobileMediaQuery(kr(0)),"label:HomeWidgetContainer-styles-container"),c=S({...kr(Wn(n.itemSpacing.horizontal)),...n.mobileMediaQuery(kr(Wn(n.itemSpacing.mobile.horizontal)))},"label:HomeWidgetContainer-styles-content"),d=S(n.hasVisibleContainer&&E.padding({horizontal:i*2}),"label:HomeWidgetContainer-styles-itemWrapper"),f=(()=>{switch(n.options.borderType){case dt.NONE:return{};case dt.BORDER:return{borderRadius:t.border.radius,...E.border()};case dt.SHADOW:return{borderRadius:t.border.radius,...Un().embed()};default:return{}}})(),h=S({...E.background(n.options.innerBackground),display:"flex",alignItems:"stretch",justifyContent:n.options.contentAlignment??"flex-start",flexWrap:"wrap",...E.padding({horizontal:i})},n.hasVisibleContainer?{paddingBottom:n.itemSpacing.vertical,paddingTop:n.options.contentIsListWithSeparators?n.itemSpacing.vertical:0}:{marginTop:n.options.contentIsListWithSeparators?0:Ta(n.itemSpacing.vertical)},f,n.mobileMediaQuery(E.padding({horizontal:s})),"label:HomeWidgetContainer-styles-grid"),m={flex:1,flexBasis:Z(100/n.options.maxColumnCount)},g=S(m,n.options.contentIsListWithSeparators&&{"&:not(:first-child) a:before":{borderTop:"none"}},"label:HomeWidgetContainer-styles-gridItem"),p=S({...m,minWidth:w(La().sizing.minWidth)},"label:HomeWidgetContainer-styles-gridItemSpacer"),v=S({...E.padding({horizontal:i,top:n.options.contentIsListWithSeparators?0:n.itemSpacing.vertical}),height:Z(100)},n.mobileMediaQuery(E.padding({horizontal:s})),"label:HomeWidgetContainer-styles-gridItemContent"),b=re(C=>S({maxWidth:C>0?C:"initial"},"label:HomeWidgetContainer-styles-gridItemWidthConstraint")),y=S({display:"flex",justifyContent:"flex-end",alignItems:"center",...E.padding({horizontal:i*2}),marginTop:n.itemSpacing.vertical},n.mobileMediaQuery(E.padding({horizontal:s*2})),"label:HomeWidgetContainer-styles-viewAllContainer");return{root:o,separator:a,container:l,content:c,itemWrapper:d,viewAllContainer:y,grid:h,gridItem:g,gridItemSpacer:p,gridItemContent:v,gridItemWidthConstraint:b}});function qNe(e,t){const n=vm().itemSpacing.horizontal,r=La().sizing.minWidth+Wn(n,16)*2,o=Math.floor(e/r);return Sg(o,1,t??5)}function XNe(e){const t=gm(),{children:n,sectionWrapperRef:r}=e;return u.jsx("section",{ref:r,className:t.sectionWrapper,"aria-labelledby":"carousel-Title",children:n})}function QNe(e){const t=gm(),{children:n,sliderStyle:r}=e;return u.jsx("div",{className:t.carousel,style:r,children:n})}function ZNe(e){const t=gm(),{children:n}=e;return u.jsx("div",{className:t.pagingWrapper,children:n})}function JNe(e){return u.jsx(Cr,{children:u.jsx("h3",{id:"carousel-Title",children:k(e.title)})})}const H$={duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},U$=(e,t)=>{const{duration:n,easeFunction:r,delay:o}=t;return`${e} ${n} ${r} ${o}`};function e2e(e){const t=gm(),{sliderWrapperRef:n,children:r,handlers:o,childWidth:a,numberOfSlidesToShow:i,slideDesiredIndex:s,sliderPosition:l}=e,c=s,d=s+i;let f=U$("transform",H$);const m={WebkitTransition:U$("-webkit-transform",H$),transition:f,transform:`translate(${l}px, 0px)`},g=x.Children.map(r,(p,v)=>{if(!W.isValidElement(p))return null;const b=v>=c&&v<d;if(!i)return;const y=W.cloneElement(p,{tabIndex:b?0:-1});return u.jsx("li",{style:{width:a},children:y})});return u.jsx("div",{className:t.sliderWrapper,ref:n,children:u.jsx("div",{className:t.slider,style:m,children:u.jsx("ul",{className:"swipable",...o,children:g})})})}function t2e(e){const t=gm(),{numberOfDots:n,numbSlidesToShow:r,slideActiveIndex:o,setActiveIndex:a}=e,i=Math.ceil(o/r);return n.length===1?null:u.jsx("ol",{className:t.dotWrapper,children:n.map((s,l)=>u.jsx("li",{children:u.jsxs(ut,{buttonType:ye.ICON,"data-idx":l,disabled:i===l,className:`${i===l?"active":""} ${t.dotBt} `,onClick:a,children:[u.jsx(Cr,{children:u.jsx("span",{children:k("indicator navigation")})}),u.jsx("span",{"aria-hidden":"true",className:t.dot})]})},l))})}function Mb(e){const{arrowType:t,arrowHandler:n,direction:r,accessibilityLabel:o,disabled:a}=e;return u.jsxs(ut,{buttonType:ye.ICON,disabled:a,"data-direction":r,onClick:n,children:[t,u.jsx(Cr,{children:u.jsx("span",{children:k(o)})})]})}function Si(){return Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si.apply(this,arguments)}var n2e="Left",r2e="Right",o2e="Up",a2e="Down",hf={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},yI={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},V$="mousemove",G$="mouseup",i2e="touchend",s2e="touchmove",l2e="touchstart";function c2e(e,t,n,r){return e>t?n>0?r2e:n2e:r>0?a2e:o2e}function Y$(e,t){if(t===0)return e;var n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),o=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,o]}function u2e(e,t){var n=function(f){f&&"touches"in f&&f.touches.length>1||e(function(h,m){m.trackMouse&&(document.addEventListener(V$,r),document.addEventListener(G$,i));var g="touches"in f?f.touches[0]:f,p=g.clientX,v=g.clientY,b=Y$([p,v],m.rotationAngle);return Si({},h,yI,{initial:[].concat(b),xy:b,start:f.timeStamp||0})})},r=function(f){e(function(h,m){if("touches"in f&&f.touches.length>1)return h;var g="touches"in f?f.touches[0]:f,p=g.clientX,v=g.clientY,b=Y$([p,v],m.rotationAngle),y=b[0],C=b[1],D=y-h.xy[0],A=C-h.xy[1],T=Math.abs(D),B=Math.abs(A),j=(f.timeStamp||0)-h.start,R=Math.sqrt(T*T+B*B)/(j||1),N=[D/(j||1),A/(j||1)],_=c2e(T,B,D,A),U=typeof m.delta=="number"?m.delta:m.delta[_.toLowerCase()]||hf.delta;if(T<U&&B<U&&!h.swiping)return h;var V={absX:T,absY:B,deltaX:D,deltaY:A,dir:_,event:f,first:h.first,initial:h.initial,velocity:R,vxvy:N};V.first&&m.onSwipeStart&&m.onSwipeStart(V),m.onSwiping&&m.onSwiping(V);var z=!1;return(m.onSwiping||m.onSwiped||"onSwiped"+_ in m)&&(z=!0),z&&m.preventDefaultTouchmoveEvent&&m.trackTouch&&f.cancelable&&f.preventDefault(),Si({},h,{first:!1,eventData:V,swiping:!0})})},o=function(f){e(function(h,m){var g;if(h.swiping&&h.eventData){g=Si({},h.eventData,{event:f}),m.onSwiped&&m.onSwiped(g);var p=m["onSwiped"+g.dir];p&&p(g)}else m.onTap&&m.onTap({event:f});return Si({},h,yI,{eventData:g})})},a=function(){document.removeEventListener(V$,r),document.removeEventListener(G$,i)},i=function(f){a(),o(f)},s=function(f,h){var m=function(){};if(f&&f.addEventListener){var g=[[l2e,n],[s2e,r],[i2e,o]];g.forEach(function(p){var v=p[0],b=p[1];return f.addEventListener(v,b,{passive:h})}),m=function(){return g.forEach(function(v){var b=v[0],y=v[1];return f.removeEventListener(b,y)})}}return m},l=function(f){f!==null&&e(function(h,m){if(h.el===f)return h;var g={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),g.cleanUpTouch=void 0),m.trackTouch&&f&&(g.cleanUpTouch=s(f,!m.preventDefaultTouchmoveEvent)),Si({},h,{el:f},g)})},c={ref:l};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function d2e(e,t,n){var r={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=n(e.el,!t.preventDefaultTouchmoveEvent)),Si({},e,r)}function f2e(e){var t=e.trackMouse,n=x.useRef(Si({},yI)),r=x.useRef(Si({},hf));r.current=Si({},hf,e,{delta:e.delta===void 0?hf.delta:e.delta,rotationAngle:e.rotationAngle===void 0?hf.rotationAngle:e.rotationAngle,trackTouch:e.trackTouch===void 0?hf.trackTouch:e.trackTouch});var o=x.useMemo(function(){return u2e(function(s){return n.current=s(n.current,r.current)},{trackMouse:t})},[t]),a=o[0],i=o[1];return n.current=d2e(n.current,r.current,i),a}const AU={desiredIndex:0,activeIndex:0},K$=r1({name:"carousel",initialState:AU,reducers:{prev:(e,t)=>{const{desiredIndex:n,toShow:r}=t.payload;return{...e,activeIndex:n,desiredIndex:n-r<0?0:n-r}},next:(e,t)=>{const{desiredIndex:n,toShow:r}=t.payload;return{...e,activeIndex:n,desiredIndex:n+r}},pagingPrev:(e,t)=>{const{desiredIndex:n,toShow:r}=t.payload;return{...e,activeIndex:n*r+r,desiredIndex:n*r}},pagingNext:(e,t)=>{const{desiredIndex:n,toShow:r}=t.payload;return{...e,activeIndex:(n-1)*r,desiredIndex:n*r}},start:e=>({...e,activeIndex:0,desiredIndex:0})}});function h2e(e,t,n={}){const{toShow:r=1,childWidth:o=0,sliderWrapper:a}=n,[i,s]=x.useReducer(K$.reducer,AU);let l=r===1?-20:0;const c=ps().spacing.mobile.padding*4,d=x.useMemo(()=>Q4(K$.actions,s),[s]),f=f2e({onSwiping(p){const{deltaX:v,absX:b,dir:y}=p;if(["left","right"].includes(y.toLowerCase())){let C=0;const D=o*r/4;if(y==="Left"?C=i.desiredIndex+r>=e?0:D:y==="Right"&&(C=i.desiredIndex===0?0:D),b<=C){const T=`translate(${l+v}px, 0px)`;a.current.children[0].style.WebkitTransform=T,a.current.children[0].style.translate=T}}},onSwiped(p){if(p.dir==="Right"&&i.desiredIndex===0||p.dir==="Left"&&i.desiredIndex+r>=e||p.dir==="Down"||p.dir==="Up")return;const{dir:v}=p;if(v==="Left"){const b=i.desiredIndex;d.next({toShow:r,desiredIndex:b})}if(v==="Right"){const b=i.desiredIndex;d.prev({toShow:r,desiredIndex:b})}},trackMouse:!0,trackTouch:!0,preventDefaultTouchmoveEvent:!0});if(x.useEffect(()=>{},[i.desiredIndex]),i.desiredIndex>i.activeIndex){let p=i.activeIndex+r;p+r>e&&(p=e-r),r===1&&p>=1?l=-(o+16)*p+20/100*o:l=-(o+16)*p}else{let p=i.desiredIndex;r===1?p===0?l=20:l=-(o+16)*p+20/100*o:l=-(o+16)*p}const h=c,m=o*(e-1)-c,g={activeIndex:i.activeIndex,desiredIndex:i.desiredIndex,actions:d,handlers:f,sliderPosition:Sg(l,-m,h)};return x.useDebugValue({result:g,params:{minimumOffset:h,maximumOffset:m,childWidth:o,countSlides:e,toShow:r}}),g}const m2e={activeIndex:0,desiredIndex:0,currentPagingDot:0,numberOfDots:[]};function p2e(e){const t=gm(),{children:n,carouselTitle:r="Carousel Title",showPaging:o=!0}=e,a=x.useRef(null),i=x.useRef(null),s=Zn(a),l=Zn(i),c=W.Children.toArray(n),d=Sg(e.maxSlidesToShow??4,2,c.length),f=qNe(s.width,d),h=f===1?l.width-30/100*(l.width-16):(l.width-16*(f-1)-4)/f,{activeIndex:m,desiredIndex:g,actions:p,handlers:v,sliderPosition:b}=h2e(c.length,l.width,{toShow:f,childWidth:h,sliderWrapper:i}),[y,C]=x.useState(m2e);x.useEffect(()=>{C({...y,numberOfDots:YNe(0,Math.ceil(c.length/f))});const T=Ra(()=>{p.start()},100);return window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[p,f,b]);const D=T=>{T.preventDefault();const B=T.currentTarget.dataset.idx;let j=B*f;const R=B;B>=y.currentPagingDot?(p.pagingNext({toShow:f,desiredIndex:R}),j+f>c.length&&(j=c.length-f),C({...y,currentPagingDot:B||Math.ceil(Math.abs(m+f)/f)})):(p.pagingPrev({toShow:f,desiredIndex:R}),B===0&&C({...y,currentPagingDot:0}),C({...y,currentPagingDot:B||Math.ceil(j/f)}))},A=T=>{T.preventDefault();const B=T.currentTarget.dataset.direction;p[B]({toShow:f,desiredIndex:g})};return u.jsxs(XNe,{sectionWrapperRef:a,children:[u.jsx("a",{className:t.skipCarousel,href:"#carouselEnd",children:k("Skip to end of Carousel")}),u.jsx(JNe,{title:k(`${r}`)}),u.jsxs(QNe,{sliderStyle:{height:i.current?i.current.children[0].clientHeight+20:0,margin:f===1?"0 -20px":"0 0"},children:[s.width>=765&&y.numberOfDots.length>1&&u.jsx(Mb,{disabled:g===0,accessibilityLabel:k("Previous Slides"),direction:"prev",arrowHandler:A,arrowType:u.jsx(gy,{})}),u.jsx(e2e,{sliderWrapperRef:i,childWidth:h||0,slideDesiredIndex:g,numberOfSlidesToShow:f,sliderPosition:b,enableSwipe:!0,preventDefaultTouchmoveEvent:!0,enableMouseSwipe:!0,handlers:v,children:n}),s.width>=765&&y.numberOfDots.length>1&&u.jsx(Mb,{disabled:g+f>=c.length,accessibilityLabel:k("Next Slides"),direction:"next",arrowHandler:A,arrowType:u.jsx(IE,{})})]}),o&&y.numberOfDots.length>1&&u.jsxs(ZNe,{children:[s.width<765&&u.jsx(Mb,{disabled:g===0,accessibilityLabel:k("Previous Slides"),direction:"prev",arrowHandler:A,arrowType:u.jsx(gy,{})}),u.jsx(t2e,{numbSlidesToShow:f,numberOfDots:y.numberOfDots,slideActiveIndex:g,setActiveIndex:D}),s.width<765&&u.jsx(Mb,{disabled:g+f>=c.length,accessibilityLabel:k("Next Slides"),direction:"next",arrowHandler:A,arrowType:u.jsx(IE,{})})]}),u.jsx(Cr,{children:u.jsx("div",{"aria-live":"polite","aria-atomic":"true",children:k(`${f} Slides on display, initial Slide ${g+1} of ${c.length}`)})}),u.jsx("span",{id:"carouselEnd",className:"sr-only",children:"End of Carousel"})]})}function Us(e){var c,d,f,h,m,g,p;const{options:t}=vm(e.options);let{children:n}=e;const r=Nv(t),o=Kh();t.displayType===Ln.CAROUSEL?n=u.jsx(p2e,{maxSlidesToShow:t.maxColumnCount,carouselTitle:e.title,children:n}):t.displayType&&(n=u.jsx(OU,{...e,children:n}));let a;if(t.viewAll){const v=k(((c=t==null?void 0:t.viewAll)==null?void 0:c.name)??"View All");(f=(d=e==null?void 0:e.options)==null?void 0:d.viewAll)!=null&&f.onClick&&(a=u.jsx(ut,{onClick:(m=(h=e==null?void 0:e.options)==null?void 0:h.viewAll)==null?void 0:m.onClick,buttonType:t.viewAll.displayType,children:v})),t.viewAll.to&&(a=u.jsx(So,{to:(g=t==null?void 0:t.viewAll)==null?void 0:g.to,buttonType:t.viewAll.displayType,children:v}))}const i=ce.boxHasBackground(ce.box({background:t.outerBackground})),s=t.borderType==="navLinks",l=i?o.widgetWithContainerClass:o.widgetClass;return u.jsxs(u.Fragment,{children:[s&&u.jsx(zo,{fullGutter:!0,narrow:!0,children:u.jsxs("div",{className:r.separator,children:[u.jsx("hr",{className:ae(KNe().separator)}),u.jsx("span",{})]})}),u.jsx("div",{className:ge(!s&&l,r.root),children:u.jsx(zo,{maxWidth:t.maxWidth,fullGutter:!0,narrow:s,children:u.jsxs("div",{className:r.container,children:[u.jsx(qh,{title:e.title,actions:t.viewAll.position==="top"&&a,description:e.description??t.description,subtitle:e.subtitle??((p=t==null?void 0:t.subtitle)==null?void 0:p.content),options:{subtitleType:t.subtitle.type,alignment:t.headerAlignment},titleCount:e.titleCount,depth:e.depth}),e.extraHeader,u.jsxs("div",{className:r.content,children:[u.jsx("div",{className:r.itemWrapper,children:n}),a&&t.viewAll.position==="bottom"&&u.jsx("div",{className:r.viewAllContainer,children:a})]})]})})})]})}function OU(e){const t=Nv({...e.options,contentIsListWithSeparators:e.contentIsListWithSeparators}),n=x.useRef(null),r=Zn(n);return u.jsx("div",{className:t.grid,children:W.Children.map(e.children,(o,a)=>u.jsx("div",{ref:a===0?n:void 0,className:ae(t.gridItem,a!==0&&t.gridItemWidthConstraint(r.width)),children:u.jsx("div",{className:t.gridItemContent,children:o})},a))})}const g2e=re(e=>{let t=e.sizing.width;e.name.display&&(t+=(e.name.spacing.left??0)+e.name.width);const n=S({"@supports (display: grid)":{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${t}px, 0.5fr))`,gridRowGap:`${e.spacing.vertical}px`,gridColumnGap:`${e.spacing.horizontal}px`,justifyItems:"center",...E.margin({bottom:e.spacing.vertical})},"@supports not (display: grid)":{display:"flex",flexWrap:"wrap",justifyContent:"space-between",...E.margin({horizontal:-Wn(e.spacing.horizontal/2)})}},"label:ContributionItem-classes-list"),r=S({"@supports not (display: grid)":{...E.margin({bottom:Wn(e.spacing.vertical),horizontal:Wn(e.spacing.horizontal/2)})}},"label:ContributionItem-classes-listItem");return{list:n,listItem:r}}),v2e=re(e=>{const t=S({display:"inline-flex",flexDirection:"row",alignItems:"center",...E.font({...e.name.font}),...E.clickable.itemState({default:e.name.font.color}),verticalAlign:"middle"},"label:ContributionItem-classes-link"),n=S({position:"relative",width:e.sizing.width,height:e.sizing.width},"label:ContributionItem-classes-imageAndCountWrapper"),r=S({height:e.count.height,minWidth:e.count.height,position:"absolute",top:"-5%",left:"unset",right:0,transform:`translateX(clamp(${Math.round(e.sizing.width*2/38)}px, 50%, ${e.name.spacing.left/2}px))`,backgroundColor:e.count.backgroundColor,...E.border({color:e.count.borderColor,radius:8,width:1.3}),...E.font({size:e.count.size,letterSpacing:"-1px"})},"label:ContributionItem-classes-count"),o=S({width:e.sizing.width,height:e.sizing.width},"label:ContributionItem-classes-image"),a=S({width:e.name.width,...E.margin({...e.name.spacing}),display:"-webkit-box",WebkitLineClamp:2,wordBreak:"break-word",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"label:ContributionItem-classes-name");return{link:t,image:o,imageAndCountWrapper:n,count:r,name:a}});function q$(e){const{name:t,photoUrl:n,url:r,count:o,themingVariables:a}=e,i=v2e(a);return u.jsxs(wr,{to:r,title:t,className:i.link,children:[u.jsxs("div",{className:i.imageAndCountWrapper,children:[u.jsx("img",{alt:t,src:n,className:i.image}),a.count.display&&(o??0)>0&&u.jsx(Kz,{label:t,count:o,className:i.count,useFormatted:!0,useMax:!1})]}),a.name.display&&u.jsx("div",{className:i.name,children:k(t)})]})}const b2e=re(e=>{const{sizing:t,plus:n}=e,r=S({position:"relative",zIndex:1,width:w(t.width-t.offset),height:w(t.width),transitionDelay:"0.05s",":hover, :focus, :focus-within, :active":{transform:"scale(1.16)",zIndex:2}},"label:StackedList-styles-item"),o=ge(r,S({width:"auto"},"label:StackedList-styles-lastItem")),a=S({display:"flex",flexWrap:"wrap",alignItems:"center"},"label:StackedList-styles-root"),i=S({marginLeft:w(n.margin),...E.font(n.font),lineHeight:w(t.width)},"label:StackedList-styles-plusLink");return{root:a,item:r,lastItem:o,plusLink:i}});function y2e(e){const{themingVariables:t,data:n,extra:r=0,maxCount:o=1/0,openModal:a,tooltipText:i,ItemComponent:s}=e,{item:l,lastItem:c,root:d,plusLink:f}=b2e(t),h=Math.max(0,n.length+r-o),m=n.slice(0,o);return u.jsxs("ul",{className:ge(d,e.className),children:[m.map((g,p)=>{const v=p===m.length-1||p===o-1;return u.jsx("li",{className:v?c:l,children:u.jsx(s,{...g})},p)}),h>0&&u.jsx("li",{className:f,children:u.jsx(Hn,{condition:!!a,component:ut,componentProps:{onClick:a,buttonType:ye.TEXT},children:u.jsx("span",{style:{display:"inline-block"},children:u.jsxs(u.Fragment,{children:["+",u.jsx(VO,{value:h,title:i?k(i):void 0})]})})})},n.length)]})}function x2e(e){const{items:t,themingVariables:n}=e,r=g2e(n);return e.stacked?u.jsx(y2e,{themingVariables:n.stackedList,ItemComponent:o=>u.jsx(q$,{...o,themingVariables:{...n,name:{...n.name,display:!1},count:{...n.count,display:!1}}}),data:e.items,maxCount:e.maximumLength,openModal:e.openModal}):u.jsx("ul",{className:r.list,children:t.slice(0,e.maximumLength).map((o,a)=>u.jsx("li",{className:r.listItem,children:u.jsx(q$,{...o,themingVariables:n})},e!=null&&e.keyID&&o[e.keyID]?o[e.keyID]:a))})}const C2e=re(e=>{const t=ee(),n=qe(e),r=n("sizing",{width:js().sizing.medium,offset:15}),o=n("plus",{font:ce.font({...t.fontSizeAndWeightVars("medium","bold"),lineHeight:t.lineHeights.condensed}),margin:5});return{sizing:r,plus:o}}),w2e=re((e,t)=>{const n=ee(),r=qe(e,void 0,t),o=r("sizing",{width:38}),a=r("spacing",ce.spacing({horizontal:18,vertical:22})),i=r("count",{display:!0,height:17,size:n.fonts.size.small,backgroundColor:P.colorOut("#808080"),borderColor:n.elementaryColors.black}),s=r("name",{display:!1,width:80,spacing:ce.spacing({left:10}),font:ce.font({...n.fontSizeAndWeightVars("small","semiBold"),lineHeight:16/12,color:P.colorOut(n.mainColors.fg)})}),l=r("limit",{maxItems:20}),c=C2e(`${e}StackedList`);c.sizing.width=o.width,c.sizing.offset=8,c.plus.margin=12;const d=r("stackedList",c);return{sizing:o,spacing:a,count:i,limit:l,name:s,stackedList:d}}),BU=re(()=>w2e("reactions"));function kU(e){const t=BU();return[X.LOADING,X.PENDING].includes(e.status)?u.jsx(pr,{small:!0,minimumTime:100}):!e.data||e.status===X.ERROR||e.error?u.jsx(yv,{apiError:e.error}):e.data&&e.data.length===0?u.jsx("span",{style:e.stacked?{lineHeight:`${t.stackedList.sizing.width}px`}:{},children:k("No reactions yet.")}):u.jsx(x2e,{keyID:"tagID",themingVariables:t,items:e.data,maximumLength:e.maximumLength,stacked:e.stacked,openModal:e.openModal})}function PU(e,t,n){const r=zr(e),o=lce(),a=RN(({reactions:s})=>ice(s,r)??X.PENDING);x.useEffect(()=>{t?o($p.fulfilled(t,r.toString(),e)):[X.SUCCESS,X.ERROR].includes(a)||o($p(e))},[t,o,a,r]);const i=RN(({reactions:s})=>a===X.SUCCESS?sce(s,e.userID):[]);return x.useEffect(()=>{i&&(n==null||n(i))},[i,r,n]),{status:a,data:i}}function S2e(e){var h,m;const{limit:{maxItems:t}}=BU(),{title:n=k("Reactions")}=e,r=e.maximumLength??t,[o,a]=x.useState((h=e.apiData)!=null&&h.length?((m=e.apiData)==null?void 0:m.length)>r:!1),[i,s]=x.useState(!1),l=()=>s(!0),c=()=>s(!1),d=PU(e.apiParams,e.apiData,g=>{a(g.length>r)});let f=u.jsx(kU,{...d,stacked:e.stacked,maximumLength:r,openModal:o?l:void 0});return e.homeWidget&&(f=u.jsx(Us,{title:n,options:{viewAll:o?{onClick:l}:void 0},children:f})),u.jsxs(u.Fragment,{children:[f,o&&u.jsx(D2e,{userID:e.apiParams.userID,title:n,isVisible:i,exitHandler:c})]})}function D2e(e){const{userID:t,isVisible:n,exitHandler:r,title:o=k("Reactions")}=e,a=sm(),i=Ov(),s=PU({userID:t});return u.jsx(ao,{isVisible:n,size:jt.MEDIUM,exitHandler:r,children:u.jsx(im,{header:u.jsx(Uc,{closeFrame:r,title:o}),body:u.jsx(lm,{children:u.jsx("div",{className:a.contents,children:u.jsx(kU,{...s})})}),footer:u.jsx(Ad,{justifyRight:!0,children:u.jsx(ut,{buttonType:ye.TEXT,onClick:r,className:i.actionButton,children:k("OK")})})})})}Wc(b8);jh(ome);an("imageUploadGroup",dOe,{overwrite:!0});an("tokensInputInLegacyForm",yOe,{overwrite:!0});an("datepickerInLegacyForm",FNe,{overwrite:!0});an("ReactionListModule",S2e,{overwrite:!0});Wh("auth",i1e);Wh("notifications",new B6().reducer);PO.addRoutes([YO?XH.route:null,WNe.route].filter(Do));pce(e=>u.jsx(lbe,{variablesOnly:!0,noWrap:!0,errorComponent:C1,children:u.jsx(BO,{type:jn.THREE_COLUMNS,children:e.children})}));Dce(()=>u.jsx(Mme,{disableDynamicRouting:!0}));Wc(()=>{kW(Y4())});an("title-bar-hamburger",o1e);an("community-banner",oCe,{overwrite:!0});an("community-content-banner",aCe,{overwrite:!0});const RU=e=>{const{metaPermissionKey:t,onInitialLoad:n,onNewHTML:r}=e;Ge(t,!1)&&(Wc(()=>{n()}),jh(o=>{r(o)}))};RU({metaPermissionKey:"themeFeatures.DataDrivenTheme",onInitialLoad:()=>{s9(),xL()},onNewHTML:e=>{xL(e.target instanceof HTMLElement&&e.target.parentElement?e.target.parentElement:void 0)}});RU({metaPermissionKey:"themeFeatures.UserCards",onInitialLoad:()=>{vg(dh)&&DL()},onNewHTML:e=>{vg(dh)&&DL(e.target instanceof HTMLElement&&e.target.parentElement?e.target.parentElement:void 0)}});Wh(zy.name,zy.reducer);const E2e=new YH("discussions",()=>mt(()=>import("../chunks/addons/vanilla/DiscussionsSearchDomain.loadable.DoF5u6qR.min.js"),__vite__mapDeps([29,1,24,25,18,19,20,30,10,31]),import.meta.url));Wc(()=>{LW.addDomain(E2e)});var wl;(function(e){e.PUBLIC="public",e.PRIVATE="private",e.INTERNAL="internal"})(wl||(wl={}));var Zy;(function(e){e.ALL="all",e.RESTRICTED="restricted",e.NONE="none"})(Zy||(Zy={}));var X$;(function(e){e.TEXT_INPUT="textInput",e.TEXT_BOX="textBox",e.SINGLE_CHECKBOX="singleCheckbox",e.SINGLE_SELECT_DROPDOWN="singleSelectDropdown",e.MULTI_SELECT_DROPDOWN="multiSelectDropdown",e.DATE_PICKER="datePicker",e.NUMERIC_INPUT="numericInput",e.NUMERIC_DROPDOWN="numericDropdown"})(X$||(X$={}));var Vp;(function(e){e.REQUIRED="required",e.OPTIONAL="optional",e.HIDDEN="hidden"})(Vp||(Vp={}));var gc;(function(e){e.TEXT="text",e.BOOLEAN="boolean",e.DATE="date",e.NUMBER="number",e.STRING_MUL="string[]",e.NUMBER_MUL="number[]"})(gc||(gc={}));var va;(function(e){e.TEXT="text",e.TEXT_MULTILINE="text-multiline",e.DROPDOWN="dropdown",e.CHECKBOX="checkbox",e.DATE="date",e.NUMBER="number",e.TOKENS="tokens"})(va||(va={}));function jU(e={},t){const n=RB(),{hasPermission:r}=mr(),o=(t==null?void 0:t.filterPermissions)??!1,a=(t==null?void 0:t.isOwnProfile)??!1,i=Object.keys(e).length===0,s=zr(e??{}),l=g$(({userProfiles:{profileFieldApiNamesByParamHash:h}})=>h),c=g$(({userProfiles:{profileFieldsByApiName:h}})=>h),d=l[s],f=x.useMemo(()=>{if(!(!d||(d==null?void 0:d.status)!==X.SUCCESS))return Object.values(c).filter(i?()=>!0:({apiName:h})=>d.data.includes(h)).filter(o?h=>{switch(h.visibility){case wl.PUBLIC:return!0;case wl.PRIVATE:return r("personalInfo.view")||a;case wl.INTERNAL:return r("internalInfo.view")}}:()=>!0)},[d,c,o]);return x.useEffect(()=>{e&&!d&&n(A0(e))},[d,e]),d!=null&&d.error?{status:X.ERROR}:f?{status:d.status,data:f}:{status:X.LOADING}}function NU(e){var a;const t=RB(),n=bOe(({userProfiles:{profileFieldsByUserID:i}})=>i),r=(a=n[e])==null?void 0:a.status,o=x.useMemo(()=>{var i;if(n[e]&&((i=n[e])!=null&&i.data))return n[e].data},[n,e]);return x.useEffect(()=>{e&&!o&&t(O0({userID:e}))},[o,e]),{status:r,...r===X.SUCCESS&&{data:o}}}function I2e(e){const t=RB();return async function(n){return await t(pOe({userID:e,...n})).unwrap()}}function T2e(e){const{visibility:t}=e,n=S({display:"inline-block",marginLeft:4,maxHeight:`calc(1em * ${ee().lineHeights.base})`},"label:ProfileFieldVisibilityIcon-iconContainerClass"),r=S({...E.verticallyAlignInContainer(24,ee().lineHeights.base)},"label:ProfileFieldVisibilityIcon-iconClasses");return t===wl.INTERNAL?u.jsx(In,{label:k("This information will only be shown to users with permission to view internal info."),children:u.jsx("span",{className:n,children:u.jsx(Bt,{className:r,icon:"profile-crown"})})}):t===wl.PRIVATE?u.jsx(In,{label:k("This is private information and will not be shared with other members."),children:u.jsx("span",{className:n,children:u.jsx(Bt,{className:r,icon:"profile-lock"})})}):u.jsx(u.Fragment,{})}function A2e(e){return Object.fromEntries(e.map(t=>{const n=t,r=`${t}`;return[n,r]}))}function O2e(e,t){const n=(t==null?void 0:t.hideDescriptions)??!1,r=(t==null?void 0:t.userCanEdit)??!1,o=i=>{const s=i.dataType;return s===gc.TEXT||s===gc.DATE?"string":s===gc.STRING_MUL||s===gc.NUMBER_MUL?"array":s};function a(i){switch(i){case va.TEXT:case va.NUMBER:case va.TEXT_MULTILINE:return"textBox";case va.CHECKBOX:return"checkBox";case va.DROPDOWN:return"dropDown";case va.TOKENS:return"tokens";case va.DATE:return"datePicker"}}return{type:"object",properties:Object.fromEntries(e.map(i=>[i.apiName,{type:o(i),minLength:i.registrationOptions===Vp.REQUIRED?1:0,minItems:i.registrationOptions===Vp.REQUIRED?1:0,disabled:i.mutability===Zy.NONE||i.mutability===Zy.RESTRICTED&&!r,visibility:i.visibility,"x-control":{...i.formType===va.TOKENS?{legend:i.label}:{label:i.label},description:n?void 0:i.description,inputType:a(i.formType),choices:{staticOptions:i.dropdownOptions?A2e(i.dropdownOptions):null},type:i.formType===va.TEXT_MULTILINE?"textarea":i.formType===va.NUMBER?"number":void 0,multiple:i.formType===va.TOKENS&&i.dropdownOptions?!0:void 0,...i.visibility===wl.INTERNAL&&{tooltip:k("This information will only be shown to users with permission to view internal info."),tooltipIcon:"profile-crown"},...i.visibility===wl.PRIVATE&&{tooltip:k("This is private information and will not be shared with other members."),tooltipIcon:"profile-lock"}}}])),required:e.filter(i=>i.registrationOptions===Vp.REQUIRED).map(i=>i.apiName)}}function B2e(e,t){return Object.fromEntries(Object.entries(e.properties).map(([n,r])=>{let o=t[n];return r["x-control"].inputType==="datePicker"&&o&&(o=et(o).format("YYYY-MM-DD")),[n,o]}))}function LU(e){return e?new Date(e).toISOString().slice(0,-1):""}function k2e(e,t){const n=Object.assign({...e});return Object.keys(t.properties).forEach(r=>{r in n&&n[r]===void 0&&(n[r]=null),t.properties[r].disabled&&delete n[r]}),n}const P2e=(e,t)=>{const n={...e};return t.forEach(({apiName:r,dataType:o})=>{o===gc.DATE&&(n[r]=n[r]?LU(n[r]):""),o===gc.NUMBER_MUL&&(n[r]=(n[r]??[]).map(a=>a.toString()))}),n};function R2e(e){const t=NU(e),n=jU(),r=x.useMemo(()=>[t.status,n.status].some(s=>[X.PENDING,X.LOADING].includes(s)),[t,n]),o=x.useMemo(()=>n.data?Object.fromEntries(n.data.map(s=>[s.apiName,s])):{},[n]),a=(s,l)=>u.jsxs("span",{children:[s,u.jsx(T2e,{visibility:l})]}),i=x.useMemo(()=>[t.status===X.SUCCESS,n.status===X.SUCCESS].every(l=>l===!0)?l1(Object.keys(t.data),c=>o[c].sort).map(c=>{const d=t.data[c],f=o[c];return{key:a(f.label??c,o[c].visibility),value:f.dataType==="date"?u.jsx(Uo,{timestamp:LU(d)}):d}}):null,[t,n]);return{isLoading:r,profileFields:i}}const j2e=re(e=>{const t=qe("dataList",e),n=ee(),r=t("spacing",{padding:{vertical:6}}),o=t("key",{textAlignment:"left",padding:{vertical:r.padding.vertical,right:n.spacer.size},font:ce.font({...n.fontSizeAndWeightVars("small","bold"),lineHeight:n.lineHeights.condensed})}),a=t("value",{textAlignment:"left",padding:{vertical:r.padding.vertical}});return{spacing:r,key:o,value:a}}),N2e=re(e=>{const t=j2e(),n=ee(),r=e??Ht().mediaQueries(),o=S({width:"100%"},"label:dataListStyles-root"),a=S({width:"100%","&&":{...r.xs({display:"inline-table"})}},"label:dataListStyles-table"),i=S({"&&&&":{...E.margin({bottom:n.spacer.headingBox})}},"label:dataListStyles-title"),s=S({textAlign:t.key.textAlignment,verticalAlign:"top",fontWeight:n.fonts.weights.bold,...E.padding(t.key.padding)},"label:dataListStyles-key"),l=S({textAlign:t.key.textAlignment,verticalAlign:"top",...E.padding(t.value.padding),whiteSpace:"pre-line"},"label:dataListStyles-value"),c=S({display:"flex",flexWrap:"wrap",gap:n.fonts.size.small},"label:dataListStyles-tokenGap");return{root:o,title:i,table:a,key:s,value:l,tokenGap:c,checkBoxAlignment:S({padding:"2px 0 0!important"},"label:dataListStyles-checkBoxAlignment")}}),L2e=()=>{const e=Tn(),t=S({display:"inline-flex",backgroundColor:"#eeefef",borderRadius:2,alignItems:"center",maxWidth:"85%"},"label:TokenItem-styles-root"),n=S({...E.padding({vertical:4,horizontal:8}),...E.font(e.font),...ee().options.preset===fg.DARK&&{color:P.colorOut(ee().elementaryColors.darkText)}},"label:TokenItem-styles-textContent"),r=S({...E.padding({vertical:1,horizontal:6}),color:"inherit",fontWeight:"inherit"},"label:TokenItem-styles-textContentCompact");return{root:t,textContent:n,textContentCompact:r,button:S({marginLeft:-4},"label:TokenItem-styles-button"),icon:S({height:7,width:7,position:"relative",transform:"translateY(1px)"},"label:TokenItem-styles-icon")}},$U=W.forwardRef(function(t,n){const{onRemove:r,...o}=t,a=L2e();return u.jsxs("span",{...o,ref:n,className:ge(a.root,t.className,"token"),children:[u.jsx("span",{className:ge(a.textContent,"tokenText",t.compact&&a.textContentCompact),children:t.children}),r&&u.jsx(ut,{buttonType:ye.ICON_COMPACT,className:a.button,onClick:r,children:u.jsx(Vh,{className:a.icon})})]})});function no(e){const t=xr("checkbox"),n=e.id??t,r=xr("checkbox_label"),o=e["aria-labelledby"]??r,a=p1(),{isHorizontal:i,fullWidth:s,labelBold:l=!1,onChange:c,onBlur:d,checked:f,disabled:h,className:m,fakeFocus:g,excludeFromICheck:p,defaultChecked:v,tooltipLabel:b,label:y,hideLabel:C,tooltip:D,tooltipIcon:A="data-information",name:T}=e,B=u.jsx("span",{className:a.iconContainer,"aria-hidden":"true",children:u.jsxs("svg",{className:ae(a.checkIcon),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:[u.jsx("title",{children:k("✓")}),u.jsx("path",{fill:"currentColor",d:"M10,2.7c0-0.2-0.1-0.3-0.2-0.4L8.9,1.3c-0.2-0.2-0.6-0.2-0.9,0L3.8,5.6L1.9,3.7c-0.2-0.2-0.6-0.2-0.9,0L0.2,4.6c-0.2,0.2-0.2,0.6,0,0.9l3.2,3.2c0.2,0.2,0.6,0.2,0.9,0l5.5-5.5C9.9,3,10,2.8,10,2.7z"})]})});return u.jsxs("label",{className:ae(m,a.root,{isHorizontal:i,minContent:C},s&&a.fullWidth),children:[u.jsx("input",{className:ae(a.input,g&&"focus-visible",{"exclude-icheck":p}),"aria-labelledby":o,"aria-describedby":e["aria-describedby"],type:"checkbox",onChange:c,onBlur:d,checked:f,defaultChecked:v,disabled:h,tabIndex:0,name:T,id:n}),b&&y?u.jsx(In,{label:y,children:B}):B,!!y&&u.jsx("span",{id:o,className:ae(a.label,{[a.labelBold]:l,[Rc().visuallyHidden]:b||C}),children:y}),D&&u.jsx(In,{label:D,children:u.jsx(ky,{children:u.jsx("span",{className:a.tooltipIconContainer,children:u.jsx(Bt,{icon:A,className:a.tooltipIcon})})})})]})}function MU(e){const{data:t,caption:n,title:r,className:o,isLoading:a,loadingRows:i,colgroups:s}=e,l=N2e(),c=x.useMemo(()=>!a&&t&&t.length>0?t.map(d=>Array.isArray(d.value)?{...d,value:u.jsx("div",{className:l.tokenGap,children:d.value.map((f,h)=>u.jsx($U,{children:f},`${f}${h}`))})}:typeof d.value=="boolean"?{...d,value:u.jsx(no,{className:l.checkBoxAlignment,checked:!!d.value,label:d.value?k("Yes"):k("No"),labelBold:!1,disabled:!0})}:d):a?Array.from(new Array(i??5)).fill(" ").map(()=>({key:u.jsx(tn,{width:`${Math.floor(Math.random()*25+25)}`}),value:u.jsx(tn,{width:`${Math.floor(Math.random()*65+25)}`})})):null,[t,a]);return u.jsxs("div",{className:ge(l.root,o),children:[r&&u.jsx(Dn,{className:l.title,renderAsDepth:3,children:r}),u.jsxs("table",{className:l.table,children:[u.jsx("caption",{children:n??r}),s&&u.jsx("colgroup",{children:s.map((d,f)=>u.jsx("col",{span:1,style:{width:typeof d=="number"?`${d}%`:d}},f))}),u.jsxs("tbody",{children:[c&&c.map((d,f)=>u.jsxs("tr",{className:ge({isFirst:f===0},{isLast:f===c.length}),children:[u.jsx("th",{scope:"row",className:l.key,children:d.key}),u.jsx("td",{className:l.value,children:d.value})]},f)),!c&&u.jsx("tr",{children:u.jsx("td",{colSpan:2,children:k("Not much happening here, yet.")})})]})]})]})}const _U=re(()=>{const e=ee(),t=Kt(),n=qe("messages"),r=n("sizing",{minHeight:49,width:900}),o=n("spacing",{padding:{vertical:8,withIcon:40,withoutIcon:18}}),a=n("colors",{fg:e.messageColors.warning.fg,bg:e.messageColors.warning.bg,states:{fg:e.messageColors.warning.state},error:{bg:On("#FBE8E8")},neutral:{bg:On("#EEEEEF")},info:{bg:On("#EFF2F5")}}),i=n("title",{margin:{top:6}}),s=n("text",{font:ce.font({...e.fontSizeAndWeightVars("medium","normal"),color:a.fg,lineHeight:e.lineHeights.condensed})}),l=n("actionButton",{position:"relative",padding:{vertical:0,left:o.padding.withoutIcon/2,right:o.padding.withoutIcon/2},margin:{left:o.padding.withoutIcon/2},font:ce.font({...e.fontSizeAndWeightVars("medium","semiBold"),color:e.mainColors.fg}),minHeight:t.sizing.height});return{sizing:r,spacing:o,colors:a,text:s,title:i,actionButton:l}}),$2e=re(()=>{const e=_U(),t=ee(),n=Nn(),r=Ht().mediaQueries(),o=Un(),a=S({display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",minHeight:w(e.sizing.minHeight),width:Z(100),margin:"auto",color:P.colorOut(e.colors.fg),...E.padding({vertical:e.spacing.padding.vertical,left:e.spacing.padding.withoutIcon*1.5,right:e.spacing.padding.withoutIcon})},"label:messageStyles-wrap"),i=S({paddingLeft:e.spacing.padding.withIcon},"label:messageStyles-wrapWithIcon"),s=S({...E.font(e.text.font),width:Z(100),flex:1,position:"relative",...E.padding({vertical:6})},"label:messageStyles-message"),l=S({position:"fixed",left:0,top:w(n.sizing.height+1),minHeight:w(e.sizing.minHeight),maxWidth:Z(100),zIndex:20,[`& .${a}`]:{maxWidth:Z(100),display:"flex",alignItems:"center",justifyContent:"center",width:"auto"},[`& .${s}`]:{width:"auto"}},r.oneColumnDown({top:w(n.sizing.mobile.height+1)}),"label:messageStyles-fixed"),c=S({position:"relative",display:"flex",paddingLeft:30,alignItems:"center",flexDirection:"row",margin:"0 auto",paddingTop:w(e.spacing.padding.vertical),paddingBottom:w(e.spacing.padding.vertical)},"label:messageStyles-messageWrapper"),d=S({width:Z(100),textAlign:"start",backgroundColor:P.colorOut(e.colors.bg),...ld(t.body.backgroundImage.color,E.border({color:t.mainColors.fg}),o.embed()),...E.margin({horizontal:"auto"}),"* + &":{marginTop:w(t.spacer.size/2)}},"label:messageStyles-root"),f=S({backgroundColor:P.colorOut(e.colors.error.bg)},"label:messageStyles-error"),h=S({backgroundColor:P.colorOut(e.colors.neutral.bg)},"label:messageStyles-neutral"),m=S({backgroundColor:P.colorOut(e.colors.info.bg)},"label:messageStyles-info"),g=S({width:w(e.sizing.width),maxWidth:Z(100)},"label:messageStyles-setWidth"),p=S({},"label:messageStyles-actionButtonPrimary"),v=S({"&&":{position:"relative",...E.padding(e.actionButton.padding),marginLeft:e.actionButton.padding.left,whiteSpace:"nowrap",...E.font(e.actionButton.font),...Iu({noState:{color:P.colorOut(e.colors.fg)},allStates:{color:P.colorOut(e.colors.states.fg)},clickFocus:{outline:0}}),[`&.${p}`]:{fontWeight:t.fonts.weights.bold}}},"label:messageStyles-actionButton"),b=S({position:"absolute",left:0,top:"50%",display:"flex",justifyContent:"center",alignItems:"center",height:Z(100),maxHeight:eo(2),transform:K0(Ta(e.spacing.padding.withIcon),"-50%"),width:w(e.spacing.padding.withIcon)},"label:messageStyles-iconPosition"),y=S({},"label:messageStyles-icon"),C=S({"&&":{color:P.colorOut(t.mainColors.fg)}},"label:messageStyles-errorIcon"),D=S({width:Z(100),position:"relative","& a":vv({noState:{color:P.colorOut(e.colors.fg),textDecoration:"underline"},allStates:{color:P.colorOut(e.colors.states.fg),textDecoration:"underline"}})},"label:messageStyles-content"),A=S({display:"inline-block"},"label:messageStyles-inlineBlock"),T=S({},"label:messageStyles-confirm"),B=S({},"label:messageStyles-main"),j=S({...E.font(e.text.font)},"label:messageStyles-text"),R=S({display:"flex",justifyContent:"start",position:"relative",[`& + .${j}`]:{marginTop:w(e.title.margin.top)},[`& .${b}`]:{transform:K0(Ta(e.spacing.padding.withIcon),"calc(-50% - 2px)")}},"label:messageStyles-titleContent"),N=S({position:"relative",[`& + .${j}`]:{marginTop:w(e.title.margin.top)}},"label:messageStyles-paragraphContent"),_=S({"&&":{...E.font(e.text.font),fontWeight:t.fonts.weights.bold,...E.margin({all:0}),...bl({[`& + .${j}`]:{marginTop:w(e.title.margin.top)}})}},"label:messageStyles-title");return{root:d,error:f,neutral:h,info:m,wrap:a,wrapWithIcon:i,actionButton:v,actionButtonPrimary:p,message:s,fixed:l,setWidth:g,iconPosition:b,titleContent:R,paragraphContent:N,content:D,inlineBlock:A,confirm:T,errorIcon:C,messageWrapper:c,main:B,text:j,icon:y,title:_}}),Jc=W.forwardRef(function(t,n){const r=$2e(),o=t.isContained?zo:W.Fragment,a=t.isFixed?zo:W.Fragment,i="error"in t?t.error.description??t.error.message:t.stringContents;let s=t.title??("error"in t&&t.error.description?t.error.message:void 0);const l=u.jsx("div",{className:r.content,children:t.contents||i}),c=!!s,d="error"in t||!!t.type&&t.type==="error";let f=t.icon;!f&&d?f=u.jsx(u1,{}):!f&&t.type==="warning"&&(f=u.jsx(Bt,{icon:"notification-alert"}));const h=!!f,m=u.jsx("div",{className:r.text,children:l});s=s&&u.jsx("h2",{className:ge(r.title,"heading"),children:s});const g=!c&&h,p=c&&h,v=!h,b=u.jsx("div",{className:r.iconPosition,children:f});return u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:n,className:ge(r.root,t.className,{[r.fixed]:t.isFixed},{[r.error]:d},{[r.neutral]:t.type==="neutral"},{[r.info]:t.type==="info"}),children:u.jsx(a,{children:u.jsx("div",{className:ge(r.wrap,{[r.fixed]:t.isContained,[r.wrapWithIcon]:!!f}),children:u.jsxs(o,{children:[u.jsxs("div",{className:r.message,children:[g&&u.jsxs("div",{className:r.paragraphContent,children:[b," ",m]}),p&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:r.titleContent,children:[b," ",s]}),m]}),v&&u.jsxs(u.Fragment,{children:[s,m]})]}),"error"in t&&t.error&&t.error.actionButton&&u.jsx(So,{buttonType:ye.TEXT,to:t.error.actionButton.url,className:r.actionButton,target:t.error.actionButton.target,children:k(t.error.actionButton.label)}),t.onCancel&&u.jsx(ut,{buttonType:ye.TEXT,onClick:t.onCancel,className:r.actionButton,disabled:!!t.isActionLoading,children:t.isActionLoading?u.jsx(oi,{}):t.cancelText||k("Cancel")}),t.linkURL&&t.linkText&&u.jsx(So,{buttonType:ye.TEXT,to:t.linkURL,className:r.actionButton,children:t.linkText}),t.onConfirm&&u.jsx(ut,{buttonType:ye.TEXT,onClick:t.onConfirm,className:ge(r.actionButton,r.actionButtonPrimary),disabled:!!t.isActionLoading,children:t.isActionLoading?u.jsx(oi,{}):t.confirmText||k("OK")})]})})})}),!!i&&u.jsx(yz,{clearOnUnmount:!!t.clearOnUnmount,message:i,"aria-live":"assertive"})]})});class yk extends W.Component{constructor(){super(...arguments);q(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){mn(n,r)}render(){const{error:n}=this.state;return n?u.jsx(Jc,{onCancel:()=>{this.setState({error:null})},onConfirm:()=>{window.location.reload()},confirmText:k("Reload"),isFixed:this.props.isFixed??!0,icon:u.jsx(u1,{}),stringContents:n.message}):this.props.children}}function M2e(e){const{isLoading:t,profileFields:n}=R2e(e.userID),r=x.useRef(null),a=Zn(r).width<501,i=S({"& table":{width:Z(100),...E.margin({bottom:ee().spacer.pageComponent})}},"label:AboutMeWidget-tableStyles");return u.jsx(yk,{children:u.jsx("div",{ref:r,children:u.jsx(MU,{className:i,title:k("About Me"),isLoading:t,data:n??[],colgroups:a?[40,60]:[30,70]})})})}const Qu=re(()=>{const e=ee(),t=S({},"label:AccountSettings-classes-root"),n=S({marginTop:e.spacer.headingItem},"label:AccountSettings-classes-section"),r=S({color:P.colorOut(e.mainColors.fgHeading),...E.font({...e.fontSizeAndWeightVars("subTitle")}),...E.margin({vertical:16})},"label:AccountSettings-classes-subtitle"),o=S({...E.margin({vertical:16})},"label:AccountSettings-classes-infoRow"),a=S({display:"flex",alignItems:"center",fontWeight:e.fonts.weights.bold},"label:AccountSettings-classes-infoLabel"),i=S({display:"flex",alignItems:"center","& .password":{letterSpacing:"-0.25em",...E.margin({left:"-0.25em"})}},"label:AccountSettings-classes-infoDetail"),s=S({width:16,minWidth:16,height:16,...E.margin({horizontal:10}),"@media(max-width: 806px)":{minWidth:16}},"label:AccountSettings-classes-infoEdit"),l=S({display:"flex",alignItems:"center",fontWeight:e.fonts.weights.normal,fontSize:e.fonts.size.small,...E.margin({left:10})},"label:AccountSettings-classes-emailVerify"),c=S({color:P.colorOut(e.messageColors.confirm),width:e.fonts.size.large,height:e.fonts.size.large},"label:AccountSettings-classes-verified"),d=S({color:P.colorOut(e.messageColors.warning.state),width:e.fonts.size.medium,height:e.fonts.size.medium},"label:AccountSettings-classes-unverified"),f=S({...E.margin({top:e.spacer.headingItem/2}),height:"18px!important"},"label:AccountSettings-classes-loadingRectAdjustments"),h=S({marginBottom:16},"label:AccountSettings-classes-topLevelErrors"),m=S({maxWidth:"fit-content",paddingTop:"0"},"label:AccountSettings-classes-fitWidth"),g=S({...E.margin({bottom:ee().spacer.componentInner})},"label:AccountSettings-classes-instructions"),p=S({...E.margin({top:8})},"label:AccountSettings-classes-passwordMatchAdjustments");return{root:t,section:n,subtitle:r,infoRow:o,infoLabel:a,infoDetail:i,infoEdit:s,emailVerify:l,verified:c,unverified:d,loadingRectAdjustments:f,topLevelErrors:h,fitWidth:m,instructions:g,passwordMatchAdjustments:p}});function _2e(){const e=ece();return x.useMemo(()=>Q4(Zle,e),[e])}function xk(e){const t=zr(e),n=fn(o=>e.length===0?{status:X.SUCCESS,data:{}}:o.config.configsByLookupKey[t]??{status:X.PENDING}),r=_2e();return x.useEffect(()=>{n.status===X.PENDING&&e.length>0&&r.getConfigsByKeyThunk(e)},[t,n.status]),n}const Q$="profile.editEmails",Z$="password.minLength",FU=W.createContext({canEditEmails:!1,canEditUsers:!1,canEditUsernames:!1,viewingUser:null,viewingUserID:-1,isViewingSelf:!1,minPasswordLength:12});function F2e(e){const{userID:t,children:n}=e,{hasPermission:r}=mr(),o=xk([Q$,Z$]),a=x.useMemo(()=>{var g;return((g=o==null?void 0:o.data)==null?void 0:g[Q$])===!0},[o]),i=x.useMemo(()=>{var g;return((g=o.data)==null?void 0:g[Z$])??12},[o]),s=r(["profile.editusernames"]),l=r(["users.edit"]),c=qi(),d=x.useMemo(()=>(c==null?void 0:c.userID)??-1,[c]),f=TO({userID:t}),h=x.useMemo(()=>(f==null?void 0:f.data)??null,[f]),m=d===t;return u.jsx(FU.Provider,{value:{canEditEmails:a,canEditUsernames:s,canEditUsers:l,viewingUser:h,viewingUserID:e.userID,isViewingSelf:m,minPasswordLength:i},children:n})}function oC(){return x.useContext(FU)}var bi;(function(e){e.USERNAME="username",e.EMAIL="email",e.PASSWORD="password"})(bi||(bi={}));function GS(e){const{label:t,value:n,afterValue:r,afterLabel:o}=e,a=Qu();return u.jsxs("div",{className:a.infoRow,children:[u.jsxs("p",{className:a.infoLabel,children:[t,o]}),u.jsxs("div",{className:a.infoDetail,children:[n,r]})]})}var xI={exports:{}};(function(e,t){(function(n,r){r(e,t)})(yr,function(n,r){var o=typeof Map=="function"?new Map:function(){var d=[],f=[];return{has:function(m){return d.indexOf(m)>-1},get:function(m){return f[d.indexOf(m)]},set:function(m,g){d.indexOf(m)===-1&&(d.push(m),f.push(g))},delete:function(m){var g=d.indexOf(m);g>-1&&(d.splice(g,1),f.splice(g,1))}}}(),a=function(f){return new Event(f,{bubbles:!0})};try{new Event("test")}catch{a=function(h){var m=document.createEvent("Event");return m.initEvent(h,!0,!1),m}}function i(d){if(!d||!d.nodeName||d.nodeName!=="TEXTAREA"||o.has(d))return;var f=null,h=null,m=null;function g(){var A=window.getComputedStyle(d,null);A.resize==="vertical"?d.style.resize="none":A.resize==="both"&&(d.style.resize="horizontal"),A.boxSizing==="content-box"?f=-(parseFloat(A.paddingTop)+parseFloat(A.paddingBottom)):f=parseFloat(A.borderTopWidth)+parseFloat(A.borderBottomWidth),isNaN(f)&&(f=0),y()}function p(A){{var T=d.style.width;d.style.width="0px",d.offsetWidth,d.style.width=T}d.style.overflowY=A}function v(A){for(var T=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&T.push({node:A.parentNode,scrollTop:A.parentNode.scrollTop}),A=A.parentNode;return T}function b(){if(d.scrollHeight!==0){var A=v(d),T=document.documentElement&&document.documentElement.scrollTop;d.style.height="",d.style.height=d.scrollHeight+f+"px",h=d.clientWidth,A.forEach(function(B){B.node.scrollTop=B.scrollTop}),T&&(document.documentElement.scrollTop=T)}}function y(){b();var A=Math.round(parseFloat(d.style.height)),T=window.getComputedStyle(d,null),B=T.boxSizing==="content-box"?Math.round(parseFloat(T.height)):d.offsetHeight;if(B<A?T.overflowY==="hidden"&&(p("scroll"),b(),B=T.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(d,null).height)):d.offsetHeight):T.overflowY!=="hidden"&&(p("hidden"),b(),B=T.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(d,null).height)):d.offsetHeight),m!==B){m=B;var j=a("autosize:resized");try{d.dispatchEvent(j)}catch{}}}var C=function(){d.clientWidth!==h&&y()},D=(function(A){window.removeEventListener("resize",C,!1),d.removeEventListener("input",y,!1),d.removeEventListener("keyup",y,!1),d.removeEventListener("autosize:destroy",D,!1),d.removeEventListener("autosize:update",y,!1),Object.keys(A).forEach(function(T){d.style[T]=A[T]}),o.delete(d)}).bind(d,{height:d.style.height,resize:d.style.resize,overflowY:d.style.overflowY,overflowX:d.style.overflowX,wordWrap:d.style.wordWrap});d.addEventListener("autosize:destroy",D,!1),"onpropertychange"in d&&"oninput"in d&&d.addEventListener("keyup",y,!1),window.addEventListener("resize",C,!1),d.addEventListener("input",y,!1),d.addEventListener("autosize:update",y,!1),d.style.overflowX="hidden",d.style.wordWrap="break-word",o.set(d,{destroy:D,update:y}),g()}function s(d){var f=o.get(d);f&&f.destroy()}function l(d){var f=o.get(d);f&&f.update()}var c=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(c=function(f){return f},c.destroy=function(d){return d},c.update=function(d){return d}):(c=function(f,h){return f&&Array.prototype.forEach.call(f.length?f:[f],function(m){return i(m)}),f},c.destroy=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],s),d},c.update=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],l),d}),r.default=c,n.exports=r.default})})(xI,xI.exports);var W2e=xI.exports,z2e=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(r,o){return o.toUpperCase()})]},H2e=z2e,YS=H2e;function U2e(e){var t=YS(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=YS(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(t.indexOf("pt")!==-1?(n*=4,n/=3):t.indexOf("mm")!==-1?(n*=96,n/=25.4):t.indexOf("cm")!==-1?(n*=96,n/=2.54):t.indexOf("in")!==-1?n*=96:t.indexOf("pc")!==-1&&(n*=16),n=Math.round(n),t==="normal"){var o=e.nodeName,a=document.createElement(o);a.innerHTML="&nbsp;",o.toUpperCase()==="TEXTAREA"&&a.setAttribute("rows","1");var i=YS(e,"font-size");a.style.fontSize=i,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a);var l=a.offsetHeight;n=l,s.removeChild(a)}return n}var V2e=U2e,G2e=yr&&yr.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CI=yr&&yr.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Y2e=yr&&yr.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]]);return n},Jy=x,sp=jl,_b=W2e,K2e=V2e,q2e=K2e,J$="autosize:resized",X2e=function(e){G2e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={lineHeight:null},n.textarea=null,n.onResize=function(r){n.props.onResize&&n.props.onResize(r)},n.updateLineHeight=function(){n.textarea&&n.setState({lineHeight:q2e(n.textarea)})},n.onChange=function(r){var o=n.props.onChange;n.currentValue=r.currentTarget.value,o&&o(r)},n}return t.prototype.componentDidMount=function(){var n=this,r=this.props,o=r.maxRows,a=r.async;typeof o=="number"&&this.updateLineHeight(),typeof o=="number"||a?setTimeout(function(){return n.textarea&&_b(n.textarea)}):this.textarea&&_b(this.textarea),this.textarea&&this.textarea.addEventListener(J$,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(J$,this.onResize),_b.destroy(this.textarea))},t.prototype.render=function(){var n=this,r=this,o=r.props;o.onResize;var a=o.maxRows;o.onChange;var i=o.style;o.innerRef;var s=o.children,l=Y2e(o,["onResize","maxRows","onChange","style","innerRef","children"]),c=r.state.lineHeight,d=a&&c?c*a:null;return Jy.createElement("textarea",CI({},l,{onChange:this.onChange,style:d?CI({},i,{maxHeight:d}):i,ref:function(f){n.textarea=f,typeof n.props.innerRef=="function"?n.props.innerRef(f):n.props.innerRef&&(n.props.innerRef.current=f)}}),s)},t.prototype.componentDidUpdate=function(){this.textarea&&_b.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:sp.number,maxRows:sp.number,onResize:sp.func,innerRef:sp.any,async:sp.bool},t}(Jy.Component),Q2e=Jy.forwardRef(function(e,t){return Jy.createElement(X2e,CI({},e,{innerRef:t}))}),wI;(function(e){e.STANDARD="inputBlock",e.CUSTOM=""})(wI||(wI={}));class Lv extends W.Component{constructor(n){super(n);q(this,"id");q(this,"ownInputRef",W.createRef());q(this,"onChange",n=>{const{inputProps:r={}}=this.props;r.onChange&&r.onChange(n)});q(this,"onBlur",n=>{const{inputProps:r={}}=this.props;r.onBlur&&r.onBlur(n)});q(this,"onFocus",n=>{const{inputProps:r={}}=this.props;r.onFocus&&r.onFocus(n)});this.id=zx(n,"inputText")}get inputRef(){const{inputProps:n={}}=this.props;return n.inputRef||this.ownInputRef}render(){const n=wd(),r=Gh(),{inputProps:o={},multiLineProps:a={},...i}=this.props,s=ae(r.inputText,o.inputClassNames,{InputBox:this.props.legacyMode,[n.text]:!this.props.legacyMode});return u.jsx(ni,{...i,className:ae(r.root,this.props.className),children:l=>{const{errorID:c,hasErrors:d}=l;let f=o["aria-describedby"];d&&(f=c);const h={id:this.id,defaultValue:o.defaultValue,value:o.value,type:o.type,disabled:o.disabled,required:o.required,placeholder:o.placeholder,maxLength:o.maxLength,min:o.min,max:o.max,step:o.step,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:this.inputRef,onKeyPress:o.onKeyPress,"aria-invalid":d,"aria-describedby":f,"aria-label":o["aria-label"],inputMode:o.inputmode,pattern:o.pattern};return o.multiline?u.jsx(Q2e,{...h,...a,async:!0,className:ae(s,a.className,{[r.multiLine(a.resize?a.resize:"none",a.overflow)]:o.multiline})}):u.jsx("input",{...h,className:ae(s,o.className),autoComplete:o.autoComplete?"on":"off"})}})}componentDidMount(){this.inputRef.current.addEventListener("change",this.onChange)}componentWillUnmount(){this.inputRef.current.removeEventListener("change",this.onChange)}get value(){return this.inputRef.current?this.inputRef.current.value:""}set value(n){if(this.inputRef.current)this.inputRef.current.value=n;else throw new Error("inputDom does not exist")}focus(){this.inputRef.current.focus()}select(){this.inputRef.current.select()}}q(Lv,"defaultProps",{disabled:!1,type:"text",errors:[],baseClass:"inputBlock",legacyMode:!1});function Gp(e){const{showUnmask:t,inputRef:n,className:r,hasError:o,errorTooltip:a,...i}=e,s=wd(),[l,c]=x.useState(!1),d=l?"Hide Password":"Show Password",f=zx(e,"passwordField"),h=()=>{var m;c(!l),(m=document.getElementById(f))==null||m.focus()};return u.jsxs("div",{className:s.inputWrapper,children:[u.jsxs("div",{className:ge(s.inputContainer,r),children:[u.jsx("input",{...i,id:f,type:l?"text":"password",autoComplete:"off",ref:n}),o&&u.jsx(Hn,{condition:!!a,component:In,componentProps:{label:a},children:u.jsx("span",{style:{display:"flex"},children:u.jsx(Bt,{icon:"notification-alert",className:s.errorIcon})})})]}),t&&u.jsx(ut,{buttonType:ye.ICON,tabIndex:-1,onClick:h,ariaLabel:k(d),title:k(d),className:s.hugRight,children:u.jsx(Bt,{icon:l?"editor-eye-slash":"editor-eye"})})]})}const Z2e=x.forwardRef(function(t,n){var B,j;const{setIsSaving:r,setIsFormDirty:o,setIsSuccess:a}=t,i=Qu(),{viewingUserID:s,viewingUser:l,isViewingSelf:c,canEditUsers:d}=oC(),{patchUser:f,patchErrors:h,patchStatus:m}=y1(s),{addToast:g}=ha(),p=x.useMemo(()=>l?l==null?void 0:l.email:"",[l]),[v,b]=x.useState(p),[y,C]=x.useState(""),[D,A]=x.useState(l==null?void 0:l.emailConfirmed),T=x.useMemo(()=>{const R=(l==null?void 0:l.hashMethod)!=="Random"&&(l==null?void 0:l.hashMethod)!=="Reset";return c?!R:d},[d,c]);return x.useEffect(()=>{l!=null&&l.email&&b(l==null?void 0:l.email),A(l==null?void 0:l.emailConfirmed)},[l]),x.useEffect(()=>{m===X.LOADING?r(!0):r(!1)},[m]),x.useEffect(()=>{m===X.SUCCESS&&(a(!0),g({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Your email has been updated")})}))},[m,a]),x.useEffect(()=>{const R=[v!==(l==null?void 0:l.email),D!==(l==null?void 0:l.emailConfirmed)].some(N=>N===!0);o(R)},[v,D,l]),x.useImperativeHandle(n,()=>({onSave:()=>{f({userID:s,email:v,...y&&{passwordConfirmation:y}})}}),[f,s,v,D,y]),u.jsxs(u.Fragment,{children:[h&&u.jsx(Jc,{className:i.topLevelErrors,type:"error",stringContents:h.message}),u.jsx($i,{className:i.instructions,children:k("Enter your new email address. After your changes have been saved, you will need to confirm your email.")}),u.jsx(ni,{label:k("Current Email"),children:u.jsx("span",{children:p})}),u.jsx(Lv,{label:u.jsx("span",{children:k("New Email")}),errors:(B=h==null?void 0:h.errors)==null?void 0:B.email,noteAfterInput:k("Enter your new email address"),inputProps:{required:!0,onChange:R=>{b(R.target.value)},value:v},extendErrorMessage:!0}),!T&&u.jsx(ni,{label:k("Password"),errors:(j=h==null?void 0:h.errors)==null?void 0:j.password,extendErrorMessage:!0,children:u.jsx(Gp,{id:"password",onChange:R=>C(R.target.value),value:y,"aria-label":k("Password"),showUnmask:!0,required:!0})})]})}),J2e=S({display:"flex",alignItems:"center",gap:ee().spacer.headingItem/2,"& > span":{display:"flex"}},"label:StatusIndicator-statusIndicatorLayout");function Ck(e){const{className:t,icon:n,statusText:r}=e;return u.jsxs("span",{className:ge(J2e,t),children:[u.jsx("span",{children:n}),r&&u.jsx("span",{children:r})]})}function eLe(e){const[t,n]=x.useState({}),r=x.useCallback(async o=>{const{data:a}=await Ct.get("/users/by-names",{params:{name:o}});n(i=>({...i,[o]:Array.isArray(a)&&a.length<1}))},[]);return x.useEffect(()=>{e&&!Object.keys(t).includes(e)&&r(e)},[e,r]),t[e]}const tLe=()=>{const e=S({display:"flex",alignItems:"center"},"label:EditUsername-classes-labelAndStatusLayout"),t=S({display:"inline-flex",alignItems:"center",...E.padding({horizontal:ee().spacer.headingItem/2})},"label:EditUsername-classes-statusLayout"),n=S({width:ee().fonts.size.medium,height:ee().fonts.size.medium,padding:0},"label:EditUsername-classes-loadingSpinner");return{labelAndStatusLayout:e,statusLayout:t,loadingSpinner:n}},nLe=x.forwardRef(function(t,n){var _,U;const r=tLe(),{setIsSaving:o,setIsFormDirty:a,setIsSuccess:i}=t,{viewingUserID:s,isViewingSelf:l,canEditUsernames:c,viewingUser:d}=oC(),f=x.useMemo(()=>{const V=(d==null?void 0:d.hashMethod)!=="Random"&&(d==null?void 0:d.hashMethod)!=="Reset";return l?!V:c},[c,l]),{patchUser:h,patchErrors:m,patchStatus:g}=y1(s),{addToast:p}=ha(),v=x.useMemo(()=>d?d.name:"",[d]),[b,y]=x.useState(v),C=eLe(b),[D,A]=x.useState(!1),[T,B]=x.useState("");x.useEffect(()=>{(v==null?void 0:v.length)>0&&y(v)},[v]),x.useEffect(()=>{switch(g){case X.LOADING:o(!0);break;case X.SUCCESS:o(!1),i(!0),p({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Username changed successfully.")})});break;default:o(!1),i(!1);break}},[g,m]);const j=x.useMemo(()=>D&&b.length>0&&b!==v,[v,D,b]),R=x.useMemo(()=>{const V=(z,Y)=>u.jsx("span",{className:r.statusLayout,children:u.jsx(In,{label:z,children:u.jsx("span",{children:u.jsx(Ck,{icon:Y})})})});if(j)switch(C){case!0:return V(k("This username is available"),u.jsx(hO,{className:Qu().verified}));case!1:return V(k("This username is unavailable"),u.jsx(Bt,{icon:"status-warning",className:Qu().unverified}));case void 0:default:return V(k("Checking username availability"),u.jsx(oi,{className:r.loadingSpinner}))}return null},[j,C]),N=x.useMemo(()=>{let V=[];return j&&C===!1&&V.push({message:k("The name you entered is already in use by another member.")}),V},[j,C]);return x.useImperativeHandle(n,()=>({onSave:()=>{h({userID:s,name:b,...T&&{passwordConfirmation:T}})}}),[b,T,v]),u.jsxs(u.Fragment,{children:[m&&u.jsx(Jc,{className:Qu().topLevelErrors,type:"error",stringContents:m.message}),u.jsx(ni,{label:k("Current Username"),children:u.jsx("span",{children:v})}),u.jsx(Lv,{label:u.jsxs("span",{className:r.labelAndStatusLayout,children:[k("New Username"),R]}),noteAfterInput:k("Your new username must be unique"),errors:((_=m==null?void 0:m.errors)==null?void 0:_.username)||N,inputProps:{required:!0,onChange:V=>{y(V.target.value),A(!0),a(!0)},defaultValue:b,valid:!1},extendErrorMessage:!0}),!f&&u.jsx(ni,{label:k("Password"),errors:(U=m==null?void 0:m.errors)==null?void 0:U.password,extendErrorMessage:!0,children:u.jsx(Gp,{id:"password",onChange:V=>B(V.target.value),value:T,"aria-label":k("Password"),showUnmask:!0,required:!0})})]})}),rLe=x.forwardRef(function(t,n){var j,R,N;const{setIsSaving:r,setIsSuccess:o,setIsFormDirty:a}=t,{viewingUserID:i,isViewingSelf:s,canEditUsers:l,minPasswordLength:c}=oC(),{patchUser:d,patchErrors:f,patchStatus:h}=y1(i),m=Qu(),[g,p]=x.useState(""),[v,b]=x.useState(""),[y,C]=x.useState(""),D=ha(),A=x.useMemo(()=>s?!1:l,[l,s]);x.useEffect(()=>{const _=[!!g.length,!!v.length,!!y.length].some(U=>U===!0);a(_)},[y,g,v,a]);const T=x.useMemo(()=>v.length>0&&y===""?k("This must match the new password field"):y.length>0&&v.length>0&&y===v?u.jsx(Ck,{className:m.passwordMatchAdjustments,statusText:k("Passwords Match"),icon:u.jsx(hO,{className:m.verified})}):null,[v,y]),B=x.useMemo(()=>{let _=[];return y!==""&&y!==v&&_.push({message:k("New password does not match. Please reconfirm your new password.")}),_},[y,v]);return x.useEffect(()=>{switch(h){case X.LOADING:r(!0);break;case X.SUCCESS:r(!1),o(!0),D.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Password changed successfully.")})});break;default:r(!1),o(!1);break}},[h,f]),x.useImperativeHandle(n,()=>({onSave:()=>{y===v&&d({userID:i,password:v,...g&&{passwordConfirmation:g}})}}),[y,v,d,i,g]),u.jsxs(u.Fragment,{children:[f&&u.jsx(Jc,{className:m.topLevelErrors,type:"error",stringContents:f.message}),!A&&u.jsx(ni,{label:k("Current Password"),errors:(j=f==null?void 0:f.errors)==null?void 0:j.currentPassword,extendErrorMessage:!0,children:u.jsx(Gp,{id:"current-password",showUnmask:!0,onChange:_=>p(_.target.value),value:g,"aria-label":k("Current Password"),required:!0})}),u.jsx(ni,{label:k("New Password"),noteAfterInput:!((R=f==null?void 0:f.errors)!=null&&R.password)&&u.jsx(dn,{source:"Your new password must be at least <0/> characters",c0:c}),errors:(N=f==null?void 0:f.errors)==null?void 0:N.password,extendErrorMessage:!0,children:u.jsx(Gp,{id:"new-password",showUnmask:!0,onChange:_=>b(_.target.value),value:v,hasError:v.length>0&&v.length<c,errorTooltip:u.jsx(dn,{source:"Your new password must be at least <0/> characters",c0:c}),"aria-label":k("New Password"),required:!0})}),u.jsx(ni,{label:k("Confirm New Password"),noteAfterInput:T,errors:B,extendErrorMessage:!0,children:u.jsx(Gp,{id:"confirm-new-password",showUnmask:!0,onChange:_=>C(_.target.value),value:y,hasError:y!==""&&y!==v,"aria-label":k("Confirm New Password"),required:!0})})]})});function oLe(e){const{editType:t,visibility:n,onVisibilityChange:r}=e,[o,a]=x.useState(!1),[i,s]=x.useState(!1),[l,c]=x.useState(!1),[d,f]=x.useState(null),h=x.useRef(null),m=xr("editUserProfile_modal"),g=Ov(),p=sm(),v=x.useMemo(()=>t?{[bi.USERNAME]:nLe,[bi.EMAIL]:Z2e,[bi.PASSWORD]:rLe}[t]??null:null,[t]),b=x.useMemo(()=>{switch(t){case bi.USERNAME:return k("Edit username");case bi.EMAIL:return k("Edit email");case bi.PASSWORD:return k("Change password");default:return k("Edit")}},[t]);x.useEffect(()=>{d&&y()},[d,r]);const y=()=>{r&&r(!1),a(!1),s(!1),c(!1),f(null)};return u.jsxs("div",{children:[u.jsx(ao,{isVisible:n,size:jt.SMALL,exitHandler:()=>{l?a(!0):y()},titleID:m,children:u.jsx("form",{onSubmit:C=>{var D;C.preventDefault(),C.stopPropagation(),(D=h.current)==null||D.onSave()},children:u.jsx(im,{header:u.jsx(Uc,{titleID:m,closeFrame:y,title:b}),body:u.jsx(lm,{children:u.jsx("div",{className:p.contents,children:u.jsx(yk,{children:v&&u.jsx(v,{setIsSaving:s,setIsFormDirty:c,setIsSuccess:f,ref:h})})})}),footer:u.jsxs(Ad,{justifyRight:!0,children:[u.jsx(ut,{className:g.actionButton,buttonType:ye.TEXT,onClick:y,children:k("Cancel")}),u.jsx(ut,{type:"submit",className:g.actionButton,buttonType:ye.TEXT_PRIMARY,children:i?u.jsx(oi,{}):k("Save")})]})})})}),u.jsx(PB,{isVisible:o,title:k("Unsaved Changes"),onCancel:()=>{a(!1)},onConfirm:()=>{a(!1),y()},confirmTitle:k("Exit"),children:k("You have unsaved changes and your work will be lost. Are you sure you want to continue without saving?")})]})}var eM;(function(e){e.PROFILE="private",e.EMAIL="showEmail"})(eM||(eM={}));function aLe(){const e=Qu(),{viewingUserID:t,viewingUser:n,canEditEmails:r,canEditUsernames:o,canEditUsers:a,isViewingSelf:i}=oC(),{patchUser:s,patchStatus:l}=y1(t),c=ha(),[d,f]=x.useState(u.jsx(tn,{width:100,className:e.loadingRectAdjustments})),[h,m]=x.useState(u.jsx(tn,{width:160,className:e.loadingRectAdjustments})),[g,p]=x.useState(u.jsx(tn,{width:126,className:e.loadingRectAdjustments})),[v,b]=x.useState(null),[y,C]=x.useState(!1),[D,A]=x.useState(!1),[T,B]=x.useState(!0),[j,R]=x.useState(null),[N,_]=x.useState(!1),U=Ge("answerSuggestionsEnabled",!1),V=Ge("aiAssistant",{name:"AI Suggestion Assistant"}),[z,Y]=x.useState(null),te=H=>{R(H),_(!0)};x.useEffect(()=>{n&&(f(n.name??d),m(n.email??h),b(n.emailConfirmed??v),C(n.showEmail??y),A(n.private!=null?!n.private:D),p(u.jsx("span",{"aria-label":k("masked password"),className:"password",children:"﹡﹡﹡﹡﹡﹡﹡﹡﹡﹡﹡﹡"})),B(n.suggestAnswers??T))},[n]);const se=async(H,ie)=>{const oe={userID:t,...H==="private"&&{private:!ie},...H==="showEmail"&&{showEmail:ie}},ve=await s(oe).then($e=>{switch(H){case"private":return $e.private?"Your profile will not be publicly displayed.":"Your profile will be publicly displayed.";case"showEmail":return $e.showEmail?"Your email will be publicly displayed.":"Your email will not be publicly displayed.";default:return null}}).catch($e=>{c.addToast({dismissible:!0,body:u.jsx(u.Fragment,{children:k("An error occurred updating your privacy setting.")})})});ve&&c.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k(ve)})})},he=async H=>{const{checked:ie}=H.target,oe={userID:t,suggestAnswers:ie};Y(null);try{await s(oe),c.addToast({autoDismiss:!0,body:ie?u.jsx(dn,{source:"<0/> will suggest answers on Q&A posts",c0:V==null?void 0:V.name}):u.jsx(dn,{source:"<0 /> will not suggest answers on Q&A posts",c0:V==null?void 0:V.name})})}catch(ve){c.addToast({dismissible:!0,body:u.jsx(u.Fragment,{children:ve.message??k("An error occurred updating your privacy setting.")})}),Y([ve])}},pe=(H,ie,oe,ve)=>u.jsx(Hn,{condition:!H,component:In,componentProps:{label:ie},children:u.jsx("span",{children:u.jsx(ut,{buttonType:ye.ICON,className:e.infoEdit,ariaLabel:oe,onClick:()=>te(ve),disabled:!H,children:u.jsx(Bt,{icon:"dashboard-edit"})})})}),K=x.useMemo(()=>v!==null||n!=null&&n.pendingEmail?u.jsx("span",{className:e.emailVerify,children:u.jsx(Ck,{icon:!v||n!=null&&n.pendingEmail?u.jsx(Bt,{icon:"status-warning",className:e.unverified}):u.jsx(hO,{className:e.verified}),statusText:n!=null&&n.pendingEmail?`${k("Pending Email")}: ${n.pendingEmail}`:k(v?"Confirmed":"Needs Confirmation")})}):null,[v,n]),O=i&&(n==null?void 0:n.hashMethod)!=="Random"&&(n==null?void 0:n.hashMethod)!=="Reset",le=i&&(n==null?void 0:n.hashMethod)==="Random"?k("You are connected to this account through SSO. Your password cannot be edited here."):i&&(n==null?void 0:n.hashMethod)==="Reset"?k("Check your email to reset your password."):k(`You don't have the permission to edit ${i?"your":"this"} password`),be=i&&(n==null?void 0:n.hashMethod)==="Reset"?k("Check your email to reset your password."):k(`You don't have the permission to edit ${i?"your":"this"} email`);return u.jsxs("section",{className:e.section,children:[u.jsx(Dn,{depth:1,renderAsDepth:1,children:k("Account & Privacy Settings")}),u.jsx(Dn,{depth:2,className:e.subtitle,children:k("Your Account")}),u.jsx(GS,{label:k("Username"),value:d,afterValue:pe(a||i&&o,k("You don't have the permission to edit your username"),k("Edit username"),bi.USERNAME)}),u.jsx(GS,{label:k("Email"),value:h,afterLabel:K,afterValue:pe(a||i&&r&&(n==null?void 0:n.hashMethod)!=="Reset",be,k("Edit email"),bi.EMAIL)}),u.jsx(GS,{label:k("Password"),value:g,afterValue:pe(a||O,le,k("Change password"),bi.PASSWORD)}),Ag.extraSettingsComponents.map((H,ie)=>u.jsx(H,{},ie)),u.jsx(Dn,{depth:2,className:e.subtitle,children:k("Privacy")}),u.jsx(no,{label:k("Display my profile publicly"),labelBold:!1,checked:D,disabled:l===X.LOADING,onChange:H=>se("private",H.target.checked),className:e.fitWidth}),u.jsx(no,{id:"email-privacy",label:k("Display my email publicly"),labelBold:!1,checked:y,disabled:l===X.LOADING,onChange:H=>se("showEmail",H.target.checked),className:e.fitWidth}),u.jsx(oLe,{editType:j,visibility:N,onVisibilityChange:_},j),U&&u.jsxs(u.Fragment,{children:[u.jsx(Dn,{depth:2,className:e.subtitle,children:k("Community Preferences")}),u.jsx(no,{id:"suggest-answers",label:u.jsx(dn,{source:"Suggest <0/> Answers on my Q&A Posts",c0:V==null?void 0:V.name}),labelBold:!1,checked:T,onChange:he,className:e.fitWidth}),z&&u.jsx(El,{errors:z})]})]})}function Ag(e){return u.jsx(F2e,{userID:e.userID,children:u.jsx(kO,{children:u.jsx(aLe,{})})})}Ag.extraSettingsComponents=[];Ag.registerExtraSettingsComponent=e=>{Ag.extraSettingsComponents.push(e)};const WU=re((e,t)=>{const n=qe("callToAction"),r=ee(),o=n("options",{box:ce.box({}),linkButtonType:ye.STANDARD,alignment:"left",imagePlacement:"top",compactButtons:!1},e),a=n("title",{font:ce.font({...r.fontSizeAndWeightVars("subTitle","bold"),color:r.mainColors.fg}),spacing:ce.spacing({bottom:8})}),i=n("description",{font:ce.font({...r.fontSizeAndWeightVars("medium","normal"),color:r.mainColors.fg}),spacing:ce.spacing({bottom:16})}),s={spacing:ce.spacing({horizontal:8,top:12})},l=o.imagePlacement==="left",c=Ht(t),d=c.contentSizes.full/4-c.gutter.size*5,f=n("image",{ratio:{height:l?16:9,width:16},maxHeight:l?void 0:250,maxWidth:void 0}),h=n("sizing",{minWidth:d}),m=n("breakPoints",{oneColumn:r.foundationalWidths.breakPoints.xs});return{options:o,title:a,description:i,image:f,sizing:h,mediaQueries:()=>({oneColumn:v=>Yt({maxWidth:m.oneColumn},v)}),link:s}}),iLe=re(e=>{const t=WU(e),n=ee(),r=S({...E.box(t.options.box,{noPaddings:!0}),minWidth:w(t.sizing.minWidth),display:"flex",flexDirection:"column",overflow:"hidden",color:"inherit",backgroundImage:"none"},"label:CallToAction-styles-root"),o=S({"&:hover":{boxShadow:Un().makeShadow(.6)}},"label:CallToAction-styles-containerLink"),a=t.options.imagePlacement==="left",i=t.options.imagePlacement==="top",s=t.mediaQueries(),l=S({position:"relative",flex:1,display:void 0,alignItems:void 0,paddingTop:void 0,paddingLeft:void 0,...a?{display:"flex"}:{}},s.oneColumn({...a?{display:"block"}:{}}),"label:CallToAction-styles-container"),c=S({position:"relative",marginBottom:0,...E.padding(t.title.spacing),...E.font({...t.title.font,color:e==null?void 0:e.textColor})},"label:CallToAction-styles-title"),d=S({...E.font(t.title.font),marginBottom:16},"label:CallToAction-styles-absoluteTitle"),f=S({...E.font(t.description.font),marginBottom:16},"label:CallToAction-styles-absoluteDescription"),h=S({position:"relative",...E.font({...t.description.font,color:e==null?void 0:e.textColor})},"label:CallToAction-styles-description"),m=S({...E.padding(t.description.spacing)},"label:CallToAction-styles-descriptionPadding"),g=S({...E.margin(t.link.spacing)},"label:CallToAction-styles-link"),p=S({position:"relative"},"label:CallToAction-styles-button"),v=S({"&&":{minWidth:86}},"label:CallToAction-styles-compactButton"),b=S({display:"inline-flex",flexWrap:"wrap",justifyContent:t.options.alignment,...E.spaceChildrenEvenly(t.link.spacing),alignItems:"center"},"label:CallToAction-styles-linksWrapper"),y=Z(t.image.ratio.height/t.image.ratio.width*100),C=S({maxHeight:w(t.image.maxHeight),overflow:"hidden"},"label:CallToAction-styles-imageContainerWrapper"),D=S({...E.absolute.fullSizeOfParent(),objectFit:"cover",objectPosition:"center center"},"label:CallToAction-styles-image"),A=S({...E.absolute.fullSizeOfParent()},"label:CallToAction-styles-absoluteFullParentSize"),T=P.isLightColor((e==null?void 0:e.textColor)??n.mainColors.fg)?n.elementaryColors.black.fade(.25):n.elementaryColors.white.fade(.25),B=S({background:P.colorOut(T)},"label:CallToAction-styles-backgroundOverlay"),j=E.box(t.options.box,{onlyPaddings:!0}),R=S({textAlign:t.options.alignment,flex:a?1:void 0,...j},s.oneColumn({...a?{flex:void 0}:{}}),"label:CallToAction-styles-content"),N=S({background:P.colorOut(n.mixPrimaryAndBg(.08)),width:Z(100),paddingTop:i?y:void 0,position:"relative",marginBottom:!j.paddingTop&&i?16:void 0,marginRight:!j.paddingRight&&a?16:void 0},s.oneColumn({...a?{marginBottom:j.paddingTop?void 0:16,marginRight:"none",paddingTop:y}:{}}),"label:CallToAction-styles-imageContainer"),_=re(U=>{var se,he,pe;const V=a&&((se=t.image)!=null&&se.maxWidth)?(he=t.image)==null?void 0:he.maxWidth:void 0,z=a&&!V&&U>0&&U<=t.sizing.minWidth,Y=a?t.sizing.minWidth:void 0,te=((pe=t.image)==null?void 0:pe.maxWidth)??Z(100);return S({maxWidth:z?U:Y},s.oneColumn({...a?{maxWidth:te}:{}}),"label:CallToAction-styles-maxWidthWithBreakpoint")});return{root:r,container:l,containerLink:o,title:c,absoluteTitle:d,description:h,descriptionPadding:m,absoluteDescription:f,content:R,imageContainer:N,imageContainerWrapper:C,image:D,imageWidthConstraint:_,link:g,linksWrapper:b,button:p,compactButton:v,absoluteFullParentSize:A,backgroundOverlay:B}});function zU(e){var p,v,b;const t=x.useRef(null),n=Zn(t,!1,!0),r=WU(e.options).options,o=iLe(e.options),a=e.shouldUseButton??!0;let i;if(e.otherCTAs){let y=[{textCTA:e.textCTA,to:e.to}];e.otherCTAs.forEach(C=>{y.push(C)}),i=y.map((C,D)=>{const A=C.linkButtonType??r.linkButtonType;return u.jsx("div",{className:o.link,children:u.jsx(So,{buttonType:A,to:C.to,className:ge(o.button,{[o.compactButton]:r.compactButtons}),children:k(C.textCTA)})},"cta-link-"+D)})}const s=Xi().isFullWidth,l=!(e.desktopOnly&&!s),c=(v=(p=e.options)==null?void 0:p.box)==null?void 0:v.background,d=x.useMemo(()=>c!=null&&c.imageSrcSet?{srcSet:Ac(c.imageSrcSet)}:{},[c]),f={src:c==null?void 0:c.image,...d},h=!a&&e.to!=="",m=h?"a":"div",g=a?{}:{href:e.to};return u.jsx(Ls,{children:l&&u.jsx(m,{...g,className:ge(o.root,e.className,{[o.containerLink]:!!h}),children:u.jsxs("div",{className:o.container,children:[(c==null?void 0:c.image)&&u.jsx("img",{className:o.image,...f,role:"presentation"}),(c==null?void 0:c.image)&&((b=e.options)==null?void 0:b.useOverlay)&&u.jsx("div",{className:ge(o.absoluteFullParentSize,o.backgroundOverlay)}),e.imageUrl&&u.jsx("div",{ref:t,className:ae(o.imageContainer,o.imageWidthConstraint(n.height)),children:u.jsx("div",{className:o.imageContainerWrapper,children:u.jsx("img",{className:o.image,src:e.imageUrl,alt:k(e.title),loading:"lazy"})})}),u.jsxs("div",{className:o.content,children:[u.jsx(Dn,{renderAsDepth:3,className:o.title,children:k(e.title)}),e.description&&u.jsx("div",{className:ge(o.description,{[o.descriptionPadding]:a}),children:typeof e.description=="string"?k(e.description):e.description}),a&&e.to&&!i&&(e.customCTA?e.customCTA:u.jsx(So,{buttonType:r.linkButtonType,to:e.to,className:o.button,children:k(e.textCTA??"")})),a&&i&&u.jsx("div",{className:o.linksWrapper,children:i})]})]})})})}function sLe(e){var t,n,r,o,a,i,s,l,c,d,f,h;return u.jsx(zU,{to:((t=e.button)==null?void 0:t.url)??"",shouldUseButton:((n=e.button)==null?void 0:n.shouldUseButton)??!0,textCTA:((r=e.button)==null?void 0:r.title)??"",title:e.title,description:e.description??"",otherCTAs:(o=e.secondButton)!=null&&o.url?[{to:((a=e.secondButton)==null?void 0:a.url)??"",textCTA:k(((i=e.secondButton)==null?void 0:i.title)??""),linkButtonType:(s=e.secondButton)==null?void 0:s.type}]:void 0,options:{alignment:e.alignment??"center",textColor:e.textColor,linkButtonType:(l=e.button)==null?void 0:l.type,box:{background:{color:(c=e.background)==null?void 0:c.color,image:(d=e.background)==null?void 0:d.image,imageSrcSet:(f=e.background)==null?void 0:f.imageUrlSrcSet},borderType:e.borderType},useOverlay:(h=e.background)==null?void 0:h.useOverlay}})}const wk=re((e,t)=>{const n=qe("quickLinks",t,[new Rs({"listItem.font.color":"listItem.fgColor.default","listItem.fontState.color":"listItem.fgColor.allStates"})]),r=ee(t),o=n("box",ce.box({...r.panelBoxes.depth2,borderType:e==null?void 0:e.borderType,background:e==null?void 0:e.innerBackground})),a=n("links",[]),i=n("counts",{}),s=n("list",{spacing:ce.spacing({})}),l=n("listItem",{listSeparation:Gu.NONE,listSeparationColor:r.border.color,listSeparationWidth:r.border.width,font:ce.font({...r.fontSizeAndWeightVars("medium","normal"),color:r.mainColors.fg,textDecoration:"auto"})}),c=l.listSeparation===Gu.BORDER,d=l.listSeparation===Gu.SEPARATOR,f=n("listItem",{...l,fontState:ce.font({...l.font,color:l.font.color===r.mainColors.fg?r.links.colors.active:P.offsetLightness(l.font.color,.05)}),padding:ce.spacing({vertical:d?12:6,horizontal:c||d?12:0}),spacing:ce.spacing({vertical:c?6:0})}),h=n("count",{font:{...f.font,color:r.mainColors.fg}});return{list:s,listItem:f,count:h,box:o,links:a,counts:i}}),mo=W.forwardRef(function(t,n){const{options:r,as:o,children:a,...i}=t,s=x.useRef(),l=n??s,c=cme().options,d=S(E.box(ce.box(r??c??{}))),f=o??"div";return u.jsx(f,{...i,ref:l,className:ge("pageBoxNoCompat",d,i.className),children:u.jsx(mg,{boxRef:l,children:a})})}),HU=re(e=>{const t=wk(),n=Tt("quickLinks"),r=n({border:"none",...E.background((e==null?void 0:e.outerBackground)??{})}),o=n("list",{...E.margin(t.list.spacing)}),{listSeparation:a}=t.listItem,i=n("listItem",{width:"100%",...E.margin(t.listItem.spacing)},a===Gu.SEPARATOR&&{borderBottom:wt({width:t.listItem.listSeparationWidth,color:t.listItem.listSeparationColor}),"&:last-child":{borderBottom:"none"}},a===Gu.BORDER&&E.border({width:t.listItem.listSeparationWidth,color:t.listItem.listSeparationColor})),s=(c=!1)=>S({display:"flex",justifyContent:"space-between",alignItems:"center",flex:1,...E.padding(t.listItem.padding),...E.font(t.listItem.font),...c?E.font(t.listItem.fontState):{},"&:hover, &:focus, &:active, &.focus-visible":{...E.font(t.listItem.fontState)}},"label:QuickLinks-classes-link"),l=n("count",{whiteSpace:"nowrap",textAlign:"right",...E.font(t.count.font)});return{root:r,list:o,listItem:i,link:s,count:l}});function lLe(e){var s;const t=HU(e.containerOptions),n=wk(e.containerOptions),{title:r,links:o,activePath:a}=e,i=o.filter(l=>!("isHidden"in l&&l.isHidden));return u.jsxs(Ls,{className:t.root,children:[u.jsx(qh,{title:r,options:{alignment:(s=e.containerOptions)==null?void 0:s.headerAlignment}}),e.extraHeader,u.jsx(mo,{options:n.box,children:u.jsx("nav",{children:u.jsx("ul",{className:ae(t.list,"no-css"),children:i?i.map((l,c)=>u.jsx(hg,{permission:l.permission,children:u.jsx(cLe,{active:l.url===a,path:l.url,title:l.name,count:l.count,countLimit:l.countLimit})},c)):u.jsx(u.Fragment,{})})})})]})}function cLe(e){const t=HU(),{path:n,title:r,count:o,countLimit:a,active:i}=e,s=W.useMemo(()=>o&&a&&o>=a?`${a}+`:o,[o,a]);return u.jsx("li",{className:ae(t.listItem),children:u.jsxs(wr,{to:n,active:i,className:t.link(i),children:[k(r),s!=null&&u.jsx("span",{className:ae(t.count),children:s})]})})}function $v(e){const{hasPermission:t}=mr(),{addComponent:n,removeComponentByID:r,isCompact:o}=Uz(),a=e.links&&e.links.length>0?e.links:wk().links,i=Wz(a.map(({url:f})=>f),e.currentPath??window.location.pathname)??void 0,s=x.useMemo(()=>{var h,m;const f=e.forcedCounts??((m=(h=dg())==null?void 0:h.quickLinks)==null?void 0:m.counts);if(!f)return a;for(const[g,p]of Object.entries(a)){const v=f[p.id]??null;v!==null&&(a[g].count=v)}return a},[a,e.forcedCounts]),l=x.useMemo(()=>[{name:e.title??k("Quick Links"),parentID:0,sort:0,recordID:"quickLinks",recordType:"quickLinks",children:s.map(f=>T1(f,t,"quickLinks")).filter(f=>f)}],[s,e.title]),[c,d]=x.useState(null);return x.useEffect(()=>{if(!c){const f=n({type:VE.tree,tree:l,title:e.title??k("Quick Links")});d(f)}},[n,l,e.title]),o?null:u.jsx(lLe,{title:e.title,links:s,activePath:i,containerOptions:e.containerOptions,extraHeader:e.extraHeader})}const uLe=re(({lineClamp:e="none"})=>({truncated:S({display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",img:{display:"none"}},"label:TruncatedText-styles-truncated")})),Og=W.memo(function(t){const n=x.useRef(null),r={lines:3,expand:!1,...t},[o,a]=x.useState(r.lines||"none"),i=uLe({lineClamp:o}),s=Zn(n);x.useEffect(()=>{r.useMaxHeight&&a(()=>l(n.current))},[s,r.useMaxHeight]);const l=f=>{if(n.current){const h=parseInt(getComputedStyle(n.current)["line-height"],10),m=parseInt(getComputedStyle(n.current)["max-height"],10);if(!Object.is(h,NaN)&&!Object.is(m,NaN))return parseInt((m/h).toFixed(0))-1}return"none"},c=r.tag||"span";let{children:d}=r;if(r.maxCharCount&&typeof d=="string"){let f=d.slice(0,r.maxCharCount);f.length<d.length&&(f+="…"),d=f}return u.jsx(c,{className:ge(i.truncated,r.className),ref:n,children:d})}),dLe=re(()=>{ee();const e=re(n=>S({position:"relative",width:"auto",paddingTop:Z(n.vertical/n.horizontal*100)},"label:ResponsiveImage-styles-ratioContainer"));return{image:S({...E.absolute.fullSizeOfParent(),objectFit:"cover",borderRadius:1},"label:ResponsiveImage-styles-image"),ratioContainer:e}});function fLe(e){const{className:t,ratio:n,...r}=e,o=dLe();return u.jsx("div",{className:ge(o.ratioContainer(n??{vertical:9,horizontal:16}),t),children:u.jsx("img",{...r,className:o.image,loading:"lazy"})})}const UU=re(()=>{const e=ee(),t=S({background:P.colorOut(e.mixPrimaryAndBg(.25))},"label:ListItemMedia-styles-mediaItem"),n=re(r=>S({position:"relative",width:"auto",paddingTop:Z(r.vertical/r.horizontal*100)},"label:ListItemMedia-styles-ratioContainer"));return{mediaItem:t,ratioContainer:n}});function VU(e){const{srcSet:t,className:n,...r}=e,o=UU(),a=ge(o.mediaItem,n),i=x.useMemo(()=>typeof e.srcSet=="object"?Ac(e.srcSet):e.srcSet??"",[e.srcSet]);return e.src?u.jsx(fLe,{...r,className:a,srcSet:i}):u.jsx("div",{className:ge(a,o.ratioContainer(e.ratio??{vertical:9,horizontal:16}))})}function GU(){const e=ee().mainColors.primary,t=e.darken(.05),n=e.lighten(.05);return u.jsx("svg",{width:"480px",height:"240px",viewBox:"0 0 480 240",preserveAspectRatio:"none",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:Gc().defaultImageSVG,"aria-hidden":"true",children:u.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:u.jsxs("g",{fillRule:"nonzero",children:[u.jsx("rect",{fill:P.colorOut(e),x:"0",y:"0",width:"480",height:"240"}),u.jsx("polygon",{fill:P.colorOut(t),points:"0 0 390.857143 0 0 155.142857"}),u.jsx("polygon",{fill:P.colorOut(n),points:"480 85.7142857 480 240 89.1428571 240"})]})})})}function aC(e){var _,U,V,z,Y,te,se,he,pe;const{headingDepth:t=3,descriptionClassName:n,truncateDescription:r=!0,descriptionMaxCharCount:o=200}=e,a=x.useRef(null),i=Zn(a),{layout:s}=x.useContext(YU),l=Qh(e.options),c=UU(),{options:{iconPosition:d}}=l,f=i.width>0?i.width<=600:!1,h=((_=e.featuredImage)==null?void 0:_.display)||!!e.mediaItem,m=e.asTile==null?e.asTile||f:e.asTile,g=d===Ci.META&&!h,p=!!e.checkbox,v=e9(m,h,p,f&&!e.asTile),b=e.checkbox&&u.jsx("div",{className:ge(v.checkboxContainer),children:e.checkbox}),y=!!e.icon||!!e.secondIcon,C=y?e.icon??e.secondIcon:null,D=e.icon&&e.secondIcon?e.secondIcon:null,A=y?u.jsxs("div",{className:ge(v.iconContainer,e.iconWrapperClass),children:[u.jsx("div",{className:v.icon,children:C}),D?u.jsx("div",{className:!m&&((U=e.featuredImage)!=null&&U.display)?v.secondIconInList:v.secondIcon,children:D}):m?null:u.jsx("div",{})]}):null,T=(K,O)=>{if(K&&K!==""&&O&&O!==""){const le=O.split("/").pop();if(K!==le)return k(K)}return k(`Thumbnail for: ${e.name}`)};let B=null;if((V=e.featuredImage)!=null&&V.display||e.mediaItem){const K=((z=e.image)==null?void 0:z.url)??((Y=e.featuredImage)==null?void 0:Y.fallbackImage)??"",O=T((te=e.image)==null?void 0:te.alt,((se=e.image)==null?void 0:se.url)??((he=e.featuredImage)==null?void 0:he.fallbackImage));B=u.jsxs("div",{className:m?v.mobileMediaContainer:v.mediaWrapContainer,children:[e.mediaItem?e.mediaItem:K.length>0?u.jsx(VU,{src:K,srcSet:(pe=e.image)!=null&&pe.urlSrcSet?Ac(e.image.urlSrcSet):"",alt:O}):u.jsx("div",{className:ge(c.mediaItem,c.ratioContainer({vertical:9,horizontal:16})),children:u.jsx(GU,{})}),!m&&A]})}else y&&!m&&!g&&(B=u.jsxs("div",{className:ge(v.iconContainer,e.iconWrapperClass),children:[!!C&&u.jsx("div",{className:v.icon,children:C}),!!D&&u.jsx("div",{className:v.secondIcon,children:D})]}));b&&!m&&(B=u.jsxs("div",{className:v.iconAndCheckbox,children:[b,B]}));const j=e.actions?u.jsx("div",{className:ge(v.actionsContainer,{[tO()]:e.disableButtonsInItems}),children:e.actions}):void 0,R=e.description?u.jsx("div",{className:ge(v.description,n),children:r?u.jsx(Og,{maxCharCount:o,lines:3,children:e.description}):e.description}):null;let N=u.jsx(ph,{className:v.metasContainer,children:e.metas});return g&&(N=u.jsxs("div",{className:ge(v.inlineIconAndMetasContainer,e.metasWrapperClass),children:[u.jsx("div",{className:ge(v.inlineIconContainer,e.iconWrapperClass,g&&e.secondIcon?v.twoIconsInMetas:null),children:A}),N]})),u.jsx(mo,{as:e.as??"li",ref:a,className:ge(e.className),children:u.jsxs("div",{className:ge(v.item,e.actionAlignment==="center"&&v.itemCentered),children:[B,m&&(A||j||p)&&u.jsxs("div",{className:v.tileActions,children:[u.jsxs(Hn,{condition:p,className:v.iconAndCheckbox,children:[e.checkbox&&b,!g&&A]}),(h||!m&&!h||f&&p)&&j]}),u.jsxs("div",{className:v.contentContainer,children:[u.jsxs("div",{className:v.titleContainer,children:[u.jsx(Dn,{custom:!0,className:v.title,depth:t,children:e.url?u.jsx(wr,{to:e.url,className:ge(v.titleLink,e.nameClassName),children:u.jsx(Og,{lines:3,children:e.name})}):u.jsx("span",{className:ge(e.nameClassName),children:e.name})}),(!h&&m&&!p||!f&&m&&p)&&j]}),u.jsx("div",{className:v.metaWrapContainer,children:u.jsxs("div",{className:v.metaDescriptionContainer,children:[[qa.TITLE_METAS,qa.TITLE_METAS_DESCRIPTION].includes(s)&&N,s===qa.TITLE_DESCRIPTION_METAS&&R,s===qa.TITLE_METAS_DESCRIPTION&&R,s===qa.TITLE_DESCRIPTION_METAS&&N]})})]}),!m&&j]})})}const YU=W.createContext({layout:qa.TITLE_DESCRIPTION_METAS});function Mv(e){const t=a9(e.options).options,n=e9();return u.jsx(mo,{as:e.as??"ul",options:t.box,className:ge(e.className,{[n.listInTab]:ce.boxHasOutline(t.itemBox)}),children:u.jsx(ume,{options:t.itemBox,children:u.jsx(YU.Provider,{value:{layout:t.itemLayout},children:e.children})})})}const _v=re((e,t=!1)=>{const n=i9(e,t),r=!t&&n.item.options.box.borderType!==dt.SEPARATOR,o=S({"& > .heading":{"&:not(:first-of-type)":{marginTop:48},"&.heading-3":{marginTop:24,marginBottom:-4,...r&&{marginBottom:16}},"&.firstItem":{marginTop:16},"& li + .heading-3,":{marginTop:24},"& li + .heading-2,":{marginTop:48},...r&&{marginBottom:16}},"& > .heading-2 + .heading-3":{marginTop:16}},"label:CategoryList-classes-listContainer"),a=S({...E.font(n.item.heading.firstLevel.font)},"label:CategoryList-classes-firstLevelHeading"),i=S({...E.font(n.item.heading.secondLevel.font)},"label:CategoryList-classes-secondLevelHeading"),s=S({"&:before":{borderTop:"none"}},"label:CategoryList-classes-listHeadingGroupFirstItem"),l=S({marginBottom:24},"label:CategoryList-classes-listHeadingGroupLastItem"),c=S({...E.box(n.item.options.box),...n.item.options.box.borderType===dt.NONE&&{marginBottom:16}},"label:CategoryList-classes-listItem"),d=S({marginTop:24},"label:CategoryList-classes-listItemActionButton"),f=S({...E.font(n.item.title.font),"&:active, &:hover, &:focus, &.focus-visible":{...E.font(n.item.title.fontState)}},"label:CategoryList-classes-title"),h=S({marginTop:8,marginBottom:24},"label:CategoryList-classes-message"),m=S({height:n.item.options.icon.size,overflow:"hidden",borderRadius:6},"label:CategoryList-classes-iconContainer"),g=S({height:n.item.options.icon.size,maxHeight:n.item.options.icon.size},"label:CategoryList-classes-icon"),p=S({marginLeft:-16,"& > div:first-of-type > .heading-2":{marginTop:16}},"label:CategoryList-classes-gridContainer"),v=S({marginLeft:0},"label:CategoryList-classes-gridContainerNoMargin"),b=S({marginLeft:16,"& > .heading-2":{marginTop:48},"& .heading-3":{marginTop:16}},"label:CategoryList-classes-gridHeadingWrapper"),y=S({marginTop:16,marginBottom:32},"label:CategoryList-classes-gridGroup"),C=(e==null?void 0:e.contentType)===un.TITLE_DESCRIPTION_ICON||(e==null?void 0:e.contentType)===un.TITLE_DESCRIPTION_IMAGE,D=(e==null?void 0:e.contentType)===un.TITLE_DESCRIPTION_ICON,A=(e==null?void 0:e.contentType)===un.TITLE_BACKGROUND,T=n.item.options.alignment==="left",B=La().options.box.borderType===dt.NONE,j=S({"& > div":{...C&&{height:"100%"},alignItems:T&&D?"flex-start":void 0,textAlign:T&&A?"left":"center","& > div, & > div > *":{textAlign:T&&!A?"left":"center"}}},"label:CategoryList-classes-gridItem"),R=S({display:"flex",paddingTop:16,justifyContent:"center",...T&&D&&{paddingLeft:16,justifyContent:"left"},...B&&{paddingLeft:T?0:void 0,paddingBottom:16}},"label:CategoryList-classes-iconContainerInGridItem"),N=S({...C&&!A&&{marginTop:8,marginLeft:-4},...A&&{margin:4}},"label:CategoryList-classes-gridItemMetas");return{listContainer:o,firstLevelHeading:a,secondLevelHeading:i,listHeadingGroupFirstItem:s,listHeadingGroupLastItem:l,listItem:c,listItemActionButton:d,message:h,iconContainer:m,iconContainerInGridItem:R,icon:g,title:f,gridContainer:p,gridContainerNoMargin:v,gridHeadingWrapper:b,gridGroup:y,gridItem:j,gridItemMetas:N}});function hLe(e){const{dateUpdated:t,updateUser:n,labels:r,crumbs:o,status:a,type:i,isForeign:s,counts:l,extra:c,tags:d}=e,f=a===nE.DELETED,h=i&&(n==null?void 0:n.userID)!=null?u.jsx(dn,{source:"<0/> by <1/>",c0:i?k(_D(i)):void 0,c1:u.jsx(ai,{className:Aa().metaLink,userFragment:n})}):i?k(_D(i)):null,m=l&&l.length>0&&l.map((v,b)=>{let{count:y,labelCode:C}=v;if(y<2&&y!==0){const D=/ies|s$/,A=C.match(D);C=C.replace(D,A&&A[0]==="ies"?"y":"")}return u.jsx(Bn,{children:u.jsx(dn,{source:`%s ${C}`,c0:u.jsx(VO,{value:y})})},b)}),g=!!t&&!isNaN(new Date(t).getTime()),p=Ge("featureFlags.customLayout.discussionList.Enabled",!1);return u.jsxs(u.Fragment,{children:[r&&r.map(v=>u.jsx(Ru,{tagPreset:Is().labels.tagPreset,children:k(v)},v)),d==null?void 0:d.map(v=>{const b=p?`/discussions?tagID=${v.tagID}`:`/discussions/tagged/${v.urlcode}`;return u.jsx(Ru,{to:b,tagPreset:Is().userTags.tagPreset,children:k(v.name)},v.tagID)}),h&&u.jsx(Bn,{children:f?u.jsx("span",{className:"isDeleted",children:u.jsx(dn,{source:"Deleted <0/>",c0:i})}):h}),s&&u.jsx(ds,{icon:"meta-external-compact"}),g&&u.jsx(Bn,{children:u.jsx(dn,{source:"Last Updated: <0/>",c0:u.jsx(Uo,{timestamp:t})})}),m,o&&o.length>0&&u.jsx(Bn,{children:u.jsx(VH,{crumbs:o})}),c]})}function Sk(e){const{to:t,callback:n}=e,r=La(e.options),o=r.options,a=Gc(e.options),i=[sr.MOBILE,sr.XS].includes(Ki()),s=x.useMemo(()=>e.imageUrlSrcSet?{srcSet:Ac(e.imageUrlSrcSet)}:{},[e.imageUrlSrcSet]),l=x.useMemo(()=>e.iconUrlSrcSet?{srcSet:Ac(e.iconUrlSrcSet)}:{},[e.iconUrlSrcSet]);if(x.useDebugValue({opts:o}),e.children&&!Array.isArray(e.children))return e.to?u.jsx(wr,{to:e.to,className:ge(a.root,e.className),tabIndex:e.tabIndex,draggable:"false",onDragStart:y=>y.preventDefault(),children:e.children}):u.jsx(u.Fragment,{children:e.children});const c=[un.TITLE_BACKGROUND,un.TITLE_BACKGROUND_DESCRIPTION].includes(o.contentType),d=e.imageUrl??o.defaultImageUrl,f=e.iconUrl??o.defaultIconUrl,h=e.counts&&o.display.counts||e.metaComponent,m=[un.TITLE_BACKGROUND_DESCRIPTION].includes(o.contentType)&&e.description,g=[un.TITLE_CHAT_BUBBLE].includes(o.contentType),p=e.metaComponent?e.metaComponent:(h||m)&&!g&&u.jsx(ph,{className:a.metas,children:m?u.jsx(Bn,{className:a.longMetaItem,children:u.jsxs("span",{className:ge(pO().textPrimary,a.metaDescription),children:[e.description,e.description&&" ➔"]})}):u.jsx(hLe,{counts:e.counts})}),v=e.iconComponent?e.iconComponent:un.TITLE_DESCRIPTION_ICON===o.contentType&&f&&u.jsx("div",{className:a.iconContainer,children:u.jsx("div",{className:a.iconWrap,children:u.jsx("img",{className:a.icon,height:i?r.icon.sizeMobile:r.icon.size,width:"auto",role:"presentation",src:f,alt:e.name,loading:"lazy",...l})})}),b=u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:a.backgroundContainer,children:[[un.TITLE_BACKGROUND_DESCRIPTION,un.TITLE_DESCRIPTION_IMAGE,un.TITLE_BACKGROUND].includes(o.contentType)&&u.jsx("div",{className:a.imageContainerWrapper,children:u.jsx("div",{className:a.imageContainer,children:d?u.jsx("img",{height:r.icon.size,className:a.image,src:d,alt:e.name,loading:"lazy",...s}):u.jsx(GU,{})})}),[un.TITLE_BACKGROUND,un.TITLE_BACKGROUND_DESCRIPTION].includes(o.contentType)&&u.jsx("div",{className:a.backgroundScrim}),v,c?u.jsx(pLe,{...e}):u.jsx(mLe,{...e,extraChildren:p})]}),c&&p,[un.TITLE_CHAT_BUBBLE].includes(o.contentType)&&u.jsxs("span",{className:a.callToAction,children:[u.jsx("span",{children:k(o.callToActionText)}),u.jsx(xfe,{})]})]});return u.jsxs(u.Fragment,{children:[t&&!n&&u.jsx(wr,{to:t,className:ge(a.root,e.className),tabIndex:e.tabIndex,draggable:"false",onDragStart:y=>y.preventDefault(),children:b}),!t&&!!n&&u.jsx(ut,{buttonType:ye.CUSTOM,className:ge(a.root,e.className),onClick:()=>n(),children:b}),!t&&!n&&u.jsx("div",{className:ge(a.root,e.className),children:b})]})}function mLe(e){const t=La(e.options).options,n=Gc(e.options);return u.jsxs("div",{className:n.content,children:[u.jsx(Dn,{depth:3,className:ge(n.name,e.nameClassName),children:e.name}),[un.TITLE_DESCRIPTION,un.TITLE_DESCRIPTION_IMAGE,un.TITLE_DESCRIPTION_ICON,un.TITLE_CHAT_BUBBLE].includes(t.contentType)&&t.display.description&&e.description&&u.jsx(Og,{maxCharCount:160,tag:"div",className:ge(n.description,e.descriptionClassName),children:e.description}),u.jsx("div",{style:{flex:1}}),e.extraChildren]})}function pLe(e){var o,a;const t=La(e.options).options,n=Gc(e.options),r=(o=t.viewMore)==null?void 0:o.labelCode;return u.jsx(u.Fragment,{children:u.jsxs("div",{className:n.absoluteContent,children:[t.display.name&&u.jsx(Dn,{depth:3,className:ge(n.absoluteName,e.nameClassName),children:e.name}),t.display.cta&&u.jsx("div",{children:u.jsx("span",{className:mh((a=t.viewMore)==null?void 0:a.buttonType),children:k(r)})})]})})}function tM(e){var g,p,v,b,y,C,D,A;const{category:t,categoryOptions:n}=e,r=T=>{switch(T){case"discussion":return"search-discussion";case"comment":return"meta-comment";case"post":return"search-post-count";case"follower":return"me-notifications-small"}},o=(g=n==null?void 0:n.metas)==null?void 0:g.display,a=(p=n==null?void 0:n.metas)==null?void 0:p.asIcons,i=(v=n==null?void 0:n.metas)==null?void 0:v.includeSubcategoriesCount,s=t.counts&&t.counts.map((T,B)=>{const j=T.labelCode?T.labelCode.slice(0,-1):null,R=j&&(o==null?void 0:o[`${j}Count`]),N=i!=null&&i.includes(T.labelCode)?T==null?void 0:T.countAll:T==null?void 0:T.count;return!R||N===0?u.jsx(W.Fragment,{},B):a?u.jsx(ds,{icon:r(j),"aria-label":k(T.labelCode),children:N},B):u.jsx(Bn,{children:u.jsx(dn,{source:`<0/> ${T.labelCode}`,c0:N})},B)}),l=t.lastPost&&((o==null?void 0:o.lastPostName)||(o==null?void 0:o.lastPostAuthor))&&u.jsxs(Bn,{children:[`${k("Most recent:")} `,(o==null?void 0:o.lastPostName)&&((b=t==null?void 0:t.lastPost)==null?void 0:b.url)&&u.jsx(Ry,{to:(y=t==null?void 0:t.lastPost)==null?void 0:y.url,children:t.lastPost.name}),(o==null?void 0:o.lastPostAuthor)&&t.lastPost.insertUser&&u.jsxs(u.Fragment,{children:[` ${k("by")} `,u.jsx(ai,{userFragment:{userID:t.lastPost.insertUser.userID,name:t.lastPost.insertUser.name},className:Aa().metaLink})]})]}),c=(o==null?void 0:o.lastPostDate)&&((C=t.lastPost)==null?void 0:C.dateInserted)&&(a?u.jsx(ds,{icon:"meta-time","aria-label":k("Last comment"),children:u.jsx(Uo,{timestamp:(D=t.lastPost)==null?void 0:D.dateInserted})}):u.jsx(Bn,{children:u.jsx(Uo,{timestamp:(A=t.lastPost)==null?void 0:A.dateInserted})})),d=t.children,f=d?d.filter(T=>T.displayAs!=="heading"):[],h=f.map((T,B)=>u.jsxs(W.Fragment,{children:[u.jsx(Ry,{to:T.to,children:T.name}),B<f.length-1&&", "]},B)),m=o!=null&&o.subcategories&&f.length?a?u.jsx(ds,{icon:"search-subcategories","aria-label":k("Subcategories"),children:h}):u.jsxs(Bn,{children:[`${k("Subcategories")}:`," ",h]}):u.jsx(u.Fragment,{});return u.jsxs("div",{className:e.className,children:[s,l,c,m]})}function gLe(e){return e.type==="object"&&!!e.properties&&Object.values(e.properties).every(t=>KU(t))}function KU(e){return e.type==="object"&&("email"in e.properties&&e.properties.email.type==="boolean"||"popup"in e.properties&&e.properties.popup.type==="boolean")}function vLe(e){return e&&(e.hasOwnProperty("email")||e.hasOwnProperty("popup"))}function bLe(e,t){function n(r={},o,a){let i={...r};return o.properties&&Object.entries(o.properties).forEach(([s,l])=>{const c=l,d=a[s];typeof d!="string"&&(i={...i,[s]:KU(c)?{..."email"in c.properties&&{email:d==null?void 0:d.email},..."popup"in c.properties&&{popup:d==null?void 0:d.popup}}:n({},c,a)})}),i}return n({},e,t)}function Gf(e){return`description-${e.id}`}function qU(e){const n=new DOMParser().parseFromString(e,"text/html"),r=Array.from(n.querySelectorAll("a")),o=r.map(a=>({textContent:`${a.textContent}`,href:`${a.href}`}));return r.forEach((a,i)=>{a.textContent=`%${i+1}$s`}),yt.sprintf(k(n.documentElement.innerText),...o.map(({href:a,textContent:i})=>`<a href="${a}">${k(i)}</a>`))}const eu=re(()=>{const e=ee(),t=Ht().mediaQueries(),n=S({...t.aboveOneColumn({maxWidth:"50%"})},"label:PreferencesTable-styles-selectContainer"),r=S({...E.margin({vertical:e.spacer.componentInner})},"label:PreferencesTable-styles-subgroupWrapper"),o=S({...E.font({weight:e.fonts.weights.semiBold})},"label:PreferencesTable-styles-subgroupHeading"),a=S({...E.margin({top:e.gutter.quarter})},"label:PreferencesTable-styles-description"),i=S({...E.margin({top:e.gutter.half})},"label:PreferencesTable-styles-tableWrapper"),s=S({"& + &":{...E.padding({left:e.gutter.quarter})}},"label:PreferencesTable-styles-tableHeader"),l=S({...E.padding({vertical:0})},"label:PreferencesTable-styles-checkbox"),c=S({...E.font({weight:e.fonts.weights.semiBold})},"label:PreferencesTable-styles-tableRow"),d=S({verticalAlign:"middle",...E.padding({top:e.gutter.quarter}),"& + &":{...E.padding({left:e.gutter.quarter})}},"label:PreferencesTable-styles-tableCell"),f=S({transform:`translateX(-${e.gutter.quarter}px)`},"label:PreferencesTable-styles-icon");return{selectContainer:n,description:a,subgroupWrapper:r,subgroupHeading:o,tableWrapper:i,tableHeader:s,checkbox:l,tableRow:c,tableCell:d,icon:f,tableDescriptionWrapper:m=>S({...E.margin({left:e.gutter.quarter}),display:"flex",alignItems:"center",gap:4,fontWeight:m??"inherit","& svg":{maxHeight:21,width:"auto",color:P.colorOut(e.messageColors.error.fg)}},"label:PreferencesTable-styles-tableDescriptionWrapper")}});function yLe(e){let{rootInstance:t,instance:n,schema:r,rootSchema:o,path:a,FormTabs:i,onChange:s}=e;const l=r["x-control"],c=l.property,d=r.oneOf.map(g=>g.properties[c].const),f=n[c]??d[0],h=g=>s({...n,[c]:g}),m=r.oneOf.map(g=>{const v=g.properties[c].const;return{tabID:v,contents:u.jsx(Ek,{...e,inheritSchema:r,schema:g}),label:l.choices.staticOptions[v]}});return i?u.jsx(i,{tabs:m,selectedTabID:f,onSelectTab:h,path:a,pathString:`/${a.join("/")}`,errors:[],rootInstance:t,instance:n,rootSchema:o,schema:r}):null}function Yp(e,t){const n=typeof e;if(n!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;const r=e.length;if(r!==t.length)return!1;for(let o=0;o<r;o++)if(!Yp(e[o],t[o]))return!1;return!0}if(n==="object"){if(!e||!t)return e===t;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const i of r)if(!Yp(e[i],t[i]))return!1;return!0}return e===t}function pi(e){return encodeURI(xLe(e))}function xLe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}const CLe={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},wLe={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},SLe={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let DLe=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function $u(e,t=Object.create(null),n=DLe,r=""){if(e&&typeof e=="object"&&!Array.isArray(e)){const a=e.$id||e.id;if(a){const i=new URL(a,n.href);i.hash.length>1?t[i.href]=e:(i.hash="",r===""?n=i:$u(e,t,n))}}else if(e!==!0&&e!==!1)return t;const o=n.href+(r?"#"+r:"");if(t[o]!==void 0)throw new Error(`Duplicate schema URI "${o}".`);if(t[o]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:o}),e.$ref&&e.__absolute_ref__===void 0){const a=new URL(e.$ref,n.href);a.hash=a.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:a.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){const a=new URL(e.$recursiveRef,n.href);a.hash=a.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:a.href})}if(e.$anchor){const a=new URL("#"+e.$anchor,n.href);t[a.href]=e}for(let a in e){if(SLe[a])continue;const i=`${r}/${pi(a)}`,s=e[a];if(Array.isArray(s)){if(CLe[a]){const l=s.length;for(let c=0;c<l;c++)$u(s[c],t,n,`${i}/${c}`)}}else if(wLe[a])for(let l in s)$u(s[l],t,n,`${i}/${pi(l)}`);else $u(s,t,n,i)}return t}const ELe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ILe=[0,31,28,31,30,31,30,31,31,30,31,30,31],TLe=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ALe=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,OLe=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,BLe=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,kLe=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,PLe=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,RLe=/^(?:\/(?:[^~/]|~0|~1)*)*$/,jLe=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,NLe=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,LLe=/^\d\d\d\d-[0-1]\d-[0-3]\d$/,$Le=/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,MLe=/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_Le=/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,FLe=e=>{if(e[0]==='"')return!1;const[t,n,...r]=e.split("@");return!t||!n||r.length!==0||t.length>64||n.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(n)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(t)?!1:n.split(".").every(o=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(o))},WLe=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,zLe=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,HLe=e=>e.length>1&&e.length<80&&(/^P\d+([.,]\d+)?W$/.test(e)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(e)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(e));function Jo(e){return e.test.bind(e)}const ULe={date:XU,time:QU.bind(void 0,!1),"date-time":YLe,duration:HLe,uri:XLe,"uri-reference":Jo(OLe),"uri-template":Jo(BLe),url:Jo(kLe),email:FLe,hostname:Jo(ALe),ipv4:Jo(WLe),ipv6:Jo(zLe),regex:ZLe,uuid:Jo(PLe),"json-pointer":Jo(RLe),"json-pointer-uri-fragment":Jo(jLe),"relative-json-pointer":Jo(NLe)},nM={...ULe,date:Jo(LLe),time:Jo($Le),"date-time":Jo(MLe),"uri-reference":Jo(_Le)};function VLe(e){return e%4===0&&(e%100!==0||e%400===0)}function XU(e){const t=e.match(ELe);if(!t)return!1;const n=+t[1],r=+t[2],o=+t[3];return r>=1&&r<=12&&o>=1&&o<=(r==2&&VLe(n)?29:ILe[r])}function QU(e,t){const n=t.match(TLe);if(!n)return!1;const r=+n[1],o=+n[2],a=+n[3],i=!!n[5];return(r<=23&&o<=59&&a<=59||r==23&&o==59&&a==60)&&(!e||i)}const GLe=/t|\s/i;function YLe(e){const t=e.split(GLe);return t.length==2&&XU(t[0])&&QU(!0,t[1])}const KLe=/\/|:/,qLe=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function XLe(e){return KLe.test(e)&&qLe.test(e)}const QLe=/[^\\]\\Z/;function ZLe(e){if(QLe.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function JLe(e){let t=0,n=e.length,r=0,o;for(;r<n;)t++,o=e.charCodeAt(r++),o>=55296&&o<=56319&&r<n&&(o=e.charCodeAt(r),(o&64512)==56320&&r++);return t}function dr(e,t,n="2019-09",r=$u(t),o=!0,a=null,i="#",s="#",l=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:i,keyword:"false",keywordLocation:i,error:"False boolean schema."}]};const c=typeof e;let d;switch(c){case"boolean":case"number":case"string":d=c;break;case"object":e===null?d="null":Array.isArray(e)?d="array":d="object";break;default:throw new Error(`Instances of "${c}" type are not supported.`)}const{$ref:f,$recursiveRef:h,$recursiveAnchor:m,type:g,const:p,enum:v,required:b,not:y,anyOf:C,allOf:D,oneOf:A,if:T,then:B,else:j,format:R,properties:N,patternProperties:_,additionalProperties:U,unevaluatedProperties:V,minProperties:z,maxProperties:Y,propertyNames:te,dependentRequired:se,dependentSchemas:he,dependencies:pe,prefixItems:K,items:O,additionalItems:le,unevaluatedItems:be,contains:H,minContains:ie,maxContains:oe,minItems:ve,maxItems:$e,uniqueItems:Ne,minimum:Ze,maximum:ze,exclusiveMinimum:Xe,exclusiveMaximum:Me,multipleOf:Je,minLength:pt,maxLength:ot,pattern:Et,__absolute_ref__:Vt,__absolute_recursive_ref__:nt}=t,Ee=[];if(m===!0&&a===null&&(a=t),h==="#"){const ne=a===null?r[nt]:a,we=`${s}/$recursiveRef`,Ae=dr(e,a===null?t:a,n,r,o,ne,i,we,l);Ae.valid||Ee.push({instanceLocation:i,keyword:"$recursiveRef",keywordLocation:we,error:"A subschema had errors."},...Ae.errors)}if(f!==void 0){const we=r[Vt||f];if(we===void 0){let De=`Unresolved $ref "${f}".`;throw Vt&&Vt!==f&&(De+=`  Absolute URI "${Vt}".`),De+=`
Known schemas:
- ${Object.keys(r).join(`
- `)}`,new Error(De)}const Ae=`${s}/$ref`,Se=dr(e,we,n,r,o,a,i,Ae,l);if(Se.valid||Ee.push({instanceLocation:i,keyword:"$ref",keywordLocation:Ae,error:"A subschema had errors."},...Se.errors),n==="4"||n==="7")return{valid:Ee.length===0,errors:Ee}}if(Array.isArray(g)){let ne=g.length,we=!1;for(let Ae=0;Ae<ne;Ae++)if(d===g[Ae]||g[Ae]==="integer"&&d==="number"&&e%1===0&&e===e){we=!0;break}we||Ee.push({instanceLocation:i,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${g.join('", "')}".`})}else g==="integer"?(d!=="number"||e%1||e!==e)&&Ee.push({instanceLocation:i,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${g}".`}):g!==void 0&&d!==g&&Ee.push({instanceLocation:i,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${g}".`});if(p!==void 0&&(d==="object"||d==="array"?Yp(e,p)||Ee.push({instanceLocation:i,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(p)}.`}):e!==p&&Ee.push({instanceLocation:i,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(p)}.`})),v!==void 0&&(d==="object"||d==="array"?v.some(ne=>Yp(e,ne))||Ee.push({instanceLocation:i,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(v)}.`}):v.some(ne=>e===ne)||Ee.push({instanceLocation:i,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(v)}.`})),y!==void 0){const ne=`${s}/not`;dr(e,y,n,r,o,a,i,ne).valid&&Ee.push({instanceLocation:i,keyword:"not",keywordLocation:ne,error:'Instance matched "not" schema.'})}let kt=[];if(C!==void 0){const ne=`${s}/anyOf`,we=Ee.length;let Ae=!1;for(let Se=0;Se<C.length;Se++){const De=C[Se],Ye=Object.create(l),Qe=dr(e,De,n,r,o,m===!0?a:null,i,`${ne}/${Se}`,Ye);Ee.push(...Qe.errors),Ae=Ae||Qe.valid,Qe.valid&&kt.push(Ye)}Ae?Ee.length=we:Ee.splice(we,0,{instanceLocation:i,keyword:"anyOf",keywordLocation:ne,error:"Instance does not match any subschemas."})}if(D!==void 0){const ne=`${s}/allOf`,we=Ee.length;let Ae=!0;for(let Se=0;Se<D.length;Se++){const De=D[Se],Ye=Object.create(l),Qe=dr(e,De,n,r,o,m===!0?a:null,i,`${ne}/${Se}`,Ye);Ee.push(...Qe.errors),Ae=Ae&&Qe.valid,Qe.valid&&kt.push(Ye)}Ae?Ee.length=we:Ee.splice(we,0,{instanceLocation:i,keyword:"allOf",keywordLocation:ne,error:"Instance does not match every subschema."})}if(A!==void 0){const ne=`${s}/oneOf`,we=Ee.length,Ae=A.filter((Se,De)=>{const Ye=Object.create(l),Qe=dr(e,Se,n,r,o,m===!0?a:null,i,`${ne}/${De}`,Ye);return Ee.push(...Qe.errors),Qe.valid&&kt.push(Ye),Qe.valid}).length;Ae===1?Ee.length=we:Ee.splice(we,0,{instanceLocation:i,keyword:"oneOf",keywordLocation:ne,error:`Instance does not match exactly one subschema (${Ae} matches).`})}if((d==="object"||d==="array")&&Object.assign(l,...kt),T!==void 0){const ne=`${s}/if`;if(dr(e,T,n,r,o,a,i,ne,l).valid){if(B!==void 0){const Ae=dr(e,B,n,r,o,a,i,`${s}/then`,l);Ae.valid||Ee.push({instanceLocation:i,keyword:"if",keywordLocation:ne,error:'Instance does not match "then" schema.'},...Ae.errors)}}else if(j!==void 0){const Ae=dr(e,j,n,r,o,a,i,`${s}/else`,l);Ae.valid||Ee.push({instanceLocation:i,keyword:"if",keywordLocation:ne,error:'Instance does not match "else" schema.'},...Ae.errors)}}if(d==="object"){if(b!==void 0)for(const Se of b)Se in e||Ee.push({instanceLocation:i,keyword:"required",keywordLocation:`${s}/required`,error:`Instance does not have required property "${Se}".`});const ne=Object.keys(e);if(z!==void 0&&ne.length<z&&Ee.push({instanceLocation:i,keyword:"minProperties",keywordLocation:`${s}/minProperties`,error:`Instance does not have at least ${z} properties.`}),Y!==void 0&&ne.length>Y&&Ee.push({instanceLocation:i,keyword:"maxProperties",keywordLocation:`${s}/maxProperties`,error:`Instance does not have at least ${Y} properties.`}),te!==void 0){const Se=`${s}/propertyNames`;for(const De in e){const Ye=`${i}/${pi(De)}`,Qe=dr(De,te,n,r,o,a,Ye,Se);Qe.valid||Ee.push({instanceLocation:i,keyword:"propertyNames",keywordLocation:Se,error:`Property name "${De}" does not match schema.`},...Qe.errors)}}if(se!==void 0){const Se=`${s}/dependantRequired`;for(const De in se)if(De in e){const Ye=se[De];for(const Qe of Ye)Qe in e||Ee.push({instanceLocation:i,keyword:"dependentRequired",keywordLocation:Se,error:`Instance has "${De}" but does not have "${Qe}".`})}}if(he!==void 0)for(const Se in he){const De=`${s}/dependentSchemas`;if(Se in e){const Ye=dr(e,he[Se],n,r,o,a,i,`${De}/${pi(Se)}`,l);Ye.valid||Ee.push({instanceLocation:i,keyword:"dependentSchemas",keywordLocation:De,error:`Instance has "${Se}" but does not match dependant schema.`},...Ye.errors)}}if(pe!==void 0){const Se=`${s}/dependencies`;for(const De in pe)if(De in e){const Ye=pe[De];if(Array.isArray(Ye))for(const Qe of Ye)Qe in e||Ee.push({instanceLocation:i,keyword:"dependencies",keywordLocation:Se,error:`Instance has "${De}" but does not have "${Qe}".`});else{const Qe=dr(e,Ye,n,r,o,a,i,`${Se}/${pi(De)}`);Qe.valid||Ee.push({instanceLocation:i,keyword:"dependencies",keywordLocation:Se,error:`Instance has "${De}" but does not match dependant schema.`},...Qe.errors)}}}const we=Object.create(null);let Ae=!1;if(N!==void 0){const Se=`${s}/properties`;for(const De in N){if(!(De in e))continue;const Ye=`${i}/${pi(De)}`,Qe=dr(e[De],N[De],n,r,o,a,Ye,`${Se}/${pi(De)}`);if(Qe.valid)l[De]=we[De]=!0;else if(Ae=o,Ee.push({instanceLocation:i,keyword:"properties",keywordLocation:Se,error:`Property "${De}" does not match schema.`},...Qe.errors),Ae)break}}if(!Ae&&_!==void 0){const Se=`${s}/patternProperties`;for(const De in _){const Ye=new RegExp(De,"u"),Qe=_[De];for(const xe in e){if(!Ye.test(xe))continue;const vt=`${i}/${pi(xe)}`,Mt=dr(e[xe],Qe,n,r,o,a,vt,`${Se}/${pi(De)}`);Mt.valid?l[xe]=we[xe]=!0:(Ae=o,Ee.push({instanceLocation:i,keyword:"patternProperties",keywordLocation:Se,error:`Property "${xe}" matches pattern "${De}" but does not match associated schema.`},...Mt.errors))}}}if(!Ae&&U!==void 0){const Se=`${s}/additionalProperties`;for(const De in e){if(we[De])continue;const Ye=`${i}/${pi(De)}`,Qe=dr(e[De],U,n,r,o,a,Ye,Se);Qe.valid?l[De]=!0:(Ae=o,Ee.push({instanceLocation:i,keyword:"additionalProperties",keywordLocation:Se,error:`Property "${De}" does not match additional properties schema.`},...Qe.errors))}}else if(!Ae&&V!==void 0){const Se=`${s}/unevaluatedProperties`;for(const De in e)if(!l[De]){const Ye=`${i}/${pi(De)}`,Qe=dr(e[De],V,n,r,o,a,Ye,Se);Qe.valid?l[De]=!0:Ee.push({instanceLocation:i,keyword:"unevaluatedProperties",keywordLocation:Se,error:`Property "${De}" does not match unevaluated properties schema.`},...Qe.errors)}}}else if(d==="array"){$e!==void 0&&e.length>$e&&Ee.push({instanceLocation:i,keyword:"maxItems",keywordLocation:`${s}/maxItems`,error:`Array has too many items (${e.length} > ${$e}).`}),ve!==void 0&&e.length<ve&&Ee.push({instanceLocation:i,keyword:"minItems",keywordLocation:`${s}/minItems`,error:`Array has too few items (${e.length} < ${ve}).`});const ne=e.length;let we=0,Ae=!1;if(K!==void 0){const Se=`${s}/prefixItems`,De=Math.min(K.length,ne);for(;we<De;we++){const Ye=dr(e[we],K[we],n,r,o,a,`${i}/${we}`,`${Se}/${we}`);if(l[we]=!0,!Ye.valid&&(Ae=o,Ee.push({instanceLocation:i,keyword:"prefixItems",keywordLocation:Se,error:"Items did not match schema."},...Ye.errors),Ae))break}}if(O!==void 0){const Se=`${s}/items`;if(Array.isArray(O)){const De=Math.min(O.length,ne);for(;we<De;we++){const Ye=dr(e[we],O[we],n,r,o,a,`${i}/${we}`,`${Se}/${we}`);if(l[we]=!0,!Ye.valid&&(Ae=o,Ee.push({instanceLocation:i,keyword:"items",keywordLocation:Se,error:"Items did not match schema."},...Ye.errors),Ae))break}}else for(;we<ne;we++){const De=dr(e[we],O,n,r,o,a,`${i}/${we}`,Se);if(l[we]=!0,!De.valid&&(Ae=o,Ee.push({instanceLocation:i,keyword:"items",keywordLocation:Se,error:"Items did not match schema."},...De.errors),Ae))break}if(!Ae&&le!==void 0){const De=`${s}/additionalItems`;for(;we<ne;we++){const Ye=dr(e[we],le,n,r,o,a,`${i}/${we}`,De);l[we]=!0,Ye.valid||(Ae=o,Ee.push({instanceLocation:i,keyword:"additionalItems",keywordLocation:De,error:"Items did not match additional items schema."},...Ye.errors))}}}if(H!==void 0)if(ne===0&&ie===void 0)Ee.push({instanceLocation:i,keyword:"contains",keywordLocation:`${s}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(ie!==void 0&&ne<ie)Ee.push({instanceLocation:i,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array has less items (${ne}) than minContains (${ie}).`});else{const Se=`${s}/contains`,De=Ee.length;let Ye=0;for(let Qe=0;Qe<ne;Qe++){const xe=dr(e[Qe],H,n,r,o,a,`${i}/${Qe}`,Se);xe.valid?(l[Qe]=!0,Ye++):Ee.push(...xe.errors)}Ye>=(ie||0)&&(Ee.length=De),ie===void 0&&oe===void 0&&Ye===0?Ee.splice(De,0,{instanceLocation:i,keyword:"contains",keywordLocation:Se,error:"Array does not contain item matching schema."}):ie!==void 0&&Ye<ie?Ee.push({instanceLocation:i,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array must contain at least ${ie} items matching schema. Only ${Ye} items were found.`}):oe!==void 0&&Ye>oe&&Ee.push({instanceLocation:i,keyword:"maxContains",keywordLocation:`${s}/maxContains`,error:`Array may contain at most ${oe} items matching schema. ${Ye} items were found.`})}if(!Ae&&be!==void 0){const Se=`${s}/unevaluatedItems`;for(we;we<ne;we++){if(l[we])continue;const De=dr(e[we],be,n,r,o,a,`${i}/${we}`,Se);l[we]=!0,De.valid||Ee.push({instanceLocation:i,keyword:"unevaluatedItems",keywordLocation:Se,error:"Items did not match unevaluated items schema."},...De.errors)}}if(Ne)for(let Se=0;Se<ne;Se++){const De=e[Se],Ye=typeof De=="object"&&De!==null;for(let Qe=0;Qe<ne;Qe++){if(Se===Qe)continue;const xe=e[Qe];(De===xe||Ye&&(typeof xe=="object"&&xe!==null)&&Yp(De,xe))&&(Ee.push({instanceLocation:i,keyword:"uniqueItems",keywordLocation:`${s}/uniqueItems`,error:`Duplicate items at indexes ${Se} and ${Qe}.`}),Se=Number.MAX_SAFE_INTEGER,Qe=Number.MAX_SAFE_INTEGER)}}}else if(d==="number"){if(n==="4"?(Ze!==void 0&&(Xe===!0&&e<=Ze||e<Ze)&&Ee.push({instanceLocation:i,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${Xe?"or equal to ":""} ${Ze}.`}),ze!==void 0&&(Me===!0&&e>=ze||e>ze)&&Ee.push({instanceLocation:i,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${Me?"or equal to ":""} ${ze}.`})):(Ze!==void 0&&e<Ze&&Ee.push({instanceLocation:i,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${Ze}.`}),ze!==void 0&&e>ze&&Ee.push({instanceLocation:i,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${ze}.`}),Xe!==void 0&&e<=Xe&&Ee.push({instanceLocation:i,keyword:"exclusiveMinimum",keywordLocation:`${s}/exclusiveMinimum`,error:`${e} is less than ${Xe}.`}),Me!==void 0&&e>=Me&&Ee.push({instanceLocation:i,keyword:"exclusiveMaximum",keywordLocation:`${s}/exclusiveMaximum`,error:`${e} is greater than or equal to ${Me}.`})),Je!==void 0){const ne=e%Je;Math.abs(0-ne)>=11920929e-14&&Math.abs(Je-ne)>=11920929e-14&&Ee.push({instanceLocation:i,keyword:"multipleOf",keywordLocation:`${s}/multipleOf`,error:`${e} is not a multiple of ${Je}.`})}}else if(d==="string"){const ne=pt===void 0&&ot===void 0?0:JLe(e);pt!==void 0&&ne<pt&&Ee.push({instanceLocation:i,keyword:"minLength",keywordLocation:`${s}/minLength`,error:`String is too short (${ne} < ${pt}).`}),ot!==void 0&&ne>ot&&Ee.push({instanceLocation:i,keyword:"maxLength",keywordLocation:`${s}/maxLength`,error:`String is too long (${ne} > ${ot}).`}),Et!==void 0&&!new RegExp(Et,"u").test(e)&&Ee.push({instanceLocation:i,keyword:"pattern",keywordLocation:`${s}/pattern`,error:"String does not match pattern."}),R!==void 0&&nM[R]&&!nM[R](e)&&Ee.push({instanceLocation:i,keyword:"format",keywordLocation:`${s}/format`,error:`String does not match format "${R}".`})}return{valid:Ee.length===0,errors:Ee}}class ZU{constructor(t,n="2019-09",r=!0){q(this,"schema");q(this,"draft");q(this,"shortCircuit");q(this,"lookup");this.schema=t,this.draft=n,this.shortCircuit=r,this.lookup=$u(t)}validate(t){return dr(t,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(t,n){n&&(t={...t,$id:n}),$u(t,this.lookup)}}function e$e(e,t){const n=ul(e);return new ZU(n,"2020-12",!1).validate(t)}function JU(e,t){const n=e.flatMap(r=>{try{let o=oa(t,r.field??"",r.default??null);if(r.type==="object"){const i=r.properties??{};o=Object.keys(i).reduce((s,l)=>{var c,d;if(!(o!=null&&o[l])){if(((c=i[l])==null?void 0:c.type)==="null")return{...s,[l]:null};if(((d=i[l])==null?void 0:d.const)===!1)return{...s,[l]:!1}}return o},o)}if(!e$e(r,o).valid)return[r]}catch(o){return mn(o),[r]}return[]});return{valid:!n.length,conditions:n}}function Dk(e,t=[]){return Object.entries(e).flatMap(([n,r])=>typeof r=="string"?(r.match(/{[^}]+}/g)||[]).map(o=>{const a=o.substr(1,o.length-2).split(".");return{path:[...t,n],ref:a}}):typeof r=="object"&&r!==null&&"$$typeof"in r?Dk(r,[...t,n]):[])}function t$e(e){var n;const t=[];for(const r of Object.values(e).flat()){const o=["#",(n=r.path)==null?void 0:n.replace(".","/"),r.field].filter(Do).join("/"),a={keyword:r.code??"unknown",instanceLocation:o,keywordLocation:"fieldLevelError",error:r.message};switch(a.keyword){case"missingField":a.error="Field is required.";break;case"ValidateOneOrMoreArrayItemRequired":a.error="You must select at least one item.";break}t.push(a)}return t}function rM(e,t){return(e==null?void 0:e.filter(r=>t?r.instanceLocation===t:!0).map(r=>{if(r.instanceLocation==="#"){const o=r.error.match(/(["'])(?:(?=(\\?))\2.)*?\1/);if(o&&o.length>0){const a=o[0].replace(/"/g,"");return{code:r.keyword??"unknown",message:r.error,field:a}}}return{code:r.keyword??"unknown",message:r.error,field:r.instanceLocation}}))??[]}function n$e(e){return Object.fromEntries(e.filter(t=>!!t.instanceLocation&&!!t.error).map(t=>[t.instanceLocation,t.error]).map(([t,n])=>[t.slice(1,t.length).replace(/\//g,"."),n]))}function eV(e,t){return Object.keys(e).reduce((n,r)=>{var a,i,s,l,c;const o=e[r];return typeof o<"u"?o!==null&&typeof o=="object"&&!Array.isArray(o)?{...n,[r]:eV(o,t)}:typeof o=="string"&&((i=(a=t==null?void 0:t.properties)==null?void 0:a[r])==null?void 0:i.type)==="number"?(o==null?void 0:o.length)===0?{...n}:{...n,[r]:parseInt(o)}:typeof o=="string"&&((l=(s=t==null?void 0:t.properties)==null?void 0:s[r])==null?void 0:l.type)==="string"&&((c=t==null?void 0:t.required)!=null&&c.includes(r))&&(o==null?void 0:o.length)===0?{...n}:{...n,[r]:o}:n},{})}function r$e(e,t,n,r){let o=r??{};return e&&e.type==="object"&&e!==null&&Object.entries(e.properties).map(([a,i])=>{if(i.type==="object")r$e(i,t,n?`${n}.${a}`:a,o);else if(i[t]!==void 0)if(n){let s=[...n.split("."),a],l={},c=s.slice(0,-1).reduce(function(d,f){return d[f]={}},l);c[a]=i[t],o=Xt(o,l)}else o[a]=i[t]}),o}function o$e(e){const{FormControl:t,...n}=e,{control:r,rootInstance:o,path:a}=n,{conditions:i}=r,s=x.useMemo(()=>Dk(r),[r]),l=x.useMemo(()=>s.map(({ref:h})=>{try{const m=oa(o,h);return m===void 0?"":m}catch{return""}}),[o,s]),c=x.useMemo(()=>fa(r,h=>{s.forEach(({path:m,ref:g},p)=>{const v=oa(h,m),b=l[p],y=v.replace(`{${g.join(".")}}`,b);zT(h,m,y)})}),[zr(l),s]),f=JU(i??[],o).conditions.some(h=>h.disable)||e.disabled;return t?u.jsx(t,{...n,disabled:f,control:c,size:e.size,autocompleteClassName:e.autocompleteClassName}):u.jsx(u.Fragment,{})}function a$e(e){const{Form:t,children:n,...r}=e,{form:o,rootInstance:a,path:i}=r,s=x.useMemo(()=>Dk(o),[o]),l=x.useMemo(()=>s.map(({ref:d})=>{try{const f=oa(a,d);return f===void 0?"":f}catch{return""}}),[a,s]),c=x.useMemo(()=>fa(o,d=>{s.forEach(({path:f,ref:h},m)=>{const g=oa(d,f),p=l[m],v=g.replace(`{${h.join(".")}}`,p);zT(d,f,v)})}),[zr(l),s]);return t?u.jsx(t,{...r,form:c,children:n}):null}const j0=e=>u.jsx(u.Fragment,{children:e.children});function Ek(e){var B,j,R;let{path:t,rootSchema:n,instance:r,rootInstance:o,onChange:a,onBlur:i,validation:s,FormControl:l,Form:c=j0,FormSection:d=j0,FormControlGroup:f=j0,FormGroupWrapper:h,groupName:m,hideDescriptionInLabels:g=!1,size:p="default",autocompleteClassName:v}=e;const b=e.inheritSchema?{...e.inheritSchema,...e.schema}:e.schema;if(b==null)return u.jsx(u.Fragment,{});const y=b==null?void 0:b["x-form"];let C=(B=e.schema)==null?void 0:B["x-control"];C&&g&&(!Array.isArray(C)&&C.description?C={...C,description:""}:Array.isArray(C)&&(C=C.map(N=>({...N,description:""}))));const D=C&&(Array.isArray(C)?C:[C]);if(b.type==="object"&&!Array.isArray(C)&&(C==null?void 0:C.inputType)==="tabs")return u.jsx(yLe,{...e});if(b.type==="object"&&(!D||!((j=D[0])!=null&&j.inputType))){const N=b.required??[];let _,U;!Array.isArray(C)&&(C!=null&&C.label||C!=null&&C.description)&&(_=C==null?void 0:C.label,U=(C==null?void 0:C.description)??void 0);const V=u.jsx(i$e,{condition:!!h&&e.schema!==e.rootSchema,wrapper:z=>!!h&&u.jsx(h,{groupName:m,header:_,description:U,rootInstance:o,children:z}),children:u.jsx(d,{errors:[],path:t,pathString:`/${t.join("/")}`,title:_,description:U,instance:r,rootInstance:o,schema:b,rootSchema:n,validation:s,children:Object.entries(b.properties??{}).map(([z,Y])=>{var se;const te=`/${[...t,z].join("/")}`;return u.jsx(Ek,{disabled:e.disabled||(Y==null?void 0:Y.disabled),path:[...t,z],errors:rM(s==null?void 0:s.errors,`#${((se=Y==null?void 0:Y["x-control"])==null?void 0:se.errorPathString)??te}`),pathString:te,schema:Y,rootSchema:n,instance:r==null?void 0:r[z],rootInstance:o,Form:c,FormSection:d,FormControl:l,FormControlGroup:f,FormGroupWrapper:h,onChange:e.onChange,onBlur:i,isRequired:N.includes(z),groupName:z,validation:s,hideDescriptionInLabels:g,size:p,autocompleteClassName:v},z)})})});if(y){const z=`/${t.join("/")}`;return u.jsx(a$e,{path:t,pathString:z,errors:rM(s==null?void 0:s.errors,`#${((R=b["x-control"])==null?void 0:R.errorPathString)??z}`),form:y,Form:c,instance:r,rootInstance:o,schema:b,rootSchema:n,validation:s,children:V})}return V}const A=D&&D.filter(Do);if(!A||!A.length)return null;const T=A.filter(N=>{const _=JU(N.conditions??[],o);return _.conditions.some(V=>V.disable)||_.valid});return T.length?u.jsx(f,{path:t,pathString:`/${t.join("/")}`,errors:e.errors,controls:T,instance:r,rootInstance:o,schema:b,rootSchema:n,validation:s,required:e.isRequired,children:T.map((N,_)=>u.jsx(o$e,{disabled:e.disabled,path:t,pathString:`/${t.join("/")}`,errors:e.errors,control:N,instance:r,rootInstance:o,schema:b,rootSchema:n,onChange:U=>{a(V=>{const z=[...t],Y=z.reduceRight((te,se,he)=>{const pe=z.slice(0,he).reduce((K,O)=>({...K[`${O}`]}),V);return he===z.length-1?{...pe,...te,[`${se}`]:U}:{...pe,[`${se}`]:te}},{});return{...V,...Y}})},required:e.isRequired,validation:s,FormControl:l,onBlur:()=>{i==null||i(`${t.join(".")}`)},size:p,autocompleteClassName:v},`${t.join("/")}[${_}]`))}):null}function i$e({condition:e,wrapper:t,children:n}){return e?t(n):n}const s$e=W.createContext({inputTypeProps:{},commonInputProps:{}});function l$e(){return x.useContext(s$e)}function c$e(e){const{control:t}=e;let n=null;const r=l$e(),{inputID:o,labelID:a}=x.useContext(iO),i={id:o,"aria-labelledby":a},s=r.commonInputProps,l=r.inputTypeProps[t.inputType]??{};switch(t.inputType){case"textBox":n=u.jsx(wde,{...i,...s,...l,disabled:e.disabled,placeholder:e.control.placeholder,value:e.instance,onChange:f=>{e.onChange(f.target.value)}});break;case"dropDown":const{api:c,staticOptions:d}=t.choices;n=u.jsx(CE,{...i,...s,...l,value:e.instance,placeholder:t.placeholder,onChange:f=>{e.onChange(f)},disabled:e.disabled,optionProvider:c?u.jsx(wE,{lookup:c}):void 0,options:d?Object.entries(d).map(([f,h])=>({key:f,value:f,label:String(h)})):void 0});break;default:n=u.jsx("div",{children:`Form inputType "${t.inputType}" is not supported.`});break}return u.jsx(u.Fragment,{children:n})}function u$e(e){const{label:t,description:n,fullSize:r}=e.controls[0];return r?u.jsx(u.Fragment,{children:e.children}):u.jsxs(xde,{children:[u.jsx(Cde,{description:n,children:t}),e.children]})}const tV=W.createContext({validate:(e,t)=>(mn("A ValidationContext has not been defined for this form. Any validation logic is ignored."),{valid:!0,errors:[]})});function d$e(e){const{children:t}=e,n=(o,a)=>o.filter(i=>!i.error.includes("does not match schema")).map(i=>{var f,h;const s=!!i.instanceLocation.replace(/\/|#/g,"");let l=i.instanceLocation.replace(/\/|#/g,"");if(!l){const m=i.error.match(/(["'])(?:(?=(\\?))\2.)*?\1/);m&&m.length>0&&(l=m[0].replace(/"/g,""))}const c=!!((h=(f=a==null?void 0:a.properties)==null?void 0:f[l])!=null&&h.errorMessage),d=()=>{var p,v;let m=i.error??"";const g=(v=(p=a==null?void 0:a.properties)==null?void 0:p[l])==null?void 0:v.errorMessage;if(g&&Array.isArray(g)){const b=g.find(y=>(y==null?void 0:y.keyword)===i.keyword);b&&(m=b.message)}return g&&typeof g=="string"&&(m=g),m};return{...i,...!s&&{instanceLocation:`#/${l}`},...c&&{error:d()}}}),r=(o,a)=>{try{const i=ul(o),l=new ZU(i,"2020-12",!1).validate(a);return{...l,errors:l.errors.length>0?n(l.errors,o):[]}}catch(i){return mn(i),{valid:!1,errors:[]}}};return u.jsx(tV.Provider,{value:{validate:r},children:t})}function f$e(){return x.useContext(tV)}const iC=x.forwardRef(function(t,n){const r=x.useRef(null);return x.useImperativeHandle(n,()=>({validate:()=>{var o;return(o=r.current)==null?void 0:o.validate()}}),[r]),u.jsx(d$e,{children:u.jsx(h$e,{...t,ref:r})})}),h$e=x.forwardRef(function(t,n){const{autoValidate:r=!1,instance:o,Form:a,FormSection:i,FormTabs:s,FormControl:l,FormControlGroup:c,FormGroupWrapper:d,vanillaUI:f=!1}=t,h=f$e(),[m,g]=x.useState(),p=x.useMemo(()=>({valid:((m==null?void 0:m.valid)??!0)&&Object.keys(t.fieldErrors??{}).length===0,errors:[...(m==null?void 0:m.errors)??[],...t$e(t.fieldErrors??{})]}),[m,t.fieldErrors]),v=x.useMemo(()=>typeof t.schema=="string"?JSON.parse(t.schema):t.schema,[t.schema]),b={Form:x.useMemo(()=>a,[]),FormSection:x.useMemo(()=>i,[]),FormTabs:x.useMemo(()=>s,[]),FormControl:x.useMemo(()=>l??(f?c$e:void 0),[]),FormControlGroup:x.useMemo(()=>c??(f?u$e:void 0),[]),FormGroupWrapper:x.useMemo(()=>d??(f?j0:void 0),[])},y=x.useRef(v),C=x.useRef(o);x.useEffect(()=>{y.current=v},[v]),x.useEffect(()=>{C.current=o},[o]);const D=x.useCallback(()=>{let A={valid:!0,errors:[]};const T=eV(o,y.current);return A=h.validate(y.current,T),g(A),A},[h]);return x.useEffect(()=>{r!==!1&&D()},[o,D,r]),x.useImperativeHandle(n,()=>({validate:D}),[D]),u.jsx(Ek,{...t,...b,pathString:"/",errors:[],path:[],schema:v,rootSchema:v,rootInstance:o,validation:p})}),oM=W.forwardRef(function(t,n){const{className:r,value:o,...a}=t;let i=o;return(i===void 0||t.type=="number"&&(i===null||Number.isNaN(i)))&&(i=""),u.jsx("input",{...a,ref:n,className:ge(r,wd().text),value:i})});var aM;(function(e){e.AUTO="auto",e.BOTTOM="bottom",e.TOP="top"})(aM||(aM={}));function sC(e){const t=m$e(e),n="SelectOne",[r,o]=x.useState(!1),a=xr(n),i=e.id||a,s=e.inputID||i+"-input",l=i+"-errors",{className:c,disabled:d,options:f,searchable:h,forceOpen:m}=e;let g;const p=e.errors&&e.errors.length>0;p&&(g=l);const v=iB(),b=Gh();return u.jsxs("div",{className:ae(b.root,e.className),onClick:()=>{var y,C;!r&&((y=e.selectRef)!=null&&y.current)&&((C=e.selectRef)==null||C.current.focus())},children:[e.label!==null&&u.jsxs("label",{htmlFor:s,className:b.labelAndDescription,children:[u.jsx("span",{className:ae(b.labelText,e.label),children:e.label}),u.jsx($i,{className:b.labelNote,children:e.labelNote})]}),u.jsxs("div",{className:ae(b.inputWrap,v.inputWrap,{hasFocus:r}),children:[u.jsx(wxe,{...t,id:i,options:f,inputId:s,onChange:e.onChange,defaultValue:e.defaultValue,onInputChange:e.onInputChange,isClearable:e.isClearable,isDisabled:d,classNamePrefix:n,className:ae(n,c),"aria-label":e.label||void 0,"aria-labelledby":e.labelID||void 0,"aria-invalid":p,"aria-describedby":g,isSearchable:h,value:e.value,menuIsOpen:m?!0:r===!1?!1:void 0,placeholder:e.placeholder,isLoading:e.isLoading,onMenuOpen:e.onMenuOpen,onFocus:()=>{var y;o(!0),(y=e.onFocus)==null||y.call(e)},onBlur:y=>{var C;(C=e.onBlur)==null||C.call(e,y),o(!1)},menuPlacement:e.menuPlacement??"auto",ref:e.selectRef,maxMenuHeight:e.maxHeight,name:e.name}),u.jsx($i,{className:b.labelNote,children:e.noteAfterInput}),u.jsx(El,{id:l,errors:e.errors})]})]})}sC.defaultProps={isClearable:!0};function m$e(e){const{inputClassName:t,noOptionsMessage:n}=e,r=x.useMemo(()=>({Menu:MH,MenuList:_H,Option:P1,ValueContainer:function(s){return u.jsx(Exe,{...s,className:t})},DropdownIndicator:function(s){return u.jsx(Ixe,{...s})},NoOptionsMessage:n||FH,LoadingMessage:$H}),[t,n]),o=x.useMemo(()=>({option:()=>({}),menu:i=>({...i,backgroundColor:null,boxShadow:null}),control:()=>({borderWidth:0})}),[]),a=x.useCallback(i=>({...i,borderRadius:{},borderWidth:0,colors:{},spacing:{}}),[]);return{components:r,theme:a,styles:o}}const p$e=Hr({loadFunction:()=>mt(()=>import("../chunks/library/DateRange.D5u-Ly4D.min.js"),__vite__mapDeps([32,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});function g$e(e){const t=ee(),n=ti(),{boxShadow:r=!1}=e,o=S({display:"flex",flexDirection:"column",justifyContent:"space-between",minHeight:200,borderRadius:n.border.radius,...r&&{boxShadow:`0 0 0 1px ${P.colorOut(n.border.color)}`,":focus-within":{boxShadow:`0 0 0 1px ${P.colorOut(t.mainColors.primary)}`}}},"label:VanillaEditorContainer-baseStyles");return u.jsx("div",{className:ge(o,e.className),children:e.children})}const v$e=Hr({loadFunction:()=>mt(()=>import("../chunks/VanillaEditor.loadable.BRhKGaeX.min.js").then(e=>e.h),__vite__mapDeps([33,1,4,34,35]),import.meta.url).then(e=>e.VanillaEditorLoadable),fallback:g$e}),nV=W.createContext({});function b$e(){const e=x.useContext(nV),t=q6();return e===null&&t(new Error("Attempting to use a radio group without specifying a group. Be sure to wrap it in a RadioGroupContext provider")),e}function y$e(e){const t=xr("radioButton-label"),n=p1(),{isHorizontal:r,note:o}=e,a=xr("radioButtonNote");return u.jsxs(u.Fragment,{children:[u.jsxs("label",{className:ge(n.root,{isHorizontal:r},e.className),children:[u.jsx("input",{className:ge(n.input,"exclude-icheck",{"focus-visible":e.fakeFocus}),onChange:i=>{var s,l;(s=e.onChange)==null||s.call(e,i),i.target.checked&&((l=e.onChecked)==null||l.call(e))},"aria-disabled":e.disabled,name:e.name,disabled:e.disabled,type:"radio",checked:e.checked,defaultChecked:e.defaultChecked,tabIndex:0,"aria-describedby":o?a:void 0,value:e.value}),u.jsx("span",{"aria-hidden":!0,className:ae(n.iconContainer,n.disk),children:u.jsxs("svg",{className:n.diskIcon,children:[u.jsx("title",{children:k("Radio Button")}),u.jsx("circle",{fill:"currentColor",cx:"3",cy:"3",r:"3"})]})}),e.label&&u.jsx("span",{id:t,className:n.label,children:e.label}),e.tooltip&&u.jsx(In,{label:k(e.tooltip),children:u.jsx("span",{className:n.tooltipPerOption,children:u.jsx(mO,{})})})]}),o&&u.jsx("div",{id:a,className:n.checkBoxDescription,children:o})]})}function x$e(e){const{onChange:t,value:n,isInline:r}=b$e(),o=t!==void 0?{onChange:()=>t(e.value),checked:n===e.value}:{};return u.jsx(y$e,{...e,...o,isHorizontal:r})}const iM=e=>e?Object.entries(e).map(([t,n])=>({value:t,label:n})):[];function dmt(e){return u.jsx(Ik,{...e,useNewDropdown:!0})}function Ik(e){var h;const{disabled:t,onChange:n,onBlur:r,control:o,instance:a,schema:i,required:s,dateRangeDirection:l="above"}=e;D1();const c=xr("input"),d=a,{zIndex:f}=ja();switch(o.inputType){case"textBox":return o.type==="textarea"?u.jsx(Lv,{inputProps:{multiline:!0,disabled:t,value:d??"",onChange:m=>n(m.target.value),onBlur:r},multiLineProps:{rows:5}}):u.jsx(oM,{value:d,...o.type==="number"&&{min:o.min,max:o.max},minLength:o.minLength,maxLength:o.maxLength,type:o.type,disabled:t,required:s,onBlur:r,onChange:m=>{let g=m.target[o.type==="number"?"valueAsNumber":"value"];o.type==="number"&&Number.isNaN(g)&&(g=void 0),n(g)}});case"datePicker":{const m=d?et(d).format("YYYY-MM-DD"):"";return t?u.jsx(oM,{value:m,disabled:!0,onBlur:r}):u.jsx(bk,{alignment:"right",onChange:g=>n(g),value:d,required:s,onBlur:r,datePickerDropdownClassName:S({zIndex:f,...l!=="below"&&{top:-350}},"label:FormControl-readOnlyValue"),min:o.min,max:o.max})}case"dateRange":return u.jsx(p$e,{onStartChange:m=>{n({...d??{},start:m})},onEndChange:m=>{n({...d??{},end:m})},start:d==null?void 0:d.start,end:d==null?void 0:d.end,datePickerDropdownClassName:S({zIndex:f,...l!=="below"&&{top:-350}},"label:FormControl-end")});case"checkBox":return u.jsx(no,{tooltip:o.tooltip,tooltipIcon:o.tooltipIcon,label:o.label,onChange:m=>n(m.target.checked),onBlur:r,disabled:t,checked:d,labelBold:o.labelBold});case"radio":return u.jsx(nV.Provider,{value:{value:d,onChange:n},children:Object.entries(o.choices.staticOptions??[]).map(([m,g])=>u.jsx(x$e,{disabled:t,name:c,label:g,value:m,tooltip:o.tooltipsPerOption&&o.tooltipsPerOption[m]?o.tooltipsPerOption[m]:void 0,note:o.notesPerOption&&o.notesPerOption[m]?o.notesPerOption[m]:void 0},m))});case"dropDown":{const m=iM(o.choices.staticOptions),g=m.find(p=>`${p.value}`==`${d}`);return u.jsxs(u.Fragment,{children:[e.useNewDropdown?u.jsx(CE,{multiple:o.multiple,options:m,value:d,onBlur:r,clear:!s,onChange:p=>{n(p)},disabled:t,optionProvider:o.choices.api?u.jsx(wE,{lookup:o.choices.api}):void 0}):u.jsx(sC,{label:null,disabled:t,value:g??null,onChange:p=>{n(p==null?void 0:p.value)},onBlur:r,options:m,isClearable:!s}),!!s&&u.jsx("input",{tabIndex:-1,autoComplete:"off",style:{opacity:0,height:0,width:"100%",display:"block"},value:g?g.value:"",required:s,onChange:()=>{}})]})}case"tokens":{if(e.useNewDropdown){const{api:p,staticOptions:v}=o.choices,b=()=>{if(v)return Array.isArray(v)?v:Object.entries(v).map(([y,C])=>({value:y,label:String(C)}))};return u.jsx(CE,{value:d,clear:!1,placeholder:o.placeholder,onChange:n,onBlur:r,optionProvider:p?u.jsx(wE,{api:Ct,lookup:p}):void 0,options:b(),multiple:!0,required:s,disabled:e.disabled})}const m=iM(o.choices.staticOptions),g=Object.values(d??{}).map(p=>{var v;return{value:p,label:((v=m.find(({value:b})=>b===p))==null?void 0:v.label)??`${p}`}});return u.jsxs(u.Fragment,{children:[u.jsx(Bv,{label:null,disabled:t,value:g,onChange:p=>n(p.map(({value:v})=>v)),onBlur:r,options:m,inModal:!0}),!!s&&u.jsx("input",{tabIndex:-1,autoComplete:"off",style:{opacity:0,height:0,width:"100%",display:"block"},value:g?g.join(","):"",required:s,onChange:()=>{}})]})}case"richeditor":return u.jsx(v$e,{showConversionNotice:!!o.initialFormat&&o.initialFormat!=="rich2",onChange:m=>{n(JSON.stringify(m))},onBlur:r,initialContent:d,initialFormat:o.initialFormat});case"custom":return u.jsx(o.component,{...e,value:d,onChange:n,onBlur:r,children:(h=o.componentProps)==null?void 0:h.children});default:return u.jsxs("div",{children:[o.inputType," is not supported"]})}}function rV(e){var m;const{children:t,controls:n,validation:r,required:o}=e,{inputType:a,label:i,legend:s,description:l,tooltip:c,tooltipIcon:d,fullSize:f}=n[0],h=((m=r==null?void 0:r.errors)==null?void 0:m.filter(g=>g.instanceLocation===`#${e.pathString}`).map(g=>({message:g.error,field:`${e.path[0]}`})))??[];return u.jsx(ni,{tight:f,required:o,label:["checkBox","richeditor"].includes(a)?void 0:i,labelNote:["checkBox","richeditor"].includes(a)?void 0:l,legend:s,tooltip:c,tooltipIcon:d,errors:h,extendErrorMessage:!0,children:t})}var C$e=function(t){return w$e(t)&&!S$e(t)};function w$e(e){return!!e&&typeof e=="object"}function S$e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||I$e(e)}var D$e=typeof Symbol=="function"&&Symbol.for,E$e=D$e?Symbol.for("react.element"):60103;function I$e(e){return e.$$typeof===E$e}function T$e(e){return Array.isArray(e)?[]:{}}function ex(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bg(T$e(e),e,t):e}function A$e(e,t,n){return e.concat(t).map(function(r){return ex(r,n)})}function O$e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=ex(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=ex(t[o],n):r[o]=Bg(e[o],t[o],n)}),r}function Bg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||A$e,n.isMergeableObject=n.isMergeableObject||C$e;var r=Array.isArray(t),o=Array.isArray(e),a=r===o;return a?r?n.arrayMerge(e,t,n):O$e(e,t,n):ex(t,n)}Bg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Bg(r,o,n)},{})};var SI=Bg,sM=Array.isArray,lM=Object.keys,B$e=Object.prototype.hasOwnProperty,k$e=typeof Element<"u";function DI(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=sM(e),r=sM(t),o,a,i;if(n&&r){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!DI(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var f=lM(e);if(a=f.length,a!==lM(t).length)return!1;for(o=a;o--!==0;)if(!B$e.call(t,f[o]))return!1;if(k$e&&e instanceof Element&&t instanceof Element)return e===t;for(o=a;o--!==0;)if(i=f[o],!(i==="_owner"&&e.$$typeof)&&!DI(e[i],t[i]))return!1;return!0}return e!==e&&t!==t}var P$e=function(t,n){try{return DI(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Cu=jr(P$e);function oV(e){return fo(e)?pl(e,bd):nd(e)?[e]:KT(t3(rv(e)))}function Xr(){return Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xr.apply(this,arguments)}function aV(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var lC=x.createContext(void 0);lC.displayName="FormikContext";var R$e=lC.Provider;lC.Consumer;function iV(){var e=x.useContext(lC);return e}var Ga=function(t){return typeof t=="function"},cC=function(t){return t!==null&&typeof t=="object"},j$e=function(t){return String(Math.floor(Number(t)))===t},KS=function(t){return Object.prototype.toString.call(t)==="[object String]"},N$e=function(t){return x.Children.count(t)===0},qS=function(t){return cC(t)&&Ga(t.then)};function ba(e,t,n,r){r===void 0&&(r=0);for(var o=oV(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Zu(e,t,n){for(var r=Bc(e),o=r,a=0,i=oV(t);a<i.length-1;a++){var s=i[a],l=ba(e,i.slice(0,a+1));if(l&&(cC(l)||Array.isArray(l)))o=o[s]=Bc(l);else{var c=i[a+1];o=o[s]=j$e(c)&&Number(c)>=0?[]:{}}}return(a===0?e:o)[i[a]]===n?e:(n===void 0?delete o[i[a]]:o[i[a]]=n,a===0&&n===void 0&&delete r[i[a]],r)}function sV(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],s=e[i];cC(s)?n.get(s)||(n.set(s,!0),r[i]=Array.isArray(s)?[]:{},sV(s,t,n,r[i])):r[i]=t}return r}function L$e(e,t){switch(t.type){case"SET_VALUES":return Xr({},e,{values:t.payload});case"SET_TOUCHED":return Xr({},e,{touched:t.payload});case"SET_ERRORS":return Cu(e.errors,t.payload)?e:Xr({},e,{errors:t.payload});case"SET_STATUS":return Xr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xr({},e,{values:Zu(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xr({},e,{touched:Zu(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xr({},e,{errors:Zu(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xr({},e,{touched:sV(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xr({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xr({},e,{isSubmitting:!1});default:return e}}var mu={},Fb={};function Fv(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,a=e.validateOnMount,i=a===void 0?!1:a,s=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,d=e.onSubmit,f=aV(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Xr({validateOnChange:n,validateOnBlur:o,validateOnMount:i,onSubmit:d},f),m=x.useRef(h.initialValues),g=x.useRef(h.initialErrors||mu),p=x.useRef(h.initialTouched||Fb),v=x.useRef(h.initialStatus),b=x.useRef(!1),y=x.useRef({});x.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var C=x.useState(0),D=C[1],A=x.useRef({values:h.initialValues,errors:h.initialErrors||mu,touched:h.initialTouched||Fb,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),T=A.current,B=x.useCallback(function(ne){var we=A.current;A.current=L$e(we,ne),we!==A.current&&D(function(Ae){return Ae+1})},[]),j=x.useCallback(function(ne,we){return new Promise(function(Ae,Se){var De=h.validate(ne,we);De==null?Ae(mu):qS(De)?De.then(function(Ye){Ae(Ye||mu)},function(Ye){Se(Ye)}):Ae(De)})},[h.validate]),R=x.useCallback(function(ne,we){var Ae=h.validationSchema,Se=Ga(Ae)?Ae(we):Ae,De=we&&Se.validateAt?Se.validateAt(we,ne):_$e(ne,Se);return new Promise(function(Ye,Qe){De.then(function(){Ye(mu)},function(xe){xe.name==="ValidationError"?Ye(M$e(xe)):Qe(xe)})})},[h.validationSchema]),N=x.useCallback(function(ne,we){return new Promise(function(Ae){return Ae(y.current[ne].validate(we))})},[]),_=x.useCallback(function(ne){var we=Object.keys(y.current).filter(function(Se){return Ga(y.current[Se].validate)}),Ae=we.length>0?we.map(function(Se){return N(Se,ba(ne,Se))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ae).then(function(Se){return Se.reduce(function(De,Ye,Qe){return Ye==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ye&&(De=Zu(De,we[Qe],Ye)),De},{})})},[N]),U=x.useCallback(function(ne){return Promise.all([_(ne),h.validationSchema?R(ne):{},h.validate?j(ne):{}]).then(function(we){var Ae=we[0],Se=we[1],De=we[2],Ye=SI.all([Ae,Se,De],{arrayMerge:F$e});return Ye})},[h.validate,h.validationSchema,_,j,R]),V=Ua(function(ne){return ne===void 0&&(ne=T.values),B({type:"SET_ISVALIDATING",payload:!0}),U(ne).then(function(we){return b.current&&(B({type:"SET_ISVALIDATING",payload:!1}),B({type:"SET_ERRORS",payload:we})),we})});x.useEffect(function(){i&&b.current===!0&&Cu(m.current,h.initialValues)&&V(m.current)},[i,V]);var z=x.useCallback(function(ne){var we=ne&&ne.values?ne.values:m.current,Ae=ne&&ne.errors?ne.errors:g.current?g.current:h.initialErrors||{},Se=ne&&ne.touched?ne.touched:p.current?p.current:h.initialTouched||{},De=ne&&ne.status?ne.status:v.current?v.current:h.initialStatus;m.current=we,g.current=Ae,p.current=Se,v.current=De;var Ye=function(){B({type:"RESET_FORM",payload:{isSubmitting:!!ne&&!!ne.isSubmitting,errors:Ae,touched:Se,status:De,values:we,isValidating:!!ne&&!!ne.isValidating,submitCount:ne&&ne.submitCount&&typeof ne.submitCount=="number"?ne.submitCount:0}})};if(h.onReset){var Qe=h.onReset(T.values,Me);qS(Qe)?Qe.then(Ye):Ye()}else Ye()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);x.useEffect(function(){b.current===!0&&!Cu(m.current,h.initialValues)&&c&&(m.current=h.initialValues,z(),i&&V(m.current))},[c,h.initialValues,z,i,V]),x.useEffect(function(){c&&b.current===!0&&!Cu(g.current,h.initialErrors)&&(g.current=h.initialErrors||mu,B({type:"SET_ERRORS",payload:h.initialErrors||mu}))},[c,h.initialErrors]),x.useEffect(function(){c&&b.current===!0&&!Cu(p.current,h.initialTouched)&&(p.current=h.initialTouched||Fb,B({type:"SET_TOUCHED",payload:h.initialTouched||Fb}))},[c,h.initialTouched]),x.useEffect(function(){c&&b.current===!0&&!Cu(v.current,h.initialStatus)&&(v.current=h.initialStatus,B({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var Y=Ua(function(ne){if(y.current[ne]&&Ga(y.current[ne].validate)){var we=ba(T.values,ne),Ae=y.current[ne].validate(we);return qS(Ae)?(B({type:"SET_ISVALIDATING",payload:!0}),Ae.then(function(Se){return Se}).then(function(Se){B({type:"SET_FIELD_ERROR",payload:{field:ne,value:Se}}),B({type:"SET_ISVALIDATING",payload:!1})})):(B({type:"SET_FIELD_ERROR",payload:{field:ne,value:Ae}}),Promise.resolve(Ae))}else if(h.validationSchema)return B({type:"SET_ISVALIDATING",payload:!0}),R(T.values,ne).then(function(Se){return Se}).then(function(Se){B({type:"SET_FIELD_ERROR",payload:{field:ne,value:ba(Se,ne)}}),B({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),te=x.useCallback(function(ne,we){var Ae=we.validate;y.current[ne]={validate:Ae}},[]),se=x.useCallback(function(ne){delete y.current[ne]},[]),he=Ua(function(ne,we){B({type:"SET_TOUCHED",payload:ne});var Ae=we===void 0?o:we;return Ae?V(T.values):Promise.resolve()}),pe=x.useCallback(function(ne){B({type:"SET_ERRORS",payload:ne})},[]),K=Ua(function(ne,we){var Ae=Ga(ne)?ne(T.values):ne;B({type:"SET_VALUES",payload:Ae});var Se=we===void 0?n:we;return Se?V(Ae):Promise.resolve()}),O=x.useCallback(function(ne,we){B({type:"SET_FIELD_ERROR",payload:{field:ne,value:we}})},[]),le=Ua(function(ne,we,Ae){B({type:"SET_FIELD_VALUE",payload:{field:ne,value:we}});var Se=Ae===void 0?n:Ae;return Se?V(Zu(T.values,ne,we)):Promise.resolve()}),be=x.useCallback(function(ne,we){var Ae=we,Se=ne,De;if(!KS(ne)){ne.persist&&ne.persist();var Ye=ne.target?ne.target:ne.currentTarget,Qe=Ye.type,xe=Ye.name,vt=Ye.id,Mt=Ye.value,vn=Ye.checked,lo=Ye.outerHTML,bn=Ye.options,Vr=Ye.multiple;Ae=we||xe||vt,Se=/number|range/.test(Qe)?(De=parseFloat(Mt),isNaN(De)?"":De):/checkbox/.test(Qe)?z$e(ba(T.values,Ae),vn,Mt):bn&&Vr?W$e(bn):Mt}Ae&&le(Ae,Se)},[le,T.values]),H=Ua(function(ne){if(KS(ne))return function(we){return be(we,ne)};be(ne)}),ie=Ua(function(ne,we,Ae){we===void 0&&(we=!0),B({type:"SET_FIELD_TOUCHED",payload:{field:ne,value:we}});var Se=Ae===void 0?o:Ae;return Se?V(T.values):Promise.resolve()}),oe=x.useCallback(function(ne,we){ne.persist&&ne.persist();var Ae=ne.target,Se=Ae.name,De=Ae.id,Ye=Ae.outerHTML,Qe=we||Se||De;ie(Qe,!0)},[ie]),ve=Ua(function(ne){if(KS(ne))return function(we){return oe(we,ne)};oe(ne)}),$e=x.useCallback(function(ne){Ga(ne)?B({type:"SET_FORMIK_STATE",payload:ne}):B({type:"SET_FORMIK_STATE",payload:function(){return ne}})},[]),Ne=x.useCallback(function(ne){B({type:"SET_STATUS",payload:ne})},[]),Ze=x.useCallback(function(ne){B({type:"SET_ISSUBMITTING",payload:ne})},[]),ze=Ua(function(){return B({type:"SUBMIT_ATTEMPT"}),V().then(function(ne){var we=ne instanceof Error,Ae=!we&&Object.keys(ne).length===0;if(Ae){var Se;try{if(Se=Je(),Se===void 0)return}catch(De){throw De}return Promise.resolve(Se).then(function(De){return b.current&&B({type:"SUBMIT_SUCCESS"}),De}).catch(function(De){if(b.current)throw B({type:"SUBMIT_FAILURE"}),De})}else if(b.current&&(B({type:"SUBMIT_FAILURE"}),we))throw ne})}),Xe=Ua(function(ne){ne&&ne.preventDefault&&Ga(ne.preventDefault)&&ne.preventDefault(),ne&&ne.stopPropagation&&Ga(ne.stopPropagation)&&ne.stopPropagation(),ze().catch(function(we){console.warn("Warning: An unhandled error was caught from submitForm()",we)})}),Me={resetForm:z,validateForm:V,validateField:Y,setErrors:pe,setFieldError:O,setFieldTouched:ie,setFieldValue:le,setStatus:Ne,setSubmitting:Ze,setTouched:he,setValues:K,setFormikState:$e,submitForm:ze},Je=Ua(function(){return d(T.values,Me)}),pt=Ua(function(ne){ne&&ne.preventDefault&&Ga(ne.preventDefault)&&ne.preventDefault(),ne&&ne.stopPropagation&&Ga(ne.stopPropagation)&&ne.stopPropagation(),z()}),ot=x.useCallback(function(ne){return{value:ba(T.values,ne),error:ba(T.errors,ne),touched:!!ba(T.touched,ne),initialValue:ba(m.current,ne),initialTouched:!!ba(p.current,ne),initialError:ba(g.current,ne)}},[T.errors,T.touched,T.values]),Et=x.useCallback(function(ne){return{setValue:function(Ae,Se){return le(ne,Ae,Se)},setTouched:function(Ae,Se){return ie(ne,Ae,Se)},setError:function(Ae){return O(ne,Ae)}}},[le,ie,O]),Vt=x.useCallback(function(ne){var we=cC(ne),Ae=we?ne.name:ne,Se=ba(T.values,Ae),De={name:Ae,value:Se,onChange:H,onBlur:ve};if(we){var Ye=ne.type,Qe=ne.value,xe=ne.as,vt=ne.multiple;Ye==="checkbox"?Qe===void 0?De.checked=!!Se:(De.checked=!!(Array.isArray(Se)&&~Se.indexOf(Qe)),De.value=Qe):Ye==="radio"?(De.checked=Se===Qe,De.value=Qe):xe==="select"&&vt&&(De.value=De.value||[],De.multiple=!0)}return De},[ve,H,T.values]),nt=x.useMemo(function(){return!Cu(m.current,T.values)},[m.current,T.values]),Ee=x.useMemo(function(){return typeof s<"u"?nt?T.errors&&Object.keys(T.errors).length===0:s!==!1&&Ga(s)?s(h):s:T.errors&&Object.keys(T.errors).length===0},[s,nt,T.errors,h]),kt=Xr({},T,{initialValues:m.current,initialErrors:g.current,initialTouched:p.current,initialStatus:v.current,handleBlur:ve,handleChange:H,handleReset:pt,handleSubmit:Xe,resetForm:z,setErrors:pe,setFormikState:$e,setFieldTouched:ie,setFieldValue:le,setFieldError:O,setStatus:Ne,setSubmitting:Ze,setTouched:he,setValues:K,submitForm:ze,validateForm:V,validateField:Y,isValid:Ee,dirty:nt,unregisterField:se,registerField:te,getFieldProps:Vt,getFieldMeta:ot,getFieldHelpers:Et,validateOnBlur:o,validateOnChange:n,validateOnMount:i});return kt}function $$e(e){var t=Fv(e),n=e.component,r=e.children,o=e.render,a=e.innerRef;return x.useImperativeHandle(a,function(){return t}),x.createElement(R$e,{value:t},n?x.createElement(n,t):o?o(t):r?Ga(r)?r(t):N$e(r)?null:x.Children.only(r):null)}function M$e(e){var t={};if(e.inner){if(e.inner.length===0)return Zu(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var a;if(n){if(r>=o.length)break;a=o[r++]}else{if(r=o.next(),r.done)break;a=r.value}var i=a;ba(t,i.path)||(t=Zu(t,i.path,i.message))}}return t}function _$e(e,t,n,r){n===void 0&&(n=!1);var o=EI(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}function EI(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||rg(o)?EI(o):o!==""?o:void 0}):rg(e[r])?t[r]=EI(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function F$e(e,t,n){var r=e.slice();return t.forEach(function(a,i){if(typeof r[i]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(a);r[i]=l?SI(Array.isArray(a)?[]:{},a,n):a}else n.isMergeableObject(a)?r[i]=SI(e[i],a,n):e.indexOf(a)===-1&&r.push(a)}),r}function W$e(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function z$e(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,a=-1;if(Array.isArray(e))r=e,a=e.indexOf(n),o=a>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,a).concat(r.slice(a+1)):r}var H$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function Ua(e){var t=x.useRef(e);return H$e(function(){t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}var U$e=x.forwardRef(function(e,t){var n=e.action,r=aV(e,["action"]),o=n??"#",a=iV(),i=a.handleReset,s=a.handleSubmit;return x.createElement("form",Xr({onSubmit:s,ref:t,onReset:i,action:o},r))});U$e.displayName="Form";function V$e(e){var d;const{localeOptions:t,onSubmit:n,value:r}=e,o=eu(),a=ha(),{values:i,setValues:s,submitForm:l}=Fv({initialValues:{NotificationLanguage:r??`${((d=t==null?void 0:t[0])==null?void 0:d.value)??""}`},enableReinitialize:!0,onSubmit:async f=>{try{await(n==null?void 0:n({language:f.NotificationLanguage})),a.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Success! Your changes were saved.")})})}catch(h){a.addToast({dismissible:!0,body:u.jsx(u.Fragment,{children:k(h.message)})})}}});if(!t||!t.length||t.length<2)return null;const c={type:"object",properties:{NotificationLanguage:{type:"string","x-control":{label:k("Email Language"),description:k("This is the language your email notifications and digest will appear in. It won't affect what language posts were created in."),inputType:"dropDown",choices:{staticOptions:Object.fromEntries(t.map(f=>[f.value,f.label]))}}}},required:["NotificationLanguage"]};return u.jsxs(mo,{options:{borderType:dt.SEPARATOR_BETWEEN},className:o.selectContainer,children:[u.jsx(Dn,{depth:2,title:k("Language")}),u.jsx(mo,{className:o.subgroupWrapper,children:u.jsx(iC,{schema:c,instance:i,FormControl:Ik,FormControlGroup:rV,onChange:async f=>{s(f),await l()}})})]})}function G$e(){var a,i;const{preferences:e,patchLanguage:t}=uC(),r=(a=Ss({queryKey:["locales"],queryFn:async()=>(await Ct.get("/locales")).data}).data)==null?void 0:a.map(s=>({value:s.localeKey,label:s.displayNames[s.localeKey]}));return e!=null&&e.data?u.jsx(V$e,{localeOptions:r,value:((i=e.data)==null?void 0:i.NotificationLanguage)??void 0,onSubmit:async({language:s})=>{await t(s)}}):null}var lV={exports:{}},II={exports:{}};(function(e,t){(function(n,r){r(t,x)})(yr,function(n,r){function o(I,M,F,G,ue,J,fe){try{var Ie=I[J](fe),Te=Ie.value}catch(Be){return void F(Be)}Ie.done?M(Te):Promise.resolve(Te).then(G,ue)}function a(I){return function(){var M=this,F=arguments;return new Promise(function(G,ue){var J=I.apply(M,F);function fe(Te){o(J,G,ue,fe,Ie,"next",Te)}function Ie(Te){o(J,G,ue,fe,Ie,"throw",Te)}fe(void 0)})}}function i(){return(i=Object.assign||function(I){for(var M=1;M<arguments.length;M++){var F=arguments[M];for(var G in F)Object.prototype.hasOwnProperty.call(F,G)&&(I[G]=F[G])}return I}).apply(this,arguments)}function s(I,M){if(I==null)return{};var F,G,ue={},J=Object.keys(I);for(G=0;G<J.length;G++)F=J[G],M.indexOf(F)>=0||(ue[F]=I[F]);return ue}function l(I){var M=function(F,G){if(typeof F!="object"||F===null)return F;var ue=F[Symbol.toPrimitive];if(ue!==void 0){var J=ue.call(F,G||"default");if(typeof J!="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(F)}(I,"string");return typeof M=="symbol"?M:String(M)}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var c={init:"init"},d=function(I){var M=I.value;return M===void 0?"":M},f=function(){return r.createElement(r.Fragment,null," ")},h={Cell:d,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function m(){for(var I=arguments.length,M=new Array(I),F=0;F<I;F++)M[F]=arguments[F];return M.reduce(function(G,ue){var J=ue.style,fe=ue.className;return G=i({},G,{},s(ue,["style","className"])),J&&(G.style=G.style?i({},G.style||{},{},J||{}):J),fe&&(G.className=G.className?G.className+" "+fe:fe),G.className===""&&delete G.className,G},{})}var g=function(I,M){return M===void 0&&(M={}),function(F){return F===void 0&&(F={}),[].concat(I,[F]).reduce(function(G,ue){return function J(fe,Ie,Te){return typeof Ie=="function"?J({},Ie(fe,Te)):Array.isArray(Ie)?m.apply(void 0,[fe].concat(Ie)):m(fe,Ie)}(G,ue,i({},M,{userProps:F}))},{})}},p=function(I,M,F,G){return F===void 0&&(F={}),I.reduce(function(ue,J){return J(ue,F)},M)},v=function(I,M,F){return F===void 0&&(F={}),I.forEach(function(G){G(M,F)})};function b(I,M,F,G){I.findIndex(function(ue){return ue.pluginName===F}),M.forEach(function(ue){I.findIndex(function(J){return J.pluginName===ue})})}function y(I,M){return typeof I=="function"?I(M):I}function C(I){var M=r.useRef();return M.current=I,r.useCallback(function(){return M.current},[])}var D=typeof document<"u"?r.useLayoutEffect:r.useEffect;function A(I,M){var F=r.useRef(!1);D(function(){F.current&&I(),F.current=!0},M)}function T(I,M,F){return F===void 0&&(F={}),function(G,ue){ue===void 0&&(ue={});var J=typeof G=="string"?M[G]:G;if(J===void 0)throw console.info(M),new Error("Renderer Error ☝️");return B(J,i({},I,{column:M},F,{},ue))}}function B(I,M){return function(G){return typeof G=="function"&&(ue=Object.getPrototypeOf(G)).prototype&&ue.prototype.isReactComponent;var ue}(F=I)||typeof F=="function"||function(G){return typeof G=="object"&&typeof G.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(G.$$typeof.description)}(F)?r.createElement(I,M):I;var F}function j(I,M,F){return F===void 0&&(F=0),I.map(function(G){return N(G=i({},G,{parent:M,depth:F})),G.columns&&(G.columns=j(G.columns,G,F+1)),G})}function R(I){return te(I,"columns")}function N(I){var M=I.id,F=I.accessor,G=I.Header;if(typeof F=="string"){M=M||F;var ue=F.split(".");F=function(J){return function(fe,Ie,Te){if(!Ie)return fe;var Be,Ve=typeof Ie=="function"?Ie:JSON.stringify(Ie),We=V.get(Ve)||function(){var He=function(Re){return function Ue(tt,rt){if(rt===void 0&&(rt=[]),Array.isArray(tt))for(var ht=0;ht<tt.length;ht+=1)Ue(tt[ht],rt);else rt.push(tt);return rt}(Re).map(function(Ue){return String(Ue).replace(".","_")}).join(".").replace(le,".").replace(be,"").split(".")}(Ie);return V.set(Ve,He),He}();try{Be=We.reduce(function(He,Re){return He[Re]},fe)}catch{}return Be!==void 0?Be:Te}(J,ue)}}if(!M&&typeof G=="string"&&G&&(M=G),!M&&I.columns)throw console.error(I),new Error('A column ID (or unique "Header" value) is required!');if(!M)throw console.error(I),new Error("A column ID (or string accessor) is required!");return Object.assign(I,{id:M,accessor:F}),I}function _(I,M){if(!M)throw new Error;return Object.assign(I,i({Header:f,Footer:f},h,{},M,{},I)),Object.assign(I,{originalWidth:I.width}),I}function U(I,M,F){F===void 0&&(F=function(){return{}});for(var G=[],ue=I,J=0,fe=function(){return J++},Ie=function(){var Te={headers:[]},Be=[],Ve=ue.some(function(We){return We.parent});ue.forEach(function(We){var He,Re=[].concat(Be).reverse()[0];Ve&&(We.parent?He=i({},We.parent,{originalId:We.parent.id,id:We.parent.id+"_"+fe(),headers:[We]},F(We)):He=_(i({originalId:We.id+"_placeholder",id:We.id+"_placeholder_"+fe(),placeholderOf:We,headers:[We]},F(We)),M),Re&&Re.originalId===He.originalId?Re.headers.push(We):Be.push(He)),Te.headers.push(We)}),G.push(Te),ue=Be};ue.length;)Ie();return G.reverse()}var V=new Map;function z(){for(var I=arguments.length,M=new Array(I),F=0;F<I;F++)M[F]=arguments[F];for(var G=0;G<M.length;G+=1)if(M[G]!==void 0)return M[G]}function Y(I){if(typeof I=="function")return I}function te(I,M){var F=[];return function G(ue){ue.forEach(function(J){J[M]?G(J[M]):F.push(J)})}(I),F}function se(I,M){var F=M.manualExpandedKey,G=M.expanded,ue=M.expandSubRows,J=ue===void 0||ue,fe=[];return I.forEach(function(Ie){return function Te(Be,Ve){Ve===void 0&&(Ve=!0),Be.isExpanded=Be.original&&Be.original[F]||G[Be.id],Be.canExpand=Be.subRows&&!!Be.subRows.length,Ve&&fe.push(Be),Be.subRows&&Be.subRows.length&&Be.isExpanded&&Be.subRows.forEach(function(We){return Te(We,J)})}(Ie)}),fe}function he(I,M,F){return Y(I)||M[I]||F[I]||F.text}function pe(I,M,F){return I?I(M,F):M===void 0}function K(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var O=null,le=/\[/g,be=/\]/g,H=function(I){return i({role:"table"},I)},ie=function(I){return i({role:"rowgroup"},I)},oe=function(I,M){var F=M.column;return i({key:"header_"+F.id,colSpan:F.totalVisibleHeaderCount,role:"columnheader"},I)},ve=function(I,M){var F=M.column;return i({key:"footer_"+F.id,colSpan:F.totalVisibleHeaderCount},I)},$e=function(I,M){return i({key:"headerGroup_"+M.index,role:"row"},I)},Ne=function(I,M){return i({key:"footerGroup_"+M.index},I)},Ze=function(I,M){return i({key:"row_"+M.row.id,role:"row"},I)},ze=function(I,M){var F=M.cell;return i({key:"cell_"+F.row.id+"_"+F.column.id,role:"cell"},I)};function Xe(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[H],getTableBodyProps:[ie],getHeaderGroupProps:[$e],getFooterGroupProps:[Ne],getHeaderProps:[oe],getFooterProps:[ve],getRowProps:[Ze],getCellProps:[ze],useFinalInstance:[]}}c.resetHiddenColumns="resetHiddenColumns",c.toggleHideColumn="toggleHideColumn",c.setHiddenColumns="setHiddenColumns",c.toggleHideAllColumns="toggleHideAllColumns";var Me=function(I){I.getToggleHiddenProps=[Je],I.getToggleHideAllColumnsProps=[pt],I.stateReducers.push(ot),I.useInstanceBeforeDimensions.push(Et),I.headerGroupsDeps.push(function(M,F){var G=F.instance;return[].concat(M,[G.state.hiddenColumns])}),I.useInstance.push(Vt)};Me.pluginName="useColumnVisibility";var Je=function(I,M){var F=M.column;return[I,{onChange:function(G){F.toggleHidden(!G.target.checked)},style:{cursor:"pointer"},checked:F.isVisible,title:"Toggle Column Visible"}]},pt=function(I,M){var F=M.instance;return[I,{onChange:function(G){F.toggleHideAllColumns(!G.target.checked)},style:{cursor:"pointer"},checked:!F.allColumnsHidden&&!F.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!F.allColumnsHidden&&F.state.hiddenColumns.length}]};function ot(I,M,F,G){if(M.type===c.init)return i({hiddenColumns:[]},I);if(M.type===c.resetHiddenColumns)return i({},I,{hiddenColumns:G.initialState.hiddenColumns||[]});if(M.type===c.toggleHideColumn){var ue=(M.value!==void 0?M.value:!I.hiddenColumns.includes(M.columnId))?[].concat(I.hiddenColumns,[M.columnId]):I.hiddenColumns.filter(function(J){return J!==M.columnId});return i({},I,{hiddenColumns:ue})}return M.type===c.setHiddenColumns?i({},I,{hiddenColumns:y(M.value,I.hiddenColumns)}):M.type===c.toggleHideAllColumns?i({},I,{hiddenColumns:(M.value!==void 0?M.value:!I.hiddenColumns.length)?G.allColumns.map(function(J){return J.id}):[]}):void 0}function Et(I){var M=I.headers,F=I.state.hiddenColumns;r.useRef(!1).current;var G=0;M.forEach(function(ue){return G+=function J(fe,Ie){fe.isVisible=Ie&&!F.includes(fe.id);var Te=0;return fe.headers&&fe.headers.length?fe.headers.forEach(function(Be){return Te+=J(Be,fe.isVisible)}):Te=fe.isVisible?1:0,fe.totalVisibleHeaderCount=Te,Te}(ue,!0)})}function Vt(I){var M=I.columns,F=I.flatHeaders,G=I.dispatch,ue=I.allColumns,J=I.getHooks,fe=I.state.hiddenColumns,Ie=I.autoResetHiddenColumns,Te=Ie===void 0||Ie,Be=C(I),Ve=ue.length===fe.length,We=r.useCallback(function(rt,ht){return G({type:c.toggleHideColumn,columnId:rt,value:ht})},[G]),He=r.useCallback(function(rt){return G({type:c.setHiddenColumns,value:rt})},[G]),Re=r.useCallback(function(rt){return G({type:c.toggleHideAllColumns,value:rt})},[G]),Ue=g(J().getToggleHideAllColumnsProps,{instance:Be()});F.forEach(function(rt){rt.toggleHidden=function(ht){G({type:c.toggleHideColumn,columnId:rt.id,value:ht})},rt.getToggleHiddenProps=g(J().getToggleHiddenProps,{instance:Be(),column:rt})});var tt=C(Te);A(function(){tt()&&G({type:c.resetHiddenColumns})},[G,M]),Object.assign(I,{allColumnsHidden:Ve,toggleHideColumn:We,setHiddenColumns:He,toggleHideAllColumns:Re,getToggleHideAllColumnsProps:Ue})}var nt={},Ee={},kt=function(I,M,F){return I},ne=function(I,M){return I.subRows||[]},we=function(I,M,F){return""+(F?[F.id,M].join("."):M)},Ae=function(I){return I};function Se(I){var M=I.initialState,F=M===void 0?nt:M,G=I.defaultColumn,ue=G===void 0?Ee:G,J=I.getSubRows,fe=J===void 0?ne:J,Ie=I.getRowId,Te=Ie===void 0?we:Ie,Be=I.stateReducer,Ve=Be===void 0?kt:Be,We=I.useControlledState,He=We===void 0?Ae:We;return i({},s(I,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:F,defaultColumn:ue,getSubRows:fe,getRowId:Te,stateReducer:Ve,useControlledState:He})}function De(I,M){M===void 0&&(M=0);var F=0,G=0,ue=0,J=0;return I.forEach(function(fe){var Ie=fe.headers;if(fe.totalLeft=M,Ie&&Ie.length){var Te=De(Ie,M),Be=Te[0],Ve=Te[1],We=Te[2],He=Te[3];fe.totalMinWidth=Be,fe.totalWidth=Ve,fe.totalMaxWidth=We,fe.totalFlexWidth=He}else fe.totalMinWidth=fe.minWidth,fe.totalWidth=Math.min(Math.max(fe.minWidth,fe.width),fe.maxWidth),fe.totalMaxWidth=fe.maxWidth,fe.totalFlexWidth=fe.canResize?fe.totalWidth:0;fe.isVisible&&(M+=fe.totalWidth,F+=fe.totalMinWidth,G+=fe.totalWidth,ue+=fe.totalMaxWidth,J+=fe.totalFlexWidth)}),[F,G,ue,J]}function Ye(I){var M=I.data,F=I.rows,G=I.flatRows,ue=I.rowsById,J=I.column,fe=I.getRowId,Ie=I.getSubRows,Te=I.accessValueHooks,Be=I.getInstance;M.forEach(function(Ve,We){return function He(Re,Ue,tt,rt,ht){tt===void 0&&(tt=0);var _t=Re,ft=fe(Re,Ue,rt),Ke=ue[ft];if(Ke)Ke.subRows&&Ke.originalSubRows.forEach(function(ct,At){return He(ct,At,tt+1,Ke)});else if((Ke={id:ft,original:_t,index:Ue,depth:tt,cells:[{}]}).cells.map=K,Ke.cells.filter=K,Ke.cells.forEach=K,Ke.cells[0].getCellProps=K,Ke.values={},ht.push(Ke),G.push(Ke),ue[ft]=Ke,Ke.originalSubRows=Ie(Re,Ue),Ke.originalSubRows){var Rt=[];Ke.originalSubRows.forEach(function(ct,At){return He(ct,At,tt+1,Ke,Rt)}),Ke.subRows=Rt}J.accessor&&(Ke.values[J.id]=J.accessor(Re,Ue,Ke,ht,M)),Ke.values[J.id]=p(Te,Ke.values[J.id],{row:Ke,column:J,instance:Be()})}(Ve,We,0,void 0,F)})}c.resetExpanded="resetExpanded",c.toggleRowExpanded="toggleRowExpanded",c.toggleAllRowsExpanded="toggleAllRowsExpanded";var Qe=function(I){I.getToggleAllRowsExpandedProps=[xe],I.getToggleRowExpandedProps=[vt],I.stateReducers.push(Mt),I.useInstance.push(vn),I.prepareRow.push(lo)};Qe.pluginName="useExpanded";var xe=function(I,M){var F=M.instance;return[I,{onClick:function(G){F.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},vt=function(I,M){var F=M.row;return[I,{onClick:function(){F.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function Mt(I,M,F,G){if(M.type===c.init)return i({expanded:{}},I);if(M.type===c.resetExpanded)return i({},I,{expanded:G.initialState.expanded||{}});if(M.type===c.toggleAllRowsExpanded){var ue=M.value,J=G.rowsById,fe=Object.keys(J).length===Object.keys(I.expanded).length;if(ue!==void 0?ue:!fe){var Ie={};return Object.keys(J).forEach(function(Ue){Ie[Ue]=!0}),i({},I,{expanded:Ie})}return i({},I,{expanded:{}})}if(M.type===c.toggleRowExpanded){var Te,Be=M.id,Ve=M.value,We=I.expanded[Be],He=Ve!==void 0?Ve:!We;if(!We&&He)return i({},I,{expanded:i({},I.expanded,(Te={},Te[Be]=!0,Te))});if(We&&!He){var Re=I.expanded;return Re[Be],i({},I,{expanded:s(Re,[Be].map(l))})}return I}}function vn(I){var M=I.data,F=I.rows,G=I.rowsById,ue=I.manualExpandedKey,J=ue===void 0?"expanded":ue,fe=I.paginateExpandedRows,Ie=fe===void 0||fe,Te=I.expandSubRows,Be=Te===void 0||Te,Ve=I.autoResetExpanded,We=Ve===void 0||Ve,He=I.getHooks,Re=I.plugins,Ue=I.state.expanded,tt=I.dispatch;b(Re,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var rt=C(We),ht=!!(Object.keys(G).length&&Object.keys(Ue).length);ht&&Object.keys(G).some(function(qt){return!Ue[qt]})&&(ht=!1),A(function(){rt()&&tt({type:c.resetExpanded})},[tt,M]);var _t=r.useCallback(function(qt,St){tt({type:c.toggleRowExpanded,id:qt,value:St})},[tt]),ft=r.useCallback(function(qt){return tt({type:c.toggleAllRowsExpanded,value:qt})},[tt]),Ke=r.useMemo(function(){return Ie?se(F,{manualExpandedKey:J,expanded:Ue,expandSubRows:Be}):F},[Ie,F,J,Ue,Be]),Rt=r.useMemo(function(){return function(qt){var St=0;return Object.keys(qt).forEach(function(It){var cn=It.split(".");St=Math.max(St,cn.length)}),St}(Ue)},[Ue]),ct=C(I),At=g(He().getToggleAllRowsExpandedProps,{instance:ct()});Object.assign(I,{preExpandedRows:F,expandedRows:Ke,rows:Ke,expandedDepth:Rt,isAllRowsExpanded:ht,toggleRowExpanded:_t,toggleAllRowsExpanded:ft,getToggleAllRowsExpandedProps:At})}function lo(I,M){var F=M.instance.getHooks,G=M.instance;I.toggleRowExpanded=function(ue){return G.toggleRowExpanded(I.id,ue)},I.getToggleRowExpandedProps=g(F().getToggleRowExpandedProps,{instance:G,row:I})}var bn=function(I,M,F){return I=I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return String(J).toLowerCase().includes(String(F).toLowerCase())})})};bn.autoRemove=function(I){return!I};var Vr=function(I,M,F){return I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return J===void 0||String(J).toLowerCase()===String(F).toLowerCase()})})};Vr.autoRemove=function(I){return!I};var _a=function(I,M,F){return I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return J===void 0||String(J)===String(F)})})};_a.autoRemove=function(I){return!I};var vo=function(I,M,F){return I.filter(function(G){return M.some(function(ue){return G.values[ue].includes(F)})})};vo.autoRemove=function(I){return!I||!I.length};var Oo=function(I,M,F){return I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return J&&J.length&&F.every(function(fe){return J.includes(fe)})})})};Oo.autoRemove=function(I){return!I||!I.length};var Pn=function(I,M,F){return I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return J&&J.length&&F.some(function(fe){return J.includes(fe)})})})};Pn.autoRemove=function(I){return!I||!I.length};var Ji=function(I,M,F){return I.filter(function(G){return M.some(function(ue){var J=G.values[ue];return F.includes(J)})})};Ji.autoRemove=function(I){return!I||!I.length};var Yl=function(I,M,F){return I.filter(function(G){return M.some(function(ue){return G.values[ue]===F})})};Yl.autoRemove=function(I){return I===void 0};var sR=function(I,M,F){return I.filter(function(G){return M.some(function(ue){return G.values[ue]==F})})};sR.autoRemove=function(I){return I==null};var lR=function(I,M,F){var G=F||[],ue=G[0],J=G[1];if((ue=typeof ue=="number"?ue:-1/0)>(J=typeof J=="number"?J:1/0)){var fe=ue;ue=J,J=fe}return I.filter(function(Ie){return M.some(function(Te){var Be=Ie.values[Te];return Be>=ue&&Be<=J})})};lR.autoRemove=function(I){return!I||typeof I[0]!="number"&&typeof I[1]!="number"};var Um=Object.freeze({__proto__:null,text:bn,exactText:Vr,exactTextCase:_a,includes:vo,includesAll:Oo,includesSome:Pn,includesValue:Ji,exact:Yl,equals:sR,between:lR});c.resetFilters="resetFilters",c.setFilter="setFilter",c.setAllFilters="setAllFilters";var cR=function(I){I.stateReducers.push(Kq),I.useInstance.push(qq)};function Kq(I,M,F,G){if(M.type===c.init)return i({filters:[]},I);if(M.type===c.resetFilters)return i({},I,{filters:G.initialState.filters||[]});if(M.type===c.setFilter){var ue=M.columnId,J=M.filterValue,fe=G.allColumns,Ie=G.filterTypes,Te=fe.find(function(tt){return tt.id===ue});if(!Te)throw new Error("React-Table: Could not find a column with id: "+ue);var Be=he(Te.filter,Ie||{},Um),Ve=I.filters.find(function(tt){return tt.id===ue}),We=y(J,Ve&&Ve.value);return pe(Be.autoRemove,We,Te)?i({},I,{filters:I.filters.filter(function(tt){return tt.id!==ue})}):i({},I,Ve?{filters:I.filters.map(function(tt){return tt.id===ue?{id:ue,value:We}:tt})}:{filters:[].concat(I.filters,[{id:ue,value:We}])})}if(M.type===c.setAllFilters){var He=M.filters,Re=G.allColumns,Ue=G.filterTypes;return i({},I,{filters:y(He,I.filters).filter(function(tt){var rt=Re.find(function(ht){return ht.id===tt.id});return!pe(he(rt.filter,Ue||{},Um).autoRemove,tt.value,rt)})})}}function qq(I){var M=I.data,F=I.rows,G=I.flatRows,ue=I.rowsById,J=I.allColumns,fe=I.filterTypes,Ie=I.manualFilters,Te=I.defaultCanFilter,Be=Te!==void 0&&Te,Ve=I.disableFilters,We=I.state.filters,He=I.dispatch,Re=I.autoResetFilters,Ue=Re===void 0||Re,tt=r.useCallback(function(ct,At){He({type:c.setFilter,columnId:ct,filterValue:At})},[He]),rt=r.useCallback(function(ct){He({type:c.setAllFilters,filters:ct})},[He]);J.forEach(function(ct){var At=ct.id,qt=ct.accessor,St=ct.defaultCanFilter,It=ct.disableFilters;ct.canFilter=qt?z(It!==!0&&void 0,Ve!==!0&&void 0,!0):z(St,Be,!1),ct.setFilter=function(Pt){return tt(ct.id,Pt)};var cn=We.find(function(Pt){return Pt.id===At});ct.filterValue=cn&&cn.value});var ht=r.useMemo(function(){if(Ie||!We.length)return[F,G,ue];var ct=[],At={};return[function qt(St,It){It===void 0&&(It=0);var cn=St;return(cn=We.reduce(function(Pt,sn){var Jt=sn.id,An=sn.value,gt=J.find(function(gr){return gr.id===Jt});if(!gt)return Pt;It===0&&(gt.preFilteredRows=Pt);var Qt=he(gt.filter,fe||{},Um);return Qt?(gt.filteredRows=Qt(Pt,[Jt],An),gt.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+gt.id+"."),Pt)},St)).forEach(function(Pt){ct.push(Pt),At[Pt.id]=Pt,Pt.subRows&&(Pt.subRows=Pt.subRows&&Pt.subRows.length>0?qt(Pt.subRows,It+1):Pt.subRows)}),cn}(F),ct,At]},[Ie,We,F,G,ue,J,fe]),_t=ht[0],ft=ht[1],Ke=ht[2];r.useMemo(function(){J.filter(function(ct){return!We.find(function(At){return At.id===ct.id})}).forEach(function(ct){ct.preFilteredRows=_t,ct.filteredRows=_t})},[_t,We,J]);var Rt=C(Ue);A(function(){Rt()&&He({type:c.resetFilters})},[He,Ie?null:M]),Object.assign(I,{preFilteredRows:F,preFilteredFlatRows:G,preFilteredRowsById:ue,filteredRows:_t,filteredFlatRows:ft,filteredRowsById:Ke,rows:_t,flatRows:ft,rowsById:Ke,setFilter:tt,setAllFilters:rt})}cR.pluginName="useFilters",c.resetGlobalFilter="resetGlobalFilter",c.setGlobalFilter="setGlobalFilter";var uR=function(I){I.stateReducers.push(Xq),I.useInstance.push(Qq)};function Xq(I,M,F,G){if(M.type===c.resetGlobalFilter)return i({},I,{globalFilter:G.initialState.globalFilter||void 0});if(M.type===c.setGlobalFilter){var ue=M.filterValue,J=G.userFilterTypes,fe=he(G.globalFilter,J||{},Um),Ie=y(ue,I.globalFilter);return pe(fe.autoRemove,Ie)?(I.globalFilter,s(I,["globalFilter"])):i({},I,{globalFilter:Ie})}}function Qq(I){var M=I.data,F=I.rows,G=I.flatRows,ue=I.rowsById,J=I.allColumns,fe=I.filterTypes,Ie=I.globalFilter,Te=I.manualGlobalFilter,Be=I.state.globalFilter,Ve=I.dispatch,We=I.autoResetGlobalFilter,He=We===void 0||We,Re=I.disableGlobalFilter,Ue=r.useCallback(function(Ke){Ve({type:c.setGlobalFilter,filterValue:Ke})},[Ve]),tt=r.useMemo(function(){if(Te||Be===void 0)return[F,G,ue];var Ke=[],Rt={},ct=he(Ie,fe||{},Um);if(!ct)return console.warn("Could not find a valid 'globalFilter' option."),F;J.forEach(function(qt){var St=qt.disableGlobalFilter;qt.canFilter=z(St!==!0&&void 0,Re!==!0&&void 0,!0)});var At=J.filter(function(qt){return qt.canFilter===!0});return[function qt(St){return(St=ct(St,At.map(function(It){return It.id}),Be)).forEach(function(It){Ke.push(It),Rt[It.id]=It,It.subRows=It.subRows&&It.subRows.length?qt(It.subRows):It.subRows}),St}(F),Ke,Rt]},[Te,Be,Ie,fe,J,F,G,ue,Re]),rt=tt[0],ht=tt[1],_t=tt[2],ft=C(He);A(function(){ft()&&Ve({type:c.resetGlobalFilter})},[Ve,Te?null:M]),Object.assign(I,{preGlobalFilteredRows:F,preGlobalFilteredFlatRows:G,preGlobalFilteredRowsById:ue,globalFilteredRows:rt,globalFilteredFlatRows:ht,globalFilteredRowsById:_t,rows:rt,flatRows:ht,rowsById:_t,setGlobalFilter:Ue,disableGlobalFilter:Re})}function dR(I,M){return M.reduce(function(F,G){return F+(typeof G=="number"?G:0)},0)}uR.pluginName="useGlobalFilter";var fR=Object.freeze({__proto__:null,sum:dR,min:function(I){var M=I[0]||0;return I.forEach(function(F){typeof F=="number"&&(M=Math.min(M,F))}),M},max:function(I){var M=I[0]||0;return I.forEach(function(F){typeof F=="number"&&(M=Math.max(M,F))}),M},minMax:function(I){var M=I[0]||0,F=I[0]||0;return I.forEach(function(G){typeof G=="number"&&(M=Math.min(M,G),F=Math.max(F,G))}),M+".."+F},average:function(I){return dR(0,I)/I.length},median:function(I){if(!I.length)return null;var M=Math.floor(I.length/2),F=[].concat(I).sort(function(G,ue){return G-ue});return I.length%2!=0?F[M]:(F[M-1]+F[M])/2},unique:function(I){return Array.from(new Set(I).values())},uniqueCount:function(I){return new Set(I).size},count:function(I){return I.length}}),Zq=[],Jq={};c.resetGroupBy="resetGroupBy",c.setGroupBy="setGroupBy",c.toggleGroupBy="toggleGroupBy";var hR=function(I){I.getGroupByToggleProps=[eX],I.stateReducers.push(tX),I.visibleColumnsDeps.push(function(M,F){var G=F.instance;return[].concat(M,[G.state.groupBy])}),I.visibleColumns.push(nX),I.useInstance.push(oX),I.prepareRow.push(aX)};hR.pluginName="useGroupBy";var eX=function(I,M){var F=M.header;return[I,{onClick:F.canGroupBy?function(G){G.persist(),F.toggleGroupBy()}:void 0,style:{cursor:F.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function tX(I,M,F,G){if(M.type===c.init)return i({groupBy:[]},I);if(M.type===c.resetGroupBy)return i({},I,{groupBy:G.initialState.groupBy||[]});if(M.type===c.setGroupBy)return i({},I,{groupBy:M.value});if(M.type===c.toggleGroupBy){var ue=M.columnId,J=M.value,fe=J!==void 0?J:!I.groupBy.includes(ue);return i({},I,fe?{groupBy:[].concat(I.groupBy,[ue])}:{groupBy:I.groupBy.filter(function(Ie){return Ie!==ue})})}}function nX(I,M){var F=M.instance.state.groupBy,G=F.map(function(J){return I.find(function(fe){return fe.id===J})}).filter(Boolean),ue=I.filter(function(J){return!F.includes(J.id)});return(I=[].concat(G,ue)).forEach(function(J){J.isGrouped=F.includes(J.id),J.groupedIndex=F.indexOf(J.id)}),I}var rX={};function oX(I){var M=I.data,F=I.rows,G=I.flatRows,ue=I.rowsById,J=I.allColumns,fe=I.flatHeaders,Ie=I.groupByFn,Te=Ie===void 0?mR:Ie,Be=I.manualGroupBy,Ve=I.aggregations,We=Ve===void 0?rX:Ve,He=I.plugins,Re=I.state.groupBy,Ue=I.dispatch,tt=I.autoResetGroupBy,rt=tt===void 0||tt,ht=I.disableGroupBy,_t=I.defaultCanGroupBy,ft=I.getHooks;b(He,["useColumnOrder","useFilters"],"useGroupBy");var Ke=C(I);J.forEach(function(gt){var Qt=gt.accessor,gr=gt.defaultGroupBy,Bo=gt.disableGroupBy;gt.canGroupBy=Qt?z(gt.canGroupBy,Bo!==!0&&void 0,ht!==!0&&void 0,!0):z(gt.canGroupBy,gr,_t,!1),gt.canGroupBy&&(gt.toggleGroupBy=function(){return I.toggleGroupBy(gt.id)}),gt.Aggregated=gt.Aggregated||gt.Cell});var Rt=r.useCallback(function(gt,Qt){Ue({type:c.toggleGroupBy,columnId:gt,value:Qt})},[Ue]),ct=r.useCallback(function(gt){Ue({type:c.setGroupBy,value:gt})},[Ue]);fe.forEach(function(gt){gt.getGroupByToggleProps=g(ft().getGroupByToggleProps,{instance:Ke(),header:gt})});var At=r.useMemo(function(){if(Be||!Re.length)return[F,G,ue,Zq,Jq,G,ue];var gt=Re.filter(function(Gr){return J.find(function(Kl){return Kl.id===Gr})}),Qt=[],gr={},Bo=[],Dt={},tr=[],Ar={},ko=function Gr(Kl,Ys,PR){if(Ys===void 0&&(Ys=0),Ys===gt.length)return Kl.map(function(Qv){return i({},Qv,{depth:Ys})});var aw=gt[Ys],YX=Te(Kl,aw);return Object.entries(YX).map(function(Qv,KX){var RR=Qv[0],Zv=Qv[1],Jv=aw+":"+RR,jR=Gr(Zv,Ys+1,Jv=PR?PR+">"+Jv:Jv),NR=Ys?te(Zv,"leafRows"):Zv,qX=function(Fa,iw,QX){var eb={};return J.forEach(function(Or){if(gt.includes(Or.id))eb[Or.id]=iw[0]?iw[0].values[Or.id]:null;else{var LR=typeof Or.aggregate=="function"?Or.aggregate:We[Or.aggregate]||fR[Or.aggregate];if(LR){var ZX=iw.map(function(tb){return tb.values[Or.id]}),JX=Fa.map(function(tb){var sw=tb.values[Or.id];if(!QX&&Or.aggregateValue){var $R=typeof Or.aggregateValue=="function"?Or.aggregateValue:We[Or.aggregateValue]||fR[Or.aggregateValue];if(!$R)throw console.info({column:Or}),new Error("React Table: Invalid column.aggregateValue option for column listed above");sw=$R(sw,tb,Or)}return sw});eb[Or.id]=LR(JX,ZX)}else{if(Or.aggregate)throw console.info({column:Or}),new Error("React Table: Invalid column.aggregate option for column listed above");eb[Or.id]=null}}}),eb}(NR,Zv,Ys),XX={id:Jv,isGrouped:!0,groupByID:aw,groupByVal:RR,values:qX,subRows:jR,leafRows:NR,depth:Ys,index:KX};return jR.forEach(function(Fa){Qt.push(Fa),gr[Fa.id]=Fa,Fa.isGrouped?(Bo.push(Fa),Dt[Fa.id]=Fa):(tr.push(Fa),Ar[Fa.id]=Fa)}),XX})}(F);return ko.forEach(function(Gr){Qt.push(Gr),gr[Gr.id]=Gr,Gr.isGrouped?(Bo.push(Gr),Dt[Gr.id]=Gr):(tr.push(Gr),Ar[Gr.id]=Gr)}),[ko,Qt,gr,Bo,Dt,tr,Ar]},[Be,Re,F,G,ue,J,We,Te]),qt=At[0],St=At[1],It=At[2],cn=At[3],Pt=At[4],sn=At[5],Jt=At[6],An=C(rt);A(function(){An()&&Ue({type:c.resetGroupBy})},[Ue,Be?null:M]),Object.assign(I,{preGroupedRows:F,preGroupedFlatRow:G,preGroupedRowsById:ue,groupedRows:qt,groupedFlatRows:St,groupedRowsById:It,onlyGroupedFlatRows:cn,onlyGroupedRowsById:Pt,nonGroupedFlatRows:sn,nonGroupedRowsById:Jt,rows:qt,flatRows:St,rowsById:It,toggleGroupBy:Rt,setGroupBy:ct})}function aX(I){I.allCells.forEach(function(M){var F;M.isGrouped=M.column.isGrouped&&M.column.id===I.groupByID,M.isPlaceholder=!M.isGrouped&&M.column.isGrouped,M.isAggregated=!M.isGrouped&&!M.isPlaceholder&&((F=I.subRows)==null?void 0:F.length)})}function mR(I,M){return I.reduce(function(F,G,ue){var J=""+G.values[M];return F[J]=Array.isArray(F[J])?F[J]:[],F[J].push(G),F},{})}var pR=/([0-9]+)/gm;function JC(I,M){return I===M?0:I>M?1:-1}function Vm(I,M,F){return[I.values[F],M.values[F]]}function gR(I){return typeof I=="number"?isNaN(I)||I===1/0||I===-1/0?"":String(I):typeof I=="string"?I:""}var iX=Object.freeze({__proto__:null,alphanumeric:function(I,M,F){var G=Vm(I,M,F),ue=G[0],J=G[1];for(ue=gR(ue),J=gR(J),ue=ue.split(pR).filter(Boolean),J=J.split(pR).filter(Boolean);ue.length&&J.length;){var fe=ue.shift(),Ie=J.shift(),Te=parseInt(fe,10),Be=parseInt(Ie,10),Ve=[Te,Be].sort();if(isNaN(Ve[0])){if(fe>Ie)return 1;if(Ie>fe)return-1}else{if(isNaN(Ve[1]))return isNaN(Te)?-1:1;if(Te>Be)return 1;if(Be>Te)return-1}}return ue.length-J.length},datetime:function(I,M,F){var G=Vm(I,M,F),ue=G[0],J=G[1];return JC(ue=ue.getTime(),J=J.getTime())},basic:function(I,M,F){var G=Vm(I,M,F);return JC(G[0],G[1])},string:function(I,M,F){var G=Vm(I,M,F),ue=G[0],J=G[1];for(ue=ue.split("").filter(Boolean),J=J.split("").filter(Boolean);ue.length&&J.length;){var fe=ue.shift(),Ie=J.shift(),Te=fe.toLowerCase(),Be=Ie.toLowerCase();if(Te>Be)return 1;if(Be>Te)return-1;if(fe>Ie)return 1;if(Ie>fe)return-1}return ue.length-J.length},number:function(I,M,F){var G=Vm(I,M,F),ue=G[0],J=G[1],fe=/[^0-9.]/gi;return JC(ue=Number(String(ue).replace(fe,"")),J=Number(String(J).replace(fe,"")))}});c.resetSortBy="resetSortBy",c.setSortBy="setSortBy",c.toggleSortBy="toggleSortBy",c.clearSortBy="clearSortBy",h.sortType="alphanumeric",h.sortDescFirst=!1;var vR=function(I){I.getSortByToggleProps=[sX],I.stateReducers.push(lX),I.useInstance.push(cX)};vR.pluginName="useSortBy";var sX=function(I,M){var F=M.instance,G=M.column,ue=F.isMultiSortEvent,J=ue===void 0?function(fe){return fe.shiftKey}:ue;return[I,{onClick:G.canSort?function(fe){fe.persist(),G.toggleSortBy(void 0,!F.disableMultiSort&&J(fe))}:void 0,style:{cursor:G.canSort?"pointer":void 0},title:G.canSort?"Toggle SortBy":void 0}]};function lX(I,M,F,G){if(M.type===c.init)return i({sortBy:[]},I);if(M.type===c.resetSortBy)return i({},I,{sortBy:G.initialState.sortBy||[]});if(M.type===c.clearSortBy)return i({},I,{sortBy:I.sortBy.filter(function(Ke){return Ke.id!==M.columnId})});if(M.type===c.setSortBy)return i({},I,{sortBy:M.sortBy});if(M.type===c.toggleSortBy){var ue,J=M.columnId,fe=M.desc,Ie=M.multi,Te=G.allColumns,Be=G.disableMultiSort,Ve=G.disableSortRemove,We=G.disableMultiRemove,He=G.maxMultiSortColCount,Re=He===void 0?Number.MAX_SAFE_INTEGER:He,Ue=I.sortBy,tt=Te.find(function(Ke){return Ke.id===J}).sortDescFirst,rt=Ue.find(function(Ke){return Ke.id===J}),ht=Ue.findIndex(function(Ke){return Ke.id===J}),_t=fe!=null,ft=[];return(ue=!Be&&Ie?rt?"toggle":"add":ht!==Ue.length-1||Ue.length!==1?"replace":rt?"toggle":"replace")!="toggle"||Ve||_t||Ie&&We||!(rt&&rt.desc&&!tt||!rt.desc&&tt)||(ue="remove"),ue==="replace"?ft=[{id:J,desc:_t?fe:tt}]:ue==="add"?(ft=[].concat(Ue,[{id:J,desc:_t?fe:tt}])).splice(0,ft.length-Re):ue==="toggle"?ft=Ue.map(function(Ke){return Ke.id===J?i({},Ke,{desc:_t?fe:!rt.desc}):Ke}):ue==="remove"&&(ft=Ue.filter(function(Ke){return Ke.id!==J})),i({},I,{sortBy:ft})}}function cX(I){var M=I.data,F=I.rows,G=I.flatRows,ue=I.allColumns,J=I.orderByFn,fe=J===void 0?bR:J,Ie=I.sortTypes,Te=I.manualSortBy,Be=I.defaultCanSort,Ve=I.disableSortBy,We=I.flatHeaders,He=I.state.sortBy,Re=I.dispatch,Ue=I.plugins,tt=I.getHooks,rt=I.autoResetSortBy,ht=rt===void 0||rt;b(Ue,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var _t=r.useCallback(function(St){Re({type:c.setSortBy,sortBy:St})},[Re]),ft=r.useCallback(function(St,It,cn){Re({type:c.toggleSortBy,columnId:St,desc:It,multi:cn})},[Re]),Ke=C(I);We.forEach(function(St){var It=St.accessor,cn=St.canSort,Pt=St.disableSortBy,sn=St.id,Jt=It?z(Pt!==!0&&void 0,Ve!==!0&&void 0,!0):z(Be,cn,!1);St.canSort=Jt,St.canSort&&(St.toggleSortBy=function(gt,Qt){return ft(St.id,gt,Qt)},St.clearSortBy=function(){Re({type:c.clearSortBy,columnId:St.id})}),St.getSortByToggleProps=g(tt().getSortByToggleProps,{instance:Ke(),column:St});var An=He.find(function(gt){return gt.id===sn});St.isSorted=!!An,St.sortedIndex=He.findIndex(function(gt){return gt.id===sn}),St.isSortedDesc=St.isSorted?An.desc:void 0});var Rt=r.useMemo(function(){if(Te||!He.length)return[F,G];var St=[],It=He.filter(function(cn){return ue.find(function(Pt){return Pt.id===cn.id})});return[function cn(Pt){var sn=fe(Pt,It.map(function(Jt){var An=ue.find(function(gr){return gr.id===Jt.id});if(!An)throw new Error("React-Table: Could not find a column with id: "+Jt.id+" while sorting");var gt=An.sortType,Qt=Y(gt)||(Ie||{})[gt]||iX[gt];if(!Qt)throw new Error("React-Table: Could not find a valid sortType of '"+gt+"' for column '"+Jt.id+"'.");return function(gr,Bo){return Qt(gr,Bo,Jt.id,Jt.desc)}}),It.map(function(Jt){var An=ue.find(function(gt){return gt.id===Jt.id});return An&&An.sortInverted?Jt.desc:!Jt.desc}));return sn.forEach(function(Jt){St.push(Jt),Jt.subRows&&Jt.subRows.length!==0&&(Jt.subRows=cn(Jt.subRows))}),sn}(F),St]},[Te,He,F,G,ue,fe,Ie]),ct=Rt[0],At=Rt[1],qt=C(ht);A(function(){qt()&&Re({type:c.resetSortBy})},[Te?null:M]),Object.assign(I,{preSortedRows:F,preSortedFlatRows:G,sortedRows:ct,sortedFlatRows:At,rows:ct,flatRows:At,setSortBy:_t,toggleSortBy:ft})}function bR(I,M,F){return[].concat(I).sort(function(G,ue){for(var J=0;J<M.length;J+=1){var fe=M[J],Ie=F[J]===!1||F[J]==="desc",Te=fe(G,ue);if(Te!==0)return Ie?-Te:Te}return F[0]?G.index-ue.index:ue.index-G.index})}c.resetPage="resetPage",c.gotoPage="gotoPage",c.setPageSize="setPageSize";var yR=function(I){I.stateReducers.push(uX),I.useInstance.push(dX)};function uX(I,M,F,G){if(M.type===c.init)return i({pageSize:10,pageIndex:0},I);if(M.type===c.resetPage)return i({},I,{pageIndex:G.initialState.pageIndex||0});if(M.type===c.gotoPage){var ue=G.pageCount,J=G.page,fe=y(M.pageIndex,I.pageIndex),Ie=!1;return fe>I.pageIndex?Ie=ue===-1?J.length>=I.pageSize:fe<ue:fe<I.pageIndex&&(Ie=fe>-1),Ie?i({},I,{pageIndex:fe}):I}if(M.type===c.setPageSize){var Te=M.pageSize,Be=I.pageSize*I.pageIndex;return i({},I,{pageIndex:Math.floor(Be/Te),pageSize:Te})}}function dX(I){var M=I.rows,F=I.autoResetPage,G=F===void 0||F,ue=I.manualExpandedKey,J=ue===void 0?"expanded":ue,fe=I.plugins,Ie=I.pageCount,Te=I.paginateExpandedRows,Be=Te===void 0||Te,Ve=I.expandSubRows,We=Ve===void 0||Ve,He=I.state,Re=He.pageSize,Ue=He.pageIndex,tt=He.expanded,rt=He.globalFilter,ht=He.filters,_t=He.groupBy,ft=He.sortBy,Ke=I.dispatch,Rt=I.data,ct=I.manualPagination;b(fe,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var At=C(G);A(function(){At()&&Ke({type:c.resetPage})},[Ke,ct?null:Rt,rt,ht,_t,ft]);var qt=ct?Ie:Math.ceil(M.length/Re),St=r.useMemo(function(){return qt>0?[].concat(new Array(qt)).fill(null).map(function(Qt,gr){return gr}):[]},[qt]),It=r.useMemo(function(){var Qt;if(ct)Qt=M;else{var gr=Re*Ue,Bo=gr+Re;Qt=M.slice(gr,Bo)}return Be?Qt:se(Qt,{manualExpandedKey:J,expanded:tt,expandSubRows:We})},[We,tt,J,ct,Ue,Re,Be,M]),cn=Ue>0,Pt=qt===-1?It.length>=Re:Ue<qt-1,sn=r.useCallback(function(Qt){Ke({type:c.gotoPage,pageIndex:Qt})},[Ke]),Jt=r.useCallback(function(){return sn(function(Qt){return Qt-1})},[sn]),An=r.useCallback(function(){return sn(function(Qt){return Qt+1})},[sn]),gt=r.useCallback(function(Qt){Ke({type:c.setPageSize,pageSize:Qt})},[Ke]);Object.assign(I,{pageOptions:St,pageCount:qt,page:It,canPreviousPage:cn,canNextPage:Pt,gotoPage:sn,previousPage:Jt,nextPage:An,setPageSize:gt})}yR.pluginName="usePagination",c.resetPivot="resetPivot",c.togglePivot="togglePivot";var xR=function(I){I.getPivotToggleProps=[fX],I.stateReducers.push(hX),I.useInstanceAfterData.push(mX),I.allColumns.push(pX),I.accessValue.push(gX),I.materializedColumns.push(vX),I.materializedColumnsDeps.push(bX),I.visibleColumns.push(yX),I.visibleColumnsDeps.push(xX),I.useInstance.push(CX),I.prepareRow.push(wX)};xR.pluginName="usePivotColumns";var CR=[],fX=function(I,M){var F=M.header;return[I,{onClick:F.canPivot?function(G){G.persist(),F.togglePivot()}:void 0,style:{cursor:F.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function hX(I,M,F,G){if(M.type===c.init)return i({pivotColumns:CR},I);if(M.type===c.resetPivot)return i({},I,{pivotColumns:G.initialState.pivotColumns||CR});if(M.type===c.togglePivot){var ue=M.columnId,J=M.value,fe=J!==void 0?J:!I.pivotColumns.includes(ue);return i({},I,fe?{pivotColumns:[].concat(I.pivotColumns,[ue])}:{pivotColumns:I.pivotColumns.filter(function(Ie){return Ie!==ue})})}}function mX(I){I.allColumns.forEach(function(M){M.isPivotSource=I.state.pivotColumns.includes(M.id)})}function pX(I,M){var F=M.instance;return I.forEach(function(G){G.isPivotSource=F.state.pivotColumns.includes(G.id),G.uniqueValues=new Set}),I}function gX(I,M){var F=M.column;return F.uniqueValues&&I!==void 0&&F.uniqueValues.add(I),I}function vX(I,M){var F=M.instance,G=F.allColumns,ue=F.state;if(!ue.pivotColumns.length||!ue.groupBy||!ue.groupBy.length)return I;var J=ue.pivotColumns.map(function(Te){return G.find(function(Be){return Be.id===Te})}).filter(Boolean),fe=G.filter(function(Te){return!Te.isPivotSource&&!ue.groupBy.includes(Te.id)&&!ue.pivotColumns.includes(Te.id)}),Ie=R(function Te(Be,Ve,We){Be===void 0&&(Be=0),We===void 0&&(We=[]);var He=J[Be];return He?Array.from(He.uniqueValues).sort().map(function(Re){var Ue=i({},He,{Header:He.PivotHeader||typeof He.header=="string"?He.Header+": "+Re:Re,isPivotGroup:!0,parent:Ve,depth:Be,id:Ve?Ve.id+"."+He.id+"."+Re:He.id+"."+Re,pivotValue:Re});return Ue.columns=Te(Be+1,Ue,[].concat(We,[function(tt){return tt.values[He.id]===Re}])),Ue}):fe.map(function(Re){return i({},Re,{canPivot:!1,isPivoted:!0,parent:Ve,depth:Be,id:""+(Ve?Ve.id+"."+Re.id:Re.id),accessor:function(Ue,tt,rt){if(We.every(function(ht){return ht(rt)}))return rt.values[Re.id]}})})}());return[].concat(I,Ie)}function bX(I,M){var F=M.instance.state,G=F.pivotColumns,ue=F.groupBy;return[].concat(I,[G,ue])}function yX(I,M){var F=M.instance.state;return I=I.filter(function(G){return!G.isPivotSource}),F.pivotColumns.length&&F.groupBy&&F.groupBy.length&&(I=I.filter(function(G){return G.isGrouped||G.isPivoted})),I}function xX(I,M){var F=M.instance;return[].concat(I,[F.state.pivotColumns,F.state.groupBy])}function CX(I){var M=I.columns,F=I.allColumns,G=I.flatHeaders,ue=I.getHooks,J=I.plugins,fe=I.dispatch,Ie=I.autoResetPivot,Te=Ie===void 0||Ie,Be=I.manaulPivot,Ve=I.disablePivot,We=I.defaultCanPivot;b(J,["useGroupBy"],"usePivotColumns");var He=C(I);F.forEach(function(Ue){var tt=Ue.accessor,rt=Ue.defaultPivot,ht=Ue.disablePivot;Ue.canPivot=tt?z(Ue.canPivot,ht!==!0&&void 0,Ve!==!0&&void 0,!0):z(Ue.canPivot,rt,We,!1),Ue.canPivot&&(Ue.togglePivot=function(){return I.togglePivot(Ue.id)}),Ue.Aggregated=Ue.Aggregated||Ue.Cell}),G.forEach(function(Ue){Ue.getPivotToggleProps=g(ue().getPivotToggleProps,{instance:He(),header:Ue})});var Re=C(Te);A(function(){Re()&&fe({type:c.resetPivot})},[fe,Be?null:M]),Object.assign(I,{togglePivot:function(Ue,tt){fe({type:c.togglePivot,columnId:Ue,value:tt})}})}function wX(I){I.allCells.forEach(function(M){M.isPivoted=M.column.isPivoted})}c.resetSelectedRows="resetSelectedRows",c.toggleAllRowsSelected="toggleAllRowsSelected",c.toggleRowSelected="toggleRowSelected",c.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var wR=function(I){I.getToggleRowSelectedProps=[SX],I.getToggleAllRowsSelectedProps=[DX],I.getToggleAllPageRowsSelectedProps=[EX],I.stateReducers.push(IX),I.useInstance.push(TX),I.prepareRow.push(AX)};wR.pluginName="useRowSelect";var SX=function(I,M){var F=M.instance,G=M.row,ue=F.manualRowSelectedKey,J=ue===void 0?"isSelected":ue;return[I,{onChange:function(fe){G.toggleRowSelected(fe.target.checked)},style:{cursor:"pointer"},checked:!(!G.original||!G.original[J])||G.isSelected,title:"Toggle Row Selected",indeterminate:G.isSomeSelected}]},DX=function(I,M){var F=M.instance;return[I,{onChange:function(G){F.toggleAllRowsSelected(G.target.checked)},style:{cursor:"pointer"},checked:F.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!F.isAllRowsSelected&&Object.keys(F.state.selectedRowIds).length)}]},EX=function(I,M){var F=M.instance;return[I,{onChange:function(G){F.toggleAllPageRowsSelected(G.target.checked)},style:{cursor:"pointer"},checked:F.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!F.isAllPageRowsSelected&&F.page.some(function(G){var ue=G.id;return F.state.selectedRowIds[ue]}))}]};function IX(I,M,F,G){if(M.type===c.init)return i({selectedRowIds:{}},I);if(M.type===c.resetSelectedRows)return i({},I,{selectedRowIds:G.initialState.selectedRowIds||{}});if(M.type===c.toggleAllRowsSelected){var ue=M.value,J=G.isAllRowsSelected,fe=G.rowsById,Ie=G.nonGroupedRowsById,Te=Ie===void 0?fe:Ie,Be=ue!==void 0?ue:!J,Ve=Object.assign({},I.selectedRowIds);return Be?Object.keys(Te).forEach(function(sn){Ve[sn]=!0}):Object.keys(Te).forEach(function(sn){delete Ve[sn]}),i({},I,{selectedRowIds:Ve})}if(M.type===c.toggleRowSelected){var We=M.id,He=M.value,Re=G.rowsById,Ue=G.selectSubRows,tt=Ue===void 0||Ue,rt=G.getSubRows,ht=I.selectedRowIds[We],_t=He!==void 0?He:!ht;if(ht===_t)return I;var ft=i({},I.selectedRowIds);return function sn(Jt){var An=Re[Jt];if(An&&(An.isGrouped||(_t?ft[Jt]=!0:delete ft[Jt]),tt&&rt(An)))return rt(An).forEach(function(gt){return sn(gt.id)})}(We),i({},I,{selectedRowIds:ft})}if(M.type===c.toggleAllPageRowsSelected){var Ke=M.value,Rt=G.page,ct=G.rowsById,At=G.selectSubRows,qt=At===void 0||At,St=G.isAllPageRowsSelected,It=G.getSubRows,cn=Ke!==void 0?Ke:!St,Pt=i({},I.selectedRowIds);return Rt.forEach(function(sn){return function Jt(An){var gt=ct[An];if(gt.isGrouped||(cn?Pt[An]=!0:delete Pt[An]),qt&&It(gt))return It(gt).forEach(function(Qt){return Jt(Qt.id)})}(sn.id)}),i({},I,{selectedRowIds:Pt})}return I}function TX(I){var M=I.data,F=I.rows,G=I.getHooks,ue=I.plugins,J=I.rowsById,fe=I.nonGroupedRowsById,Ie=fe===void 0?J:fe,Te=I.autoResetSelectedRows,Be=Te===void 0||Te,Ve=I.state.selectedRowIds,We=I.selectSubRows,He=We===void 0||We,Re=I.dispatch,Ue=I.page,tt=I.getSubRows;b(ue,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var rt=r.useMemo(function(){var It=[];return F.forEach(function(cn){var Pt=He?function sn(Jt,An,gt){if(An[Jt.id])return!0;var Qt=gt(Jt);if(Qt&&Qt.length){var gr=!0,Bo=!1;return Qt.forEach(function(Dt){Bo&&!gr||(sn(Dt,An,gt)?Bo=!0:gr=!1)}),!!gr||!!Bo&&null}return!1}(cn,Ve,tt):!!Ve[cn.id];cn.isSelected=!!Pt,cn.isSomeSelected=Pt===null,Pt&&It.push(cn)}),It},[F,He,Ve,tt]),ht=!!(Object.keys(Ie).length&&Object.keys(Ve).length),_t=ht;ht&&Object.keys(Ie).some(function(It){return!Ve[It]})&&(ht=!1),ht||Ue&&Ue.length&&Ue.some(function(It){var cn=It.id;return!Ve[cn]})&&(_t=!1);var ft=C(Be);A(function(){ft()&&Re({type:c.resetSelectedRows})},[Re,M]);var Ke=r.useCallback(function(It){return Re({type:c.toggleAllRowsSelected,value:It})},[Re]),Rt=r.useCallback(function(It){return Re({type:c.toggleAllPageRowsSelected,value:It})},[Re]),ct=r.useCallback(function(It,cn){return Re({type:c.toggleRowSelected,id:It,value:cn})},[Re]),At=C(I),qt=g(G().getToggleAllRowsSelectedProps,{instance:At()}),St=g(G().getToggleAllPageRowsSelectedProps,{instance:At()});Object.assign(I,{selectedFlatRows:rt,isAllRowsSelected:ht,isAllPageRowsSelected:_t,toggleRowSelected:ct,toggleAllRowsSelected:Ke,getToggleAllRowsSelectedProps:qt,getToggleAllPageRowsSelectedProps:St,toggleAllPageRowsSelected:Rt})}function AX(I,M){var F=M.instance;I.toggleRowSelected=function(G){return F.toggleRowSelected(I.id,G)},I.getToggleRowSelectedProps=g(F.getHooks().getToggleRowSelectedProps,{instance:F,row:I})}var SR=function(I){return{}},DR=function(I){return{}};c.setRowState="setRowState",c.setCellState="setCellState",c.resetRowState="resetRowState";var ER=function(I){I.stateReducers.push(OX),I.useInstance.push(BX),I.prepareRow.push(kX)};function OX(I,M,F,G){var ue=G.initialRowStateAccessor,J=ue===void 0?SR:ue,fe=G.initialCellStateAccessor,Ie=fe===void 0?DR:fe,Te=G.rowsById;if(M.type===c.init)return i({rowState:{}},I);if(M.type===c.resetRowState)return i({},I,{rowState:G.initialState.rowState||{}});if(M.type===c.setRowState){var Be,Ve=M.rowId,We=M.value,He=I.rowState[Ve]!==void 0?I.rowState[Ve]:J(Te[Ve]);return i({},I,{rowState:i({},I.rowState,(Be={},Be[Ve]=y(We,He),Be))})}if(M.type===c.setCellState){var Re,Ue,tt,rt,ht,_t=M.rowId,ft=M.columnId,Ke=M.value,Rt=I.rowState[_t]!==void 0?I.rowState[_t]:J(Te[_t]),ct=(Rt==null||(Re=Rt.cellState)==null?void 0:Re[ft])!==void 0?Rt.cellState[ft]:Ie((Ue=Te[_t])==null||(tt=Ue.cells)==null?void 0:tt.find(function(At){return At.column.id===ft}));return i({},I,{rowState:i({},I.rowState,(ht={},ht[_t]=i({},Rt,{cellState:i({},Rt.cellState||{},(rt={},rt[ft]=y(Ke,ct),rt))}),ht))})}}function BX(I){var M=I.autoResetRowState,F=M===void 0||M,G=I.data,ue=I.dispatch,J=r.useCallback(function(Te,Be){return ue({type:c.setRowState,rowId:Te,value:Be})},[ue]),fe=r.useCallback(function(Te,Be,Ve){return ue({type:c.setCellState,rowId:Te,columnId:Be,value:Ve})},[ue]),Ie=C(F);A(function(){Ie()&&ue({type:c.resetRowState})},[G]),Object.assign(I,{setRowState:J,setCellState:fe})}function kX(I,M){var F=M.instance,G=F.initialRowStateAccessor,ue=G===void 0?SR:G,J=F.initialCellStateAccessor,fe=J===void 0?DR:J,Ie=F.state.rowState;I&&(I.state=Ie[I.id]!==void 0?Ie[I.id]:ue(I),I.setState=function(Te){return F.setRowState(I.id,Te)},I.cells.forEach(function(Te){I.state.cellState||(I.state.cellState={}),Te.state=I.state.cellState[Te.column.id]!==void 0?I.state.cellState[Te.column.id]:fe(Te),Te.setState=function(Be){return F.setCellState(I.id,Te.column.id,Be)}}))}ER.pluginName="useRowState",c.resetColumnOrder="resetColumnOrder",c.setColumnOrder="setColumnOrder";var IR=function(I){I.stateReducers.push(PX),I.visibleColumnsDeps.push(function(M,F){var G=F.instance;return[].concat(M,[G.state.columnOrder])}),I.visibleColumns.push(RX),I.useInstance.push(jX)};function PX(I,M,F,G){return M.type===c.init?i({columnOrder:[]},I):M.type===c.resetColumnOrder?i({},I,{columnOrder:G.initialState.columnOrder||[]}):M.type===c.setColumnOrder?i({},I,{columnOrder:y(M.columnOrder,I.columnOrder)}):void 0}function RX(I,M){var F=M.instance.state.columnOrder;if(!F||!F.length)return I;for(var G=[].concat(F),ue=[].concat(I),J=[],fe=function(){var Ie=G.shift(),Te=ue.findIndex(function(Be){return Be.id===Ie});Te>-1&&J.push(ue.splice(Te,1)[0])};ue.length&&G.length;)fe();return[].concat(J,ue)}function jX(I){var M=I.dispatch;I.setColumnOrder=r.useCallback(function(F){return M({type:c.setColumnOrder,columnOrder:F})},[M])}IR.pluginName="useColumnOrder",h.canResize=!0,c.columnStartResizing="columnStartResizing",c.columnResizing="columnResizing",c.columnDoneResizing="columnDoneResizing",c.resetResize="resetResize";var TR=function(I){I.getResizerProps=[NX],I.getHeaderProps.push({style:{position:"relative"}}),I.stateReducers.push(LX),I.useInstance.push(MX),I.useInstanceBeforeDimensions.push($X)},NX=function(I,M){var F=M.instance,G=M.header,ue=F.dispatch,J=function(fe,Ie){var Te=!1;if(fe.type==="touchstart"){if(fe.touches&&fe.touches.length>1)return;Te=!0}var Be,Ve,We=function(ft){var Ke=[];return function Rt(ct){ct.columns&&ct.columns.length&&ct.columns.map(Rt),Ke.push(ct)}(ft),Ke}(Ie).map(function(ft){return[ft.id,ft.totalWidth]}),He=Te?Math.round(fe.touches[0].clientX):fe.clientX,Re=function(){window.cancelAnimationFrame(Be),Be=null,ue({type:c.columnDoneResizing})},Ue=function(){window.cancelAnimationFrame(Be),Be=null,ue({type:c.columnResizing,clientX:Ve})},tt=function(ft){Ve=ft,Be||(Be=window.requestAnimationFrame(Ue))},rt={mouse:{moveEvent:"mousemove",moveHandler:function(ft){return tt(ft.clientX)},upEvent:"mouseup",upHandler:function(ft){document.removeEventListener("mousemove",rt.mouse.moveHandler),document.removeEventListener("mouseup",rt.mouse.upHandler),Re()}},touch:{moveEvent:"touchmove",moveHandler:function(ft){return ft.cancelable&&(ft.preventDefault(),ft.stopPropagation()),tt(ft.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(ft){document.removeEventListener(rt.touch.moveEvent,rt.touch.moveHandler),document.removeEventListener(rt.touch.upEvent,rt.touch.moveHandler),Re()}}},ht=Te?rt.touch:rt.mouse,_t=!!function(){if(typeof O=="boolean")return O;var ft=!1;try{var Ke={get passive(){return ft=!0,!1}};window.addEventListener("test",null,Ke),window.removeEventListener("test",null,Ke)}catch{ft=!1}return O=ft}()&&{passive:!1};document.addEventListener(ht.moveEvent,ht.moveHandler,_t),document.addEventListener(ht.upEvent,ht.upHandler,_t),ue({type:c.columnStartResizing,columnId:Ie.id,columnWidth:Ie.totalWidth,headerIdWidths:We,clientX:He})};return[I,{onMouseDown:function(fe){return fe.persist()||J(fe,G)},onTouchStart:function(fe){return fe.persist()||J(fe,G)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function LX(I,M){if(M.type===c.init)return i({columnResizing:{columnWidths:{}}},I);if(M.type===c.resetResize)return i({},I,{columnResizing:{columnWidths:{}}});if(M.type===c.columnStartResizing){var F=M.clientX,G=M.columnId,ue=M.columnWidth,J=M.headerIdWidths;return i({},I,{columnResizing:i({},I.columnResizing,{startX:F,headerIdWidths:J,columnWidth:ue,isResizingColumn:G})})}if(M.type===c.columnResizing){var fe=M.clientX,Ie=I.columnResizing,Te=Ie.startX,Be=Ie.columnWidth,Ve=Ie.headerIdWidths,We=(fe-Te)/Be,He={};return(Ve===void 0?[]:Ve).forEach(function(Re){var Ue=Re[0],tt=Re[1];He[Ue]=Math.max(tt+tt*We,0)}),i({},I,{columnResizing:i({},I.columnResizing,{columnWidths:i({},I.columnResizing.columnWidths,{},He)})})}return M.type===c.columnDoneResizing?i({},I,{columnResizing:i({},I.columnResizing,{startX:null,isResizingColumn:null})}):void 0}TR.pluginName="useResizeColumns";var $X=function(I){var M=I.flatHeaders,F=I.disableResizing,G=I.getHooks,ue=I.state.columnResizing,J=C(I);M.forEach(function(fe){var Ie=z(fe.disableResizing!==!0&&void 0,F!==!0&&void 0,!0);fe.canResize=Ie,fe.width=ue.columnWidths[fe.id]||fe.originalWidth||fe.width,fe.isResizing=ue.isResizingColumn===fe.id,Ie&&(fe.getResizerProps=g(G().getResizerProps,{instance:J(),header:fe}))})};function MX(I){var M=I.plugins,F=I.dispatch,G=I.autoResetResize,ue=G===void 0||G,J=I.columns;b(M,["useAbsoluteLayout"],"useResizeColumns");var fe=C(ue);A(function(){fe()&&F({type:c.resetResize})},[J]);var Ie=r.useCallback(function(){return F({type:c.resetResize})},[F]);Object.assign(I,{resetResizing:Ie})}var ew={position:"absolute",top:0},AR=function(I){I.getTableBodyProps.push(Xv),I.getRowProps.push(Xv),I.getHeaderGroupProps.push(Xv),I.getFooterGroupProps.push(Xv),I.getHeaderProps.push(function(M,F){var G=F.column;return[M,{style:i({},ew,{left:G.totalLeft+"px",width:G.totalWidth+"px"})}]}),I.getCellProps.push(function(M,F){var G=F.cell;return[M,{style:i({},ew,{left:G.column.totalLeft+"px",width:G.column.totalWidth+"px"})}]}),I.getFooterProps.push(function(M,F){var G=F.column;return[M,{style:i({},ew,{left:G.totalLeft+"px",width:G.totalWidth+"px"})}]})};AR.pluginName="useAbsoluteLayout";var Xv=function(I,M){return[I,{style:{position:"relative",width:M.instance.totalColumnsWidth+"px"}}]},tw={display:"inline-block",boxSizing:"border-box"},nw=function(I,M){return[I,{style:{display:"flex",width:M.instance.totalColumnsWidth+"px"}}]},OR=function(I){I.getRowProps.push(nw),I.getHeaderGroupProps.push(nw),I.getFooterGroupProps.push(nw),I.getHeaderProps.push(function(M,F){var G=F.column;return[M,{style:i({},tw,{width:G.totalWidth+"px"})}]}),I.getCellProps.push(function(M,F){var G=F.cell;return[M,{style:i({},tw,{width:G.column.totalWidth+"px"})}]}),I.getFooterProps.push(function(M,F){var G=F.column;return[M,{style:i({},tw,{width:G.totalWidth+"px"})}]})};function BR(I){I.getTableProps.push(_X),I.getRowProps.push(rw),I.getHeaderGroupProps.push(rw),I.getFooterGroupProps.push(rw),I.getHeaderProps.push(FX),I.getCellProps.push(WX),I.getFooterProps.push(zX)}OR.pluginName="useBlockLayout",BR.pluginName="useFlexLayout";var _X=function(I,M){return[I,{style:{minWidth:M.instance.totalColumnsMinWidth+"px"}}]},rw=function(I,M){return[I,{style:{display:"flex",flex:"1 0 auto",minWidth:M.instance.totalColumnsMinWidth+"px"}}]},FX=function(I,M){var F=M.column;return[I,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]},WX=function(I,M){var F=M.cell;return[I,{style:{boxSizing:"border-box",flex:F.column.totalFlexWidth+" 0 auto",minWidth:F.column.totalMinWidth+"px",width:F.column.totalWidth+"px"}}]},zX=function(I,M){var F=M.column;return[I,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]};function kR(I){I.stateReducers.push(GX),I.getTableProps.push(HX),I.getHeaderProps.push(UX),I.getRowProps.push(VX)}c.columnStartResizing="columnStartResizing",c.columnResizing="columnResizing",c.columnDoneResizing="columnDoneResizing",c.resetResize="resetResize",kR.pluginName="useGridLayout";var HX=function(I,M){var F=M.instance;return[I,{style:{display:"grid",gridTemplateColumns:F.visibleColumns.map(function(G){var ue;return F.state.gridLayout.columnWidths[G.id]?F.state.gridLayout.columnWidths[G.id]+"px":(ue=F.state.columnResizing)!=null&&ue.isResizingColumn?F.state.gridLayout.startWidths[G.id]+"px":typeof G.width=="number"?G.width+"px":G.width}).join(" ")}}]},UX=function(I,M){var F=M.column;return[I,{id:"header-cell-"+F.id,style:{position:"sticky",gridColumn:"span "+F.totalVisibleHeaderCount}}]},VX=function(I,M){var F=M.row;return F.isExpanded?[I,{style:{gridColumn:"1 / "+(F.cells.length+1)}}]:[I,{}]};function GX(I,M,F,G){if(M.type===c.init)return i({gridLayout:{columnWidths:{}}},I);if(M.type===c.resetResize)return i({},I,{gridLayout:{columnWidths:{}}});if(M.type===c.columnStartResizing){var ue=M.columnId,J=M.headerIdWidths,fe=ow(ue);if(fe!==void 0){var Ie=G.visibleColumns.reduce(function(Ke,Rt){var ct;return i({},Ke,((ct={})[Rt.id]=ow(Rt.id),ct))},{}),Te=G.visibleColumns.reduce(function(Ke,Rt){var ct;return i({},Ke,((ct={})[Rt.id]=Rt.minWidth,ct))},{}),Be=G.visibleColumns.reduce(function(Ke,Rt){var ct;return i({},Ke,((ct={})[Rt.id]=Rt.maxWidth,ct))},{}),Ve=J.map(function(Ke){var Rt=Ke[0];return[Rt,ow(Rt)]});return i({},I,{gridLayout:i({},I.gridLayout,{startWidths:Ie,minWidths:Te,maxWidths:Be,headerIdGridWidths:Ve,columnWidth:fe})})}return I}if(M.type===c.columnResizing){var We=M.clientX,He=I.columnResizing.startX,Re=I.gridLayout,Ue=Re.columnWidth,tt=Re.minWidths,rt=Re.maxWidths,ht=Re.headerIdGridWidths,_t=(We-He)/Ue,ft={};return(ht===void 0?[]:ht).forEach(function(Ke){var Rt=Ke[0],ct=Ke[1];ft[Rt]=Math.min(Math.max(tt[Rt],ct+ct*_t),rt[Rt])}),i({},I,{gridLayout:i({},I.gridLayout,{columnWidths:i({},I.gridLayout.columnWidths,{},ft)})})}return M.type===c.columnDoneResizing?i({},I,{gridLayout:i({},I.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function ow(I){var M,F=(M=document.getElementById("header-cell-"+I))==null?void 0:M.offsetWidth;if(F!==void 0)return F}n._UNSTABLE_usePivotColumns=xR,n.actions=c,n.defaultColumn=h,n.defaultGroupByFn=mR,n.defaultOrderByFn=bR,n.defaultRenderer=d,n.emptyRenderer=f,n.ensurePluginOrder=b,n.flexRender=B,n.functionalUpdate=y,n.loopHooks=v,n.makePropGetter=g,n.makeRenderer=T,n.reduceHooks=p,n.safeUseLayoutEffect=D,n.useAbsoluteLayout=AR,n.useAsyncDebounce=function(I,M){M===void 0&&(M=0);var F=r.useRef({}),G=C(I),ue=C(M);return r.useCallback(function(){var J=a(regeneratorRuntime.mark(function fe(){var Ie,Te,Be,Ve=arguments;return regeneratorRuntime.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:for(Ie=Ve.length,Te=new Array(Ie),Be=0;Be<Ie;Be++)Te[Be]=Ve[Be];return F.current.promise||(F.current.promise=new Promise(function(He,Re){F.current.resolve=He,F.current.reject=Re})),F.current.timeout&&clearTimeout(F.current.timeout),F.current.timeout=setTimeout(a(regeneratorRuntime.mark(function He(){return regeneratorRuntime.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return delete F.current.timeout,Re.prev=1,Re.t0=F.current,Re.next=5,G().apply(void 0,Te);case 5:Re.t1=Re.sent,Re.t0.resolve.call(Re.t0,Re.t1),Re.next=12;break;case 9:Re.prev=9,Re.t2=Re.catch(1),F.current.reject(Re.t2);case 12:return Re.prev=12,delete F.current.promise,Re.finish(12);case 15:case"end":return Re.stop()}},He,null,[[1,9,12,15]])})),ue()),We.abrupt("return",F.current.promise);case 5:case"end":return We.stop()}},fe)}));return function(){return J.apply(this,arguments)}}(),[G,ue])},n.useBlockLayout=OR,n.useColumnOrder=IR,n.useExpanded=Qe,n.useFilters=cR,n.useFlexLayout=BR,n.useGetLatest=C,n.useGlobalFilter=uR,n.useGridLayout=kR,n.useGroupBy=hR,n.useMountedLayoutEffect=A,n.usePagination=yR,n.useResizeColumns=TR,n.useRowSelect=wR,n.useRowState=ER,n.useSortBy=vR,n.useTable=function(I){for(var M=arguments.length,F=new Array(M>1?M-1:0),G=1;G<M;G++)F[G-1]=arguments[G];I=Se(I),F=[Me].concat(F);var ue=r.useRef({}),J=C(ue.current);Object.assign(J(),i({},I,{plugins:F,hooks:Xe()})),F.filter(Boolean).forEach(function(Dt){Dt(J().hooks)});var fe=C(J().hooks);J().getHooks=fe,delete J().hooks,Object.assign(J(),p(fe().useOptions,Se(I)));var Ie=J(),Te=Ie.data,Be=Ie.columns,Ve=Ie.initialState,We=Ie.defaultColumn,He=Ie.getSubRows,Re=Ie.getRowId,Ue=Ie.stateReducer,tt=Ie.useControlledState,rt=C(Ue),ht=r.useCallback(function(Dt,tr){if(!tr.type)throw console.info({action:tr}),new Error("Unknown Action 👆");return[].concat(fe().stateReducers,Array.isArray(rt())?rt():[rt()]).reduce(function(Ar,ko){return ko(Ar,tr,Dt,J())||Ar},Dt)},[fe,rt,J]),_t=r.useReducer(ht,void 0,function(){return ht(Ve,{type:c.init})}),ft=_t[0],Ke=_t[1],Rt=p([].concat(fe().useControlledState,[tt]),ft,{instance:J()});Object.assign(J(),{state:Rt,dispatch:Ke});var ct=r.useMemo(function(){return j(p(fe().columns,Be,{instance:J()}))},[fe,J,Be].concat(p(fe().columnsDeps,[],{instance:J()})));J().columns=ct;var At=r.useMemo(function(){return p(fe().allColumns,R(ct),{instance:J()}).map(N)},[ct,fe,J].concat(p(fe().allColumnsDeps,[],{instance:J()})));J().allColumns=At;var qt=r.useMemo(function(){for(var Dt=[],tr=[],Ar={},ko=[].concat(At);ko.length;){var Gr=ko.shift();Ye({data:Te,rows:Dt,flatRows:tr,rowsById:Ar,column:Gr,getRowId:Re,getSubRows:He,accessValueHooks:fe().accessValue,getInstance:J})}return[Dt,tr,Ar]},[At,Te,Re,He,fe,J]),St=qt[0],It=qt[1],cn=qt[2];Object.assign(J(),{rows:St,initialRows:[].concat(St),flatRows:It,rowsById:cn}),v(fe().useInstanceAfterData,J());var Pt=r.useMemo(function(){return p(fe().visibleColumns,At,{instance:J()}).map(function(Dt){return _(Dt,We)})},[fe,At,J,We].concat(p(fe().visibleColumnsDeps,[],{instance:J()})));At=r.useMemo(function(){var Dt=[].concat(Pt);return At.forEach(function(tr){Dt.find(function(Ar){return Ar.id===tr.id})||Dt.push(tr)}),Dt},[At,Pt]),J().allColumns=At;var sn=r.useMemo(function(){return p(fe().headerGroups,U(Pt,We),J())},[fe,Pt,We,J].concat(p(fe().headerGroupsDeps,[],{instance:J()})));J().headerGroups=sn;var Jt=r.useMemo(function(){return sn.length?sn[0].headers:[]},[sn]);J().headers=Jt,J().flatHeaders=sn.reduce(function(Dt,tr){return[].concat(Dt,tr.headers)},[]),v(fe().useInstanceBeforeDimensions,J());var An=Pt.filter(function(Dt){return Dt.isVisible}).map(function(Dt){return Dt.id}).sort().join("_");Pt=r.useMemo(function(){return Pt.filter(function(Dt){return Dt.isVisible})},[Pt,An]),J().visibleColumns=Pt;var gt=De(Jt),Qt=gt[0],gr=gt[1],Bo=gt[2];return J().totalColumnsMinWidth=Qt,J().totalColumnsWidth=gr,J().totalColumnsMaxWidth=Bo,v(fe().useInstance,J()),[].concat(J().flatHeaders,J().allColumns).forEach(function(Dt){Dt.render=T(J(),Dt),Dt.getHeaderProps=g(fe().getHeaderProps,{instance:J(),column:Dt}),Dt.getFooterProps=g(fe().getFooterProps,{instance:J(),column:Dt})}),J().headerGroups=r.useMemo(function(){return sn.filter(function(Dt,tr){return Dt.headers=Dt.headers.filter(function(Ar){return Ar.headers?function ko(Gr){return Gr.filter(function(Kl){return Kl.headers?ko(Kl.headers):Kl.isVisible}).length}(Ar.headers):Ar.isVisible}),!!Dt.headers.length&&(Dt.getHeaderGroupProps=g(fe().getHeaderGroupProps,{instance:J(),headerGroup:Dt,index:tr}),Dt.getFooterGroupProps=g(fe().getFooterGroupProps,{instance:J(),headerGroup:Dt,index:tr}),!0)})},[sn,J,fe]),J().footerGroups=[].concat(J().headerGroups).reverse(),J().prepareRow=r.useCallback(function(Dt){Dt.getRowProps=g(fe().getRowProps,{instance:J(),row:Dt}),Dt.allCells=At.map(function(tr){var Ar=Dt.values[tr.id],ko={column:tr,row:Dt,value:Ar};return ko.getCellProps=g(fe().getCellProps,{instance:J(),cell:ko}),ko.render=T(J(),tr,{row:Dt,cell:ko,value:Ar}),ko}),Dt.cells=Pt.map(function(tr){return Dt.allCells.find(function(Ar){return Ar.column.id===tr.id})}),v(fe().prepareRow,Dt,{instance:J()})},[fe,J,At,Pt]),J().getTableProps=g(fe().getTableProps,{instance:J()}),J().getTableBodyProps=g(fe().getTableBodyProps,{instance:J()}),v(fe().useFinalInstance,J()),J()},Object.defineProperty(n,"__esModule",{value:!0})})})(II,II.exports);var Y$e=II.exports;lV.exports=Y$e;var Tk=lV.exports;function Ak(e){const t=eu(),{getTableProps:n,getTableBodyProps:r,headerGroups:o,rows:a,prepareRow:i}=e.table;return u.jsx("div",{className:t.tableWrapper,children:u.jsxs("table",{...n(),children:[u.jsx("thead",{children:o.map(s=>{const{key:l,...c}=s.getHeaderGroupProps();return x.createElement("tr",{...c,key:l},s.headers.map(d=>{const{key:f,...h}=d.getHeaderProps();return x.createElement("th",{...h,key:f,className:t.tableHeader},d.render("Header"))}))})}),u.jsx("tbody",{...r(),children:a.map((s,l)=>{i(s);const{key:c,...d}=s.getRowProps();return x.createElement("tr",{...d,key:c,className:t.tableRow},s.cells.map(f=>{const{key:h,...m}=f.getCellProps();return x.createElement("td",{...m,key:h,className:t.tableCell},f.render("Cell"))}))})})]})})}function K$e(e){const{searchQuery:t={},pathname:n="/",onSignOut:r=()=>null,onClose:o=()=>null}=e,[a,i]=x.useState(t.accountConflict),s=qi(),l=TO({userID:s==null?void 0:s.userID}),c=sm(),d=Ov(),f=Mve(),h=x.useMemo(()=>{var v;return(v=l.data)==null?void 0:v.email},[l]),m=x.useMemo(()=>{const v=[n],b=Object.entries(t).map(y=>y.join("=")).filter(y=>!y.includes("accountConflict")).join("&");return b.length>0&&v.push(b),v.join("?")},[t,n]),g=async()=>{await(o==null?void 0:o()),window.history.replaceState(null,document.title,m),i(!1)},p=async()=>{await(r==null?void 0:r());const v=Ge("TransientKey"),b=`${f}?TransientKey=${v}&Target=${m}`;i(!1),window.location.replace(b)};return u.jsx(ao,{id:"account-conflict",size:jt.MEDIUM,isVisible:a,exitHandler:g,children:u.jsx(im,{header:u.jsx(Uc,{title:k("Possible Account Conflict"),closeFrame:g}),body:u.jsx(lm,{children:u.jsx("div",{className:c.contents,children:u.jsx(dn,{source:"You're signed in as <0/> (<1/>). This is different than the source that linked here. You may sign out to change accounts.",c0:s==null?void 0:s.name,c1:h})})}),footer:u.jsxs(Ad,{justifyRight:!0,children:[u.jsx(ut,{className:d.actionButton,buttonType:ye.TEXT,onClick:g,children:k("Stay Here")}),u.jsx(ut,{className:d.actionButton,buttonType:ye.TEXT_PRIMARY,onClick:p,children:k("Sign Out")})]})})})}function cV(e){const{onSignOut:t,onClose:n}=e,r=new URLSearchParams(window.location.search),o=Object.fromEntries(r.entries()),a=window.location.pathname;return o.accountConflict==="true"?(o.accountConflict=!0,u.jsx(K$e,{searchQuery:o,pathname:a,onSignOut:t,onClose:n})):null}function q$e(e){return u.jsxs("section",{children:[u.jsxs(dV,{userID:e.userID,api:tMe,children:[u.jsx(Dn,{className:D8().largeTitle,depth:1,title:k("Notification Preferences")}),u.jsx(G$e,{}),u.jsx(X$e,{debounceInterval:1250})]}),u.jsx(cV,{})]})}function X$e(e){const t=ha(),{schema:n,preferences:r,editPreferences:o}=uC(),{debounceInterval:a}=e,i=a!==void 0&&a>0,s=x.useMemo(()=>i?Ra(o,a):o,[a]);return!!(n!=null&&n.data)&&!!(r!=null&&r.data)?u.jsx($$e,{initialValues:r.data,onSubmit:async function(c,{resetForm:d}){try{await s(c,{onSuccess:()=>t.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Success! Your changes were saved.")})}),onError:f=>{t.addToast({dismissible:!0,body:u.jsx(u.Fragment,{children:k(f.message)})})}})}catch{d()}},enableReinitialize:!0,children:({values:c})=>u.jsx("form",{onSubmit:d=>d.preventDefault(),"aria-label":k("Notification Preferences"),children:u.jsx(iC,{schema:n.data,FormGroupWrapper:d=>{const f=!!n.data.properties[d.groupName];return u.jsx(u.Fragment,{children:f?u.jsx(Q$e,{...d}):d.children})},instance:bLe(n.data,c),FormSection:d=>{const f=gLe(d.schema),h=d.path.length>=2;return u.jsx(u.Fragment,{children:f?u.jsx(Hn,{condition:h,component:Z$e,componentProps:d,children:u.jsx(J$e,{...d})}):d.children})},onChange:()=>{}})})}):u.jsxs(u.Fragment,{children:[u.jsx(Cr,{tag:"span",children:k("Loading")}),u.jsxs(eMe,{children:[u.jsx(XS,{}),u.jsx(XS,{}),u.jsx(XS,{})]})]})}const Q$e=e=>{const t=eu(),{header:n,description:r}=e;return u.jsxs(mo,{options:{borderType:dt.SEPARATOR_BETWEEN},children:[!!n&&u.jsx(Dn,{depth:2,title:typeof n=="string"?k(n):n}),!!r&&(typeof r=="string"?u.jsx("p",{className:t.description,dangerouslySetInnerHTML:{__html:`${qU(r)}`}}):u.jsx("p",{className:t.description,children:r})),e.children]})},Z$e=e=>{const t=eu(),{title:n,description:r}=e;return u.jsxs(mo,{options:{borderType:dt.NONE},className:t.subgroupWrapper,children:[!!n&&u.jsx(Dn,{depth:3,title:typeof n=="string"?k(n):n,className:t.subgroupHeading}),!!r&&(typeof r=="string"?u.jsx("p",{className:t.description,dangerouslySetInnerHTML:{__html:`${qU(r)}`}}):u.jsx("p",{className:t.description,children:r})),e.children]})},J$e=e=>{const{instance:t,schema:n}=e,{submitForm:r,setFieldValue:o}=iV(),a=eu(),i=Object.values(t).some(f=>"popup"in f),s=Object.values(t).some(f=>"email"in f),l=x.useMemo(()=>{let f=[];return i&&f.push({accessor:"popup",Header:function(){return u.jsx(In,{label:k("Notification popup"),children:u.jsx("span",{children:u.jsx(Bt,{size:"default",icon:"me-notifications",className:a.icon})})})},Cell:function(m){return m.cell.value===void 0?null:u.jsx(no,{checked:m.cell.value,className:a.checkbox,onChange:async function(g){o(m.row.id,{...t[m.row.id],popup:g.target.checked}),await r()},label:k("Notification popup"),hideLabel:!0,"aria-describedby":Gf(m.row)})}}),s&&f.push({accessor:"email",Header:function(){return u.jsx(In,{label:k("Email"),children:u.jsx("span",{children:u.jsx(Bt,{size:"default",icon:"me-inbox",className:a.icon})})})},Cell:function(m){return m.cell.value===void 0?null:u.jsx(no,{checked:m.cell.value,className:a.checkbox,onChange:async function(g){o(m.row.id,{...t[m.row.id],email:g.target.checked}),await r()},label:k("Email"),hideLabel:!0,"aria-describedby":Gf(m.row)})}}),f.push({accessor:"description",Cell:function(m){return u.jsx("span",{id:Gf(m.row),className:a.tableDescriptionWrapper(),children:k(m.cell.value)})}}),f},[t]),c=x.useMemo(()=>Object.entries(t).map(([f,h])=>{var m,g,p;return{...h,id:f,description:`${((p=(g=(m=n.properties)==null?void 0:m[f])==null?void 0:g["x-control"])==null?void 0:p.description)??f}`}}),[t]),d=Tk.useTable({data:c,columns:l,getRowId:f=>f.id});return u.jsx(Ak,{table:d})};function eMe(e){const t=eu();return u.jsxs(mo,{options:{borderType:dt.SEPARATOR_BETWEEN},children:[u.jsx(Dn,{depth:2,children:u.jsx(tn,{width:200})}),u.jsx($i,{className:t.description,children:u.jsx(tn,{width:300})}),e.children]})}function XS(){const e=eu();function t(){return u.jsx(tn,{width:20,height:20})}function n(){return u.jsx(tn,{width:20,height:20})}function r(){const c=Math.floor((Math.random()+1)*200);return u.jsx("span",{className:e.tableDescriptionWrapper(),children:u.jsx(tn,{width:c})})}const o=x.useMemo(()=>[{id:"popup",Header:t,Cell:n},{id:"email",Header:t,Cell:n},{id:"description",Cell:r}],[]),a={popup:!0,email:!0,description:"",id:""},i=x.useMemo(()=>[a,a],[]),s=Tk.useTable({data:i,columns:o});return u.jsxs(mo,{options:{borderType:dt.NONE},className:e.subgroupWrapper,children:[u.jsx(Dn,{depth:3,className:e.subgroupHeading,children:u.jsx(tn,{width:100})}),u.jsx(Ak,{table:s})]})}const QS="/notification-preferences",TI={getSchema:async function(e){return(await Ct.get(`${QS}/schema`,e)).data},getUserPreferences:async function({userID:e,...t}){return(await Ct.get(`${QS}/${e}`,t)).data},patchUserPreferences:async function({userID:e,preferences:t}){return(await Ct.patch(`${QS}/${e}`,{...t})).data}},uV=x.createContext({schema:null,preferences:null,editPreferences:async function(e){return{}},patchLanguage:async function(e){return{}}});function uC(){return x.useContext(uV)}function dV(e){const{userID:t,api:n}=e,r=Z4(),o=Ss({queryFn:async()=>await n.getSchema({}),queryKey:["notificationPreferencesSchema"]}),a=Ss({queryFn:async()=>await n.getUserPreferences({userID:t}),queryKey:["userNotificationPreferences",{userID:t}]}),i=Bh({mutationFn:async d=>await n.patchUserPreferences({preferences:d,userID:t}),onMutate:async function(d){const f=r.getQueryData(["userNotificationPreferences",{userID:t}]);return r.setQueryData(["userNotificationPreferences",{userID:t}],{...f,...d}),{previousNotificationPreferences:f}},onError:(d,f,h)=>{h!=null&&h.previousNotificationPreferences&&r.setQueryData(["userNotificationPreferences",{userID:t}],h.previousNotificationPreferences)},mutationKey:["editUserNotificationPreferences",{userID:t}]}),s=UE(o),l=UE(a);async function c(d){return await i.mutateAsync({...a.data??{},NotificationLanguage:d})}return u.jsx(uV.Provider,{value:{schema:s,preferences:l,editPreferences:i.mutateAsync,patchLanguage:c},children:e.children})}const tMe=TI,fV=x.createContext({preferences:{},setPreferences:async function(e){return{}}});function nMe(){return x.useContext(fV)}const tx={comments:{getDescription:()=>"new comments",getDefaultPreferences:e=>{const{NewComment:t}=e??{};return{"preferences.popup.comments":(t==null?void 0:t.popup)??!1,"preferences.email.comments":(t==null?void 0:t.email)??!1}}},posts:{getDescription:()=>"new posts",getDefaultPreferences:e=>{const{NewDiscussion:t}=e??{};return{"preferences.popup.posts":(t==null?void 0:t.popup)??!1,"preferences.email.posts":(t==null?void 0:t.email)??!1}}}};function fmt(e,t){tx[e]=t}function hV(e){let t={"preferences.followed":!1,"preferences.email.digest":!1};return Object.values(tx).forEach(n=>{var r;t={...t,...(r=n.getDefaultPreferences)==null?void 0:r.call(n,e)}}),t}function rMe(e){const{categoryID:t,userID:n,setServerError:r}=e,o=Z4(),a=ha();return Bh({mutationFn:async i=>{r(null);const{data:s}=await Ct.patch(`/categories/${t}/preferences/${n}`,i);return s},onMutate:async function(i){r(null);const s=o.getQueryData(["categoryNotificationPreferences",{categoryID:t,userID:n}]);return o.setQueryData(["categoryNotificationPreferences",{categoryID:t,userID:n}],i),{previousPreferences:s}},onError:(i,s,l)=>{l!=null&&l.previousPreferences&&(o.setQueryData(["categoryNotificationPreferences",{categoryID:t,userID:n}],l.previousPreferences),r(i))},onSuccess:async i=>{o.setQueryData(["categoryNotificationPreferences",{categoryID:t,userID:n}],i),a.addToast({autoDismiss:!0,body:k("Success! Preferences saved.")})},mutationKey:[t,n]})}function oMe(e){const{categoryID:t,userID:n,initialData:r}=e;return Ss({queryFn:async()=>await Ct.get(`/categories/${t}/preferences/${n}`),queryKey:["categoryNotificationPreferences",{categoryID:t,userID:n}],initialData:r,refetchOnWindowFocus:!1})}function aMe(e){const{userID:t,categoryID:n,initialPreferences:r}=e,[o,a]=x.useState(null),i=sm(),s=oMe({categoryID:n,userID:t,initialData:r}),{mutateAsync:l}=rMe({categoryID:n,userID:t,setServerError:a});return u.jsxs(fV.Provider,{value:{preferences:s.data,setPreferences:l},children:[o&&u.jsx(Jc,{error:o,stringContents:o.message,className:i.error}),e.children]})}class iMe extends W.PureComponent{render(){const t=zO();return u.jsx(Uc,{...this.props,className:ae(this.props.className,"frameHeaderWithAction",t.root),children:u.jsx("span",{className:ae("frameHeaderWithAction-action",t.action),children:this.props.children})})}}const sMe=re(e=>{const{isOpen:t,borderRadius:n,buttonColor:r,textColor:o,alignment:a}=e,i=ee(),s=S({...a?{display:"flex",justifyContent:a}:{marginLeft:"auto",marginBottom:i.spacer.size}},"label:FollowDropdown-classes-layout"),l=S({display:"flex",justifyContent:"space-between",alignItems:"center",gap:i.spacer.componentInner/2,borderRadius:i.border.radius,...n&&{borderRadius:`${n}px`,"&:not([disabled]):hover, &:not([disabled]):active, &:not([disabled]):focus":{borderRadius:`${n}px`}},"&&":{padding:`5px ${i.spacer.componentInner}px`,backgroundColor:t?P.colorOut(i.mainColors.primary.fade(.1)):"transparent",...r&&{borderColor:r,backgroundColor:t?P.colorOut(On(r).fade(.1)):"transparent","&:not([disabled]):hover, &:not([disabled]):active, &:not([disabled]):focus":{borderColor:r,backgroundColor:r}},color:P.colorOut(i.mainColors.primary),...o&&{color:o}}},"label:FollowDropdown-classes-followButton"),c=S({color:P.colorOut(i.mainColors.primary)},"label:FollowDropdown-classes-preferencesButton"),d=S({fontWeight:i.fonts.weights.semiBold},"label:FollowDropdown-classes-heading");return{layout:s,followButton:l,preferencesButton:c,heading:d,checkBox:S({paddingLeft:0,paddingBottom:4,"& > span":{fontWeight:"normal"}},"label:FollowDropdown-classes-checkBox"),fullWidth:S({width:"100%"},"label:FollowDropdown-classes-fullWidth"),inset:S({marginLeft:26},"label:FollowDropdown-classes-inset"),errorBlock:S({paddingLeft:7},"label:FollowDropdown-classes-errorBlock"),unClickable:S({pointerEvents:"none"},"label:FollowDropdown-classes-unClickable")}});function lMe(e){const[t,n]=x.useState(!!e.isOpen),{recordDetails:r,recordID:o,emailDigestEnabled:a,preview:i,borderRadius:s,buttonColor:l,textColor:c,alignment:d,isCompact:f,preferencesTable:h,isFollowed:m,defaultUserPreferences:g,notificationTypes:p,updatePreferences:v,submitForm:b,unfollowAndResetPreferences:y}=e,C=sMe({isOpen:t,isFollowed:m,borderRadius:s,buttonColor:l,textColor:c,alignment:d});return u.jsx("div",{className:ge(C.layout,e.className),children:u.jsx(Jh,{name:k(m?"Following":"Follow"),buttonType:f?ye.ICON:ye.OUTLINE,buttonClassName:ge(C.followButton,{[C.unClickable]:i}),buttonContents:m?u.jsxs(u.Fragment,{children:[u.jsx(Bt,{icon:"me-notifications-solid"})," ",!f&&k("Following")]}):u.jsxs(u.Fragment,{children:[u.jsx(Bt,{icon:"me-notifications"})," ",!f&&k("Follow")]}),flyoutType:jc.FRAME,contentsClassName:S({minWidth:345},""),onVisibilityChange:async D=>{var A;if(!i&&!m&&D){let T={};Object.entries(p).forEach(([B,j])=>{var R;T={...T,...(R=j.getDefaultPreferences)==null?void 0:R.call(j,g??{})}}),await v({"preferences.followed":!0,...T,...a&&{"preferences.email.digest":!0}}),(A=e.onPreferencesChange)==null||A.call(e,{preferences:{"preferences.followed":!0},...r?{[r.recordKey]:o}:{categoryID:o}})}n(D)},isVisible:t,asReachPopover:!0,children:u.jsx(im,{header:u.jsx(iMe,{title:k("Notification Preferences"),children:!window.location.pathname.includes("/followed-content")&&u.jsx(In,{label:k((r==null?void 0:r.recordFollowedContentText)??"View all followed categories"),children:u.jsx("span",{children:u.jsx(So,{to:"/profile/followed-content",buttonType:ye.ICON,className:C.preferencesButton,ariaLabel:k((r==null?void 0:r.recordFollowedContentText)??"View all followed categories"),children:u.jsx(eue,{})})})})}),body:u.jsx(lm,{hasVerticalPadding:!0,children:u.jsxs(u.Fragment,{children:[u.jsx("p",{className:C.heading,children:e.name}),u.jsx("form",{role:"form",onSubmit:async D=>{D.preventDefault(),await b()},children:h})]})}),footer:m&&u.jsx(Ad,{forDashboard:!0,children:u.jsx(ut,{className:C.fullWidth,onClick:async()=>{var D;await y(),(D=e.onPreferencesChange)==null||D.call(e,{preferences:{},...r?{[r.recordKey]:o}:{categoryID:o}}),n(!1)},children:k((r==null?void 0:r.recordUnfollowText)??"Unfollow Category")})})})})})}function Ok(e){return u.jsx(ni,{...e,legend:e.legend??"",children:e.children})}const cMe=()=>({checkBox:S({paddingLeft:0,paddingBottom:4,"& > span":{fontWeight:"normal"}},"label:CategoryPreferencesTable-styles-checkBox"),inset:S({marginLeft:26},"label:CategoryPreferencesTable-styles-inset"),errorBlock:S({paddingLeft:7},"label:CategoryPreferencesTable-styles-errorBlock")});function uMe(e){const{onPreferenceChange:t,notificationTypes:n,admin:r,canIncludeInDigest:o,preview:a}=e,i=eu(),s=cMe(),l=Ge("emails.enabled"),c=Ge("emails.digest",!1)&&o,d=Object.values(I6(e.preferences,["preferences.followed","preferences.email.digest"])).some(y=>y),f=c?!d:!1,[h,m]=x.useState(!c||!e.canIncludeInDigest||d),g=async(y,C,D)=>{!a&&await t({[`preferences.${D}.${y.original.id}`]:C})};x.useEffect(()=>{m(!c||!e.canIncludeInDigest||d)},[d]);const p=x.useMemo(()=>Object.entries(n).map(([y,C])=>({popup:e.preferences[`preferences.popup.${y}`],...l&&{email:e.preferences[`preferences.email.${y}`]},description:u.jsx(dn,{source:r?"Notify of <0/>":"Notify me of <0/>",c0:k(C.getDescription())}),id:y,error:f})),[f,l,e.preferences]),v=x.useMemo(()=>{const y=[{accessor:"popup",Header:function(){return u.jsx(In,{label:k("Notification popup"),children:u.jsx("span",{children:u.jsx(Bt,{size:"default",icon:"me-notifications",className:i.icon})})})},Cell:function(D){return u.jsx(no,{checked:D.cell.value,className:i.checkbox,onChange:async A=>{await g(D.row,A.target.checked,"popup")},label:k("Notification popup"),hideLabel:!0,"aria-describedby":Gf(D.row)})}}];return l&&y.push({accessor:"email",Header:function(){return u.jsx(In,{label:k("Notification Email"),children:u.jsx("span",{children:u.jsx(Bt,{size:"default",icon:"me-inbox",className:i.icon})})})},Cell:function(D){return u.jsx(no,{checked:D.cell.value,className:i.checkbox,onChange:async A=>{await g(D.row,A.target.checked,"email")},label:k("Notification Email"),hideLabel:!0,"aria-describedby":Gf(D.row),labelBold:!1})}}),y.push({accessor:"description",Header:function(){return u.jsx(u.Fragment,{})},Cell:function(D){return u.jsxs("span",{id:Gf(D.row),className:i.tableDescriptionWrapper("normal"),children:[D.cell.value,D.row.original.error&&u.jsx(Bt,{icon:"notification-alert"})]})}}),y},[]),b=Tk.useTable({data:p,columns:v});return u.jsxs("div",{className:e.className,children:[c&&e.canIncludeInDigest&&u.jsxs(Ok,{children:[u.jsx(no,{label:k("Include in email digest"),labelBold:!1,onChange:async y=>{await t({"preferences.email.digest":y.target.checked})},checked:e.preferences["preferences.email.digest"],className:s.checkBox}),u.jsx(no,{label:k(r?"Notify of new content":"Notify me of new content"),labelBold:!1,onChange:async y=>{if(m(y.target.checked),!y.target.checked){const{"preferences.followed":C,...D}=e.defaultNotificationPreferences??hV();await t({...D})}},checked:h,className:s.checkBox})]}),u.jsxs("div",{className:ge({[s.inset]:o}),children:[h&&u.jsx(Ak,{table:b}),h&&f&&u.jsx(El,{className:s.errorBlock,errors:[{message:k("At least one notification method must be selected to receive notifications")}],padded:!0})]})]})}function dMe(e){var m;const{categoryID:t,emailDigestEnabled:n}=e,{preferences:r,setPreferences:o}=nMe(),a=x.useCallback(Ra(o,1250,{leading:!0}),[o]),{preferences:i}=uC(),s=(i==null?void 0:i.data)??void 0,l=n&&vLe(s==null?void 0:s.DigestEnabled)&&((m=s==null?void 0:s.DigestEnabled)==null?void 0:m.email),{values:c,setValues:d,submitForm:f}=Fv({enableReinitialize:!0,initialValues:r,onSubmit:async g=>{await a(g)}});async function h(){d(g=>({...Object.entries(g).reduce((p,[v,b])=>(p[v]=!1,p),{}),...e.emailDigestEnabled&&{"preferences.email.digest":!1}})),await f()}return u.jsx(lMe,{...e,recordID:t,name:e.categoryName,emailDigestEnabled:n,preferencesTable:u.jsx(uMe,{canIncludeInDigest:l,preferences:c,onPreferenceChange:async function(g){d(p=>({...p,...g})),await f()},preview:e.preview,notificationTypes:tx}),notificationTypes:tx,updatePreferences:o,submitForm:f,unfollowAndResetPreferences:h,isFollowed:(r==null?void 0:r["preferences.followed"])??!1,defaultUserPreferences:s,onPreferencesChange:e.onPreferencesChange})}function fMe(e){const{userID:t,...n}=e,{preferences:r}=uC();return u.jsx(aMe,{userID:e.userID,categoryID:e.categoryID,initialPreferences:e.notificationPreferences??hV(r==null?void 0:r.data),children:u.jsx(dMe,{...n})})}function Bk(e){const{api:t=TI,...n}=e;return u.jsx(dV,{userID:n.userID,api:TI,children:u.jsx(fMe,{...n})})}function dC(e){var b,y,C,D,A,T,B;const{category:t,depth:n,options:r,asTile:o,onCategoryFollowChange:a}=e,i={...r,display:{description:(b=r==null?void 0:r.description)==null?void 0:b.display},metas:{...r==null?void 0:r.metas,asIcons:typeof((y=r==null?void 0:r.metas)==null?void 0:y.asIcons)=="string"?((C=r==null?void 0:r.metas)==null?void 0:C.asIcons)!=="text":(D=r==null?void 0:r.metas)==null?void 0:D.asIcons}},s=qi(),l=Xh(),c=_v(i,o),d=t.iconUrlSrcSet?{srcSet:Ac(t.iconUrlSrcSet)}:{},f=La().options.defaultIconUrl,h=(r==null?void 0:r.contentType)===un.TITLE_DESCRIPTION_ICON,m=(r==null?void 0:r.contentType)===un.TITLE_DESCRIPTION_IMAGE,g=u.jsx("div",{className:c.iconContainer,children:u.jsx("img",{className:c.icon,src:t.iconUrl??f,alt:t.name,loading:"lazy",...d})}),p=((A=t.counts)==null?void 0:A.length)&&t.counts.some(j=>{var R,N;return j.count>0&&((N=(R=r==null?void 0:r.metas)==null?void 0:R.display)==null?void 0:N[`${j.labelCode.slice(0,-1)}Count`])}),v=!t.displayAs||(T=r==null?void 0:r.description)!=null&&T.display?t.description:"";return o?u.jsx(Sk,{className:c.gridItem,nameClassName:c.title,name:t.name,to:t.to,iconUrl:t.iconUrl,imageUrl:t.imageUrl,description:v,options:i,metaComponent:u.jsx(tM,{className:ge({[c.gridItemMetas]:!!p}),category:t,categoryOptions:i}),iconComponent:h?u.jsx("div",{className:c.iconContainerInGridItem,children:g}):void 0},t.categoryID):u.jsx(aC,{url:t.to,name:t.name,nameClassName:c.title,className:ge(c.listItem,e.className),headingDepth:n,description:v,metas:u.jsx(tM,{className:ge({[c.gridItemMetas]:e.asTile}),category:t,categoryOptions:i}),actions:((B=r==null?void 0:r.followButton)==null?void 0:B.display)&&t.displayAs==="discussions"&&l&&(s==null?void 0:s.userID)&&!o&&u.jsx(Bk,{userID:s==null?void 0:s.userID,categoryID:t.categoryID,categoryName:t.name,notificationPreferences:t.preferences,emailDigestEnabled:Ge("emails.digest",!1),isCompact:!0,preview:e.isPreview,className:c.listItemActionButton,onPreferencesChange:a}),icon:h&&g,featuredImage:{display:m},image:{url:t.imageUrl,urlSrcSet:t.imageUrlSrcSet}},t.categoryID)}function mV(e){var r;const t=[];let n=null;for(const o of e)o.displayAs!=="heading"?(n||(n={displayAs:"gridItemsGroup",children:[],depth:o.depth}),(r=n.children)==null||r.push(o)):(n&&(t.push(n),n=null),o.children&&o.children.length>0&&(o.children=mV(o.children)),t.push(o));return n&&t.push(n),t}function pV(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];if(o.categoryID===t){const a=o.counts.findIndex(i=>i.labelCode==="followers");if(a>-1){const i=o.counts[a].count;o.counts[a].count=n?i+1:i>0?i-1:i}else o.counts=[...o.counts,{count:1,labelCode:"followers"}];return e}if(o.children&&o.children.length>0){const a=pV(o.children,t,n);if(a!==null)return o.children=a,e}}return null}function nx(e,t){return s1(e,t)}function hMe(e){var c;const t=_v(),n={...e.categoryOptions,imagePlacement:"left",contentType:(c=e.itemOptions)==null?void 0:c.contentType},r=ul(e.itemData),[o,a]=x.useState(r),[i,s]=x.useState(null);x.useEffect(()=>{var d;if(nx(o,r)||a(r),i){const f=pV(o,i.categoryID,!!((d=i.preferences)!=null&&d["preferences.followed"]));f&&a(f),s(null)}},[i,r]);const l=d=>{s(d)};return u.jsx(Us,{title:e.title,subtitle:e.subtitle,description:e.description,options:{...e.containerOptions,displayType:Ln.LIST},children:u.jsx(Mv,{className:t.listContainer,...e,children:o.length===0?u.jsx(mo,{as:"li",children:k("No categories were found.")}):o.map((d,f)=>{var h;return d.displayAs==="heading"?u.jsx(gV,{headingCategory:d,isFirstItem:f===0,options:n,onCategoryFollowChange:l,topLevelHeadingDepth:(h=e.itemData.find(m=>m.displayAs==="heading"))==null?void 0:h.depth},f):u.jsx(dC,{options:n,category:d,className:`depth-${d.depth}`,depth:d.depth?d.depth+1:void 0,onCategoryFollowChange:l,isPreview:e.isPreview},`${d.categoryID}-${f}`)})})})}function gV(e){const{headingCategory:t,isFirstItem:n,options:r,onCategoryFollowChange:o}=e,a=_v(),i=t.children,s=e.topLevelHeadingDepth??1,l=(i==null?void 0:i.length)&&(i[i.length-1].displayAs==="heading"?i.length-2:i.length-1),c=t.depth===s+1&&(i!=null&&i.some(d=>d.displayAs==="heading"))?i.findIndex(d=>d.displayAs!=="heading"):0;return u.jsxs(u.Fragment,{children:[u.jsx(Dn,{depth:t.depth===s?2:3,className:ge({firstItem:n},{[a.firstLevelHeading]:t.depth===s},{[a.secondLevelHeading]:t.depth===s+1}),children:t.name}),!(i!=null&&i.length)&&u.jsx("div",{className:a.message,children:t.noChildCategoriesMessage}),!!(i!=null&&i.length)&&i.map((d,f)=>{const h=d.displayAs==="heading";if(h&&d.depth<=s+1)return u.jsx(gV,{headingCategory:d,options:r,onCategoryFollowChange:o,topLevelHeadingDepth:s},f);if(!h)return u.jsx(dC,{onCategoryFollowChange:o,options:r,category:d,className:ge(`depth-${d.depth}`,{[a.listHeadingGroupFirstItem]:f===c},{[a.listHeadingGroupLastItem]:f===l}),depth:d.depth+1},f)})]})}function mMe(e){var c,d,f,h,m,g,p,v,b,y,C,D;const{containerOptions:t,categoryOptions:n}=e,r=!((c=e.containerOptions)!=null&&c.displayType)||((d=e.containerOptions)==null?void 0:d.displayType)===Ln.GRID,o={...n,contentType:((f=e.itemOptions)==null?void 0:f.contentType)??La().options.contentType,imagePlacement:"top",metas:{...n==null?void 0:n.metas,asIcons:!0,display:{...(h=n==null?void 0:n.metas)==null?void 0:h.display,postCount:(g=(m=n==null?void 0:n.metas)==null?void 0:m.display)==null?void 0:g.postCount,discussionCount:(v=(p=n==null?void 0:n.metas)==null?void 0:p.display)==null?void 0:v.discussionCount,commentCount:(y=(b=n==null?void 0:n.metas)==null?void 0:b.display)==null?void 0:y.commentCount,followerCount:(D=(C=n==null?void 0:n.metas)==null?void 0:C.display)==null?void 0:D.followerCount,lastPostName:!1,lastPostAuthor:!1,lastPostDate:!1,subcategories:!1}}},a=_v(o,!0),i=ul(e.itemData),s=x.useMemo(()=>mV(i),[i]),l=i.filter(A=>A.displayAs!=="heading");return u.jsx(Us,{title:e.title,subtitle:e.subtitle,description:e.description,options:{...e.containerOptions,displayType:r?Ln.GRID:Ln.CAROUSEL},children:r?u.jsx("div",{className:ge(a.gridContainer,{[a.gridContainerNoMargin]:i.length===0}),children:i.length===0?u.jsx("div",{children:k("No categories were found.")}):s.map((A,T)=>{var B;return u.jsx(vV,{options:o,group:A,containerOptions:t,topLevelHeadingDepth:(B=e.itemData.find(j=>j.displayAs==="heading"))==null?void 0:B.depth},T)})}):l.map((A,T)=>u.jsx(dC,{category:A,asTile:!0,options:o,className:Gc().root},T))})}function vV(e){var l,c,d;const{group:t,options:n,containerOptions:r}=e,o=_v(n,!0),a=t.displayAs==="heading",i=Nv(e.containerOptions),s=e.topLevelHeadingDepth??1;if(a&&t.depth<=s+1)return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:o.gridHeadingWrapper,children:[u.jsx(Dn,{depth:t.depth===s?2:3,className:ge({[o.firstLevelHeading]:t.depth===s},{[o.secondLevelHeading]:t.depth===s+1}),children:t.name}),!((l=t.children)!=null&&l.length)&&u.jsx("div",{className:o.message,children:t.noChildCategoriesMessage})]}),(c=t.children)==null?void 0:c.map((f,h)=>u.jsx(vV,{group:f,options:n,containerOptions:r,topLevelHeadingDepth:s},h))]});if(t.displayAs==="gridItemsGroup"){let f=0;return t.children&&t.children.length<((r==null?void 0:r.maxColumnCount)??3)&&(f=((r==null?void 0:r.maxColumnCount)??3)-t.children.length),u.jsx("div",{className:o.gridGroup,children:u.jsxs(OU,{options:{displayType:Ln.GRID,maxColumnCount:r==null?void 0:r.maxColumnCount,borderType:dt.NONE},children:[(d=t.children)==null?void 0:d.map((h,m)=>u.jsx(dC,{category:h,asTile:!0,options:n,className:Gc().root},m)),[...new Array(f)].map((h,m)=>u.jsx("div",{className:i.gridItemSpacer},"spacer-"+m))]})})}return u.jsx(u.Fragment,{})}function pMe(e){var o,a,i,s;const t=((o=e.containerOptions)==null?void 0:o.displayType)===Ln.LIST,n=((a=e.containerOptions)==null?void 0:a.displayType)===Ln.LINK,r=e.itemData.map((l,c)=>({id:`${c}`,name:l.name??"",url:l.to??""}));return n?u.jsx($v,{title:e.title,links:r,containerOptions:e.containerOptions}):u.jsx(Ls,{children:t||!((i=e.containerOptions)!=null&&i.displayType)&&e.isAsset?u.jsx(hMe,{...e,isPreview:e.isPreview}):u.jsx(mMe,{...e,containerOptions:{...e.containerOptions,maxColumnCount:((s=e.containerOptions)==null?void 0:s.maxColumnCount)??vm().options.maxColumnCount}})})}const gMe=re(()=>{const e=ee(),t=S({marginTop:e.spacer.componentInner,marginBottom:e.spacer.componentInner},"label:EditProfileFieldsStyles-errorMessage"),n=S({marginTop:e.spacer.pageComponentCompact},"label:EditProfileFieldsStyles-submitButton");return{errorMessage:t,submitButton:n}});function ZS(){return u.jsxs(u.Fragment,{children:[u.jsx(tn,{height:21,width:"25%"}),u.jsx(ys,{height:12}),u.jsx(tn,{height:36}),u.jsx(ys,{height:16})]})}function vMe(e){const{userID:t,formSchema:n,profileFields:r}=e,[o,a]=x.useState({}),i=B2e(n,r),{values:s,setValues:l,isSubmitting:c,resetForm:d,submitForm:f}=Fv({initialValues:i,onSubmit:async v=>{try{await p(k2e(v,n)),h.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Changes saved.")})}),a({})}catch(b){a(b.errors);return}},validate:()=>{var b;const v=(b=m==null?void 0:m.current)==null?void 0:b.validate();return n$e((v==null?void 0:v.errors)??[])},validateOnChange:!1,enableReinitialize:!0}),h=ha(),m=x.useRef(null),g=gMe(),p=I2e(t);return Object.keys(s).length?u.jsxs("form",{role:"form",onSubmit:v=>{v.preventDefault(),v.stopPropagation(),f()},children:[u.jsx(iC,{fieldErrors:o,schema:n,instance:s,FormControl:Ik,FormControlGroup:rV,onChange:l,disabled:c,ref:m}),u.jsx(ut,{type:"submit",buttonType:ye.PRIMARY,disabled:c,className:ge(g.submitButton),children:k("Save")})]}):u.jsx(u.Fragment,{})}function bMe(e){const{userID:t,isOwnProfile:n}=e,{hasPermission:r}=mr(),o=jU({enabled:!0},{filterPermissions:!0,isOwnProfile:n}),a=NU(t),i=x.useMemo(()=>{const c=r("users.edit");return o.data?O2e(o.data,{userCanEdit:c}):null},[o]),s=a.status===X.SUCCESS&&a.data,l=x.useMemo(()=>{if(s)return P2e(a.data??{},o.data??[])},[a.status,o.status]);return u.jsxs("section",{children:[u.jsx(Dn,{depth:1,renderAsDepth:1,children:k("Edit Profile Fields")}),!i||!a.data?u.jsxs("div",{children:[u.jsx(ys,{height:36}),u.jsx(ZS,{}),u.jsx(ZS,{}),u.jsx(ZS,{})]}):u.jsx(vMe,{userID:t,formSchema:i,profileFields:l??{}})]})}const yMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/CollectionsForm.loadable.CIyY-Rzq.min.js"),__vite__mapDeps([36,1,37]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});function bV(e){const[t,n]=x.useState(e.initialVisibility||!1),r=()=>n(!0),o=()=>n(!1);return u.jsxs(u.Fragment,{children:[!e.modalOnly&&u.jsx(Na,{onClick:r,children:k("Add to Collection")}),u.jsx(Ps,{children:u.jsx(ao,{isVisible:t,size:jt.MEDIUM,exitHandler:o,children:u.jsx(yMe,{...e,onSuccess:o,onCancel:o})})})]})}const xMe=re(()=>{const e=ee(),t={color:P.colorOut(e.mainColors.primary),fill:"currentColor"},n={color:"inherit",fill:"transparent"},r={color:t.color},o={...t};return{icon:S({...n,...Hc("color","fill","stroke"),"label:hover &, input[type='checkbox']:active + &, input[type='checkbox']:focus + &":r},"label:BookmarkToggle-styles-icon"),iconChecked:S(t,"label:BookmarkToggle-styles-iconChecked"),iconDisabled:S(o,"label:BookmarkToggle-styles-iconDisabled")}}),CMe=re(()=>{const e=S({...E.margin({all:0}),cursor:"pointer",lineHeight:0},"label:ActsAsCheckbox-styles-label"),t=S({...E.absolute.srOnly()},"label:ActsAsCheckbox-styles-checkbox");return{label:e,checkbox:t}}),AI=({checked:e=!1,onChange:t,title:n,children:r,disabled:o})=>{const a=CMe(),[i,s]=x.useState(!!o);async function l(){s(!0),await Promise.resolve(t()),s(!1)}const c=xr();return u.jsxs("label",{htmlFor:c,className:a.label,title:n,children:[u.jsx("input",{id:c,type:"checkbox",className:a.checkbox,onChange:l,checked:e,disabled:i,"aria-label":n}),r({checked:e,disabled:i})]})},wMe=({bookmarked:e,onToggleBookmarked:t})=>{const{icon:n,iconChecked:r,iconDisabled:o}=xMe();return u.jsx(AI,{checked:e,onChange:t,title:k("Bookmark"),children:a=>u.jsx(Bt,{icon:e?"discussion-bookmark-solid":"discussion-bookmark",className:ge(n,{[r]:e})})})},SMe=({discussion:e,onSuccess:t})=>{const{toggleDiscussionBookmarked:n,isBookmarked:r}=zme(e.discussionID);async function o(){await n(!r),t&&await t()}return u.jsx(wMe,{bookmarked:!!r,onToggleBookmarked:o})},DMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/AnnounceDiscussionForm.Ck_dQMIx.min.js"),__vite__mapDeps([38,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),EMe=({discussion:e,onSuccess:t})=>{const[n,r]=x.useState(!1),o=()=>r(!0),a=()=>r(!1);async function i(){t&&await t(),a()}return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:o,children:k("Announce")}),u.jsx(Ps,{children:u.jsx(ao,{isVisible:n,size:jt.MEDIUM,exitHandler:a,children:u.jsx(DMe,{discussion:e,onSuccess:i,onCancel:a})})})]})},IMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/MoveDiscussionForm.DoKOpSqW.min.js"),__vite__mapDeps([39,1,10,9,7]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),TMe=({discussion:e,onSuccess:t})=>{const[n,r]=x.useState(!1),o=()=>r(!0),a=()=>r(!1);async function i(){t&&await t(),a()}return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:o,children:k("Move")}),u.jsx(Ps,{children:u.jsx(ao,{isVisible:n,size:jt.MEDIUM,exitHandler:a,children:u.jsx(IMe,{discussion:e,onSuccess:i,onCancel:a})})})]})},AMe=({discussion:e})=>{const[t,n]=x.useState(!1),r=()=>n(!0),o=()=>n(!1),a=Go(),i=fn(c=>c.discussions.deleteStatusesByID[e.discussionID]??{status:X.PENDING}),{status:s}=i,l=()=>{a.deleteDiscussion({discussionID:e.discussionID}),o()};return u.jsxs(u.Fragment,{children:[u.jsx(Na,{name:k("Delete"),onClick:r,children:k("Delete")}),u.jsx(Ps,{children:u.jsx(PB,{isVisible:t,size:jt.MEDIUM,title:k("Delete Discussion"),onCancel:o,onConfirm:l,isConfirmLoading:s===X.LOADING,elementToFocusOnExit:document.activeElement,children:k("Are you sure you want to delete this discussion?")})})]})},OMe=re(()=>{const e=ee(),t=Tt("buttonSwitch"),n=t("button",{display:"flex",lineHeight:w(1.25),minHeight:w(30),padding:w(0),paddingBottom:w(4),paddingLeft:w(14),paddingRight:w(14),paddingTop:w(4),textAlign:"start",textDecoration:"none",userSelect:"none",width:Z(100)}),r=t("checkbox",{flexGrow:1}),o=t("checkContainer",{display:"flex",alignItems:"center",justifyContent:"center",color:e.mainColors.primary.toString(),width:Z(100),height:Le(18),flexBasis:Le(18),marginLeft:"auto"});return{container:n,itemLabel:r,checkContainer:o}});function fC(e){const t=Rc(),n=OMe(),{isLoading:r,status:o,onClick:a,label:i}=e,s=o?u.jsxs(u.Fragment,{children:[u.jsx(d1,{"aria-hidden":!0}),u.jsx("span",{className:t.visuallyHidden,children:k("on")})]}):u.jsx(u.Fragment,{children:u.jsx("span",{className:t.visuallyHidden,children:k("off")})}),l=u.jsxs(u.Fragment,{children:[u.jsx("span",{className:n.itemLabel,children:i}),u.jsx("span",{className:ae(n.checkContainer,"sc-only"),children:r?u.jsx(oi,{}):s})]});return u.jsx(Na,{onClick:a,role:"switch","aria-checked":o,disabled:e.isLoading,children:l})}function BMe(e){const{onSuccess:t}=e,{discussionID:n,closed:r}=e.discussion,{patchDiscussion:o,isLoading:a}=NO(n,"close");return u.jsx(fC,{label:k(r?"Closed":"Close"),isLoading:a,onClick:async()=>{await o({closed:!r}),t&&await t()},status:r})}function kMe(e){const{discussionID:t,sink:n=!1}=e.discussion,{onSuccess:r}=e,{patchDiscussion:o,isLoading:a}=NO(t,"sink");return u.jsx(fC,{label:k(n?"Sunk":"Sink"),isLoading:a,onClick:async()=>{await o({sink:!n}),r&&await r()},status:n})}function PMe(e){const t=e.discussion.discussionID;return u.jsxs(u.Fragment,{children:[u.jsx(vh,{to:`/log/filter?recordType=discussion&recordID=${t}`,children:k("Revision History")}),u.jsx(vh,{to:`/log/filter?parentRecordID=${t}&recordType=comment&operation=delete`,children:k("Deleted Comments")})]})}const RMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/ChangeTypeDiscussionForm.loadable.BTFHJkLJ.min.js"),__vite__mapDeps([40,1]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),jMe=({discussion:e,onSuccess:t})=>{const[n,r]=x.useState(!1),o=()=>r(!0),a=()=>r(!1);async function i(){t&&await t(),a()}return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:o,children:k("Change Type")}),u.jsx(Ps,{children:u.jsx(ao,{isVisible:n,size:jt.MEDIUM,exitHandler:a,children:u.jsx(RMe,{discussion:e,onSuccess:i,onCancel:a})})})]})},NMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/TagDiscussionForm.loadable.BQgj5QDO.min.js"),__vite__mapDeps([41,1,31,42]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}}),LMe=({discussion:e,onSuccess:t})=>{const[n,r]=x.useState(!1),o=()=>r(!0),a=()=>r(!1);async function i(){t&&await t(),a()}const s=S({"&&":{overflow:"visible"}},"label:DiscussionOptionsTag-visibleOverrideForSuggestions");return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:o,children:k("Tag")}),u.jsx(ao,{isVisible:n,size:jt.MEDIUM,exitHandler:a,className:s,children:u.jsx(NMe,{discussion:e,onSuccess:i,onCancel:a})})]})};var OI;(function(e){e.ARTICLE="article",e.CATEGORY="category",e.DISCUSSION="discussion",e.EVENT="event",e.GROUPS="groups",e.KNOWLEDGE_BASE="knowledgeBase"})(OI||(OI={}));re((e,t)=>{var i,s;const n=qe("featuredCollections"),r=vm().options,o=n("options",r,e),a=n("featuredImage",{display:((i=e==null?void 0:e.featuredImage)==null?void 0:i.display)??!1,fallbackImage:((s=e==null?void 0:e.featuredImage)==null?void 0:s.fallbackImage)??void 0});return{options:o,featuredImage:a}});const $Me=Hr({loadFunction:()=>mt(()=>import("../chunks/library/ChangeAuthorForm.loadable.B0ABnCJg.min.js"),__vite__mapDeps([43,1,42]),import.meta.url),fallback(){return u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader})}});function MMe(e){const[t,n]=x.useState(!1),r=()=>n(!0),o=()=>n(!1);async function a(){e.onSuccess&&await e.onSuccess(),o()}return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:r,children:k("Change Author")}),u.jsx(ao,{isVisible:t,size:jt.MEDIUM,exitHandler:()=>o(),className:S({overflow:"visible!important"},"label:DiscussionOptionsChangeAuthor-handleSuccess"),children:u.jsx($Me,{discussion:e.discussion,onCancel:o,onSuccess:a})})]})}const yV={get:async(e,t)=>(await Ct.get(`/discussions/${e}`,{params:t})).data,patch:async(e,t)=>(await Ct.patch(`/discussions/${e}`,t)).data,dismiss:async(e,t)=>(await Ct.put(`/discussions/${e}/dismiss`,t)).data,bump:async e=>(await Ct.patch(`/discussions/${e}/bump`)).data},_Me=({discussion:e,onSuccess:t})=>{const n=ha(),{discussionID:r,dismissed:o=!1}=e,a=Bh({mutationFn:async l=>await yV.dismiss(r,{dismissed:l})});async function i(l){n.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k(l?"Success. Announcement has been dismissed.":"Success. Dismissal cancelled.")})}),t&&await t()}function s(l){n.addToast({autoDismiss:!1,dismissible:!0,body:u.jsx(u.Fragment,{children:l.description??l.message})})}return u.jsx(fC,{label:k(o?"Dismissed":"Dismiss"),isLoading:a.isLoading,onClick:async()=>{try{const l=await a.mutateAsync(!o);await i(l.dismissed)}catch(l){s(l)}},status:o})},FMe=({discussion:e,onSuccess:t})=>{const{discussionID:n}=e,r=ha(),o=Bh({mutationFn:async()=>await yV.bump(n)});async function a(){r.addToast({autoDismiss:!0,body:u.jsx(u.Fragment,{children:k("Success! This post has been bumped.")})}),t&&await t()}function i(s){r.addToast({autoDismiss:!1,dismissible:!0,body:u.jsx(u.Fragment,{children:s.description??s.message})})}return u.jsx(Na,{onClick:async()=>{try{await o.mutateAsync(),await a()}catch(s){i(s)}},children:k("Bump")})},WMe=Hr({loadFunction:()=>mt(()=>import("../chunks/library/IntegrationModal.loadable.WswvPje9.min.js"),__vite__mapDeps([44,1,20]),import.meta.url),fallback(e){const{isVisible:t}=e;return t?u.jsx(pr,{size:100,loaderStyleClass:Pr().mediumLoader}):u.jsx(u.Fragment,{})}});function xV(e){const{label:t}=ibe(),{onSuccess:n}=e,[r,o]=x.useState(!1);return u.jsxs(u.Fragment,{children:[u.jsx(Na,{onClick:()=>o(!0),children:t}),u.jsx(WMe,{isVisible:r,exitHandler:()=>o(!1),onSuccess:n})]})}const zMe=["poll","event"],HMe=Hr({loadFunction:()=>mt(()=>import("../chunks/addons/vanilla/ReportModal.loadable.DvnGidXo.min.js"),__vite__mapDeps([45,1]),import.meta.url),fallback(e){return e.isVisible?u.jsx(pr,{size:100,loaderStyleClass:Pr().smallLoader}):u.jsx(u.Fragment,{})}});function BI(e){const[t,n]=x.useState(e.initialVisibility??!1),r=()=>n(!0),o=()=>n(!1);async function a(){e.onSuccess&&await e.onSuccess(),o()}return u.jsxs(u.Fragment,{children:[e.customTrigger?e.customTrigger({onClick:r}):u.jsx(Na,{onClick:r,children:k("Report")}),u.jsx(HMe,{discussionName:e.discussionName,recordID:e.recordID,recordType:e.recordType,placeRecordID:e.placeRecordID,placeRecordType:e.placeRecordType,isVisible:t,onVisibilityChange:()=>o(),onSuccess:a,isLegacyPage:e.isLegacyPage})]})}function UMe(e){const{discussionID:t,resolved:n=!1}=e.discussion,{onSuccess:r}=e,{patchDiscussion:o,isLoading:a}=NO(t,"resolved");return u.jsx(fC,{label:k(n?"Unresolve":"Resolve"),isLoading:a,onClick:async()=>{await o({resolved:!n}),r&&await r()},status:n})}const kI=[];function hmt(e){kI.push(e)}const VMe=S({"&:not(:last-child)":{marginInlineEnd:-8},"@media (max-width: 806px)":{"&:not(:last-child)":{marginInlineEnd:"initial"}}},"label:DiscussionOptionsMenu-reportButtonAlignment"),GMe=({discussion:e,onMutateSuccess:t})=>{var N;const{hasPermission:n}=mr(),{canStillEdit:r,humanizedRemainingTime:o}=Gme(e),a={resourceType:"category",resourceID:e.categoryID,mode:xs.RESOURCE_IF_JUNCTION},i=JO(),s=b1(),l=e.insertUserID===s,c=n("discussions.moderate",a),d=c||l&&n("discussions.closeOwn",a),f=n("community.moderate",{mode:xs.GLOBAL}),h=n("discussions.manage",a),m=n("curation.manage"),g=n("flag.add")&&Ge("featureFlags.escalations.Enabled",!1),p=[],v=[],C=(((N=e==null?void 0:e.category)==null?void 0:N.allowedDiscussionTypes)??[]).filter(_=>!zMe.includes(_)).length>1&&r,D=n("community.manage",{mode:xs.GLOBAL_OR_RESOURCE});r&&v.push(u.jsx(vh,{to:`/post/editdiscussion/${e.discussionID}`,children:o})),e.pinned&&v.push(u.jsx(_Me,{discussion:e,onSuccess:t})),f&&v.push(u.jsx(TMe,{discussion:e,onSuccess:t})),h&&v.push(u.jsx(AMe,{discussion:e})),r&&Ge("TaggingAdd",!0)&&v.push(u.jsx(LMe,{discussion:e,onSuccess:t})),n("staff.allow")&&Ge("triage.enabled",!1)&&v.push(u.jsx(UMe,{discussion:e,onSuccess:t}));const T=[];(c||D)&&T.push(u.jsx(EMe,{discussion:e,onSuccess:t})),h&&T.push(u.jsx(MMe,{discussion:e,onSuccess:t})),C&&T.push(u.jsx(jMe,{discussion:e,onSuccess:t})),D&&T.push(u.jsx(bV,{recordID:e.discussionID,recordType:OI.DISCUSSION,record:e}));const B=[];m&&B.push(u.jsx(FMe,{discussion:e,onSuccess:t})),(c||D)&&B.push(u.jsx(kMe,{discussion:e,onSuccess:t})),d&&B.push(u.jsx(BMe,{discussion:e,onSuccess:t}));const j=[];c&&j.push(u.jsx(PMe,{discussion:e}));let R=[];return kI.length&&kI.sort((_,U)=>(_.sort??0)-(U.sort??0)).forEach(_=>{if(!_.permission||n(_.permission.permission,_.permission.options))switch(_.group){case"firstGroup":v.splice(_.sort??v.length,0,u.jsx(_.component,{discussion:e,onSuccess:t}));break;case"moderationGroup":T.splice(_.sort??T.length,0,u.jsx(_.component,{discussion:e,onSuccess:t}));break;case"statusGroup":B.splice(_.sort??B.length,0,u.jsx(_.component,{discussion:e,onSuccess:t}));break;default:R.push(u.jsx(_.component,{discussion:e,onSuccess:t}));break}}),p.push(...v),T.length>0&&(p.push(u.jsx(uf,{})),p.push(...T)),B.length>0&&(p.push(u.jsx(uf,{})),p.push(...B)),j.length>0&&(p.push(u.jsx(uf,{})),p.push(...j)),i.filter(({recordTypes:_})=>_.includes("discussion")).filter(({writeableContentScope:_})=>_==="own"?l:!0).forEach(({attachmentType:_})=>{R.push(u.jsx($z,{recordType:"discussion",attachmentType:_,recordID:e.discussionID,children:u.jsx(xV,{onSuccess:t})}))}),R.length>0&&(p.push(u.jsx(uf,{})),p.push(...R)),p.length>0&&g&&(p.push(u.jsx(uf,{})),p.push(u.jsx(BI,{discussionName:e.name,recordType:"discussion",recordID:e.discussionID,onSuccess:t,placeRecordType:"category",placeRecordID:e.categoryID}))),u.jsxs(u.Fragment,{children:[g?u.jsx(BI,{discussionName:e.name,recordType:"discussion",recordID:e.discussionID,onSuccess:t,placeRecordType:"category",placeRecordID:e.categoryID,customTrigger:_=>u.jsx(In,{label:k("Report content"),children:u.jsx(ut,{buttonType:ye.ICON,onClick:_.onClick,className:VMe,children:u.jsx(Bt,{icon:"post-flag"})})})}):null,p.length>0&&u.jsx(Jh,{buttonContents:u.jsx(Bt,{icon:"navigation-circle-ellipsis"}),name:k("Discussion Options"),flyoutType:jc.LIST,asReachPopover:!0,children:p.map((_,U)=>u.jsx(W.Fragment,{children:_},U))})]})},YMe=re(()=>{const e=ee(),t=_8(),n=S({backgroundColor:t.colors.bg,color:P.colorOut(t.colors.fg),fontSize:t.sizing.height,lineHeight:1,width:"1em",borderRadius:"1em",minHeight:"1em",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",boxShadow:`0px 0px 0px 2px ${P.colorOut(e.mainColors.bg)}`},"label:VoteCounter-styles-root"),r=S({fontSize:"0.35em",fontWeight:e.fonts.weights.semiBold,"&:first-child":{lineHeight:1.43,marginBottom:Z(-20)},"&:nth-child(2)":{lineHeight:.72}},"label:VoteCounter-styles-count"),o={stroke:"currentcolor",fillOpacity:1},i=S({...{fill:"currentcolor",fillOpacity:0,stroke:"currentcolor"},transition:"all .1s linear",width:"0.625em",height:"0.625em"},"label:VoteCounter-styles-icon");return{root:n,count:r,icon:i,iconChecked:S(o,"label:VoteCounter-styles-iconChecked")}}),KMe=({upvoted:e=!1,onToggleUpvoted:t,downvoted:n=!1,onToggleDownvoted:r,score:o=0,className:a})=>{const{root:i,count:s,icon:l,iconChecked:c}=YMe(),d=u.jsx("span",{className:s,children:o});let f=u.jsx(u.Fragment,{});t&&(f=u.jsx(AI,{checked:e,onChange:t,title:k("Upvote"),children:({disabled:g})=>u.jsx(Cfe,{className:ge(l,{[c]:e&&!g})})}));let h=u.jsx(u.Fragment,{});r&&(h=u.jsx(AI,{checked:n,onChange:r,title:k("Downvote"),children:({disabled:g})=>u.jsx(UW,{className:ge(l,{[c]:n&&!g})})}));let m=u.jsxs(u.Fragment,{children:[d,f]});return r&&(m=u.jsxs(u.Fragment,{children:[f,d,h]})),u.jsx("div",{className:ge(i,a),children:m})};var vc;(function(e){e.UP="Up",e.DOWN="Down"})(vc||(vc={}));const qMe=({discussion:{discussionID:e,reactions:t,score:n},className:r})=>{const o=Hme(e),a=Ume(e),i=ha(),s=RO(e),l=(s==null?void 0:s.urlcode)==vc.UP,c=(s==null?void 0:s.urlcode)==vc.DOWN;let d;const f=t==null?void 0:t.find(g=>g.urlcode===vc.UP);f&&(d=async function(){const g=l?a:async()=>o(f);try{l?g():await g()}catch(p){i.addToast({autoDismiss:!1,dismissible:!0,body:u.jsx(u.Fragment,{children:p.description})})}});let h;const m=t==null?void 0:t.find(g=>g.urlcode===vc.DOWN);return m&&(h=async function(){const g=c?a:async()=>o(m);try{c?g():await g()}catch(p){i.addToast({autoDismiss:!1,dismissible:!0,body:u.jsx(u.Fragment,{children:p.description})})}}),u.jsx(KMe,{className:r,onToggleUpvoted:d,onToggleDownvoted:h,score:n,upvoted:l,downvoted:c})},XMe=re(()=>{const e=qe("notice"),t=ee(),n=Tn(),r=e("font",ce.font({...t.fontSizeAndWeightVars("extraSmall","semiBold"),color:t.mainColors.primary})),o=e("border",ce.border({color:r.color,width:t.border.width,radius:2})),a=Le(n.font.size*n.font.lineHeight-o.width*2),i=e("font",ce.font({...r,lineHeight:a})),s=e("spacing",ce.spacing({horizontal:5}));return{font:i,border:o,spacing:s}}),QMe=re(()=>{const{font:e,border:t,spacing:n}=XMe();return{root:S({...E.font(e),...E.border(t),...E.padding(n)},"label:Notice-styles-root")}}),CV=({children:e,className:t})=>{const n=QMe();return u.jsx("span",{className:ge(n.root,t),children:e})};function ZMe(e){var ie;const{hasPermission:t}=mr(),{item:{metas:{display:n,asIcons:r}}}=Is(e.discussionOptions),o=Pi(e.discussionOptions,e.inTile),a=Is(e.discussionOptions),{pinned:i,closed:s,insertUser:l,countViews:c,countComments:d,category:f,dateLastComment:h,lastUser:m,unread:g,countUnread:p,attributes:v,tags:b,score:y,resolved:C,inTile:D}=e,T=Xh()&&!(e.type=="redirect"&&e.closed)&&(g&&!D||p!==void 0&&p>0&&n.unreadCount),B=!!f&&n.category,j=!!l&&n.startedByUser,R=d>0&&!!m&&n.lastUser,N=!!((ie=v==null?void 0:v.question)!=null&&ie.status)&&n.qnaStatus,_=oe=>{switch(oe){case"unanswered":return o.qnaStatusUnanswered;case"answered":return o.qnaStatusAnswered;case"accepted":return o.qnaStatusAccepted;default:return""}},U=c>0&&n.viewCount,V=U&&r,z=d>0&&n.commentCount,Y=z&&r,te=n.score,se=te&&r,he=!!h&&n.lastCommentDate,pe=he&&r,K=!!b&&b.length>0&&n.userTags&&a.userTags.maxNumber>0,O=t("staff.allow",{mode:xs.GLOBAL_OR_RESOURCE}),le=C!==void 0&&O&&n.resolved&&Ge("triage.enabled",!1),be=Ge("featureFlags.customLayout.discussionList.Enabled",!1),H=u.jsxs(u.Fragment,{children:[le&&u.jsx(ds,{className:o.resolved,icon:C?"cmd-approve":"cmd-alert","aria-label":k(C?"Resolved":"Unresolved")}),s&&u.jsx(Ru,{tagPreset:a.labels.tagPreset,className:o.closedTag,children:k("Closed")}),i&&u.jsx(Ru,{className:o.announcementTag,children:k("Announcement")}),N&&u.jsx(Ru,{className:_(v.question.status),children:k(`${e_e(v.question.status)}`)}),K&&(b==null?void 0:b.slice(0,a.userTags.maxNumber).map((oe,ve)=>{const Ne=`/search?${Oc.stringify({domain:"discussions",tagsOptions:[{value:oe.tagID,label:oe.name,tagCode:oe.urlcode}]})}`,Ze=`/discussions?tagID=${oe.tagID}`;return u.jsx(Ru,{className:`tag-usertag-${oee(oe.name)}`,to:be?Ze:Ne,tagPreset:a.userTags.tagPreset,children:oe.name},ve)}))]});return u.jsxs(u.Fragment,{children:[!D&&H,U&&!V&&u.jsx(Bn,{children:u.jsx(dn,{source:"<0/> views",c0:c})}),z&&!Y&&u.jsx(Bn,{children:u.jsx(dn,{source:"<0/> comments",c0:d})}),te&&!se&&u.jsx(Bn,{children:JMe(y??0)}),j&&u.jsx(Bn,{children:u.jsx(dn,{source:"Started by <0/>",c0:u.jsx(ai,{userFragment:l,className:Aa().metaLink})})}),R&&u.jsx(Bn,{className:ge({[o.fullWidth]:D}),children:u.jsx(dn,{source:"Most recent by <0/>",c0:u.jsx(ai,{userFragment:m,className:Aa().metaLink})})}),he&&!pe&&h&&u.jsx(Bn,{children:u.jsx(Uo,{timestamp:h})}),B&&u.jsxs(Ry,{to:f.url,children:[" ",f.name," "]}),T&&u.jsx(Bn,{children:u.jsx(CV,{children:p?u.jsx(dn,{source:"<0/> new",c0:e.countUnread}):u.jsx(dn,{source:"New"})})}),V&&u.jsx(ds,{icon:"meta-view","aria-label":k("Views"),children:c}),pe&&h&&u.jsx(ds,{icon:"meta-time","aria-label":k("Last comment"),children:u.jsx(Uo,{timestamp:h})}),se&&u.jsx(ds,{icon:"meta-like","aria-label":k("Score"),children:y??0}),Y&&u.jsx(ds,{icon:"meta-comment","aria-label":k("Comments"),children:d})]})}function JMe(e){const t=k(e===0?"%s point":"%s points");return yt.sprintf(t,e)}function wV(e){var R,N,_;const{discussion:t}=e,{hasPermission:n}=mr(),{getDiscussionByIDs:r}=Go(),o=Fh(),a=Pi(e.discussionOptions,e.asTile),i=Is(e.discussionOptions),s=Xh(),l=wv(),c=t.unread||t.countUnread!==void 0&&t.countUnread>0,d=Ge("ui.autoOffsetComments",!0);let f=u.jsx(Yi,{userInfo:t.insertUser,size:i.profilePhoto.size});t.insertUser&&(f=u.jsx(ai,{userFragment:t.insertUser,children:f}));const h=ge({[tO()]:e.disableButtonsInItems});let m=null,g=null;i.item.options.iconPosition!==Ci.HIDDEN&&(m=u.jsx("div",{className:ge(h,a.userIcon),children:f}));const p=(R=t.reactions)==null?void 0:R.filter(({urlcode:U})=>[vc.UP,vc.DOWN].includes(U)).length;s&&t.type==="idea"&&(g=u.jsx(qMe,{className:ge(a.iconAndVoteCounterWrapper(p),h),discussion:t}));const v=u.jsx(u.Fragment,{children:s&&u.jsxs(u.Fragment,{children:[u.jsx(SMe,{discussion:t}),u.jsx(GMe,{discussion:t,onMutateSuccess:async()=>{await o(r({discussionIDs:[C]}))}})]})}),b=s&&d?`${t.url}#latest`:t.url,y=!e.noCheckboxes&&n("discussions.manage",{resourceType:"category",resourceID:t.categoryID,mode:xs.RESOURCE_IF_JUNCTION})&&Ge("ui.useAdminCheckboxes",!1),{discussionID:C}=t,D=l.checkedDiscussionIDs.includes(C),A=l.pendingActionIDs.includes(C),[T,B]=x.useState(null),j=x.useMemo(()=>{const V=!D&&l.checkedDiscussionIDs.length>=50;return B(z=>V?k("You have reached the maximum selection amount."):A?k("This discussion is still being processed."):z),V||A},[l,D,A]);return u.jsx(aC,{url:b,name:t.name,className:ge(D||A?a.checkedboxRowStyle:void 0,e.className),nameClassName:ge(a.title,{isRead:!c&&s}),description:((_=(N=e.discussionOptions)==null?void 0:N.excerpt)==null?void 0:_.display)===!1?"":t.excerpt,metas:u.jsx(ZMe,{...t,inTile:e.asTile,discussionOptions:e.discussionOptions}),actions:v,icon:m,secondIcon:g,iconWrapperClass:a.voteCounterWrapper(p),options:i.item.options,as:e.asTile?"div":void 0,featuredImage:i.item.featuredImage,image:t.image,asTile:e.asTile,disableButtonsInItems:e.disableButtonsInItems,checkbox:y?u.jsx(Hn,{condition:j&&!!T,component:In,componentProps:{label:T},children:u.jsx("span",{children:u.jsx(no,{checked:D||A,label:`Select ${t.name}`,hideLabel:!0,disabled:j,onChange:U=>{U.target.checked?l.addCheckedDiscussionsByIDs(C):l.removeCheckedDiscussionsByIDs(C)}})})}):void 0})}function e_e(e){switch(e){case"unanswered":case"rejected":return"Q&A Question";case"answered":return"Q&A Answered";case"accepted":return"Q&A Accepted";default:return e.charAt(0).toUpperCase()+e.slice(1)}}function SV(e){const{discussions:t}=e,n=Is(e.discussionOptions);return u.jsx(Mv,{options:{box:n.contentBoxes.depth1,itemBox:n.contentBoxes.depth2,itemLayout:n.item.excerpt.display?void 0:qa.TITLE_METAS},...e,children:t.length===0?u.jsx(mo,{as:"li",children:k("No discussions were found.")}):t.map(r=>u.jsx(wV,{noCheckboxes:e.noCheckboxes,discussion:r,discussionOptions:e.discussionOptions,disableButtonsInItems:e.disableButtonsInItems},r.discussionID))})}const ea={checkbox:S({alignItems:"flex-start",paddingRight:16},"label:DiscussionListLoader-checkbox"),imageOrIcon:S({marginRight:16},"label:DiscussionListLoader-imageOrIcon"),imageWrapper:S({display:"flex"},"label:DiscussionListLoader-imageWrapper"),image:S({width:144,height:81,borderRadius:8,overflow:"hidden"},"label:DiscussionListLoader-image"),imageIcons:S({display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",marginTop:-10,marginBottom:-10,marginLeft:-24},"label:DiscussionListLoader-imageIcons"),iconOnly:S({display:"flex",flexDirection:"column","& .secondIcon":{marginTop:-15,marginLeft:-10}},"label:DiscussionListLoader-iconOnly"),iconBorder:S({width:"fit-content",height:"fit-content",borderRadius:"50%",borderStyle:"solid",borderWidth:2,borderColor:P.colorOut(ee().mainColors.bg)},"label:DiscussionListLoader-iconBorder"),metaIcon:S({marginRight:8,display:"flex","& .secondIcon":{marginLeft:-10,marginTop:10}},"label:DiscussionListLoader-metaIcon")};function DV(e){return u.jsx("div",{style:{...e.style,display:"flex",opacity:.5},children:e.icon?u.jsx(Bt,{icon:e.icon}):u.jsxs(u.Fragment,{children:[u.jsx(Bt,{icon:"discussion-bookmark",style:{fill:"transparent",marginRight:6}}),u.jsx(Bt,{icon:"navigation-ellipsis"})]})})}function EV(e){const{icon:t=!0}=e;return u.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"space-between",position:"relative"},children:[e.image&&u.jsxs(u.Fragment,{children:[u.jsx(tn,{height:9/16*296}),e.asTile&&u.jsx(ys,{height:16})]}),u.jsxs("div",{style:{padding:e.asTile?0:16},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[u.jsxs("div",{style:{display:"flex"},children:[e.checkbox&&u.jsx(no,{className:ea.checkbox}),t&&!e.iconInMeta&&u.jsx(vi,{width:40,height:40}),e.secondIcon&&!e.iconInMeta&&u.jsx("div",{style:{marginLeft:-10},className:ea.iconBorder,children:u.jsx(vi,{width:32,height:32})})]}),u.jsx(DV,{})]}),u.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"space-between"},children:[u.jsx(tn,{height:20}),u.jsx(ys,{height:8}),e.excerpt&&u.jsx(tn,{height:42}),u.jsx(ys,{height:10}),u.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.iconInMeta&&u.jsxs("div",{className:ea.metaIcon,children:[u.jsx(vi,{width:40,height:40}),e.secondIcon&&u.jsx("div",{className:ge("secondIcon",ea.iconBorder),children:u.jsx(vi,{width:32,height:32})})]}),u.jsx(tn,{height:e.iconInMeta?32:16})]})]})]})]})}function t_e(e){return u.jsxs(mo,{as:"div",className:Gc().root,children:[u.jsx(Cr,{children:k("Loading")}),u.jsx(EV,{...e})]})}function n_e(e){const{icon:t=!0}=e,n=t&&!e.iconInMeta||e.image||e.secondIcon&&!e.iconInMeta;return u.jsxs(mo,{as:"li",children:[u.jsx(Cr,{children:k("Loading")}),e.asTile?u.jsx(EV,{...e}):u.jsxs("div",{style:{display:"flex"},children:[e.checkbox&&u.jsx(no,{className:ea.checkbox}),n&&u.jsx("div",{style:{marginRight:16},children:e.image?u.jsxs("div",{className:ea.imageWrapper,children:[u.jsx("div",{className:ea.image,children:u.jsx(tn,{width:"100%",height:"100%"})}),(t||e.secondIcon)&&u.jsxs("div",{className:ea.imageIcons,children:[e.secondIcon?u.jsx("div",{className:ea.iconBorder,children:u.jsx(vi,{width:32,height:32})}):u.jsx("div",{}),t&&u.jsx("div",{className:ea.iconBorder,children:u.jsx(vi,{width:40,height:40})})]})]}):u.jsxs("div",{className:ea.iconOnly,children:[t&&!e.iconInMeta&&u.jsx(vi,{width:40,height:40}),e.secondIcon&&u.jsx("div",{className:ge("secondIcon",ea.iconBorder),children:u.jsx(vi,{width:32,height:32})})]})}),u.jsxs("div",{style:{flex:1},children:[u.jsx(tn,{height:20}),u.jsx(ys,{height:8}),e.excerpt&&u.jsx(tn,{height:42}),u.jsx(ys,{height:10}),u.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.iconInMeta&&u.jsxs("div",{className:ea.metaIcon,children:[u.jsx(vi,{width:40,height:40}),e.secondIcon&&u.jsx("div",{className:ge("secondIcon",ea.iconBorder),children:u.jsx(vi,{width:32,height:32})})]}),u.jsx(tn,{height:e.iconInMeta?32:16})]})]}),u.jsx(DV,{style:{marginLeft:16},icon:e.actionIcon})]})]})}function kk(e){var c,d;const{count:t=10,itemOptions:n={},displayType:r=Ln.LIST}=e,o=x.useRef(null),i=Zn(o).width<=600,s=Is(),l=Array.from(new Array(t)).map((f,h)=>h);return r===Ln.LIST?u.jsx("div",{ref:o,children:u.jsx(Mv,{options:{box:s.contentBoxes.depth1,itemBox:s.contentBoxes.depth2,itemLayout:s.item.excerpt.display?void 0:qa.TITLE_METAS},children:l.map(f=>u.jsx(n_e,{...n,asTile:i,actionIcon:e.actionIcon},f))})}):r===Ln.LINK?u.jsx(u.Fragment,{children:l.map(f=>u.jsxs("div",{children:[u.jsx(Cr,{children:k("Loading")}),u.jsx(ys,{height:8,width:300}),u.jsx(tn,{height:16,width:300}),u.jsx(ys,{height:8,width:300})]},f))}):u.jsx(Us,{...e.containerProps,options:((c=e.containerProps)==null?void 0:c.containerOptions)||((d=e.containerProps)==null?void 0:d.options),children:l.map(f=>u.jsx(t_e,{...n},f))})}function IV(e){const t=wv(),n=e.discussionIDs??[],r=n.length>0&&k6(n,t.checkedDiscussionIDs).length===n.length;return u.jsx(no,{label:k("Select All"),hideLabel:!0,checked:r,disabled:n.length===0,className:e.className,onChange:o=>{o.target.checked?t.addCheckedDiscussionsByIDs(n):t.removeCheckedDiscussionsByIDs(n)}})}function r_e(e){const[t,n]=x.useState(null),r=x.useRef(null);if(x.useLayoutEffect(()=>{var s,l;const a=(l=(s=r.current)==null?void 0:s.closest(".MainContent"))==null?void 0:l.querySelector(".PageControls.Top .PageControls-filters"),i=a==null?void 0:a.querySelector(".AdminCheck");if(i&&i.remove(),a instanceof HTMLElement){const c=document.createElement("span");a.insertBefore(c,a.firstElementChild),n(c)}},[r.current]),!t)return u.jsx("span",{ref:r});const o=Pi();return aa.createPortal(u.jsx(IV,{className:o.legacySelectAllCheckbox,discussionIDs:e.discussionIDs}),t)}function o_e(e){var n,r;const t=jO(e.apiParams,e.discussions);return t.status===X.LOADING||t.status===X.PENDING?u.jsx(kk,{count:20,itemOptions:{excerpt:!0,checkbox:!e.noCheckboxes}}):!((n=t.data)!=null&&n.discussionList)||t.status===X.ERROR||t.error?u.jsx(yv,{apiError:t.error}):u.jsxs(u.Fragment,{children:[u.jsx(SV,{noCheckboxes:e.noCheckboxes,discussions:t.data.discussionList,discussionOptions:{...e.discussionOptions,featuredImage:{display:e.apiParams.featuredImage,...e.apiParams.fallbackImage&&{fallbackImage:e.apiParams.fallbackImage}}},disableButtonsInItems:e.disableButtonsInItems}),e.isMainContent&&!e.noCheckboxes&&u.jsx(r_e,{discussionIDs:(r=t.data)==null?void 0:r.discussionList.map(o=>o.discussionID)})]})}function TV(e){var i,s,l;const{title:t,description:n,subtitle:r,viewAllUrl:o,...a}=e;return u.jsx(Us,{title:t,subtitle:r,description:n,options:{...e.containerOptions,isGrid:!1,viewAll:{...(i=e.containerOptions)==null?void 0:i.viewAll,to:o??((l=(s=e.containerOptions)==null?void 0:s.viewAll)==null?void 0:l.to)}},children:u.jsx(o_e,{...a})})}function AV(e){var f,h,m,g,p,v,b,y,C;const{discussions:t,discussionOptions:n,disableButtonsInItems:r,containerOptions:o,title:a,subtitle:i,description:s}=e,l=Nv(o);let c=0;t&&t.length<((o==null?void 0:o.maxColumnCount)??3)&&(c=((o==null?void 0:o.maxColumnCount)??3)-t.length);const d={...n,metas:{...n==null?void 0:n.metas,asIcons:!0,display:{...(f=n==null?void 0:n.metas)==null?void 0:f.display,category:!1,startedByUser:!1,lastUser:(m=(h=n==null?void 0:n.metas)==null?void 0:h.display)==null?void 0:m.lastUser,lastCommentDate:!1,viewCount:(p=(g=n==null?void 0:n.metas)==null?void 0:g.display)==null?void 0:p.viewCount,commentCount:(b=(v=n==null?void 0:n.metas)==null?void 0:v.display)==null?void 0:b.commentCount,score:(C=(y=n==null?void 0:n.metas)==null?void 0:y.display)==null?void 0:C.score,userTags:!1,unreadCount:!1}}};return u.jsxs(Us,{title:a,subtitle:i,description:s,options:{...o},extraHeader:e.assetHeader,children:[t&&t.map(D=>u.jsx(wV,{noCheckboxes:e.noCheckboxes,discussion:D,className:Gc().root,discussionOptions:d,asTile:!0,disableButtonsInItems:r},D.discussionID)),[...new Array(c)].map((D,A)=>u.jsx("div",{className:l.gridItemSpacer},"spacer-"+A))]})}function a_e(e){var n;const t=jO(e.apiParams,e.discussions);return t.status===X.LOADING||t.status===X.PENDING?u.jsx(pr,{}):!((n=t.data)!=null&&n.discussionList)||t.status===X.ERROR||t.error?u.jsx(yv,{apiError:t.error}):u.jsx(AV,{discussions:t.data.discussionList,...e})}var Tc;(function(e){e.RECENTLY_COMMENTED="-dateLastComment",e.RECENTLY_CREATED="-dateInserted",e.TOP="-score",e.TRENDING="-hot",e.OLDEST="dateInserted"})(Tc||(Tc={}));function i_e(e){const{filter:t,onFilterChange:n,isMobile:r}=e;x.useState(e.filter);const o=[{name:k("All"),value:"all"},{name:k("Following"),value:"followed"}],a=x.useMemo(()=>o.find(s=>s.value===t),[t]),i=ro("discussionCategoryFilter");return u.jsxs("div",{className:Pi().filterAndSortingContainer,children:[!r&&u.jsxs("span",{id:i,className:Pi().filterAndSortingLabel,children:[k("Categories"),":"]}),u.jsx(Sv,{className:Pi().filterAndSortingDropdown,buttonType:ye.TEXT_PRIMARY,options:o,name:k("Categories"),describedBy:i,value:a,renderLeft:!1,horizontalOffset:!0,offsetPadding:!0,onChange:({value:s})=>{n(s==="followed")}})]})}function s_e(e,t,n,r){var o=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function l_e(e){return function(t){return e==null?void 0:e[t]}}var c_e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},u_e=l_e(c_e);const d_e=u_e;var f_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,h_e="\\u0300-\\u036f",m_e="\\ufe20-\\ufe2f",p_e="\\u20d0-\\u20ff",g_e=h_e+m_e+p_e,v_e="["+g_e+"]",b_e=RegExp(v_e,"g");function y_e(e){return e=rv(e),e&&e.replace(f_e,d_e).replace(b_e,"")}var x_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function C_e(e){return e.match(x_e)||[]}var w_e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function S_e(e){return w_e.test(e)}var OV="\\ud800-\\udfff",D_e="\\u0300-\\u036f",E_e="\\ufe20-\\ufe2f",I_e="\\u20d0-\\u20ff",T_e=D_e+E_e+I_e,BV="\\u2700-\\u27bf",kV="a-z\\xdf-\\xf6\\xf8-\\xff",A_e="\\xac\\xb1\\xd7\\xf7",O_e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",B_e="\\u2000-\\u206f",k_e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",PV="A-Z\\xc0-\\xd6\\xd8-\\xde",P_e="\\ufe0e\\ufe0f",RV=A_e+O_e+B_e+k_e,jV="['’]",cM="["+RV+"]",R_e="["+T_e+"]",NV="\\d+",j_e="["+BV+"]",LV="["+kV+"]",$V="[^"+OV+RV+NV+BV+kV+PV+"]",N_e="\\ud83c[\\udffb-\\udfff]",L_e="(?:"+R_e+"|"+N_e+")",$_e="[^"+OV+"]",MV="(?:\\ud83c[\\udde6-\\uddff]){2}",_V="[\\ud800-\\udbff][\\udc00-\\udfff]",mf="["+PV+"]",M_e="\\u200d",uM="(?:"+LV+"|"+$V+")",__e="(?:"+mf+"|"+$V+")",dM="(?:"+jV+"(?:d|ll|m|re|s|t|ve))?",fM="(?:"+jV+"(?:D|LL|M|RE|S|T|VE))?",FV=L_e+"?",WV="["+P_e+"]?",F_e="(?:"+M_e+"(?:"+[$_e,MV,_V].join("|")+")"+WV+FV+")*",W_e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",z_e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",H_e=WV+FV+F_e,U_e="(?:"+[j_e,MV,_V].join("|")+")"+H_e,V_e=RegExp([mf+"?"+LV+"+"+dM+"(?="+[cM,mf,"$"].join("|")+")",__e+"+"+fM+"(?="+[cM,mf+uM,"$"].join("|")+")",mf+"?"+uM+"+"+dM,mf+"+"+fM,z_e,W_e,NV,U_e].join("|"),"g");function G_e(e){return e.match(V_e)||[]}function Y_e(e,t,n){return e=rv(e),t=n?void 0:t,t===void 0?S_e(e)?G_e(e):C_e(e):e.match(t)||[]}var K_e="['’]",q_e=RegExp(K_e,"g");function X_e(e){return function(t){return s_e(Y_e(y_e(t).replace(q_e,"")),e,"")}}function Q_e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:S6(e,t,n)}var Z_e="\\ud800-\\udfff",J_e="\\u0300-\\u036f",eFe="\\ufe20-\\ufe2f",tFe="\\u20d0-\\u20ff",nFe=J_e+eFe+tFe,rFe="\\ufe0e\\ufe0f",oFe="\\u200d",aFe=RegExp("["+oFe+Z_e+nFe+rFe+"]");function zV(e){return aFe.test(e)}function iFe(e){return e.split("")}var HV="\\ud800-\\udfff",sFe="\\u0300-\\u036f",lFe="\\ufe20-\\ufe2f",cFe="\\u20d0-\\u20ff",uFe=sFe+lFe+cFe,dFe="\\ufe0e\\ufe0f",fFe="["+HV+"]",PI="["+uFe+"]",RI="\\ud83c[\\udffb-\\udfff]",hFe="(?:"+PI+"|"+RI+")",UV="[^"+HV+"]",VV="(?:\\ud83c[\\udde6-\\uddff]){2}",GV="[\\ud800-\\udbff][\\udc00-\\udfff]",mFe="\\u200d",YV=hFe+"?",KV="["+dFe+"]?",pFe="(?:"+mFe+"(?:"+[UV,VV,GV].join("|")+")"+KV+YV+")*",gFe=KV+YV+pFe,vFe="(?:"+[UV+PI+"?",PI,VV,GV,fFe].join("|")+")",bFe=RegExp(RI+"(?="+RI+")|"+vFe+gFe,"g");function yFe(e){return e.match(bFe)||[]}function xFe(e){return zV(e)?yFe(e):iFe(e)}function CFe(e){return function(t){t=rv(t);var n=zV(t)?xFe(t):void 0,r=n?n[0]:t.charAt(0),o=n?Q_e(n,1).join(""):t.slice(1);return r[e]()+o}}var wFe=CFe("toUpperCase"),SFe=X_e(function(e,t,n){return e+(n?" ":"")+wFe(t)});function DFe(e){const{currentSort:t=Tc.RECENTLY_COMMENTED,selectSort:n,isMobile:r}=e,o=Pi(),a=x.useMemo(()=>ro("discussionSortBy"),[]),i=x.useMemo(()=>Object.entries(Tc).map(([d,f])=>({name:k(SFe(d.toLowerCase())),value:f})),[]),s=x.useMemo(()=>i.find(({value:f})=>f===t),[t,i]),l=d=>{n(d.value)},c=r?u.jsx(Bt,{icon:"data-sort-dropdown"}):null;return u.jsxs("div",{className:o.filterAndSortingContainer,children:[!r&&u.jsxs("span",{className:o.filterAndSortingLabel,id:a,children:[k("Sort by"),":"]}),u.jsx(Sv,{className:o.filterAndSortingDropdown,buttonType:ye.TEXT_PRIMARY,options:i,value:s,onChange:l,describedBy:a,name:k("Sort by"),renderLeft:!1,horizontalOffset:!0,offsetPadding:!0,overwriteButtonContents:c})]})}function EFe(){const{isSuccess:e,data:t}=Ss({queryKey:["tags",{type:"User"}],queryFn:async({queryKey:r})=>{const[o,a]=r,{data:i}=await Ct.get("/tags",{params:a});return l1(i,[s=>s.name.toLowerCase()])}});return x.useMemo(()=>e?t.map(({tagID:r,name:o})=>({value:r.toString(),label:o})):[],[e,t])}function IFe(){const e={"plugins.qna":{label:k("Question"),value:"Question"},"plugins.ideation":{label:k("Idea"),value:"Idea"},"plugins.polls":{label:k("Poll"),value:"Poll"}},{status:t,data:n}=xk(Object.keys(e));return x.useMemo(()=>{const o=[{label:k("Discussion"),value:"Discussion"}];return t===X.SUCCESS&&n&&Object.entries(e).forEach(([a,i])=>{n[a]&&o.push(i)}),o},[t,n])}function qV(e){const t=Ss({queryKey:["discussionStatuses"],queryFn:async()=>{const{data:a}=await Ct.get("/discussions/statuses");return a}}),{data:n,isSuccess:r}=t;return x.useMemo(()=>{if(r){const a={question:{label:k("Q & A"),options:[]},ideation:{label:k("Ideas"),options:[]},internal:{label:k("Resolution Status"),options:[]}};return n.forEach(({statusID:i,name:s,recordSubtype:l,isInternal:c})=>{i>0&&a[c?"internal":l].options.push({value:i,label:k(s)})}),a.question.options=a.question.options.filter(({label:i})=>i!=="Rejected"),a.ideation.options=l1(a.ideation.options,({label:i})=>i.toLowerCase()),e?a.internal.options:[a.question,a.ideation].filter(i=>i.options.length>0)}return[]},[r,n,e])}function TFe(e){const t=D1(),{value:n,onChange:r,label:o}=e,a=EFe(),i=x.useMemo(()=>n.split(",").map(l=>a.find(c=>c.value===l)).filter(l=>!!l),[n,a]),s=(l=[])=>{const c=l.map(d=>d.value);r(c.join(","))};return u.jsx(Bv,{value:i,label:o,onChange:s,options:a,inModal:t,showIndicator:!0})}function AFe(e){const t=D1(),{value:n,onChange:r,label:o,types:a=[]}=e,i=qV(),s=x.useMemo(()=>{let f=[...i];return a.length>0&&(f=f.filter(({label:h})=>!!(h==="Q & A"&&a.includes("Question")||h==="Ideas"&&a.includes("Idea")))),f.map(h=>{var m,g;return(h==null?void 0:h.label)==="Q & A"?{...h,options:(m=h==null?void 0:h.options)==null?void 0:m.map(p=>({...p,label:`${k("Q & A")}: ${p.label}`}))}:(h==null?void 0:h.label)==="Ideas"?{...h,options:(g=h==null?void 0:h.options)==null?void 0:g.map(p=>({...p,label:`${k("Ideas")}: ${p.label}`}))}:h})},[i,a]),l=x.useMemo(()=>{if(s){const f=E6(s.map(h=>h.options));return n.map(h=>f.find(m=>m.value===h)).filter(h=>!!h)}return[]},[n,s]),c=f=>{const h=f.map(({value:m})=>parseInt(m));r(h)};if(s.length===0)return null;const d=({label:f})=>{const h=f.startsWith(`${k("Q & A")}: `)?f.replace(`${k("Q & A")}: `,""):f.startsWith(`${k("Ideas")}: `)?f.replace(`${k("Ideas")}: `,""):f;return u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"sr-only",children:f}),h]})};return u.jsx(Bv,{value:l,options:s,onChange:c,label:o,inModal:t,showIndicator:!0,formatOptionLabel:d})}function OFe(e){const t=D1(),{value:n,onChange:r,label:o}=e,a=IFe(),i=x.useMemo(()=>n.map(l=>a.find(c=>c.value===l)).filter(l=>!!l),[n,a]),s=(l=[])=>{const c=l.map(d=>d.value);r(c)};return a.length===1?null:u.jsx(Bv,{value:i,label:o,onChange:s,options:a,inModal:t,showIndicator:!0})}function BFe(e){const{value:t,onChange:n,label:r}=e,o=qV(!0),a=xk(["plugins.resolved"]),i=(s,l)=>{const{currentTarget:{checked:c}}=l;let d=[...t];const f=o.map(h=>h.value);d.length===0&&!c?d=f.filter(h=>h!==s.value):d.length===1&&c&&(d=[]),n(d)};return o.length===0||!a?null:u.jsx(Ok,{legend:r,children:o.map(s=>u.jsx(no,{label:s.label,onChange:l=>i(s,l),checked:t.length===0||t.indexOf(s.value)>-1},s.value))})}function kFe(e){const{value:t,onChange:n,label:r}=e;function o(a){t===void 0?n(a==="hasNoCommentsCheckbox"):t===!0?a==="hasNoCommentsCheckbox"&&n(void 0):a==="hasCommentsCheckbox"&&n(void 0)}return u.jsxs(Ok,{legend:r,children:[u.jsx(no,{label:k("No Comments"),labelBold:!1,checked:t===!1||t===void 0,onChange:()=>o("hasNoCommentsCheckbox")},"hasNoCommentsCheckbox"),u.jsx(no,{label:k("Has Comments"),labelBold:!1,checked:t===!0||t===void 0,onChange:()=>o("hasCommentsCheckbox")},"hasCommentsCheckbox")]})}const pu={type:[],tagID:"",internalStatusID:[],statusID:[],hasComments:void 0};function PFe(e){const{apiParams:t,updateApiParams:n,forceOpen:r}=e,[o,a]=x.useState(r??!1),i=Pi(),{hasPermission:s}=mr(),[l,c]=x.useState([]),d=s("community.manage"),{values:f,submitForm:h,setValues:m,isSubmitting:g,resetForm:p,dirty:v}=Fv({initialValues:pu,onSubmit:(C,{setSubmitting:D})=>{n(C),D(!1),b()}}),b=()=>{a(!1)},y=()=>{n(pu),p()};return x.useEffect(()=>{m({type:t.type??pu.type,tagID:t.tagID??pu.tagID,internalStatusID:t.internalStatusID??pu.internalStatusID,statusID:t.statusID??pu.statusID,hasComments:t.hasComments??pu.hasComments})},[t,m]),u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:i.filterContainer,children:[u.jsxs(ut,{buttonType:ye.TEXT_PRIMARY,onClick:()=>a(!0),className:i.filterAndSortingButton,children:[k("Filters"),u.jsx(Bt,{icon:`search-filter-small${v?"-applied":""}`})]}),v&&u.jsx(In,{label:k("Clear all filters"),children:u.jsx("span",{children:u.jsx(ut,{title:k("Clear all filters"),buttonType:ye.ICON_COMPACT,onClick:y,className:i.filterAndSortingButton,children:u.jsx(zW,{})})})})]}),u.jsx(ao,{isVisible:o,size:jt.SMALL,exitHandler:b,id:"discussionListFilter",children:u.jsx("form",{onSubmit:C=>{C.preventDefault(),C.stopPropagation(),h()},children:u.jsx(im,{header:u.jsx(Uc,{title:k("Filter Posts"),closeFrame:b}),body:u.jsxs(lm,{className:i.filterBody,children:[u.jsx(OFe,{value:f.type,onChange:C=>{m({...f,type:C}),c(C)},label:k("Post Type")}),u.jsx(AFe,{value:f.statusID,onChange:C=>m({...f,statusID:C}),label:k("Post Status"),types:l}),d&&u.jsxs(u.Fragment,{children:[u.jsx(BFe,{value:f.internalStatusID,onChange:C=>m({...f,internalStatusID:C}),label:k("Resolution Status")}),u.jsx(kFe,{label:k("Post Engagement"),value:f.hasComments,onChange:C=>m({...f,hasComments:C})})]}),u.jsx(TFe,{value:f.tagID,onChange:C=>m({...f,tagID:C}),label:k("Tags")})]}),footer:u.jsxs(Ad,{children:[u.jsx(ut,{buttonType:ye.TEXT,onClick:()=>p(),children:k("Clear All")}),u.jsx(ut,{submit:!0,buttonType:ye.TEXT_PRIMARY,disabled:g,children:k("Apply")})]})})})})]})}const hC=re((e,t)=>{const n=qe("numberedPager",t),r=ee(t),o=n("background",ce.background({})),a=n("font",ce.font({size:r.fonts.size.medium})),i={fonts:{size:r.fonts.size.medium},colors:{fg:r.mainColors.primary,bg:r.mainColors.primary.fade(.1)},borders:{top:{width:0,radius:3},right:{width:0,radius:3},bottom:{width:0,radius:3},left:{width:0,radius:3}}},s={fonts:{size:r.fonts.size.medium},colors:{fg:r.mainColors.primaryContrast,bg:r.mainColors.primary},borders:{all:{radius:18}}},l={fonts:{size:r.fonts.size.medium},borders:{all:{radius:3}}},c=n("buttons",{iconButton:n("iconButton",ce.button({name:ye.ICON,...i,padding:{horizontal:0,top:0,bottom:0},sizing:{minWidth:32,minHeight:32},colors:{fg:r.mainColors.fg.fade(.75),bg:r.mainColors.bg.fade(0)},active:i,hover:i,focus:i,disabled:{...i,colors:{fg:r.mainColors.fg.fade(.75),bg:r.mainColors.bg.fade(0)},opacity:.5}})),nextPage:n("nextPage",ce.button({name:ye.OUTLINE,...s,sizing:{minHeight:36},colors:{fg:r.mainColors.fg,bg:r.mainColors.bg},padding:{horizontal:30},hover:s,active:s,focus:s,disabled:{...s,colors:{fg:r.mainColors.fg,bg:r.mainColors.bg},opacity:.5}})),jumperGo:n("jumperGo",ce.button({name:ye.PRIMARY,...l,sizing:{minWidth:1,minHeight:32},padding:{horizontal:8},hover:l,active:l,focus:l,disabled:l}))}),d=n("formatNumber",{resultRange:!1,rangePrecision:1,totalResults:!0,totalPrecision:1});return{background:o,font:a,buttons:c,formatNumber:d}}),Pk=re(e=>{var d,f,h,m;const t=hC(),n=S({...E.background(t.background),display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",...E.font(t.font),lineHeight:1,...E.padding({vertical:16}),"& > div":{"&:first-child, &:last-child":{flex:1}}},"label:NumberedPager-styles-root"),r=S({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",width:"max-content",whiteSpace:"nowrap"},"label:NumberedPager-styles-resultCount"),o=S({...E.padding({horizontal:4})},"label:NumberedPager-styles-pageNumber"),a=S({...E.button(t.buttons.iconButton),width:(d=t.buttons.iconButton.sizing)==null?void 0:d.minWidth,height:(f=t.buttons.iconButton.sizing)==null?void 0:f.minHeight,"& svg":{fill:"currentcolor"}},"label:NumberedPager-styles-iconButton"),i=S({display:"flex",justifyContent:e?"flex-start":"center"},"label:NumberedPager-styles-nextPageWrapper"),s=S({...E.button(t.buttons.nextPage)},"label:NumberedPager-styles-nextPageButton"),l=S({width:"fit-content !important","& > span":{...E.margin({horizontal:8,vertical:0}),"& > input":{...E.padding({all:4}),...E.font(t.font),textAlign:"center",minWidth:1,width:"5ch",minHeight:(h=t.buttons.jumperGo.sizing)==null?void 0:h.minHeight,height:(m=t.buttons.jumperGo.sizing)==null?void 0:m.minHeight}}},"label:NumberedPager-styles-jumperInput"),c=S({...E.button(t.buttons.jumperGo),...E.margin({left:8})},"label:NumberedPager-styles-jumperButton");return{root:n,resultCount:r,pageNumber:o,iconButton:a,nextPageWrapper:i,nextPageButton:s,jumperInput:l,jumperButton:c}});function hM(e){const{disabled:t=!1,direction:n,tooltip:r,...o}=e,a=hC(),i=Pk(),s=x.useMemo(()=>n==="prev"?gy:IE,[n]);return u.jsx(Hn,{condition:!!t,component:In,componentProps:{label:r},children:u.jsx("span",{children:u.jsx(ut,{...o,ariaLabel:r,className:i.iconButton,disabled:t,buttonType:a.buttons.iconButton.name,children:u.jsx(s,{})})})})}function RFe(e){const t=hC(),n=Pk(),[r,o]=x.useState(e.currentPage.toString()),a=({target:{value:s}})=>{let l=s.replace(/\D/g,"");l.length>0&&(l=parseInt(l),l<1&&(l=1),l>e.totalPages&&(l=e.totalPages)),o(l.toString())},i=()=>{const s=r.length>0?parseInt(r):e.currentPage;e.selectPage(s)};return u.jsxs(u.Fragment,{children:[u.jsx(In,{label:k("Back to post count"),children:u.jsx("span",{children:u.jsx(ut,{onClick:e.close,className:n.iconButton,buttonType:t.buttons.iconButton.name,ariaLabel:k("Back to post count"),children:u.jsx(gy,{})})})}),k("Jump to page"),u.jsx(Lv,{inputProps:{value:r,onChange:a,"aria-label":k("Jump to page")},className:n.jumperInput,baseClass:wI.CUSTOM}),k("of")," ",e.totalPages,u.jsx(ut,{onClick:i,className:n.jumperButton,buttonType:ye.PRIMARY,children:k("Go")})]})}function Rk(e){const{onChange:t=R=>null,currentPage:n=0,pageLimit:r=10,totalResults:o=0,rangeOnly:a=!1,isMobile:i,showNextButton:s=!0,className:l,hasMorePages:c}=e,d=x.useRef(null),f=Zn(d,!1,!0),h=i!==void 0?i:f.width<600,m=Pk(h),g=hC(),[p,v]=x.useState(!1),[b,y]=x.useState(1),[C,D]=x.useState("0 - 0 of 0");x.useEffect(()=>{n&&n!==b&&y(n)},[n]);const A=x.useMemo(()=>o>0?Math.ceil(o/r):1,[o,r]);x.useEffect(()=>{let R=0,N=0;o>0&&(R=(b-1)*r+1,N=b*r,N>o&&!c&&(N=o),R<0&&(R=1)),R=g.formatNumber.resultRange&&R>999?Ff(R,g.formatNumber.rangePrecision):wp(R),N=g.formatNumber.resultRange&&N>999?Ff(N,g.formatNumber.rangePrecision):wp(N);const _=`
            ${g.formatNumber.totalResults&&o>999?Ff(o,g.formatNumber.totalPrecision):wp(o)}${c?"+":""}`,U=`${R} - ${N} of ${_}`;b>0&&U!=="0 - 0 of 0"&&D(U)},[b,o,r,c]);const T=()=>{const R=b>1?b-1:1;y(R),t(R)},B=()=>{const R=n+1;y(R),t(R)},j=R=>{y(R),t(R),v(!1)};return a?u.jsx("div",{className:ge(m.resultCount,l),children:C}):u.jsxs("div",{className:ge(m.root,l),ref:d,children:[!h&&u.jsx("div",{"aria-hidden":"true"}),s&&u.jsx("div",{className:m.nextPageWrapper,children:u.jsx(ut,{className:m.nextPageButton,onClick:B,buttonType:g.buttons.nextPage.name,disabled:b===A&&!c,children:k("Next Page")})}),u.jsx("div",{className:m.resultCount,children:p?u.jsx(RFe,{currentPage:b,totalPages:wp(A),selectPage:j,close:()=>v(!1),hasMorePages:c}):u.jsxs(u.Fragment,{children:[C,!h&&u.jsxs(u.Fragment,{children:[u.jsx(hM,{direction:"prev",onClick:T,disabled:b===1,tooltip:k("Previous Page")}),u.jsx("span",{className:m.pageNumber,children:b}),u.jsx(hM,{direction:"next",onClick:B,disabled:b===A&&!c,tooltip:k("Next Page")})]}),u.jsx(In,{label:k("Jump to a specific page"),children:u.jsx("span",{children:u.jsx(ut,{buttonType:g.buttons.iconButton.name,className:m.iconButton,onClick:()=>v(!0),ariaLabel:k("Jump to a specific page"),children:u.jsx(Bt,{icon:"navigation-skip"})})})})]})})]})}function jFe(e){const{updateApiParams:t,apiParams:n,isPreview:r}=e,o=Pi(),{hasPermission:a}=mr(),i=!e.noCheckboxes&&Ge("ui.useAdminCheckboxes",!1)&&a("discussions.manage"),s=x.useRef(null),c=Zn(s).width<600;return u.jsxs("div",{className:ge(o.assetHeader,{[o.disablePointerEvents]:r}),ref:s,children:[u.jsxs("div",{children:[i&&u.jsx(IV,{className:o.selectAllCheckBox,discussionIDs:e.discussionIDs??[]}),e.categoryFollowEnabled&&u.jsx(i_e,{filter:n.followed?"followed":"all",onFilterChange:d=>t({followed:d}),isMobile:c}),u.jsx(DFe,{currentSort:n.sort??Tc.RECENTLY_COMMENTED,selectSort:d=>t({sort:d}),isMobile:c}),u.jsx(PFe,{apiParams:n,updateApiParams:t})]}),u.jsx("div",{children:e.paginationProps&&u.jsx(Rk,{...e.paginationProps,rangeOnly:!0})})]})}function NFe(e){return LFe(e.value,e.defaults,e.syncOnFirstMount),u.jsx(W.Fragment,{})}function LFe(e,t,n,r){const o=Oh(),a=tv(),i=x.useRef(!1),s=x.useCallback(Ra(f=>{if(!i.current)return;let h=`${window.location.pathname}`;f.length>0&&(h+="?"+decodeURIComponent(f)),r&&a.hash&&(h+=a.hash),window.history.replaceState(null,"",h)}),[o]),l=Oc.parse(a.search,{ignoreQueryPrefix:!0}),c=Oc.stringify($Fe(e,t||{},l)),d=a1(c);x.useEffect(()=>{i.current&&d!==c&&s(c)},[d,c,s,a]),x.useEffect(()=>(i.current=!0,n&&s(c),()=>{i.current=!1}),[])}function $Fe(e,t,n){let r=null;for(const[a,i]of Object.entries(e))i==null||i===""||a!=="scope"&&t[a]===i||(r===null&&(r={}),r[a]=i);const o=Object.fromEntries(Object.entries(n).filter(([a])=>!(a in e)&&!(a in t)));return Object.keys(o).length>0&&(r={...r,...o}),r}function MFe(e){var se,he,pe,K,O,le,be,H,ie,oe,ve,$e,Ne,Ze;const{discussions:t,categoryFollowEnabled:n,title:r,subtitle:o,description:a,containerOptions:i}=e,s=x.useRef(null),[l,c]=x.useState(e.apiParams??{}),[d,f]=x.useState(e.initialPaging??{}),h=Is(e.discussionOptions),{hasPermission:m}=mr(),[g,p]=x.useState(!1),v=tv(),b=m("community.manage"),y=x.useMemo(()=>{var Me,Je,pt;const ze=l.sort,Xe={...l,sort:ze,pinOrder:mM(ze)};return(Me=e.apiParams)!=null&&Me.categoryID&&(Xe.categoryID=(Je=e.apiParams)==null?void 0:Je.categoryID),((pt=Xe.internalStatusID)!=null&&pt.length||Xe.hasComments!==void 0)&&!b&&(delete Xe.internalStatusID,delete Xe.hasComments,p(!0)),Xe},[e.apiParams,l,e.isPreview]),C=x.useMemo(()=>nx(e.apiParams,y)||e.isPreview?t:void 0,[y,d]),D=jO(y,C,d),A=e.isList||(i==null?void 0:i.displayType)===Ln.LIST,T=(i==null?void 0:i.displayType)===Ln.LINK,B=D&&D.status===X.SUCCESS,j=B&&((se=D.data)==null?void 0:se.discussionList)&&((he=D.data)==null?void 0:he.discussionList.length)===0,R=ze=>{var pt,ot;const Xe=ze.page||1,Me=ze.sort||y.sort,Je={...l,...ze,page:Xe,pinOrder:mM(Me)};c(Je),ze.page&&window.scrollTo({top:(pt=s.current)!=null&&pt.offsetTop?((ot=s.current)==null?void 0:ot.offsetTop)-10:0})},N={totalResults:d==null?void 0:d.total,currentPage:d==null?void 0:d.currentPage,pageLimit:d==null?void 0:d.limit,hasMorePages:d!=null&&d.total?(d==null?void 0:d.total)>=Wme:!1},_=u.jsx(Rk,{...N,onChange:ze=>R({page:ze})}),U=u.jsx(jFe,{discussionIDs:(K=(pe=D.data)==null?void 0:pe.discussionList)==null?void 0:K.map(ze=>ze.discussionID),noCheckboxes:e.noCheckboxes||T,categoryFollowEnabled:n,paginationProps:N,apiParams:y,updateApiParams:R,isPreview:e.isPreview});let V=null,z=null;(D.status===X.LOADING||D.status===X.PENDING)&&(V=u.jsx(kk,{count:y.limit??10,displayType:i==null?void 0:i.displayType,containerProps:{...e,extraHeader:U},itemOptions:{excerpt:(le=(O=e.discussionOptions)==null?void 0:O.excerpt)==null?void 0:le.display,checkbox:!e.noCheckboxes,image:(H=(be=e.discussionOptions)==null?void 0:be.featuredImage)==null?void 0:H.display,icon:h.item.options.iconPosition!==Ci.HIDDEN,iconInMeta:h.item.options.iconPosition===Ci.META}})),(!((ie=D.data)!=null&&ie.discussionList)||D.status===X.ERROR||D.error)&&(z=u.jsx(yv,{apiError:D.error})),x.useEffect(()=>{if(e.apiParams.layoutViewType==="categoryList"&&(e.apiParams.categoryUrlCode&&v.pathname.includes(`categories/${e.apiParams.categoryUrlCode}/p`)||e.apiParams.categoryID&&v.pathname.includes(`categories/${e.apiParams.categoryID.toString()}/p`))){const Xe=window.location.href.split("/p")[0];window.history.replaceState(null,"",Xe)}},[]),x.useEffect(()=>{var ze,Xe,Me;D.status===X.SUCCESS&&((ze=D.data)!=null&&ze.pagination)&&!nx((Xe=D.data)==null?void 0:Xe.pagination,d)&&f((Me=D.data)==null?void 0:Me.pagination)},[D]);const Y={type:y.type,tagID:y.tagID,statusID:y.statusID,internalStatusID:y.internalStatusID,hasComments:y.hasComments,page:y.page,followed:y.followed,sort:y.sort},te=u.jsx(NFe,{value:Y,defaults:{page:1,followed:!1,sort:e.defaultSort},syncOnFirstMount:!0});return z||j||A?u.jsx(Us,{title:r,subtitle:o,description:a,options:{...e.containerOptions,isGrid:!1,displayType:Ln.LIST},extraHeader:U,children:u.jsxs("div",{ref:s,children:[te,!B&&(z||V),B&&j&&u.jsx(mo,{options:{borderType:dt.SEPARATOR},children:k("No discussions were found.")}),B&&!j&&u.jsxs(u.Fragment,{children:[g&&u.jsx(Jc,{stringContents:k("You do not have permission to access one or more filters in the provided link."),type:"warning",onConfirm:()=>p(!1),icon:u.jsx(Bt,{icon:"status-warning"})}),u.jsx(SV,{noCheckboxes:e.noCheckboxes,discussions:(oe=D.data)==null?void 0:oe.discussionList,discussionOptions:e.discussionOptions,disableButtonsInItems:e.disableButtonsInItems})]}),_]})}):T?u.jsxs("div",{ref:s,children:[te,B&&!j?u.jsx($v,{title:e.title,links:($e=(ve=D.data)==null?void 0:ve.discussionList)==null?void 0:$e.map((ze,Xe)=>({id:`${Xe}`,name:ze.name??"",url:ze.url??""})),containerOptions:e.containerOptions,extraHeader:U}):u.jsxs(Ls,{children:[u.jsx(qh,{title:r,options:{alignment:(Ne=e.containerOptions)==null?void 0:Ne.headerAlignment}}),U,u.jsx(mo,{children:V})]}),_]}):u.jsxs("div",{ref:s,children:[te,B&&!j?u.jsx(AV,{...e,discussions:(Ze=D.data)==null?void 0:Ze.discussionList,assetHeader:U}):V,_]})}function mM(e){const t=e??Tc.RECENTLY_COMMENTED;return[Tc.OLDEST,Tc.TOP].includes(t)?"mixed":"first"}function XV(e){var i;const{containerOptions:t}=e,n=!(t!=null&&t.displayType)||t.displayType===Ln.LIST,r=(t==null?void 0:t.displayType)===Ln.LINK,o=x.useMemo(()=>({...e.discussionOptions,featuredImage:{display:e.apiParams.featuredImage,fallbackImage:e.apiParams.fallbackImage}}),[e]),a=r?(i=e.discussions)==null?void 0:i.map((s,l)=>({id:`${l}`,name:s.name??"",url:s.url??""})):[];return e.isAsset?u.jsx(MFe,{...e,discussionOptions:o,isList:n}):n?u.jsx(TV,{...e,discussionOptions:o,containerOptions:{...t,displayType:Ln.LIST}}):r?u.jsx($v,{title:e.title,links:a,containerOptions:e.containerOptions}):u.jsx(a_e,{...e,discussionOptions:o})}const mC=re(()=>{const e=ee(),t=S({},"label:FollowedContent-classes-root"),n=S({marginTop:e.spacer.headingItem},"label:FollowedContent-classes-section"),r=S({paddingTop:16},"label:FollowedContent-classes-tabsContent"),o=S({"& > div[role='tabpanel']":{paddingLeft:0,paddingRight:0}},"label:FollowedContent-classes-tabsPanel"),a=S({marginLeft:-12},"label:FollowedContent-classes-tabList"),i=S({color:P.colorOut(e.mainColors.fgHeading),...E.font({...e.fontSizeAndWeightVars("subTitle")}),...E.margin({top:e.spacer.mainLayout,bottom:e.spacer.pageComponentCompact})},"label:FollowedContent-classes-subtitle"),s=S({display:"flex",justifyContent:"space-between",...E.margin({bottom:e.spacer.headingBoxCompact})},"label:FollowedContent-classes-sortByAndPager"),l=S({paddingBottom:0,paddingTop:0,marginTop:-8},"label:FollowedContent-classes-pager"),c=S({height:e.spacer.size*2,width:e.spacer.size*2,display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",marginRight:12,"& img":{width:"100%",height:"auto",display:"block"}},"label:FollowedContent-classes-photoWrap");return{root:t,section:n,tabsContent:r,tabsPanel:o,tabList:a,subtitle:i,sortByAndPager:s,pager:l,photoWrap:c,iconWrap:S({marginRight:0},"label:FollowedContent-classes-iconWrap"),name:S({float:"left"},"label:FollowedContent-classes-name")}}),QV=W.createContext({userID:1,additionalFollowedContent:[]});let ZV=[];JV.addAdditionalContent=e=>{ZV.push(e)};function JV(e){const{userID:t,children:n}=e;return u.jsx(QV.Provider,{value:{userID:t,additionalFollowedContent:ZV},children:n})}function eG(){return x.useContext(QV)}function _Fe(e,t){if(e!=null)if(typeof e=="function")e(t);else try{e.current=t}catch{throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function xh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("--")}function tG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(function(){return t.every(function(r){return r==null})?null:function(r){t.forEach(function(o){_Fe(o,r)})}},t)}function FFe(e,t){var n=x.useRef(!1);x.useEffect(function(){n.current?e():n.current=!0},t)}function WFe(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}var JS=!1,zFe=0,pM=function(){return++zFe},HFe=function(t){var n=t||(JS?pM():null),r=x.useState(n),o=r[0],a=r[1];return x.useLayoutEffect(function(){o===null&&a(pM())},[]),x.useEffect(function(){JS===!1&&(JS=!0)},[]),o};function dd(){return dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}function Bl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var nG=x.forwardRef(function(t,n){var r=t.children,o=t.as,a=o===void 0?"div":o,i=t.onChange,s=t.index,l=s===void 0?void 0:s,c=t.readOnly,d=c===void 0?!1:c,f=t.defaultIndex,h=Bl(t,["children","as","onChange","index","readOnly","defaultIndex"]),m=x.useRef(l!=null),g=m.current,p=HFe(h.id),v=x.useRef(!1),b=x.useRef(null),y=x.useState(f||0),C=y[0],D=y[1],A=W.Children.map(r,function(T){return jk(T)?T:x.cloneElement(T,{selectedIndex:g?l:C,_id:p,_userInteractedRef:v,_selectedPanelRef:b,_onFocusPanel:function(){return b.current&&b.current.focus()},_onSelectTab:d?function(){}:function(B){v.current=!0,i&&i(B),g||D(B)}})});return W.createElement(a,dd({"data-reach-tabs":"",ref:n},h,{children:A}))});nG.displayName="Tabs";var rG=x.forwardRef(function(t,n){var r=t.children,o=t.as,a=o===void 0?"div":o,i=t.onKeyDown,s=Bl(t,["children","as","onKeyDown"]),l=s.selectedIndex,c=s._onSelectTab,d=s._userInteractedRef,f=s._onFocusPanel;s._selectedPanelRef;var h=s._id,m=Bl(s,["selectedIndex","_onSelectTab","_userInteractedRef","_onFocusPanel","_selectedPanelRef","_id"]),g=W.Children.map(r,function(v,b){return jk(v)?v:x.cloneElement(v,{isSelected:b===l,_id:xh(h,b),_userInteractedRef:d,_onSelect:function(){return c(b)}})}),p=WFe(i,function(v){var b=W.Children.map(r,function(j,R){return j.props.disabled===!0?null:R}).filter(function(j){return j!=null}),y=b.indexOf(l);switch(v.key){case"ArrowRight":{var C=(y+1)%b.length,D=b[C];c(D);break}case"ArrowLeft":{var A=b.length,T=(y-1+A)%A,B=b[T];c(B);break}case"ArrowDown":{v.preventDefault(),f();break}case"Home":{c(0);break}case"End":{c(W.Children.count(r)-1);break}}});return W.createElement(a,dd({"data-reach-tab-list":"",ref:n,role:"tablist",onKeyDown:p,children:g},m))});rG.displayName="TabList";var oG=x.forwardRef(function(t,n){var r=t.children,o=t.as,a=o===void 0?"button":o,i=Bl(t,["children","as"]),s=i.isSelected,l=i._userInteractedRef,c=i._onSelect,d=i._id,f=Bl(i,["isSelected","_userInteractedRef","_onSelect","_id"]),h=a==="button"&&f.type==null?"button":void 0,m=x.useRef(null),g=tG(n,m);return FFe(function(){s&&m.current&&l.current&&(l.current=!1,m.current.focus())},[s]),W.createElement(a,dd({"data-reach-tab":"",ref:g,role:"tab",id:xh("tab",d),tabIndex:s?0:-1,"aria-selected":s,"aria-controls":xh("panel",d),"data-selected":s?"":void 0,onClick:c,children:r,type:h},f))});oG.displayName="Tab";var aG=x.forwardRef(function(t,n){var r=t.children,o=t.as,a=o===void 0?"div":o,i=Bl(t,["children","as"]),s=i.selectedIndex,l=i._selectedPanelRef;i._userInteractedRef,i._onFocusPanel,i._onSelectTab;var c=i._id,d=Bl(i,["selectedIndex","_selectedPanelRef","_userInteractedRef","_onFocusPanel","_onSelectTab","_id"]),f=W.Children.map(r,function(h,m){return jk(h)?h:x.cloneElement(h,{isSelected:m===s,_selectedPanelRef:l,_id:xh(c,m)})});return W.createElement(a,dd({"data-reach-tab-panels":"",ref:n},d,{children:f}))});aG.displayName="TabPanels";var iG=x.forwardRef(function(t,n){var r=t.children,o=t.as,a=o===void 0?"div":o,i=Bl(t,["children","as"]),s=i.isSelected,l=i._selectedPanelRef,c=i._id,d=Bl(i,["isSelected","_selectedPanelRef","_id"]),f=tG(n,s?l:null);return W.createElement(a,dd({"data-reach-tab-panel":"",ref:f,role:"tabpanel",tabIndex:-1,"aria-labelledby":xh("tab",c),hidden:!s,id:xh("panel",c),children:r},d))});iG.displayName="TabPanel";function jk(e){return!e||typeof e.type=="string"}var Ri;(function(e){e.STANDARD="tab-standard",e.BROWSE="tab-browse",e.GROUP="tab-group"})(Ri||(Ri={}));const Nk=re(()=>{const e=ee(),t=Nn(),n=qe("onlineTabs"),r=n("colors",{bg:e.mixBgAndFg(.05),fg:e.mainColors.fg,state:{border:{color:e.mixPrimaryAndBg(.5)},fg:e.mainColors.primary},selected:{bg:e.mainColors.primary.desaturate(.3).fade(.05),fg:e.mainColors.fg}}),o=n("border",{width:e.border.width,color:e.border.color,radius:e.border.radius,style:e.border.style,active:{color:e.mixPrimaryAndBg(.5)}}),a=n("navHeight",{height:t.sizing.height+2*e.border.width}),i=n("activeIndicator",{height:3,color:e.mainColors.primary});return{colors:r,border:o,navHeight:a,activeIndicator:i}}),gM=re(()=>{const e=Nk(),t=Tt(Ri.STANDARD),n=Ht().mediaQueries(),r=Kt(),o=ee(),a=Nn(),i=re(()=>t({display:"flex",flexDirection:"column",justifyContent:"stretch",height:it(`100% - ${w(e.navHeight.height)}`)},n.oneColumnDown({height:it(`100% - ${w(a.sizing.mobile.height)}`)}))),s=t("tabsHandles",{display:"flex",position:"relative",flexWrap:"nowrap",alignItems:"center",justifyContent:"stretch",width:"100%"}),l=re(g=>t("tabList",{display:"flex",justifyContent:"space-between",alignItems:"stretch",background:P.colorOut(e.colors.bg),...Hh(),top:0,zIndex:1,"button:first-child":{borderLeft:0},"button:last-child":{borderRight:0},...g!=null&&g.isLegacy?{width:"calc(100% + 36px)",marginLeft:"-18px"}:void 0})),c=re((g,p)=>t("tab",{...zn(),position:"relative",flex:1,fontWeight:o.fonts.weights.semiBold,textAlign:"center",border:wt(),borderTop:p?"none":void 0,padding:"2px 0",color:P.colorOut(e.colors.fg),backgroundColor:P.colorOut(e.colors.bg),minHeight:w(28),fontSize:w(13),transition:"color 0.3s ease",...wo().middle(),"& > *":{...E.padding({horizontal:o.gutter.half})},"& + [role='tab']":{marginLeft:w(ca(e.border.width))},"&[data-selected]":{background:P.colorOut(o.elementaryColors.white)},"&:hover, &:focus, &:active":{border:wt(),borderTop:p?"none":void 0,color:P.colorOut(o.mainColors.primary),zIndex:1},"&&:not(.focus-visible)":{outline:0},"&[disabled]":{pointerEvents:"initial",color:P.colorOut(e.colors.fg),backgroundColor:P.colorOut(e.colors.bg)}},n.oneColumnDown({label:{minHeight:w(r.sizing.height),lineHeight:w(r.sizing.height)}}))),d=t("tabPanels",{flexGrow:1,height:Z(100),flexDirection:"column",position:"relative"}),f=re(()=>t("panel",{flexGrow:1,height:Z(100),flexDirection:"column"})),h=t("isActive",{backgroundColor:P.colorOut(P.modifyColorBasedOnLightness({color:e.colors.bg,weight:.65,inverse:!0,flipWeightForDark:!0}))}),m=t("extraButtons",{});return{root:i,tabsHandles:s,tabList:l,tab:c,tabPanels:d,panel:f,isActive:h,extraButtons:m}}),UFe=re(()=>{const e=Nk(),t=ee(),n=Tt(Ri.BROWSE),r=Ht().mediaQueries(),o=12,a=t.gutter.size/2,i={"::before":{content:Fc(""),display:"block",position:"absolute",bottom:0,...E.margin({vertical:0,horizontal:"auto"}),height:e.activeIndicator.height,backgroundColor:P.colorOut(e.activeIndicator.color),width:it(`${Z(100)} - ${o*2}px`)}},s=re(g=>n({...g?kr(o):{}})),l=n("tabPanels",{}),c=re(g=>n("tabList",{display:"flex",flexWrap:"nowrap",alignItems:"center",borderBottom:g!=null&&g.includeBorder?wt({color:t.separator.color,width:t.separator.size}):void 0},r.oneColumnDown({flexWrap:"wrap"}))),d=re((g,p)=>n("tab",{position:"relative",...ei(),...E.font({...t.fontSizeAndWeightVars(g?"large":"small","bold"),transform:g?"inherit":"uppercase"}),...E.padding({vertical:a,horizontal:o}),...E.margin({right:o,bottom:"-1px"}),"&:active":i})),f=re(g=>n("panel",{...E.padding({vertical:g!=null&&g.includeVerticalPadding?"24px":0,horizontal:o})})),h=n("extraButtons",{...E.padding({horizontal:o/2}),flex:"1 0 auto",display:"flex",alignItems:"center",justifyContent:"flex-end"},r.oneColumnDown({borderTop:wt(),width:"100%",flex:"1 0 auto",justifyContent:"flex-start",...E.padding({vertical:a,horizontal:o})})),m=n("isActive",i);return{root:s,tab:d,tabPanels:l,tabList:c,panel:f,isActive:m,extraButtons:h}}),VFe=re(()=>{const e=Nk(),t=Tt(Ri.GROUP),n=Ht().mediaQueries(),r=Kt(),o=ee(),a=Nn(),i=re(()=>t({display:"flex",flexDirection:"column",justifyContent:"stretch",height:it(`100% - ${w(e.navHeight.height)}`)},n.oneColumnDown({height:it(`100% - ${w(a.sizing.mobile.height)}`)}))),s=t("tabsHandles",{display:"flex",position:"relative",flexWrap:"nowrap",alignItems:"center",justifyContent:"stretch",width:"100%"}),l=re(g=>t("tabList",{display:"flex",justifyContent:"space-between",alignItems:"stretch",background:P.colorOut(e.colors.bg),...Hh(),top:0,zIndex:1,"button:first-child":{borderTopLeftRadius:o.border.radius,borderBottomLeftRadius:o.border.radius},"button:last-child":{borderTopRightRadius:o.border.radius,borderBottomRightRadius:o.border.radius},...g!=null&&g.isLegacy?{width:"calc(100% + 36px)",marginLeft:"-18px"}:void 0})),c=re((g,p)=>t("tab",{...zn(),position:"relative",cursor:"pointer",flex:1,fontWeight:o.fonts.weights.semiBold,textAlign:"center",border:wt({color:o.mixBgAndFg(.35).saturate(.1)}),borderTop:p?"none":void 0,padding:"2px 0",color:P.colorOut(e.colors.fg),backgroundColor:P.colorOut(o.elementaryColors.white),minHeight:w(28),fontSize:w(13),transition:"color 0.3s ease",...wo().middle(),"& > *":{...E.padding({horizontal:o.gutter.half})},"& + &":{marginLeft:w(ca(e.border.width))},"&[data-selected]":{background:P.colorOut(o.elementaryColors.white),color:P.colorOut(o.mainColors.primary),borderColor:P.colorOut(o.mainColors.primary)},"&[data-selected] + *":{borderLeftColor:P.colorOut(o.mainColors.primary)},"&:hover:not(&[data-selected]), &:focus:not(&[data-selected]), &:active:not(&[data-selected])":{border:wt({color:On("#bfcbd8")}),borderTop:p?"none":void 0,color:P.colorOut(o.mainColors.primary),zIndex:1},"&&:not(.focus-visible)":{outline:0},"&[disabled]":{pointerEvents:"initial",color:P.colorOut(e.colors.fg),backgroundColor:P.colorOut(e.colors.bg)}},n.oneColumnDown({label:{minHeight:w(r.sizing.height),lineHeight:w(r.sizing.height)}}))),d=t("tabPanels",{flexGrow:1,height:Z(100),flexDirection:"column",position:"relative"}),f=re(()=>t("panel",{flexGrow:1,height:Z(100),flexDirection:"column"})),h=t("isActive",{backgroundColor:P.colorOut(P.modifyColorBasedOnLightness({color:e.colors.bg,weight:.65,inverse:!0,flipWeightForDark:!0}))}),m=t("extraButtons",{});return{root:i,tabsHandles:s,tabList:l,tab:c,tabPanels:d,panel:f,isActive:h,extraButtons:m}});function GFe(e){return u.jsx(u.Fragment,{children:e.children})}function Lk(e){const{data:t,tabType:n,defaultTabIndex:r,includeBorder:o=!0,includeVerticalPadding:a=!0,tabListClasses:i,tabPanelClasses:s,tabsRootClass:l,tabClass:c}=e,[d,f]=x.useState(r??0),h=e.activeTab??d,m=e.setActiveTab??f;x.useEffect(()=>{e.defaultTabIndex!==void 0&&h!==e.defaultTabIndex&&m(e.defaultTabIndex)},[e.defaultTabIndex]);const g=new Map([[Ri.STANDARD,gM()],[Ri.BROWSE,UFe()],[Ri.GROUP,VFe()]]),p=n&&g.get(n)?g.get(n):gM();let v=u.jsxs(rG,{className:ge(p==null?void 0:p.tabList({includeBorder:o,isLegacy:e.legacyButtons}),i),children:[t.map((b,y)=>{const C=h===y;return u.jsxs(oG,{className:ge(p==null?void 0:p.tab(e.largeTabs,e.legacyButtons),{[p.isActive]:C},c),disabled:b.disabled,children:[u.jsx(Og,{lines:1,maxCharCount:25,children:b.label}),(b.error||b.warning)&&u.jsx(In,{label:b.error||b.warning,children:u.jsx(ky,{children:u.jsx(Bt,{className:b.error?bt().errorFgColor:bt().warningFgColor,icon:"status-warning",size:"compact"})})}),b.info&&u.jsx(In,{label:b.info,children:u.jsx(ky,{children:u.jsx(mO,{})})})]},y)}),u.jsx(GFe,{disabled:!0,children:e.extraButtons?u.jsx("div",{className:p==null?void 0:p.extraButtons,children:e.extraButtons}):null})]});return u.jsxs(nG,{index:h,className:ge(p==null?void 0:p.root(e.extendContainer),l),onChange:b=>{var y;m(b),(y=e.onChange)==null||y.call(e,e.data[b])},children:[v,u.jsx(aG,{className:ge(p==null?void 0:p.tabPanels,s,"tabContent"),children:t.map((b,y)=>u.jsxs(iG,{className:p==null?void 0:p.panel({includeVerticalPadding:a}),children:[b.contents&&b.contents,b.contentNodes&&u.jsx(yce,{nodes:b.contentNodes})]},y))})]})}const sG=re(()=>{const e=ee(),t=ZA("attachmentIcon"),n={default:12,...t.subComponentStyles("spacing")},r={color:e.mixBgAndFg(.1),...t.subComponentStyles("shadow")};return{spacing:n,shadow:r,icon:{size:16,errorIconHeight:14.39}}}),YFe=re(()=>{ee();const e=sG(),t=Tt("attachmentIcons"),n=Tn(),r=t({display:"block",position:"relative"}),o=t("items",{display:"flex",flexWrap:"wrap",alignItems:"flex-start",justifyContent:"flex-end",width:it(`100% + ${Le(e.spacing.default*2)}`),overflow:"hidden",...E.margin({top:-e.spacing.default,left:-e.spacing.default,right:n.spacing.horizontal})}),a=t("item",{margin:e.spacing.default});return{root:r,items:o,item:a}}),KFe=re(()=>{const e=sG(),t=Tt("attachmentIcon"),n=t({display:"block",width:Le(e.icon.size),height:Le(e.icon.size),boxShadow:`0 0 0 1px ${e.shadow.color}`}),r=t("error",{width:Le(e.icon.size),height:Le(e.icon.errorIconHeight)});return{root:n,error:r}});var Sn;(function(e){e.FILE="A file",e.PDF="Adobe Portable Document Format (PDF)",e.EXCEL="Microsoft Excel Spreadsheet",e.WORD="Microsoft Word Document",e.PPT="Microsoft PowerPoint Presentation",e.ARCHIVE="An archived file or files",e.IMAGE="An image file"})(Sn||(Sn={}));function qFe(e){const t=e.fileType?e.fileType:k("File"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-fileGeneric","attachmentIcon",n.fileType,e.className),role:"img","aria-label":t,children:[u.jsx("title",{children:t}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#777b81"}}),u.jsx("path",{d:"M11.5,6v4a3.418,3.418,0,0,1-3.334,3.5H8a3.418,3.418,0,0,1-3.5-3.334c0-.055,0-.111,0-.166V5A2.362,2.362,0,0,1,6.715,2.5,2.259,2.259,0,0,1,7,2.5,2.362,2.362,0,0,1,9.5,4.715,2.258,2.258,0,0,1,9.5,5V9.5c0,1-.5,2-1.5,2s-1.5-1-1.5-2V6",style:{fill:"none",stroke:"#f1f2f2",strokeLinecap:"round"}})]})}function XFe(e){const t=k("Word"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-fileWord","attachmentIcon",n.fileType,e.className),role:"img","aria-label":k(Sn.WORD),children:[u.jsx("title",{children:t}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#0175fc"}}),u.jsx("rect",{x:"3",y:"3",width:"10",height:"1",style:{fill:"#cce3fe"}}),u.jsx("rect",{x:"3",y:"5",width:"10",height:"1",style:{fill:"#cce3fe"}}),u.jsx("rect",{x:"3",y:"12",width:"10",height:"1",style:{fill:"#cce3fe"}}),u.jsx("rect",{x:"3",y:"10",width:"10",height:"1",style:{fill:"#cce3fe"}}),u.jsx("rect",{x:"3",y:"7",width:"6",height:"1",style:{fill:"#cce3fe"}})]})}function QFe(e){const t=k("Excel"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-fileExcel","attachmentIcon",n.fileType,e.className),role:"img","aria-label":k(Sn.EXCEL),children:[u.jsx("title",{children:t}),u.jsx("rect",{width:"16",height:"16",fill:"#2f7d32"}),u.jsx("polygon",{style:{fill:"#fff"},points:"9.334 10.361 7.459 13.543 6 13.543 8.613 9.166 6.164 5 7.629 5 9.334 7.965 11.039 5 12.498 5 10.055 9.166 12.668 13.543 11.203 13.543 9.334 10.361"})]})}function ZFe(e){const t=k(Sn.PDF),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-filePDF","attachmentIcon",n.fileType,e.className),role:"img","aria-label":k(Sn.PDF),children:[u.jsx("title",{children:u.jsx("abbr",{title:t||void 0,children:Sn.PDF})}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#c80000"}}),u.jsx("path",{d:"M2.5,11V8.5m4.5,2v-5H8q1.5,0,1.5,2.143v.714Q9.5,10.5,8,10.5Zm-4.5-2v-3h1Q5,5.5,5,6.786v.428Q5,8.5,3.5,8.5Z",style:{stroke:"#fff",fill:"none"}}),u.jsx("polygon",{points:"11 11 11 5 14 5 14 6 12.007 6 12 7.5 13.493 7.5 13.493 8.5 12 8.5 12 11 11 11",style:{fill:"#fff"}})]})}function JFe(e){const t=k("Image"),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-fileImage","attachmentIcon",n.fileType,e.className),role:"img","aria-label":k(Sn.IMAGE),children:[u.jsx("title",{children:t}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#c80090"}}),u.jsx("path",{d:"M3,12.5a1,1,0,0,1-1-1V6A1,1,0,0,1,3,5h.5V4.75a.25.25,0,0,1,.25-.25h.5a.25.25,0,0,1,.25.25V5a.81.81,0,0,0,.724-.447l.5-1A1,1,0,0,1,6.618,3H9.382a1,1,0,0,1,.894.553l.448.894A1,1,0,0,0,11.618,5H13a1,1,0,0,1,1,1v5.5a1,1,0,0,1-1,1Zm5-2a2,2,0,1,1,2-2A2,2,0,0,1,8,10.5Zm0,1a3,3,0,1,0-3-3A3,3,0,0,0,8,11.5ZM11.5,6V7H13V6Z",style:{fill:"#fff",fillOpacity:.97}})]})}function e4e(e){k("PPT");const t=k(Sn.PPT),n=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-filePowerPoint","attachmentIcon",n.fileType,e.className),role:"img","aria-label":k(Sn.IMAGE),children:[u.jsx("title",{children:t?u.jsx("abbr",{title:t,children:Sn.PDF}):Sn.PDF}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#ee6a01"}}),u.jsx("path",{d:"M8,4V7.5h3.55A3.5,3.5,0,1,1,8,4Z",style:{fill:"#fbe1cc"}}),u.jsx("path",{d:"M9,3h.05a3.5,3.5,0,0,1,3.5,3.5H9Z",style:{fill:"#fbe1cc"}}),u.jsx("rect",{x:"3",y:"12",width:"10",height:"1",style:{fill:"#fbe1cc"}})]})}function t4e(e){k("Zip");const t=k(Sn.ARCHIVE),n={fill:"#fff",fillOpacity:.9},r=bt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:ae("attachmentIcon-fileZip","attachmentIcon",r.fileType,e.className),role:"img","aria-label":k(Sn.IMAGE),children:[u.jsx("title",{children:t?u.jsx("abbr",{title:t,children:Sn.PDF}):Sn.PDF}),u.jsx("rect",{width:"16",height:"16",rx:"1",style:{fill:"#eeb601"}}),u.jsx("path",{d:"M6,7.5h4l.45,4.955A.5.5,0,0,1,10,13H6.054a.5.5,0,0,1-.5-.5.338.338,0,0,1,0-.045Zm.99,3a.149.149,0,0,0-.149.14l-.08,1.2v.01a.15.15,0,0,0,.15.15H9.1a.149.149,0,0,0,.139-.16l-.08-1.2a.149.149,0,0,0-.149-.14Z",style:{fill:"#fdf7e6"}}),u.jsx("rect",{x:"6",y:"6",width:"2",height:"1",style:n}),u.jsx("rect",{x:"8",y:"5",width:"2",height:"1",style:n}),u.jsx("rect",{x:"6",y:"4",width:"2",height:"1",style:n}),u.jsx("rect",{x:"8",y:"3",width:"2",height:"1",style:n}),u.jsx("rect",{x:"6",y:"2",width:"2",height:"1",style:n}),u.jsx("rect",{x:"8",y:"1",width:"2",height:"1",style:n}),u.jsx("rect",{x:"6",width:"2",height:"1",style:n})]})}function mmt(e){if(!e)return Sn.FILE;if(e.startsWith("image/"))return Sn.IMAGE;switch(e){case"application/pdf":return Sn.PDF;case"application/vnd.ms-excel":case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return Sn.EXCEL;case"application/msword":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return Sn.WORD;case"application/vnd.ms-powerpoint":case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return Sn.PPT;case"application/zip":case"application/x-7z-compressed":case"application/x-bzip":case"application/x-bzip2":case"application/x-rar-compressed":return Sn.ARCHIVE;default:return Sn.FILE}}function n4e(e){switch(e.type){case Sn.PDF:return u.jsx(ZFe,{className:e.className});case Sn.EXCEL:return u.jsx(QFe,{className:e.className});case Sn.WORD:return u.jsx(XFe,{className:e.className});case Sn.PPT:return u.jsx(e4e,{className:e.className});case Sn.ARCHIVE:return u.jsx(t4e,{className:e.className});case Sn.IMAGE:return u.jsx(JFe,{className:e.className});default:return u.jsx(qFe,{className:e.className})}}class r4e extends W.Component{render(){const t=KFe();return u.jsx("li",{className:ae("attachmentsIcons-item",this.props.classes.item,t.root),children:u.jsxs("div",{className:ae("attachmentsIcons-file",`attachmentsIcons-${this.props.type}`),title:k(this.props.type),children:[u.jsx("span",{className:"sr-only",children:u.jsx($i,{children:u.jsx(dn,{source:"<0/> (Type: <1/>)",c0:this.props.name,c1:this.props.type})})}),u.jsx(n4e,{type:this.props.type,className:t.root})]})})}}class o4e extends W.Component{constructor(n){super(n);q(this,"maxCount",3);q(this,"id",ro("attachmentIcons-"));n.maxCount&&n.maxCount>0&&n.maxCount<=n.attachments.length&&(this.maxCount=n.maxCount)}get titleID(){return this.id+"-title"}render(){if(this.attachmentsCount<1)return null;const n=YFe(),r=this.renderAttachments(n);return r?u.jsxs("section",{className:ae("attachmentsIcons",n.root),children:[u.jsx("h3",{id:this.titleID,className:"sr-only",children:k("Attachments")+": "}),u.jsx("ul",{"aria-labelledby":this.titleID,className:ae("attachmentsIcons-items",n.items),children:r})]}):null}get attachmentsCount(){return this.props.attachments.length}renderAttachments(n){return this.props.attachments.map((r,o)=>{const a=o+1,i=this.attachmentsCount-a;return o<this.maxCount?u.jsx(r4e,{classes:{item:n.item},name:r.name,type:r.type},a):o===this.maxCount&&i>0?this.renderMorePlacholder(i,a):null})}renderMorePlacholder(n,r){const o=u.jsx(dn,{source:"+ <0/> more",c0:n}),a=Aa();return u.jsx("li",{className:"attachmentsIcons-item",children:u.jsx("span",{className:ae("attachmentsIcons-more",a.metaStyle),children:o})},r)}}function a4e(e){const{name:t,className:n,meta:r,url:o,excerpt:a,image:i,imageSet:s,attachments:l,icon:c,highlight:d}=e,f=!!(l&&l.length>0),h=(!!i||!!s)&&!f,m=f||h,g=Fbe(),p=m?h?u.jsx(VU,{src:i,srcSet:s,alt:k(t?"Thumbnail for: "+t:"Thumbnail")}):f?u.jsx(o4e,{attachments:l}):null:null,v=d?u.jsx(Og,{className:g.highlight,maxCharCount:160,lines:2,children:u.jsx("span",{dangerouslySetInnerHTML:{__html:d}})}):null,b=a&&(a==null?void 0:a.length)>0?a:null;return u.jsx(aC,{className:n,url:o,name:t,icon:c,iconWrapperClass:g.iconWrap,description:v??b,truncateDescription:!v,descriptionMaxCharCount:160,metas:r,mediaItem:p})}function i4e(e){const{className:t,searchTerm:n,results:r,emptyMessage:o=k("No results found."),ResultComponent:a=a4e,ResultWrapper:i}=e,s=r&&r.length>0;let l;if(s?l=r.map((c,d)=>x.createElement(a,{...c,key:d,rel:e.rel})):l=u.jsx(mo,{children:u.jsx($i,{children:n?u.jsx(dn,{source:"No results for '<0/>'.",c0:n}):o})}),i)return u.jsx(i,{children:l});{const c=s?"ul":"div";return u.jsx(Mv,{as:c,options:{itemLayout:qa.TITLE_METAS_DESCRIPTION},className:t,children:l})}}const s4e=re(()=>{ee();const e=Tn(),t=Tt("resultPaginationInfo"),n=t({...E.font(e.font)}),r=t("alignRight",{marginLeft:"auto"});return{root:n,alignRight:r}});function l4e(e){const{pages:t,alignRight:n=!1}=e;if(!t||t.currentPage==null||t.limit==null)return null;const{total:r,currentPage:o,limit:a}=t,i=(o-1)*a+1,s=(o-1)*a+a,l=t!=null&&t.currentResultsLength&&t.currentResultsLength<a?i+t.currentResultsLength-1:s;let c=Math.min((o-1)*a+1,r??0),d=Math.min(c+a-1,r??0);const f=s4e();return u.jsx("div",{className:ae(f.root,{[f.alignRight]:n}),children:r!==void 0&&r>=0?u.jsxs(u.Fragment,{children:[u.jsx(Cr,{children:u.jsx(dn,{source:"Result(s) <0/> to <1/> of <2/>",c0:c,c1:d,c2:r})}),u.jsx("span",{"aria-hidden":!0,children:u.jsx(dn,{source:"<0/>-<1/> of <2/>",c0:Qm({value:c}),c1:Qm({value:d}),c2:Qm({value:r})})})]}):u.jsxs(u.Fragment,{children:[u.jsx(Cr,{children:u.jsx(dn,{source:"Result(s) <0/> to <1/>",c0:i,c1:l})}),u.jsx("span",{"aria-hidden":!0,children:u.jsx(dn,{source:"Result(s) <0/> to <1/>",c0:Qm({value:i}),c1:Qm({value:l})})})]})})}const c4e=re(()=>{const e=ee(),t=Tn(),n=S({display:"flex",alignItems:"baseline",justifyContent:"flex-end"},"label:searchMiscellaneousComponents-styles-root"),r=S({display:"flex",flexWrap:"wrap",...E.margin({all:0}),marginInlineEnd:8},"label:searchMiscellaneousComponents-styles-sort"),o=S({alignSelf:"center",marginRight:w(6),...E.font({color:t.font.color,weight:e.fonts.weights.normal})},"label:searchMiscellaneousComponents-styles-sortLabel"),a=S({...E.margin({left:e.gutter.size})},"label:searchMiscellaneousComponents-styles-pages");return{root:n,sort:r,sortLabel:o,pages:a}});function u4e(e){const{sortOptions:t,sortValue:n,onSortChange:r,pages:o,alignRight:a}=e,i=c4e(),s=xr("sortBy");if(!(t&&t.length>1)&&!o)return null;const c=(t==null?void 0:t.find(f=>f.value===n))??(t==null?void 0:t[0]);let d=u.jsx(l4e,{pages:e.pages,alignRight:a});return u.jsxs("div",{className:i.root,children:[t&&(t==null?void 0:t.length)>0&&u.jsxs("label",{className:i.sort,children:[u.jsx("span",{id:s,className:i.sortLabel,children:`${k("Sort By")}: `}),u.jsx(Sv,{options:t,value:c,onChange:f=>{r==null||r(f.value)},describedBy:s,widthOfParent:!1,renderLeft:!1,className:i.sort,verticalPadding:!1})]}),o&&u.jsx("div",{className:i.pages,children:d})]})}var jI;(function(e){e.RECENTLY_FOLLOWED="-dateFollowed",e.OLDEST_FOLLOWED="dateFollowed",e.ALPHABETICAL="name"})(jI||(jI={}));function d4e(e){const{sortBy:t,setSortBy:n,pager:r}=e,o=mC();return u.jsxs("div",{className:o.sortByAndPager,children:[u.jsx(u4e,{sortValue:t,onSortChange:a=>n(a),sortOptions:[{value:"-dateFollowed",name:k("Most Recently Followed")},{value:"dateFollowed",name:k("Oldest Followed")},{value:"name",name:k("Alphabetical")}]}),r]})}function f4e(e,t=!0){const{refetch:n,isLoading:r,error:o,isSuccess:a,isFetching:i,data:s}=Ss({queryFn:async()=>{const l=await Ct.get("/categories",{params:{...e}}),c=_A.parseHeaders(l.headers);return{result:l.data,pagination:c}},keepPreviousData:!0,queryKey:["categoryList",{...e}],enabled:t});return{refetch:n,error:o,isLoading:r,isSuccess:a,isFetching:i,data:s}}function h4e(e){const{userID:t,url:n,iconUrl:r,dateFollowed:o,countDiscussions:a,name:i,lastPost:s,categoryID:l,preferences:c}=e,d=Ge("emails.digest",!1),f=mC(),h=new Date(2023,3,18);return u.jsx(aC,{url:n,icon:r?u.jsx("div",{className:f.photoWrap,children:u.jsx("img",{src:r,className:"CategoryPhoto",height:"200",width:"200"})}):u.jsx(Cr,{children:k("Expand for more options.")}),iconWrapperClass:f.iconWrap,name:i,nameClassName:f.name,metas:u.jsxs(u.Fragment,{children:[u.jsx(Bn,{children:new Date(o??"")>h?u.jsx(dn,{source:"Following since <0/>",c0:u.jsx(Uo,{timestamp:o})}):u.jsx(dn,{source:"Followed before <0/>",c0:k("May 2023")})}),u.jsx(Bn,{children:u.jsx(dn,{source:"<0/> discussions",c0:a})}),s&&u.jsx(Bn,{children:u.jsx(dn,{source:"Most recent: <0/> by <1/>.",c0:u.jsx(Ry,{to:s.url,children:s.name}),c1:s.insertUser?u.jsx(ai,{userFragment:{userID:s.insertUser.userID,name:s.insertUser.name},className:Aa().metaLink}):null})})]}),actions:u.jsx("div",{style:{marginTop:28},children:u.jsx(Bk,{userID:t,categoryID:l,categoryName:i,notificationPreferences:c,emailDigestEnabled:d,isCompact:!0})})})}function vM(e){const t=mC(),{userID:n}=eG(),[r,o]=x.useState(jI.RECENTLY_FOLLOWED),[a,i]=x.useState(1),s=x.useMemo(()=>({followed:!0,sort:r,expand:"lastPost,preferences",limit:30,page:a}),[r,a]),{data:l,error:c,isLoading:d}=f4e(s,!0),f=l==null?void 0:l.result,h=l==null?void 0:l.pagination;return u.jsxs(u.Fragment,{children:[e.withTitle&&u.jsx(Dn,{depth:2,className:t.subtitle,children:k("Manage Categories")}),u.jsx(d4e,{sortBy:r,setSortBy:o,pager:(l==null?void 0:l.pagination)&&u.jsx(Rk,{totalResults:h==null?void 0:h.total,currentPage:(h==null?void 0:h.currentPage)??1,pageLimit:30,hasMorePages:h!=null&&h.total?(h==null?void 0:h.total)>=fle:!1,showNextButton:!1,onChange:m=>i(m),isMobile:!1,className:t.pager})}),c&&u.jsx(Jc,{type:"error",stringContents:c.message,icon:u.jsx(u1,{})}),d&&u.jsx(kk,{count:3,actionIcon:"me-notifications"}),f&&(f.length?u.jsx(Mv,{children:f.map(m=>u.jsx(h4e,{userID:n,...m},m.categoryID))}):u.jsx(i4e,{results:[],emptyMessage:k("No categories followed")}))]})}function m4e(e){const t=mC(),{additionalFollowedContent:n}=eG();return u.jsxs("section",{className:t.section,children:[u.jsx(Dn,{depth:1,renderAsDepth:1,children:k("Followed Content")}),e.renderAdditionalFollowedContent?u.jsx(Lk,{tabsRootClass:t.tabsContent,tabPanelClasses:t.tabsPanel,tabListClasses:t.tabList,tabType:Ri.BROWSE,largeTabs:!0,includeBorder:!1,data:[{tabID:"followedCategories",label:"Manage Categories",contents:u.jsx(vM,{})},...n.map(r=>({tabID:`followed${r.contentName}`,label:`Manage ${r.contentName}`,contents:u.jsx(r.contentRenderer,{})}))]}):u.jsx(vM,{withTitle:!0})]})}function p4e(e){return u.jsxs("div",{children:[u.jsx(JV,{userID:e.userID,children:u.jsx(kO,{children:u.jsx(m4e,{...e})})}),u.jsx(cV,{})]})}class g4e extends x.Component{static renderString(t,n=k("Set Page Location")){if(!t||t.length===0)return n;const r="/",o=t.length-1;let a=k("Page Location: ")+r;return t.forEach((i,s)=>{const l=s===o;a+=i.name,l||(a+=r)}),a}render(){if(this.props.locationData.length===0)return k("Set Page Location");const{locationData:t}=this.props,n="/",r=t.length-1,o=u1e(),a=t.map((i,s)=>{const l=s===r;return u.jsxs(x.Fragment,{children:[u.jsx("span",{className:o.crumb,children:i.name}),!l&&u.jsxs("span",{className:o.separator,children:[u.jsx("span",{"aria-hidden":!0,className:o.separatorIcon,children:"›"}),u.jsx("span",{className:"sr-only",children:n})]})]},`locationBreadcrumb-${s}`)});return u.jsxs("span",{className:o.root,children:[this.props.icon,a]})}}const v4e=re(()=>{const e=ee(),t=qe("pageLocation"),n=t("spacing",{default:15}),r=t("colors",{color:e.mixBgAndFg(.83),padding:{vertical:8,left:n.default,right:n.default*1.5}}),o=t("icon",{opacity:.8});return{spacer:n,picker:r,icon:o}}),b4e=re(()=>{const e=ee(),t=Kt(),n=v4e(),r=Tt("folderContents"),o=r({display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-start",marginBottom:w(e.spacer.size),minHeight:t.sizing.height,cursor:"pointer"}),a=r("picker",{...Un().embed(),display:"flex",alignItems:"center",justifyContent:"center",...E.border({radius:t.sizing.height/2}),...zn(),marginRight:w(8),...E.font({...e.fontSizeAndWeightVars("small","semiBold"),color:P.colorOut(n.picker.color)}),...E.padding(n.picker.padding),"&:active":{borderColor:P.colorOut(e.mainColors.primary),color:P.colorOut(e.mainColors.primary)},"&:hover":{borderColor:P.colorOut(e.mainColors.primary),color:P.colorOut(e.mainColors.primary)},"&:focus":{borderColor:P.colorOut(e.mainColors.primary),color:P.colorOut(e.mainColors.primary)},"&.focus-visible":{borderColor:P.colorOut(e.mainColors.primary),color:P.colorOut(e.mainColors.primary)},"&&:not(.focus-visible)":{outline:0}});return{root:o,picker:a}}),bM=re(()=>{const e=ee(),t=Tt("locationPicker"),n=t({}),r=t("articlePlaceholder",{display:"block",width:Z(100),height:Le(24),border:`dotted 1px ${e.mixBgAndFg(.5).toString()}`,margin:`${Le(6)} ${Le(12)}`,borderRadius:Le(2),"&:hover":{backgroundColor:e.mainColors.primary.fade(.1).toString()},"&:focus":{backgroundColor:e.mainColors.primary.fade(.1).toString()},"&.focus-visible":{backgroundColor:e.mainColors.primary.fade(.8).toString(),borderColor:e.mainColors.fg.toString(),borderStyle:"solid"},"&.isActive":{backgroundColor:e.mixPrimaryAndBg(.08).toString(),...E.padding({vertical:0,horizontal:2}),...wo().middleLeft()},"&.isFirst":{marginTop:Le(18)},"&.isLast":{marginBottom:Le(18)}}),o=t("checkMark",{color:P.colorOut(e.mainColors.primary),height:20,width:20,marginRight:4}),a=t("instructions",{display:"flex",alignItems:"center",justifyContent:"flex-start",...E.font({...e.fontSizeAndWeightVars("medium")}),padding:`${Le(8)} ${Le(12)}`,width:Z(100),minHeight:w(50)}),i=nO(),s=t("iconWrapper",{display:"inline-flex",...E.margin({right:".4em",bottom:"-.05em"}),flexBasis:w(i.categoryIcon.width)}),l=t("initialText",{whiteSpace:"nowrap",paddingLeft:"0.2em"});return{root:n,articlePlaceholder:r,checkMark:o,instructions:a,iconWrapper:s,initialText:l}}),lG=re(()=>{const e=ee(),t=S({position:"relative",...E.margin({vertical:16})},"label:CategoryPicker-classes-pickerWrapper"),n=S({"&&":{display:"inline-flex",cursor:"pointer"}},"label:CategoryPicker-classes-pickerButton"),r=S({"&&":{...E.absolute.fullSizeOfParent(),background:"transparent",border:"none",outline:"none",appearance:"none",color:"transparent",opacity:0,zIndex:1,cursor:"pointer"},"& option":{color:"initial"},[`
                &:hover + .${n},
                &:focus + .${n},
                &:active + .${n},
                &.focus-visible + .${n},
            `]:{borderColor:P.colorOut(e.mainColors.primary),color:P.colorOut(e.mainColors.primary)}},"label:CategoryPicker-classes-select"),o=S({...E.font({weight:e.fonts.weights.bold,color:P.colorOut(e.mainColors.fg)})},"label:CategoryPicker-classes-categoryLabel"),a=S({...E.font({size:e.fonts.size.large})},"label:CategoryPicker-classes-categoryDescription"),i=S({...E.padding({bottom:16,top:8})},"label:CategoryPicker-classes-categoryInfo");return{pickerWrapper:t,pickerButton:n,select:r,categoryLabel:o,categoryDescription:a,categoryInfo:i}});function y4e(e){const{label:t,description:n}=e,r=lG();return u.jsx(u.Fragment,{children:t&&n&&u.jsxs("div",{className:r.categoryInfo,children:[u.jsx("div",{className:r.categoryLabel,children:t}),u.jsx("div",{className:r.categoryDescription,children:n})]})})}function x4e(e){const{selectAttributes:t,items:n,defaultItem:r,initialValue:o,categoryInfoOnly:a}=e,i=lG(),s=o?n.find(y=>y.value==o):r,[l,c]=x.useState(s),[d,f]=x.useState(o||(r==null?void 0:r.value)),h=y=>{const C=n.find(A=>A.value==y.target.value),D=C??r;c({...D}),f(D.value)},g=(l==null?void 0:l.breadcrumbs)??null?u.jsx(g4e,{locationData:l.breadcrumbs,icon:u.jsx(hfe,{className:"pageLocation-icon"})}):u.jsxs(u.Fragment,{children:[u.jsx("span",{className:bM().iconWrapper,children:u.jsx(mfe,{className:"pageLocation-icon"})}),u.jsx("span",{className:bM().initialText,children:r==null?void 0:r.label})]}),p=t==null?void 0:t.id.split('"')[1],v=t==null?void 0:t.name.split('"')[1],b=u.jsxs("div",{className:i.pickerWrapper,children:[u.jsx("label",{className:"sr-only",htmlFor:p,children:k("Select a category")}),u.jsxs("select",{value:d,id:p,name:v,onChange:h,className:i.select,children:[(r==null?void 0:r.label)&&u.jsx("option",{value:r.value,children:r.label}),n.map((y,C)=>{let D=y.depth>0?y.depth:1;return u.jsx("option",{value:y.value,disabled:y.disabled,children:" ".repeat(4*(D-1))+y.label},C)})]}),u.jsx("span",{className:ae(b4e().picker,i.pickerButton),children:g})]});return u.jsxs("div",{children:[!a&&b,l&&u.jsx(y4e,{label:l==null?void 0:l.label,description:l==null?void 0:l.description})]})}function cG(e){var l,c,d,f,h;const t=La(e.itemOptions).options,n={...e.containerOptions,isGrid:!((l=e.containerOptions)!=null&&l.isCarousel)&&(!((c=e.containerOptions)!=null&&c.displayType)||((d=e.containerOptions)==null?void 0:d.displayType)===Ln.GRID),maxColumnCount:((f=e.containerOptions)==null?void 0:f.displayType)===Ln.LIST?1:(h=e.containerOptions)==null?void 0:h.maxColumnCount},r=vm(n).options,o=Nv(e.containerOptions),a=r.displayType===Ln.LIST&&t.box.borderType===dt.SEPARATOR;let i=e.itemData;e.maxItemCount&&i.length>e.maxItemCount&&(i=i.slice(0,e.maxItemCount));let s=0;return[un.TITLE_BACKGROUND,un.TITLE_BACKGROUND_DESCRIPTION,un.TITLE_DESCRIPTION_ICON,un.TITLE_DESCRIPTION_IMAGE].includes(t.contentType)&&e.itemData.length<r.maxColumnCount&&!r.isCarousel&&r.displayType!==Ln.CAROUSEL&&(s=r.maxColumnCount-e.itemData.length),u.jsxs(Us,{subtitle:e.subtitle,description:e.description,options:n,title:e.title,contentIsListWithSeparators:a,children:[i.map((m,g)=>u.jsx(Sk,{...m,options:e.itemOptions},g)),[...new Array(s)].map((m,g)=>u.jsx("div",{className:o.gridItemSpacer},"spacer-"+g))]})}const C4e=()=>{const e=r9(),t=S({...E.background({color:e.colors.bg}),...e.box.enabled?{borderTopLeftRadius:e.box.borderRadius,borderTopRightRadius:e.box.borderRadius,...Un().embed(),overflow:"hidden"}:{}},"label:LeaderboardWidget-styles-rootStyles"),n=S({display:"flex",justifyContent:e.title.alignment,...E.background(e.title.background),...E.font(e.title.font),...E.padding(e.title.spacing.padding)},"label:LeaderboardWidget-styles-titleStyles"),r=S({...E.padding(e.list.spacing),...E.border({style:dt.NONE})},"label:LeaderboardWidget-styles-listStyles"),o=S({...E.padding(e.listItem.spacing)},"label:LeaderboardWidget-styles-listItemStyles"),a=S({display:"flex",alignItems:"center",...E.clickable.itemState(),...E.font({color:e.username.font.color??P.ensureColorHelper(E.clickable.itemState().color)})},"label:LeaderboardWidget-styles-linkStyles"),i=S({order:2,...E.margin({all:0,left:"auto"})},"label:LeaderboardWidget-styles-asideStyles"),s=S({...E.font(e.count.font)},"label:LeaderboardWidget-styles-countStyles"),l=S({display:"flex",alignItems:"center",...E.padding({vertical:4})},"label:LeaderboardWidget-styles-userStyles"),c=S({flex:1,verticalAlign:"middle",display:"inline-block",...E.margin(e.username.margin),...E.font({...e.username.font,lineHeight:1})},"label:LeaderboardWidget-styles-usernameStyles"),d=S({verticalAlign:"middle",borderRadius:"50%",overflow:"hidden",width:e.profilePhoto.size,height:e.profilePhoto.size,flexShrink:0},"label:LeaderboardWidget-styles-profilePhotoStyles"),f=S({width:Z(100)},"label:LeaderboardWidget-styles-table");return{rootStyles:t,titleStyles:n,listStyles:r,listItemStyles:o,linkStyles:a,asideStyles:i,countStyles:s,userStyles:l,profilePhotoStyles:d,usernameStyles:c,table:f,row:S({boxSizing:"border-box"},"label:LeaderboardWidget-styles-row"),cell:S({padding:0,minWidth:"5ch",verticalAlign:"middle",textAlign:"right","&:first-of-type":{textAlign:"start"}},"label:LeaderboardWidget-styles-cell")}};function w4e(e){const{title:t,subtitle:n,description:r,containerOptions:o,leaders:a}=e,i=x.useMemo(()=>a&&a[0]?Object.keys(a[0]).filter(c=>c!=="user"):[],[a]);let s;(function(c){c[c.list=Ln.LIST]="list",c[c.link=Ln.LINK]="link"})(s||(s={}));const l=o?o.displayType===void 0||o.displayType in s:!0;return u.jsx(Ls,{children:u.jsx(Us,{title:t,subtitle:n,description:r,options:{...o,displayType:(o==null?void 0:o.displayType)??Ln.LIST},children:a&&!l?a.map(c=>u.jsx(Sk,{to:c.user.url??"",name:c.user.name,description:c.user.title,counts:i.map(d=>({count:Number(c[d]),labelCode:QT(d)})),iconUrl:c.user.photoUrl,options:{contentType:un.TITLE_DESCRIPTION_ICON}},c.user.userID)):u.jsx(S4e,{countKeys:i,rows:a})})})}function S4e(e){const{countKeys:t,rows:n}=e,r=C4e();return u.jsxs("table",{className:r.table,children:[u.jsx("thead",{className:ge(Rc().visuallyHidden),children:u.jsxs("tr",{className:ge(r.row),children:[u.jsx("td",{className:ge(r.cell),children:k("Member")}),t.map((o,a)=>u.jsx("td",{className:ge(r.cell),children:QT(o)},o+a))]})}),u.jsx("tbody",{children:n.map(o=>{const a=o.user;return u.jsxs("tr",{className:ge(r.row),children:[u.jsx("td",{className:ge(r.cell),children:u.jsxs("span",{className:ge(r.userStyles,"Leaderboard-User"),children:[u.jsx(ai,{userFragment:a,isUserCard:!0,children:u.jsx(Yi,{userInfo:a,size:ho.MEDIUM,styleType:uh.DEFAULT})}),u.jsx("span",{className:ge(r.usernameStyles,"Username"),children:u.jsx(ai,{className:r.linkStyles,userFragment:a,isUserCard:!0})})]})}),t.map((i,s)=>u.jsx("td",{className:ge(r.cell),children:u.jsx("span",{className:ge(r.countStyles,"Count"),children:o[i]})},`${i}${s}`))]},a.userID)})})]})}const $k=re(()=>{const e=qe("newPostMenu"),t=e("button",{border:ce.border({radius:24,width:0}),font:ce.font({size:16,weight:700})}),n=e("fab",{size:56,spacing:ce.spacing({top:24}),opacity:{open:1,close:0},degree:{open:-135,close:0},iconsOnly:!1,position:{bottom:40,right:24}}),r=e("fabItem",{opacity:{open:1,close:0},transformY:{open:0,close:100}}),o=e("fabAction",{border:ce.border({radius:n.iconsOnly?"50%":21.5,width:0}),spacing:ce.spacing({horizontal:n.iconsOnly?9:18}),size:{height:44,width:n.iconsOnly?44:void 0}}),a=e("fabMenu",{display:{open:"block",close:"none"},opacity:{open:1,close:0}});return{button:t,fabItem:r,fabAction:o,fab:n,fabMenu:a}}),pC=re((e,t)=>{var T,B,j;const n=$k(),r=ee(),o=gv();Zt({"[data-reach-menu-popover]":{zIndex:t??1050}});const a=S({position:"fixed",bottom:w(n.fab.position.bottom),right:w(n.fab.position.right),textAlign:"right"},"label:newPostMenuStyles-root"),i=S({...E.margin({top:16,right:6})},"label:newPostMenuStyles-fabItem"),s={...E.absolute.fullSizeOfParent(),...E.margin({all:1}),maxWidth:it("100% - 2px"),maxHeight:it("100% - 2px")},l=S({...s,...E.border(n.fabAction.border)},"label:newPostMenuStyles-fabItemFocus"),c=S({position:"relative",...E.border(n.fabAction.border),...Un().floatingButton(),minHeight:w(n.fabAction.size.height),width:w(n.fabAction.size.width),backgroundColor:P.colorOut(r.mainColors.bg),...E.padding({horizontal:n.fabAction.spacing.horizontal}),display:"inline-flex",alignItems:"center",...E.clickable.itemState({default:r.mainColors.fg}),"&.focus-visible":{outline:0},[`&.focus-visible .${l}`]:{boxShadow:`0 0 0 1px ${P.colorOut(r.mainColors.primary)} inset`},"& svg":{margin:"auto"}},"label:newPostMenuStyles-fabAction"),d=S({...s,borderRadius:"50%"},"label:newPostMenuStyles-fabFocus"),f=S({display:"inline-flex",alignItems:"center",justifyItems:"center",height:w(n.fab.size),width:w(n.fab.size),backgroundColor:P.colorOut((T=o.primary.colors)==null?void 0:T.bg),borderRadius:"50%",border:0,cursor:"pointer","&.focus-visible":{outline:0},[`&.focus-visible .${d}`]:{boxShadow:`0 0 0 1px ${P.colorOut(r.mainColors.primaryContrast)} inset`},"& svg":{color:P.colorOut(n.button.font.color)}},"label:newPostMenuStyles-fab"),h=S({display:"flex",flexDirection:"column",...E.box({...ce.box({borderType:e==null?void 0:e.borderType})}),backgroundColor:(B=e==null?void 0:e.outerBackground)!=null&&B.color?P.colorOut((j=e==null?void 0:e.outerBackground)==null?void 0:j.color):void 0},"label:newPostMenuStyles-container"),m={...E.border(n.button.border),...Un().dropDown()},g=R=>{var N;return S({"&&":{minWidth:((N=o.primary.sizing)==null?void 0:N.minWidth)??w(148),maxWidth:"fit-content",height:w(48),...m,borderRadius:R?w(R):void 0,"&:not([disabled]):focus-visible, &:not([disabled]):focus, &:not([disabled]):hover, &:not([disabled]):active":{...m,borderRadius:R?w(R):void 0}}},"label:newPostMenuStyles-button")},p=S({"&:not(:first-child)":{marginTop:16}},"label:newPostMenuStyles-separateButton"),v=S({display:"flex",justifyContent:"space-around",alignItems:"center",width:"100%","& svg":{margin:0,color:P.colorOut(n.button.font.color)}},"label:newPostMenuStyles-buttonContents"),b=S({display:"flex",marginRight:w(4)},"label:newPostMenuStyles-buttonIcon"),y=S({...E.font(n.button.font)},"label:newPostMenuStyles-buttonLabel");Il().panel.paddedWidth-r.gutter.size;const C=S({...E.padding({vertical:r.gutter.half}),...E.margin({top:4}),"&[data-reach-menu-list]":{outline:"none"},"& [data-reach-menu-item][data-selected]":{backgroundColor:P.colorOut(r.states.hover.highlight),color:r.states.hover.contrast?P.colorOut(r.states.hover.contrast):void 0}},"label:newPostMenuStyles-buttonDropdownContents"),D=S({...E.margin({left:10}),display:"inline-block"},"label:newPostMenuStyles-fabLabel"),A=S({display:"inline-flex",borderRadius:"50%",...Un().dropDown(),height:w(n.fab.size),width:w(n.fab.size),...E.margin(n.fab.spacing)},"label:newPostMenuStyles-fabWrap");return{root:a,fabItem:i,fabItemFocus:l,fabAction:c,fab:f,fabLabel:D,fabWrap:A,fabFocus:d,container:h,separateButton:p,button:g,buttonContents:v,buttonIcon:b,buttonLabel:y,buttonDropdownContents:C}}),D4e=re(()=>({container:S({height:0,width:0,position:"fixed",top:0,left:0,zIndex:1050},"label:newPostBackgroundStyles-container"),overlay:S({height:"100vh",width:"100vw"},"label:newPostBackgroundStyles-overlay")}));function E4e(e){const t=D4e(),n=e.open?t.overlay:void 0;return Rl.createPortal(u.jsx(Lo.aside,{className:ae(t.container,n),style:e.bgTransition,onClick:e.onClick,onKeyDown:e.onKeyDown,children:e.children}),document.body)}var yM;(function(e){e.LINK="link",e.BUTTON="button"})(yM||(yM={}));function I4e(e){const{item:t,style:n,aid:r}=e,{action:o,className:a,type:i,label:s,icon:l}=t,c=pC(),d=$k(),f=u.jsxs(u.Fragment,{children:[u.jsx("div",{className:c.fabItemFocus,"aria-hidden":!0}),u.jsx(Bt,{icon:l}),!d.fab.iconsOnly&&u.jsx("span",{className:c.fabLabel,children:s})]});return u.jsx(Lo.li,{id:r,role:"menuitem",style:n,className:ae(c.fabItem),children:i==="button"?u.jsx(ut,{buttonType:ye.CUSTOM,className:ae(a,c.fabAction),onClick:o,children:f}):u.jsx(So,{buttonType:ye.CUSTOM,className:ae(a,c.fabAction),to:o,children:f})})}const T4e={open:!1,buttonFocus:!1,focusedItem:void 0},A4e=(e,t)=>{switch(t.type){case"toggle_open":return{...e,open:!e.open};case"set_open":return{...e,open:t.open};case"set_button_focus":return{...e,buttonFocus:t.focus};case"set_focused_item":return{...e,focusedItem:t.item};default:throw new Error}};function O4e(e){const t=pC(),n=$k(),r=ee(),{items:o}=e,a=x.useRef(null),i=x.useRef(null),s=x.useRef(null),l=x.useRef(null),c=x.useRef(null),[d,f]=x.useReducer(A4e,T4e),h=_=>{_.stopPropagation(),d.open&&(f({type:"set_button_focus",focus:!0}),f({type:"set_open",open:!1}),f({type:"set_focused_item",item:void 0}))},m=_=>{switch(_.key){case"Escape":d.open&&(_.preventDefault(),_.stopPropagation(),f({type:"set_open",open:!1}),f({type:"set_button_focus",focus:!0}),f({type:"set_focused_item",item:void 0}));break}},g=_=>{switch(_.key){case"Escape":d.open&&(f({type:"set_open",open:!1}),f({type:"set_button_focus",focus:!0}),f({type:"set_focused_item",item:void 0}));break;case"Home":d.open&&f({type:"set_focused_item",item:0});break;case"End":d.open&&f({type:"set_focused_item",item:o.length-1});break;case"ArrowUp":d.open&&typeof d.focusedItem<"u"&&f({type:"set_focused_item",item:(d.focusedItem-1+o.length)%o.length});break;case"ArrowDown":d.open&&typeof d.focusedItem<"u"&&f({type:"set_focused_item",item:(d.focusedItem+1)%o.length});break;case"Enter":if(typeof d.focusedItem<"u"){const V=o[d.focusedItem];switch(V.type){case"link":window.location.href=V.action,f({type:"set_open",open:!1}),f({type:"set_button_focus",focus:!0}),f({type:"set_focused_item",item:void 0});break;case"button":V.action(),f({type:"set_open",open:!1}),f({type:"set_button_focus",focus:!0}),f({type:"set_focused_item",item:void 0});break}}break;default:const U=o.map((V,z)=>({...V,index:z})).filter(V=>V.label.toLocaleUpperCase().startsWith(_.key.toLocaleUpperCase()));if(typeof d.focusedItem<"u"){const V=U.find(z=>z.index>d.focusedItem);V&&f({type:"set_focused_item",item:V.index})}break}},p=_=>{switch(_.key){case"Escape":d.open&&(f({type:"set_open",open:!1}),f({type:"set_button_focus",focus:!0}),f({type:"set_focused_item",item:void 0}));break;case"ArrowDown":case"Enter":case" ":d.buttonFocus&&(f({type:"set_focused_item",item:0}),f({type:"set_open",open:!0}));break;case"ArrowUp":d.buttonFocus&&(f({type:"set_focused_item",item:o.length-1}),f({type:"set_open",open:!0}));break}},v=_=>{var U,V,z,Y;if((d.open||d.buttonFocus)&&a.current&&a.current.focus(),c.current){const te=new Es(c.current);if(d.focusedItem===0)(U=te.getInitial())==null||U.focus();else if(d.focusedItem===_.length-1)(V=te.getLast())==null||V.focus();else if(typeof d.focusedItem<"u"){(z=te.getInitial())==null||z.focus();for(let se=0;se<d.focusedItem;se++)(Y=te.getNext())==null||Y.focus()}}},b=x.useMemo(()=>ro("newpost"),[]),y=b+"-button",C=b+"-menu",D=$f({ref:i,backgroundColor:d.open?P.colorOut(r.elementaryColors.black.fade(.4)):P.colorOut(r.elementaryColors.transparent),from:{backgroundColor:P.colorOut(r.mainColors.bg)},config:{duration:300}}),A=Lo(ut),{o:T,d:B,s:j}=$f({config:{duration:150},o:d.open?n.fab.opacity.open:n.fab.opacity.close,d:d.open?n.fab.degree.open:n.fab.degree.close,from:{o:n.fab.opacity.close,d:n.fab.degree.close}}),R=$f({ref:s,config:{duration:150},opacity:d.open?n.fabMenu.opacity.open:n.fabMenu.opacity.close,display:d.open?n.fabMenu.display.open:n.fabMenu.display.close,from:{opacity:n.fabMenu.opacity.close,display:n.fabMenu.display.close},onRest:()=>v(o)}),N=Qfe(o.length,{ref:l,config:{mass:2,tension:3500,friction:100},opacity:d.open?n.fabItem.opacity.open:n.fabItem.opacity.close,transform:d.open?`translate3d(0, ${n.fabItem.transformY.open}, 0)`:`translate3d(0, ${n.fabItem.transformY.close}%, 0)`,from:{opacity:n.fabItem.opacity.close,transform:`translate3d(0, ${n.fabItem.transformY.close}%, 0)`}});return Kfe(d.open?[s,l,i]:[l,s,i],d.open?[.2,.2,.15]:[.2,.25,.15]),u.jsx(u.Fragment,{children:u.jsx(E4e,{onKeyDown:m,bgTransition:D,open:d.open,onClick:h,children:u.jsxs("div",{className:ae(t.root),children:[u.jsx(Lo.ul,{onKeyDown:g,style:R,ref:c,id:C,role:"menu","aria-labelledby":y,tabIndex:-1,"aria-activedescendant":typeof d.focusedItem>"u"?"":`${b}-${d.focusedItem}`,children:N.map(({opacity:_,transform:U,...V},z)=>u.jsx(I4e,{aid:`${b}-${z}`,item:o[z],style:{opacity:_,transform:U}},o[z].id))}),u.jsx(Lo.div,{className:t.fabWrap,children:u.jsxs(A,{onKeyDown:p,id:y,"aria-haspopup":"true","aria-controls":C,"aria-expanded":d.open,title:k("New Post Menu"),"aria-label":k("New Post Menu"),buttonRef:a,style:{opacity:T.interpolate({range:[0,.25,.45,.75,1],output:[1,.97,.7,.9,1]}).interpolate(_=>`${_}`),transform:Yfe([B],_=>`rotate(${_}deg)`)},buttonType:ye.CUSTOM,onClick:()=>f({type:"toggle_open"}),className:ae(t.fab),children:[u.jsx("div",{className:t.fabFocus,"aria-hidden":!0}),u.jsx(HW,{})]})})]})})})}var uG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],NI=uG.join(","),Mk=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function _k(e,t){t=t||{};var n=[],r=[],o=e.querySelectorAll(NI);t.includeContainer&&Mk.call(e,NI)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var a,i,s;for(a=0;a<o.length;a++)i=o[a],dG(i)&&(s=hG(i),s===0?n.push(i):r.push({documentOrder:a,tabIndex:s,node:i}));var l=r.sort(R4e).map(function(c){return c.node}).concat(n);return l}_k.isTabbable=B4e;_k.isFocusable=P4e;function dG(e){return!(!fG(e)||$4e(e)||hG(e)<0)}function B4e(e){if(!e)throw new Error("No node provided");return Mk.call(e,NI)===!1?!1:dG(e)}function fG(e){return!(e.disabled||N4e(e)||F4e(e))}var k4e=uG.concat("iframe").join(",");function P4e(e){if(!e)throw new Error("No node provided");return Mk.call(e,k4e)===!1?!1:fG(e)}function hG(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?j4e(e)?0:e.tabIndex:t}function R4e(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function j4e(e){return e.contentEditable==="true"}function mG(e){return e.tagName==="INPUT"}function N4e(e){return mG(e)&&e.type==="hidden"}function L4e(e){return mG(e)&&e.type==="radio"}function $4e(e){return L4e(e)&&!_4e(e)}function M4e(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function _4e(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=M4e(t);return!n||n===e}function F4e(e){return e.offsetParent===null||getComputedStyle(e).visibility==="hidden"}var W4e=_k;const nl=jr(W4e);function z4e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ch(){return Ch=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}var H4e=["as","targetRef","position","unstable_observableRefs"],U4e=x.forwardRef(function(t,n){return x.createElement(bA,null,x.createElement(V4e,Ch({ref:n},t)))}),V4e=x.forwardRef(function(t,n){var r=t.as,o=r===void 0?"div":r,a=t.targetRef,i=t.position,s=i===void 0?K4e:i,l=t.unstable_observableRefs,c=l===void 0?[]:l,d=z4e(t,H4e),f=x.useRef(null),h=ag(f,{observe:!d.hidden}),m=ag(a,{observe:!d.hidden}),g=$l(f,n);return X4e(a,f),x.createElement(o,Ch({"data-reach-popover":"",ref:g},d,{style:Ch({position:"absolute"},G4e.apply(void 0,[s,m,h].concat(c)),d.style)}))});function G4e(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return n?e.apply(void 0,[t,n].concat(o.map(function(i){return i.current}))):{visibility:"hidden"}}function Y4e(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}var K4e=function(t,n){if(!t||!n)return{};var r=q4e(t,n),o=r.directionRight,a=r.directionUp;return Ch({left:o?t.right-n.width+window.pageXOffset+"px":t.left+window.pageXOffset+"px"},Y4e(t,n,a))};function q4e(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},a=o.right&&!o.left,i=o.left&&!o.right,s=o.bottom&&!o.top,l=o.top&&!o.bottom;return{directionRight:a,directionLeft:i,directionUp:s,directionDown:l}}function X4e(e,t){var n=oh(e.current);function r(y){y.key==="Tab"&&t.current&&nl(t.current).length===0||(y.key==="Tab"&&y.shiftKey?c(y)?d(y):f(y)?h(y):g(y)&&v():y.key==="Tab"&&(a()?i(y):s()?l(y):m(y)&&v()))}x.useEffect(function(){return n.addEventListener("keydown",r),function(){n.removeEventListener("keydown",r)}},[]);function o(){var y=nl(n),C=y&&e.current?y.indexOf(e.current):-1,D=y&&y[C+1];return t.current&&t.current.contains(D||null)?!1:D}function a(){return e.current?e.current===n.activeElement:!1}function i(y){var C=t.current&&nl(t.current);C&&C[0]&&(y.preventDefault(),C[0].focus())}function s(){var y=t.current?t.current.contains(n.activeElement||null):!1;if(y){var C=t.current&&nl(t.current);return!!(C&&C[C.length-1]===n.activeElement)}return!1}function l(y){var C=o();C&&(y.preventDefault(),C.focus())}function c(y){if(y.shiftKey){var C=o();return y.target===C}}function d(y){var C=t.current&&nl(t.current),D=C&&C[C.length-1];D&&(y.preventDefault(),D.focus())}function f(y){var C=t.current&&nl(t.current);return C?C.length===0?!1:y.target===C[0]:!1}function h(y){var C;y.preventDefault(),(C=e.current)==null||C.focus()}function m(y){var C=t.current?nl(n).filter(function(D){return!t.current.contains(D)}):null;return C?y.target===C[C.length-1]:!1}function g(y){return y.target===nl(n)[0]}var p=[];function v(){var y=t.current&&nl(t.current);y&&(y.forEach(function(C){p.push([C,C.tabIndex]),C.tabIndex=-1}),n.addEventListener("focusin",b))}function b(){n.removeEventListener("focusin",b),p.forEach(function(y){var C=y[0],D=y[1];C.tabIndex=D})}}function N0(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function eD(e){var t=x.useRef(null);return x.useEffect(function(){t.current=e},[e]),t.current}function gC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function bo(){return bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(this,arguments)}var Q4e=["onKeyDown","onMouseDown","id","ref"],Z4e=["index","isLink","onClick","onDragStart","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onSelect","disabled","onFocus","valueText","ref"],J4e=["id","onKeyDown","ref"],e3e=["onBlur","portal","position","ref"],pG="CLEAR_SELECTION_INDEX",Fk="CLICK_MENU_ITEM",kg="CLOSE_MENU",t3e="OPEN_MENU_AT_FIRST_ITEM",LI="OPEN_MENU_AT_INDEX",gG="OPEN_MENU_CLEARED",$I="SEARCH_FOR_ITEM",bc="SELECT_ITEM_AT_INDEX",vG="SET_BUTTON_ID",vC=y5("DropdownDescendantContext"),Wk=Kx("DropdownContext",{}),n3e={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},r3e=function(t){var n=t.id,r=t.children,o=x.useRef(null),a=x.useRef(null),i=x.useRef(null),s=C5(),l=s[0],c=s[1],d=D5(n),f=n||ry("menu",d),h=ry("menu-button",f),m=x.useReducer(u3e,bo({},n3e,{triggerId:h})),g=m[0],p=m[1],v=x.useRef(!1),b=x.useRef([]),y=x.useRef(!1),C=x.useRef({x:0,y:0}),D={dispatch:p,dropdownId:f,dropdownRef:a,mouseDownStartPosRef:C,popoverRef:i,readyToSelect:y,selectCallbacks:b,state:g,triggerClickedRef:v,triggerRef:o};return x.useEffect(function(){g.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(function(){rx(a.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[g.isExpanded]),x.createElement(S5,{context:vC,items:l,set:c},x.createElement(Wk.Provider,{value:D},uv(r)?r({isExpanded:g.isExpanded,isOpen:g.isExpanded}):r))};function o3e(e){var t=e.onKeyDown,n=e.onMouseDown,r=e.id,o=e.ref,a=gC(e,Q4e),i=Wv(),s=i.dispatch,l=i.dropdownId,c=i.mouseDownStartPosRef,d=i.triggerClickedRef,f=i.triggerRef,h=i.state,m=h.triggerId,g=h.isExpanded,p=$l(f,o),v=yG(),b=x.useMemo(function(){return v.findIndex(function(D){return!D.disabled})},[v]);x.useEffect(function(){r!=null&&r!==m&&s({type:vG,payload:r})},[m,s,r]);function y(D){switch(D.key){case"ArrowDown":case"ArrowUp":D.preventDefault(),s({type:LI,payload:{index:b}});break;case"Enter":case" ":s({type:LI,payload:{index:b}});break}}function C(D){N0(D.nativeEvent)||(c.current={x:D.clientX,y:D.clientY},g||(d.current=!0),s(g?{type:kg}:{type:gG}))}return{data:{isExpanded:g,controls:l},props:bo({},a,{ref:p,id:m||void 0,onKeyDown:Er(t,y),onMouseDown:Er(n,C),type:"button"})}}function a3e(e){var t=e.index,n=e.isLink,r=n===void 0?!1:n,o=e.onClick,a=e.onDragStart,i=e.onMouseDown,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onMouseMove,d=e.onMouseUp,f=e.onSelect,h=e.disabled,m=e.onFocus,g=e.valueText,p=e.ref,v=gC(e,Z4e),b=Wv(),y=b.dispatch,C=b.dropdownRef,D=b.mouseDownStartPosRef,A=b.readyToSelect,T=b.selectCallbacks,B=b.triggerRef,j=b.state,R=j.selectionIndex,N=j.isExpanded,_=x.useRef(null),U=x.useState(g||""),V=U[0],z=U[1],Y=x.useCallback(function(Me){!g&&Me!=null&&Me.textContent&&z(Me.textContent)},[g]),te=x.useRef(!1),se=v5(_,null),he=se[0],pe=se[1],K=x.useMemo(function(){return{element:he,key:V,disabled:h,isLink:r}},[h,he,r,V]),O=x5(K,vC,t),le=O===R&&!h,be=$l(p,pe,Y);T.current[O]=f;function H(){rx(B.current),f&&f(),y({type:Fk})}function ie(Me){N0(Me.nativeEvent)||r&&(h?Me.preventDefault():H())}function oe(Me){r&&Me.preventDefault()}function ve(Me){N0(Me.nativeEvent)||(r?te.current=!0:Me.preventDefault())}function $e(Me){var Je=oh(C.current);!le&&O!=null&&!h&&(C!=null&&C.current&&C.current!==Je.activeElement&&_.current!==Je.activeElement&&C.current.focus(),y({type:bc,payload:{index:O}}))}function Ne(Me){y({type:pG})}function Ze(Me){if(!A.current){var Je=8,pt=Math.abs(Me.clientX-D.current.x),ot=Math.abs(Me.clientY-D.current.y);(pt>Je||ot>Je)&&(A.current=!0)}!le&&O!=null&&!h&&y({type:bc,payload:{index:O,dropdownRef:C}})}function ze(){A.current=!0,!le&&O!=null&&!h&&y({type:bc,payload:{index:O}})}function Xe(Me){if(!N0(Me.nativeEvent)){if(!A.current){A.current=!0;return}r?te.current?te.current=!1:_.current&&_.current.click():h||H()}}return x.useEffect(function(){if(N){var Me=window.setTimeout(function(){A.current=!0},400);return function(){window.clearTimeout(Me)}}else A.current=!1},[N,A]),x.useEffect(function(){var Me=oh(_.current);return Me.addEventListener("mouseup",Je),function(){Me.removeEventListener("mouseup",Je)};function Je(){te.current=!1}},[]),{data:{disabled:h},props:bo({id:bG(O),tabIndex:-1},v,{ref:be,"data-disabled":h?"":void 0,"data-selected":le?"":void 0,"data-valuetext":V,onClick:Er(o,ie),onDragStart:Er(a,oe),onMouseDown:Er(i,ve),onMouseEnter:Er(s,$e),onMouseLeave:Er(l,Ne),onMouseMove:Er(c,Ze),onFocus:Er(m,ze),onMouseUp:Er(d,Xe)})}}function i3e(e){e.id;var t=e.onKeyDown,n=e.ref,r=gC(e,J4e),o=Wv(),a=o.dispatch,i=o.triggerRef,s=o.dropdownRef,l=o.selectCallbacks,c=o.dropdownId,d=o.state,f=d.isExpanded,h=d.triggerId,m=d.selectionIndex,g=d.typeaheadQuery,p=yG(),v=$l(s,n);x.useEffect(function(){var A=l3e(p,g);g&&A!=null&&a({type:bc,payload:{index:A,dropdownRef:s}});var T=window.setTimeout(function(){return g&&a({type:$I,payload:""})},1e3);return function(){return window.clearTimeout(T)}},[a,p,g,s]);var b=eD(p.length),y=eD(p[m]),C=eD(m);x.useEffect(function(){m>p.length-1?a({type:bc,payload:{index:p.length-1,dropdownRef:s}}):b!==p.length&&m>-1&&y&&C===m&&p[m]!==y&&a({type:bc,payload:{index:p.findIndex(function(A){return A.key===(y==null?void 0:y.key)}),dropdownRef:s}})},[s,a,p,b,y,C,m]);var D=Er(function(T){var B=T.key;if(f)switch(B){case"Enter":case" ":var j=p.find(function(N){return N.index===m});j&&!j.disabled&&(T.preventDefault(),j.isLink&&j.element?j.element.click():(rx(i.current),l.current[j.index]&&l.current[j.index](),a({type:Fk})));break;case"Escape":rx(i.current),a({type:kg});break;case"Tab":T.preventDefault();break;default:if(roe(B)&&B.length===1){var R=g+B.toLowerCase();a({type:$I,payload:R})}break}},coe(vC,{currentIndex:m,orientation:"vertical",rotate:!1,filter:function(T){return!T.disabled},callback:function(T){a({type:bc,payload:{index:T,dropdownRef:s}})},key:"index"}));return{data:{activeDescendant:bG(m)||void 0,triggerId:h},props:bo({tabIndex:-1},r,{ref:v,id:c,onKeyDown:Er(t,D)})}}function s3e(e){var t=e.onBlur,n=e.portal,r=n===void 0?!0:n,o=e.position,a=e.ref,i=gC(e,e3e),s=Wv(),l=s.triggerRef,c=s.triggerClickedRef,d=s.dispatch,f=s.dropdownRef,h=s.popoverRef,m=s.state.isExpanded,g=$l(h,a);return x.useEffect(function(){if(!m)return;var p=oh(h.current);function v(b){c.current?c.current=!1:c3e(h.current,b.target)||d({type:kg})}return p.addEventListener("mousedown",v),function(){p.removeEventListener("mousedown",v)}},[c,l,d,f,h,m]),{data:{portal:r,position:o,targetRef:l,isExpanded:m},props:bo({ref:g,hidden:!m,onBlur:Er(t,function(p){p.currentTarget.contains(p.relatedTarget)||d({type:kg})})},i)}}function l3e(e,t){if(t===void 0&&(t=""),!t)return null;var n=e.find(function(r){var o,a,i;return r.disabled?!1:(o=r.element)==null||(a=o.dataset)==null||(i=a.valuetext)==null?void 0:i.toLowerCase().startsWith(t)});return n?e.indexOf(n):null}function bG(e){var t=x.useContext(Wk),n=t.dropdownId;return e!=null&&e>-1?ry("option-"+e,n):void 0}function rx(e){e&&e.focus()}function c3e(e,t){return!!(e&&e.contains(t))}function u3e(e,t){switch(t===void 0&&(t={}),t.type){case Fk:return bo({},e,{isExpanded:!1,selectionIndex:-1});case kg:return bo({},e,{isExpanded:!1,selectionIndex:-1});case t3e:return bo({},e,{isExpanded:!0,selectionIndex:0});case LI:return bo({},e,{isExpanded:!0,selectionIndex:t.payload.index});case gG:return bo({},e,{isExpanded:!0,selectionIndex:-1});case bc:{var n=t.payload.dropdownRef,r=n===void 0?{current:null}:n;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){var o=oh(r.current);r.current!==(o==null?void 0:o.activeElement)&&r.current.focus()}return bo({},e,{selectionIndex:t.payload.max!=null?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)})}return e}case pG:return bo({},e,{selectionIndex:-1});case vG:return bo({},e,{triggerId:t.payload});case $I:return typeof t.payload<"u"?bo({},e,{typeaheadQuery:t.payload}):e;default:return e}}function Wv(){return x.useContext(Wk)}function yG(){return w5(vC)}function sa(){return sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function Bd(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var d3e=["as","id","children"],f3e=["as"],h3e=["as"],m3e=["as"],p3e=["as","component","onSelect"],g3e=["portal"],v3e=["as"],b3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?x.Fragment:n,o=e.id,a=e.children,i=Bd(e,d3e),s=x.useMemo(function(){try{return X4.isFragment(x.createElement(r,null))}catch{return!1}},[r]),l=s?{}:sa({ref:t,id:o,"data-reach-menu":""},i);return x.createElement(r,l,x.createElement(r3e,{id:o,children:a}))}),y3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?"button":n,o=Bd(e,f3e),a=o3e(sa({},o,{ref:t})),i=a.data,s=i.isExpanded,l=i.controls,c=a.props;return x.createElement(r,sa({"aria-expanded":s?!0:void 0,"aria-haspopup":!0,"aria-controls":l},c,{"data-reach-menu-button":""}))}),x3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?"div":n,o=Bd(e,h3e),a=a3e(sa({},o,{ref:t})),i=a.data.disabled,s=a.props;return x.createElement(r,sa({role:"menuitem"},s,{"aria-disabled":i||void 0,"data-reach-menu-item":""}))}),C3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?"div":n,o=Bd(e,m3e),a=i3e(sa({},o,{ref:t})),i=a.data,s=i.activeDescendant,l=i.triggerId,c=a.props;return x.createElement(r,sa({"aria-activedescendant":s,"aria-labelledby":l||void 0,role:"menu"},c,{"data-reach-menu-items":""}))}),w3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?"a":n;e.component;var o=e.onSelect,a=Bd(e,p3e);return x.createElement(x3e,sa({},a,{ref:t,"data-reach-menu-link":"",as:r,isLink:!0,onSelect:o||oy}))}),S3e=x.forwardRef(function(e,t){var n=e.portal,r=n===void 0?!0:n,o=Bd(e,g3e);return x.createElement(D3e,{portal:r},x.createElement(C3e,sa({},o,{ref:t,"data-reach-menu-list":""})))}),D3e=x.forwardRef(function(e,t){var n=e.as,r=n===void 0?"div":n,o=Bd(e,v3e),a=s3e(sa({},o,{ref:t})),i=a.data,s=i.portal,l=i.targetRef,c=i.position,d=a.props,f={"data-reach-menu-popover":""};return s?x.createElement(U4e,sa({},d,f,{as:r,targetRef:l,position:c})):x.createElement(r,sa({},d,f))});function E3e(){var e=Wv(),t=e.state.isExpanded;return x.useMemo(function(){return{isExpanded:t}},[t])}const I3e=W.forwardRef(function(t,n){const{isExpanded:r}=E3e(),o=a1(r),a=pC(t.containerOptions);return x.useLayoutEffect(()=>{!o&&r&&window.closeAllFlyouts&&window.closeAllFlyouts()},[r,o]),u.jsx(y3e,{ref:n,className:ge(mh(ye.PRIMARY),a.button(t.borderRadius)),children:u.jsxs("div",{className:a.buttonContents,children:[u.jsx("div",{className:a.buttonIcon,style:{transform:r?"rotate(-135deg)":"rotate(0deg)",transition:"transform .25s"},children:t.children}),u.jsx("div",{className:a.buttonLabel,children:k("New Post")})]})})});function T3e(e){const{title:t,items:n,borderRadius:r,containerOptions:o}=e,{zIndex:a}=ja(),i=pC(o,a),s=x.useRef(null),l=Yh(),c=m=>{switch(m.key){case"Escape":s&&s.current&&(s.current.dispatchEvent(new Event("mousedown",{bubbles:!0})),s.current.focus());break}},d=n.length===1?[]:n.filter(m=>!m.asOwnButton),h=(n.length===1?n:n.filter(m=>m.asOwnButton)).map((m,g)=>u.jsx(So,{buttonType:ye.PRIMARY,className:ge(i.button(r),i.separateButton),to:m.action,children:u.jsx("div",{className:i.buttonContents,children:u.jsx("div",{className:i.buttonLabel,children:k(m.label)})})},g));return u.jsxs(zo,{children:[t&&u.jsx(qh,{title:e.title,options:{alignment:o==null?void 0:o.headerAlignment}}),u.jsxs("div",{className:i.container,children:[d.length?u.jsxs(b3e,{children:[u.jsx(I3e,{...e,ref:s,children:u.jsx(HW,{})}),u.jsx(Ps,{children:u.jsx(S3e,{portal:!1,onKeyDown:c,className:ge(Rr().contents,i.buttonDropdownContents),children:d.map((m,g)=>u.jsx(w3e,{as:"a",href:l.makeHref(m.action),className:ge(Rr().action,{[tO()]:e.disableDropdownItemsClick}),children:k(m.label)},g))})})]}):u.jsx(W.Fragment,{}),h]})]})}var xM;(function(e){e.LINK="link",e.BUTTON="button"})(xM||(xM={}));function A3e(e){const{postableDiscussionTypes:t,items:n,...r}=e,o=!Xi().isFullWidth&&!e.forceDesktopOnly,a=t&&Array.isArray(t)?n.filter(s=>(t==null?void 0:t.findIndex(l=>s.id.includes(l)))>-1):n;if(!a||!a.length)return u.jsx(u.Fragment,{});const i=o?u.jsx(O4e,{items:a}):u.jsx(T3e,{items:a,...r});return u.jsx(Ls,{children:i})}function O3e(e){const{title:t,data:n}=e,r=UO();return n?u.jsxs("div",{children:[t&&u.jsx(Dn,{title:t,className:r.title}),u.jsx(mo,{options:{borderType:dt.BORDER},className:r.container,children:Object.keys(n).length?Object.keys(n).map((o,a)=>u.jsx(FE,{value:n[o],label:o,classNames:r.statItemResponsive},a)):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:ge(r.statItem,r.statItemResponsive),children:u.jsx(tn,{inline:!0,height:73,width:100})}),u.jsx("div",{className:ge(r.statItem,r.statItemResponsive),children:u.jsx(tn,{inline:!0,height:73,width:100})}),u.jsx("div",{className:ge(r.statItem,r.statItemResponsive),children:u.jsx(tn,{inline:!0,height:73,width:100})}),u.jsx("div",{className:ge(r.statItem,r.statItemResponsive),children:u.jsx(tn,{inline:!0,height:73,width:100})})]})})]}):u.jsx(u.Fragment,{})}const B3e=re(()=>{const e=ee();return{link:S({"&&":{display:"flex",width:"100%",justifyContent:"flex-end",marginTop:e.gutter.half/2,"&& a":{...E.font({color:P.colorOut(e.mainColors.fg),...e.fontSizeAndWeightVars("small","normal")}),...E.flex.middleLeft()}}},"label:ProfileAnalyticsWidget-styles-link")}});function k3e(e){const{userID:t}=e,n=B3e(),{hasPermission:r}=mr(),{joinDate:o,lastActive:a,...i}=e.userInfo,s={...i,...o&&{joinDate:u.jsx(Uo,{timestamp:o})},...a&&{lastActive:u.jsx(Uo,{timestamp:a})}},l=Ge("featureFlags.NewAnalytics.Enabled"),c=x.useMemo(()=>t&&l&&r(["data.view","dashboards.manage"])?u.jsx("div",{className:n.link,children:u.jsxs(wr,{to:`/analytics/v2/dashboards/drilldown/user?userID=${t}`,target:"_blank",children:[k("Check Analytics Data"),u.jsx(Bt,{icon:"meta-external-compact"})]})}):null,[l,t,n]);return u.jsxs("div",{children:[u.jsx(O3e,{title:k("Analytics"),data:s}),c]})}function P3e(e){const t=x.useRef(null),r=Zn(t).width<501,o=S({"& table":{width:Z(100),...E.margin({bottom:ee().spacer.pageComponent})}},"label:ProfileOverviewWidget-tableStyles");return u.jsx(yk,{children:u.jsx("div",{ref:t,children:u.jsx(MU,{className:o,title:k("Overview"),data:e.data,colgroups:r?[40,60]:[30,70]})})})}function R3e(e){var n,r,o;const t=e.itemData.map((a,i)=>({id:`${i}`,name:(a.name||a.description)??k("Unknown"),url:a.to??"#invalid-url"}));return((n=e.containerOptions)==null?void 0:n.displayType)===Ln.LINK?u.jsx($v,{title:e.title,links:t,containerOptions:e.containerOptions}):u.jsx(cG,{...e,itemOptions:{...e.itemOptions,contentType:(r=e.itemOptions)!=null&&r.contentType?(o=e.itemOptions)==null?void 0:o.contentType:un.TITLE_DESCRIPTION_IMAGE}})}const xG=re((e,t)=>{const n=qe("searchWidget"),r=v1(),o=ee();return{options:n("options",{box:ce.box({borderType:dt.SHADOW,border:{radius:o.border.radius}}),container:{spacing:ce.spacing({bottom:48}),spacingMobile:ce.spacing({})},headerAlignment:r.options.alignment},e)}}),j3e=re(()=>{const e=ee(),t=xG(),n=S({width:"100%"},"label:SearchWidget-classes-root"),r=S({...E.box(t.options.box),"& > div > div[data-reach-tab-panels]":{marginTop:e.gutter.size}},"label:SearchWidget-classes-container"),o=S({display:"flex",justifyContent:"flex-end",paddingTop:e.gutter.size},"label:SearchWidget-classes-tabFooter");return{container:r,tabFooter:o,root:n}});function N3e(e){const{value:t,api:n}=e,[r,o]=x.useState(""),[a]=x.useState(t),[i,s]=L3e(n,t,r,a,e.onInitialValueLoaded),l=!!a&&!s||i===null;return u.jsx(u.Fragment,{children:u.jsx(sC,{isLoading:l,...e,value:s??void 0,options:i??[],onInputChange:o})})}const tD=new Map;function L3e(e,t,n,r,o){const[a,i]=x.useState(null),[s,l]=x.useState(null),{searchUrl:c,singleUrl:d,labelKey:f,valueKey:h,processOptions:m,excludeLookups:g}=e;x.useDebugValue({options:a,api:e,apiCaches:tD});const p=x.useCallback(y=>{const C=oa(y,f,k("(Untitled)")),D=h==="."?y:oa(y,h,"");return{label:C,value:D,data:y}},[f,h]);x.useEffect(()=>{if(r&&!(g??[]).includes(r)){const y=d.replace("/api/v2","").replace("%s",r);Ct.get(y).then(C=>{if(C.data){const D=p(C.data);o==null||o(D),l(D)}})}},[]);const v=x.useCallback(Ra(y=>{const C=c.replace("/api/v2","").replace("%s",y.toString()),D=tD.get(C);if(D){i(D);return}Ct.get(C).then(A=>{const{data:T}=A;let B=T.map(p);m&&(B=m(B)),tD.set(C,B),i(B)})},200),[c,d,m]);x.useEffect(()=>{v(n)},[v,n]);const b=[s,...a||[]].filter(Do).find(y=>y.value===t)??null;return[a,b]}const $3e=e=>{const{disabled:t,onChange:n,control:r,instance:o,required:a}=e;switch(r.inputType){case"dropDown":{const{label:i,choices:s,placeholder:l}=r,{api:c,staticOptions:d}=s;if(c)return u.jsx(N3e,{label:i,disabled:t,isClearable:!e.required,placeholder:l||void 0,value:o,onChange:h=>n(h==null?void 0:h.value),api:c});const f=d?Object.entries(d).map(([h,m])=>({value:h,label:m})):[];return u.jsx(sC,{label:i,disabled:t,isClearable:!a,value:f.find(h=>h.value===String(o)),placeholder:l||void 0,onChange:h=>n(h==null?void 0:h.value),options:f})}}return null};function M3e({url:e,searchParams:t}){const n=t?"?"+Object.entries(t).filter(([r,o])=>o==null?void 0:o.length).map(([r,o])=>r+"="+o).join("&"):"";return e+n}function _3e(e){const t=xG(e.options),{options:n}=t,{formSchema:r}=e,o=j3e(),a=Kh(),[i,s]=x.useState({});return u.jsxs("div",{className:a.widgetClass,children:[u.jsx(qh,{title:e.title,options:{alignment:n.headerAlignment}}),u.jsx("div",{className:o.container,children:u.jsx(iC,{schema:r,instance:i,onChange:s,FormControl:$3e,Form:l=>u.jsxs(u.Fragment,{children:[l.children,u.jsx("div",{className:o.tabFooter,children:u.jsx(So,{to:M3e(l.form),buttonType:ye.PRIMARY,children:k(l.form.submitButtonText??"Submit")})})]}),FormTabs:l=>u.jsx(Lk,{tabType:Ri.GROUP,data:l.tabs,defaultTabIndex:l.tabs.findIndex(c=>c.tabID===l.selectedTabID),onChange:c=>l.onSelectTab(c.tabID)})})})]})}var Pg;(function(e){e.MOBILE="mobile",e.DESKTOP="desktop",e.ALL="all"})(Pg||(Pg={}));function zk(e){const t=`There was a problem loading "${e.componentName??k("Invalid component name")}"`;return u.jsx(zo,{children:u.jsx("div",{style:{width:"100%",height:"100%",padding:"16px"},children:u.jsx(Jc,{type:"error",icon:u.jsx(u1,{}),title:e.message?t:void 0,stringContents:e.message??t,contents:e.message&&eg()&&u.jsxs(u.Fragment,{children:[e.message,u.jsxs(CO,{bgColor:_U().colors.error.bg,maxHeight:100,children:[u.jsx("br",{}),e.trace]})]})})})})}class CG extends x.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){mn({error:t,errorInfo:n}),n!=null&&n.componentStack&&this.setState({...this.state,trace:n.componentStack})}render(){return this.state.error!==null?u.jsx(zk,{componentName:this.props.componentName??"Unknown Component",message:this.state.error.message,trace:this.state.trace??this.state.error.stack}):this.props.children}}const wh=W.createContext({autoWrap:!1,isSticky:!0,useMinHeight:!0});function CM(e){return!e||typeof e!="object"?!1:!!e&&e.hasOwnProperty("$reactComponent")&&e.hasOwnProperty("$reactProps")}const Hk=re(e=>{const t=ee(),n=Tt("panelArea"),r=x1(e),o=t.spacer.mainLayout,a=S({width:Z(100),...E.padding({horizontal:ee().widget.padding}),"& .heading":{...bl()},[`&.inheritHeight > .${r.root}`]:{flexGrow:1},"&.hasNoVerticalPadding":{...E.padding({vertical:0})},"&.hasNoHorizontalPadding":{...E.padding({horizontal:0})},...e({[jn.TWO_COLUMNS]:{oneColumnDown:{...E.padding({horizontal:0})}},[jn.THREE_COLUMNS]:{oneColumnDown:{...E.padding({horizontal:0})}}})},"label:panelAreaStyles-root"),i=re((d,f=!0)=>n("overflowFull",{[f?"height":"maxHeight"]:it(`100vh - ${w(d)} + ${w(f?o:0)}`),minHeight:f?100:void 0,overflow:"auto",position:"relative",paddingBottom:f?o:void 0,paddingTop:o,marginTop:-o})),s=n("areaOverlay",{position:"relative"}),l=re((d,f)=>{let h=t.body.backgroundImage.color,m=d||(h&&h instanceof Wr?h:t.mainColors.bg);return n("areaOverlayBefore",{zIndex:3,top:0,left:0,right:0,position:"absolute",height:o,background:Xf("to top",P.colorOut(m.fade(0)),P.colorOut(m)),width:Z(100)})}),c=re((d,f)=>{let h=t.body.backgroundImage.color,m=d||(h&&h instanceof Wr?h:t.mainColors.bg);return n("areaOverlayAfter",{zIndex:1,bottom:0,left:0,right:0,position:"absolute",height:o,background:Xf("to bottom",P.colorOut(m.fade(0)),P.colorOut(m)),width:Z(100)})});return{root:a+" panelArea",overflowFull:i,areaOverlayBefore:l,areaOverlayAfter:c,areaOverlay:s}});function F3e(e){const t=e.tag||"div",n=Hk(Xi().mediaQueries),{autoWrap:r}=x.useContext(wh);let o=e.children;return r&&(o=u.jsx(u.Fragment,{children:W.Children.map(e.children,a=>a&&(typeof a!="object"||!("type"in a)||a.type!==Oy?u.jsx(Oy,{children:a}):a))})),u.jsx(t,{ref:e.innerRef,className:ae(n.root,e.className),children:o})}const as=Dd(F3e);function W3e(e){const t=e.tag||"div";return u.jsx(t,{className:ae(Xi().classes.panel,e.className),"aria-hidden":e.ariaHidden,ref:e.innerRef,children:e.children})}const Wb=Dd(W3e);function z3e(e){const t=e.tag||"div",n=Hk(Xi().mediaQueries);return u.jsx(t,{className:ae(n.root,e.className,"hasNoVerticalPadding"),children:e.children})}const H3e=Dd(z3e);function U3e(e){const{useMinHeight:t}=x.useContext(wh),n=Hk(Xi().mediaQueries),r=L8(),o=r.config.render&&e.isLeft&&e.renderLeftPanelBackground?r.colors.backgroundColor:void 0;return u.jsxs("div",{className:n.areaOverlay,children:[t&&u.jsx("div",{className:n.areaOverlayBefore(o,"left")}),u.jsx("div",{ref:e.innerRef,className:ae(e.className,n.overflowFull(e.offset,t)),children:e.children}),t&&u.jsx("div",{className:n.areaOverlayAfter(o,"right")})]})}const wM=Dd(U3e);function V3e(e){const t=x1(Xi().mediaQueries);return u.jsx("div",{className:ae(t.root,"hasNoVerticalPadding",e.className),children:e.children})}const G3e=Dd(V3e);function wG(e){const{className:t,contentTag:n="div",growMiddleBottom:r=!1,leftTop:o,leftBottom:a,middleTop:i,middleBottom:s,mainTop:l,mainBottom:c,rightTop:d,rightBottom:f,breadcrumbs:h,contentRef:m,children:g,childrenBefore:p,childrenAfter:v,renderLeftPanelBackground:b,displayRightColumn:y=!0,displayLeftColumn:C=!0,...D}=e,{isSticky:A}=x.useContext(wh),{offsetClass:T,rawScrollOffset:B}=Sd(),{type:j,classes:R,currentDevice:N,isCompact:_,isFullWidth:U}=Xi();R||mn(`Classes not loaded for panel layout of type: ${j}, classes given: `,R);const V={leftTop:o,leftBottom:a,mainBottom:c,mainTop:l,middleTop:i,middleBottom:s,rightTop:d,rightBottom:f,breadcrumbs:h,children:g},z=x.useRef(null),te=Zn(z,!0).top,se=ee(),he=B??0,pe=se.spacer.panelComponent,K=x.useMemo(()=>{const $e=he+pe;return Math.min(te,$e)},[he,te>0]),O=x.useMemo(()=>S({top:K},"label:Section-panelOffsetClass"),[K]),le=!_&&(!!V.leftTop||!!V.leftBottom)&&C,be=U&&(!!V.rightTop||!!V.rightBottom)&&y,H=!!V.breadcrumbs,ie=Kh(),oe=ge(R.root,{noLeftPanel:!le},{noRightPanel:!be},{noBreadcrumbs:!H},t,r?us():"",ie.widgetClass),ve=n;return u.jsxs("div",{className:oe,ref:m,...D,children:[p,u.jsxs(zo,{children:[H&&u.jsxs("div",{className:ae(R.container,R.breadcrumbsContainer),children:[le&&u.jsx(Wb,{className:ae(R.leftColumn),ariaHidden:!0}),u.jsx(H3e,{className:ae(R.mainColumnMaxWidth,{hasAdjacentPanel:le}),children:u.jsx(G3e,{children:V.breadcrumbs})})]}),u.jsx("main",{className:ae(R.main,e.growMiddleBottom?us():""),children:u.jsxs("div",{ref:z,className:ae(R.container,e.growMiddleBottom?us():""),children:[le&&u.jsx(mg,{depth:4,children:u.jsx(_f,{widgetClass:R.secondaryPanelWidget,headingBlockClass:R.secondaryPanelHeadingBlock,children:u.jsx(Wb,{className:ae("leftColumn",R.leftColumn,{[R.isSticky]:A,[O]:A,[T]:A}),children:u.jsxs(wM,{offset:K,isLeft:!0,renderLeftPanelBackground:b,children:[V.leftTop!==void 0&&u.jsx(as,{children:V.leftTop}),V.leftBottom!==void 0&&u.jsx(as,{children:V.leftBottom})]})})})}),u.jsx(_f,{widgetClass:R.mainPanelWidget,headingBlockClass:R.mainPanelHeadingBlock,children:u.jsx(ve,{className:ae(R.content,R.mainColumnMaxWidth,{hasAdjacentPanel:le||be,hasTwoAdjacentPanels:le&&be}),children:u.jsxs(Wb,{className:ae("mainColumn",R.mainColumn,e.growMiddleBottom?us():""),children:[V.middleTop!==void 0&&u.jsx(as,{className:"middleTopArea",children:V.middleTop}),!le&&V.leftTop!==void 0&&u.jsx(as,{children:V.leftTop}),!be&&V.rightTop!==void 0&&u.jsx(as,{children:V.rightTop}),u.jsx(as,{className:us(),children:V.middleBottom}),!le&&V.leftBottom!==void 0&&u.jsx(as,{children:V.leftBottom}),!be&&V.rightBottom!==void 0&&u.jsx(as,{children:V.rightBottom})]})})}),be&&u.jsx(mg,{depth:4,children:u.jsx(_f,{widgetClass:R.secondaryPanelWidget,headingBlockClass:R.secondaryPanelHeadingBlock,children:u.jsx(Wb,{className:ae("rightColumn",R.rightColumn,{[R.isSticky]:A,[O]:A,[T]:A}),children:u.jsxs(wM,{offset:K,children:[V.rightTop!==void 0&&u.jsx(as,{children:V.rightTop}),V.rightBottom!==void 0&&u.jsx(as,{children:V.rightBottom})]})})})})]})})]}),v]})}function Y3e(e){return u.jsx(BO,{type:jn.THREE_COLUMNS,children:u.jsx(wG,{...e})})}var K3e=Math.floor,q3e=Math.random;function X3e(e,t){return e+K3e(q3e()*(t-e+1))}var Q3e=parseFloat,Z3e=Math.min,J3e=Math.random;function bC(e,t,n){if(n&&typeof n!="boolean"&&og(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=Up(e),t===void 0?(t=e,e=0):t=Up(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=J3e();return Z3e(e+o*(t-e+Q3e("1e-"+((o+"").length-1))),t)}return X3e(e,t)}function e5e(e){const{children:t,childrenBefore:n,childrenAfter:r,contentRef:o,...a}=e;return u.jsxs("div",{...a,ref:o,children:[n,t,r]})}function t5e(e){const{isInverted:t,secondaryBottom:n,secondaryTop:r,...o}=e,a=t?r??[]:void 0,i=t?n??[]:void 0,s=t?void 0:r??[],l=t?void 0:n??[];return u.jsx(BO,{type:jn.TWO_COLUMNS,children:u.jsx(wG,{...o,middleTop:o.mainTop,middleBottom:o.mainBottom,leftTop:a,leftBottom:i,rightTop:s,rightBottom:l,displayLeftColumn:t,displayRightColumn:!t})})}function n5e(){return u.jsx(E8,{children:u.jsx(Cme,{children:u.jsx(wh.Provider,{value:{isSticky:!1,autoWrap:!1,useMinHeight:!1},children:u.jsx(_f,{children:u.jsxs("div",{style:{minHeight:"200vh"},children:[u.jsx(e5e,{children:u.jsx(tn,{height:200})}),u.jsx(r5e,{})]})})})})})}function r5e(){const e=x.useMemo(()=>bC(1,3,!1),[]),t=Array.from(new Array(e));return u.jsx(u.Fragment,{children:t.map((n,r)=>u.jsx(o5e,{},r))})}function o5e(){switch(x.useMemo(()=>bC(1,3,!1),[])){case 1:return u.jsx(B8,{children:u.jsx(SG,{})});case 2:return u.jsx(t5e,{mainBottom:u.jsx(lp,{inPanel:!0}),secondaryBottom:u.jsx(lp,{inPanel:!0})});case 3:return u.jsx(Y3e,{leftBottom:u.jsx(lp,{inPanel:!0}),middleBottom:u.jsx(lp,{heights:[220,300],inPanel:!0}),rightBottom:u.jsx(lp,{inPanel:!0})});default:return u.jsx(u.Fragment,{})}}function lp(e){const t=x.useMemo(()=>bC(1,3,!1),[]),n=Array.from(new Array(t));return u.jsx(u.Fragment,{children:n.map((r,o)=>{let a=u.jsx(SG,{},o);return e.inPanel&&(a=u.jsx(Oy,{children:a},o)),a})})}function SG(e){const t=e.heights??[60,100,140,180,220],n=x.useMemo(()=>bC(0,t.length-1,!1),[]),r=t[n];return u.jsx(Ls,{children:u.jsx(tn,{height:r,width:"100%"})})}const a5e=W.createContext({componentFetcher:QA});function i5e(e){const t=x.useContext(wh),n=x.useContext(a5e);let r=u.jsx("div",{ref:e.layoutRef,children:u.jsx(s5e,{...n,...e})});return(e.applyContexts??!0)&&(r=u.jsx(wh.Provider,{value:{...t,autoWrap:!0,useMinHeight:!1},children:u.jsx(_f,{children:r})})),u.jsx(CG,{componentName:"Layout",children:r})}function s5e(e){const{layout:t}=e,n=Ki(),o={device:[sr.XS,sr.MOBILE].includes(n)?Pg.MOBILE:Pg.DESKTOP,componentFetcher:e.componentFetcher,fallbackWidget:e.fallbackWidget,componentWrapper:e.componentWrapper,allowInternalProps:e.allowInternalProps??!1};return u.jsx(u.Fragment,{children:t.map((a,i)=>{const s=`${i}-${t.length}`;return u.jsx(W.Fragment,{children:u.jsx(W.Suspense,{fallback:e.fallback??u.jsx(n5e,{}),children:DG(a,o,s)})},s)})})}function DG(e,t,n){var l,c;if(e===null)return null;t.allowInternalProps||(e={...e,$reactProps:l5e(e.$reactProps)});const o=(t.componentFetcher??QA)((e==null?void 0:e.$reactComponent)??"")??null;!o&&wa(`"${(e&&(e==null?void 0:e.$reactComponent))??e}" cannot be found in the component registry`);const a=n??"unknownkey",i=(c=(l=e==null?void 0:e.$middleware)==null?void 0:l.visibility)==null?void 0:c.device;if(i&&i!==Pg.ALL&&i!==t.device)return u.jsx(W.Fragment,{});let s=null;return o?s=W.createElement(CG,{key:String(a),componentName:e==null?void 0:e.$reactComponent},[W.createElement(o.Component,{...MI(e.$reactProps,t),key:a})]):t.fallbackWidget?s=W.createElement(t.fallbackWidget,{...e??{},...e.$reactProps??{},key:a},[]):s=W.createElement(zk,{componentName:e==null?void 0:e.$reactComponent,key:a}),t.componentWrapper&&(s=W.createElement(t.componentWrapper,{...e??{},...e.$reactProps??{},key:a},[s])),s}function MI(e,t,n){if(e!==null&&typeof e=="object"){if(!Array.isArray(e)&&!CM(e))return Object.fromEntries(Object.keys(e).map((r,o)=>[r,MI(e[r],t,o)]));if(Array.isArray(e))return e.map((r,o)=>MI(r,t,`${o}-${e.length}`));if(CM(e))return DG(e,t,n)??W.createElement(zk,{componentName:e.$reactComponent,key:n})}return e}function l5e(e){const t={};for(const[n,r]of Object.entries(e))n.startsWith("$")||(t[n]=r);return t}function c5e(e){const{tabs:t}=e,n=t.map(({label:r,componentName:o,componentProps:a})=>({label:r,contents:u.jsx(i5e,{applyContexts:!1,layout:[{$reactComponent:o,$reactProps:a}]})}));return u.jsx("div",{children:u.jsx(zo,{fullGutter:!0,children:u.jsx(Lk,{includeVerticalPadding:!1,includeBorder:!1,largeTabs:!0,tabType:Ri.BROWSE,data:n,extendContainer:!0,...e})})})}const u5e=new cB(()=>mt(()=>import("../chunks/library/UnsubscribePage.BylDlBz3.min.js"),__vite__mapDeps([46,1,26]),import.meta.url),"/unsubscribe/:token?",e=>`/unsubscribe/${e}`,TU),EG=re((e,t)=>{const n=qe("userSpotlight"),r=ee(),o=n("options",{box:ce.box({background:e==null?void 0:e.innerBackground,borderType:e==null?void 0:e.borderType,border:r.border}),container:{spacing:ce.spacing({bottom:48}),spacingMobile:ce.spacing({})},userTextAlignment:e!=null&&e.userTextAlignment?e.userTextAlignment:"left"},e),a=n("breakPoints",{mobile:r.foundationalWidths.breakPoints.xs}),i=()=>({mobile:b=>Yt({maxWidth:a.mobile},b)}),s=n("avatarContainer",{sizing:{width:void 0,height:void 0},sizingMobile:{width:void 0,height:void 0},margin:ce.spacing({}),marginWrapped:ce.spacing({}),bgImage:void 0,bgPosition:void 0,bg:r.elementaryColors.transparent}),l=n("avatarLink",{margin:ce.spacing({}),display:"inline-flex"}),c=n("avatar",{border:ce.border({radius:120}),size:ho.LARGE,sizeMobile:void 0}),d=n("textContainer",{font:ce.font({}),fontMobile:ce.font({})}),f=n("title",{font:ce.font({...r.fontSizeAndWeightVars("subTitle","bold"),color:r.mainColors.fg}),fontMobile:ce.font({}),spacing:ce.spacing({bottom:10})}),h=n("description",{font:ce.font({color:r.mainColors.fg}),spacing:ce.spacing({bottom:10})}),m=n("userText",{font:ce.font({color:r.mainColors.fg}),fontMobile:ce.font({}),padding:ce.spacing({}),margin:ce.spacing({top:"auto"})}),g=n("userName",{font:ce.font({color:r.mainColors.fg,weight:r.fonts.weights.bold}),fontMobile:ce.font({})}),p=n("userTitle",{font:ce.font({color:r.mainColors.fg})});return{mediaQueries:i,textContainer:d,title:f,description:h,userText:m,userName:g,userTitle:p,options:o,avatarContainer:s,avatarLink:l,avatar:c}}),d5e=re((e,t)=>{const n=EG(t),r=ee(),o=n.mediaQueries(),a=S({display:"flex",justifyContent:"space-around",alignItems:"center",minWidth:w(r.foundationalWidths.panelWidth),...E.box(n.options.box)},e&&{flexWrap:"wrap"},"label:UserSpotlight-classes-root"),i=S({backgroundImage:n.avatarContainer.bgImage?FZ(n.avatarContainer.bgImage):void 0,backgroundPosition:n.avatarContainer.bgPosition,backgroundColor:P.colorOut(n.avatarContainer.bg),width:n.avatarContainer.sizing.width,height:n.avatarContainer.sizing.height},e?{paddingBottom:0,...E.margin(n.avatarContainer.marginWrapped)}:{paddingRight:0,...E.margin(n.avatarContainer.margin)},o.mobile({width:n.avatarContainer.sizingMobile.width,height:n.avatarContainer.sizingMobile.height}),"label:UserSpotlight-classes-avatarContainer"),s=S({display:n.avatarLink.display,...E.margin(n.avatarLink.margin)},"label:UserSpotlight-classes-avatarLink"),l=S({...E.border(n.avatar.border)},o.mobile({width:n.avatar.sizeMobile,height:n.avatar.sizeMobile}),"label:UserSpotlight-classes-avatar"),c=n.options.box.spacing,d=c.horizontal??c.all??r.gutter.size,f=c.vertical??c.all??r.gutter.size,h=S({display:"flex",flexDirection:"column",flexGrow:1,...E.font(n.textContainer.font)},e?{paddingTop:f}:{paddingLeft:d},o.mobile({...E.font(n.textContainer.fontMobile)}),"label:UserSpotlight-classes-textContainer"),m=S({...E.font(n.title.font),...E.padding(n.title.spacing)},o.mobile({...E.font(n.title.fontMobile)}),"label:UserSpotlight-classes-title"),g=S({...E.font(n.description.font),...E.padding(n.description.spacing)},"label:UserSpotlight-classes-description"),p=S({...E.font(n.userText.font),...E.padding(n.userText.padding),...E.margin(n.userText.margin),alignSelf:n.options.userTextAlignment==="right"?"flex-end":void 0},o.mobile({...E.font(n.userText.fontMobile)}),"label:UserSpotlight-classes-userText"),v=S({...E.font(n.userName.font)},o.mobile({...E.font(n.userName.fontMobile)}),"label:UserSpotlight-classes-userName"),b=S({...E.font(n.userTitle.font)},"label:UserSpotlight-classes-userTitle");return{root:a,avatarContainer:i,avatarLink:s,avatar:l,textContainer:h,title:m,description:g,userText:p,userName:v,userTitle:b}});function IG(e){const{title:t,subtitle:n,description:r,options:o,userInfo:a}=e,i=x.useRef(null),s=Zn(i),l=s.width>0&&s.width<Il().panel.paddedWidth,c=EG(o),d=d5e(l,o);return u.jsxs("div",{ref:i,className:d.root,children:[u.jsx("div",{className:d.avatarContainer,children:u.jsx(ai,{userFragment:a,className:d.avatarLink,children:u.jsx(Yi,{userInfo:a,size:c.avatar.size,className:d.avatar})})}),u.jsxs("div",{className:d.textContainer,children:[n&&u.jsx("div",{className:A8().subtitle,children:n}),t&&u.jsx("div",{className:d.title,children:t}),r&&u.jsx("div",{className:d.description,children:r}),u.jsxs("div",{className:d.userText,children:[u.jsxs(ai,{userFragment:a,className:d.userName,children:[a.name,a.title&&u.jsx("span",{children:", "})]}),a.title&&u.jsx("span",{className:d.userTitle,children:a.title})]})]})]})}function f5e(e){const{title:t,subtitle:n,description:r,containerOptions:o,userInfo:a,userTextAlignment:i="left"}=e,s={...o,borderType:(o==null?void 0:o.borderType)??dt.SHADOW,userTextAlignment:i};return u.jsx(Ls,{children:u.jsx(Us,{options:o,children:u.jsx(IG,{title:t,subtitle:n,description:r,options:s,userInfo:a})})})}let h5e=0;function m5e(e,t){const n=`atom${++h5e}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=o=>o(r),r.write=(o,a,i)=>a(r,typeof i=="function"?i(o(r)):i)),t&&(r.write=t),r}var ya={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Nc=Symbol(),_I=e=>!!e[Nc],zb=e=>!e[Nc].c,cp=e=>{var t;const{b:n,c:r}=e[Nc];r&&(r(),(t=g5e.get(n))==null||t())},L0=(e,t)=>{const n=e[Nc].o,r=t[Nc].o;return n===r||e===r||_I(n)&&L0(n,t)},FI=(e,t)=>{const n={b:e,o:t,c:null},r=new Promise(o=>{n.c=()=>{n.c=null,o()},t.finally(n.c)});return r[Nc]=n,r},p5e=e=>FI(e[Nc].b,e[Nc].o),g5e=new WeakMap,Hb=e=>"init"in e,WI="r",zI="w",Rg="c",HI="s",SM="h",v5e="n",b5e="l",y5e="a",x5e="m",C5e=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let o,a;if((ya&&"production")!=="production"&&(o=new Set,a=new Set),e)for(const[K,O]of e){const le={v:O,r:0,y:!0,d:new Map};(ya&&"production")!=="production"&&(Object.freeze(le),Hb(K)||console.warn("Found initial value for derived atom which can cause unexpected behavior",K)),t.set(K,le)}const i=new WeakMap,s=(K,O,le)=>{let be=i.get(O);be||(be=new Map,i.set(O,be)),le.then(()=>{be.get(K)===le&&(be.delete(K),be.size||i.delete(O))}),be.set(K,le)},l=K=>{const O=new Set,le=i.get(K);return le&&(i.delete(K),le.forEach((be,H)=>{cp(be),O.add(H)})),O},c=new WeakMap,d=K=>{let O=c.get(K);return O||(O=new Map,c.set(K,O)),O},f=(K,O)=>{if(K){const le=d(K);let be=le.get(O);return be||(be=f(K.p,O),be&&"p"in be&&zb(be.p)&&(be=void 0),be&&le.set(O,be)),be}return t.get(O)},h=(K,O,le)=>{if((ya&&"production")!=="production"&&Object.freeze(le),K)d(K).set(O,le);else{const be=t.get(O);t.set(O,le),r.has(O)||r.set(O,be)}},m=(K,O=new Map,le)=>{if(!le)return O;const be=new Map;let H=!1;return le.forEach(ie=>{var oe;const ve=((oe=f(K,ie))==null?void 0:oe.r)||0;be.set(ie,ve),O.get(ie)!==ve&&(H=!0)}),O.size===be.size&&!H?O:be},g=(K,O,le,be,H)=>{const ie=f(K,O);if(ie){if(H&&(!("p"in ie)||!L0(ie.p,H)))return ie;"p"in ie&&cp(ie.p)}const oe={v:le,r:(ie==null?void 0:ie.r)||0,y:!0,d:m(K,ie==null?void 0:ie.d,be)};let ve=!(ie!=null&&ie.y);return!ie||!("v"in ie)||!Object.is(ie.v,le)?(ve=!0,++oe.r,oe.d.has(O)&&(oe.d=new Map(oe.d).set(O,oe.r))):oe.d!==ie.d&&(oe.d.size!==ie.d.size||!Array.from(oe.d.keys()).every($e=>ie.d.has($e)))&&(ve=!0,Promise.resolve().then(()=>{Y(K)})),ie&&!ve?ie:(h(K,O,oe),oe)},p=(K,O,le,be,H)=>{const ie=f(K,O);if(ie){if(H&&(!("p"in ie)||!L0(ie.p,H)))return ie;"p"in ie&&cp(ie.p)}const oe={e:le,r:((ie==null?void 0:ie.r)||0)+1,y:!0,d:m(K,ie==null?void 0:ie.d,be)};return h(K,O,oe),oe},v=(K,O,le,be)=>{const H=f(K,O);if(H&&"p"in H){if(L0(H.p,le)&&!zb(H.p))return H.y?H:{...H,y:!0};cp(H.p)}s(K,O,le);const ie={p:le,r:((H==null?void 0:H.r)||0)+1,y:!0,d:m(K,H==null?void 0:H.d,be)};return h(K,O,ie),ie},b=(K,O,le,be)=>{if(le instanceof Promise){const H=FI(le,le.then(ie=>{g(K,O,ie,be,H)}).catch(ie=>{if(ie instanceof Promise)return _I(ie)?ie.then(()=>{C(K,O,!0)}):ie;p(K,O,ie,be,H)}));return v(K,O,H,be)}return g(K,O,le,be)},y=(K,O)=>{const le=f(K,O);if(le){const be={...le,y:!1};h(K,O,be)}else(ya&&"production")!=="production"&&console.warn("[Bug] could not invalidate non existing atom",O)},C=(K,O,le)=>{if(!le){const H=f(K,O);if(H){if(H.y&&"p"in H&&!zb(H.p))return H;if(H.d.forEach((ie,oe)=>{if(oe!==O)if(!n.has(oe))C(K,oe);else{const ve=f(K,oe);ve&&!ve.y&&C(K,oe)}}),Array.from(H.d).every(([ie,oe])=>{const ve=f(K,ie);return ve&&!("p"in ve)&&ve.r===oe}))return H.y?H:{...H,y:!0}}}const be=new Set;try{const H=O.read(ie=>{be.add(ie);const oe=ie===O?f(K,ie):C(K,ie);if(oe){if("e"in oe)throw oe.e;if("p"in oe)throw oe.p;return oe.v}if(Hb(ie))return ie.init;throw new Error("no atom init")});return b(K,O,H,be)}catch(H){if(H instanceof Promise){const ie=_I(H)&&zb(H)?p5e(H):FI(H,H);return v(K,O,ie,be)}return p(K,O,H,be)}},D=(K,O)=>C(O,K),A=(K,O)=>{let le=n.get(O);return le||(le=U(K,O)),le},T=(K,O)=>!O.l.size&&(!O.t.size||O.t.size===1&&O.t.has(K)),B=(K,O)=>{const le=n.get(O);le&&T(O,le)&&V(K,O)},j=(K,O)=>{const le=n.get(O);le==null||le.t.forEach(be=>{be!==O&&(y(K,be),j(K,be))})},R=(K,O,le)=>{let be=!0;const H=(ve,$e)=>{const Ne=C(K,ve);if("e"in Ne)throw Ne.e;if("p"in Ne){if($e!=null&&$e.unstable_promise)return Ne.p.then(()=>{const Ze=f(K,ve);return Ze&&"p"in Ze&&Ze.p===Ne.p?new Promise(ze=>setTimeout(ze)).then(()=>H(ve,$e)):H(ve,$e)});throw(ya&&"production")!=="production"&&console.info("Reading pending atom state in write operation. We throw a promise for now.",ve),Ne.p}if("v"in Ne)return Ne.v;throw(ya&&"production")!=="production"&&console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",ve),new Error("no value found")},ie=(ve,$e)=>{let Ne;if(ve===O){if(!Hb(ve))throw new Error("atom not writable");l(ve).forEach(Me=>{Me!==K&&b(Me,ve,$e)});const ze=f(K,ve),Xe=b(K,ve,$e);ze!==Xe&&j(K,ve)}else Ne=R(K,ve,$e);return be||Y(K),Ne},oe=O.write(H,ie,le);return be=!1,oe},N=(K,O,le)=>{const be=R(le,K,O);return Y(le),be},_=K=>!!K.write,U=(K,O,le)=>{const be={t:new Set(le&&[le]),l:new Set};if(n.set(O,be),(ya&&"production")!=="production"&&a.add(O),C(void 0,O).d.forEach((ie,oe)=>{const ve=n.get(oe);ve?ve.t.add(O):oe!==O&&U(K,oe,O)}),_(O)&&O.onMount){const ie=ve=>N(O,ve,K),oe=O.onMount(ie);K=void 0,oe&&(be.u=oe)}return be},V=(K,O)=>{var le;const be=(le=n.get(O))==null?void 0:le.u;be&&be(),n.delete(O),(ya&&"production")!=="production"&&a.delete(O);const H=f(K,O);H?("p"in H&&cp(H.p),H.d.forEach((ie,oe)=>{if(oe!==O){const ve=n.get(oe);ve&&(ve.t.delete(O),T(oe,ve)&&V(K,oe))}})):(ya&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",O)},z=(K,O,le,be)=>{const H=new Set(le.d.keys());be==null||be.forEach((ie,oe)=>{if(H.has(oe)){H.delete(oe);return}const ve=n.get(oe);ve&&(ve.t.delete(O),T(oe,ve)&&V(K,oe))}),H.forEach(ie=>{const oe=n.get(ie);oe?oe.t.add(O):n.has(O)&&U(K,ie,O)})},Y=K=>{if(K){d(K).forEach((le,be)=>{const H=t.get(be);if(le!==H){const ie=n.get(be);ie==null||ie.l.forEach(oe=>oe(K))}});return}for(;r.size;){const O=Array.from(r);r.clear(),O.forEach(([le,be])=>{const H=f(void 0,le);if(H&&H.d!==(be==null?void 0:be.d)&&z(void 0,le,H,be==null?void 0:be.d),be&&!be.y&&(H!=null&&H.y))return;const ie=n.get(le);ie==null||ie.l.forEach(oe=>oe())})}(ya&&"production")!=="production"&&o.forEach(O=>O())},te=K=>{d(K).forEach((le,be)=>{const H=t.get(be);(!H||le.r>H.r||le.y!==H.y||le.r===H.r&&le.d!==H.d)&&(t.set(be,le),le.d!==(H==null?void 0:H.d)&&z(K,be,le,H==null?void 0:H.d))})},se=(K,O)=>{O&&te(O),Y(void 0)},he=(K,O,le)=>{const H=A(le,K).l;return H.add(O),()=>{H.delete(O),B(le,K)}},pe=(K,O)=>{for(const[le,be]of K)Hb(le)&&(b(O,le,be),j(O,le));Y(O)};return(ya&&"production")!=="production"?{[WI]:D,[zI]:N,[Rg]:se,[HI]:he,[SM]:pe,[v5e]:K=>(o.add(K),()=>{o.delete(K)}),[b5e]:()=>a.values(),[y5e]:K=>t.get(K),[x5e]:K=>n.get(K)}:{[WI]:D,[zI]:N,[Rg]:se,[HI]:he,[SM]:pe}},TG=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:C5e(e)}),nD=new Map,Uk=e=>(nD.has(e)||nD.set(e,x.createContext(TG())),nD.get(e)),w5e=({children:e,initialValues:t,scope:n,unstable_createStore:r,unstable_enableVersionedWrite:o})=>{const[a,i]=x.useState({});x.useEffect(()=>{const c=s.current;c.w&&(c.s[Rg](null,a),delete a.p,c.v=a)},[a]);const s=x.useRef();if(!s.current){const c=TG(t,r);if(o){let d=0;c.w=f=>{i(h=>{const m=d?h:{p:h};return f(m),m})},c.v=a,c.r=f=>{++d,f(),--d}}s.current=c}const l=Uk(n);return x.createElement(l.Provider,{value:s.current},e)};function AG(e,t){return m5e(e,t)}function OG(e,t){const n=Uk(t),r=x.useContext(n),{s:o,v:a}=r,i=h=>{const m=o[WI](e,h);if((ya&&"production")!=="production"&&!m.y)throw new Error("should not be invalidated");if("e"in m)throw m.e;if("p"in m)throw m.p;if("v"in m)return m.v;throw new Error("no atom value")},[[s,l,c],d]=x.useReducer((h,m)=>{const g=i(m);return Object.is(h[1],g)&&h[2]===e?h:[m,g,e]},a,h=>{const m=i(h);return[h,m,e]});let f=l;return c!==e&&(d(s),f=i(s)),x.useEffect(()=>{const{v:h}=r;h&&o[Rg](e,h);const m=o[HI](e,d,h);return d(h),m},[o,e,r]),x.useEffect(()=>{o[Rg](e,s)}),x.useDebugValue(f),f}function BG(e,t){const n=Uk(t),{s:r,w:o}=x.useContext(n);return x.useCallback(i=>{if((ya&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");const s=l=>r[zI](e,i,l);return o?o(s):s()},[r,o,e])}function kG(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[OG(e,t),BG(e,t)]}let S5e=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function UI(){return UI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UI.apply(this,arguments)}var PG=["shift","alt","meta","mod","ctrl"],D5e={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function yc(e){return(D5e[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function E5e(e){return PG.includes(e)}function rD(e,t){return t===void 0&&(t=","),e.split(t)}function oD(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(i){return yc(i)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},a=r.filter(function(i){return!PG.includes(i)});return UI({},o,{keys:a,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&RG([yc(e.key),yc(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&jG([yc(e.key),yc(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){xc.clear()})})();var xc=new Set;function Vk(e){return Array.isArray(e)}function I5e(e,t){t===void 0&&(t=",");var n=Vk(e)?e:e.split(t);return n.every(function(r){return xc.has(r.trim().toLowerCase())})}function RG(e){var t=Array.isArray(e)?e:[e];xc.has("meta")&&xc.forEach(function(n){return!E5e(n)&&xc.delete(n.toLowerCase())}),t.forEach(function(n){return xc.add(n.toLowerCase())})}function jG(e){var t=Array.isArray(e)?e:[e];e==="meta"?xc.clear():t.forEach(function(n){return xc.delete(n.toLowerCase())})}function T5e(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function A5e(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function O5e(e){return NG(e,["input","textarea","select"])}function NG(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return Vk(t)?!!(r&&t&&t.some(function(o){return o.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function B5e(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var k5e=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,a=n.meta,i=n.mod,s=n.shift,l=n.ctrl,c=n.keys,d=t.key,f=t.code,h=t.ctrlKey,m=t.metaKey,g=t.shiftKey,p=t.altKey,v=yc(f),b=d.toLowerCase();if(!(c!=null&&c.includes(v))&&!(c!=null&&c.includes(b))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(o===!p&&b!=="alt"||s===!g&&b!=="shift")return!1;if(i){if(!m&&!h)return!1}else if(a===!m&&b!=="meta"&&b!=="os"||l===!h&&b!=="ctrl"&&b!=="control")return!1}return c&&c.length===1&&(c.includes(b)||c.includes(v))?!0:c?I5e(c):!c},P5e=x.createContext(void 0),R5e=function(){return x.useContext(P5e)};function LG(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&LG(e[r],t[r])},!0):e===t}var j5e=x.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),N5e=function(){return x.useContext(j5e)};function L5e(e){var t=x.useRef(void 0);return LG(t.current,e)||(t.current=e),t.current}var DM=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},$5e=typeof window<"u"?x.useLayoutEffect:x.useEffect;function pmt(e,t,n,r){var o=x.useRef(null),a=x.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,s=Vk(e)?e.join(i==null?void 0:i.splitKey):e,l=n instanceof Array?n:r instanceof Array?r:void 0,c=x.useCallback(t,l??[]),d=x.useRef(c);l?d.current=c:d.current=t;var f=L5e(i),h=N5e(),m=h.enabledScopes,g=R5e();return $5e(function(){if(!((f==null?void 0:f.enabled)===!1||!B5e(m,f==null?void 0:f.scopes))){var p=function(D,A){var T;if(A===void 0&&(A=!1),!(O5e(D)&&!NG(D,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var B=o.current.getRootNode();if((B instanceof Document||B instanceof ShadowRoot)&&B.activeElement!==o.current&&!o.current.contains(B.activeElement)){DM(D);return}}(T=D.target)!=null&&T.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||rD(s,f==null?void 0:f.splitKey).forEach(function(j){var R,N=oD(j,f==null?void 0:f.combinationKey);if(k5e(D,N,f==null?void 0:f.ignoreModifiers)||(R=N.keys)!=null&&R.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(D)||A&&a.current)return;if(T5e(D,N,f==null?void 0:f.preventDefault),!A5e(D,N,f==null?void 0:f.enabled)){DM(D);return}d.current(D,N),A||(a.current=!0)}})}},v=function(D){D.key!==void 0&&(RG(yc(D.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&p(D))},b=function(D){D.key!==void 0&&(jG(yc(D.code)),a.current=!1,f!=null&&f.keyup&&p(D,!0))},y=o.current||(i==null?void 0:i.document)||document;return y.addEventListener("keyup",b),y.addEventListener("keydown",v),g&&rD(s,f==null?void 0:f.splitKey).forEach(function(C){return g.addHotkey(oD(C,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){y.removeEventListener("keyup",b),y.removeEventListener("keydown",v),g&&rD(s,f==null?void 0:f.splitKey).forEach(function(C){return g.removeHotkey(oD(C,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[s,f,m]),o}function Xa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Sh(e){return!!e&&!!e[Cn]}function kl(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Y5e}(e)||Array.isArray(e)||!!e[kM]||!!(!((t=e.constructor)===null||t===void 0)&&t[kM])||Gk(e)||Yk(e))}function Dh(e,t,n){n===void 0&&(n=!1),bm(e)===0?(n?Object.keys:Zk)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function bm(e){var t=e[Cn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Gk(e)?2:Yk(e)?3:0}function VI(e,t){return bm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function M5e(e,t){return bm(e)===2?e.get(t):e[t]}function $G(e,t,n){var r=bm(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function _5e(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Gk(e){return V5e&&e instanceof Map}function Yk(e){return G5e&&e instanceof Set}function Zr(e){return e.o||e.t}function Kk(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K5e(e);delete t[Cn];for(var n=Zk(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function qk(e,t){return t===void 0&&(t=!1),Xk(e)||Sh(e)||!kl(e)||(bm(e)>1&&(e.set=e.add=e.clear=e.delete=F5e),Object.freeze(e),t&&Dh(e,function(n,r){return qk(r,!0)},!0)),e}function F5e(){Xa(2)}function Xk(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Cs(e){var t=YI[e];return t||Xa(18,e),t}function W5e(e,t){YI[e]||(YI[e]=t)}function ox(){return Ng}function aD(e,t){t&&(Cs("Patches"),e.u=[],e.s=[],e.v=t)}function ax(e){GI(e),e.p.forEach(z5e),e.p=null}function GI(e){e===Ng&&(Ng=e.l)}function EM(e){return Ng={p:[],l:Ng,h:e,m:!0,_:0}}function z5e(e){var t=e[Cn];t.i===0||t.i===1?t.j():t.g=!0}function iD(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Cs("ES5").S(t,e,r),r?(n[Cn].P&&(ax(t),Xa(4)),kl(e)&&(e=ix(t,e),t.l||sx(t,e)),t.u&&Cs("Patches").M(n[Cn].t,e,t.u,t.s)):e=ix(t,n,[]),ax(t),t.u&&t.v(t.u,t.s),e!==MG?e:void 0}function ix(e,t,n){if(Xk(t))return t;var r=t[Cn];if(!r)return Dh(t,function(s,l){return IM(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return sx(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Kk(r.k):r.o,a=o,i=!1;r.i===3&&(a=new Set(o),o.clear(),i=!0),Dh(a,function(s,l){return IM(e,r,o,s,l,n,i)}),sx(e,o,!1),n&&e.u&&Cs("Patches").N(r,n,e.u,e.s)}return r.o}function IM(e,t,n,r,o,a,i){if(Sh(o)){var s=ix(e,o,a&&t&&t.i!==3&&!VI(t.R,r)?a.concat(r):void 0);if($G(n,r,s),!Sh(s))return;e.m=!1}else i&&n.add(o);if(kl(o)&&!Xk(o)){if(!e.h.D&&e._<1)return;ix(e,o),t&&t.A.l||sx(e,o)}}function sx(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&qk(t,n)}function sD(e,t){var n=e[Cn];return(n?Zr(n):e)[t]}function TM(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function cl(e){e.P||(e.P=!0,e.l&&cl(e.l))}function lD(e){e.o||(e.o=Kk(e.t))}function jg(e,t,n){var r=Gk(t)?Cs("MapSet").F(t,n):Yk(t)?Cs("MapSet").T(t,n):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:ox(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,c=KI;i&&(l=[s],c=Ip);var d=Proxy.revocable(l,c),f=d.revoke,h=d.proxy;return s.k=h,s.j=f,h}(t,n):Cs("ES5").J(t,n);return(n?n.A:ox()).p.push(r),r}function H5e(e){return Sh(e)||Xa(22,e),function t(n){if(!kl(n))return n;var r,o=n[Cn],a=bm(n);if(o){if(!o.P&&(o.i<4||!Cs("ES5").K(o)))return o.t;o.I=!0,r=AM(n,a),o.I=!1}else r=AM(n,a);return Dh(r,function(i,s){o&&M5e(o.t,i)===s||$G(r,i,t(s))}),a===3?new Set(r):r}(e)}function AM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Kk(e)}function U5e(){function e(s,l){function c(){this.constructor=s}o(s,l),s.prototype=(c.prototype=l.prototype,new c)}function t(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function n(s){s.o||(s.o=new Set,s.t.forEach(function(l){if(kl(l)){var c=jg(s.A.h,l,s);s.p.set(l,c),s.o.add(c)}else s.o.add(l)}))}function r(s){s.g&&Xa(3,JSON.stringify(Zr(s)))}var o=function(s,l){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])})(s,l)},a=function(){function s(c,d){return this[Cn]={i:2,l:d,A:d?d.A:ox(),P:!1,I:!1,o:void 0,R:void 0,t:c,k:this,C:!1,g:!1},this}e(s,Map);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return Zr(this[Cn]).size}}),l.has=function(c){return Zr(this[Cn]).has(c)},l.set=function(c,d){var f=this[Cn];return r(f),Zr(f).has(c)&&Zr(f).get(c)===d||(t(f),cl(f),f.R.set(c,!0),f.o.set(c,d),f.R.set(c,!0)),this},l.delete=function(c){if(!this.has(c))return!1;var d=this[Cn];return r(d),t(d),cl(d),d.t.has(c)?d.R.set(c,!1):d.R.delete(c),d.o.delete(c),!0},l.clear=function(){var c=this[Cn];r(c),Zr(c).size&&(t(c),cl(c),c.R=new Map,Dh(c.t,function(d){c.R.set(d,!1)}),c.o.clear())},l.forEach=function(c,d){var f=this;Zr(this[Cn]).forEach(function(h,m){c.call(d,f.get(m),m,f)})},l.get=function(c){var d=this[Cn];r(d);var f=Zr(d).get(c);if(d.I||!kl(f)||f!==d.t.get(c))return f;var h=jg(d.A.h,f,d);return t(d),d.o.set(c,h),h},l.keys=function(){return Zr(this[Cn]).keys()},l.values=function(){var c,d=this,f=this.keys();return(c={})[Ub]=function(){return d.values()},c.next=function(){var h=f.next();return h.done?h:{done:!1,value:d.get(h.value)}},c},l.entries=function(){var c,d=this,f=this.keys();return(c={})[Ub]=function(){return d.entries()},c.next=function(){var h=f.next();if(h.done)return h;var m=d.get(h.value);return{done:!1,value:[h.value,m]}},c},l[Ub]=function(){return this.entries()},s}(),i=function(){function s(c,d){return this[Cn]={i:3,l:d,A:d?d.A:ox(),P:!1,I:!1,o:void 0,t:c,k:this,p:new Map,g:!1,C:!1},this}e(s,Set);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return Zr(this[Cn]).size}}),l.has=function(c){var d=this[Cn];return r(d),d.o?!!d.o.has(c)||!(!d.p.has(c)||!d.o.has(d.p.get(c))):d.t.has(c)},l.add=function(c){var d=this[Cn];return r(d),this.has(c)||(n(d),cl(d),d.o.add(c)),this},l.delete=function(c){if(!this.has(c))return!1;var d=this[Cn];return r(d),n(d),cl(d),d.o.delete(c)||!!d.p.has(c)&&d.o.delete(d.p.get(c))},l.clear=function(){var c=this[Cn];r(c),Zr(c).size&&(n(c),cl(c),c.o.clear())},l.values=function(){var c=this[Cn];return r(c),n(c),c.o.values()},l.entries=function(){var c=this[Cn];return r(c),n(c),c.o.entries()},l.keys=function(){return this.values()},l[Ub]=function(){return this.values()},l.forEach=function(c,d){for(var f=this.values(),h=f.next();!h.done;)c.call(d,h.value,h.value,this),h=f.next()},s}();W5e("MapSet",{F:function(s,l){return new a(s,l)},T:function(s,l){return new i(s,l)}})}var OM,Ng,Qk=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V5e=typeof Map<"u",G5e=typeof Set<"u",BM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",MG=Qk?Symbol.for("immer-nothing"):((OM={})["immer-nothing"]=!0,OM),kM=Qk?Symbol.for("immer-draftable"):"__$immer_draftable",Cn=Qk?Symbol.for("immer-state"):"__$immer_state",Ub=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Y5e=""+Object.prototype.constructor,Zk=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K5e=Object.getOwnPropertyDescriptors||function(e){var t={};return Zk(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},YI={},KI={get:function(e,t){if(t===Cn)return e;var n=Zr(e);if(!VI(n,t))return function(o,a,i){var s,l=TM(a,i);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!kl(r)?r:r===sD(e.t,t)?(lD(e),e.o[t]=jg(e.A.h,r,e)):r},has:function(e,t){return t in Zr(e)},ownKeys:function(e){return Reflect.ownKeys(Zr(e))},set:function(e,t,n){var r=TM(Zr(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=sD(Zr(e),t),a=o==null?void 0:o[Cn];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(_5e(n,o)&&(n!==void 0||VI(e.t,t)))return!0;lD(e),cl(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return sD(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,lD(e),cl(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Xa(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xa(12)}},Ip={};Dh(KI,function(e,t){Ip[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ip.deleteProperty=function(e,t){return Ip.set.call(this,e,t,void 0)},Ip.set=function(e,t,n){return KI.set.call(this,e[0],t,n,e[0])};var q5e=function(){function e(n){var r=this;this.O=BM,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var l=r;return function(p){var v=this;p===void 0&&(p=s);for(var b=arguments.length,y=Array(b>1?b-1:0),C=1;C<b;C++)y[C-1]=arguments[C];return l.produce(p,function(D){var A;return(A=a).call.apply(A,[v,D].concat(y))})}}var c;if(typeof a!="function"&&Xa(6),i!==void 0&&typeof i!="function"&&Xa(7),kl(o)){var d=EM(r),f=jg(r,o,void 0),h=!0;try{c=a(f),h=!1}finally{h?ax(d):GI(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return aD(d,i),iD(p,d)},function(p){throw ax(d),p}):(aD(d,i),iD(c,d))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===MG&&(c=void 0),r.D&&qk(c,!0),i){var m=[],g=[];Cs("Patches").M(o,c,m,g),i(m,g)}return c}Xa(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];return r.produceWithPatches(c,function(m){return o.apply(void 0,[m].concat(f))})};var i,s,l=r.produce(o,a,function(c,d){i=c,s=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,i,s]}):[l,i,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){kl(n)||Xa(8),Sh(n)&&(n=H5e(n));var r=EM(this),o=jg(this,n,void 0);return o[Cn].C=!0,GI(r),o},t.finishDraft=function(n,r){var o=n&&n[Cn],a=o.A;return aD(a,r),iD(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!BM&&Xa(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=Cs("Patches").$;return Sh(n)?i(n,r):this.produce(n,function(s){return i(s,r)})},e}(),Oa=new q5e,X5e=Oa.produce;Oa.produceWithPatches.bind(Oa);var Q5e=Oa.setAutoFreeze.bind(Oa);Oa.setUseProxies.bind(Oa);Oa.applyPatches.bind(Oa);Oa.createDraft.bind(Oa);Oa.finishDraft.bind(Oa);const Z5e=Symbol(),_G=Symbol(),up="a",$0="w";let J5e=(e,t)=>new Proxy(e,t);const qI=Object.getPrototypeOf,PM=new WeakMap,e6e=e=>e&&(PM.has(e)?PM.get(e):qI(e)===Object.prototype||qI(e)===Array.prototype),RM=e=>typeof e=="object"&&e!==null,t6e=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(qI(e),t)},FG=e=>e[_G]||e,WG=(e,t,n,r)=>{if(!e6e(e))return e;let o=r&&r.get(e);if(!o){const l=FG(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(l)?[l,t6e(l)]:[l],r==null||r.set(e,o)}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const d={f:c};let f=!1;const h=(g,p)=>{if(!f){let v=d[up].get(l);if(v||(v={},d[up].set(l,v)),g===$0)v[$0]=!0;else{let b=v[g];b||(b=new Set,v[g]=b),b.add(p)}}},m={get:(g,p)=>p===_G?l:(h("k",p),WG(Reflect.get(g,p),d[up],d.c,d.t)),has:(g,p)=>p===Z5e?(f=!0,d[up].delete(l),!0):(h("h",p),Reflect.has(g,p)),getOwnPropertyDescriptor:(g,p)=>(h("o",p),Reflect.getOwnPropertyDescriptor(g,p)),ownKeys:g=>(h($0),Reflect.ownKeys(g))};return c&&(m.set=m.deleteProperty=()=>!1),[m,d]})(a,!!i),s[1].p=J5e(i||a,s[0]),n&&n.set(a,s)),s[1][up]=t,s[1].c=n,s[1].t=r,s[1].p},XI=(e,t,n,r,o=Object.is)=>{if(o(e,t))return!1;if(!RM(e)||!RM(t))return!0;const a=n.get(FG(e));if(!a)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const s of a.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[$0]===!0){if(i=((s,l)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(l);return c.length!==d.length||c.some((f,h)=>f!==d[h])})(e,t),i)return i}else for(const s of a.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of a.k||[])if(i=XI(e[s],t[s],n,r,o),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const n6e=e=>()=>{const[,n]=x.useReducer(d=>d+1,0),r=new WeakMap,o=x.useRef(),a=x.useRef(),i=x.useRef();x.useEffect(()=>{o.current=r,a.current!==i.current&&XI(a.current,i.current,r,new WeakMap)&&(a.current=i.current,n())});const s=x.useCallback(d=>(i.current=d,a.current&&a.current!==d&&o.current&&!XI(a.current,d,o.current,new WeakMap)?a.current:(a.current=d,d)),[]),l=e(s),c=x.useMemo(()=>new WeakMap,[]);return WG(l,r,c)};function r6e(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,a=(c,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function m(){const g=d(t);if(!f(h,g)){const p=h;c(h=g,p)}}return n.add(m),()=>n.delete(m)},l={setState:r,getState:o,subscribe:(c,d,f)=>d||f?a(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l}const o6e=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jM=o6e?x.useEffect:x.useLayoutEffect;function a6e(e){const t=typeof e=="function"?r6e(e):e,n=(r=t.getState,o=Object.is)=>{const[,a]=x.useReducer(v=>v+1,0),i=t.getState(),s=x.useRef(i),l=x.useRef(r),c=x.useRef(o),d=x.useRef(!1),f=x.useRef();f.current===void 0&&(f.current=r(i));let h,m=!1;(s.current!==i||l.current!==r||c.current!==o||d.current)&&(h=r(i),m=!o(f.current,h)),jM(()=>{m&&(f.current=h),s.current=i,l.current=r,c.current=o,d.current=!1});const g=x.useRef(i);jM(()=>{const v=()=>{try{const y=t.getState(),C=l.current(y);c.current(f.current,C)||(s.current=y,f.current=C,a())}catch{d.current=!0,a()}},b=t.subscribe(v);return t.getState()!==g.current&&v(),b},[]);const p=m?h:f.current;return x.useDebugValue(p),p};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}var i6e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function s6e(e,t){return(n,r,o)=>{var a;let i=!1;typeof t=="string"&&!i&&(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),i=!0);const s=t===void 0?{name:void 0,anonymousActionType:void 0}:typeof t=="string"?{name:t}:t;typeof((a=s==null?void 0:s.serialize)==null?void 0:a.options)<"u"&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");let l;try{l=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(i6e&&"production")!=="production"&&typeof window<"u"&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);let c=Object.create(l.connect(s)),d=!1;Object.defineProperty(o,"devtools",{get:()=>(d||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),d=!0),c),set:p=>{d||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),d=!0),c=p}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let h=!0;o.setState=(p,v,b)=>{n(p,v),h&&c.send(b===void 0?{type:s.anonymousActionType||"anonymous"}:typeof b=="string"?{type:b}:b,r())};const m=(...p)=>{const v=h;h=!1,n(...p),h=v},g=e(o.setState,r,o);if(c.init(g),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let p=!1;const v=o.dispatch;o.dispatch=(...b)=>{b[0].type==="__setState"&&!p&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),p=!0),v(...b)}}return c.subscribe(p=>{var v;switch(p.type){case"ACTION":if(typeof p.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return cD(p.payload,b=>{if(b.type==="__setState"){m(b.state);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(p.payload.type){case"RESET":return m(g),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return cD(p.state,b=>{m(b),c.init(o.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return cD(p.state,b=>{m(b)});case"IMPORT_STATE":{const{nextLiftedState:b}=p.payload,y=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!y)return;m(y),c.send(null,b);return}case"PAUSE_RECORDING":return h=!h}return}}),g}}const cD=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};var l6e=Object.defineProperty,NM=Object.getOwnPropertySymbols,c6e=Object.prototype.hasOwnProperty,u6e=Object.prototype.propertyIsEnumerable,LM=(e,t,n)=>t in e?l6e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,of=(e,t)=>{for(var n in t||(t={}))c6e.call(t,n)&&LM(e,n,t[n]);if(NM)for(var n of NM(t))u6e.call(t,n)&&LM(e,n,t[n]);return e};const lx=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return lx(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return lx(r)(n)}}}},d6e=(e,t)=>(n,r,o)=>{let a=of({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,b)=>of(of({},b),v)},t);(a.blacklist||a.whitelist)&&console.warn(`The ${a.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let i=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(c)c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${a.name}' does not contain a 'removeItem' method, which will be required in v4.`);else return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,o);const d=lx(a.serialize),f=()=>{const v=a.partialize(of({},r()));a.whitelist&&Object.keys(v).forEach(C=>{var D;!((D=a.whitelist)!=null&&D.includes(C))&&delete v[C]}),a.blacklist&&a.blacklist.forEach(C=>delete v[C]);let b;const y=d({state:v,version:a.version}).then(C=>c.setItem(a.name,C)).catch(C=>{b=C});if(b)throw b;return y},h=o.setState;o.setState=(v,b)=>{h(v,b),f()};const m=e((...v)=>{n(...v),f()},r,o);let g;const p=()=>{var v;if(!c)return;i=!1,s.forEach(y=>y(r()));const b=((v=a.onRehydrateStorage)==null?void 0:v.call(a,r()))||void 0;return lx(c.getItem.bind(c))(a.name).then(y=>{if(y)return a.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==a.version){if(a.migrate)return a.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var C;return g=a.merge(y,(C=r())!=null?C:m),n(g,!0),f()}).then(()=>{b==null||b(g,void 0),i=!0,l.forEach(y=>y(g))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:v=>{a=of(of({},a),v),v.getStorage&&(c=v.getStorage())},clearStorage:()=>{var v;(v=c==null?void 0:c.removeItem)==null||v.call(c,a.name)},rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},p(),g||m};function f6e(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,a=(c,d=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function m(){const g=d(t);if(!f(h,g)){const p=h;c(h=g,p)}}return n.add(m),()=>n.delete(m)},l={setState:r,getState:o,subscribe:(c,d,f)=>d||f?a(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l}const h6e=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=o=>{if(e.getState()[r]===o)return;const i=r.replace(/^\S/,s=>s.toUpperCase());e.setState(s=>{s[r]=o},`@@${t}/set${i}`)}}),n},m6e=(e,t)=>{const n=e(t.set,t.get,t);return{...t,set:{...t.set,...n}}},p6e=(e,t)=>{const n={...t.use},r={...t.useTracked},o={...t.get};return Object.keys(e(t.store.getState(),t.get,t)).forEach(a=>{n[a]=(...i)=>t.useStore(s=>{const c=e(s,t.get,t)[a];return c(...i)}),r[a]=(...i)=>{const s=t.useTrackedStore(),c=e(s,t.get,t)[a];return c(...i)},o[a]=(...i)=>{const l=e(t.store.getState(),t.get,t)[a];return l(...i)}}),{...t,get:o,use:n,useTracked:r}},QI=e=>({...e,extendSelectors:t=>QI(p6e(t,e)),extendActions:t=>QI(m6e(t,e))}),g6e=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=()=>e.getState()[n]}),t},v6e=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=r=>e(o=>o[n],r)}),t},b6e=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=()=>t()[r]}),n},y6e=e=>(t,n,r)=>{const o=(a,i)=>t(X5e(a),!0,i);return r.setState=o,e(o,n,r)};function x6e(e,...t){return t.reduce((n,r)=>r(n),e)}const C6e=e=>(t,n={})=>{var r;const{middlewares:o=[],devtools:a,persist:i,immer:s}=n;Q5e((r=s==null?void 0:s.enabledAutoFreeze)!==null&&r!==void 0?r:!1),s!=null&&s.enableMapSet&&U5e();const l=[y6e,...o];if(i!=null&&i.enabled){var c;const A={...i,name:(c=i.name)!==null&&c!==void 0?c:e};l.push(T=>d6e(T,A))}a!=null&&a.enabled&&l.push(A=>s6e(A,{...a,name:e})),l.push(f6e);const f=(A=>x6e(A,...l))(()=>t),h=a6e(f),m=h6e(h,e),g=(A,T)=>{f.setState(B=>{Object.assign(B,A)},T||`@@${e}/mergeState`)},p=(A,T)=>{f.setState(A,T||`@@${e}/setState`)},v=v6e(h),b=g6e(h),y=n6e(h),C=b6e(h,y),D={get:{state:f.getState,...b},name:e,set:{state:p,mergeState:g,...m},store:f,use:v,useTracked:C,useStore:h,useTrackedStore:y,extendSelectors:()=>D,extendActions:()=>D};return QI(D)};var Vb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zG(e,t){return t={exports:{}},e(t,t.exports),t.exports}var w6e=typeof Vb=="object"&&Vb&&Vb.Object===Object&&Vb,HG=w6e,S6e=typeof self=="object"&&self&&self.Object===Object&&self,D6e=HG||S6e||Function("return this")(),Hl=D6e,E6e=Hl.Symbol,Lc=E6e,UG=Object.prototype,I6e=UG.hasOwnProperty,T6e=UG.toString,dp=Lc?Lc.toStringTag:void 0;function A6e(e){var t=I6e.call(e,dp),n=e[dp];try{e[dp]=void 0;var r=!0}catch{}var o=T6e.call(e);return r&&(t?e[dp]=n:delete e[dp]),o}var O6e=A6e,B6e=Object.prototype,k6e=B6e.toString;function P6e(e){return k6e.call(e)}var R6e=P6e,j6e="[object Null]",N6e="[object Undefined]",$M=Lc?Lc.toStringTag:void 0;function L6e(e){return e==null?e===void 0?N6e:j6e:$M&&$M in Object(e)?O6e(e):R6e(e)}var yC=L6e;function $6e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VG=$6e,M6e="[object AsyncFunction]",_6e="[object Function]",F6e="[object GeneratorFunction]",W6e="[object Proxy]";function z6e(e){if(!VG(e))return!1;var t=yC(e);return t==_6e||t==F6e||t==M6e||t==W6e}var H6e=z6e,U6e=Hl["__core-js_shared__"],uD=U6e,MM=function(){var e=/[^.]+$/.exec(uD&&uD.keys&&uD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function V6e(e){return!!MM&&MM in e}var G6e=V6e,Y6e=Function.prototype,K6e=Y6e.toString;function q6e(e){if(e!=null){try{return K6e.call(e)}catch{}try{return e+""}catch{}}return""}var kd=q6e,X6e=/[\\^$.*+?()[\]{}|]/g,Q6e=/^\[object .+?Constructor\]$/,Z6e=Function.prototype,J6e=Object.prototype,eWe=Z6e.toString,tWe=J6e.hasOwnProperty,nWe=RegExp("^"+eWe.call(tWe).replace(X6e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rWe(e){if(!VG(e)||G6e(e))return!1;var t=H6e(e)?nWe:Q6e;return t.test(kd(e))}var oWe=rWe;function aWe(e,t){return e==null?void 0:e[t]}var iWe=aWe;function sWe(e,t){var n=iWe(e,t);return oWe(n)?n:void 0}var Pd=sWe;(function(){try{var e=Pd(Object,"defineProperty");return e({},"",{}),e}catch{}})();function lWe(e){return e!=null&&typeof e=="object"}var GG=lWe,cWe="[object Arguments]";function uWe(e){return GG(e)&&yC(e)==cWe}var _M=uWe,YG=Object.prototype,dWe=YG.hasOwnProperty,fWe=YG.propertyIsEnumerable;_M(function(){return arguments}());function hWe(){return!1}var mWe=hWe;zG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Hl.Buffer:void 0,i=a?a.isBuffer:void 0,s=i||mWe;e.exports=s});var FM=zG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o&&HG.process,i=function(){try{var s=r&&r.require&&r.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();e.exports=i});FM&&FM.isTypedArray;function pWe(){this.__data__=[],this.size=0}var gWe=pWe;function vWe(e,t){return e===t||e!==e&&t!==t}var bWe=vWe;function yWe(e,t){for(var n=e.length;n--;)if(bWe(e[n][0],t))return n;return-1}var xC=yWe,xWe=Array.prototype,CWe=xWe.splice;function wWe(e){var t=this.__data__,n=xC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():CWe.call(t,n,1),--this.size,!0}var SWe=wWe;function DWe(e){var t=this.__data__,n=xC(t,e);return n<0?void 0:t[n][1]}var EWe=DWe;function IWe(e){return xC(this.__data__,e)>-1}var TWe=IWe;function AWe(e,t){var n=this.__data__,r=xC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var OWe=AWe;function ym(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ym.prototype.clear=gWe;ym.prototype.delete=SWe;ym.prototype.get=EWe;ym.prototype.has=TWe;ym.prototype.set=OWe;var BWe=ym,kWe=Pd(Hl,"Map"),cx=kWe,PWe=Pd(Object,"create"),Lg=PWe;function RWe(){this.__data__=Lg?Lg(null):{},this.size=0}var jWe=RWe;function NWe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var LWe=NWe,$We="__lodash_hash_undefined__",MWe=Object.prototype,_We=MWe.hasOwnProperty;function FWe(e){var t=this.__data__;if(Lg){var n=t[e];return n===$We?void 0:n}return _We.call(t,e)?t[e]:void 0}var WWe=FWe,zWe=Object.prototype,HWe=zWe.hasOwnProperty;function UWe(e){var t=this.__data__;return Lg?t[e]!==void 0:HWe.call(t,e)}var VWe=UWe,GWe="__lodash_hash_undefined__";function YWe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lg&&t===void 0?GWe:t,this}var KWe=YWe;function xm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xm.prototype.clear=jWe;xm.prototype.delete=LWe;xm.prototype.get=WWe;xm.prototype.has=VWe;xm.prototype.set=KWe;var WM=xm;function qWe(){this.size=0,this.__data__={hash:new WM,map:new(cx||BWe),string:new WM}}var XWe=qWe;function QWe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ZWe=QWe;function JWe(e,t){var n=e.__data__;return ZWe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var CC=JWe;function e8e(e){var t=CC(this,e).delete(e);return this.size-=t?1:0,t}var t8e=e8e;function n8e(e){return CC(this,e).get(e)}var r8e=n8e;function o8e(e){return CC(this,e).has(e)}var a8e=o8e;function i8e(e,t){var n=CC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var s8e=i8e;function Cm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cm.prototype.clear=XWe;Cm.prototype.delete=t8e;Cm.prototype.get=r8e;Cm.prototype.has=a8e;Cm.prototype.set=s8e;var KG=Cm;Hl.Uint8Array;var zM=Lc?Lc.prototype:void 0;zM&&zM.valueOf;var l8e=Pd(Hl,"DataView"),ZI=l8e,c8e=Pd(Hl,"Promise"),JI=c8e,u8e=Pd(Hl,"Set"),eT=u8e,d8e=Pd(Hl,"WeakMap"),tT=d8e,HM="[object Map]",f8e="[object Object]",UM="[object Promise]",VM="[object Set]",GM="[object WeakMap]",YM="[object DataView]",h8e=kd(ZI),m8e=kd(cx),p8e=kd(JI),g8e=kd(eT),v8e=kd(tT),af=yC;(ZI&&af(new ZI(new ArrayBuffer(1)))!=YM||cx&&af(new cx)!=HM||JI&&af(JI.resolve())!=UM||eT&&af(new eT)!=VM||tT&&af(new tT)!=GM)&&(af=function(e){var t=yC(e),n=t==f8e?e.constructor:void 0,r=n?kd(n):"";if(r)switch(r){case h8e:return YM;case m8e:return HM;case p8e:return UM;case g8e:return VM;case v8e:return GM}return t});var b8e="Expected a function";function Jk(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(b8e);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Jk.Cache||KG),n}Jk.Cache=KG;var y8e=Jk,x8e=500;function C8e(e){var t=y8e(e,function(r){return n.size===x8e&&n.clear(),r}),n=t.cache;return t}var w8e=C8e,S8e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D8e=/\\(\\)?/g;w8e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S8e,function(n,r,o,a){t.push(o?a.replace(D8e,"$1"):r||n)}),t});var KM=Lc?Lc.prototype:void 0;KM&&KM.toString;const qM=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),gmt=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),E8e=(e,t)=>!e||e.nodeName===t?e:E8e(e.parentElement,t),vmt=(e,...t)=>()=>{e==null||e(...t)},bmt=e=>{const n=(e.match(/\w{2}/g)||[]).map(r=>String.fromCharCode(parseInt(r,16)));return btoa(n.join(""))},I8e=/^(?:\w+:)?\/\/(\S+)$/,T8e=/mailto:([^\\?]+)/,A8e=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,O8e=/^[^\s.]+\.\S{2,}$/,ymt=e=>{if(typeof e!="string")return!1;const t=e.match(I8e),n=e.match(T8e),r=t||n;if(!r)return!1;const o=r[1];if(!o)return!1;try{new URL(e)}catch{return!1}return A8e.test(o)||O8e.test(o)},xmt=(e,t,{handlerKeys:n,handlerQuery:r=o=>o.indexOf("on")===0}={})=>{const o=new Map,a={},i=s=>{s&&Object.entries(s).forEach(([l,c])=>{if((!n||n.includes(l))&&(!r||r(l))&&typeof c=="function"){var d;o.has(l)||o.set(l,[]),(d=o.get(l))===null||d===void 0||d.push(c),a[l]=(...f)=>{var h;(h=o.get(l))===null||h===void 0||h.forEach(m=>m(...f))}}else a[l]=c})};return i(e),i(t),a},Cmt=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch{return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},B8e=e=>typeof e>"u",k8e=e=>e===null,P8e=e=>B8e(e)||k8e(e),wC=e=>!P8e(e);var XM=Object.prototype.hasOwnProperty;function QM(e,t,n){for(n of e.keys())if(Kp(n,t))return n}function Kp(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Kp(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=QM(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=QM(t,o),!o)||!Kp(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(XM.call(e,n)&&++r&&!XM.call(t,n)||!(n in t)||!Kp(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function R8e(e){const t=W.useRef(e),n=W.useRef(0);return Kp(e,t.current)||(t.current=e,n.current+=1),W.useMemo(()=>t.current,[n.current])}function ZM(e,t){return W.useMemo(e,R8e(t))}function JM(e){return Object.prototype.toString.call(e)==="[object Object]"}function uo(e){var t,n;return JM(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(JM(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Di(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fd(e){return!!e&&!!e[Ba]}function hd(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===W8e}(e)||Array.isArray(e)||!!e[s_]||!!(!((t=e.constructor)===null||t===void 0)&&t[s_])||eP(e)||tP(e))}function $g(e,t,n){n===void 0&&(n=!1),wm(e)===0?(n?Object.keys:iP)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function wm(e){var t=e[Ba];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:eP(e)?2:tP(e)?3:0}function nT(e,t){return wm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function j8e(e,t){return wm(e)===2?e.get(t):e[t]}function qG(e,t,n){var r=wm(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function N8e(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eP(e){return _8e&&e instanceof Map}function tP(e){return F8e&&e instanceof Set}function wu(e){return e.o||e.t}function nP(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=z8e(e);delete t[Ba];for(var n=iP(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function rP(e,t){return t===void 0&&(t=!1),oP(e)||fd(e)||!hd(e)||(wm(e)>1&&(e.set=e.add=e.clear=e.delete=L8e),Object.freeze(e),t&&$g(e,function(n,r){return rP(r,!0)},!0)),e}function L8e(){Di(2)}function oP(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ws(e){var t=H8e[e];return t||Di(18,e),t}function e_(){return Mg}function dD(e,t){t&&(ws("Patches"),e.u=[],e.s=[],e.v=t)}function ux(e){rT(e),e.p.forEach($8e),e.p=null}function rT(e){e===Mg&&(Mg=e.l)}function t_(e){return Mg={p:[],l:Mg,h:e,m:!0,_:0}}function $8e(e){var t=e[Ba];t.i===0||t.i===1?t.j():t.g=!0}function fD(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ws("ES5").S(t,e,r),r?(n[Ba].P&&(ux(t),Di(4)),hd(e)&&(e=dx(t,e),t.l||fx(t,e)),t.u&&ws("Patches").M(n[Ba].t,e,t.u,t.s)):e=dx(t,n,[]),ux(t),t.u&&t.v(t.u,t.s),e!==XG?e:void 0}function dx(e,t,n){if(oP(t))return t;var r=t[Ba];if(!r)return $g(t,function(s,l){return n_(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return fx(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=nP(r.k):r.o,a=o,i=!1;r.i===3&&(a=new Set(o),o.clear(),i=!0),$g(a,function(s,l){return n_(e,r,o,s,l,n,i)}),fx(e,o,!1),n&&e.u&&ws("Patches").N(r,n,e.u,e.s)}return r.o}function n_(e,t,n,r,o,a,i){if(fd(o)){var s=dx(e,o,a&&t&&t.i!==3&&!nT(t.R,r)?a.concat(r):void 0);if(qG(n,r,s),!fd(s))return;e.m=!1}else i&&n.add(o);if(hd(o)&&!oP(o)){if(!e.h.D&&e._<1)return;dx(e,o),t&&t.A.l||fx(e,o)}}function fx(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rP(t,n)}function hD(e,t){var n=e[Ba];return(n?wu(n):e)[t]}function r_(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function oT(e){e.P||(e.P=!0,e.l&&oT(e.l))}function mD(e){e.o||(e.o=nP(e.t))}function aT(e,t,n){var r=eP(t)?ws("MapSet").F(t,n):tP(t)?ws("MapSet").T(t,n):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:e_(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,c=iT;i&&(l=[s],c=Tp);var d=Proxy.revocable(l,c),f=d.revoke,h=d.proxy;return s.k=h,s.j=f,h}(t,n):ws("ES5").J(t,n);return(n?n.A:e_()).p.push(r),r}function M8e(e){return fd(e)||Di(22,e),function t(n){if(!hd(n))return n;var r,o=n[Ba],a=wm(n);if(o){if(!o.P&&(o.i<4||!ws("ES5").K(o)))return o.t;o.I=!0,r=o_(n,a),o.I=!1}else r=o_(n,a);return $g(r,function(i,s){o&&j8e(o.t,i)===s||qG(r,i,t(s))}),a===3?new Set(r):r}(e)}function o_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nP(e)}var a_,Mg,aP=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",_8e=typeof Map<"u",F8e=typeof Set<"u",i_=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",XG=aP?Symbol.for("immer-nothing"):((a_={})["immer-nothing"]=!0,a_),s_=aP?Symbol.for("immer-draftable"):"__$immer_draftable",Ba=aP?Symbol.for("immer-state"):"__$immer_state",W8e=""+Object.prototype.constructor,iP=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,z8e=Object.getOwnPropertyDescriptors||function(e){var t={};return iP(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},H8e={},iT={get:function(e,t){if(t===Ba)return e;var n=wu(e);if(!nT(n,t))return function(o,a,i){var s,l=r_(a,i);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!hd(r)?r:r===hD(e.t,t)?(mD(e),e.o[t]=aT(e.A.h,r,e)):r},has:function(e,t){return t in wu(e)},ownKeys:function(e){return Reflect.ownKeys(wu(e))},set:function(e,t,n){var r=r_(wu(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=hD(wu(e),t),a=o==null?void 0:o[Ba];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(N8e(n,o)&&(n!==void 0||nT(e.t,t)))return!0;mD(e),oT(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return hD(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,mD(e),oT(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=wu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Di(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Di(12)}},Tp={};$g(iT,function(e,t){Tp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Tp.deleteProperty=function(e,t){return Tp.set.call(this,e,t,void 0)},Tp.set=function(e,t,n){return iT.set.call(this,e[0],t,n,e[0])};var U8e=function(){function e(n){var r=this;this.O=i_,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var l=r;return function(p){var v=this;p===void 0&&(p=s);for(var b=arguments.length,y=Array(b>1?b-1:0),C=1;C<b;C++)y[C-1]=arguments[C];return l.produce(p,function(D){var A;return(A=a).call.apply(A,[v,D].concat(y))})}}var c;if(typeof a!="function"&&Di(6),i!==void 0&&typeof i!="function"&&Di(7),hd(o)){var d=t_(r),f=aT(r,o,void 0),h=!0;try{c=a(f),h=!1}finally{h?ux(d):rT(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return dD(d,i),fD(p,d)},function(p){throw ux(d),p}):(dD(d,i),fD(c,d))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===XG&&(c=void 0),r.D&&rP(c,!0),i){var m=[],g=[];ws("Patches").M(o,c,m,g),i(m,g)}return c}Di(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];return r.produceWithPatches(c,function(m){return o.apply(void 0,[m].concat(f))})};var i,s,l=r.produce(o,a,function(c,d){i=c,s=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,i,s]}):[l,i,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){hd(n)||Di(8),fd(n)&&(n=M8e(n));var r=t_(this),o=aT(this,n,void 0);return o[Ba].C=!0,rT(r),o},t.finishDraft=function(n,r){var o=n&&n[Ba],a=o.A;return dD(a,r),fD(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!i_&&Di(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=ws("Patches").$;return fd(n)?i(n,r):this.produce(n,function(s){return i(s,r)})},e}(),ka=new U8e,sP=ka.produce;ka.produceWithPatches.bind(ka);ka.setAutoFreeze.bind(ka);ka.setUseProxies.bind(ka);ka.applyPatches.bind(ka);var l_=ka.createDraft.bind(ka),c_=ka.finishDraft.bind(ka),V8e={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=de.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},G8e={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Wt.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Y8e={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ce.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},hx=new WeakMap,mx=new WeakMap,qp=new WeakMap,QG=new WeakMap,u_=new WeakMap,d_=new WeakMap,f_=new WeakMap,de={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=de.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],a=t[r];if(o!==a)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return de.equals(r,o)&&a>i},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return de.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return de.equals(r,o)&&a<i},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return de.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&de.compare(e,t)===0},isBefore(e,t){return de.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&de.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&de.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&de.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&de.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],a=t[t.length-1];return o!==a&&de.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!de.isAncestor(t,e)&&!de.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:a}=t;(de.equals(a,r)||de.endsBefore(a,r)||de.isAncestor(a,r))&&(r[a.length-1]+=1);break}case"remove_node":{var{path:i}=t;if(de.equals(i,r)||de.isAncestor(i,r))return null;de.endsBefore(i,r)&&(r[i.length-1]-=1);break}case"merge_node":{var{path:s,position:l}=t;de.equals(s,r)||de.endsBefore(s,r)?r[s.length-1]-=1:de.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break}case"split_node":{var{path:c,position:d}=t;if(de.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else de.endsBefore(c,r)?r[c.length-1]+=1:de.isAncestor(c,r)&&e[c.length]>=d&&(r[c.length-1]+=1,r[c.length]-=d);break}case"move_node":{var{path:f,newPath:h}=t;if(de.equals(f,h))return r;if(de.isAncestor(f,r)||de.equals(f,r)){var m=h.slice();return de.endsBefore(f,h)&&f.length<h.length&&(m[f.length-1]-=1),m.concat(r.slice(f.length))}else de.isSibling(f,h)&&(de.isAncestor(h,r)||de.equals(h,r))?de.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:de.endsBefore(h,r)||de.equals(h,r)||de.isAncestor(h,r)?(de.endsBefore(f,r)&&(r[f.length-1]-=1),r[h.length-1]+=1):de.endsBefore(f,r)&&(de.equals(h,r)&&(r[h.length-1]+=1),r[f.length-1]-=1);break}}return r}};function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var K8e=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,a=_e.parent(e,r),i=r[r.length-1];if(i>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(a.children.splice(i,0,o),t)for(var[s,l]of Ce.points(t))t[l]=Wt.transform(s,n);break}case"insert_text":{var{path:c,offset:d,text:f}=n;if(f.length===0)break;var h=_e.leaf(e,c),m=h.text.slice(0,d),g=h.text.slice(d);if(h.text=m+f+g,t)for(var[p,v]of Ce.points(t))t[v]=Wt.transform(p,n);break}case"merge_node":{var{path:b}=n,y=_e.get(e,b),C=de.previous(b),D=_e.get(e,C),A=_e.parent(e,b),T=b[b.length-1];if(at.isText(y)&&at.isText(D))D.text+=y.text;else if(!at.isText(y)&&!at.isText(D))D.children.push(...y.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b,"] to nodes of different interfaces: ").concat(to.stringify(y)," ").concat(to.stringify(D)));if(A.children.splice(T,1),t)for(var[B,j]of Ce.points(t))t[j]=Wt.transform(B,n);break}case"move_node":{var{path:R,newPath:N}=n;if(de.isAncestor(R,N))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(N,"] because the destination is inside itself."));var _=_e.get(e,R),U=_e.parent(e,R),V=R[R.length-1];U.children.splice(V,1);var z=de.transform(R,n),Y=_e.get(e,de.parent(z)),te=z[z.length-1];if(Y.children.splice(te,0,_),t)for(var[se,he]of Ce.points(t))t[he]=Wt.transform(se,n);break}case"remove_node":{var{path:pe}=n,K=pe[pe.length-1],O=_e.parent(e,pe);if(O.children.splice(K,1),t)for(var[le,be]of Ce.points(t)){var H=Wt.transform(le,n);if(t!=null&&H!=null)t[be]=H;else{var ie=void 0,oe=void 0;for(var[ve,$e]of _e.texts(e))if(de.compare($e,pe)===-1)ie=[ve,$e];else{oe=[ve,$e];break}var Ne=!1;ie&&oe&&(de.equals(oe[1],pe)?Ne=!de.hasPrevious(oe[1]):Ne=de.common(ie[1],pe).length<de.common(oe[1],pe).length),ie&&!Ne?(le.path=ie[1],le.offset=ie[0].text.length):oe?(le.path=oe[1],le.offset=0):t=null}}break}case"remove_text":{var{path:Ze,offset:ze,text:Xe}=n;if(Xe.length===0)break;var Me=_e.leaf(e,Ze),Je=Me.text.slice(0,ze),pt=Me.text.slice(ze+Xe.length);if(Me.text=Je+pt,t)for(var[ot,Et]of Ce.points(t))t[Et]=Wt.transform(ot,n);break}case"set_node":{var{path:Vt,properties:nt,newProperties:Ee}=n;if(Vt.length===0)throw new Error("Cannot set properties on the root node!");var kt=_e.get(e,Vt);for(var ne in Ee){if(ne==="children"||ne==="text")throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var we=Ee[ne];we==null?delete kt[ne]:kt[ne]=we}for(var Ae in nt)Ee.hasOwnProperty(Ae)||delete kt[Ae];break}case"set_selection":{var{newProperties:Se}=n;if(Se==null)t=Se;else{if(t==null){if(!Ce.isRange(Se))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(to.stringify(Se)," when there is no current selection."));t=fp({},Se)}for(var De in Se){var Ye=Se[De];if(Ye==null){if(De==="anchor"||De==="focus")throw new Error('Cannot remove the "'.concat(De,'" selection property'));delete t[De]}else t[De]=Ye}}break}case"split_node":{var{path:Qe,position:xe,properties:vt}=n;if(Qe.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Qe,"] because the root node cannot be split."));var Mt=_e.get(e,Qe),vn=_e.parent(e,Qe),lo=Qe[Qe.length-1],bn;if(at.isText(Mt)){var Vr=Mt.text.slice(0,xe),_a=Mt.text.slice(xe);Mt.text=Vr,bn=fp(fp({},vt),{},{text:_a})}else{var vo=Mt.children.slice(0,xe),Oo=Mt.children.slice(xe);Mt.children=vo,bn=fp(fp({},vt),{},{children:Oo})}if(vn.children.splice(lo+1,0,bn),t)for(var[Pn,Ji]of Ce.points(t))t[Ji]=Wt.transform(Pn,n);break}}return t},q8e={transform(e,t){e.children=l_(e.children);var n=e.selection&&l_(e.selection);try{n=K8e(e,n,t)}finally{e.children=c_(e.children),n?e.selection=fd(n)?c_(n):n:e.selection=null}}},X8e={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},Q8e={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Z8e={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(de.isPath(o)&&(o=L.range(e,o)),Ce.isRange(o))if(Ce.isCollapsed(o))o=o.anchor;else{var a=Ce.end(o);if(!r&&L.void(e,{at:a}))return;var i=Ce.start(o),s=L.pointRef(e,i),l=L.pointRef(e,a);Pe.delete(e,{at:o,voids:r});var c=s.unref(),d=l.unref();o=c||d,Pe.setSelection(e,{anchor:o,focus:o})}if(!(!r&&L.void(e,{at:o})||L.elementReadOnly(e,{at:o}))){var{path:f,offset:h}=o;t.length>0&&e.apply({type:"insert_text",path:f,offset:h,text:t})}}})}};function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pe=Gb(Gb(Gb(Gb({},q8e),X8e),Q8e),Z8e);function J8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Pl(e,t){if(e==null)return{};var n=J8e(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var eze=["anchor","focus"];function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ce={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Ce.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Ce.edges(e);return t},equals(e,t){return Wt.equals(e.anchor,t.anchor)&&Wt.equals(e.focus,t.focus)},includes(e,t){if(Ce.isRange(t)){if(Ce.includes(e,t.anchor)||Ce.includes(e,t.focus))return!0;var[n,r]=Ce.edges(e),[o,a]=Ce.edges(t);return Wt.isBefore(n,o)&&Wt.isAfter(r,a)}var[i,s]=Ce.edges(e),l=!1,c=!1;return Wt.isPoint(t)?(l=Wt.compare(t,i)>=0,c=Wt.compare(t,s)<=0):(l=de.compare(t,i.path)>=0,c=de.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=Pl(e,eze),[r,o]=Ce.edges(e),[a,i]=Ce.edges(t),s=Wt.isBefore(r,a)?a:r,l=Wt.isBefore(o,i)?o:i;return Wt.isBefore(l,s)?null:tze({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Wt.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Wt.equals(t,n)},isExpanded(e){return!Ce.isCollapsed(e)},isForward(e){return!Ce.isBackward(e)},isRange(e){return uo(e)&&Wt.isPoint(e.anchor)&&Wt.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Ce.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sP(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,a,i;if(o==="inward"){var s=Ce.isCollapsed(r);Ce.isForward(r)?(a="forward",i=s?a:"backward"):(a="backward",i=s?a:"forward")}else o==="outward"?Ce.isForward(r)?(a="backward",i="forward"):(a="forward",i="backward"):(a=o,i=o);var l=Wt.transform(r.anchor,t,{affinity:a}),c=Wt.transform(r.focus,t,{affinity:i});if(!l||!c)return null;r.anchor=l,r.focus=c})}},g_=e=>uo(e)&&_e.isNodeList(e.children)&&!L.isEditor(e),st={isAncestor(e){return uo(e)&&_e.isNodeList(e.children)},isElement:g_,isElementList(e){return Array.isArray(e)&&e.every(t=>st.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return g_(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},nze=["children"],rze=["text"],v_=new WeakMap,_e={ancestor(e,t){var n=_e.get(e,t);if(at.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(to.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of de.ancestors(t,n)){var o=_e.ancestor(e,r),a=[o,r];yield a}},child(e,t){if(at.isText(e))throw new Error("Cannot get the child of a text node: ".concat(to.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(to.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=_e.ancestor(e,t),{children:a}=o,i=r?a.length-1:0;r?i>=0:i<a.length;){var s=_e.child(o,i),l=t.concat(i);yield[s,l],i=r?i-1:i+1}},common(e,t,n){var r=de.common(t,n),o=_e.get(e,r);return[o,r]},descendant(e,t){var n=_e.get(e,t);if(L.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(to.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of _e.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of _e.nodes(e,t))st.isElement(n)&&(yield[n,r])},extractProps(e){if(st.isAncestor(e)){var t=Pl(e,nze);return t}else{var t=Pl(e,rze);return t}},first(e,t){for(var n=t.slice(),r=_e.get(e,n);r&&!(at.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(at.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(to.stringify(e)));var n=sP({children:e.children},r=>{var[o,a]=Ce.edges(t),i=_e.nodes(r,{reverse:!0,pass:h=>{var[,m]=h;return!Ce.includes(t,m)}});for(var[,s]of i){if(!Ce.includes(t,s)){var l=_e.parent(r,s),c=s[s.length-1];l.children.splice(c,1)}if(de.equals(s,a.path)){var d=_e.leaf(r,s);d.text=d.text.slice(0,a.offset)}if(de.equals(s,o.path)){var f=_e.leaf(r,s);f.text=f.text.slice(o.offset)}}L.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(at.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(to.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(at.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return at.isText(e)||st.isElement(e)||L.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=v_.get(e);if(t!==void 0)return t;var n=e.every(r=>_e.isNode(r));return v_.set(e,n),n},last(e,t){for(var n=t.slice(),r=_e.get(e,n);r&&!(at.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=_e.get(e,t);if(!at.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(to.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of de.levels(t,n)){var o=_e.get(e,r);yield[o,r]}},matches(e,t){return st.isElement(e)&&st.isElementProps(t)&&st.matches(e,t)||at.isText(e)&&at.isTextProps(t)&&at.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:a}=t,i=new Set,s=[],l=e;!(a&&(r?de.isBefore(s,a):de.isAfter(s,a)));){if(i.has(l)||(yield[l,s]),!i.has(l)&&!at.isText(l)&&l.children.length!==0&&(n==null||n([l,s])===!1)){i.add(l);var c=r?l.children.length-1:0;de.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),l=_e.get(e,s);continue}if(s.length===0)break;if(!r){var d=de.next(s);if(_e.has(e,d)){s=d,l=_e.get(e,s);continue}}if(r&&s[s.length-1]!==0){var f=de.previous(s);s=f,l=_e.get(e,s);continue}s=de.parent(s),l=_e.get(e,s),i.add(l)}},parent(e,t){var n=de.parent(t),r=_e.get(e,n);if(at.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return at.isText(e)?e.text:e.children.map(_e.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of _e.nodes(e,t))at.isText(n)&&(yield[n,r])}};function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Cc={isNodeOperation(e){return Cc.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!uo(e))return!1;switch(e.type){case"insert_node":return de.isPath(e.path)&&_e.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&de.isPath(e.path);case"merge_node":return typeof e.position=="number"&&de.isPath(e.path)&&uo(e.properties);case"move_node":return de.isPath(e.path)&&de.isPath(e.newPath);case"remove_node":return de.isPath(e.path)&&_e.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&de.isPath(e.path);case"set_node":return de.isPath(e.path)&&uo(e.properties)&&uo(e.newProperties);case"set_selection":return e.properties===null&&Ce.isRange(e.newProperties)||e.newProperties===null&&Ce.isRange(e.properties)||uo(e.properties)&&uo(e.newProperties);case"split_node":return de.isPath(e.path)&&typeof e.position=="number"&&uo(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Cc.isOperation(t))},isSelectionOperation(e){return Cc.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Cc.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return nr(nr({},e),{},{type:"remove_node"});case"insert_text":return nr(nr({},e),{},{type:"remove_text"});case"merge_node":return nr(nr({},e),{},{type:"split_node",path:de.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(de.equals(t,n))return e;if(de.isSibling(n,t))return nr(nr({},e),{},{path:t,newPath:n});var r=de.transform(n,e),o=de.transform(de.next(n),e);return nr(nr({},e),{},{path:r,newPath:o})}case"remove_node":return nr(nr({},e),{},{type:"insert_node"});case"remove_text":return nr(nr({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:i}=e;return nr(nr({},e),{},{properties:i,newProperties:a})}case"set_selection":{var{properties:s,newProperties:l}=e;return s==null?nr(nr({},e),{},{properties:l,newProperties:null}):l==null?nr(nr({},e),{},{properties:null,newProperties:s}):nr(nr({},e),{},{properties:l,newProperties:s})}case"split_node":return nr(nr({},e),{},{type:"merge_node",path:de.next(e.path)})}}},y_=new WeakMap,oze=e=>{var t=y_.get(e);if(t!==void 0)return t;if(!uo(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||uo(e.marks))&&(e.selection===null||Ce.isRange(e.selection))&&_e.isNodeList(e.children)&&Cc.isOperationList(e.operations);return y_.set(e,n),n},L={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return oze(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}},aze=(e,t)=>{for(var n of L.pathRefs(e))V8e.transform(n,t);for(var r of L.pointRefs(e))G8e.transform(r,t);for(var o of L.rangeRefs(e))Y8e.transform(o,t);var a=hx.get(e)||[],i=mx.get(e)||new Set,s,l,c=g=>{if(g){var p=g.join(",");l.has(p)||(l.add(p),s.push(g))}};if(de.operationCanTransformPath(t)){s=[],l=new Set;for(var d of a){var f=de.transform(d,t);c(f)}}else s=a,l=i;var h=e.getDirtyPaths(t);for(var m of h)c(m);hx.set(e,s),mx.set(e,l),Pe.transform(e,t),e.operations.push(t),L.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),qp.get(e)||(qp.set(e,!0),Promise.resolve().then(()=>{qp.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},ZG=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(uo(r)&&uo(o)){if(!ZG(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var i in t)if(e[i]===void 0&&t[i]!==void 0)return!1;return!0},ize=["text"],sze=["anchor","focus"];function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var at={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(a){var i=Pl(a,ize);return i}return ZG(r?o(e):e,r?o(t):t)},isText(e){return uo(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>at.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[rl({},e)];for(var r of t){var o=Pl(r,sze),[a,i]=Ce.edges(r),s=[],l=0,c=a.offset,d=i.offset;for(var f of n){var{length:h}=f.text,m=l;if(l+=h,c<=m&&l<=d){Object.assign(f,o),s.push(f);continue}if(c!==d&&(c===l||d===m)||c>l||d<m||d===m&&m!==0){s.push(f);continue}var g=f,p=void 0,v=void 0;if(d<l){var b=d-m;v=rl(rl({},g),{},{text:g.text.slice(b)}),g=rl(rl({},g),{},{text:g.text.slice(0,b)})}if(c>m){var y=c-m;p=rl(rl({},g),{},{text:g.text.slice(0,y)}),g=rl(rl({},g),{},{text:g.text.slice(y)})}Object.assign(g,o),p&&s.push(p),s.push(g),v&&s.push(v)}n=s}return n}},lze=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return de.levels(n)}case"insert_node":{var{node:r,path:o}=t,a=de.levels(o),i=at.isText(r)?[]:Array.from(_e.nodes(r),N=>{var[,_]=N;return o.concat(_)});return[...a,...i]}case"merge_node":{var{path:s}=t,l=de.ancestors(s),c=de.previous(s);return[...l,c]}case"move_node":{var{path:d,newPath:f}=t;if(de.equals(d,f))return[];var h=[],m=[];for(var g of de.ancestors(d)){var p=de.transform(g,t);h.push(p)}for(var v of de.ancestors(f)){var b=de.transform(v,t);m.push(b)}var y=m[m.length-1],C=f[f.length-1],D=y.concat(C);return[...h,...m,D]}case"remove_node":{var{path:A}=t,T=de.ancestors(A);return[...T]}case"split_node":{var{path:B}=t,j=de.levels(B),R=de.next(B);return[...j,R]}default:return[]}},JG={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(de.isPath)}};function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Wt={compare(e,t){var n=de.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Wt.compare(e,t)===1},isBefore(e,t){return Wt.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&de.equals(e.path,t.path)},isPoint(e){return uo(e)&&typeof e.offset=="number"&&de.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sP(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:a,offset:i}=r;switch(t.type){case"insert_node":case"move_node":{r.path=de.transform(a,t,n);break}case"insert_text":{de.equals(t.path,a)&&(t.offset<i||t.offset===i&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{de.equals(t.path,a)&&(r.offset+=t.position),r.path=de.transform(a,t,n);break}case"remove_text":{de.equals(t.path,a)&&t.offset<=i&&(r.offset-=Math.min(i-t.offset,t.text.length));break}case"remove_node":{if(de.equals(t.path,a)||de.isAncestor(t.path,a))return null;r.path=de.transform(a,t,n);break}case"split_node":{if(de.equals(t.path,a)){if(t.position===i&&o==null)return null;(t.position<i||t.position===i&&o==="forward")&&(r.offset-=t.position,r.path=de.transform(a,t,w_(w_({},n),{},{affinity:"forward"})))}else r.path=de.transform(a,t,n);break}}})}},S_=void 0,to={setScrubber(e){S_=e},stringify(e){return JSON.stringify(e,S_)}},cze=e=>{var{selection:t}=e;return t?_e.fragment(e,t):[]},uze=(e,t)=>{var[n,r]=t;if(!at.isText(n)){if(st.isElement(n)&&n.children.length===0){var o={text:""};Pe.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var a=L.isEditor(n)?!1:st.isElement(n)&&(e.isInline(n)||n.children.length===0||at.isText(n.children[0])||e.isInline(n.children[0])),i=0,s=0;s<n.children.length;s++,i++){var l=_e.get(e,r);if(!at.isText(l)){var c=l.children[i],d=l.children[i-1],f=s===n.children.length-1,h=at.isText(c)||st.isElement(c)&&e.isInline(c);if(h!==a)Pe.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(st.isElement(c)){if(e.isInline(c)){if(d==null||!at.isText(d)){var m={text:""};Pe.insertNodes(e,m,{at:r.concat(i),voids:!0}),i++}else if(f){var g={text:""};Pe.insertNodes(e,g,{at:r.concat(i+1),voids:!0}),i++}}}else d!=null&&at.isText(d)&&(at.equals(c,d,{loose:!0})?(Pe.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):d.text===""?(Pe.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):c.text===""&&(Pe.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}}},dze=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},fze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:a=t.selection,match:i}=n;if(a){var s=L.path(t,a),l=o==="lowest";for(var[c,d]of L.levels(t,{at:s,voids:r,match:i,reverse:l}))if(!at.isText(c)){if(Ce.isRange(a)){if(de.isAncestor(d,a.anchor.path)&&de.isAncestor(d,a.focus.path))return[c,d]}else if(!de.equals(s,d))return[c,d]}}};function D_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hze=(e,t,n)=>{var{selection:r}=e;if(r){var o=(f,h)=>{if(!at.isText(f))return!1;var[m,g]=L.parent(e,h);return!e.isVoid(m)||e.markableVoid(m)},a=Ce.isExpanded(r),i=!1;if(!a){var[s,l]=L.node(e,r);if(s&&o(s,l)){var[c]=L.parent(e,l);i=c&&e.markableVoid(c)}}if(a||i)Pe.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=E_(E_({},L.marks(e)||{}),{},{[t]:n});e.marks=d,qp.get(e)||e.onChange()}}};function I_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function T_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L.point(t,n,{edge:"end"}),a=L.end(t,[]),i={anchor:o,focus:a},{distance:s=1}=r,l=0,c;for(var d of L.positions(t,T_(T_({},r),{},{at:i}))){if(l>s)break;l!==0&&(c=d),l++}return c};function A_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function O_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L.start(t,[]),a=L.point(t,n,{edge:"start"}),i={anchor:o,focus:a},{distance:s=1}=r,l=0,c;for(var d of L.positions(t,O_(O_({},r),{},{at:i,reverse:!0}))){if(l>s)break;l!==0&&(c=d),l++}return c},gze=(e,t)=>{var{selection:n}=e;n&&Ce.isCollapsed(n)&&Pe.delete(e,{unit:t,reverse:!0})},vze=(e,t)=>{var{selection:n}=e;n&&Ce.isCollapsed(n)&&Pe.delete(e,{unit:t})},bze=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&Ce.isExpanded(r)&&Pe.delete(t,{reverse:n==="backward"})},yze=(e,t)=>[L.start(e,t),L.end(e,t)];function B_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function k_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var xze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return L.above(t,k_(k_({},n),{},{match:r=>st.isElement(r)&&L.isElementReadOnly(t,r)}))},Cze=(e,t)=>L.point(e,t,{edge:"end"}),wze=(e,t)=>{var n=L.path(e,t,{edge:"start"});return L.node(e,n)},Sze=(e,t)=>{var n=L.range(e,t);return _e.fragment(e,n)};function P_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Dze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return L.above(t,R_(R_({},n),{},{match:r=>st.isElement(r)&&L.isVoid(t,r)}))},Eze=(e,t)=>t.children.some(n=>st.isElement(n)&&L.isBlock(e,n)),Ize=(e,t)=>t.children.some(n=>at.isText(n)||L.isInline(e,n)),Tze=(e,t)=>_e.has(e,t),Aze=(e,t)=>t.children.every(n=>at.isText(n)),Oze=e=>{Pe.splitNodes(e,{always:!0})},Bze=(e,t)=>{Pe.insertNodes(e,t)},kze=e=>{Pe.splitNodes(e,{always:!0})};function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:a}=t;if(o){if(a){var i=Pze({text:n},a);Pe.insertNodes(t,i)}else Pe.insertText(t,n,r);t.marks=null}},jze=(e,t)=>!e.isInline(t),Nze=(e,t,n)=>L.isStart(e,t,n)||L.isEnd(e,t,n),Lze=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&at.isText(r)&&r.text===""&&!e.isVoid(t)},$ze=(e,t,n)=>{var r=L.end(e,n);return Wt.equals(t,r)},Mze=e=>{var t=QG.get(e);return t===void 0?!0:t},_ze=(e,t,n)=>{if(t.offset!==0)return!1;var r=L.start(e,n);return Wt.equals(t,r)},Fze=(e,t)=>{var n=L.path(e,t,{edge:"end"});return L.node(e,n)},Wze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L.path(t,n,r),a=_e.leaf(t,o);return[a,o]};function*zze(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),!!n){var i=[],s=L.path(e,n);for(var[l,c]of _e.levels(e,s))if(a(l,c)&&(i.push([l,c]),!o&&st.isElement(l)&&L.isVoid(e,l)))break;r&&i.reverse(),yield*i}}var Hze=["text"],Uze=["text"],Vze=function(t){var{marks:n,selection:r}=t;if(!r)return null;if(n)return n;if(Ce.isExpanded(r)){var[o]=L.nodes(t,{match:at.isText});if(o){var[a]=o,i=Pl(a,Hze);return i}else return{}}var{anchor:s}=r,{path:l}=s,[c]=L.leaf(t,l);if(s.offset===0){var d=L.previous(t,{at:l,match:at.isText}),f=L.above(t,{match:b=>st.isElement(b)&&L.isVoid(t,b)&&t.markableVoid(b)});if(!f){var h=L.above(t,{match:b=>st.isElement(b)&&L.isBlock(t,b)});if(d&&h){var[m,g]=d,[,p]=h;de.isAncestor(p,g)&&(c=m)}}}var v=Pl(c,Uze);return v},Gze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection}=n;if(i){var s=L.after(t,i,{voids:o});if(s){var[,l]=L.last(t,[]),c=[s.path,l];if(de.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(de.isPath(i)){var[d]=L.parent(t,i);a=h=>d.children.includes(h)}else a=()=>!0;var[f]=L.nodes(t,{at:c,match:a,mode:r,voids:o});return f}}},Yze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L.path(t,n,r),a=_e.get(t,o);return[a,o]};function*Kze(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:a=!1,voids:i=!1,ignoreNonSelectable:s=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!n){var c,d;if(JG.isSpan(n))c=n[0],d=n[1];else{var f=L.path(e,n,{edge:"start"}),h=L.path(e,n,{edge:"end"});c=a?h:f,d=a?f:h}var m=_e.nodes(e,{reverse:a,from:c,to:d,pass:D=>{var[A]=D;return st.isElement(A)?!!(!i&&(L.isVoid(e,A)||L.isElementReadOnly(e,A))||s&&!L.isSelectable(e,A)):!1}}),g=[],p;for(var[v,b]of m)if(!(s&&st.isElement(v)&&!L.isSelectable(e,v))){var y=p&&de.compare(b,p[1])===0;if(!(r==="highest"&&y)){if(!l(v,b)){if(o&&!y&&at.isText(v))return;continue}if(r==="lowest"&&y){p=[v,b];continue}var C=r==="lowest"?p:[v,b];C&&(o?g.push(C):yield C),p=[v,b]}}r==="lowest"&&p&&(o?g.push(p):yield p),o&&(yield*g)}}var qze=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,a=d=>hx.get(d)||[],i=d=>mx.get(d)||new Set,s=d=>{var f=a(d).pop(),h=f.join(",");return i(d).delete(h),f};if(L.isNormalizing(t)){if(r){var l=Array.from(_e.nodes(t),d=>{var[,f]=d;return f}),c=new Set(l.map(d=>d.join(",")));hx.set(t,l),mx.set(t,c)}a(t).length!==0&&L.withoutNormalizing(t,()=>{for(var d of a(t))if(_e.has(t,d)){var f=L.node(t,d),[h,m]=f;st.isElement(h)&&h.children.length===0&&t.normalizeNode(f,{operation:o})}for(var g=a(t),p=g.length,v=0;g.length!==0;){if(!t.shouldNormalize({dirtyPaths:g,iteration:v,initialDirtyPathsLength:p,operation:o}))return;var b=s(t);if(_e.has(t,b)){var y=L.node(t,b);t.normalizeNode(y,{operation:o})}v++,g=a(t)}})}},Xze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=L.path(t,n,r),a=de.parent(o),i=L.node(t,a);return i},Qze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,l=L.pathRefs(t);return l.delete(a),a.current=null,s}},i=L.pathRefs(t);return i.add(a),a},Zze=e=>{var t=u_.get(e);return t||(t=new Set,u_.set(e,t)),t},Jze=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:a}=r;if(de.isPath(n)){if(a==="start"){var[,i]=_e.first(t,n);n=i}else if(a==="end"){var[,s]=_e.last(t,n);n=s}}return Ce.isRange(n)&&(a==="start"?n=Ce.start(n):a==="end"?n=Ce.end(n):n=de.common(n.anchor.path,n.focus.path)),Wt.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},eHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,l=L.pointRefs(t);return l.delete(a),a.current=null,s}},i=L.pointRefs(t);return i.add(a),a},tHe=e=>{var t=d_.get(e);return t||(t=new Set,d_.set(e,t)),t},nHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(de.isPath(n)){var a;if(o==="end"){var[,i]=_e.last(t,n);a=i}else{var[,s]=_e.first(t,n);a=s}var l=_e.get(t,a);if(!at.isText(l))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:a,offset:o==="end"?l.text.length:0}}if(Ce.isRange(n)){var[c,d]=Ce.edges(n);return o==="start"?c:d}return n},lP=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?lHe(t):t,a=$t.None,i=$t.None,s=0,l=null,c=null;for(var d of o){var f=d.codePointAt(0);if(!f)break;var h=xHe(d,f);if([a,i]=r?[i,h]:[h,a],Ef(a,$t.ZWJ)&&Ef(i,$t.ExtPict)&&(r?l=N_(t.substring(0,s)):l=N_(t.substring(0,t.length-s)),!l)||Ef(a,$t.RI)&&Ef(i,$t.RI)&&(c!==null?c=!c:r?c=!0:c=EHe(t.substring(0,t.length-s)),!c)||a!==$t.None&&i!==$t.None&&wHe(a,i))break;s+=d.length}return s||1},rHe=/\s/,oHe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,aHe=/['\u2018\u2019]/,iHe=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var a=lP(t,n),[i,s]=cP(t,a,n);if(sHe(i,s,n))o=!0,r+=a;else if(!o)r+=a;else break;t=s}return r},cP=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},sHe=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(rHe.test(t))return!1;if(aHe.test(t)){var o=lP(n,r),[a,i]=cP(n,o,r);if(e(a,i,r))return!0}return!oHe.test(t)},lHe=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(uHe(o.charCodeAt(0))){var a=t.charAt(n-r-1);if(cHe(a.charCodeAt(0))){yield a+o,r++;continue}}yield o}},cHe=e=>e>=55296&&e<=56319,uHe=e=>e>=56320&&e<=57343,$t;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})($t||($t={}));var dHe=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,fHe=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,hHe=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,mHe=/^[\u1100-\u115F\uA960-\uA97C]$/,pHe=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,gHe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,vHe=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,bHe=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,yHe=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,xHe=(e,t)=>{var n=$t.Any;return e.search(dHe)!==-1&&(n|=$t.Extend),t===8205&&(n|=$t.ZWJ),t>=127462&&t<=127487&&(n|=$t.RI),e.search(fHe)!==-1&&(n|=$t.Prepend),e.search(hHe)!==-1&&(n|=$t.SpacingMark),e.search(mHe)!==-1&&(n|=$t.L),e.search(pHe)!==-1&&(n|=$t.V),e.search(gHe)!==-1&&(n|=$t.T),e.search(vHe)!==-1&&(n|=$t.LV),e.search(bHe)!==-1&&(n|=$t.LVT),e.search(yHe)!==-1&&(n|=$t.ExtPict),n};function Ef(e,t){return(e&t)!==0}var CHe=[[$t.L,$t.L|$t.V|$t.LV|$t.LVT],[$t.LV|$t.V,$t.V|$t.T],[$t.LVT|$t.T,$t.T],[$t.Any,$t.Extend|$t.ZWJ],[$t.Any,$t.SpacingMark],[$t.Prepend,$t.Any],[$t.ZWJ,$t.ExtPict],[$t.RI,$t.RI]];function wHe(e,t){return CHe.findIndex(n=>Ef(e,n[0])&&Ef(t,n[1]))===-1}var SHe=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,N_=e=>e.search(SHe)!==-1,DHe=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,EHe=e=>{var t=e.match(DHe);if(t===null)return!1;var n=t[0].length/2;return n%2===1};function*IHe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t;if(!n)return;var s=L.range(e,n),[l,c]=Ce.edges(s),d=o?c:l,f=!1,h="",m=0,g=0,p=0;for(var[v,b]of L.nodes(e,{at:n,reverse:o,voids:a,ignoreNonSelectable:i})){if(st.isElement(v)){if(!a&&(e.isVoid(v)||e.isElementReadOnly(v))){yield L.start(e,b);continue}if(e.isInline(v))continue;if(L.hasInlines(e,v)){var y=de.isAncestor(b,c.path)?c:L.end(e,b),C=de.isAncestor(b,l.path)?l:L.start(e,b);h=L.string(e,{anchor:C,focus:y},{voids:a}),f=!0}}if(at.isText(v)){var D=de.equals(b,d.path);for(D?(g=o?d.offset:v.text.length-d.offset,p=d.offset):(g=v.text.length,p=o?g:0),(D||f||r==="offset")&&(yield{path:b,offset:p},f=!1);;){if(m===0){if(h==="")break;m=A(h,r,o),h=cP(h,m,o)[1]}if(p=o?p-m:p+m,g=g-m,g<0){m=-g;break}m=0,yield{path:b,offset:p}}}}function A(T,B,j){return B==="character"?lP(T,j):B==="word"?iHe(T,j):B==="line"||B==="block"?T.length:1}}var THe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection}=n;if(i){var s=L.before(t,i,{voids:o});if(s){var[,l]=L.first(t,[]),c=[s.path,l];if(de.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(de.isPath(i)){var[d]=L.parent(t,i);a=h=>d.children.includes(h)}else a=()=>!0;var[f]=L.nodes(t,{reverse:!0,at:c,match:a,mode:r,voids:o});return f}}},AHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,l=L.rangeRefs(t);return l.delete(a),a.current=null,s}},i=L.rangeRefs(t);return i.add(a),a},OHe=e=>{var t=f_.get(e);return t||(t=new Set,f_.set(e,t)),t},BHe=(e,t,n)=>{if(Ce.isRange(t)&&!n)return t;var r=L.start(e,t),o=L.end(e,n||t);return{anchor:r,focus:o}};function L_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kHe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PHe=(e,t)=>{var{selection:n}=e;if(n){var r=(d,f)=>{if(!at.isText(d))return!1;var[h,m]=L.parent(e,f);return!e.isVoid(h)||e.markableVoid(h)},o=Ce.isExpanded(n),a=!1;if(!o){var[i,s]=L.node(e,n);if(i&&r(i,s)){var[l]=L.parent(e,s);a=l&&e.markableVoid(l)}}if(o||a)Pe.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var c=kHe({},L.marks(e)||{});delete c[t],e.marks=c,qp.get(e)||e.onChange()}}},RHe=(e,t)=>{QG.set(e,t)},jHe=(e,t)=>L.point(e,t,{edge:"start"}),NHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,a=L.range(t,n),[i,s]=Ce.edges(a),l="";for(var[c,d]of L.nodes(t,{at:a,match:at.isText,voids:o})){var f=c.text;de.equals(d,s.path)&&(f=f.slice(0,s.offset)),de.equals(d,i.path)&&(f=f.slice(i.offset)),l+=f}return l},LHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[a,i]=Ce.edges(n);if(a.offset!==0||i.offset!==0||Ce.isCollapsed(n)||de.hasPrevious(i.path))return n;var s=L.above(t,{at:i,match:g=>st.isElement(g)&&L.isBlock(t,g),voids:o}),l=s?s[1]:[],c=L.start(t,a),d={anchor:c,focus:i},f=!0;for(var[h,m]of L.nodes(t,{at:d,match:at.isText,reverse:!0,voids:o})){if(f){f=!1;continue}if(h.text!==""||de.isBefore(m,l)){i={path:m,offset:h.text.length};break}}return{anchor:a,focus:i}},$He=(e,t)=>{var n=L.isNormalizing(e);L.setNormalizing(e,!1);try{t()}finally{L.setNormalizing(e,n)}L.normalize(e)},MHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var r,o,{reverse:a=!1,unit:i="character",distance:s=1,voids:l=!1}=n,{at:c=t.selection,hanging:d=!1}=n;if(c){var f=!1;if(Ce.isRange(c)&&Ce.isCollapsed(c)&&(f=!0,c=c.anchor),Wt.isPoint(c)){var h=L.void(t,{at:c,mode:"highest"});if(!l&&h){var[,m]=h;c=m}else{var g={unit:i,distance:s},p=a?L.before(t,c,g)||L.start(t,[]):L.after(t,c,g)||L.end(t,[]);c={anchor:c,focus:p},d=!0}}if(de.isPath(c)){Pe.removeNodes(t,{at:c,voids:l});return}if(!Ce.isCollapsed(c)){if(!d){var[,v]=Ce.edges(c),b=L.end(t,[]);Wt.equals(v,b)||(c=L.unhangRange(t,c,{voids:l}))}var[y,C]=Ce.edges(c),D=L.above(t,{match:Je=>st.isElement(Je)&&L.isBlock(t,Je),at:y,voids:l}),A=L.above(t,{match:Je=>st.isElement(Je)&&L.isBlock(t,Je),at:C,voids:l}),T=D&&A&&!de.equals(D[1],A[1]),B=de.equals(y.path,C.path),j=l?null:(r=L.void(t,{at:y,mode:"highest"}))!==null&&r!==void 0?r:L.elementReadOnly(t,{at:y,mode:"highest"}),R=l?null:(o=L.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:L.elementReadOnly(t,{at:C,mode:"highest"});if(j){var N=L.before(t,y);N&&D&&de.isAncestor(D[1],N.path)&&(y=N)}if(R){var _=L.after(t,C);_&&A&&de.isAncestor(A[1],_.path)&&(C=_)}var U=[],V;for(var z of L.nodes(t,{at:c,voids:l})){var[Y,te]=z;V&&de.compare(te,V)===0||(!l&&st.isElement(Y)&&(L.isVoid(t,Y)||L.isElementReadOnly(t,Y))||!de.isCommon(te,y.path)&&!de.isCommon(te,C.path))&&(U.push(z),V=te)}var se=Array.from(U,Je=>{var[,pt]=Je;return L.pathRef(t,pt)}),he=L.pointRef(t,y),pe=L.pointRef(t,C),K="";if(!B&&!j){var O=he.current,[le]=L.leaf(t,O),{path:be}=O,{offset:H}=y,ie=le.text.slice(H);ie.length>0&&(t.apply({type:"remove_text",path:be,offset:H,text:ie}),K=ie)}if(se.reverse().map(Je=>Je.unref()).filter(Je=>Je!==null).forEach(Je=>Pe.removeNodes(t,{at:Je,voids:l})),!R){var oe=pe.current,[ve]=L.leaf(t,oe),{path:$e}=oe,Ne=B?y.offset:0,Ze=ve.text.slice(Ne,C.offset);Ze.length>0&&(t.apply({type:"remove_text",path:$e,offset:Ne,text:Ze}),K=Ze)}!B&&T&&pe.current&&he.current&&Pe.mergeNodes(t,{at:pe.current,hanging:!0,voids:l}),f&&a&&i==="character"&&K.length>1&&K.match(/[\u0E00-\u0E7F]+/)&&Pe.insertText(t,K.slice(0,K.length-s));var ze=he.unref(),Xe=pe.unref(),Me=a?ze||Xe:Xe||ze;n.at==null&&Me&&Pe.select(t,Me)}}})},_He=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1}=r,{at:i=t.selection}=r;if(n.length){if(i)if(Ce.isRange(i))if(o||(i=L.unhangRange(t,i,{voids:a})),Ce.isCollapsed(i))i=i.anchor;else{var[,s]=Ce.edges(i);if(!a&&L.void(t,{at:s}))return;var l=L.pointRef(t,s);Pe.delete(t,{at:i}),i=l.unref()}else de.isPath(i)&&(i=L.start(t,i));else return;if(!(!a&&L.void(t,{at:i}))){var c=L.above(t,{at:i,match:H=>st.isElement(H)&&L.isInline(t,H),mode:"highest",voids:a});if(c){var[,d]=c;if(L.isEnd(t,i,d)){var f=L.after(t,d);i=f}else if(L.isStart(t,i,d)){var h=L.before(t,d);i=h}}var m=L.above(t,{match:H=>st.isElement(H)&&L.isBlock(t,H),at:i,voids:a}),[,g]=m,p=L.isStart(t,i,g),v=L.isEnd(t,i,g),b=p&&v,y=!p||p&&v,C=!v,[,D]=_e.first({children:n},[]),[,A]=_e.last({children:n},[]),T=[],B=H=>{var[ie,oe]=H,ve=oe.length===0;return ve?!1:b?!0:!(y&&de.isAncestor(oe,D)&&st.isElement(ie)&&!t.isVoid(ie)&&!t.isInline(ie)||C&&de.isAncestor(oe,A)&&st.isElement(ie)&&!t.isVoid(ie)&&!t.isInline(ie))};for(var j of _e.nodes({children:n},{pass:B}))B(j)&&T.push(j);var R=[],N=[],_=[],U=!0,V=!1;for(var[z]of T)st.isElement(z)&&!t.isInline(z)?(U=!1,V=!0,N.push(z)):U?R.push(z):_.push(z);var[Y]=L.nodes(t,{at:i,match:H=>at.isText(H)||L.isInline(t,H),mode:"highest",voids:a}),[,te]=Y,se=L.isStart(t,i,te),he=L.isEnd(t,i,te),pe=L.pathRef(t,v&&!_.length?de.next(g):g),K=L.pathRef(t,he?de.next(te):te);Pe.splitNodes(t,{at:i,match:H=>V?st.isElement(H)&&L.isBlock(t,H):at.isText(H)||L.isInline(t,H),mode:V?"lowest":"highest",always:V&&(!p||R.length>0)&&(!v||_.length>0),voids:a});var O=L.pathRef(t,!se||se&&he?de.next(te):te);if(Pe.insertNodes(t,R,{at:O.current,match:H=>at.isText(H)||L.isInline(t,H),mode:"highest",voids:a}),b&&!R.length&&N.length&&!_.length&&Pe.delete(t,{at:g,voids:a}),Pe.insertNodes(t,N,{at:pe.current,match:H=>st.isElement(H)&&L.isBlock(t,H),mode:"lowest",voids:a}),Pe.insertNodes(t,_,{at:K.current,match:H=>at.isText(H)||L.isInline(t,H),mode:"highest",voids:a}),!r.at){var le;if(_.length>0&&K.current?le=de.previous(K.current):N.length>0&&pe.current?le=de.previous(pe.current):O.current&&(le=de.previous(O.current)),le){var be=L.end(t,le);Pe.select(t,be)}}O.unref(),pe.unref(),K.unref()}}})},FHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")Pe.select(t,o.anchor);else if(r==="focus")Pe.select(t,o.focus);else if(r==="start"){var[a]=Ce.edges(o);Pe.select(t,a)}else if(r==="end"){var[,i]=Ce.edges(o);Pe.select(t,i)}}else return},WHe=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},zHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:a="character",reverse:i=!1}=n,{edge:s=null}=n;if(r){s==="start"&&(s=Ce.isBackward(r)?"focus":"anchor"),s==="end"&&(s=Ce.isBackward(r)?"anchor":"focus");var{anchor:l,focus:c}=r,d={distance:o,unit:a,ignoreNonSelectable:!0},f={};if(s==null||s==="anchor"){var h=i?L.before(t,l,d):L.after(t,l,d);h&&(f.anchor=h)}if(s==null||s==="focus"){var m=i?L.before(t,c,d):L.after(t,c,d);m&&(f.focus=m)}Pe.setSelection(t,f)}},HHe=(e,t)=>{var{selection:n}=e;if(t=L.range(e,t),n){Pe.setSelection(e,t);return}if(!Ce.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(to.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function $_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function M_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:a="both"}=r;if(o){a==="start"&&(a=Ce.isBackward(o)?"focus":"anchor"),a==="end"&&(a=Ce.isBackward(o)?"anchor":"focus");var{anchor:i,focus:s}=o,l=a==="anchor"?i:s;Pe.setSelection(t,{[a==="anchor"?"anchor":"focus"]:M_(M_({},l),n)})}},VHe=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!Wt.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!Wt.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],o[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},GHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1,mode:i="lowest"}=r,{at:s,match:l,select:c}=r;if(_e.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(t.selection?s=t.selection:t.children.length>0?s=L.end(t,[]):s=[0],c=!0),c==null&&(c=!1),Ce.isRange(s))if(o||(s=L.unhangRange(t,s,{voids:a})),Ce.isCollapsed(s))s=s.anchor;else{var[,f]=Ce.edges(s),h=L.pointRef(t,f);Pe.delete(t,{at:s}),s=h.unref()}if(Wt.isPoint(s)){l==null&&(at.isText(d)?l=B=>at.isText(B):t.isInline(d)?l=B=>at.isText(B)||L.isInline(t,B):l=B=>st.isElement(B)&&L.isBlock(t,B));var[m]=L.nodes(t,{at:s.path,match:l,mode:i,voids:a});if(m){var[,g]=m,p=L.pathRef(t,g),v=L.isEnd(t,s,g);Pe.splitNodes(t,{at:s,match:l,mode:i,voids:a});var b=p.unref();s=v?de.next(b):b}else return}var y=de.parent(s),C=s[s.length-1];if(!(!a&&L.void(t,{at:y}))){for(var D of n){var A=y.concat(C);C++,t.apply({type:"insert_node",path:A,node:D}),s=de.next(s)}if(s=de.previous(s),c){var T=L.end(t,s);T&&Pe.select(t,T)}}}})},Sm=(e,t)=>{var[n]=L.node(e,t);return r=>r===n},YHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:a=!1}=n,{match:i}=n;if(i==null&&(i=de.isPath(r)?Sm(t,r):D=>st.isElement(D)&&L.isBlock(t,D)),!!r){var s=L.nodes(t,{at:r,match:i,mode:o,voids:a}),l=Array.from(s,D=>{var[,A]=D;return L.pathRef(t,A)});for(var c of l){var d=c.unref();if(d.length<2)throw new Error("Cannot lift node at a path [".concat(d,"] because it has a depth of less than `2`."));var f=L.node(t,de.parent(d)),[h,m]=f,g=d[d.length-1],{length:p}=h.children;if(p===1){var v=de.next(m);Pe.moveNodes(t,{at:d,to:v,voids:a}),Pe.removeNodes(t,{at:m,voids:a})}else if(g===0)Pe.moveNodes(t,{at:d,to:m,voids:a});else if(g===p-1){var b=de.next(m);Pe.moveNodes(t,{at:d,to:b,voids:a})}else{var y=de.next(d),C=de.next(m);Pe.splitNodes(t,{at:y,voids:a}),Pe.moveNodes(t,{at:d,to:C,voids:a})}}}})},KHe=["text"],qHe=["children"],eY=(e,t)=>{if(st.isElement(t)){var n=t;return L.isVoid(e,t)?!0:n.children.length===1?eY(e,n.children[0]):!1}else return!L.isEditor(t)},XHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:a=!1,voids:i=!1,mode:s="lowest"}=n;if(o){if(r==null)if(de.isPath(o)){var[l]=L.parent(t,o);r=N=>l.children.includes(N)}else r=N=>st.isElement(N)&&L.isBlock(t,N);if(!a&&Ce.isRange(o)&&(o=L.unhangRange(t,o,{voids:i})),Ce.isRange(o))if(Ce.isCollapsed(o))o=o.anchor;else{var[,c]=Ce.edges(o),d=L.pointRef(t,c);Pe.delete(t,{at:o}),o=d.unref(),n.at==null&&Pe.select(t,o)}var[f]=L.nodes(t,{at:o,match:r,voids:i,mode:s}),h=L.previous(t,{at:o,match:r,voids:i,mode:s});if(!(!f||!h)){var[m,g]=f,[p,v]=h;if(!(g.length===0||v.length===0)){var b=de.next(v),y=de.common(g,v),C=de.isSibling(g,v),D=Array.from(L.levels(t,{at:g}),N=>{var[_]=N;return _}).slice(y.length).slice(0,-1),A=L.above(t,{at:g,mode:"highest",match:N=>D.includes(N)&&eY(t,N)}),T=A&&L.pathRef(t,A[1]),B,j;if(at.isText(m)&&at.isText(p)){var R=Pl(m,KHe);j=p.text.length,B=R}else if(st.isElement(m)&&st.isElement(p)){var R=Pl(m,qHe);j=p.children.length,B=R}else throw new Error("Cannot merge the node at path [".concat(g,"] with the previous sibling because it is not the same kind: ").concat(to.stringify(m)," ").concat(to.stringify(p)));C||Pe.moveNodes(t,{at:g,to:b,voids:i}),T&&Pe.removeNodes(t,{at:T.current,voids:i}),st.isElement(p)&&L.isEmpty(t,p)||at.isText(p)&&p.text===""&&v[v.length-1]!==0?Pe.removeNodes(t,{at:v,voids:i}):t.apply({type:"merge_node",path:b,position:j,properties:B}),T&&T.unref()}}}})},QHe=(e,t)=>{L.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:a=!1}=t,{match:i}=t;if(r){i==null&&(i=de.isPath(r)?Sm(e,r):m=>st.isElement(m)&&L.isBlock(e,m));var s=L.pathRef(e,n),l=L.nodes(e,{at:r,match:i,mode:o,voids:a}),c=Array.from(l,m=>{var[,g]=m;return L.pathRef(e,g)});for(var d of c){var f=d.unref(),h=s.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:h}),s.current&&de.isSibling(h,f)&&de.isAfter(h,f)&&(s.current=de.next(s.current))}s.unref()}})},ZHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:a="lowest"}=n,{at:i=t.selection,match:s}=n;if(i){s==null&&(s=de.isPath(i)?Sm(t,i):m=>st.isElement(m)&&L.isBlock(t,m)),!r&&Ce.isRange(i)&&(i=L.unhangRange(t,i,{voids:o}));var l=L.nodes(t,{at:i,match:s,mode:a,voids:o}),c=Array.from(l,m=>{var[,g]=m;return L.pathRef(t,g)});for(var d of c){var f=d.unref();if(f){var[h]=L.node(t,f);t.apply({type:"remove_node",path:f,node:h})}}}})},JHe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L.withoutNormalizing(t,()=>{var{match:o,at:a=t.selection,compare:i,merge:s}=r,{hanging:l=!1,mode:c="lowest",split:d=!1,voids:f=!1}=r;if(a){if(o==null&&(o=de.isPath(a)?Sm(t,a):j=>st.isElement(j)&&L.isBlock(t,j)),!l&&Ce.isRange(a)&&(a=L.unhangRange(t,a,{voids:f})),d&&Ce.isRange(a)){if(Ce.isCollapsed(a)&&L.leaf(t,a.anchor)[0].text.length>0)return;var h=L.rangeRef(t,a,{affinity:"inward"}),[m,g]=Ce.edges(a),p=c==="lowest"?"lowest":"highest",v=L.isEnd(t,g,g.path);Pe.splitNodes(t,{at:g,match:o,mode:p,voids:f,always:!v});var b=L.isStart(t,m,m.path);Pe.splitNodes(t,{at:m,match:o,mode:p,voids:f,always:!b}),a=h.unref(),r.at==null&&Pe.select(t,a)}i||(i=(j,R)=>j!==R);for(var[y,C]of L.nodes(t,{at:a,match:o,mode:c,voids:f})){var D={},A={};if(C.length!==0){var T=!1;for(var B in n)B==="children"||B==="text"||i(n[B],y[B])&&(T=!0,y.hasOwnProperty(B)&&(D[B]=y[B]),s?n[B]!=null&&(A[B]=s(y[B],n[B])):n[B]!=null&&(A[B]=n[B]));T&&t.apply({type:"set_node",path:C,properties:D,newProperties:A})}}}})},e9e=(e,t)=>{if(Ce.isCollapsed(t))return t.anchor;var[,n]=Ce.edges(t),r=L.pointRef(e,n);return Pe.delete(e,{at:t}),r.unref()},t9e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection,height:s=0,always:l=!1}=n;if(a==null&&(a=pe=>st.isElement(pe)&&L.isBlock(t,pe)),Ce.isRange(i)&&(i=e9e(t,i)),de.isPath(i)){var c=i,d=L.point(t,c),[f]=L.parent(t,c);a=pe=>pe===f,s=d.path.length-c.length+1,i=d,l=!0}if(i){var h=L.pointRef(t,i,{affinity:"backward"}),m;try{var[g]=L.nodes(t,{at:i,match:a,mode:r,voids:o});if(!g)return;var p=L.void(t,{at:i,mode:"highest"}),v=0;if(!o&&p){var[b,y]=p;if(st.isElement(b)&&t.isInline(b)){var C=L.after(t,y);if(!C){var D={text:""},A=de.next(y);Pe.insertNodes(t,D,{at:A,voids:o}),C=L.point(t,A)}i=C,l=!0}var T=i.path.length-y.length;s=T+1,l=!0}m=L.pointRef(t,i);var B=i.path.length-s,[,j]=g,R=i.path.slice(0,B),N=s===0?i.offset:i.path[B]+v;for(var[_,U]of L.levels(t,{at:R,reverse:!0,voids:o})){var V=!1;if(U.length<j.length||U.length===0||!o&&st.isElement(_)&&L.isVoid(t,_))break;var z=h.current,Y=L.isEnd(t,z,U);if(l||!h||!L.isEdge(t,z,U)){V=!0;var te=_e.extractProps(_);t.apply({type:"split_node",path:U,position:N,properties:te})}N=U[U.length-1]+(V||Y?1:0)}if(n.at==null){var se=m.current||L.end(t,[]);Pe.select(t,se)}}finally{var he;h.unref(),(he=m)===null||he===void 0||he.unref()}}})},n9e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var a of n)o[a]=null;Pe.setNodes(t,o,r)},r9e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:a=!1}=n,{at:i=t.selection,match:s}=n;if(i){s==null&&(s=de.isPath(i)?Sm(t,i):m=>st.isElement(m)&&L.isBlock(t,m)),de.isPath(i)&&(i=L.range(t,i));var l=Ce.isRange(i)?L.rangeRef(t,i):null,c=L.nodes(t,{at:i,match:s,mode:r,voids:a}),d=Array.from(c,m=>{var[,g]=m;return L.pathRef(t,g)}).reverse(),f=function(g){var p=g.unref(),[v]=L.node(t,p),b=L.range(t,p);o&&l&&(b=Ce.intersection(l.current,b)),Pe.liftNodes(t,{at:b,match:y=>st.isAncestor(v)&&v.children.includes(y),voids:a})};for(var h of d)f(h);l&&l.unref()}})};function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function F_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var o9e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L.withoutNormalizing(t,()=>{var{mode:o="lowest",split:a=!1,voids:i=!1}=r,{match:s,at:l=t.selection}=r;if(l){if(s==null&&(de.isPath(l)?s=Sm(t,l):t.isInline(n)?s=b=>st.isElement(b)&&L.isInline(t,b)||at.isText(b):s=b=>st.isElement(b)&&L.isBlock(t,b)),a&&Ce.isRange(l)){var[c,d]=Ce.edges(l),f=L.rangeRef(t,l,{affinity:"inward"});Pe.splitNodes(t,{at:d,match:s,voids:i}),Pe.splitNodes(t,{at:c,match:s,voids:i}),l=f.unref(),r.at==null&&Pe.select(t,l)}var h=Array.from(L.nodes(t,{at:l,match:t.isInline(n)?b=>st.isElement(b)&&L.isBlock(t,b):b=>L.isEditor(b),mode:"lowest",voids:i}));for(var[,m]of h){var g=Ce.isRange(l)?Ce.intersection(l,L.range(t,m)):l;if(g){var p=Array.from(L.nodes(t,{at:g,match:s,mode:o,voids:i}));if(p.length>0){var v=function(){var[b]=p,y=p[p.length-1],[,C]=b,[,D]=y;if(C.length===0&&D.length===0)return"continue";var A=de.equals(C,D)?de.parent(C):de.common(C,D),T=L.range(t,C,D),B=L.node(t,A),[j]=B,R=A.length+1,N=de.next(D.slice(0,R)),_=F_(F_({},n),{},{children:[]});Pe.insertNodes(t,_,{at:N,voids:i}),Pe.moveNodes(t,{at:T,match:U=>st.isAncestor(j)&&j.children.includes(U),to:N.concat(0),voids:i})}();if(v==="continue")continue}}}}})},tY=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aze(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hze(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gze(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vze(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bze(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cze(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Oze(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kze(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _He(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Bze(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Rze(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uze(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PHe(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lze(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dze(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fze(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mze(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pze(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FHe(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MHe(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WHe(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yze(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xze(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Cze(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wze(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Sze(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Vze(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Eze(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Ize(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Tze(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Aze(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GHe(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jze(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Nze(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Lze(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $ze(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Mze(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _ze(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Fze(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Wze(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zze(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YHe(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XHe(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zHe(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QHe(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Gze(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Yze(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Kze(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qze(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Xze(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jze(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Qze(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Zze(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nHe(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eHe(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tHe(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IHe(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return THe(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BHe(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AHe(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OHe(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZHe(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HHe(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JHe(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RHe(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UHe(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VHe(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t9e(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jHe(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NHe(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LHe(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n9e(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r9e(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Dze(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $He(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o9e(e,...r)}};return e},a9e={isHistory(e){return uo(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Cc.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Cc.isOperationList(e.undos[0].operations))}},pD=new WeakMap,gD=new WeakMap,wc={isHistoryEditor(e){return a9e.isHistory(e.history)&&L.isEditor(e)},isMerging(e){return gD.get(e)},isSaving(e){return pD.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=wc.isMerging(e);gD.set(e,!1),t(),gD.set(e,n)},withoutSaving(e,t){var n=wc.isSaving(e);pD.set(e,!1),t(),pD.set(e,n)}},i9e=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var a=o[o.length-1];a.selectionBefore&&Pe.setSelection(t,a.selectionBefore),wc.withoutSaving(t,()=>{L.withoutNormalizing(t,()=>{for(var i of a.operations)t.apply(i)})}),r.redos.pop(),t.writeHistory("undos",a)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var a=o[o.length-1];wc.withoutSaving(t,()=>{L.withoutNormalizing(t,()=>{var i=a.operations.map(Cc.inverse).reverse();for(var s of i)t.apply(s);a.selectionBefore&&Pe.setSelection(t,a.selectionBefore)})}),t.writeHistory("redos",a),r.undos.pop()}},t.apply=r=>{var{operations:o,history:a}=t,{undos:i}=a,s=i[i.length-1],l=s&&s.operations[s.operations.length-1],c=wc.isSaving(t),d=wc.isMerging(t);if(c==null&&(c=l9e(r)),c){if(d==null&&(s==null?d=!1:o.length!==0?d=!0:d=s9e(r,l)),s&&d)s.operations.push(r);else{var f={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",f)}for(;i.length>100;)i.shift();a.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},s9e=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&de.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&de.equals(e.path,t.path)),l9e=(e,t)=>e.type!=="set_selection";const c9e=()=>tY(),wmt=e=>e,nY=(e,t,n)=>L.pathRef(e,t,n),sT=(e,t,n)=>L.pointRef(e,t,n),Smt=(e,t)=>L.deleteBackward(e,t);var u9e=Array.isArray,d9e=u9e;function f9e(){if(!arguments.length)return[];var e=arguments[0];return d9e(e)?e:[e]}var M0=f9e;const Ai=e=>st.isElement(e),_g=(e,t)=>Ai(t)&&L.isBlock(e,t),rY=(e,t,n)=>n?typeof n=="object"?Object.entries(n).every(([r,o])=>M0(o).includes(e[r])):n(e,t):!0,zv=(e,t={})=>{const{match:n,block:r}=t;return{...t,match:n||r?(o,a)=>rY(o,a,n)&&(!r||_g(e,o)):void 0}},Fg=(e,t)=>L.above(e,zv(e,t)),oY=(e,t,n={})=>{const{voids:r,unhang:o=!0}=n;if(Ce.isRange(t)&&o)return L.unhangRange(e,t,{voids:r})},uP=(e,t)=>(oY(e,t==null?void 0:t.at,t),L.nodes(e,zv(e,t))),aY=(e,t,n)=>{try{return L.parent(e,t,n)}catch{}},iY=(e,t)=>L.previous(e,t),h9e=(e,t)=>L.isEmpty(e,t),tu=(e,t)=>{let n=!1;return L.withoutNormalizing(e,()=>{n=!!t()}),n},ji=e=>at.isText(e),sY=e=>ji(e)?!0:e.children.length===1&&sY(e.children[0]),m9e=(e,t)=>{Pe.delete(e,t)},lY=(e,t)=>Pe.moveNodes(e,t),Wg=(e,t)=>Pe.removeNodes(e,t),SC=(e,t)=>{Pe.select(e,t)},p9e=(e,t={})=>{tu(e,()=>{let{match:n,at:r=e.selection}=t;const{mergeNode:o,removeEmptyAncestor:a,hanging:i=!1,voids:s=!1,mode:l="lowest"}=t;if(!r)return;if(n==null)if(de.isPath(r)){const[R]=aY(e,r);n=N=>R.children.includes(N)}else n=R=>_g(e,R);if(!i&&Ce.isRange(r)&&(r=L.unhangRange(e,r)),Ce.isRange(r))if(Ce.isCollapsed(r))r=r.anchor;else{const[,R]=Ce.edges(r),N=sT(e,R);m9e(e,{at:r}),r=N.unref(),t.at==null&&SC(e,r)}const c=uP(e,{at:r,match:n,voids:s,mode:l}),[d]=Array.from(c),f=iY(e,{at:r,match:n,voids:s,mode:l});if(!d||!f)return;const[h,m]=d,[g,p]=f;if(m.length===0||p.length===0)return;const v=de.next(p),b=de.common(m,p),y=de.isSibling(m,p),C=L.levels(e,{at:m}),D=Array.from(C,([R])=>R).slice(b.length).slice(0,-1),A=Fg(e,{at:m,mode:"highest",match:R=>D.includes(R)&&Ai(R)&&sY(R)}),T=A&&nY(e,A[1]);let B,j;if(ji(h)&&ji(g)){const{text:R,...N}=h;j=g.text.length,B=N}else if(Ai(h)&&Ai(g)){const{children:R,...N}=h;j=g.children.length,B=N}else throw new Error(`Cannot merge the node at path [${m}] with the previous sibling because it is not the same kind: ${JSON.stringify(h)} ${JSON.stringify(g)}`);if(y||o||lY(e,{at:m,to:v,voids:s}),T)if(!a)Wg(e,{at:T.current,voids:s});else{const R=T.current;R&&a(e,{at:R})}o?o(e,{at:m,to:v}):Ai(g)&&h9e(e,g)||ji(g)&&g.text===""?Wg(e,{at:p,voids:s}):e.apply({type:"merge_node",path:v,position:j,properties:B}),T&&T.unref()})},dP=(e,t)=>L.end(e,t),W_=(e,t,n)=>L.leaf(e,t,n),z_=(e,t,n)=>L.after(e,t,n),px=(e,t,n)=>L.before(e,t,n),DC=(e,t)=>L.start(e,t),vD=(e,t)=>L.void(e,t),cY=(e,t)=>Ai(t)&&L.isVoid(e,t),Dmt=(e,t={})=>{tu(e,()=>{const{reverse:n=!1,unit:r="character",distance:o=1,voids:a=!1}=t;let{at:i=e.selection,hanging:s=!1}=t;if(!i)return;if(Ce.isRange(i)&&Ce.isCollapsed(i)&&(i=i.anchor),Wt.isPoint(i)){const B=vD(e,{at:i,mode:"highest"});if(!a&&B){const[,j]=B;i=j}else{const j={unit:r,distance:o},R=n?px(e,i,j)||DC(e,[]):z_(e,i,j)||dP(e,[]);i={anchor:i,focus:R},s=!0}}if(de.isPath(i)){Wg(e,{at:i,voids:a});return}if(Ce.isCollapsed(i))return;s||(i=L.unhangRange(e,i,{voids:a}));let[l,c]=Ce.edges(i);const d=Fg(e,{match:B=>_g(e,B),at:l,voids:a}),f=Fg(e,{match:B=>_g(e,B),at:c,voids:a}),h=d&&f&&!de.equals(d[1],f[1]),m=de.equals(l.path,c.path),g=a?null:vD(e,{at:l,mode:"highest"}),p=a?null:vD(e,{at:c,mode:"highest"});if(g){const B=px(e,l);B&&d&&de.isAncestor(d[1],B.path)&&(l=B)}if(p){const B=z_(e,c);B&&f&&de.isAncestor(f[1],B.path)&&(c=B)}const v=[];let b;const y=uP(e,{at:i,voids:a});for(const B of y){const[j,R]=B;b&&de.compare(R,b)===0||(!a&&cY(e,j)||!de.isCommon(R,l.path)&&!de.isCommon(R,c.path))&&(v.push(B),b=R)}const C=Array.from(v,([,B])=>nY(e,B)),D=sT(e,l),A=sT(e,c);if(!m&&!g){const B=D.current,[j]=W_(e,B),{path:R}=B,{offset:N}=l,_=j.text.slice(N);e.apply({type:"remove_text",path:R,offset:N,text:_})}for(const B of C){const j=B.unref();Wg(e,{at:j,voids:a})}if(!p){const B=A.current,[j]=W_(e,B),{path:R}=B,N=m?l.offset:0,_=j.text.slice(N,c.offset);e.apply({type:"remove_text",path:R,offset:N,text:_})}!m&&h&&A.current&&D.current&&p9e(e,{at:A.current,hanging:!0,voids:a});const T=A.unref()||D.unref();t.at==null&&T&&SC(e,T)})},g9e=(e,t)=>L.edges(e,t),uY=(e,t,n)=>{if(!t)return"";try{return L.string(e,t,n)}catch{return""}},Emt=(e,t)=>L.fragment(e,t),v9e=(e,t)=>L.last(e,t),fP=e=>L.marks(e),b9e=(e,t)=>L.next(e,t),y9e=(e,t,n)=>{try{return L.node(e,t,n)}catch{}},H_=(e,t,n)=>L.path(e,t,n),dY=(e,t,n)=>L.point(e,t,n),Imt=(e,t,n)=>L.range(e,t,n),lT=(e,t,n)=>!!t&&L.isEnd(e,t,n),x9e=(e,t)=>Ai(t)&&L.isInline(e,t),gx=(e,t,n)=>!!t&&L.isStart(e,t,n),fY=(e,t)=>L.normalize(e,t),C9e=(e,t)=>L.removeMark(e,t),Tmt=(e,t)=>wc.withoutMerging(e,t),Amt=(e,t)=>wc.withoutSaving(e,t),Omt=(e,t,n)=>_e.common(e,t,n),cT=(e,t)=>{try{for(let n=0;n<t.length;n++){const r=t[n];if(ji(e)||!e.children[r])return null;e=e.children[r]}return e}catch{return null}},w9e=(e,t,n)=>_e.children(e,t,n),S9e=(e,t)=>_e.descendants(e,t),Bmt=(e,t)=>_e.leaf(e,t),kmt=e=>_e.extractProps(e),D9e=e=>_e.string(e),Pmt=(e,t)=>_e.texts(e,t),Rmt=(e,t)=>_e.nodes(e,t),jmt=(e,t)=>_e.has(e,t),hP=e=>st.isAncestor(e),Nmt=e=>!!e&&Ce.isCollapsed(e),mP=e=>!!e&&Ce.isExpanded(e),Lmt=(e,t)=>{Pe.collapse(e,t)},E9e=e=>{Pe.deselect(e)},$mt=(e,t,n)=>{Pe.insertFragment(e,t,n)},hY=(e,t,n)=>Pe.insertNodes(e,t,n),Mmt=(e,t,n)=>{Pe.insertText(e,t,n)},_mt=(e,t)=>{Pe.move(e,t)},I9e=(e,t,n)=>Pe.setNodes(e,t,n),Fmt=(e,t)=>{Pe.setSelection(e,t)},Wmt=(e,t)=>Pe.splitNodes(e,t),T9e=(e,t,n)=>Pe.unsetNodes(e,t,n),zmt=(e,t)=>{Pe.unwrapNodes(e,zv(e,t))},A9e=(e,t,n)=>{oY(e,n==null?void 0:n.at,n),Pe.wrapNodes(e,t,n)},O9e=(e,{filter:t,allow:n,exclude:r,level:o,maxLevel:a}={})=>{if(!e)return!1;const[i,s]=e;if(o&&!M0(o).includes(s.length)||a&&s.length>a||t&&!t(e))return!1;if(n){const l=M0(n);if(l.length&&!l.includes(i.type))return!1}if(r){const l=M0(r);if(l.length&&l.includes(i.type))return!1}return!0},B9e=(e,t={})=>{try{const n=uP(e,{at:e.selection||[],...zv(e,t)});for(const[r,o]of n)return[r,o]}catch{return}},k9e=(e,t)=>!!B9e(e,t),P9e=(e,t,n)=>I9e(e,t,n);var R9e=L9e,mY="֑-߿יִ-﷽ﹰ-ﻼ",pY="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",j9e=new RegExp("^[^"+pY+"]*["+mY+"]"),N9e=new RegExp("^[^"+mY+"]*["+pY+"]");function L9e(e){return e=String(e||""),j9e.test(e)?"rtl":N9e.test(e)?"ltr":"neutral"}const gY=jr(R9e);function $9e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pP=$9e,M9e=typeof yr=="object"&&yr&&yr.Object===Object&&yr,_9e=M9e,F9e=_9e,W9e=typeof self=="object"&&self&&self.Object===Object&&self,z9e=F9e||W9e||Function("return this")(),vY=z9e,H9e=vY,U9e=function(){return H9e.Date.now()},V9e=U9e,G9e=/\s/;function Y9e(e){for(var t=e.length;t--&&G9e.test(e.charAt(t)););return t}var K9e=Y9e,q9e=K9e,X9e=/^\s+/;function Q9e(e){return e&&e.slice(0,q9e(e)+1).replace(X9e,"")}var Z9e=Q9e,J9e=vY,e7e=J9e.Symbol,bY=e7e,U_=bY,yY=Object.prototype,t7e=yY.hasOwnProperty,n7e=yY.toString,hp=U_?U_.toStringTag:void 0;function r7e(e){var t=t7e.call(e,hp),n=e[hp];try{e[hp]=void 0;var r=!0}catch{}var o=n7e.call(e);return r&&(t?e[hp]=n:delete e[hp]),o}var o7e=r7e,a7e=Object.prototype,i7e=a7e.toString;function s7e(e){return i7e.call(e)}var l7e=s7e,V_=bY,c7e=o7e,u7e=l7e,d7e="[object Null]",f7e="[object Undefined]",G_=V_?V_.toStringTag:void 0;function h7e(e){return e==null?e===void 0?f7e:d7e:G_&&G_ in Object(e)?c7e(e):u7e(e)}var m7e=h7e;function p7e(e){return e!=null&&typeof e=="object"}var g7e=p7e,v7e=m7e,b7e=g7e,y7e="[object Symbol]";function x7e(e){return typeof e=="symbol"||b7e(e)&&v7e(e)==y7e}var C7e=x7e,w7e=Z9e,Y_=pP,S7e=C7e,K_=NaN,D7e=/^[-+]0x[0-9a-f]+$/i,E7e=/^0b[01]+$/i,I7e=/^0o[0-7]+$/i,T7e=parseInt;function A7e(e){if(typeof e=="number")return e;if(S7e(e))return K_;if(Y_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=w7e(e);var n=E7e.test(e);return n||I7e.test(e)?T7e(e.slice(2),n?2:8):D7e.test(e)?K_:+e}var O7e=A7e,B7e=pP,bD=V9e,q_=O7e,k7e="Expected a function",P7e=Math.max,R7e=Math.min;function j7e(e,t,n){var r,o,a,i,s,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(k7e);t=q_(t)||0,B7e(n)&&(d=!!n.leading,f="maxWait"in n,a=f?P7e(q_(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(T){var B=r,j=o;return r=o=void 0,c=T,i=e.apply(j,B),i}function g(T){return c=T,s=setTimeout(b,t),d?m(T):i}function p(T){var B=T-l,j=T-c,R=t-B;return f?R7e(R,a-j):R}function v(T){var B=T-l,j=T-c;return l===void 0||B>=t||B<0||f&&j>=a}function b(){var T=bD();if(v(T))return y(T);s=setTimeout(b,p(T))}function y(T){return s=void 0,h&&r?m(T):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function D(){return s===void 0?i:y(bD())}function A(){var T=bD(),B=v(T);if(r=arguments,o=this,l=T,B){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),i}return A.cancel=C,A.flush=D,A}var xY=j7e;const N7e=jr(xY);var L7e=xY,$7e=pP,M7e="Expected a function";function _7e(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(M7e);return $7e(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),L7e(e,t,{leading:r,maxWait:t,trailing:o})}var F7e=_7e;const W7e=jr(F7e);function X_(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Q_(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function yD(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Q_(n.overflowY,t)||Q_(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Yb(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}var Z_=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,l=typeof i=="function"?i:function(Je){return Je!==i};if(!X_(e))throw new TypeError("Invalid target");for(var c,d,f=document.scrollingElement||document.documentElement,h=[],m=e;X_(m)&&l(m);){if((m=(d=(c=m).parentElement)==null?c.getRootNode().host||null:d)===f){h.push(m);break}m!=null&&m===document.body&&yD(m)&&!yD(document.documentElement)||m!=null&&yD(m,s)&&h.push(m)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),C=y.height,D=y.width,A=y.top,T=y.right,B=y.bottom,j=y.left,R=o==="start"||o==="nearest"?A:o==="end"?B:A+C/2,N=a==="center"?j+D/2:a==="end"?T:j,_=[],U=0;U<h.length;U++){var V=h[U],z=V.getBoundingClientRect(),Y=z.height,te=z.width,se=z.top,he=z.right,pe=z.bottom,K=z.left;if(r==="if-needed"&&A>=0&&j>=0&&B<=p&&T<=g&&A>=se&&B<=pe&&j>=K&&T<=he)return _;var O=getComputedStyle(V),le=parseInt(O.borderLeftWidth,10),be=parseInt(O.borderTopWidth,10),H=parseInt(O.borderRightWidth,10),ie=parseInt(O.borderBottomWidth,10),oe=0,ve=0,$e="offsetWidth"in V?V.offsetWidth-V.clientWidth-le-H:0,Ne="offsetHeight"in V?V.offsetHeight-V.clientHeight-be-ie:0,Ze="offsetWidth"in V?V.offsetWidth===0?0:te/V.offsetWidth:0,ze="offsetHeight"in V?V.offsetHeight===0?0:Y/V.offsetHeight:0;if(f===V)oe=o==="start"?R:o==="end"?R-p:o==="nearest"?Yb(b,b+p,p,be,ie,b+R,b+R+C,C):R-p/2,ve=a==="start"?N:a==="center"?N-g/2:a==="end"?N-g:Yb(v,v+g,g,le,H,v+N,v+N+D,D),oe=Math.max(0,oe+b),ve=Math.max(0,ve+v);else{oe=o==="start"?R-se-be:o==="end"?R-pe+ie+Ne:o==="nearest"?Yb(se,pe,Y,be,ie+Ne,R,R+C,C):R-(se+Y/2)+Ne/2,ve=a==="start"?N-K-le:a==="center"?N-(K+te/2)+$e/2:a==="end"?N-he+H+$e:Yb(K,he,te,le,H+$e,N,N+D,D);var Xe=V.scrollLeft,Me=V.scrollTop;R+=Me-(oe=Math.max(0,Math.min(Me+oe/ze,V.scrollHeight-Y/ze+Ne))),N+=Xe-(ve=Math.max(0,Math.min(Xe+ve/Ze,V.scrollWidth-te/Ze+$e)))}_.push({el:V,top:oe,left:ve})}return _};function CY(e){return e===Object(e)&&Object.keys(e).length!==0}function z7e(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,i=r.left;o.scroll&&n?o.scroll({top:a,left:i,behavior:t}):(o.scrollTop=a,o.scrollLeft=i)})}function H7e(e){return e===!1?{block:"end",inline:"nearest"}:CY(e)?e:{block:"start",inline:"nearest"}}function U7e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(CY(t)&&typeof t.behavior=="function")return t.behavior(n?Z_(e,t):[]);if(n){var r=H7e(t);return z7e(Z_(e,r),r.behavior)}}var Ju=[],V7e=function(){return Ju.some(function(e){return e.activeTargets.length>0})},G7e=function(){return Ju.some(function(e){return e.skippedTargets.length>0})},J_="ResizeObserver loop completed with undelivered notifications.",Y7e=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:J_}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=J_),window.dispatchEvent(e)},zg;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(zg||(zg={}));var ed=function(e){return Object.freeze(e)},K7e=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ed(this)}return e}(),wY=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ed(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,a=t.right,i=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:o,right:a,bottom:i,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),gP=function(e){return e instanceof SVGElement&&"getBBox"in e},SY=function(e){if(gP(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,a=o.offsetWidth,i=o.offsetHeight;return!(a||i||e.getClientRects().length)},eF=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},q7e=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Xp=typeof window<"u"?window:{},Kb=new WeakMap,tF=/auto|scroll/,X7e=/^tb|vertical/,Q7e=/msie|trident/i.test(Xp.navigator&&Xp.navigator.userAgent),is=function(e){return parseFloat(e||"0")},Yf=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new K7e((n?t:e)||0,(n?e:t)||0)},nF=ed({devicePixelContentBoxSize:Yf(),borderBoxSize:Yf(),contentBoxSize:Yf(),contentRect:new wY(0,0,0,0)}),DY=function(e,t){if(t===void 0&&(t=!1),Kb.has(e)&&!t)return Kb.get(e);if(SY(e))return Kb.set(e,nF),nF;var n=getComputedStyle(e),r=gP(e)&&e.ownerSVGElement&&e.getBBox(),o=!Q7e&&n.boxSizing==="border-box",a=X7e.test(n.writingMode||""),i=!r&&tF.test(n.overflowY||""),s=!r&&tF.test(n.overflowX||""),l=r?0:is(n.paddingTop),c=r?0:is(n.paddingRight),d=r?0:is(n.paddingBottom),f=r?0:is(n.paddingLeft),h=r?0:is(n.borderTopWidth),m=r?0:is(n.borderRightWidth),g=r?0:is(n.borderBottomWidth),p=r?0:is(n.borderLeftWidth),v=f+c,b=l+d,y=p+m,C=h+g,D=s?e.offsetHeight-C-e.clientHeight:0,A=i?e.offsetWidth-y-e.clientWidth:0,T=o?v+y:0,B=o?b+C:0,j=r?r.width:is(n.width)-T-A,R=r?r.height:is(n.height)-B-D,N=j+v+A+y,_=R+b+D+C,U=ed({devicePixelContentBoxSize:Yf(Math.round(j*devicePixelRatio),Math.round(R*devicePixelRatio),a),borderBoxSize:Yf(N,_,a),contentBoxSize:Yf(j,R,a),contentRect:new wY(f,l,j,R)});return Kb.set(e,U),U},EY=function(e,t,n){var r=DY(e,n),o=r.borderBoxSize,a=r.contentBoxSize,i=r.devicePixelContentBoxSize;switch(t){case zg.DEVICE_PIXEL_CONTENT_BOX:return i;case zg.BORDER_BOX:return o;default:return a}},Z7e=function(){function e(t){var n=DY(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ed([n.borderBoxSize]),this.contentBoxSize=ed([n.contentBoxSize]),this.devicePixelContentBoxSize=ed([n.devicePixelContentBoxSize])}return e}(),IY=function(e){if(SY(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},J7e=function(){var e=1/0,t=[];Ju.forEach(function(i){if(i.activeTargets.length!==0){var s=[];i.activeTargets.forEach(function(c){var d=new Z7e(c.target),f=IY(c.target);s.push(d),c.lastReportedSize=EY(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){i.callback.call(i.observer,s,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},rF=function(e){Ju.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(IY(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},eUe=function(){var e=0;for(rF(e);V7e();)e=J7e(),rF(e);return G7e()&&Y7e(),e>0},xD,TY=[],tUe=function(){return TY.splice(0).forEach(function(e){return e()})},nUe=function(e){if(!xD){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return tUe()}).observe(n,r),xD=function(){n.textContent="".concat(t?t--:t++)}}TY.push(e),xD()},rUe=function(e){nUe(function(){requestAnimationFrame(e)})},_0=0,oUe=function(){return!!_0},aUe=250,iUe={attributes:!0,characterData:!0,childList:!0,subtree:!0},oF=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],aF=function(e){return e===void 0&&(e=0),Date.now()+e},CD=!1,sUe=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=aUe),!CD){CD=!0;var r=aF(t);rUe(function(){var o=!1;try{o=eUe()}finally{if(CD=!1,t=r-aF(),!oUe())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,iUe)};document.body?n():Xp.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),oF.forEach(function(n){return Xp.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),oF.forEach(function(n){return Xp.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),uT=new sUe,iF=function(e){!_0&&e>0&&uT.start(),_0+=e,!_0&&uT.stop()},lUe=function(e){return!gP(e)&&!q7e(e)&&getComputedStyle(e).display==="inline"},cUe=function(){function e(t,n){this.target=t,this.observedBox=n||zg.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=EY(this.target,this.observedBox,!0);return lUe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),uUe=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),qb=new WeakMap,sF=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xb=function(){function e(){}return e.connect=function(t,n){var r=new uUe(t,n);qb.set(t,r)},e.observe=function(t,n,r){var o=qb.get(t),a=o.observationTargets.length===0;sF(o.observationTargets,n)<0&&(a&&Ju.push(o),o.observationTargets.push(new cUe(n,r&&r.box)),iF(1),uT.schedule())},e.unobserve=function(t,n){var r=qb.get(t),o=sF(r.observationTargets,n),a=r.observationTargets.length===1;o>=0&&(a&&Ju.splice(Ju.indexOf(r),1),r.observationTargets.splice(o,1),iF(-1))},e.disconnect=function(t){var n=this,r=qb.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),dUe=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xb.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eF(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xb.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eF(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xb.unobserve(this,t)},e.prototype.disconnect=function(){Xb.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});var fUe=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),wD={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},hUe={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:fUe?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},AY={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(var Qb=1;Qb<20;Qb++)AY["f"+Qb]=111+Qb;function EC(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(i){return OY(i,t)}),o=function(s){return r.some(function(l){return BY(l,s)})},a=n==null?o:o(n);return a}function mUe(e,t){return EC(e,t)}function pUe(e,t){return EC(e,{byKey:!0},t)}function OY(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var i in wD)r[wD[i]]=!1;var s=!0,l=!1,c=void 0;try{for(var d=o[Symbol.iterator](),f;!(s=(f=d.next()).done);s=!0){var h=f.value,m=h.endsWith("?")&&h.length>1;m&&(h=h.slice(0,-1));var g=vP(h),p=wD[g];(a===1||!p)&&(n?r.key=g:r.which=kY(h)),p&&(r[p]=m?null:!0)}}catch(v){l=!0,c=v}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}return r}function BY(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function kY(e){e=vP(e);var t=AY[e]||e.toUpperCase().charCodeAt(0);return t}function vP(e){return e=e.toLowerCase(),e=hUe[e]||e,e}var Hmt=Ul.default=EC;Ul.isHotkey=EC;Ul.isCodeHotkey=mUe;var SD=Ul.isKeyHotkey=pUe;Ul.parseHotkey=OY;Ul.compareHotkey=BY;Ul.toKeyCode=kY;Ul.toKeyName=vP;function IC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Eh(e,t){if(e==null)return{};var n=gUe(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var bP=x.createContext(null),Vl=()=>{var e=x.useContext(bP);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},vUe=parseInt(W.version.split(".")[0],10)>=17,bUe=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,lF=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Da=typeof navigator<"u"&&/Android/.test(navigator.userAgent),vx=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ap=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),yUe=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),PY=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),xUe=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),CUe=Da&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),wUe=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),SUe=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),DUe=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent),F0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ql=(!xUe||!CUe)&&!yUe&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",yP=new WeakMap,xP=new WeakMap,RY=new WeakMap,W0=new WeakMap,dT=new WeakMap,Hg=new WeakMap,td=new WeakMap,fT=new WeakMap,TC=new WeakMap,hT=new WeakMap,Mu=new WeakMap,_u=new WeakMap,Qp=new WeakMap,mT=new WeakMap,CP=new WeakMap,Oi=new WeakMap,ml=new WeakMap,na=new WeakMap,tc=new WeakMap,nc=new WeakMap,jY=new WeakMap,Ih=Symbol("placeholder"),NY=Symbol("mark-placeholder"),EUe=globalThis.Text,wP=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,IUe=e=>$c(e)&&e.nodeType===8,Qa=e=>$c(e)&&e.nodeType===1,$c=e=>{var t=wP(e);return!!t&&e instanceof t.Node},pT=e=>{var t=e&&e.anchorNode&&wP(e.anchorNode);return!!t&&e instanceof t.Selection},LY=e=>$c(e)&&e.nodeType===3,TUe=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,AUe=e=>{var[t,n]=e;if(Qa(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=$Y(t,o,r?"backward":"forward"),r=o<n;Qa(t)&&t.childNodes.length;){var a=r?t.childNodes.length-1:0;t=BUe(t,a,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},OUe=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},$Y=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],a=t,i=!1,s=!1;(IUe(o)||Qa(o)&&o.childNodes.length===0||Qa(o)&&o.getAttribute("contenteditable")==="false")&&!(i&&s);){if(a>=r.length){i=!0,a=t-1,n="backward";continue}if(a<0){s=!0,a=t+1,n="forward";continue}o=r[a],t=a,a+=n==="forward"?1:-1}return[o,t]},BUe=(e,t,n)=>{var[r]=$Y(e,t,n);return r},MY=e=>{var t="";if(LY(e)&&e.nodeValue)return e.nodeValue;if(Qa(e)){for(var n of Array.from(e.childNodes))t+=MY(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
`)}return t},kUe=/data-slate-fragment="(.+?)"/m,PUe=e=>{var t=e.getData("text/html"),[,n]=t.match(kUe)||[];return n},SP=(e,t,n)=>{var{target:r}=t;if(Qa(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Oe.getWindow(e);if(o.contains(r))return Oe.hasDOMNode(e,r,{editable:!0});var a=n.find(i=>{var{addedNodes:s,removedNodes:l}=i;for(var c of s)if(c===r||c.contains(r))return!0;for(var d of l)if(d===r||d.contains(r))return!0});return!a||a===t?!1:SP(e,a,n)},RUe=0;class jUe{constructor(){this.id="".concat(RUe++)}}var Oe={androidPendingDiffs:e=>na.get(e),androidScheduleFlush:e=>{var t;(t=CP.get(e))===null||t===void 0||t()},blur:e=>{var t=Oe.toDOMNode(e,e),n=Oe.findDocumentOrShadowRoot(e);Mu.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Oe.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&Pe.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Oe.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var a=Oe.toSlateNode(e,t.target),i=Oe.findPath(e,a);if(st.isElement(a)&&L.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=L.point(e,i,{edge:l?"start":"end"}),d=l?L.before(e,c):L.after(e,c);if(d){var f=L.range(e,d);return f}}var h,{document:m}=Oe.getWindow(e);if(m.caretRangeFromPoint)h=m.caretRangeFromPoint(n,r);else{var g=m.caretPositionFromPoint(n,r);g&&(h=m.createRange(),h.setStart(g.offsetNode,g.offset),h.setEnd(g.offsetNode,g.offset))}if(!h)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var p=Oe.toSlateRange(e,h,{exactMatch:!1,suppressThrow:!1});return p},findKey:(e,t)=>{var n=fT.get(t);return n||(n=new jUe,fT.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=xP.get(r);if(o==null){if(L.isEditor(r))return n;break}var a=yP.get(r);if(a==null)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: ".concat(to.stringify(t)))},focus:e=>{var t=Oe.toDOMNode(e,e),n=Oe.findDocumentOrShadowRoot(e);Mu.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:e=>{var t=RY.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,a=Oe.toDOMNode(t,t),i;try{i=Qa(n)?n:n.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return i?i.closest("[data-slate-editor]")===a&&(!o||i.isContentEditable?!0:typeof i.isContentEditable=="boolean"&&i.closest('[contenteditable="false"]')===a||!!i.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>$c(t)&&Oe.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return L.hasPath(e,n.path)&&L.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Oe.hasEditableTarget(e,t)||Oe.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>$c(t)&&Oe.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!_u.get(e),isFocused:e=>!!Mu.get(e),isReadOnly:e=>!!hT.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(hT.get(e))return!1;var n=Oe.hasTarget(e,t)&&Oe.toSlateNode(e,t);return st.isElement(n)&&L.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=TC.get(e),r=L.isEditor(t)?W0.get(e):n==null?void 0:n.get(Oe.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(to.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=L.node(e,t.path),r=Oe.toDOMNode(e,n),o;L.void(e,{at:t})&&(t={path:t.path,offset:0});for(var a="[data-slate-string], [data-slate-zero-width]",i=Array.from(r.querySelectorAll(a)),s=0,l=0;l<i.length;l++){var c=i[l],d=c.childNodes[0];if(!(d==null||d.textContent==null)){var{length:f}=d.textContent,h=c.getAttribute("data-slate-length"),m=h==null?f:parseInt(h,10),g=s+m,p=i[l+1];if(t.offset===g&&p!==null&&p!==void 0&&p.hasAttribute("data-slate-mark-placeholder")){var v,b=p.childNodes[0];o=[b instanceof EUe?b:p,(v=p.textContent)!==null&&v!==void 0&&v.startsWith("\uFEFF")?1:0];break}if(t.offset<=g){var y=Math.min(f,Math.max(0,t.offset-s));o=[d,y];break}s=g}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(to.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Ce.isBackward(t),a=Oe.toDOMPoint(e,n),i=Ce.isCollapsed(t)?a:Oe.toDOMPoint(e,r),s=Oe.getWindow(e),l=s.document.createRange(),[c,d]=o?i:a,[f,h]=o?a:i,m=Qa(c)?c:c.parentElement,g=!!m.getAttribute("data-slate-zero-width"),p=Qa(f)?f:f.parentElement,v=!!p.getAttribute("data-slate-zero-width");return l.setStart(c,g?1:d),l.setEnd(f,v?1:h),l},toSlateNode:(e,t)=>{var n=Qa(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Hg.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[a,i]=r?t:AUe(t),s=a.parentNode,l=null,c=0;if(s){var d,f,h=Oe.toDOMNode(e,e),m=s.closest('[data-slate-void="true"]'),g=m&&h.contains(m)?m:null,p=s.closest("[data-slate-leaf]"),v=null;if(p){if(l=p.closest('[data-slate-node="text"]'),l){var b=Oe.getWindow(e),y=b.document.createRange();y.setStart(l,0),y.setEnd(a,i);var C=y.cloneContents(),D=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];D.forEach(z=>{if(Da&&!r&&z.hasAttribute("data-slate-zero-width")&&z.textContent.length>0&&z.textContext!=="\uFEFF"){z.textContent.startsWith("\uFEFF")&&(z.textContent=z.textContent.slice(1));return}z.parentNode.removeChild(z)}),c=C.textContent.length,v=l}}else if(g){for(var A=g.querySelectorAll("[data-slate-leaf]"),T=0;T<A.length;T++){var B=A[T];if(Oe.hasDOMNode(e,B)){p=B;break}}p?(l=p.closest('[data-slate-node="text"]'),v=p,c=v.textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(z=>{c-=z.textContent.length})):c=1}v&&c===v.textContent.length&&Da&&v.getAttribute("data-slate-zero-width")==="z"&&(d=v.textContent)!==null&&d!==void 0&&d.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||vx&&(f=v.textContent)!==null&&f!==void 0&&f.endsWith(`

`))&&c--}if(Da&&!l&&!r){var j=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(j&&Oe.hasDOMNode(e,j,{editable:!0})){var R=Oe.toSlateNode(e,j),{path:N,offset:_}=L.start(e,Oe.findPath(e,R));return j.querySelector("[data-slate-leaf]")||(_=i),{path:N,offset:_}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var U=Oe.toSlateNode(e,l),V=Oe.findPath(e,U);return{path:V,offset:c}},toSlateRange:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,a=pT(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a&&(pT(t)?(i=t.anchorNode,s=t.anchorOffset,l=t.focusNode,c=t.focusOffset,PY&&OUe(i)?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed):(i=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset,d=t.collapsed)),i==null||l==null||s==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if("getAttribute"in l&&l.getAttribute("contenteditable")==="false"){var f;l=i,c=((f=i.textContent)===null||f===void 0?void 0:f.length)||0}var h=Oe.toSlatePoint(e,[i,s],{exactMatch:r,suppressThrow:o});if(!h)return null;var m=d?h:Oe.toSlatePoint(e,[l,c],{exactMatch:r,suppressThrow:o});if(!m)return null;if(vx&&!d&&i!==l){var g=L.isEnd(e,h,h.path),p=L.isStart(e,m,m.path);if(g){var v=L.after(e,h);h=v||h}if(p){var b=L.before(e,m);m=b||m}}var y={anchor:h,focus:m};return Ce.isExpanded(y)&&Ce.isForward(y)&&Qa(l)&&L.void(e,{at:y.focus,mode:"highest"})&&(y=L.unhangRange(e,y,{voids:!0})),y}};function NUe(e,t){var{path:n,diff:r}=t;if(!L.hasPath(e,n))return!1;var o=_e.get(e,n);if(!at.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var a=de.next(n);if(!L.hasPath(e,a))return!1;var i=_e.get(e,a);return at.isText(i)&&i.text.startsWith(r.text)}function _Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,a)=>o.slice(0,a.start)+a.text+o.slice(a.end),e)}function LUe(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function $Ue(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function FY(e,t){var{start:n,end:r,text:o}=t,a=e.slice(n,r),i=LUe(a,o),s=Math.min(a.length-i,o.length-i),l=$Ue(a,o,s),c={start:n+i,end:r-l,text:o.slice(i,o.length-l)};return c.start===c.end&&c.text.length===0?null:c}function MUe(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),a=_Y(e,t,n),i=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=a.slice(r,i),l=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return FY(e,{start:r,end:l,text:s})}function _Ue(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function gT(e,t){var{path:n,offset:r}=t;if(!L.hasPath(e,n))return null;var o=_e.get(e,n);if(!at.isText(o))return null;var a=L.above(e,{match:s=>st.isElement(s)&&L.isBlock(e,s),at:n});if(!a)return null;for(;r>o.text.length;){var i=L.next(e,{at:n,match:at.isText});if(!i||!de.isDescendant(i[1],a[1]))return null;r-=o.text.length,o=i[0],n=i[1]}return{path:n,offset:r}}function cF(e,t){var n=gT(e,t.anchor);if(!n)return null;if(Ce.isCollapsed(t))return{anchor:n,focus:n};var r=gT(e,t.focus);return r?{anchor:n,focus:r}:null}function vT(e,t,n){var r=na.get(e),o=r==null?void 0:r.find(d=>{var{path:f}=d;return de.equals(f,t.path)});if(!o||t.offset<=o.diff.start)return Wt.transform(t,n,{affinity:"backward"});var{diff:a}=o;if(t.offset<=a.start+a.text.length){var i={path:t.path,offset:a.start},s=Wt.transform(i,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-a.start}:null}var l={path:t.path,offset:t.offset-a.text.length+a.end-a.start},c=Wt.transform(l,n,{affinity:"backward"});return c?n.type==="split_node"&&de.equals(n.path,t.path)&&l.offset<n.position&&a.start<n.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function uF(e,t,n){var r=vT(e,t.anchor,n);if(!r)return null;if(Ce.isCollapsed(t))return{anchor:r,focus:r};var o=vT(e,t.focus,n);return o?{anchor:r,focus:o}:null}function FUe(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!de.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!de.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!de.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:de.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:de.transform(n,t,{affinity:"forward"})};case"merge_node":return de.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:de.transform(n,t)}:{diff:r,id:o,path:de.transform(n,t)}}var a=de.transform(n,t);return a?{diff:r,path:a,id:o}:null}function dF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dF(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WUe=25,zUe=200,HUe=function(){},UUe=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function VUe(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,a=null,i=null,s=null,l=0,c=!1,d=()=>{var U=nc.get(t);if(nc.delete(t),U){var{selection:V}=t,z=cF(t,U);z&&(!V||!Ce.equals(z,V))&&Pe.select(t,z)}},f=()=>{var U=tc.get(t);if(tc.delete(t),!!U){if(U.at){var V=Wt.isPoint(U.at)?gT(t,U.at):cF(t,U.at);if(!V)return;var z=L.range(t,V);(!t.selection||!Ce.equals(t.selection,z))&&Pe.select(t,V)}U.run()}},h=()=>{if(i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null),!D()&&!C()){d();return}o||(o=!0,setTimeout(()=>o=!1)),C()&&(o="action");var U=t.selection&&L.rangeRef(t,t.selection,{affinity:"forward"});ml.set(t,t.marks),HUe("flush",tc.get(t),na.get(t));for(var V=D(),z;z=(Y=na.get(t))===null||Y===void 0?void 0:Y[0];){var Y,te,se=Oi.get(t);se!==void 0&&(Oi.delete(t),t.marks=se),se&&c===!1&&(c=null);var he=_Ue(z);(!t.selection||!Ce.equals(t.selection,he))&&Pe.select(t,he),z.diff.text?L.insertText(t,z.diff.text):L.deleteFragment(t),na.set(t,(te=na.get(t))===null||te===void 0?void 0:te.filter(O=>{var{id:le}=O;return le!==z.id})),NUe(t,z)||(V=!1,tc.delete(t),ml.delete(t),o="action",nc.delete(t),n.cancel(),r.cancel(),U==null||U.unref())}var pe=U==null?void 0:U.unref();if(pe&&!nc.get(t)&&(!t.selection||!Ce.equals(pe,t.selection))&&Pe.select(t,pe),C()){f();return}V&&n(),n.flush(),r.flush(),d();var K=ml.get(t);ml.delete(t),K!==void 0&&(t.marks=K,t.onChange())},m=U=>{a&&clearTimeout(a),a=setTimeout(()=>{_u.set(t,!1),h()},WUe)},g=U=>{_u.set(t,!0),a&&(clearTimeout(a),a=null)},p=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,z=dT.get(t);if(z){if(D()||V){z.style.display="none";return}z.style.removeProperty("display")}},v=(U,V)=>{var z,Y=(z=na.get(t))!==null&&z!==void 0?z:[];na.set(t,Y);var te=_e.leaf(t,U),se=Y.findIndex(K=>de.equals(K.path,U));if(se<0){var he=FY(te.text,V);he&&Y.push({path:U,diff:V,id:l++}),p();return}var pe=MUe(te.text,Y[se].diff,V);if(!pe){Y.splice(se,1),p();return}Y[se]=Zb(Zb({},Y[se]),{},{diff:pe})},b=function(V){var{at:z}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,nc.delete(t),n.cancel(),r.cancel(),C()&&h(),tc.set(t,{at:z,run:V}),s=setTimeout(h)},y=U=>{var V;i&&(clearTimeout(i),i=null);var{inputType:z}=U,Y=null,te=U.dataTransfer||U.data||void 0;c!==!1&&z!=="insertText"&&z!=="insertCompositionText"&&(c=!1);var[se]=U.getTargetRanges();se&&(Y=Oe.toSlateRange(t,se,{exactMatch:!1,suppressThrow:!0}));var he=Oe.getWindow(t),pe=he.getSelection();if(!Y&&pe&&(se=pe,Y=Oe.toSlateRange(t,pe,{exactMatch:!1,suppressThrow:!0})),Y=(V=Y)!==null&&V!==void 0?V:t.selection,!!Y){var K=!0;if(z.startsWith("delete")){if(Ce.isExpanded(Y)){var[O,le]=Ce.edges(Y),be=_e.leaf(t,O.path);if(be.text.length===O.offset&&le.offset===0){var H=L.next(t,{at:O.path,match:at.isText});H&&de.equals(H[1],le.path)&&(Y={anchor:le,focus:le})}}var ie=z.endsWith("Backward")?"backward":"forward",[oe,ve]=Ce.edges(Y),[$e,Ne]=L.leaf(t,oe.path),Ze={text:"",start:oe.offset,end:ve.offset},ze=na.get(t),Xe=ze==null?void 0:ze.find(Qe=>de.equals(Qe.path,Ne)),Me=Xe?[Xe.diff,Ze]:[Ze],Je=_Y($e.text,...Me);if(Je.length===0&&(K=!1),Ce.isExpanded(Y)){if(K&&de.equals(Y.anchor.path,Y.focus.path)){var pt={path:Y.anchor.path,offset:oe.offset},ot=L.range(t,pt,pt);return B(ot),v(Y.anchor.path,{text:"",end:ve.offset,start:oe.offset})}return b(()=>L.deleteFragment(t,{direction:ie}),{at:Y})}}switch(z){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return b(()=>L.deleteFragment(t),{at:Y});case"deleteContent":case"deleteContentForward":{var{anchor:Et}=Y;if(K&&Ce.isCollapsed(Y)){var Vt=_e.leaf(t,Et.path);if(Et.offset<Vt.text.length)return v(Et.path,{text:"",start:Et.offset,end:Et.offset+1})}return b(()=>L.deleteForward(t),{at:Y})}case"deleteContentBackward":{var nt,{anchor:Ee}=Y,kt=pT(se)?se.isCollapsed:!!((nt=se)!==null&&nt!==void 0&&nt.collapsed);return K&&kt&&Ce.isCollapsed(Y)&&Ee.offset>0?v(Ee.path,{text:"",start:Ee.offset-1,end:Ee.offset}):b(()=>L.deleteBackward(t),{at:Y})}case"deleteEntireSoftLine":return b(()=>{L.deleteBackward(t,{unit:"line"}),L.deleteForward(t,{unit:"line"})},{at:Y});case"deleteHardLineBackward":return b(()=>L.deleteBackward(t,{unit:"block"}),{at:Y});case"deleteSoftLineBackward":return b(()=>L.deleteBackward(t,{unit:"line"}),{at:Y});case"deleteHardLineForward":return b(()=>L.deleteForward(t,{unit:"block"}),{at:Y});case"deleteSoftLineForward":return b(()=>L.deleteForward(t,{unit:"line"}),{at:Y});case"deleteWordBackward":return b(()=>L.deleteBackward(t,{unit:"word"}),{at:Y});case"deleteWordForward":return b(()=>L.deleteForward(t,{unit:"word"}),{at:Y});case"insertLineBreak":return b(()=>L.insertSoftBreak(t),{at:Y});case"insertParagraph":return b(()=>L.insertBreak(t),{at:Y});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(UUe(te))return b(()=>Oe.insertData(t,te),{at:Y});var ne=te??"";if(Oi.get(t)&&(ne=ne.replace("\uFEFF","")),z==="insertText"&&/.*\n.*\n$/.test(ne)&&(ne=ne.slice(0,-1)),ne.includes(`
`))return b(()=>{var Qe=ne.split(`
`);Qe.forEach((xe,vt)=>{xe&&L.insertText(t,xe),vt!==Qe.length-1&&L.insertSoftBreak(t)})},{at:Y});if(de.equals(Y.anchor.path,Y.focus.path)){var[we,Ae]=Ce.edges(Y),Se={start:we.offset,end:Ae.offset,text:ne};if(ne&&c&&z==="insertCompositionText"){var De=c.start+c.text.search(/\S|$/),Ye=Se.start+Se.text.search(/\S|$/);Ye===De+1&&Se.end===c.start+c.text.length?(Se.start-=1,c=null,N()):c=!1}else z==="insertText"?c===null?c=Se:c&&Ce.isCollapsed(Y)&&c.end+c.text.length===we.offset?c=Zb(Zb({},c),{},{text:c.text+ne}):c=!1:c=!1;if(K){v(we.path,Se);return}}return b(()=>L.insertText(t,ne),{at:Y})}}}},C=()=>!!tc.get(t),D=()=>{var U;return!!((U=na.get(t))!==null&&U!==void 0&&U.length)},A=()=>C()||D(),T=()=>o,B=U=>{nc.set(t,U),i&&(clearTimeout(i),i=null);var{selection:V}=t;if(U){var z=!V||!de.equals(V.anchor.path,U.anchor.path),Y=!V||!de.equals(V.anchor.path.slice(0,-1),U.anchor.path.slice(0,-1));(z&&c||Y)&&(c=!1),(z||D())&&(i=setTimeout(h,zUe))}},j=()=>{(C()||!D())&&h()},R=U=>{D()||(p(!0),setTimeout(p))},N=()=>{C()||(s=setTimeout(h))},_=U=>{if(!(D()||C())&&U.some(z=>SP(t,z,U))){var V;(V=jY.get(t))===null||V===void 0||V()}};return{flush:h,scheduleFlush:N,hasPendingDiffs:D,hasPendingAction:C,hasPendingChanges:A,isFlushing:T,handleUserSelect:B,handleCompositionEnd:m,handleCompositionStart:g,handleDOMBeforeInput:y,handleKeyDown:R,handleDomMutations:_,handleInput:j}}function GUe(){var e=x.useRef(!1);return x.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var Ug=F0?x.useLayoutEffect:x.useEffect;function YUe(e,t,n){var[r]=x.useState(()=>new MutationObserver(t));Ug(()=>{r.takeRecords()}),x.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var KUe=["node"];function fF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qUe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fF(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XUe={subtree:!0,childList:!0,characterData:!0},QUe=Da?e=>{var{node:t}=e,n=Eh(e,KUe);if(!Da)return null;var r=Vl(),o=GUe(),[a]=x.useState(()=>VUe(qUe({editor:r},n)));return YUe(t,a.handleDomMutations,XUe),CP.set(r,a.scheduleFlush),o&&a.flush(),a}:()=>null,ZUe=["anchor","focus"],JUe=["anchor","focus"],eVe=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),WY=(e,t)=>{var n=Eh(e,ZUe),r=Eh(t,JUe);return e[Ih]===t[Ih]&&eVe(n,r)},tVe=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Ce.equals(r,o)||!WY(r,o))return!1}return!0},nVe=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!WY(r,o))return!1}return!0},rVe=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,a=Vl(),i=Oe.findPath(a,o),s=de.parent(i),l=n[NY]===!0;return a.isVoid(r)?W.createElement(DD,{length:_e.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!a.isInline(r)&&L.string(a,s)===""?W.createElement(DD,{isLineBreak:!0,isMarkPlaceholder:l}):n.text===""?W.createElement(DD,{isMarkPlaceholder:l}):t&&n.text.slice(-1)===`
`?W.createElement(hF,{isTrailing:!0,text:n.text}):W.createElement(hF,{text:n.text})},hF=e=>{var{text:t,isTrailing:n=!1}=e,r=x.useRef(null),o=()=>"".concat(t??"").concat(n?`
`:""),[a]=x.useState(o);return Ug(()=>{var i=o();r.current&&r.current.textContent!==i&&(r.current.textContent=i)}),W.createElement(oVe,{ref:r},a)},oVe=x.memo(x.forwardRef((e,t)=>W.createElement("span",{"data-slate-string":!0,ref:t},e.children))),DD=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),W.createElement("span",Object.assign({},o),!Da||!n?"\uFEFF":null,n?W.createElement("br",null):null)};function aVe(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function mF(e){e.current&&(clearTimeout(e.current),e.current=null)}var iVe=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:a,renderLeaf:i=y=>W.createElement(lVe,Object.assign({},y))}=e,s=Vl(),l=x.useRef(null),c=x.useRef(null),[d,f]=x.useState(!1),h=x.useRef(null),m=x.useCallback(y=>{if(aVe(l,y==null),y==null){var C;dT.delete(s),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(dT.set(s,y),!l.current){var D=window.ResizeObserver||dUe;l.current=new D(()=>{var A;(A=t.onPlaceholderResize)===null||A===void 0||A.call(t,y)})}l.current.observe(y),c.current=y}},[c,t,s]),g=W.createElement(rVe,{isLast:n,leaf:t,parent:o,text:r}),p=t[Ih];if(x.useEffect(()=>(p?h.current||(h.current=setTimeout(()=>{f(!0),h.current=null},300)):(mF(h),f(!1)),()=>mF(h)),[p,f]),p&&d){var v={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Ap?"inherit":void 0},contentEditable:!1,ref:m}};g=W.createElement(W.Fragment,null,a(v),g)}var b={"data-slate-leaf":!0};return i({attributes:b,children:g,leaf:t,text:r})},sVe=W.memo(iVe,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&at.equals(t.leaf,e.leaf)&&t.leaf[Ih]===e.leaf[Ih]),lVe=e=>{var{attributes:t,children:n}=e;return W.createElement("span",Object.assign({},t),n)},cVe=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:a,text:i}=e,s=Vl(),l=x.useRef(null),c=at.decorations(i,t),d=Oe.findKey(s,i),f=[],h=0;h<c.length;h++){var m=c[h];f.push(W.createElement(sVe,{isLast:n&&h===c.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:m,text:i,parent:r,renderLeaf:a}))}var g=x.useCallback(p=>{var v=TC.get(s);p?(v==null||v.set(d,p),td.set(i,p),Hg.set(p,i)):(v==null||v.delete(d),td.delete(i),l.current&&Hg.delete(l.current)),l.current=p},[l,s,d,i]);return W.createElement("span",{"data-slate-node":"text",ref:g},f)},zY=W.memo(cVe,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&nVe(t.decorations,e.decorations)),uVe=e=>{var{decorations:t,element:n,renderElement:r=y=>W.createElement(DP,Object.assign({},y)),renderPlaceholder:o,renderLeaf:a,selection:i}=e,s=Vl(),l=hVe(),c=s.isInline(n),d=Oe.findKey(s,n),f=x.useCallback(y=>{var C=TC.get(s);y?(C==null||C.set(d,y),td.set(n,y),Hg.set(y,n)):(C==null||C.delete(d),td.delete(n))},[s,d,n]),h=VY({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:i}),m={"data-slate-node":"element",ref:f};if(c&&(m["data-slate-inline"]=!0),!c&&L.hasInlines(s,n)){var g=_e.string(n),p=gY(g);p==="rtl"&&(m.dir=p)}if(L.isVoid(s,n)){m["data-slate-void"]=!0,!l&&c&&(m.contentEditable=!1);var v=c?"span":"div",[[b]]=_e.texts(n);h=W.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},W.createElement(zY,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:b})),yP.set(b,0),xP.set(b,n)}return r({attributes:m,children:h,element:n})},dVe=W.memo(uVe,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&tVe(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Ce.equals(e.selection,t.selection))),DP=e=>{var{attributes:t,children:n,element:r}=e,o=Vl(),a=o.isInline(r)?"span":"div";return W.createElement(a,Object.assign({},t,{style:{position:"relative"}}),n)},HY=x.createContext(()=>[]),fVe=()=>x.useContext(HY),UY=x.createContext(!1),Umt=()=>x.useContext(UY),VY=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:i}=e,s=fVe(),l=Vl(),c=Oe.findPath(l,n),d=[],f=st.isElement(n)&&!l.isInline(n)&&L.hasInlines(l,n),h=0;h<n.children.length;h++){var m=c.concat(h),g=n.children[h],p=Oe.findKey(l,g),v=L.range(l,m),b=i&&Ce.intersection(v,i),y=s([g,m]);for(var C of t){var D=Ce.intersection(C,v);D&&y.push(D)}st.isElement(g)?d.push(W.createElement(UY.Provider,{key:"provider-".concat(p.id),value:!!b},W.createElement(dVe,{decorations:y,element:g,key:p.id,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:b}))):d.push(W.createElement(zY,{decorations:y,key:p.id,isLast:f&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:a,text:g})),yP.set(g,h),xP.set(g,n)}return d},GY=x.createContext(!1),hVe=()=>x.useContext(GY),YY=x.createContext(null),KY=()=>{var e=x.useContext(YY);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function mVe(){var e=Vl(),t=x.useRef(!1),n=x.useRef(0),r=x.useCallback(()=>{if(!t.current){t.current=!0;var o=Oe.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return x.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var pVe=3,gVe={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},vVe={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},bVe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},rr=e=>{var t=gVe[e],n=vVe[e],r=bVe[e],o=t&&SD(t),a=n&&SD(n),i=r&&SD(r);return s=>!!(o&&o(s)||lF&&a&&a(s)||!lF&&i&&i(s))},ur={isBold:rr("bold"),isCompose:rr("compose"),isMoveBackward:rr("moveBackward"),isMoveForward:rr("moveForward"),isDeleteBackward:rr("deleteBackward"),isDeleteForward:rr("deleteForward"),isDeleteLineBackward:rr("deleteLineBackward"),isDeleteLineForward:rr("deleteLineForward"),isDeleteWordBackward:rr("deleteWordBackward"),isDeleteWordForward:rr("deleteWordForward"),isExtendBackward:rr("extendBackward"),isExtendForward:rr("extendForward"),isExtendLineBackward:rr("extendLineBackward"),isExtendLineForward:rr("extendLineForward"),isItalic:rr("italic"),isMoveLineBackward:rr("moveLineBackward"),isMoveLineForward:rr("moveLineForward"),isMoveWordBackward:rr("moveWordBackward"),isMoveWordForward:rr("moveWordForward"),isRedo:rr("redo"),isSoftBreak:rr("insertSoftBreak"),isSplitBlock:rr("splitBlock"),isTransposeCharacter:rr("transposeCharacter"),isUndo:rr("undo")},yVe=(e,t)=>{var n=[],r=()=>{n=[]},o=i=>{if(t.current){var s=i.filter(l=>SP(e,l,i));n.push(...s)}};function a(){n.length>0&&(n.reverse().forEach(i=>{i.type!=="characterData"&&(i.removedNodes.forEach(s=>{i.target.insertBefore(s,i.nextSibling)}),i.addedNodes.forEach(s=>{i.target.removeChild(s)}))}),r())}return{registerMutations:o,restoreDOM:a,clear:r}},xVe={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class qY extends x.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,xVe)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=yVe(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var a;(a=this.manager)===null||a===void 0||a.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}qY.contextType=bP;var CVe=Da?qY:e=>{var{children:t}=e;return W.createElement(W.Fragment,null,t)},wVe=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],SVe=["text"];function pF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pF(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var DVe=e=>W.createElement(W.Fragment,null,VY(e)),EVe=e=>{var t=x.useCallback(H=>W.createElement(IVe,Object.assign({},H)),[]),{autoFocus:n,decorate:r=TVe,onDOMBeforeInput:o,placeholder:a,readOnly:i=!1,renderElement:s,renderLeaf:l,renderPlaceholder:c=t,scrollSelectionIntoView:d=AVe,style:f={},as:h="div",disableDefaultStyles:m=!1}=e,g=Eh(e,wVe),p=KY(),[v,b]=x.useState(!1),y=x.useRef(null),C=x.useRef([]),[D,A]=x.useState(),{onUserInput:T,receivedUserInput:B}=mVe(),[,j]=x.useReducer(H=>H+1,0);jY.set(p,j),hT.set(p,i);var R=x.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);x.useEffect(()=>{y.current&&n&&y.current.focus()},[n]);var N=x.useRef(),_=x.useMemo(()=>W7e(()=>{var H=N.current;if((Da||!Oe.isComposing(p))&&(!R.isUpdatingSelection||H!=null&&H.isFlushing())&&!R.isDraggingInternally){var ie=Oe.findDocumentOrShadowRoot(p),{activeElement:oe}=ie,ve=Oe.toDOMNode(p,p),$e=ie.getSelection();if(oe===ve?(R.latestElement=oe,Mu.set(p,!0)):Mu.delete(p),!$e)return Pe.deselect(p);var{anchorNode:Ne,focusNode:Ze}=$e,ze=Oe.hasEditableTarget(p,Ne)||Oe.isTargetInsideNonReadonlyVoid(p,Ne),Xe=Oe.hasEditableTarget(p,Ze)||Oe.isTargetInsideNonReadonlyVoid(p,Ze);if(ze&&Xe){var Me=Oe.toSlateRange(p,$e,{exactMatch:!1,suppressThrow:!0});Me&&(!Oe.isComposing(p)&&!(H!=null&&H.hasPendingChanges())&&!(H!=null&&H.isFlushing())?Pe.select(p,Me):H==null||H.handleUserSelect(Me))}i&&(!ze||!Xe)&&Pe.deselect(p)}},100),[p,i,R]),U=x.useMemo(()=>N7e(_,0),[_]);N.current=QUe({node:y,onDOMSelectionChange:_,scheduleOnDOMSelectionChange:U}),Ug(()=>{var H,ie,oe;y.current&&(oe=wP(y.current))?(RY.set(p,oe),W0.set(p,y.current),td.set(p,y.current),Hg.set(y.current,p)):td.delete(p);var{selection:ve}=p,$e=Oe.findDocumentOrShadowRoot(p),Ne=$e.getSelection();if(!(!Ne||!Oe.isFocused(p)||(H=N.current)!==null&&H!==void 0&&H.hasPendingAction())){var Ze=pt=>{var ot=Ne.type!=="None";if(!(!ve&&!ot)){var Et=W0.get(p),Vt=!1;if(Et.contains(Ne.anchorNode)&&Et.contains(Ne.focusNode)&&(Vt=!0),ot&&Vt&&ve&&!pt){var nt=Oe.toSlateRange(p,Ne,{exactMatch:!0,suppressThrow:!0});if(nt&&Ce.equals(nt,ve)){var Ee;if(!R.hasMarkPlaceholder)return;var{anchorNode:kt}=Ne;if(kt!=null&&(Ee=kt.parentElement)!==null&&Ee!==void 0&&Ee.hasAttribute("data-slate-mark-placeholder"))return}}if(ve&&!Oe.hasRange(p,ve)){p.selection=Oe.toSlateRange(p,Ne,{exactMatch:!1,suppressThrow:!0});return}R.isUpdatingSelection=!0;var ne=ve&&Oe.toDOMRange(p,ve);return ne?(Ce.isBackward(ve)?Ne.setBaseAndExtent(ne.endContainer,ne.endOffset,ne.startContainer,ne.startOffset):Ne.setBaseAndExtent(ne.startContainer,ne.startOffset,ne.endContainer,ne.endOffset),d(p,ne)):Ne.removeAllRanges(),ne}},ze=Ze(),Xe=((ie=N.current)===null||ie===void 0?void 0:ie.isFlushing())==="action";if(!Da||!Xe){setTimeout(()=>{if(ze&&vx){var pt=Oe.toDOMNode(p,p);pt.focus()}R.isUpdatingSelection=!1});return}var Me=null,Je=requestAnimationFrame(()=>{if(Xe){var pt=ot=>{try{var Et=Oe.toDOMNode(p,p);Et.focus(),Ze(ot)}catch{}};pt(),Me=setTimeout(()=>{pt(!0),R.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(Je),Me&&clearTimeout(Me)}}});var V=x.useCallback(H=>{if(T(),!i&&Oe.hasEditableTarget(p,H.target)&&!OVe(H,o)){var ie;if(N.current)return N.current.handleDOMBeforeInput(H);U.flush(),_.flush();var{selection:oe}=p,{inputType:ve}=H,$e=H.dataTransfer||H.data||void 0,Ne=ve==="insertCompositionText"||ve==="deleteCompositionText";if(Ne&&Oe.isComposing(p))return;var Ze=!1;if(ve==="insertText"&&oe&&Ce.isCollapsed(oe)&&H.data&&H.data.length===1&&/[a-z ]/i.test(H.data)&&oe.anchor.offset!==0){var ze,Xe;Ze=!0,p.marks&&(Ze=!1);var{anchor:Me}=oe,[Je,pt]=Oe.toDOMPoint(p,Me),ot=(ze=Je.parentElement)===null||ze===void 0?void 0:ze.closest("a"),Et=Oe.getWindow(p);if(Ze&&ot&&Oe.hasDOMNode(p,ot)){var Vt,nt=Et==null?void 0:Et.document.createTreeWalker(ot,NodeFilter.SHOW_TEXT).lastChild();nt===Je&&((Vt=nt.textContent)===null||Vt===void 0?void 0:Vt.length)===pt&&(Ze=!1)}if(Ze&&Je.parentElement&&(Et==null||(Xe=Et.getComputedStyle(Je.parentElement))===null||Xe===void 0?void 0:Xe.whiteSpace)==="pre"){var Ee=L.above(p,{at:Me.path,match:De=>st.isElement(De)&&L.isBlock(p,De)});Ee&&_e.string(Ee[0]).includes("	")&&(Ze=!1)}}if(!ve.startsWith("delete")||ve.startsWith("deleteBy")){var[kt]=H.getTargetRanges();if(kt){var ne=Oe.toSlateRange(p,kt,{exactMatch:!1,suppressThrow:!1});if(!oe||!Ce.equals(oe,ne)){Ze=!1;var we=!Ne&&p.selection&&L.rangeRef(p,p.selection);Pe.select(p,ne),we&&Qp.set(p,we)}}}if(Ne)return;if(Ze||H.preventDefault(),oe&&Ce.isExpanded(oe)&&ve.startsWith("delete")){var Ae=ve.endsWith("Backward")?"backward":"forward";L.deleteFragment(p,{direction:Ae});return}switch(ve){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{L.deleteFragment(p);break}case"deleteContent":case"deleteContentForward":{L.deleteForward(p);break}case"deleteContentBackward":{L.deleteBackward(p);break}case"deleteEntireSoftLine":{L.deleteBackward(p,{unit:"line"}),L.deleteForward(p,{unit:"line"});break}case"deleteHardLineBackward":{L.deleteBackward(p,{unit:"block"});break}case"deleteSoftLineBackward":{L.deleteBackward(p,{unit:"line"});break}case"deleteHardLineForward":{L.deleteForward(p,{unit:"block"});break}case"deleteSoftLineForward":{L.deleteForward(p,{unit:"line"});break}case"deleteWordBackward":{L.deleteBackward(p,{unit:"word"});break}case"deleteWordForward":{L.deleteForward(p,{unit:"word"});break}case"insertLineBreak":L.insertSoftBreak(p);break;case"insertParagraph":{L.insertBreak(p);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{ve==="insertFromComposition"&&Oe.isComposing(p)&&(b(!1),_u.set(p,!1)),($e==null?void 0:$e.constructor.name)==="DataTransfer"?Oe.insertData(p,$e):typeof $e=="string"&&(Ze?C.current.push(()=>L.insertText(p,$e)):L.insertText(p,$e));break}}var Se=(ie=Qp.get(p))===null||ie===void 0?void 0:ie.unref();Qp.delete(p),Se&&(!p.selection||!Ce.equals(p.selection,Se))&&Pe.select(p,Se)}},[p,_,T,o,i,U]),z=x.useCallback(H=>{H==null?(_.cancel(),U.cancel(),W0.delete(p),td.delete(p),y.current&&Ql&&y.current.removeEventListener("beforeinput",V)):Ql&&H.addEventListener("beforeinput",V),y.current=H},[_,U,p,V]);Ug(()=>{var H=Oe.getWindow(p);return H.document.addEventListener("selectionchange",U),()=>{H.document.removeEventListener("selectionchange",U)}},[U]);var Y=r([p,[]]),te=a&&p.children.length===1&&Array.from(_e.texts(p)).length===1&&_e.string(p)===""&&!v,se=x.useCallback(H=>{if(H&&te){var ie;A((ie=H.getBoundingClientRect())===null||ie===void 0?void 0:ie.height)}else A(void 0)},[te]);if(te){var he=L.start(p,[]);Y.push({[Ih]:!0,placeholder:a,onPlaceholderResize:se,anchor:he,focus:he})}var{marks:pe}=p;if(R.hasMarkPlaceholder=!1,p.selection&&Ce.isCollapsed(p.selection)&&pe){var{anchor:K}=p.selection,O=_e.leaf(p,K.path),le=Eh(O,SVe);if(!at.equals(O,pe,{loose:!0})){R.hasMarkPlaceholder=!0;var be=Object.fromEntries(Object.keys(le).map(H=>[H,null]));Y.push(sf(sf(sf({[NY]:!0},be),pe),{},{anchor:K,focus:K}))}}return x.useEffect(()=>{setTimeout(()=>{var{selection:H}=p;if(H){var{anchor:ie}=H,oe=_e.leaf(p,ie.path);if(pe&&!at.equals(oe,pe,{loose:!0})){Oi.set(p,pe);return}}Oi.delete(p)})}),W.createElement(GY.Provider,{value:i},W.createElement(HY.Provider,{value:r},W.createElement(CVe,{node:y,receivedUserInput:B},W.createElement(h,Object.assign({role:i?void 0:"textbox","aria-multiline":i?void 0:!0},g,{spellCheck:Ql||!F0?g.spellCheck:!1,autoCorrect:Ql||!F0?g.autoCorrect:"false",autoCapitalize:Ql||!F0?g.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!i,zindex:-1,suppressContentEditableWarning:!0,ref:z,style:sf(sf({},m?{}:sf({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},D?{minHeight:D}:{})),f),onBeforeInput:x.useCallback(H=>{if(!Ql&&!i&&!Po(H,g.onBeforeInput)&&Oe.hasSelectableTarget(p,H.target)&&(H.preventDefault(),!Oe.isComposing(p))){var ie=H.data;L.insertText(p,ie)}},[g.onBeforeInput,p,i]),onInput:x.useCallback(H=>{if(!Po(H,g.onInput)){if(N.current){N.current.handleInput();return}for(var ie of C.current)ie();C.current=[]}},[g.onInput]),onBlur:x.useCallback(H=>{if(!(i||R.isUpdatingSelection||!Oe.hasSelectableTarget(p,H.target)||Po(H,g.onBlur))){var ie=Oe.findDocumentOrShadowRoot(p);if(R.latestElement!==ie.activeElement){var{relatedTarget:oe}=H,ve=Oe.toDOMNode(p,p);if(oe!==ve&&!(Qa(oe)&&oe.hasAttribute("data-slate-spacer"))){if(oe!=null&&$c(oe)&&Oe.hasDOMNode(p,oe)){var $e=Oe.toSlateNode(p,oe);if(st.isElement($e)&&!p.isVoid($e))return}if(Ap){var Ne=ie.getSelection();Ne==null||Ne.removeAllRanges()}Mu.delete(p)}}}},[i,R.isUpdatingSelection,R.latestElement,p,g.onBlur]),onClick:x.useCallback(H=>{if(Oe.hasTarget(p,H.target)&&!Po(H,g.onClick)&&$c(H.target)){var ie=Oe.toSlateNode(p,H.target),oe=Oe.findPath(p,ie);if(!L.hasPath(p,oe)||_e.get(p,oe)!==ie)return;if(H.detail===pVe&&oe.length>=1){var ve=oe;if(!(st.isElement(ie)&&L.isBlock(p,ie))){var $e,Ne=L.above(p,{match:ot=>st.isElement(ot)&&L.isBlock(p,ot),at:oe});ve=($e=Ne==null?void 0:Ne[1])!==null&&$e!==void 0?$e:oe.slice(0,1)}var Ze=L.range(p,ve);Pe.select(p,Ze);return}if(i)return;var ze=L.start(p,oe),Xe=L.end(p,oe),Me=L.void(p,{at:ze}),Je=L.void(p,{at:Xe});if(Me&&Je&&de.equals(Me[1],Je[1])){var pt=L.range(p,ze);Pe.select(p,pt)}}},[p,g.onClick,i]),onCompositionEnd:x.useCallback(H=>{if(Oe.hasSelectableTarget(p,H.target)){var ie;if(Oe.isComposing(p)&&(b(!1),_u.set(p,!1)),(ie=N.current)===null||ie===void 0||ie.handleCompositionEnd(H),Po(H,g.onCompositionEnd)||Da)return;if(!Ap&&!wUe&&!bUe&&!DUe&&!SUe&&H.data){var oe=Oi.get(p);Oi.delete(p),oe!==void 0&&(ml.set(p,p.marks),p.marks=oe),L.insertText(p,H.data);var ve=ml.get(p);ml.delete(p),ve!==void 0&&(p.marks=ve)}}},[g.onCompositionEnd,p]),onCompositionUpdate:x.useCallback(H=>{Oe.hasSelectableTarget(p,H.target)&&!Po(H,g.onCompositionUpdate)&&(Oe.isComposing(p)||(b(!0),_u.set(p,!0)))},[g.onCompositionUpdate,p]),onCompositionStart:x.useCallback(H=>{if(Oe.hasSelectableTarget(p,H.target)){var ie;if((ie=N.current)===null||ie===void 0||ie.handleCompositionStart(H),Po(H,g.onCompositionStart)||Da)return;b(!0);var{selection:oe}=p;if(oe){if(Ce.isExpanded(oe)){L.deleteFragment(p);return}var ve=L.above(p,{match:Ze=>st.isElement(Ze)&&L.isInline(p,Ze),mode:"highest"});if(ve){var[,$e]=ve;if(L.isEnd(p,oe.anchor,$e)){var Ne=L.after(p,$e);Pe.setSelection(p,{anchor:Ne,focus:Ne})}}}}},[g.onCompositionStart,p]),onCopy:x.useCallback(H=>{Oe.hasSelectableTarget(p,H.target)&&!Po(H,g.onCopy)&&!gF(H)&&(H.preventDefault(),Oe.setFragmentData(p,H.clipboardData,"copy"))},[g.onCopy,p]),onCut:x.useCallback(H=>{if(!i&&Oe.hasSelectableTarget(p,H.target)&&!Po(H,g.onCut)&&!gF(H)){H.preventDefault(),Oe.setFragmentData(p,H.clipboardData,"cut");var{selection:ie}=p;if(ie)if(Ce.isExpanded(ie))L.deleteFragment(p);else{var oe=_e.parent(p,ie.anchor.path);L.isVoid(p,oe)&&Pe.delete(p)}}},[i,p,g.onCut]),onDragOver:x.useCallback(H=>{if(Oe.hasTarget(p,H.target)&&!Po(H,g.onDragOver)){var ie=Oe.toSlateNode(p,H.target);st.isElement(ie)&&L.isVoid(p,ie)&&H.preventDefault()}},[g.onDragOver,p]),onDragStart:x.useCallback(H=>{if(!i&&Oe.hasTarget(p,H.target)&&!Po(H,g.onDragStart)){var ie=Oe.toSlateNode(p,H.target),oe=Oe.findPath(p,ie),ve=st.isElement(ie)&&L.isVoid(p,ie)||L.void(p,{at:oe,voids:!0});if(ve){var $e=L.range(p,oe);Pe.select(p,$e)}R.isDraggingInternally=!0,Oe.setFragmentData(p,H.dataTransfer,"drag")}},[i,p,g.onDragStart,R]),onDrop:x.useCallback(H=>{if(!i&&Oe.hasTarget(p,H.target)&&!Po(H,g.onDrop)){H.preventDefault();var ie=p.selection,oe=Oe.findEventRange(p,H),ve=H.dataTransfer;Pe.select(p,oe),R.isDraggingInternally&&ie&&!Ce.equals(ie,oe)&&!L.void(p,{at:oe,voids:!0})&&Pe.delete(p,{at:ie}),Oe.insertData(p,ve),Oe.isFocused(p)||Oe.focus(p)}R.isDraggingInternally=!1},[i,p,g.onDrop,R]),onDragEnd:x.useCallback(H=>{!i&&R.isDraggingInternally&&g.onDragEnd&&Oe.hasTarget(p,H.target)&&g.onDragEnd(H),R.isDraggingInternally=!1},[i,R,g,p]),onFocus:x.useCallback(H=>{if(!i&&!R.isUpdatingSelection&&Oe.hasEditableTarget(p,H.target)&&!Po(H,g.onFocus)){var ie=Oe.toDOMNode(p,p),oe=Oe.findDocumentOrShadowRoot(p);if(R.latestElement=oe.activeElement,vx&&H.target!==ie){ie.focus();return}Mu.set(p,!0)}},[i,R,p,g.onFocus]),onKeyDown:x.useCallback(H=>{if(!i&&Oe.hasEditableTarget(p,H.target)){var ie;(ie=N.current)===null||ie===void 0||ie.handleKeyDown(H);var{nativeEvent:oe}=H;if(Oe.isComposing(p)&&oe.isComposing===!1&&(_u.set(p,!1),b(!1)),Po(H,g.onKeyDown)||Oe.isComposing(p))return;var{selection:ve}=p,$e=p.children[ve!==null?ve.focus.path[0]:0],Ne=gY(_e.string($e))==="rtl";if(ur.isRedo(oe)){H.preventDefault();var Ze=p;typeof Ze.redo=="function"&&Ze.redo();return}if(ur.isUndo(oe)){H.preventDefault();var ze=p;typeof ze.undo=="function"&&ze.undo();return}if(ur.isMoveLineBackward(oe)){H.preventDefault(),Pe.move(p,{unit:"line",reverse:!0});return}if(ur.isMoveLineForward(oe)){H.preventDefault(),Pe.move(p,{unit:"line"});return}if(ur.isExtendLineBackward(oe)){H.preventDefault(),Pe.move(p,{unit:"line",edge:"focus",reverse:!0});return}if(ur.isExtendLineForward(oe)){H.preventDefault(),Pe.move(p,{unit:"line",edge:"focus"});return}if(ur.isMoveBackward(oe)){H.preventDefault(),ve&&Ce.isCollapsed(ve)?Pe.move(p,{reverse:!Ne}):Pe.collapse(p,{edge:"start"});return}if(ur.isMoveForward(oe)){H.preventDefault(),ve&&Ce.isCollapsed(ve)?Pe.move(p,{reverse:Ne}):Pe.collapse(p,{edge:"end"});return}if(ur.isMoveWordBackward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)&&Pe.collapse(p,{edge:"focus"}),Pe.move(p,{unit:"word",reverse:!Ne});return}if(ur.isMoveWordForward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)&&Pe.collapse(p,{edge:"focus"}),Pe.move(p,{unit:"word",reverse:Ne});return}if(Ql){if((PY||Ap)&&ve&&(ur.isDeleteBackward(oe)||ur.isDeleteForward(oe))&&Ce.isCollapsed(ve)){var Xe=_e.parent(p,ve.anchor.path);if(st.isElement(Xe)&&L.isVoid(p,Xe)&&(L.isInline(p,Xe)||L.isBlock(p,Xe))){H.preventDefault(),L.deleteBackward(p,{unit:"block"});return}}}else{if(ur.isBold(oe)||ur.isItalic(oe)||ur.isTransposeCharacter(oe)){H.preventDefault();return}if(ur.isSoftBreak(oe)){H.preventDefault(),L.insertSoftBreak(p);return}if(ur.isSplitBlock(oe)){H.preventDefault(),L.insertBreak(p);return}if(ur.isDeleteBackward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"backward"}):L.deleteBackward(p);return}if(ur.isDeleteForward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"forward"}):L.deleteForward(p);return}if(ur.isDeleteLineBackward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"backward"}):L.deleteBackward(p,{unit:"line"});return}if(ur.isDeleteLineForward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"forward"}):L.deleteForward(p,{unit:"line"});return}if(ur.isDeleteWordBackward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"backward"}):L.deleteBackward(p,{unit:"word"});return}if(ur.isDeleteWordForward(oe)){H.preventDefault(),ve&&Ce.isExpanded(ve)?L.deleteFragment(p,{direction:"forward"}):L.deleteForward(p,{unit:"word"});return}}}},[i,p,g.onKeyDown]),onPaste:x.useCallback(H=>{!i&&Oe.hasEditableTarget(p,H.target)&&!Po(H,g.onPaste)&&(!Ql||TUe(H.nativeEvent)||Ap)&&(H.preventDefault(),Oe.insertData(p,H.clipboardData))},[i,p,g.onPaste])}),W.createElement(DVe,{decorations:Y,node:p,renderElement:s,renderPlaceholder:c,renderLeaf:l,selection:p.selection})))))},IVe=e=>{var{attributes:t,children:n}=e;return W.createElement("span",Object.assign({},t),n,Da&&W.createElement("br",null))},TVe=()=>[],AVe=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Ce.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),U7e(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Po=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},gF=e=>$c(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),OVe=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},XY=x.createContext(!1),Vmt=()=>x.useContext(XY),BVe=x.createContext({});function kVe(e){var t=x.useRef([]).current,n=x.useRef({editor:e}).current,r=x.useCallback(a=>{n.editor=a,t.forEach(i=>i(a))},[t,n]),o=x.useMemo(()=>({getSlate:()=>n.editor,addEventListener:a=>(t.push(a),()=>{t.splice(t.indexOf(a),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var PVe=["editor","children","onChange","value"],RVe=e=>{var{editor:t,children:n,onChange:r,value:o}=e,a=Eh(e,PVe),i=x.useRef(!1),[s,l]=W.useState(()=>{if(!_e.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements but got: ".concat(to.stringify(o)));if(!L.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(to.stringify(t)));return t.children=o,Object.assign(t,a),{v:0,editor:t}}),{selectorContext:c,onChange:d}=kVe(t),f=x.useCallback(()=>{r&&r(t.children),l(g=>({v:g.v+1,editor:t})),d(t)},[t,d,r]);x.useEffect(()=>(mT.set(t,f),()=>{mT.set(t,()=>{}),i.current=!0}),[t,f]);var[h,m]=x.useState(Oe.isFocused(t));return x.useEffect(()=>{m(Oe.isFocused(t))},[t]),Ug(()=>{var g=()=>m(Oe.isFocused(t));return vUe?(document.addEventListener("focusin",g),document.addEventListener("focusout",g),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",g)}):(document.addEventListener("focus",g,!0),document.addEventListener("blur",g,!0),()=>{document.removeEventListener("focus",g,!0),document.removeEventListener("blur",g,!0)})},[]),W.createElement(BVe.Provider,{value:c},W.createElement(YY.Provider,{value:s},W.createElement(bP.Provider,{value:s.editor},W.createElement(XY.Provider,{value:h},n))))},vF=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},bF=(e,t,n)=>{var r=Oe.toDOMRange(e,t).getBoundingClientRect(),o=Oe.toDOMRange(e,n).getBoundingClientRect();return vF(r,o)&&vF(o,r)},jVe=(e,t)=>{var n=L.range(e,Ce.end(t)),r=Array.from(L.positions(e,{at:t})),o=0,a=r.length,i=Math.floor(a/2);if(bF(e,L.range(e,r[o]),n))return L.range(e,r[o],n);if(r.length<2)return L.range(e,r[r.length-1],n);for(;i!==r.length&&i!==o;)bF(e,L.range(e,r[i]),n)?a=i:o=i,i=Math.floor((o+a)/2);return L.range(e,r[a],n)};function yF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yF(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var NVe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:a,deleteBackward:i,addMark:s,removeMark:l}=r;return TC.set(r,new WeakMap),r.addMark=(c,d)=>{var f,h;(f=CP.get(r))===null||f===void 0||f(),!Oi.get(r)&&(h=na.get(r))!==null&&h!==void 0&&h.length&&Oi.set(r,null),ml.delete(r),s(c,d)},r.removeMark=c=>{var d;!Oi.get(r)&&(d=na.get(r))!==null&&d!==void 0&&d.length&&Oi.set(r,null),ml.delete(r),l(c)},r.deleteBackward=c=>{if(c!=="line")return i(c);if(r.selection&&Ce.isCollapsed(r.selection)){var d=L.above(r,{match:g=>st.isElement(g)&&L.isBlock(r,g),at:r.selection});if(d){var[,f]=d,h=L.range(r,f,r.selection.anchor),m=jVe(r,h);Ce.isCollapsed(m)||Pe.delete(r,{at:m})}}},r.apply=c=>{var d=[],f=na.get(r);if(f!=null&&f.length){var h=f.map(T=>FUe(T,c)).filter(Boolean);na.set(r,h)}var m=nc.get(r);m&&nc.set(r,uF(r,m,c));var g=tc.get(r);if(g!=null&&g.at){var p=Wt.isPoint(g==null?void 0:g.at)?vT(r,g.at,c):uF(r,g.at,c);tc.set(r,p?xF(xF({},g),{},{at:p}):null)}switch(c.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{d.push(...Jb(r,c.path));break}case"set_selection":{var v;(v=Qp.get(r))===null||v===void 0||v.unref(),Qp.delete(r);break}case"insert_node":case"remove_node":{d.push(...Jb(r,de.parent(c.path)));break}case"merge_node":{var b=de.previous(c.path);d.push(...Jb(r,b));break}case"move_node":{var y=de.common(de.parent(c.path),de.parent(c.newPath));d.push(...Jb(r,y));break}}o(c);for(var[C,D]of d){var[A]=L.node(r,C);fT.set(A,D)}},r.setFragmentData=c=>{var{selection:d}=r;if(d){var[f,h]=Ce.edges(d),m=L.void(r,{at:f.path}),g=L.void(r,{at:h.path});if(!(Ce.isCollapsed(d)&&!m)){var p=Oe.toDOMRange(r,d),v=p.cloneContents(),b=v.childNodes[0];if(v.childNodes.forEach(N=>{N.textContent&&N.textContent.trim()!==""&&(b=N)}),g){var[y]=g,C=p.cloneRange(),D=Oe.toDOMNode(r,y);C.setEndAfter(D),v=C.cloneContents()}if(m&&(b=v.querySelector("[data-slate-spacer]")),Array.from(v.querySelectorAll("[data-slate-zero-width]")).forEach(N=>{var _=N.getAttribute("data-slate-zero-width")==="n";N.textContent=_?`
`:""}),LY(b)){var A=b.ownerDocument.createElement("span");A.style.whiteSpace="pre",A.appendChild(b),v.appendChild(A),b=A}var T=r.getFragment(),B=JSON.stringify(T),j=window.btoa(encodeURIComponent(B));b.setAttribute("data-slate-fragment",j),c.setData("application/".concat(n),j);var R=v.ownerDocument.createElement("div");return R.appendChild(v),R.setAttribute("hidden","true"),v.ownerDocument.body.appendChild(R),c.setData("text/html",R.innerHTML),c.setData("text/plain",MY(R)),v.ownerDocument.body.removeChild(R),c}}},r.insertData=c=>{r.insertFragmentData(c)||r.insertTextData(c)},r.insertFragmentData=c=>{var d=c.getData("application/".concat(n))||PUe(c);if(d){var f=decodeURIComponent(window.atob(d)),h=JSON.parse(f);return r.insertFragment(h),!0}return!1},r.insertTextData=c=>{var d=c.getData("text/plain");if(d){var f=d.split(/\r\n|\r|\n/),h=!1;for(var m of f)h&&Pe.splitNodes(r,{always:!0}),r.insertText(m),h=!0;return!0}return!1},r.onChange=c=>{aa.unstable_batchedUpdates(()=>{var d=mT.get(r);d&&d(),a(c)})},r},Jb=(e,t)=>{var n=[];for(var[r,o]of L.levels(e,{at:t})){var a=Oe.findKey(e,r);n.push([o,a])}return n};function QY(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=QY(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function bT(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=QY(e))&&(r&&(r+=" "),r+=t);return r}const Gmt=(e,t)=>{try{return Oe.findPath(e,t)}catch{}},LVe=(e,t)=>{t&&tu(e,()=>{E9e(e),SC(e,t)}),Oe.focus(e)},$Ve=e=>Oe.isComposing(e),Ymt=(e,t)=>{try{return Oe.toDOMNode(e,t)}catch{}},Kmt=(e,t)=>{try{return Oe.toDOMRange(e,t)}catch{}},MVe=(e="")=>e.length?e[0].toUpperCase()+e.slice(1):"",CF=(e="")=>e.length?`${e}Store`:"store",wF=(e="")=>`use${MVe(e)}Store`,EP=(e,{scope:t,initialStore:n,name:r=""}={})=>{const o=wF(n==null?void 0:n.name),a=CF(n==null?void 0:n.name),i=wF(r),s=CF(r),l=n?n[o]().get:{},c=n?n[o]().set:{},d=n?n[o]().use:{},f=n?n[a].atom:{};Object.keys(e).forEach(m=>{const g=AG(e[m]);f[m]=g,l[m]=p=>OG(g,p??t),c[m]=p=>BG(g,p??t),d[m]=p=>kG(g,p??t)});const h={[i]:m=>{if(m){const g={...l},p={...c},v={...d};return Object.keys(g).forEach(b=>{const y=g[b];g[b]=C=>{var D;return y((D=C??m)!==null&&D!==void 0?D:t)}}),Object.keys(p).forEach(b=>{const y=p[b];p[b]=C=>{var D;return y((D=C??m)!==null&&D!==void 0?D:t)}}),Object.keys(v).forEach(b=>{const y=v[b];v[b]=C=>{var D;return y((D=C??m)!==null&&D!==void 0?D:t)}}),{get:g,set:p,use:v}}return{get:l,set:c,use:d}},[s]:{atom:f},name:r};return{...h,[s]:{...h[s],scope:t,extend:(m,g)=>EP(m,{scope:t,initialStore:h,...g})}}};function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mc.apply(this,arguments)}const bx=w5e,ZY="element",{elementStore:SF,useElementStore:DF}=EP({element:null},{name:"element"}),_Ve=({element:e,scope:t,children:n})=>{const r=DF().set.element(t),o=DF().set.element(ZY);return x.useEffect(()=>{r(e),o(e)},[e,r,o]),n},FVe=({element:e,scope:t,children:n,...r})=>W.createElement(bx,Mc({initialValues:[[SF.atom.element,e]],scope:ZY},r),W.createElement(bx,Mc({initialValues:[[SF.atom.element,e]],scope:t},r),W.createElement(_Ve,{element:e,scope:t},n))),JY=({attributes:e,children:t,text:n,leaf:r,editor:o,nodeProps:a,...i})=>W.createElement("span",Mc({},e,i),t);function WVe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var IP=WVe;function zVe(){this.__data__=[],this.size=0}var HVe=zVe;function UVe(e,t){return e===t||e!==e&&t!==t}var Hv=UVe;function VVe(e,t){for(var n=e.length;n--;)if(Hv(e[n][0],t))return n;return-1}var AC=VVe,GVe=Array.prototype,YVe=GVe.splice;function KVe(e){var t=this.__data__,n=AC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():YVe.call(t,n,1),--this.size,!0}var qVe=KVe;function XVe(e){var t=this.__data__,n=AC(t,e);return n<0?void 0:t[n][1]}var QVe=XVe;function ZVe(e){return AC(this.__data__,e)>-1}var JVe=ZVe;function eGe(e,t){var n=this.__data__,r=AC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var tGe=eGe;function Dm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dm.prototype.clear=HVe;Dm.prototype.delete=qVe;Dm.prototype.get=QVe;Dm.prototype.has=JVe;Dm.prototype.set=tGe;var OC=Dm;function nGe(){this.__data__=new OC,this.size=0}var rGe=nGe;function oGe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var aGe=oGe;function iGe(e){return this.__data__.get(e)}var sGe=iGe;function lGe(e){return this.__data__.has(e)}var cGe=lGe,e0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uGe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BC(e,t){return t={exports:{}},e(t,t.exports),t.exports}var dGe=typeof e0=="object"&&e0&&e0.Object===Object&&e0,eK=dGe,fGe=typeof self=="object"&&self&&self.Object===Object&&self,hGe=eK||fGe||Function("return this")(),Vs=hGe,mGe=Vs.Symbol,ii=mGe,tK=Object.prototype,pGe=tK.hasOwnProperty,gGe=tK.toString,mp=ii?ii.toStringTag:void 0;function vGe(e){var t=pGe.call(e,mp),n=e[mp];try{e[mp]=void 0;var r=!0}catch{}var o=gGe.call(e);return r&&(t?e[mp]=n:delete e[mp]),o}var bGe=vGe,yGe=Object.prototype,xGe=yGe.toString;function CGe(e){return xGe.call(e)}var wGe=CGe,SGe="[object Null]",DGe="[object Undefined]",EF=ii?ii.toStringTag:void 0;function EGe(e){return e==null?e===void 0?DGe:SGe:EF&&EF in Object(e)?bGe(e):wGe(e)}var Rd=EGe;function IGe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fi=IGe,TGe="[object AsyncFunction]",AGe="[object Function]",OGe="[object GeneratorFunction]",BGe="[object Proxy]";function kGe(e){if(!Fi(e))return!1;var t=Rd(e);return t==AGe||t==OGe||t==TGe||t==BGe}var TP=kGe,PGe=Vs["__core-js_shared__"],ED=PGe,IF=function(){var e=/[^.]+$/.exec(ED&&ED.keys&&ED.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function RGe(e){return!!IF&&IF in e}var jGe=RGe,NGe=Function.prototype,LGe=NGe.toString;function $Ge(e){if(e!=null){try{return LGe.call(e)}catch{}try{return e+""}catch{}}return""}var jd=$Ge,MGe=/[\\^$.*+?()[\]{}|]/g,_Ge=/^\[object .+?Constructor\]$/,FGe=Function.prototype,WGe=Object.prototype,zGe=FGe.toString,HGe=WGe.hasOwnProperty,UGe=RegExp("^"+zGe.call(HGe).replace(MGe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VGe(e){if(!Fi(e)||jGe(e))return!1;var t=TP(e)?UGe:_Ge;return t.test(jd(e))}var GGe=VGe;function YGe(e,t){return e==null?void 0:e[t]}var KGe=YGe;function qGe(e,t){var n=KGe(e,t);return GGe(n)?n:void 0}var Nd=qGe,XGe=Nd(Vs,"Map"),Vg=XGe,QGe=Nd(Object,"create"),Gg=QGe;function ZGe(){this.__data__=Gg?Gg(null):{},this.size=0}var JGe=ZGe;function eYe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tYe=eYe,nYe="__lodash_hash_undefined__",rYe=Object.prototype,oYe=rYe.hasOwnProperty;function aYe(e){var t=this.__data__;if(Gg){var n=t[e];return n===nYe?void 0:n}return oYe.call(t,e)?t[e]:void 0}var iYe=aYe,sYe=Object.prototype,lYe=sYe.hasOwnProperty;function cYe(e){var t=this.__data__;return Gg?t[e]!==void 0:lYe.call(t,e)}var uYe=cYe,dYe="__lodash_hash_undefined__";function fYe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gg&&t===void 0?dYe:t,this}var hYe=fYe;function Em(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Em.prototype.clear=JGe;Em.prototype.delete=tYe;Em.prototype.get=iYe;Em.prototype.has=uYe;Em.prototype.set=hYe;var TF=Em;function mYe(){this.size=0,this.__data__={hash:new TF,map:new(Vg||OC),string:new TF}}var pYe=mYe;function gYe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vYe=gYe;function bYe(e,t){var n=e.__data__;return vYe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var kC=bYe;function yYe(e){var t=kC(this,e).delete(e);return this.size-=t?1:0,t}var xYe=yYe;function CYe(e){return kC(this,e).get(e)}var wYe=CYe;function SYe(e){return kC(this,e).has(e)}var DYe=SYe;function EYe(e,t){var n=kC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var IYe=EYe;function Im(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Im.prototype.clear=pYe;Im.prototype.delete=xYe;Im.prototype.get=wYe;Im.prototype.has=DYe;Im.prototype.set=IYe;var PC=Im,TYe=200;function AYe(e,t){var n=this.__data__;if(n instanceof OC){var r=n.__data__;if(!Vg||r.length<TYe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new PC(r)}return n.set(e,t),this.size=n.size,this}var OYe=AYe;function Tm(e){var t=this.__data__=new OC(e);this.size=t.size}Tm.prototype.clear=rGe;Tm.prototype.delete=aGe;Tm.prototype.get=sGe;Tm.prototype.has=cGe;Tm.prototype.set=OYe;var Kf=Tm;function BYe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var kYe=BYe,PYe=function(){try{var e=Nd(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yx=PYe;function RYe(e,t,n){t=="__proto__"&&yx?yx(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var RC=RYe,jYe=Object.prototype,NYe=jYe.hasOwnProperty;function LYe(e,t,n){var r=e[t];(!(NYe.call(e,t)&&Hv(r,n))||n===void 0&&!(t in e))&&RC(e,t,n)}var nK=LYe;function $Ye(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?RC(n,s,l):nK(n,s,l)}return n}var Am=$Ye;function MYe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var _Ye=MYe;function FYe(e){return e!=null&&typeof e=="object"}var Os=FYe,WYe="[object Arguments]";function zYe(e){return Os(e)&&Rd(e)==WYe}var AF=zYe,rK=Object.prototype,HYe=rK.hasOwnProperty,UYe=rK.propertyIsEnumerable,VYe=AF(function(){return arguments}())?AF:function(e){return Os(e)&&HYe.call(e,"callee")&&!UYe.call(e,"callee")},Yg=VYe,GYe=Array.isArray,Vo=GYe;function YYe(){return!1}var KYe=YYe,Kg=BC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Vs.Buffer:void 0,i=a?a.isBuffer:void 0,s=i||KYe;e.exports=s}),qYe=9007199254740991,XYe=/^(?:0|[1-9]\d*)$/;function QYe(e,t){var n=typeof e;return t=t??qYe,!!t&&(n=="number"||n!="symbol"&&XYe.test(e))&&e>-1&&e%1==0&&e<t}var AP=QYe,ZYe=9007199254740991;function JYe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZYe}var OP=JYe,eKe="[object Arguments]",tKe="[object Array]",nKe="[object Boolean]",rKe="[object Date]",oKe="[object Error]",aKe="[object Function]",iKe="[object Map]",sKe="[object Number]",lKe="[object Object]",cKe="[object RegExp]",uKe="[object Set]",dKe="[object String]",fKe="[object WeakMap]",hKe="[object ArrayBuffer]",mKe="[object DataView]",pKe="[object Float32Array]",gKe="[object Float64Array]",vKe="[object Int8Array]",bKe="[object Int16Array]",yKe="[object Int32Array]",xKe="[object Uint8Array]",CKe="[object Uint8ClampedArray]",wKe="[object Uint16Array]",SKe="[object Uint32Array]",qn={};qn[pKe]=qn[gKe]=qn[vKe]=qn[bKe]=qn[yKe]=qn[xKe]=qn[CKe]=qn[wKe]=qn[SKe]=!0;qn[eKe]=qn[tKe]=qn[hKe]=qn[nKe]=qn[mKe]=qn[rKe]=qn[oKe]=qn[aKe]=qn[iKe]=qn[sKe]=qn[lKe]=qn[cKe]=qn[uKe]=qn[dKe]=qn[fKe]=!1;function DKe(e){return Os(e)&&OP(e.length)&&!!qn[Rd(e)]}var EKe=DKe;function IKe(e){return function(t){return e(t)}}var BP=IKe,Th=BC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o&&eK.process,i=function(){try{var s=r&&r.require&&r.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();e.exports=i}),OF=Th&&Th.isTypedArray,TKe=OF?BP(OF):EKe,kP=TKe,AKe=Object.prototype,OKe=AKe.hasOwnProperty;function BKe(e,t){var n=Vo(e),r=!n&&Yg(e),o=!n&&!r&&Kg(e),a=!n&&!r&&!o&&kP(e),i=n||r||o||a,s=i?_Ye(e.length,String):[],l=s.length;for(var c in e)(t||OKe.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||AP(c,l)))&&s.push(c);return s}var oK=BKe,kKe=Object.prototype;function PKe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kKe;return e===n}var PP=PKe;function RKe(e,t){return function(n){return e(t(n))}}var aK=RKe,jKe=aK(Object.keys,Object),NKe=jKe,LKe=Object.prototype,$Ke=LKe.hasOwnProperty;function MKe(e){if(!PP(e))return NKe(e);var t=[];for(var n in Object(e))$Ke.call(e,n)&&n!="constructor"&&t.push(n);return t}var _Ke=MKe;function FKe(e){return e!=null&&OP(e.length)&&!TP(e)}var Uv=FKe;function WKe(e){return Uv(e)?oK(e):_Ke(e)}var Om=WKe;function zKe(e,t){return e&&Am(t,Om(t),e)}var HKe=zKe;function UKe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VKe=UKe,GKe=Object.prototype,YKe=GKe.hasOwnProperty;function KKe(e){if(!Fi(e))return VKe(e);var t=PP(e),n=[];for(var r in e)r=="constructor"&&(t||!YKe.call(e,r))||n.push(r);return n}var qKe=KKe;function XKe(e){return Uv(e)?oK(e,!0):qKe(e)}var Vv=XKe;function QKe(e,t){return e&&Am(t,Vv(t),e)}var ZKe=QKe,iK=BC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Vs.Buffer:void 0,i=a?a.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var d=l.length,f=i?i(d):new l.constructor(d);return l.copy(f),f}e.exports=s});function JKe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var sK=JKe;function eqe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}var tqe=eqe;function nqe(){return[]}var lK=nqe,rqe=Object.prototype,oqe=rqe.propertyIsEnumerable,BF=Object.getOwnPropertySymbols,aqe=BF?function(e){return e==null?[]:(e=Object(e),tqe(BF(e),function(t){return oqe.call(e,t)}))}:lK,RP=aqe;function iqe(e,t){return Am(e,RP(e),t)}var sqe=iqe;function lqe(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jP=lqe,cqe=aK(Object.getPrototypeOf,Object),NP=cqe,uqe=Object.getOwnPropertySymbols,dqe=uqe?function(e){for(var t=[];e;)jP(t,RP(e)),e=NP(e);return t}:lK,cK=dqe;function fqe(e,t){return Am(e,cK(e),t)}var hqe=fqe;function mqe(e,t,n){var r=t(e);return Vo(e)?r:jP(r,n(e))}var uK=mqe;function pqe(e){return uK(e,Om,RP)}var yT=pqe;function gqe(e){return uK(e,Vv,cK)}var dK=gqe,vqe=Nd(Vs,"DataView"),xT=vqe,bqe=Nd(Vs,"Promise"),CT=bqe,yqe=Nd(Vs,"Set"),wT=yqe,xqe=Nd(Vs,"WeakMap"),ST=xqe,kF="[object Map]",Cqe="[object Object]",PF="[object Promise]",RF="[object Set]",jF="[object WeakMap]",NF="[object DataView]",wqe=jd(xT),Sqe=jd(Vg),Dqe=jd(CT),Eqe=jd(wT),Iqe=jd(ST),Su=Rd;(xT&&Su(new xT(new ArrayBuffer(1)))!=NF||Vg&&Su(new Vg)!=kF||CT&&Su(CT.resolve())!=PF||wT&&Su(new wT)!=RF||ST&&Su(new ST)!=jF)&&(Su=function(e){var t=Rd(e),n=t==Cqe?e.constructor:void 0,r=n?jd(n):"";if(r)switch(r){case wqe:return NF;case Sqe:return kF;case Dqe:return PF;case Eqe:return RF;case Iqe:return jF}return t});var qg=Su,Tqe=Object.prototype,Aqe=Tqe.hasOwnProperty;function Oqe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Aqe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Bqe=Oqe,kqe=Vs.Uint8Array,xx=kqe;function Pqe(e){var t=new e.constructor(e.byteLength);return new xx(t).set(new xx(e)),t}var LP=Pqe;function Rqe(e,t){var n=t?LP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var jqe=Rqe,Nqe=/\w*$/;function Lqe(e){var t=new e.constructor(e.source,Nqe.exec(e));return t.lastIndex=e.lastIndex,t}var $qe=Lqe,LF=ii?ii.prototype:void 0,$F=LF?LF.valueOf:void 0;function Mqe(e){return $F?Object($F.call(e)):{}}var _qe=Mqe;function Fqe(e,t){var n=t?LP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fK=Fqe,Wqe="[object Boolean]",zqe="[object Date]",Hqe="[object Map]",Uqe="[object Number]",Vqe="[object RegExp]",Gqe="[object Set]",Yqe="[object String]",Kqe="[object Symbol]",qqe="[object ArrayBuffer]",Xqe="[object DataView]",Qqe="[object Float32Array]",Zqe="[object Float64Array]",Jqe="[object Int8Array]",eXe="[object Int16Array]",tXe="[object Int32Array]",nXe="[object Uint8Array]",rXe="[object Uint8ClampedArray]",oXe="[object Uint16Array]",aXe="[object Uint32Array]";function iXe(e,t,n){var r=e.constructor;switch(t){case qqe:return LP(e);case Wqe:case zqe:return new r(+e);case Xqe:return jqe(e,n);case Qqe:case Zqe:case Jqe:case eXe:case tXe:case nXe:case rXe:case oXe:case aXe:return fK(e,n);case Hqe:return new r;case Uqe:case Yqe:return new r(e);case Vqe:return $qe(e);case Gqe:return new r;case Kqe:return _qe(e)}}var sXe=iXe,MF=Object.create,lXe=function(){function e(){}return function(t){if(!Fi(t))return{};if(MF)return MF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),cXe=lXe;function uXe(e){return typeof e.constructor=="function"&&!PP(e)?cXe(NP(e)):{}}var hK=uXe,dXe="[object Map]";function fXe(e){return Os(e)&&qg(e)==dXe}var hXe=fXe,_F=Th&&Th.isMap,mXe=_F?BP(_F):hXe,pXe=mXe,gXe="[object Set]";function vXe(e){return Os(e)&&qg(e)==gXe}var bXe=vXe,FF=Th&&Th.isSet,yXe=FF?BP(FF):bXe,xXe=yXe,CXe=1,wXe=2,SXe=4,mK="[object Arguments]",DXe="[object Array]",EXe="[object Boolean]",IXe="[object Date]",TXe="[object Error]",pK="[object Function]",AXe="[object GeneratorFunction]",OXe="[object Map]",BXe="[object Number]",gK="[object Object]",kXe="[object RegExp]",PXe="[object Set]",RXe="[object String]",jXe="[object Symbol]",NXe="[object WeakMap]",LXe="[object ArrayBuffer]",$Xe="[object DataView]",MXe="[object Float32Array]",_Xe="[object Float64Array]",FXe="[object Int8Array]",WXe="[object Int16Array]",zXe="[object Int32Array]",HXe="[object Uint8Array]",UXe="[object Uint8ClampedArray]",VXe="[object Uint16Array]",GXe="[object Uint32Array]",Fn={};Fn[mK]=Fn[DXe]=Fn[LXe]=Fn[$Xe]=Fn[EXe]=Fn[IXe]=Fn[MXe]=Fn[_Xe]=Fn[FXe]=Fn[WXe]=Fn[zXe]=Fn[OXe]=Fn[BXe]=Fn[gK]=Fn[kXe]=Fn[PXe]=Fn[RXe]=Fn[jXe]=Fn[HXe]=Fn[UXe]=Fn[VXe]=Fn[GXe]=!0;Fn[TXe]=Fn[pK]=Fn[NXe]=!1;function z0(e,t,n,r,o,a){var i,s=t&CXe,l=t&wXe,c=t&SXe;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!Fi(e))return e;var d=Vo(e);if(d){if(i=Bqe(e),!s)return sK(e,i)}else{var f=qg(e),h=f==pK||f==AXe;if(Kg(e))return iK(e,s);if(f==gK||f==mK||h&&!o){if(i=l||h?{}:hK(e),!s)return l?hqe(e,ZKe(i,e)):sqe(e,HKe(i,e))}else{if(!Fn[f])return o?e:{};i=sXe(e,f,s)}}a||(a=new Kf);var m=a.get(e);if(m)return m;a.set(e,i),xXe(e)?e.forEach(function(v){i.add(z0(v,t,n,v,e,a))}):pXe(e)&&e.forEach(function(v,b){i.set(b,z0(v,t,n,b,e,a))});var g=c?l?dK:yT:l?Vv:Om,p=d?void 0:g(e);return kYe(p||e,function(v,b){p&&(b=v,v=e[b]),nK(i,b,z0(v,t,n,b,e,a))}),i}var vK=z0,YXe="[object Symbol]";function KXe(e){return typeof e=="symbol"||Os(e)&&Rd(e)==YXe}var $P=KXe,qXe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XXe=/^\w*$/;function QXe(e,t){if(Vo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$P(e)?!0:XXe.test(e)||!qXe.test(e)||t!=null&&e in Object(t)}var MP=QXe,ZXe="Expected a function";function _P(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ZXe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(_P.Cache||PC),n}_P.Cache=PC;var JXe=_P,eQe=500;function tQe(e){var t=JXe(e,function(r){return n.size===eQe&&n.clear(),r}),n=t.cache;return t}var nQe=tQe,rQe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oQe=/\\(\\)?/g,aQe=nQe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rQe,function(n,r,o,a){t.push(o?a.replace(oQe,"$1"):r||n)}),t}),iQe=aQe,sQe=1/0,WF=ii?ii.prototype:void 0,zF=WF?WF.toString:void 0;function bK(e){if(typeof e=="string")return e;if(Vo(e))return IP(e,bK)+"";if($P(e))return zF?zF.call(e):"";var t=e+"";return t=="0"&&1/e==-sQe?"-0":t}var lQe=bK;function cQe(e){return e==null?"":lQe(e)}var uQe=cQe;function dQe(e,t){return Vo(e)?e:MP(e,t)?[e]:iQe(uQe(e))}var jC=dQe;function fQe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var hQe=fQe,mQe=1/0;function pQe(e){if(typeof e=="string"||$P(e))return e;var t=e+"";return t=="0"&&1/e==-mQe?"-0":t}var Gv=pQe;function gQe(e,t){t=jC(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gv(t[n++])];return n&&n==r?e:void 0}var FP=gQe;function vQe(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var bQe=vQe;function yQe(e,t){return t.length<2?e:FP(e,bQe(t,0,-1))}var xQe=yQe;function CQe(e,t){return t=jC(t,e),e=xQe(e,t),e==null||delete e[Gv(hQe(t))]}var wQe=CQe,SQe="[object Object]",DQe=Function.prototype,EQe=Object.prototype,yK=DQe.toString,IQe=EQe.hasOwnProperty,TQe=yK.call(Object);function AQe(e){if(!Os(e)||Rd(e)!=SQe)return!1;var t=NP(e);if(t===null)return!0;var n=IQe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yK.call(n)==TQe}var xK=AQe;function OQe(e){return xK(e)?void 0:e}var BQe=OQe,HF=ii?ii.isConcatSpreadable:void 0;function kQe(e){return Vo(e)||Yg(e)||!!(HF&&e&&e[HF])}var PQe=kQe;function CK(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=PQe),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?CK(s,t-1,n,r,o):jP(o,s):r||(o[o.length]=s)}return o}var RQe=CK;function jQe(e){var t=e==null?0:e.length;return t?RQe(e,1):[]}var NQe=jQe;function LQe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var wK=LQe,UF=Math.max;function $Qe(e,t,n){return t=UF(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=UF(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),wK(e,this,s)}}var SK=$Qe;function MQe(e){return function(){return e}}var _Qe=MQe;function FQe(e){return e}var WP=FQe,WQe=yx?function(e,t){return yx(e,"toString",{configurable:!0,enumerable:!1,value:_Qe(t),writable:!0})}:WP,zQe=WQe,HQe=800,UQe=16,VQe=Date.now;function GQe(e){var t=0,n=0;return function(){var r=VQe(),o=UQe-(r-n);if(n=r,o>0){if(++t>=HQe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YQe=GQe,KQe=YQe(zQe),DK=KQe;function qQe(e){return DK(SK(e,void 0,NQe),e+"")}var XQe=qQe,QQe=1,ZQe=2,JQe=4,eZe=XQe(function(e,t){var n={};if(e==null)return n;var r=!1;t=IP(t,function(a){return a=jC(a,e),r||(r=a.length>1),a}),Am(e,dK(e),n),r&&(n=vK(n,QQe|ZQe|JQe,BQe));for(var o=t.length;o--;)wQe(n,t[o]);return n}),tZe=eZe;const zP=C6e("event-editor")({blur:null,focus:null,last:null}),ID=zP.set,nZe=zP.get,TD=zP.use,Yv="plate",EK=Symbol("global-plate"),IK=AG(Yv),rZe=()=>kG(IK,EK)[0],oZe=({decorate:e=null,editor:t=null,id:n,isRendered:r=!1,keyDecorate:o="1",keyEditor:a="1",keySelection:i="1",onChange:s=null,editorRef:l=null,plugins:c=[],rawPlugins:d=[],readOnly:f=!1,renderElement:h=null,renderLeaf:m=null,value:g=null,...p}={})=>{const v=EP({decorate:e,editor:t,id:n,isRendered:r,keyDecorate:o,keyEditor:a,keySelection:i,onChange:s,editorRef:l,plugins:c,rawPlugins:d,readOnly:f,renderElement:h,renderLeaf:m,value:g,...p},{scope:Yv,name:"plate"});return{plateStore:v.plateStore,usePlateStore:b=>{const y=rZe();return wC(b)||v.usePlateStore(b).get.id(b)?v.usePlateStore(b):v.usePlateStore(y)}}},{plateStore:hi,usePlateStore:NC}=oZe(),Wi=e=>NC(e).get,LC=e=>NC(e).set,aZe=e=>NC(e).use,DT=(e,t)=>{const n=LC(t)[e]();return x.useCallback(()=>{n(S5e())},[n])},iZe=e=>{const t=DT("keyDecorate",e);return x.useCallback(()=>{t()},[t])},TK=({node:e,path:t=[],source:n,apply:r,query:o})=>{O9e([e,t],o)&&(n instanceof Function?r(e,n()):r(e,n)),hP(e)&&e.children.forEach((i,s)=>{TK({node:i,path:t.concat([s]),source:n,apply:r,query:o})})};function sZe(e,t){return DK(SK(e,t,WP),e+"")}var AK=sZe;function lZe(e,t,n){(n!==void 0&&!Hv(e[t],n)||n===void 0&&!(t in e))&&RC(e,t,n)}var ET=lZe;function cZe(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var uZe=cZe,dZe=uZe(),OK=dZe;function fZe(e){return Os(e)&&Uv(e)}var hZe=fZe;function mZe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var IT=mZe;function pZe(e){return Am(e,Vv(e))}var gZe=pZe;function vZe(e,t,n,r,o,a,i){var s=IT(e,n),l=IT(t,n),c=i.get(l);if(c){ET(e,n,c);return}var d=a?a(s,l,n+"",e,t,i):void 0,f=d===void 0;if(f){var h=Vo(l),m=!h&&Kg(l),g=!h&&!m&&kP(l);d=l,h||m||g?Vo(s)?d=s:hZe(s)?d=sK(s):m?(f=!1,d=iK(l,!0)):g?(f=!1,d=fK(l,!0)):d=[]:xK(l)||Yg(l)?(d=s,Yg(s)?d=gZe(s):(!Fi(s)||TP(s))&&(d=hK(l))):f=!1}f&&(i.set(l,d),o(d,l,r,a,i),i.delete(l)),ET(e,n,d)}var bZe=vZe;function BK(e,t,n,r,o){e!==t&&OK(t,function(a,i){if(o||(o=new Kf),Fi(a))bZe(e,t,i,n,BK,r,o);else{var s=r?r(IT(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),ET(e,i,s)}},Vv)}var HP=BK;function kK(e,t,n,r,o,a){return Fi(e)&&Fi(t)&&(a.set(t,e),HP(e,t,void 0,kK,a),a.delete(t)),e}var yZe=kK;function xZe(e,t,n){if(!Fi(n))return!1;var r=typeof t;return(r=="number"?Uv(n)&&AP(t,n.length):r=="string"&&t in n)?Hv(n[t],e):!1}var CZe=xZe;function wZe(e){return AK(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&CZe(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}var PK=wZe,SZe=PK(function(e,t,n,r){HP(e,t,n,r)}),DZe=SZe,EZe=AK(function(e){return e.push(void 0,yZe),wK(DZe,void 0,e)}),Cx=EZe;const Xg=(e,t={},n)=>{var r;if(t[e.key]){const{plugins:a,then:i,...s}=t[e.key];e=Cx(s,e),n||a==null||a.forEach(l=>{e.plugins||(e.plugins=[]),e.plugins.find(d=>d.key===l.key)||e.plugins.push(l)})}e.plugins&&(e.plugins=e.plugins.map(a=>Xg(a,t,!0)));const{then:o}=e;return o?(typeof e._thenReplaced>"u"&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(a,i)=>{const s={key:e.key,...o(a,i)};return Cx(Xg(s,t),s)},e._thenReplaced++)):(r=t[e.key])!==null&&r!==void 0&&r.then&&(e.then=t[e.key].then),e},Gs=e=>(t,n={})=>(n[e.key]=t,Xg({...e},n)),RK="deserializeAst",IZe=Gs({key:RK,editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch{}return n}}}}),TZe=(e,t={})=>Fg(e,{...t,block:!0}),AZe=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=(n=TZe(e,t))===null||n===void 0?void 0:n[1];return o?gx(e,r.focus,o)||mP(e.selection)&&gx(e,r.anchor,o):!1},OZe=e=>{const t=fP(e);t&&Object.keys(t).forEach(n=>{C9e(e,n)})},jK="editorProtocol",BZe=e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{AZe(e)&&OZe(e)};return e.deleteBackward=a=>{t(a),o()},e.deleteForward=a=>{n(a),o()},e.deleteFragment=a=>{r(a),o()},e},kZe=Gs({key:jK,withOverrides:BZe}),NK="event-editor",PZe=Gs({key:NK,handlers:{onFocus:e=>()=>{ID.focus(e.id)},onBlur:e=>()=>{nZe.focus()===e.id&&ID.focus(null),ID.blur(e.id)}}}),RZe=e=>i9e(e),jZe=Gs({key:"history",withOverrides:RZe}),LK="inline-void",NZe=e=>{const{isInline:t}=e,{isVoid:n}=e,r=[],o=[];return e.plugins.forEach(a=>{a.isInline&&r.push(a.type),a.isVoid&&o.push(a.type)}),e.isInline=a=>r.includes(a.type)?!0:t(a),e.isVoid=a=>o.includes(a.type)?!0:n(a),e},LZe=Gs({key:LK,withOverrides:NZe}),$K=(e,t)=>{const n=[];return[...e.plugins].reverse().forEach(r=>{var o;const a=(o=r.inject.pluginsByKey)===null||o===void 0?void 0:o[t.key];a&&n.push(a)}),[t,...n]},$Ze=(e,{data:t,dataTransfer:n})=>e.every(r=>{var o,a;const i=(o=r.editor)===null||o===void 0||(a=o.insertData)===null||a===void 0?void 0:a.query;return!i||i({data:t,dataTransfer:n})}),MZe=(e,t,{fragment:n,...r})=>{tu(e,()=>{t.some(o=>{var a,i,s;return((a=o.editor)===null||a===void 0||(i=a.insertData)===null||i===void 0||(s=i.preInsert)===null||s===void 0?void 0:s.call(i,n,r))===!0}),e.insertFragment(n)})},_Ze=(e,{data:t,dataTransfer:n})=>(e.forEach(r=>{var o,a;const i=(o=r.editor)===null||o===void 0||(a=o.insertData)===null||a===void 0?void 0:a.transformData;i&&(t=i(t,{dataTransfer:n}))}),t),FZe=(e,{fragment:t,...n})=>(e.forEach(r=>{var o,a;const i=(o=r.editor)===null||o===void 0||(a=o.insertData)===null||a===void 0?void 0:a.transformFragment;i&&(t=i(t,n))}),t),WZe=e=>{const{insertData:t}=e;return e.insertData=n=>{[...e.plugins].reverse().some(o=>{var a;const i=o.editor.insertData;if(!i)return!1;const s=$K(e,o),{format:l,getFragment:c}=i;if(!l)return!1;let d=n.getData(l);if(!d)return;if(!$Ze(s,{data:d,dataTransfer:n}))return!1;d=_Ze(s,{data:d,dataTransfer:n});let f=c==null?void 0:c({data:d,dataTransfer:n});return!((a=f)!==null&&a!==void 0&&a.length)||(f=FZe(s,{fragment:f,data:d,dataTransfer:n}),!f.length)?!1:(MZe(e,s,{fragment:f,data:d,dataTransfer:n}),!0)})||t(n)},e},MK="insertData",zZe=Gs({key:MK,withOverrides:WZe}),Bm="p",_K="nodeFactory",HZe=Gs({key:_K,withOverrides:e=>(e.blockFactory=t=>({type:km(e,Bm),children:[{text:""}],...t}),e.childrenFactory=()=>[e.blockFactory()],e)}),FK="prevSelection",UZe=Gs({key:FK,handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if(n.type==="set_selection"){const{properties:r}=n;e.prevSelection=r,t(n),e.currentKeyboardEvent=null;return}t(n)},e}}),VZe=e=>NVe(e),GZe=Gs({key:"react",withOverrides:VZe}),AD="\r",Op=`
`,VF=" ",lf=" ",qmt="	",YZe="​",KZe=e=>{var t;return(t=e==null?void 0:e.pluginsByKey)!==null&&t!==void 0?t:{}},WK=(e,t)=>{var n;return(n=KZe(e)[t])!==null&&n!==void 0?n:{key:t}},km=(e,t)=>{var n,r;return(n=(r=WK(e,t).type)!==null&&r!==void 0?r:t)!==null&&n!==void 0?n:""},qZe=e=>t=>ji(t)||Ai(t)&&e.isInline(t),XZe=e=>()=>({type:e,children:[]}),QZe=(e,t)=>e.some((n,r,o)=>{const a=o[r-1];return r!==0?t(n)!==t(a):!1}),ZZe=(e,t,n)=>{const r=QZe(e,t),{fragment:o}=e.reduce((a,i)=>{if(r&&t(i)){let s=a.precedingBlock;s||(s=n(),a.precedingBlock=s,a.fragment.push(s)),s.children.push(i)}else a.fragment.push(i),a.precedingBlock=null;return a},{fragment:[],precedingBlock:null});return o},JZe=e=>e.length?e:[{text:""}],zK=(e,t,n)=>(e=JZe(e),e=ZZe(e,t,n),e=e.map(r=>Ai(r)?{...r,children:zK(r.children,t,n)}:r),e),eJe=(e,{descendants:t})=>{const n=qZe(e),r=km(e,Bm),o=XZe(r);return zK(t,n,o)};function GF(e){return Object.prototype.toString.call(e)==="[object Object]"}function tJe(e){var t,n;return GF(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(GF(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function HK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UK=new WeakMap,VK=new WeakMap;class UP{}class $C extends UP{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super();var{offset:n,path:r}=t;this.offset=n,this.path=r}}class MC extends UP{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super();var{offset:n,path:r}=t;this.offset=n,this.path=r}}var nJe=(e,t)=>{var n=e.text.length;UK.set(e,[n,t])},rJe=e=>UK.get(e),oJe=(e,t)=>{var n=e.text.length;VK.set(e,[n,t])},aJe=e=>VK.get(e);function YF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YF(Object(n),!0).forEach(function(r){HK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var H0=new WeakSet,_C=e=>{var t=[],n=o=>{if(o!=null){var a=t[t.length-1];if(typeof o=="string"){var i={text:o};H0.add(i),o=i}if(at.isText(o)){var s=o;at.isText(a)&&H0.has(a)&&H0.has(s)&&at.equals(a,s,{loose:!0})?a.text+=s.text:t.push(s)}else if(st.isElement(o))t.push(o);else if(o instanceof UP){var l=t[t.length-1];at.isText(l)||(n(""),l=t[t.length-1]),o instanceof $C?nJe(l,o):o instanceof MC&&oJe(l,o)}else throw new Error("Unexpected hyperscript child object: ".concat(o))}};for(var r of e.flat(1/0))n(r);return t};function iJe(e,t,n){return new $C(t)}function sJe(e,t,n){return[new $C(t),new MC(t)]}function GK(e,t,n){return TT(TT({},t),{},{children:_C(n)})}function lJe(e,t,n){return new MC(t)}function cJe(e,t,n){return _C(n)}function uJe(e,t,n){var r=n.find(a=>a instanceof $C),o=n.find(a=>a instanceof MC);if(!r||r.offset==null||r.path==null)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||o.offset==null||o.path==null)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return TT({anchor:{offset:r.offset,path:r.path},focus:{offset:o.offset,path:o.path}},t)}function dJe(e,t,n){var r=_C(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[o]=r;if(o==null&&(o={text:""}),!at.isText(o))throw new Error(`
    The <text> hyperscript tag can only contain text content as children.`);return H0.delete(o),Object.assign(o,t),o}var fJe=e=>(t,n,r)=>{var o=[],a;for(var i of r)Ce.isRange(i)?a=i:o.push(i);var s=_C(o),l={},c=e();Object.assign(c,n),c.children=s;for(var[d,f]of _e.texts(c)){var h=rJe(d),m=aJe(d);if(h!=null){var[g]=h;l.anchor={path:f,offset:g}}if(m!=null){var[p]=m;l.focus={path:f,offset:p}}}if(l.anchor&&!l.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!l.anchor&&l.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return a!=null?c.selection=a:Ce.isRange(l)&&(c.selection=l),c};function KF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KF(Object(n),!0).forEach(function(r){HK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hJe={anchor:iJe,cursor:sJe,editor:fJe(tY),element:GK,focus:lJe,fragment:cJe,selection:uJe,text:dJe},mJe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{elements:n={}}=t,r=gJe(n),o=Zp(Zp(Zp({},hJe),r),t.creators),a=pJe(o);return a},pJe=e=>{var t=function(r,o){for(var a=arguments.length,i=new Array(a>2?a-2:0),s=2;s<a;s++)i[s-2]=arguments[s];var l=e[r];if(!l)throw new Error("No hyperscript creator found for tag: <".concat(r,">"));o==null&&(o={}),tJe(o)||(i=[o].concat(i),o={}),i=i.filter(d=>!!d).flat();var c=l(r,o,i);return c};return t},gJe=e=>{var t={},n=function(a){var i=e[a];if(typeof i!="object")throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(a,">  tag you passed: ").concat(i));t[a]=(s,l,c)=>GK("element",Zp(Zp({},i),l),c)};for(var r in e)n(r);return t},VP=mJe();const GP=(e,t)=>Array.from(t.childNodes).map(XK(e)).flat(),vJe=(e,t)=>{if(t.nodeName==="BODY")return VP("fragment",{},GP(e,t))},bJe=e=>{if(e.nodeName==="BR")return`
`};function yJe(){if(!arguments.length)return[];var e=arguments[0];return Vo(e)?e:[e]}var OD=yJe;const YK=(e,t,{element:n,deserializeLeaf:r})=>{var o;const{deserializeHtml:a,isElement:i,isLeaf:s,type:l}=t;if(!a)return;const{attributeNames:c,query:d,isLeaf:f,isElement:h,rules:m}=a;let{getNode:g}=a;const p=h||i,v=f||s;if(!r&&!p||r&&!v||m&&!m.some(({validNodeName:D="*",validStyle:A,validClassName:T,validAttribute:B})=>{if(D){const R=OD(D);if(R.length&&!R.includes(n.nodeName)&&D!=="*")return!1}if(T&&!n.classList.contains(T))return!1;if(A)for(const[R,N]of Object.entries(A)){var j;if(!OD(N).includes(n.style[R])&&N!=="*"||N==="*"&&!n.style[R])return;const U=(j=t.inject.props)===null||j===void 0?void 0:j.defaultNodeValue;if(U&&U===n.style[R])return!1}if(B)if(typeof B=="string"){if(!n.getAttributeNames().includes(B))return!1}else for(const[R,N]of Object.entries(B)){const _=OD(N),U=n.getAttribute(R);if(!wC(U)||!_.includes(U))return!1}return!0})||d&&!d(n))return;if(!g)if(p)g=()=>({type:l});else if(v)g=()=>({[l]:!0});else return;let b=(o=g(n,{}))!==null&&o!==void 0?o:{};if(!Object.keys(b).length)return;if($K(e,t).forEach(C=>{var D,A;const T=(D=C.deserializeHtml)===null||D===void 0||(A=D.getNode)===null||A===void 0?void 0:A.call(D,n,b);T&&(b={...b,...T})}),c){const C={},D=n.getAttributeNames();for(const A of D)c.includes(A)&&(C[A]=n.getAttribute(A));Object.keys(C).length&&(b.attributes=C)}return{...a,node:b}},xJe=(e,t)=>{let n;return[...e.plugins].reverse().some(r=>(n=YK(e,r,{element:t}),!!n)),n},CJe=(e,t)=>{const n=xJe(e,t);if(n){var r;const{node:o,withoutChildren:a}=n;let i=(r=o.children)!==null&&r!==void 0?r:GP(e,t);return(!i.length||a)&&(i=[{text:""}]),VP("element",o,i)}},wJe=(e,t)=>{let n={};return[...e.plugins].reverse().forEach(r=>{const o=YK(e,r,{element:t,deserializeLeaf:!0});o&&(n={...n,...o.node})}),n},SJe=(e,t)=>{const n=wJe(e,t);return GP(e,t).reduce((r,o)=>{if(!o)return r;if(Ai(o))Object.keys(n).length&&Mtt({node:o,source:n,query:{filter:([a])=>ji(a)}}),r.push(o);else{const a={...n};ji(o)&&o.text&&Object.keys(a).forEach(i=>{a[i]&&o[i]&&(a[i]=o[i])}),r.push(VP("text",a,o))}return r},[])},KK=e=>e.nodeType===Node.TEXT_NODE,DJe=e=>{if(KK(e)){var t,n;const r=(t=(n=e.textContent)===null||n===void 0?void 0:n.replace(/^\n+|\n+$/g,""))!==null&&t!==void 0?t:"";return r.length>0?r:null}},qK=e=>e.nodeType===Node.ELEMENT_NODE,XK=e=>t=>{const n=DJe(t);if(n)return n;if(!qK(t))return null;const r=bJe(t);if(r)return r;const o=vJe(e,t);if(o)return o;const a=CJe(e,t);return a||SJe(e,t)},EJe=(e,t)=>XK(e)(t),IJe=(e,t=!0)=>{const n=document.createElement("body");return n.innerHTML=e,t&&(n.innerHTML=n.innerHTML.replace(/(\r\n|\n|\r|\t)/gm,"")),n},TJe=(e,{element:t,stripWhitespace:n=!0})=>{typeof t=="string"&&(t=IJe(t,n));const r=EJe(e,t);return eJe(e,{descendants:r})},AJe=e=>new DOMParser().parseFromString(e,"text/html"),QK="deserializeHtml",OJe=Gs({key:QK,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=AJe(t);return TJe(e,{element:n.body})}}}})}),FC=(e,t)=>{if(!t(e))return;let r=e.firstChild;for(;r;){const o=r,a=r.previousSibling;r=r.nextSibling,FC(o,t),!o.previousSibling&&!o.nextSibling&&!o.parentNode&&r&&a!==r.previousSibling&&r.parentNode?a?r=a.nextSibling:r=e.firstChild:!o.previousSibling&&!o.nextSibling&&!o.parentNode&&r&&!r.previousSibling&&!r.nextSibling&&!r.parentNode&&(a?a.nextSibling?r=a.nextSibling.nextSibling:r=null:e.firstChild&&(r=e.firstChild.nextSibling))}},Pm=(e,t)=>{FC(e,n=>qK(n)?t(n):!0)},Xmt=e=>{Pm(e,t=>{if(t.tagName!=="BR")return!0;const n=document.createTextNode(Op);return t.parentElement&&t.parentElement.replaceChild(n,t),!1})},BJe=e=>e.replace(/(\r\n|\r)/gm,`
`),kJe=["BR","IMG","TH","TD"],PJe=e=>!kJe.includes(e.nodeName)&&!e.innerHTML.trim(),ZK=e=>{if(PJe(e)){const{parentElement:t}=e;e.remove(),t&&ZK(t)}},Qmt=e=>{Pm(e,t=>(ZK(t),!0))},RJe=(e,t)=>{const n=document.createElement(t);n.innerHTML=e.innerHTML;for(const{name:r}of e.attributes){const o=e.getAttribute(r);o&&n.setAttribute(r,o)}return e.parentNode&&e.parentNode.replaceChild(n,e),n},Zmt=e=>{Pm(e,t=>(t.tagName==="FONT"&&(t.textContent?RJe(t,"span"):t.remove()),!0))},jJe=e=>e.startsWith("#"),qF=e=>{e.outerHTML=e.innerHTML},Jmt=e=>{Pm(e,t=>{if(t.tagName!=="A")return!0;const n=t.getAttribute("href");if((!n||jJe(n))&&qF(t),n&&t.querySelector("img"))for(const r of t.querySelectorAll("span"))r.innerText||qF(r);return!0})},NJe=(e,t)=>{FC(e,n=>KK(n)?t(n):!0)},ept=e=>{NJe(e,t=>{if(/^\n\s*$/.test(t.data)&&(t.previousElementSibling||t.nextElementSibling))return t.remove(),!0;if(t.data=t.data.replace(/\n\s*/g,`
`),t.data.includes(AD)||t.data.includes(Op)||t.data.includes(VF)){const n=t.data.includes(lf),r=/\S/.test(t.data),o=t.data.includes(Op);if(!(n||r)&&!o)return t.data===VF?(t.data=lf,!0):(t.remove(),!0);if(t.previousSibling&&t.previousSibling.nodeName==="BR"&&t.parentElement){t.parentElement.removeChild(t.previousSibling);const a=t.data.match(/^[\r\n]+/),i=a?a[0].length:0;t.data=t.data.substring(i).replace(new RegExp(Op,"g"),lf).replace(new RegExp(AD,"g"),lf),t.data=`
${t.data}`}else t.data=t.data.replace(new RegExp(Op,"g"),lf).replace(new RegExp(AD,"g"),lf)}return!0})},LJe=e=>/^(address|blockquote|body|center|dir|div|dl|fieldset|form|h[1-6]|hr|isindex|menu|noframes|noscript|ol|p|pre|table|ul|dd|dt|frameset|li|tbody|td|tfoot|th|thead|tr|html)$/i.test(e.nodeName),$Je=e=>e.nodeName==="TABLE",tpt=e=>{Pm(e,t=>{const n=t;if(!t.getAttribute("style"))return!0;if(LJe(n)&&!$Je(n)){const{style:{backgroundColor:o,color:a,fontFamily:i,fontSize:s,fontStyle:l,fontWeight:c,textDecoration:d}}=n;if(o||a||i||s||l||c||d){const f=document.createElement("span");["initial","inherit"].includes(a)||(f.style.color=a),f.style.fontFamily=i,f.style.fontSize=s,["normal","initial","inherit"].includes(a)||(f.style.fontStyle=l),["normal",400].includes(c)||(f.style.fontWeight=c),f.style.textDecoration=d,f.innerHTML=n.innerHTML,t.innerHTML=f.outerHTML}}return!0})},MJe=(e,t)=>{let n=null;return Pm(e,r=>t(r)?(n=r,!1):!0),n},npt=(e,t)=>!!MJe(e,t),_Je=()=>NodeFilter.FILTER_ACCEPT,rpt=e=>{const t=[],n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode:_Je});let r=n.nextNode();for(;r;)r.nodeValue&&t.push(r.nodeValue),r=n.nextNode();return t},JK=e=>e.nodeType===Node.COMMENT_NODE,opt=e=>`<body>${e.trim().replace(new RegExp(YZe,"g"),"")}</body>`,FJe=e=>{const t=e.indexOf("<html");return t===-1?e:e.substring(t)},WJe=e=>{const t=e.lastIndexOf("</html>");return t===-1?e:e.substring(0,t+7)},zJe=e=>FJe(WJe(e)),HJe=[zJe,BJe],apt=e=>HJe.reduce((t,n)=>n(t),e),UJe=(e,t)=>{FC(e,n=>JK(n)?t(n):!0)},ipt=(e,t,n)=>{const r=o=>JK(o)&&o.data===n;UJe(e,o=>{if(o.data===t){let a=o.nextSibling;for(o.remove();a&&!r(a);){const{nextSibling:i}=a;a.remove(),a=i}a&&r(a)&&a.remove()}return!0})};function VJe(e,t,n,r){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}var GJe=VJe;function YJe(e,t){return e&&OK(e,t,Om)}var KJe=YJe;function qJe(e,t){return function(n,r){if(n==null)return n;if(!Uv(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}var XJe=qJe,QJe=XJe(KJe),ZJe=QJe;function JJe(e,t,n,r){return ZJe(e,function(o,a,i){t(r,o,n(o),i)}),r}var eet=JJe,tet="__lodash_hash_undefined__";function net(e){return this.__data__.set(e,tet),this}var ret=net;function oet(e){return this.__data__.has(e)}var aet=oet;function wx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PC;++t<n;)this.add(e[t])}wx.prototype.add=wx.prototype.push=ret;wx.prototype.has=aet;var iet=wx;function set(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var cet=set;function uet(e,t){return e.has(t)}var det=uet,fet=1,het=2;function met(e,t,n,r,o,a){var i=n&fet,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,m=n&het?new iet:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(r)var v=i?r(p,g,f,t,e,a):r(g,p,f,e,t,a);if(v!==void 0){if(v)continue;h=!1;break}if(m){if(!cet(t,function(b,y){if(!det(m,y)&&(g===b||o(g,b,n,r,a)))return m.push(y)})){h=!1;break}}else if(!(g===p||o(g,p,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var eq=met;function pet(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var get=pet;function vet(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var bet=vet,yet=1,xet=2,Cet="[object Boolean]",wet="[object Date]",Det="[object Error]",Eet="[object Map]",Iet="[object Number]",Tet="[object RegExp]",Aet="[object Set]",Oet="[object String]",Bet="[object Symbol]",ket="[object ArrayBuffer]",Pet="[object DataView]",XF=ii?ii.prototype:void 0,BD=XF?XF.valueOf:void 0;function Ret(e,t,n,r,o,a,i){switch(n){case Pet:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ket:return!(e.byteLength!=t.byteLength||!a(new xx(e),new xx(t)));case Cet:case wet:case Iet:return Hv(+e,+t);case Det:return e.name==t.name&&e.message==t.message;case Tet:case Oet:return e==t+"";case Eet:var s=get;case Aet:var l=r&yet;if(s||(s=bet),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=xet,i.set(e,t);var d=eq(s(e),s(t),r,o,a,i);return i.delete(e),d;case Bet:if(BD)return BD.call(e)==BD.call(t)}return!1}var jet=Ret,Net=1,Let=Object.prototype,$et=Let.hasOwnProperty;function Met(e,t,n,r,o,a){var i=n&Net,s=yT(e),l=s.length,c=yT(t),d=c.length;if(l!=d&&!i)return!1;for(var f=l;f--;){var h=s[f];if(!(i?h in t:$et.call(t,h)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=i;++f<l;){h=s[f];var b=e[h],y=t[h];if(r)var C=i?r(y,b,h,t,e,a):r(b,y,h,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var D=e.constructor,A=t.constructor;D!=A&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof A=="function"&&A instanceof A)&&(p=!1)}return a.delete(e),a.delete(t),p}var _et=Met,Fet=1,QF="[object Arguments]",ZF="[object Array]",t0="[object Object]",Wet=Object.prototype,JF=Wet.hasOwnProperty;function zet(e,t,n,r,o,a){var i=Vo(e),s=Vo(t),l=i?ZF:qg(e),c=s?ZF:qg(t);l=l==QF?t0:l,c=c==QF?t0:c;var d=l==t0,f=c==t0,h=l==c;if(h&&Kg(e)){if(!Kg(t))return!1;i=!0,d=!1}if(h&&!d)return a||(a=new Kf),i||kP(e)?eq(e,t,n,r,o,a):jet(e,t,l,n,r,o,a);if(!(n&Fet)){var m=d&&JF.call(e,"__wrapped__"),g=f&&JF.call(t,"__wrapped__");if(m||g){var p=m?e.value():e,v=g?t.value():t;return a||(a=new Kf),o(p,v,n,r,a)}}return h?(a||(a=new Kf),_et(e,t,n,r,o,a)):!1}var Het=zet;function tq(e,t,n,r,o){return e===t?!0:e==null||t==null||!Os(e)&&!Os(t)?e!==e&&t!==t:Het(e,t,n,r,tq,o)}var YP=tq,Uet=1,Vet=2;function Get(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],d=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Kf;if(r)var h=r(c,d,l,e,t,f);if(!(h===void 0?YP(d,c,Uet|Vet,r,f):h))return!1}}return!0}var Yet=Get;function Ket(e){return e===e&&!Fi(e)}var nq=Ket;function qet(e){for(var t=Om(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,nq(o)]}return t}var Xet=qet;function Qet(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var rq=Qet;function Zet(e){var t=Xet(e);return t.length==1&&t[0][2]?rq(t[0][0],t[0][1]):function(n){return n===e||Yet(n,e,t)}}var Jet=Zet;function ett(e,t,n){var r=e==null?void 0:FP(e,t);return r===void 0?n:r}var ttt=ett;function ntt(e,t){return e!=null&&t in Object(e)}var rtt=ntt;function ott(e,t,n){t=jC(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=Gv(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&OP(o)&&AP(i,o)&&(Vo(e)||Yg(e)))}var att=ott;function itt(e,t){return e!=null&&att(e,t,rtt)}var stt=itt,ltt=1,ctt=2;function utt(e,t){return MP(e)&&nq(t)?rq(Gv(e),t):function(n){var r=ttt(n,e);return r===void 0&&r===t?stt(n,e):YP(t,r,ltt|ctt)}}var dtt=utt;function ftt(e){return function(t){return t==null?void 0:t[e]}}var htt=ftt;function mtt(e){return function(t){return FP(t,e)}}var ptt=mtt;function gtt(e){return MP(e)?htt(Gv(e)):ptt(e)}var vtt=gtt;function btt(e){return typeof e=="function"?e:e==null?WP:typeof e=="object"?Vo(e)?dtt(e[0],e[1]):Jet(e):vtt(e)}var ytt=btt;function xtt(e,t){return function(n,r){var o=Vo(n)?GJe:eet,a=t?t():{};return o(n,e,ytt(r),a)}}var Ctt=xtt,wtt=Ctt(function(e,t,n){RC(e,n,t)}),e4=wtt,Stt=PK(function(e,t,n){HP(e,t,n)}),oq=Stt;function Dtt(e,t){return IP(t,function(n){return e[n]})}var Ett=Dtt;function Itt(e){return e==null?[]:Ett(e,Om(e))}var Ttt=Itt;const aq=(e,t)=>{const n={...t},{then:r}=n;if(r){delete n.then;const{plugins:o}=n,a=aq(e,Cx(r(e,n),n));if(o&&a.plugins){const i=oq(e4(o,"key"),e4(a.plugins,"key"));a.plugins=Ttt(i)}return a}return n},Att=e=>(e.type===void 0&&(e.type=e.key),e.options||(e.options={}),e.inject||(e.inject={}),e.editor||(e.editor={}),e),AT=(e,t)=>{t&&t.forEach(n=>{let r=Att(n);if(r=aq(e,r),!e.pluginsByKey[r.key])e.plugins.push(r),e.pluginsByKey[r.key]=r;else{const o=e.plugins.indexOf(e.pluginsByKey[r.key]),a=Cx(r,e.pluginsByKey[r.key]);o>=0&&(e.plugins[o]=a),e.pluginsByKey[r.key]=a}AT(e,r.plugins)})},iq=(e,{disableCorePlugins:t,plugins:n=[]})=>{let r=[];if(t!==!0){const j=t;if(typeof j!="object"||!(j!=null&&j.react)){var o,a;r.push((o=e==null||(a=e.pluginsByKey)===null||a===void 0?void 0:a.react)!==null&&o!==void 0?o:GZe())}if(typeof j!="object"||!(j!=null&&j.history)){var i,s;r.push((i=e==null||(s=e.pluginsByKey)===null||s===void 0?void 0:s.history)!==null&&i!==void 0?i:jZe())}if(typeof j!="object"||!(j!=null&&j.nodeFactory)){var l,c;r.push((l=e==null||(c=e.pluginsByKey)===null||c===void 0?void 0:c[_K])!==null&&l!==void 0?l:HZe())}if(typeof j!="object"||!(j!=null&&j.eventEditor)){var d,f;r.push((d=e==null||(f=e.pluginsByKey)===null||f===void 0?void 0:f[NK])!==null&&d!==void 0?d:PZe())}if(typeof j!="object"||!(j!=null&&j.inlineVoid)){var h,m;r.push((h=e==null||(m=e.pluginsByKey)===null||m===void 0?void 0:m[LK])!==null&&h!==void 0?h:LZe())}if(typeof j!="object"||!(j!=null&&j.insertData)){var g,p;r.push((g=e==null||(p=e.pluginsByKey)===null||p===void 0?void 0:p[MK])!==null&&g!==void 0?g:zZe())}if(typeof j!="object"||!(j!=null&&j.selection)){var v,b;r.push((v=e==null||(b=e.pluginsByKey)===null||b===void 0?void 0:b[FK])!==null&&v!==void 0?v:UZe())}if(typeof j!="object"||!(j!=null&&j.deserializeHtml)){var y,C;r.push((y=e==null||(C=e.pluginsByKey)===null||C===void 0?void 0:C[QK])!==null&&y!==void 0?y:OJe())}if(typeof j!="object"||!(j!=null&&j.deserializeAst)){var D,A;r.push((D=e==null||(A=e.pluginsByKey)===null||A===void 0?void 0:A[RK])!==null&&D!==void 0?D:IZe())}if(typeof j!="object"||!(j!=null&&j.editorProtocol)){var T,B;r.push((T=e==null||(B=e.pluginsByKey)===null||B===void 0?void 0:B[jK])!==null&&T!==void 0?T:kZe())}}r=[...r,...n],e.plugins=[],e.pluginsByKey={},AT(e,r),e.plugins.forEach(j=>{if(j.overrideByKey){const R=e.plugins.map(N=>Xg(N,j.overrideByKey));e.plugins=[],e.pluginsByKey={},AT(e,R)}})},t4=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)},Ott=(e,{id:t,plugins:n=[],disableCorePlugins:r}={})=>{let o=e;return o.id=t??o.id,o.prevSelection=null,o.currentKeyboardEvent=null,o.reset=()=>t4("reset"),o.redecorate=()=>t4("redecorate"),o.plate={get set(){return null}},o.key||(o.key=Math.random()),iq(o,{plugins:n,disableCorePlugins:r}),o.plugins.forEach(a=>{a.withOverrides&&(o=a.withOverrides(o,a))}),o};var Btt=1,ktt=4;function Ptt(e){return vK(e,Btt|ktt)}var sq=Ptt;const Rtt=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=sq(n)),t&&Object.keys(t).forEach(o=>{r[o]||(r[o]={}),r[o].component=t[o]}),Object.keys(r).length?e.map(o=>Xg(o,r)):e},lq=({editor:e=c9e(),plugins:t=[],components:n,overrideByKey:r,normalizeInitialValue:o,...a}={})=>{t=Rtt(t,{components:n,overrideByKey:r});const i=Ott(e,{plugins:t,...a});return o&&fY(i,{force:!0}),i},spt=(e,t)=>{var n;return(n=WK(e,t).options)!==null&&n!==void 0?n:{}},lpt=(e,t)=>t.map(n=>km(e,n)),jtt=e=>`slate-${e}`,cq=({attributes:e,nodeProps:t,props:n,type:r})=>{let o={};if(n){var a;o=(a=typeof n=="function"?n(t):n)!==null&&a!==void 0?a:{}}!o.nodeProps&&e&&(o.nodeProps=e),t={...t,...o},t.nodeProps&&Object.keys(t.nodeProps).forEach(s=>{var l;if(((l=t.nodeProps)===null||l===void 0?void 0:l[s])===void 0){var c;(c=t.nodeProps)===null||c===void 0||delete c[s]}});const{className:i}=t;return{...t,className:bT(jtt(r),i)}};var nu=BC(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n=()=>typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n()?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=1;i<20;i++)a["f"+i]=111+i;function s(g,p,v){p&&!("byKey"in p)&&(v=p,p=null),Array.isArray(g)||(g=[g]);var b=g.map(function(D){return d(D,p)}),y=function(A){return b.some(function(T){return f(T,A)})},C=v==null?y:y(v);return C}function l(g,p){return s(g,p)}function c(g,p){return s(g,{byKey:!0},p)}function d(g,p){var v=p&&p.byKey,b={};g=g.replace("++","+add");var y=g.split("+"),C=y.length;for(var D in r)b[r[D]]=!1;var A=!0,T=!1,B=void 0;try{for(var j=y[Symbol.iterator](),R;!(A=(R=j.next()).done);A=!0){var N=R.value,_=N.endsWith("?")&&N.length>1;_&&(N=N.slice(0,-1));var U=m(N),V=r[U];(C===1||!V)&&(v?b.key=U:b.which=h(N)),V&&(b[V]=_?null:!0)}}catch(z){T=!0,B=z}finally{try{!A&&j.return&&j.return()}finally{if(T)throw B}}return b}function f(g,p){for(var v in g){var b=g[v],y=void 0;if(b!=null&&(v==="key"&&p.key!=null?y=p.key.toLowerCase():v==="which"?y=b===91&&p.which===93?91:p.which:y=p[v],!(y==null&&b===!1)&&y!==b))return!1}return!0}function h(g){g=m(g);var p=a[g]||g.toUpperCase().charCodeAt(0);return p}function m(g){return g=g.toLowerCase(),g=o()[g]||g,g}t.default=s,t.isHotkey=s,t.isCodeHotkey=l,t.isKeyHotkey=c,t.parseHotkey=d,t.compareHotkey=f,t.toKeyCode=h,t.toKeyName=m});uGe(nu);nu.isHotkey;nu.isCodeHotkey;var kD=nu.isKeyHotkey;nu.parseHotkey;nu.compareHotkey;nu.toKeyCode;nu.toKeyName;const Ntt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",untab:"shift+tab",undo:"mod+z"},Ltt={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},$tt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Gn=e=>{const t=Ntt[e],n=Ltt[e],r=$tt[e],o=t&&kD(t),a=n&&kD(n),i=r&&kD(r);return s=>!!(o&&o(s)||qM&&a&&a(s)||!qM&&i&&i(s))},n4=e=>(t,n,{composing:r}={})=>!(!Gn(e)(n)||!!r!==$Ve(t)),cpt={isBold:Gn("bold"),isCompose:Gn("compose"),isMoveBackward:Gn("moveBackward"),isMoveForward:Gn("moveForward"),isDeleteBackward:Gn("deleteBackward"),isDeleteForward:Gn("deleteForward"),isDeleteLineBackward:Gn("deleteLineBackward"),isDeleteLineForward:Gn("deleteLineForward"),isDeleteWordBackward:Gn("deleteWordBackward"),isDeleteWordForward:Gn("deleteWordForward"),isExtendBackward:Gn("extendBackward"),isExtendForward:Gn("extendForward"),isExtendLineBackward:Gn("extendLineBackward"),isExtendLineForward:Gn("extendLineForward"),isItalic:Gn("italic"),isMoveLineBackward:Gn("moveLineBackward"),isMoveLineForward:Gn("moveLineForward"),isMoveWordBackward:Gn("moveWordBackward"),isMoveWordForward:Gn("moveWordForward"),isRedo:Gn("redo"),isSoftBreak:Gn("insertSoftBreak"),isSplitBlock:Gn("splitBlock"),isTab:n4("tab"),isTransposeCharacter:Gn("transposeCharacter"),isUndo:Gn("undo"),isUntab:n4("untab")},Mtt=e=>{TK({...e,apply:oq})},upt=e=>({key:"",type:"",editor:{},inject:{},options:{},...e});function _tt(e,t){return YP(e,t)}var Ftt=_tt;const Wtt=(e,t)=>{let n=sq(t);if(e.plugins.forEach(r=>{var o;const a=(o=r.normalizeInitialValue)===null||o===void 0?void 0:o.call(r,n);a&&(n=a)}),!Ftt(t,n))return n},ztt=(e,t)=>{const n=e.plugins.flatMap(r=>{var o,a;return(o=(a=r.decorate)===null||a===void 0?void 0:a.call(r,e,r))!==null&&o!==void 0?o:[]});if(t&&n.push(t),!!n.length)return r=>{let o=[];const a=i=>{i!=null&&i.length&&(o=[...o,...i])};return n.forEach(i=>{a(i(r))}),o}},r4=(e,t)=>{if(!t)return!1;const n=t(e);return n??e.isPropagationStopped()},Htt=(e,{editableProps:t,handlerKey:n})=>{let r=[];r=e.plugins.flatMap(a=>{var i,s,l;return(i=(s=a.handlers)===null||s===void 0||(l=s[n])===null||l===void 0?void 0:l.call(s,e,a))!==null&&i!==void 0?i:[]});const o=t==null?void 0:t[n];if(!(!r.length&&!o))return a=>r.some(s=>r4(a,s))?!0:r4(a,o)},Utt=(e,{key:t,inject:{props:n}},r)=>{var o;const{element:a,text:i,className:s,style:l}=r,c=a??i;if(!c||!n)return;const{nodeKey:d=t,styleKey:f=d,validTypes:h,classNames:m,transformClassName:g,transformNodeValue:p,transformStyle:v,validNodeValues:b,defaultNodeValue:y}=n;if(h&&Ai(c)&&c.type&&!h.includes(c.type))return;const C=c[d];if(!C||b&&!b.includes(C)||C===y)return;const D={},A={...r,nodeValue:C},T=(o=p==null?void 0:p(A))!==null&&o!==void 0?o:C;if(a&&(D.className=bT(s,`slate-${d}-${C}`)),m!=null&&m[C]||g){var B;D.className=(B=g==null?void 0:g(A))!==null&&B!==void 0?B:bT(s,m==null?void 0:m[T])}if(f){var j;D.style=(j=v==null?void 0:v(A))!==null&&j!==void 0?j:{...l,[f]:T}}return D},uq=(e,t)=>(e.plugins.forEach(n=>{if(n.inject.props){const r=Utt(e,n,t);r&&(t={...t,...r})}}),{...t,editor:e}),Vtt=e=>{const t=e.plugins.flatMap(n=>{var r,o,a;return(r=(o=n.handlers)===null||o===void 0||(a=o.onChange)===null||a===void 0?void 0:a.call(o,e,n))!==null&&r!==void 0?r:[]});return n=>t.some(r=>{if(!r)return!1;const o=r(n);return o??!1})},Gtt=(e,{key:t,type:n,component:r,props:o})=>a=>{const{element:i,children:s}=a;if(i.type===n){const l=r??DP,c=e.plugins.flatMap(m=>{var g,p;return(g=(p=m.inject)===null||p===void 0?void 0:p.aboveComponent)!==null&&g!==void 0?g:[]}),d=e.plugins.flatMap(m=>{var g,p;return(g=(p=m.inject)===null||p===void 0?void 0:p.belowComponent)!==null&&g!==void 0?g:[]});a=cq({attributes:i.attributes,nodeProps:a,props:o,type:n});let f=s;d.forEach(m=>{const g=m({...a,key:t});g&&(f=g({...a,children:f}))});let h=W.createElement(l,a,f);return c.forEach(m=>{const g=m({...a,key:t});g&&(h=g({...a,children:h}))}),W.createElement(FVe,{element:i,scope:t},h)}},Ytt=(e,t)=>{const n=[];return e.plugins.forEach(r=>{r.isElement&&n.push(Gtt(e,r))}),r=>{const o=uq(e,r);let a;return n.some(i=>(a=i(o),!!a)),a||(t?t(o):W.createElement(DP,o))}},Ktt=(e,{key:t,type:n=t,component:r,props:o})=>a=>{const{leaf:i,children:s}=a;if(i[n]){const l=r??JY;return a=cq({attributes:i.attributes,props:o,nodeProps:a,type:n}),W.createElement(l,a,s)}return s},qtt=(e,t)=>{const n=[];return e.plugins.forEach(r=>{r.isLeaf&&r.key&&n.push(Ktt(e,r))}),r=>{const o=uq(e,r);return n.forEach(a=>{const i=a(o);i!==void 0&&(o.children=i)}),t?t(o):W.createElement(JY,o)}},Xtt=e=>{const t=Wi(e).editor(),n=LC(e).editor();return x.useCallback(()=>{const r=lq({id:t.id,plugins:t.plugins,disableCorePlugins:!0});n(r)},[t,n])},WC=e=>Wi(e).editor(),dpt=e=>(Wi(e).keyEditor(),WC(e)),fpt=e=>{var t;const n=TD.focus(),r=TD.blur(),o=TD.last(),a=Wi().id();return e||n||r||((t=o??a)!==null&&t!==void 0?t:Yv)},o4=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Qtt=({id:e,...t}={})=>{var n,r,o;const a=WC(e),i=Wi(e),s=i.keyDecorate(),l=i.readOnly(),c=(n=i.decorate())===null||n===void 0?void 0:n.fn,d=(r=i.renderLeaf())===null||r===void 0?void 0:r.fn,f=(o=i.renderElement())===null||o===void 0?void 0:o.fn,h=x.useMemo(()=>ztt(a,c??(t==null?void 0:t.decorate)),[t==null?void 0:t.decorate,a,c]),m=x.useMemo(()=>{if(!(!s||!h))return b=>h(b)},[h,s]),g=x.useMemo(()=>Ytt(a,f??(t==null?void 0:t.renderElement)),[t==null?void 0:t.renderElement,a,f]),p=x.useMemo(()=>qtt(a,d??(t==null?void 0:t.renderLeaf)),[t==null?void 0:t.renderLeaf,a,d]),v=ZM(()=>{const b={decorate:m,renderElement:g,renderLeaf:p};return wC(l)&&(b.readOnly=l),o4.forEach(y=>{const C=Htt(a,{editableProps:t,handlerKey:y});C&&(b[y]=C)}),b},[m,t,g,p,l]);return ZM(()=>({...tZe(t,[...o4,"renderElement","renderLeaf"]),...v}),[t,v])},zC=()=>Vl(),Ztt=()=>KY();function Jtt(e){return e===void 0}var ent=Jtt;const Zl=({setState:e,state:t,nextState:n,nextStateValue:r=n})=>{x.useEffect(()=>{n!==t&&!ent(n)&&e(r)},[e,t,n,r])},tnt=({id:e,disableCorePlugins:t,value:n,onChange:r,plugins:o,editorRef:a,decorate:i,renderElement:s,renderLeaf:l,readOnly:c})=>{const d=WC(e),f=aZe(e),[h,m]=f.value(),[g,p]=f.editorRef(),[v,b]=f.decorate(),[y,C]=f.renderElement(),[D,A]=f.renderLeaf(),[T,B]=f.rawPlugins(),[,j]=f.plugins(),[R,N]=f.onChange(),[_,U]=f.readOnly();Zl({state:h,setState:m,nextState:n}),Zl({state:_,setState:U,nextState:c}),Zl({state:T,setState:j,nextState:o,nextStateValue:o??[]}),Zl({state:R==null?void 0:R.fn,setState:N,nextState:r,nextStateValue:r?{fn:r}:null}),Zl({state:g==null?void 0:g.ref,setState:p,nextState:a,nextStateValue:a?{ref:a}:null}),Zl({state:v==null?void 0:v.fn,setState:b,nextState:i,nextStateValue:i?{fn:i}:null}),Zl({state:y==null?void 0:y.fn,setState:C,nextState:s,nextStateValue:s?{fn:s}:null}),Zl({state:D==null?void 0:D.fn,setState:A,nextState:l,nextStateValue:l?{fn:l}:null}),x.useEffect(()=>{o!==T&&(B(T),iq(d,{plugins:o,disableCorePlugins:t}),j(d.plugins))},[t,d,T,o,j,B])},nnt=({id:e})=>{var t;const n=WC(e),r=Wi(e).value(),o=LC(e).value(),a=(t=Wi(e).onChange())===null||t===void 0?void 0:t.fn,i=x.useCallback(s=>{Vtt(n)(s)||a==null||a(s),o(s)},[n,o,a]);return x.useMemo(()=>({key:n.key,editor:n,onChange:i,value:r,initialValue:r}),[n,i,r])},rnt=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],ont=({id:e})=>{const t=zC(),n=Xtt(e),r=iZe(e),o=NC(e),a=Object.fromEntries(rnt.map(s=>[s,o.set[s]()])),i=x.useMemo(()=>a,[]);return x.useEffect(()=>{t.reset=n,t.redecorate=r,t.plate={set:i}},[t,n,r,i]),null},ant=({plugin:e})=>{var t;const n=zC();return(t=e.useHooks)===null||t===void 0||t.call(e,n,e),null},int=({id:e})=>{var t;const n=LC(e).isRendered(),r=Wi(e).plugins(),o=zC(),a=(t=Wi(e).editorRef())===null||t===void 0?void 0:t.ref;return x.useEffect(()=>(n(!0),()=>{n(!1)}),[n]),x.useEffect(()=>{if(typeof a=="function")return a(o),()=>a(null);if(a)return a.current=o,()=>{a.current=null}},[a,o]),W.createElement(W.Fragment,null,r.map(i=>W.createElement(ant,{key:i.key,plugin:i})))},snt=x.memo(({id:e})=>{const t=Ztt(),n=DT("keyEditor",e),r=DT("keySelection",e);return x.useEffect(()=>{n()}),x.useEffect(()=>{r()},[t.selection,r]),null}),lnt=({children:e,renderEditable:t,editableRef:n,firstChildren:r,...o})=>{const{id:a}=o,i=zC(),{plugins:s}=i,l=Qtt(o),c=W.createElement(EVe,Mc({ref:n},l));let d=null,f=null;s.forEach(m=>{const{renderBeforeEditable:g,renderAfterEditable:p}=m;p&&(d=W.createElement(W.Fragment,null,d,p(l))),g&&(f=W.createElement(W.Fragment,null,f,g(l)))});let h=W.createElement(W.Fragment,null,r,f,t?t(c):c,W.createElement(ont,{id:a}),W.createElement(snt,{id:a}),W.createElement(int,{id:a}),d,e);return s.forEach(m=>{const{renderAboveEditable:g}=m;g&&(h=g({children:h}))}),h},cnt=({children:e,...t})=>(tnt(t),W.createElement(W.Fragment,null,e)),unt=({normalizeInitialValue:e,...t})=>{const{id:n=Yv,editor:r,initialValue:o,value:a,children:i,plugins:s,disableCorePlugins:l,onChange:c,editorRef:d,decorate:f,renderElement:h,renderLeaf:m,readOnly:g}=t,p=x.useMemo(()=>r??lq({id:n,plugins:s,disableCorePlugins:l}),[]),v=x.useMemo(()=>{let b=o??a;b||(b=p.children.length?p.children:p.childrenFactory());const y=Wtt(p,b);return y&&(b=y),p.children=b,e&&fY(p,{force:!0}),p.children},[]);return W.createElement(bx,{initialValues:[[hi.atom.id,n],[hi.atom.editor,p],[hi.atom.plugins,p.plugins],[hi.atom.rawPlugins,s],[hi.atom.readOnly,g],[hi.atom.value,v],[hi.atom.decorate,{fn:f}],[hi.atom.onChange,{fn:c}],[hi.atom.editorRef,{ref:d}],[hi.atom.renderElement,{fn:h}],[hi.atom.renderLeaf,{fn:m}]],scope:n},W.createElement(bx,{initialValues:[[IK,n]],scope:EK},W.createElement(cnt,t,i)))},dnt=e=>{const{id:t}=e;return W.createElement(unt,Mc({key:t==null?void 0:t.toString()},e))},fnt=({id:e,children:t})=>{const n=nnt({id:e}),{plugins:r}=Wi(e).editor();let o=W.createElement(RVe,n,t);return r==null||r.forEach(a=>{const{renderAboveSlate:i}=a;i&&(o=i({children:o}))}),o},hpt=({children:e,editableRef:t,firstChildren:n,renderEditable:r,editableProps:o,...a})=>{const{id:i=Yv}=a,s=Wi(i).id(),l=W.createElement(fnt,{id:i},W.createElement(lnt,Mc({id:i,editableRef:t,firstChildren:n,renderEditable:r},o),e));return s?l:W.createElement(dnt,a,l)},hnt=(e,t,n)=>{const{activeType:r,inactiveType:o=km(e,Bm)}=t;if(!r||!e.selection)return;const a=k9e(e,{...n,match:{type:r}});a&&r===o||P9e(e,{type:a?o:r})},mpt=(e,t)=>{try{const{match:n,at:r=e.selection,reverse:o=!1,voids:a=!1}=t;if(!r)return;let i,s;if(JG.isSpan(r))[i,s]=r;else if(Ce.isRange(r)){const d=H_(e,r,{edge:"start"}),f=H_(e,r,{edge:"end"});i=o?f:d,s=o?d:f}let l=[e,[]];de.isPath(r)&&(l=y9e(e,r));const c=S9e(l[0],{reverse:o,from:i,to:s,pass:([d])=>a?!1:cY(e,d)});for(const[d,f]of c)if(rY(d,f,n))return[d,r.concat(f)]}catch{return}},zi=(e,t={})=>Fg(e,{...t,block:!0}),ppt=e=>{const[t,n]=e;if(hP(t)){const{children:r}=t;return r.map((o,a)=>{const i=n.concat([a]);return[o,i]})}return[]},gpt=(e,{at:t,...n}={})=>{const r=t??e.selection;if(!r)return null;const[o,a]=g9e(e,r??e.selection),i=zi(e,{at:o,...n});if(!i)return null;const s=zi(e,{at:a,...n});return s?[i,s]:null},mnt=e=>{const[t,n]=e;if(ji(t)||!t.children.length)return null;const r=t.children;return[r[r.length-1],n.concat([r.length-1])]},pnt=e=>{const t=mnt(e);return t?t[1]:e[1].concat([-1])},vpt=(e,t)=>{const n=pnt(e);return de.equals(n,t)},dq=(e,t)=>{if(!(t+1)||!hP(e))return e;const{children:n}=e,r=n[n.length-1];return dq(r,t-1)},bpt=(e,t)=>{const{children:n}=e,r=n[n.length-1];if(!r)return;const[,o]=v9e(e,[]);return[dq(r,t-1),o.slice(0,t+1)]},gnt=(e,t)=>{if(!e)return;const n=fP(e);return n==null?void 0:n[t]},ypt=(e,t)=>{const n=b9e(e,{at:t});if(n)return DC(e,n[1])},vnt=(e,t)=>{const[n,r]=e,o=t[r.length],a=[],i=n.children;if(o+1<n.children.length)for(let s=o+1;s<n.children.length;s++)a.push(i[s]);return a};var bnt=Array.isArray,Hi=bnt;function ynt(){if(!arguments.length)return[];var e=arguments[0];return Hi(e)?e:[e]}var KP=ynt;function xnt(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var fq=xnt;function Cnt(){this.__data__=[],this.size=0}var wnt=Cnt;function Snt(e,t){return e===t||e!==e&&t!==t}var hq=Snt;function Dnt(e,t){for(var n=e.length;n--;)if(hq(e[n][0],t))return n;return-1}var HC=Dnt,Ent=Array.prototype,Int=Ent.splice;function Tnt(e){var t=this.__data__,n=HC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Int.call(t,n,1),--this.size,!0}var Ant=Tnt;function Ont(e){var t=this.__data__,n=HC(t,e);return n<0?void 0:t[n][1]}var Bnt=Ont;function knt(e){return HC(this.__data__,e)>-1}var Pnt=knt;function Rnt(e,t){var n=this.__data__,r=HC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jnt=Rnt;function Rm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rm.prototype.clear=wnt;Rm.prototype.delete=Ant;Rm.prototype.get=Bnt;Rm.prototype.has=Pnt;Rm.prototype.set=jnt;var UC=Rm;function Nnt(){this.__data__=new UC,this.size=0}var Lnt=Nnt;function $nt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Mnt=$nt;function _nt(e){return this.__data__.get(e)}var Fnt=_nt;function Wnt(e){return this.__data__.has(e)}var znt=Wnt,n0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mq(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Hnt=typeof n0=="object"&&n0&&n0.Object===Object&&n0,pq=Hnt,Unt=typeof self=="object"&&self&&self.Object===Object&&self,Vnt=pq||Unt||Function("return this")(),Gl=Vnt,Gnt=Gl.Symbol,_c=Gnt,gq=Object.prototype,Ynt=gq.hasOwnProperty,Knt=gq.toString,pp=_c?_c.toStringTag:void 0;function qnt(e){var t=Ynt.call(e,pp),n=e[pp];try{e[pp]=void 0;var r=!0}catch{}var o=Knt.call(e);return r&&(t?e[pp]=n:delete e[pp]),o}var Xnt=qnt,Qnt=Object.prototype,Znt=Qnt.toString;function Jnt(e){return Znt.call(e)}var ert=Jnt,trt="[object Null]",nrt="[object Undefined]",a4=_c?_c.toStringTag:void 0;function rrt(e){return e==null?e===void 0?nrt:trt:a4&&a4 in Object(e)?Xnt(e):ert(e)}var jm=rrt;function ort(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qP=ort,art="[object AsyncFunction]",irt="[object Function]",srt="[object GeneratorFunction]",lrt="[object Proxy]";function crt(e){if(!qP(e))return!1;var t=jm(e);return t==irt||t==srt||t==art||t==lrt}var vq=crt,urt=Gl["__core-js_shared__"],PD=urt,i4=function(){var e=/[^.]+$/.exec(PD&&PD.keys&&PD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function drt(e){return!!i4&&i4 in e}var frt=drt,hrt=Function.prototype,mrt=hrt.toString;function prt(e){if(e!=null){try{return mrt.call(e)}catch{}try{return e+""}catch{}}return""}var Ld=prt,grt=/[\\^$.*+?()[\]{}|]/g,vrt=/^\[object .+?Constructor\]$/,brt=Function.prototype,yrt=Object.prototype,xrt=brt.toString,Crt=yrt.hasOwnProperty,wrt=RegExp("^"+xrt.call(Crt).replace(grt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Srt(e){if(!qP(e)||frt(e))return!1;var t=vq(e)?wrt:vrt;return t.test(Ld(e))}var Drt=Srt;function Ert(e,t){return e==null?void 0:e[t]}var Irt=Ert;function Trt(e,t){var n=Irt(e,t);return Drt(n)?n:void 0}var Nm=Trt,Art=Nm(Gl,"Map"),Qg=Art,Ort=Nm(Object,"create"),Zg=Ort;function Brt(){this.__data__=Zg?Zg(null):{},this.size=0}var krt=Brt;function Prt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Rrt=Prt,jrt="__lodash_hash_undefined__",Nrt=Object.prototype,Lrt=Nrt.hasOwnProperty;function $rt(e){var t=this.__data__;if(Zg){var n=t[e];return n===jrt?void 0:n}return Lrt.call(t,e)?t[e]:void 0}var Mrt=$rt,_rt=Object.prototype,Frt=_rt.hasOwnProperty;function Wrt(e){var t=this.__data__;return Zg?t[e]!==void 0:Frt.call(t,e)}var zrt=Wrt,Hrt="__lodash_hash_undefined__";function Urt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Zg&&t===void 0?Hrt:t,this}var Vrt=Urt;function Lm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lm.prototype.clear=krt;Lm.prototype.delete=Rrt;Lm.prototype.get=Mrt;Lm.prototype.has=zrt;Lm.prototype.set=Vrt;var s4=Lm;function Grt(){this.size=0,this.__data__={hash:new s4,map:new(Qg||UC),string:new s4}}var Yrt=Grt;function Krt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qrt=Krt;function Xrt(e,t){var n=e.__data__;return qrt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var VC=Xrt;function Qrt(e){var t=VC(this,e).delete(e);return this.size-=t?1:0,t}var Zrt=Qrt;function Jrt(e){return VC(this,e).get(e)}var eot=Jrt;function tot(e){return VC(this,e).has(e)}var not=tot;function rot(e,t){var n=VC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oot=rot;function $m(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$m.prototype.clear=Yrt;$m.prototype.delete=Zrt;$m.prototype.get=eot;$m.prototype.has=not;$m.prototype.set=oot;var GC=$m,aot=200;function iot(e,t){var n=this.__data__;if(n instanceof UC){var r=n.__data__;if(!Qg||r.length<aot-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new GC(r)}return n.set(e,t),this.size=n.size,this}var sot=iot;function Mm(e){var t=this.__data__=new UC(e);this.size=t.size}Mm.prototype.clear=Lnt;Mm.prototype.delete=Mnt;Mm.prototype.get=Fnt;Mm.prototype.has=znt;Mm.prototype.set=sot;var U0=Mm,lot="__lodash_hash_undefined__";function cot(e){return this.__data__.set(e,lot),this}var uot=cot;function dot(e){return this.__data__.has(e)}var fot=dot;function Sx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new GC;++t<n;)this.add(e[t])}Sx.prototype.add=Sx.prototype.push=uot;Sx.prototype.has=fot;var hot=Sx;function mot(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var pot=mot;function got(e,t){return e.has(t)}var vot=got,bot=1,yot=2;function xot(e,t,n,r,o,a){var i=n&bot,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,m=n&yot?new hot:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],p=t[f];if(r)var v=i?r(p,g,f,t,e,a):r(g,p,f,e,t,a);if(v!==void 0){if(v)continue;h=!1;break}if(m){if(!pot(t,function(b,y){if(!vot(m,y)&&(g===b||o(g,b,n,r,a)))return m.push(y)})){h=!1;break}}else if(!(g===p||o(g,p,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var bq=xot,Cot=Gl.Uint8Array,l4=Cot;function wot(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Sot=wot;function Dot(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Eot=Dot,Iot=1,Tot=2,Aot="[object Boolean]",Oot="[object Date]",Bot="[object Error]",kot="[object Map]",Pot="[object Number]",Rot="[object RegExp]",jot="[object Set]",Not="[object String]",Lot="[object Symbol]",$ot="[object ArrayBuffer]",Mot="[object DataView]",c4=_c?_c.prototype:void 0,RD=c4?c4.valueOf:void 0;function _ot(e,t,n,r,o,a,i){switch(n){case Mot:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $ot:return!(e.byteLength!=t.byteLength||!a(new l4(e),new l4(t)));case Aot:case Oot:case Pot:return hq(+e,+t);case Bot:return e.name==t.name&&e.message==t.message;case Rot:case Not:return e==t+"";case kot:var s=Sot;case jot:var l=r&Iot;if(s||(s=Eot),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=Tot,i.set(e,t);var d=bq(s(e),s(t),r,o,a,i);return i.delete(e),d;case Lot:if(RD)return RD.call(e)==RD.call(t)}return!1}var Fot=_ot;function Wot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var zot=Wot;function Hot(e,t,n){var r=t(e);return Hi(e)?r:zot(r,n(e))}var Uot=Hot;function Vot(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}var Got=Vot;function Yot(){return[]}var Kot=Yot,qot=Object.prototype,Xot=qot.propertyIsEnumerable,u4=Object.getOwnPropertySymbols,Qot=u4?function(e){return e==null?[]:(e=Object(e),Got(u4(e),function(t){return Xot.call(e,t)}))}:Kot,Zot=Qot;function Jot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var eat=Jot;function tat(e){return e!=null&&typeof e=="object"}var Ah=tat,nat="[object Arguments]";function rat(e){return Ah(e)&&jm(e)==nat}var d4=rat,yq=Object.prototype,oat=yq.hasOwnProperty,aat=yq.propertyIsEnumerable,iat=d4(function(){return arguments}())?d4:function(e){return Ah(e)&&oat.call(e,"callee")&&!aat.call(e,"callee")},xq=iat;function sat(){return!1}var lat=sat,OT=mq(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Gl.Buffer:void 0,i=a?a.isBuffer:void 0,s=i||lat;e.exports=s}),cat=9007199254740991,uat=/^(?:0|[1-9]\d*)$/;function dat(e,t){var n=typeof e;return t=t??cat,!!t&&(n=="number"||n!="symbol"&&uat.test(e))&&e>-1&&e%1==0&&e<t}var Cq=dat,fat=9007199254740991;function hat(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fat}var XP=hat,mat="[object Arguments]",pat="[object Array]",gat="[object Boolean]",vat="[object Date]",bat="[object Error]",yat="[object Function]",xat="[object Map]",Cat="[object Number]",wat="[object Object]",Sat="[object RegExp]",Dat="[object Set]",Eat="[object String]",Iat="[object WeakMap]",Tat="[object ArrayBuffer]",Aat="[object DataView]",Oat="[object Float32Array]",Bat="[object Float64Array]",kat="[object Int8Array]",Pat="[object Int16Array]",Rat="[object Int32Array]",jat="[object Uint8Array]",Nat="[object Uint8ClampedArray]",Lat="[object Uint16Array]",$at="[object Uint32Array]",Xn={};Xn[Oat]=Xn[Bat]=Xn[kat]=Xn[Pat]=Xn[Rat]=Xn[jat]=Xn[Nat]=Xn[Lat]=Xn[$at]=!0;Xn[mat]=Xn[pat]=Xn[Tat]=Xn[gat]=Xn[Aat]=Xn[vat]=Xn[bat]=Xn[yat]=Xn[xat]=Xn[Cat]=Xn[wat]=Xn[Sat]=Xn[Dat]=Xn[Eat]=Xn[Iat]=!1;function Mat(e){return Ah(e)&&XP(e.length)&&!!Xn[jm(e)]}var _at=Mat;function Fat(e){return function(t){return e(t)}}var Wat=Fat,f4=mq(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o&&pq.process,i=function(){try{var s=r&&r.require&&r.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();e.exports=i}),h4=f4&&f4.isTypedArray,zat=h4?Wat(h4):_at,wq=zat,Hat=Object.prototype,Uat=Hat.hasOwnProperty;function Vat(e,t){var n=Hi(e),r=!n&&xq(e),o=!n&&!r&&OT(e),a=!n&&!r&&!o&&wq(e),i=n||r||o||a,s=i?eat(e.length,String):[],l=s.length;for(var c in e)(t||Uat.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cq(c,l)))&&s.push(c);return s}var Gat=Vat,Yat=Object.prototype;function Kat(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Yat;return e===n}var qat=Kat;function Xat(e,t){return function(n){return e(t(n))}}var Qat=Xat,Zat=Qat(Object.keys,Object),Jat=Zat,eit=Object.prototype,tit=eit.hasOwnProperty;function nit(e){if(!qat(e))return Jat(e);var t=[];for(var n in Object(e))tit.call(e,n)&&n!="constructor"&&t.push(n);return t}var rit=nit;function oit(e){return e!=null&&XP(e.length)&&!vq(e)}var QP=oit;function ait(e){return QP(e)?Gat(e):rit(e)}var ZP=ait;function iit(e){return Uot(e,ZP,Zot)}var m4=iit,sit=1,lit=Object.prototype,cit=lit.hasOwnProperty;function uit(e,t,n,r,o,a){var i=n&sit,s=m4(e),l=s.length,c=m4(t),d=c.length;if(l!=d&&!i)return!1;for(var f=l;f--;){var h=s[f];if(!(i?h in t:cit.call(t,h)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var v=i;++f<l;){h=s[f];var b=e[h],y=t[h];if(r)var C=i?r(y,b,h,t,e,a):r(b,y,h,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var D=e.constructor,A=t.constructor;D!=A&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof A=="function"&&A instanceof A)&&(p=!1)}return a.delete(e),a.delete(t),p}var dit=uit,fit=Nm(Gl,"DataView"),BT=fit,hit=Nm(Gl,"Promise"),kT=hit,mit=Nm(Gl,"Set"),PT=mit,pit=Nm(Gl,"WeakMap"),RT=pit,p4="[object Map]",git="[object Object]",g4="[object Promise]",v4="[object Set]",b4="[object WeakMap]",y4="[object DataView]",vit=Ld(BT),bit=Ld(Qg),yit=Ld(kT),xit=Ld(PT),Cit=Ld(RT),Du=jm;(BT&&Du(new BT(new ArrayBuffer(1)))!=y4||Qg&&Du(new Qg)!=p4||kT&&Du(kT.resolve())!=g4||PT&&Du(new PT)!=v4||RT&&Du(new RT)!=b4)&&(Du=function(e){var t=jm(e),n=t==git?e.constructor:void 0,r=n?Ld(n):"";if(r)switch(r){case vit:return y4;case bit:return p4;case yit:return g4;case xit:return v4;case Cit:return b4}return t});var x4=Du,wit=1,C4="[object Arguments]",w4="[object Array]",r0="[object Object]",Sit=Object.prototype,S4=Sit.hasOwnProperty;function Dit(e,t,n,r,o,a){var i=Hi(e),s=Hi(t),l=i?w4:x4(e),c=s?w4:x4(t);l=l==C4?r0:l,c=c==C4?r0:c;var d=l==r0,f=c==r0,h=l==c;if(h&&OT(e)){if(!OT(t))return!1;i=!0,d=!1}if(h&&!d)return a||(a=new U0),i||wq(e)?bq(e,t,n,r,o,a):Fot(e,t,l,n,r,o,a);if(!(n&wit)){var m=d&&S4.call(e,"__wrapped__"),g=f&&S4.call(t,"__wrapped__");if(m||g){var p=m?e.value():e,v=g?t.value():t;return a||(a=new U0),o(p,v,n,r,a)}}return h?(a||(a=new U0),dit(e,t,n,r,o,a)):!1}var Eit=Dit;function Sq(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ah(e)&&!Ah(t)?e!==e&&t!==t:Eit(e,t,n,r,Sq,o)}var Dq=Sq,Iit=1,Tit=2;function Ait(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],d=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new U0;if(r)var h=r(c,d,l,e,t,f);if(!(h===void 0?Dq(d,c,Iit|Tit,r,f):h))return!1}}return!0}var Oit=Ait;function Bit(e){return e===e&&!qP(e)}var Eq=Bit;function kit(e){for(var t=ZP(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Eq(o)]}return t}var Pit=kit;function Rit(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Iq=Rit;function jit(e){var t=Pit(e);return t.length==1&&t[0][2]?Iq(t[0][0],t[0][1]):function(n){return n===e||Oit(n,e,t)}}var Nit=jit,Lit="[object Symbol]";function $it(e){return typeof e=="symbol"||Ah(e)&&jm(e)==Lit}var JP=$it,Mit=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_it=/^\w*$/;function Fit(e,t){if(Hi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||JP(e)?!0:_it.test(e)||!Mit.test(e)||t!=null&&e in Object(t)}var eR=Fit,Wit="Expected a function";function tR(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Wit);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(tR.Cache||GC),n}tR.Cache=GC;var zit=tR,Hit=500;function Uit(e){var t=zit(e,function(r){return n.size===Hit&&n.clear(),r}),n=t.cache;return t}var Vit=Uit,Git=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yit=/\\(\\)?/g,Kit=Vit(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Git,function(n,r,o,a){t.push(o?a.replace(Yit,"$1"):r||n)}),t}),qit=Kit,Xit=1/0,D4=_c?_c.prototype:void 0,E4=D4?D4.toString:void 0;function Tq(e){if(typeof e=="string")return e;if(Hi(e))return fq(e,Tq)+"";if(JP(e))return E4?E4.call(e):"";var t=e+"";return t=="0"&&1/e==-Xit?"-0":t}var Qit=Tq;function Zit(e){return e==null?"":Qit(e)}var Jit=Zit;function est(e,t){return Hi(e)?e:eR(e,t)?[e]:qit(Jit(e))}var Aq=est,tst=1/0;function nst(e){if(typeof e=="string"||JP(e))return e;var t=e+"";return t=="0"&&1/e==-tst?"-0":t}var YC=nst;function rst(e,t){t=Aq(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[YC(t[n++])];return n&&n==r?e:void 0}var Oq=rst;function ost(e,t,n){var r=e==null?void 0:Oq(e,t);return r===void 0?n:r}var ast=ost;function ist(e,t){return e!=null&&t in Object(e)}var sst=ist;function lst(e,t,n){t=Aq(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=YC(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&XP(o)&&Cq(i,o)&&(Hi(e)||xq(e)))}var cst=lst;function ust(e,t){return e!=null&&cst(e,t,sst)}var dst=ust,fst=1,hst=2;function mst(e,t){return eR(e)&&Eq(t)?Iq(YC(e),t):function(n){var r=ast(n,e);return r===void 0&&r===t?dst(n,e):Dq(t,r,fst|hst)}}var pst=mst;function gst(e){return e}var vst=gst;function bst(e){return function(t){return t==null?void 0:t[e]}}var yst=bst;function xst(e){return function(t){return Oq(t,e)}}var Cst=xst;function wst(e){return eR(e)?yst(YC(e)):Cst(e)}var Sst=wst;function Dst(e){return typeof e=="function"?e:e==null?vst:typeof e=="object"?Hi(e)?pst(e[0],e[1]):Nit(e):Sst(e)}var Est=Dst;function Ist(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Tst=Ist,Ast=Tst(),Ost=Ast;function Bst(e,t){return e&&Ost(e,t,ZP)}var kst=Bst;function Pst(e,t){return function(n,r){if(n==null)return n;if(!QP(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}var Rst=Pst,jst=Rst(kst),Nst=jst;function Lst(e,t){var n=-1,r=QP(e)?Array(e.length):[];return Nst(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var $st=Lst;function Mst(e,t){var n=Hi(e)?fq:$st;return n(e,Est(t))}var _st=Mst;const Fst=(e,{at:t,...n}={})=>{if(t||(t=e.selection),!t)return;const[r,o]=Ce.edges(t),a=zi(e,{at:r,...n}),i=zi(e,{at:o,...n});if(!(!a&&!i))return!a||!i?!0:!de.equals(a[1],i[1])},Wst=(e,t,n)=>{if(!n||!n.match&&!n.matchString)return px(e,t,n);const r=!n.unit||n.unit==="offset",o=n.matchString?KP(n.matchString):[""];let a;return o.some(i=>{let s=t,l=dY(e,t,{edge:"end"});const c=i.length+1,d=Array(c);let f=0;for(;;){var h;const g=px(e,s,n);if(!g||Fst(e,{at:{anchor:g,focus:l}}))return;const p=uY(e,{anchor:g,focus:l});let v=p;if(r&&c&&(d.unshift({point:g,text:p}),d.pop(),v=_st(d.slice(0,-1),"text").join("")),i===v||(h=n.match)!==null&&h!==void 0&&h.call(n,{beforeString:v,beforePoint:g,at:t})){if(n.afterMatch){if(c&&r){var m;return a=(m=d[d.length-1])===null||m===void 0?void 0:m.point,!!a}return a=l,!0}return a=g,!0}if(l=g,s=g,f+=1,!n.skipInvalid&&(!i||f>=i.length))return}}),a},zst=(e,{at:t=e.selection,focus:n}={})=>{let r;return Ce.isRange(t)&&(r=n?t.focus:t.anchor),Wt.isPoint(t)&&(r=t),de.isPath(t)&&(r={path:t,offset:0}),r},xpt=(e,t)=>{const n=iY(e,{at:t});if(n)return dP(e,n[1])},Cpt=e=>{if(e.length===0)return;const t=e[e.length-1];if(!(t<=0))return e.slice(0,-1).concat(t-1)},wpt=(e,t,n)=>{const r=Wst(e,t,n);if(!r)return;const o=dY(e,t,{edge:"end"});return{anchor:r,focus:o}},Spt=(e,t={})=>{var n;const r=(n=zi(e,t))===null||n===void 0?void 0:n[1];if(!r)return;const o=DC(e,r),a=zst(e,t);if(a)return{anchor:o,focus:a}},Dpt=e=>uY(e,e.selection),Hst=(e,t)=>!D9e(t)&&!t.children.some(n=>x9e(e,n)),Ept=e=>{var t;const n=(t=zi(e))===null||t===void 0?void 0:t[0];return n?Hst(e,n):!1},Ipt=e=>{if(!e.selection)return!1;const t=zi(e);if(!t)return!1;const n=e.selection.focus,r=aY(e,e.selection);if(!r)return!1;const[,o]=r;if(!lT(e,n,o))return!1;const a=vnt(t,n.path);if(a.length){for(const i of a)if(ji(i)&&i.text)return!1}else return lT(e,n,t[1]);return!0},Tpt=e=>e[e.length-1]===0,Ust=(e,t)=>wC(gnt(e,t)),Apt=(e,{at:t,...n}={})=>{if(t||(t=e.selection),!t)return;const[r,o]=Ce.edges(t),a=zi(e,{at:r,...n}),i=zi(e,{at:o,...n});if(!(!a||!i))return de.equals(a[1],i[1])},Opt=(e,t)=>{var n,r;const o=(n=zi(e,t))===null||n===void 0?void 0:n[1];return!!o&&lT(e,(r=e.selection)===null||r===void 0?void 0:r.focus,o)},Bpt=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=(n=zi(e,t))===null||n===void 0?void 0:n[1];return o?gx(e,r.focus,o)||mP(e.selection)&&gx(e,r.anchor,o):!1},kpt=e=>mP(e.selection),Vst=(e,t,n)=>hY(e,t,n),Ppt=(e,t,n)=>{Vst(e,{type:t,children:[{text:""}]},zv(e,n))},Gst=(e,{at:t,to:n,match:r,fromStartIndex:o=0})=>{let a=0;const i=de.isPath(t)?t:t[1],s=de.isPath(t)?cT(e,i):t[0];if(!s||!_g(e,s))return a;for(let l=s.children.length-1;l>=o;l--){const c=[...i,l],d=cT(e,c);(!r||d&&r([d,c]))&&(lY(e,{at:c,to:n}),a++)}return a},I4=(e,{key:t,at:n,shouldChange:r=!0,...o})=>{const a=n??e.selection;if(t=KP(t),a){if(Ce.isRange(a)&&Ce.isExpanded(a))T9e(e,t,{at:a,match:ji,split:!0,...o});else if(e.selection){var i;const s=(i=fP(e))!==null&&i!==void 0?i:{};t.forEach(l=>{delete s[l]}),e.marks=s,r&&e.onChange()}}},Yst=(e,t,n)=>{tu(e,()=>{for(const[,r]of w9e(e,t,{reverse:!0}))Wg(e,{...n,at:r})})},Kst=(e,{at:t,nodes:n,insertOptions:r,removeOptions:o})=>{tu(e,()=>{Yst(e,t,o),hY(e,n,{...r,at:t.concat([0])})})},qst=(e,{key:t,clear:n})=>{e.selection&&tu(e,()=>{if(Ust(e,t)){I4(e,{key:t});return}if(n){const o=KP(n);I4(e,{key:o})}e.addMark(t,!0)})},Rpt=(e,t,n)=>{const r=n==null?void 0:n.at,o=cT(e,r);o!=null&&o.children&&tu(e,()=>{const a=r.concat([0]);A9e(e,t,{...n,at:a}),!(o.children.length<2)&&Gst(e,{at:r,to:a.concat([1]),fromStartIndex:1})})};function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}var Xst=Array.isArray,Dx=Xst;function Qst(){if(!arguments.length)return[];var e=arguments[0];return Dx(e)?e:[e]}var Bq=Qst;function Zst(){this.__data__=[],this.size=0}var Jst=Zst;function elt(e,t){return e===t||e!==e&&t!==t}var Kv=elt;function tlt(e,t){for(var n=e.length;n--;)if(Kv(e[n][0],t))return n;return-1}var KC=tlt,nlt=Array.prototype,rlt=nlt.splice;function olt(e){var t=this.__data__,n=KC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rlt.call(t,n,1),--this.size,!0}var alt=olt;function ilt(e){var t=this.__data__,n=KC(t,e);return n<0?void 0:t[n][1]}var slt=ilt;function llt(e){return KC(this.__data__,e)>-1}var clt=llt;function ult(e,t){var n=this.__data__,r=KC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dlt=ult;function _m(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_m.prototype.clear=Jst;_m.prototype.delete=alt;_m.prototype.get=slt;_m.prototype.has=clt;_m.prototype.set=dlt;var qC=_m;function flt(){this.__data__=new qC,this.size=0}var hlt=flt;function mlt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var plt=mlt;function glt(e){return this.__data__.get(e)}var vlt=glt;function blt(e){return this.__data__.has(e)}var ylt=blt,o0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xlt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function XC(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Clt=typeof o0=="object"&&o0&&o0.Object===Object&&o0,kq=Clt,wlt=typeof self=="object"&&self&&self.Object===Object&&self,Slt=kq||wlt||Function("return this")(),Fm=Slt,Dlt=Fm.Symbol,Ex=Dlt,Pq=Object.prototype,Elt=Pq.hasOwnProperty,Ilt=Pq.toString,gp=Ex?Ex.toStringTag:void 0;function Tlt(e){var t=Elt.call(e,gp),n=e[gp];try{e[gp]=void 0;var r=!0}catch{}var o=Ilt.call(e);return r&&(t?e[gp]=n:delete e[gp]),o}var Alt=Tlt,Olt=Object.prototype,Blt=Olt.toString;function klt(e){return Blt.call(e)}var Plt=klt,Rlt="[object Null]",jlt="[object Undefined]",T4=Ex?Ex.toStringTag:void 0;function Nlt(e){return e==null?e===void 0?jlt:Rlt:T4&&T4 in Object(e)?Alt(e):Plt(e)}var QC=Nlt;function Llt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $d=Llt,$lt="[object AsyncFunction]",Mlt="[object Function]",_lt="[object GeneratorFunction]",Flt="[object Proxy]";function Wlt(e){if(!$d(e))return!1;var t=QC(e);return t==Mlt||t==_lt||t==$lt||t==Flt}var nR=Wlt,zlt=Fm["__core-js_shared__"],jD=zlt,A4=function(){var e=/[^.]+$/.exec(jD&&jD.keys&&jD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hlt(e){return!!A4&&A4 in e}var Ult=Hlt,Vlt=Function.prototype,Glt=Vlt.toString;function Ylt(e){if(e!=null){try{return Glt.call(e)}catch{}try{return e+""}catch{}}return""}var Klt=Ylt,qlt=/[\\^$.*+?()[\]{}|]/g,Xlt=/^\[object .+?Constructor\]$/,Qlt=Function.prototype,Zlt=Object.prototype,Jlt=Qlt.toString,ect=Zlt.hasOwnProperty,tct=RegExp("^"+Jlt.call(ect).replace(qlt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nct(e){if(!$d(e)||Ult(e))return!1;var t=nR(e)?tct:Xlt;return t.test(Klt(e))}var rct=nct;function oct(e,t){return e==null?void 0:e[t]}var act=oct;function ict(e,t){var n=act(e,t);return rct(n)?n:void 0}var rR=ict,sct=rR(Fm,"Map"),Rq=sct,lct=rR(Object,"create"),Jg=lct;function cct(){this.__data__=Jg?Jg(null):{},this.size=0}var uct=cct;function dct(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fct=dct,hct="__lodash_hash_undefined__",mct=Object.prototype,pct=mct.hasOwnProperty;function gct(e){var t=this.__data__;if(Jg){var n=t[e];return n===hct?void 0:n}return pct.call(t,e)?t[e]:void 0}var vct=gct,bct=Object.prototype,yct=bct.hasOwnProperty;function xct(e){var t=this.__data__;return Jg?t[e]!==void 0:yct.call(t,e)}var Cct=xct,wct="__lodash_hash_undefined__";function Sct(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jg&&t===void 0?wct:t,this}var Dct=Sct;function Wm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wm.prototype.clear=uct;Wm.prototype.delete=fct;Wm.prototype.get=vct;Wm.prototype.has=Cct;Wm.prototype.set=Dct;var O4=Wm;function Ect(){this.size=0,this.__data__={hash:new O4,map:new(Rq||qC),string:new O4}}var Ict=Ect;function Tct(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Act=Tct;function Oct(e,t){var n=e.__data__;return Act(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ZC=Oct;function Bct(e){var t=ZC(this,e).delete(e);return this.size-=t?1:0,t}var kct=Bct;function Pct(e){return ZC(this,e).get(e)}var Rct=Pct;function jct(e){return ZC(this,e).has(e)}var Nct=jct;function Lct(e,t){var n=ZC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $ct=Lct;function zm(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zm.prototype.clear=Ict;zm.prototype.delete=kct;zm.prototype.get=Rct;zm.prototype.has=Nct;zm.prototype.set=$ct;var Mct=zm,_ct=200;function Fct(e,t){var n=this.__data__;if(n instanceof qC){var r=n.__data__;if(!Rq||r.length<_ct-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mct(r)}return n.set(e,t),this.size=n.size,this}var Wct=Fct;function Hm(e){var t=this.__data__=new qC(e);this.size=t.size}Hm.prototype.clear=hlt;Hm.prototype.delete=plt;Hm.prototype.get=vlt;Hm.prototype.has=ylt;Hm.prototype.set=Wct;var zct=Hm,Hct=function(){try{var e=rR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ix=Hct;function Uct(e,t,n){t=="__proto__"&&Ix?Ix(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var oR=Uct;function Vct(e,t,n){(n!==void 0&&!Kv(e[t],n)||n===void 0&&!(t in e))&&oR(e,t,n)}var NT=Vct;function Gct(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var Yct=Gct,Kct=Yct(),qct=Kct,Xct=XC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Fm.Buffer:void 0,i=a?a.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var d=l.length,f=i?i(d):new l.constructor(d);return l.copy(f),f}e.exports=s}),Qct=Fm.Uint8Array,B4=Qct;function Zct(e){var t=new e.constructor(e.byteLength);return new B4(t).set(new B4(e)),t}var Jct=Zct;function eut(e,t){var n=t?Jct(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var tut=eut;function nut(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var rut=nut,k4=Object.create,out=function(){function e(){}return function(t){if(!$d(t))return{};if(k4)return k4(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),aut=out;function iut(e,t){return function(n){return e(t(n))}}var sut=iut,lut=sut(Object.getPrototypeOf,Object),jq=lut,cut=Object.prototype;function uut(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cut;return e===n}var Nq=uut;function dut(e){return typeof e.constructor=="function"&&!Nq(e)?aut(jq(e)):{}}var fut=dut;function hut(e){return e!=null&&typeof e=="object"}var qv=hut,mut="[object Arguments]";function put(e){return qv(e)&&QC(e)==mut}var P4=put,Lq=Object.prototype,gut=Lq.hasOwnProperty,vut=Lq.propertyIsEnumerable,but=P4(function(){return arguments}())?P4:function(e){return qv(e)&&gut.call(e,"callee")&&!vut.call(e,"callee")},LT=but,yut=9007199254740991;function xut(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yut}var $q=xut;function Cut(e){return e!=null&&$q(e.length)&&!nR(e)}var aR=Cut;function wut(e){return qv(e)&&aR(e)}var Sut=wut;function Dut(){return!1}var Eut=Dut,Mq=XC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o?Fm.Buffer:void 0,i=a?a.isBuffer:void 0,s=i||Eut;e.exports=s}),Iut="[object Object]",Tut=Function.prototype,Aut=Object.prototype,_q=Tut.toString,Out=Aut.hasOwnProperty,But=_q.call(Object);function kut(e){if(!qv(e)||QC(e)!=Iut)return!1;var t=jq(e);if(t===null)return!0;var n=Out.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_q.call(n)==But}var Put=kut,Rut="[object Arguments]",jut="[object Array]",Nut="[object Boolean]",Lut="[object Date]",$ut="[object Error]",Mut="[object Function]",_ut="[object Map]",Fut="[object Number]",Wut="[object Object]",zut="[object RegExp]",Hut="[object Set]",Uut="[object String]",Vut="[object WeakMap]",Gut="[object ArrayBuffer]",Yut="[object DataView]",Kut="[object Float32Array]",qut="[object Float64Array]",Xut="[object Int8Array]",Qut="[object Int16Array]",Zut="[object Int32Array]",Jut="[object Uint8Array]",edt="[object Uint8ClampedArray]",tdt="[object Uint16Array]",ndt="[object Uint32Array]",Qn={};Qn[Kut]=Qn[qut]=Qn[Xut]=Qn[Qut]=Qn[Zut]=Qn[Jut]=Qn[edt]=Qn[tdt]=Qn[ndt]=!0;Qn[Rut]=Qn[jut]=Qn[Gut]=Qn[Nut]=Qn[Yut]=Qn[Lut]=Qn[$ut]=Qn[Mut]=Qn[_ut]=Qn[Fut]=Qn[Wut]=Qn[zut]=Qn[Hut]=Qn[Uut]=Qn[Vut]=!1;function rdt(e){return qv(e)&&$q(e.length)&&!!Qn[QC(e)]}var odt=rdt;function adt(e){return function(t){return e(t)}}var idt=adt,R4=XC(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===n,a=o&&kq.process,i=function(){try{var s=r&&r.require&&r.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();e.exports=i}),j4=R4&&R4.isTypedArray,sdt=j4?idt(j4):odt,Fq=sdt;function ldt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $T=ldt,cdt=Object.prototype,udt=cdt.hasOwnProperty;function ddt(e,t,n){var r=e[t];(!(udt.call(e,t)&&Kv(r,n))||n===void 0&&!(t in e))&&oR(e,t,n)}var fdt=ddt;function hdt(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?oR(n,s,l):fdt(n,s,l)}return n}var mdt=hdt;function pdt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var gdt=pdt,vdt=9007199254740991,bdt=/^(?:0|[1-9]\d*)$/;function ydt(e,t){var n=typeof e;return t=t??vdt,!!t&&(n=="number"||n!="symbol"&&bdt.test(e))&&e>-1&&e%1==0&&e<t}var Wq=ydt,xdt=Object.prototype,Cdt=xdt.hasOwnProperty;function wdt(e,t){var n=Dx(e),r=!n&&LT(e),o=!n&&!r&&Mq(e),a=!n&&!r&&!o&&Fq(e),i=n||r||o||a,s=i?gdt(e.length,String):[],l=s.length;for(var c in e)(t||Cdt.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wq(c,l)))&&s.push(c);return s}var Sdt=wdt;function Ddt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Edt=Ddt,Idt=Object.prototype,Tdt=Idt.hasOwnProperty;function Adt(e){if(!$d(e))return Edt(e);var t=Nq(e),n=[];for(var r in e)r=="constructor"&&(t||!Tdt.call(e,r))||n.push(r);return n}var Odt=Adt;function Bdt(e){return aR(e)?Sdt(e,!0):Odt(e)}var iR=Bdt;function kdt(e){return mdt(e,iR(e))}var Pdt=kdt;function Rdt(e,t,n,r,o,a,i){var s=$T(e,n),l=$T(t,n),c=i.get(l);if(c){NT(e,n,c);return}var d=a?a(s,l,n+"",e,t,i):void 0,f=d===void 0;if(f){var h=Dx(l),m=!h&&Mq(l),g=!h&&!m&&Fq(l);d=l,h||m||g?Dx(s)?d=s:Sut(s)?d=rut(s):m?(f=!1,d=Xct(l,!0)):g?(f=!1,d=tut(l,!0)):d=[]:Put(l)||LT(l)?(d=s,LT(s)?d=Pdt(s):(!$d(s)||nR(s))&&(d=fut(l))):f=!1}f&&(i.set(l,d),o(d,l,r,a,i),i.delete(l)),NT(e,n,d)}var jdt=Rdt;function zq(e,t,n,r,o){e!==t&&qct(t,function(a,i){if(o||(o=new zct),$d(a))jdt(e,t,i,n,zq,r,o);else{var s=r?r($T(e,i),a,i+"",e,t,o):void 0;s===void 0&&(s=a),NT(e,i,s)}},iR)}var Ndt=zq;function Ldt(e){return e}var Hq=Ldt;function $dt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Mdt=$dt,N4=Math.max;function _dt(e,t,n){return t=N4(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=N4(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Mdt(e,this,s)}}var Fdt=_dt;function Wdt(e){return function(){return e}}var zdt=Wdt,Hdt=Ix?function(e,t){return Ix(e,"toString",{configurable:!0,enumerable:!1,value:zdt(t),writable:!0})}:Hq,Udt=Hdt,Vdt=800,Gdt=16,Ydt=Date.now;function Kdt(e){var t=0,n=0;return function(){var r=Ydt(),o=Gdt-(r-n);if(n=r,o>0){if(++t>=Vdt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qdt=Kdt,Xdt=qdt(Udt),Qdt=Xdt;function Zdt(e,t){return Qdt(Fdt(e,t,Hq),e+"")}var Uq=Zdt;function Jdt(e,t,n){if(!$d(n))return!1;var r=typeof t;return(r=="number"?aR(n)&&Wq(t,n.length):r=="string"&&t in n)?Kv(n[t],e):!1}var Vq=Jdt;function eft(e){return Uq(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Vq(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}var tft=eft;tft(function(e,t,n){Ndt(e,t,n)});const nft=(e,t)=>{typeof e=="function"?e(t):e!=null&&(e.current=t)},rft=(...e)=>t=>e.forEach(n=>nft(n,t)),jpt=(...e)=>x.useCallback(rft(...e),e),oft=()=>{if(typeof window>"u"||typeof window.addEventListener!="function")return!1;let e=!1;const t=Object.defineProperty({},"passive",{get(){e=!0}}),n=()=>null;return window.addEventListener("test",n,t),window.removeEventListener("test",n,t),e},aft="ignore-onclickoutside",L4=(e,t)=>{var n;return(n=e.classList)===null||n===void 0?void 0:n.contains(t)},$4=(e,t)=>{let n=e.target||e;for(;n;){if(Array.isArray(t)){if(t.some(r=>L4(n,r)))return!0}else if(L4(n,t))return!0;n=n.parentElement}return!1},ift=e=>document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY,M4=e=>e.includes("touch")&&oft()?{passive:!0}:!1,Npt=(e,{refs:t,disabled:n,eventTypes:r=["mousedown","touchstart"],excludeScrollbar:o,ignoreClass:a=aft,detectIFrame:i=!0}={})=>{const[s,l]=x.useState([]),c=x.useRef(e);c.current=e;const d=x.useCallback(f=>l(h=>[...h,{current:f}]),[]);return x.useEffect(()=>{if(!(t!=null&&t.length)&&!s.length)return;const f=()=>{const p=[];return(t||s).forEach(({current:v})=>v&&p.push(v)),p},h=p=>{!$4(p,a)&&!(o&&ift(p))&&f().every(v=>!v.contains(p.target))&&c.current(p)},m=p=>setTimeout(()=>{const{activeElement:v}=document;(v==null?void 0:v.tagName)==="IFRAME"&&!$4(v,a)&&!f().includes(v)&&c.current(p)},0),g=()=>{r.forEach(p=>document.removeEventListener(p,h,M4(p))),i&&window.removeEventListener("blur",m)};if(n){g();return}return r.forEach(p=>document.addEventListener(p,h,M4(p))),i&&window.addEventListener("blur",m),()=>g()},[s,a,o,n,i,JSON.stringify(r)]),d};var Gq=Object.prototype,sft=Gq.hasOwnProperty;Uq(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Vq(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],i=iR(a),s=-1,l=i.length;++s<l;){var c=i[s],d=e[c];(d===void 0||Kv(d,Gq[c])&&!sft.call(e,c))&&(e[c]=a[c])}return e});const Lpt=(e,t)=>n=>W.createElement(e,jT({},n,t));var ru=XC(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});for(var n=()=>typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o=()=>({add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n()?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}),a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=1;i<20;i++)a["f"+i]=111+i;function s(g,p,v){p&&!("byKey"in p)&&(v=p,p=null),Array.isArray(g)||(g=[g]);var b=g.map(function(D){return d(D,p)}),y=function(A){return b.some(function(T){return f(T,A)})},C=v==null?y:y(v);return C}function l(g,p){return s(g,p)}function c(g,p){return s(g,{byKey:!0},p)}function d(g,p){var v=p&&p.byKey,b={};g=g.replace("++","+add");var y=g.split("+"),C=y.length;for(var D in r)b[r[D]]=!1;var A=!0,T=!1,B=void 0;try{for(var j=y[Symbol.iterator](),R;!(A=(R=j.next()).done);A=!0){var N=R.value,_=N.endsWith("?")&&N.length>1;_&&(N=N.slice(0,-1));var U=m(N),V=r[U];(C===1||!V)&&(v?b.key=U:b.which=h(N)),V&&(b[V]=_?null:!0)}}catch(z){T=!0,B=z}finally{try{!A&&j.return&&j.return()}finally{if(T)throw B}}return b}function f(g,p){for(var v in g){var b=g[v],y=void 0;if(b!=null&&(v==="key"&&p.key!=null?y=p.key.toLowerCase():v==="which"?y=b===91&&p.which===93?91:p.which:y=p[v],!(y==null&&b===!1)&&y!==b))return!1}return!0}function h(g){g=m(g);var p=a[g]||g.toUpperCase().charCodeAt(0);return p}function m(g){return g=g.toLowerCase(),g=o()[g]||g,g}t.default=s,t.isHotkey=s,t.isCodeHotkey=l,t.isKeyHotkey=c,t.parseHotkey=d,t.compareHotkey=f,t.toKeyCode=h,t.toKeyName=m}),Yq=xlt(ru);ru.isHotkey;ru.isCodeHotkey;ru.isKeyHotkey;ru.parseHotkey;ru.compareHotkey;ru.toKeyCode;ru.toKeyName;const $pt=(e,{type:t,options:{hotkey:n}})=>r=>{if(r.defaultPrevented)return;const o=km(e,Bm);if(!n)return;const a=Bq(n);for(const i of a)if(Yq(i,r)){r.preventDefault(),hnt(e,{activeType:t,inactiveType:o});return}},Mpt=(e,{type:t,options:{hotkey:n,clear:r}})=>o=>{o.defaultPrevented||n&&Yq(n,o)&&(o.preventDefault(),qst(e,{key:t,clear:r}))},_pt=(e,t,n)=>{const r=Bq(n),o=[];return r.forEach(a=>o.push(km(e,a))),o.includes(t==null?void 0:t.type)},Fpt=(e,t)=>{Kst(e,{at:[],nodes:e.childrenFactory(),...t})},Wpt=(e,{at:t,edge:n,focus:r})=>{r&&LVe(e);let o=t;n==="start"&&(o=DC(e,[])),n==="end"&&(o=dP(e,[])),o&&SC(e,o)},lft={type:Bm,children:[{text:""}]},cft=[lft];function uft(e){return nx(e,cft)||Array.isArray(e)&&e.length===1&&e[0].type===Bm&&e[0].children.length===1&&e[0].children[0].text===""}const dft=e=>[e].flat().some(t=>!Object.keys(t).some(n=>/insert|delete|retain/g.test(n)));window.onVanillaReady(function(){const e=document.querySelector("body.Post #DiscussionForm, body.Discussion .CommentForm"),t=Ge("community.drafts.autosave",!0),n=e&&!!e.querySelectorAll("#Form_SaveDraft, .DraftButton").length&&t;if(e&&n){const r=e==null?void 0:e.querySelectorAll("input, textarea");[].slice.call(r).forEach(o=>{o.addEventListener("input",function(){pft(e)})})}});const fft=Z0.create({baseURL:Ni("/"),transformRequest:[e=>Oc.stringify(e)],paramsSerializer:e=>Oc.stringify(e)});let a0={Name:"",Body:"",CategoryID:"",Tags:"",CommentID:""};const hft=e=>Object.keys(a0).some(t=>e.has(t)&&e.get(t)!==a0[t]?(a0[t]=e.get(t),!0):(a0[t]=e.get(t),!1)),mft=e=>{if(e){const t=new FormData(e);if(!hft(t))return null;const n=t.get("Body");if(`${n}`.length===0||`${n}`=='[{"insert":"\\n"}]')return null;const r=Wee(`${n}`);return dft(r)&&uft(r)?null:Object.fromEntries(t.entries())}return null};window.__DRAFT_KLUDGE__="";const ND=(e,t)=>{if(e){const n=e.querySelector('a[class*="DraftButton"]'),r=e.querySelector('input[class*="DraftButton"]'),o=e.querySelector('input[type="submit"][name*="Post"]');t==="save"&&(o.setAttribute("disabled",!0),r&&(window.__DRAFT_KLUDGE__=r.value,r.value=k("Saving draft..."),r.setAttribute("disabled",!0)),n&&(window.__DRAFT_KLUDGE__=n.innerText,n.innerText=k("Saving draft..."),n.setAttribute("disabled",!0))),t==="initial"&&(o.removeAttribute("disabled"),r&&(r.value=window.__DRAFT_KLUDGE__,r.removeAttribute("disabled")),n&&(n.innerText=window.__DRAFT_KLUDGE__,n.removeAttribute("disabled")))}},pft=Ra(async function(e){const t=e.querySelector("form"),n=t&&t.querySelector('input[id*="DraftID"]');if(t&&n){const r=t.querySelector('input[id*="DiscussionID"]'),o=mft(t),a=t.getAttribute("action"),i=a==null?void 0:a.includes("comment"),s=i?{discussionid:r.value}:{},l=()=>{const c={...o,DeliveryType:"VIEW",DeliveryMethod:"JSON"};return i?{...c,Type:"Draft"}:{...c,"Save Draft":"Save Draft"}};if(o&&a){ND(t,"save");const c=await fft.post(`${window.location.origin}${a}`,l(),{params:s}).catch(d=>(ND(t,"initial"),wa(d),d));n.value!=c.data.DraftID&&(n.value=c.data.DraftID??0),ND(t,"initial")}}},3e3,{maxWait:1e4});function gft(){document.addEventListener("keydown",e=>{const t=e.target;t.getAttribute("role")==="button"&&(e.code==="Enter"||e.code==="Space")&&(e.preventDefault(),t.click())})}function vft(){o1(u.jsx(bft,{}),GO)}function bft(){return m8(""),u.jsx(W.Fragment,{})}const yft=$h("@@categorySuggestions"),Ox=class Ox extends br{constructor(){super(...arguments);q(this,"internalLoadCategories",(n,r)=>{const{suggestionsByQuery:o}=this.getState().forum.categories,a=o[n]??{status:X.PENDING};if(a.status===X.LOADING||a.status===X.SUCCESS)return;const i=Gt(Ox.loadCategories,async()=>{const s={query:n,parentCategoryID:r,expand:["breadcrumbs"],limit:50};return(await this.api.get("/categories/search",{params:s})).data})({query:n});return this.dispatch(i)});q(this,"loadCategories",Ra(this.internalLoadCategories,100))}};q(Ox,"loadCategories",yft.async("GET"));let Jp=Ox;const xft={suggestionsByQuery:{}},Cft=fa(Vi(Bc(xft)).case(Jp.loadCategories.started,(e,t)=>{const{query:n}=t;return e.suggestionsByQuery[n]={status:X.LOADING},e}).case(Jp.loadCategories.done,(e,t)=>{const{query:n}=t.params;return e.suggestionsByQuery[n].status=X.SUCCESS,e.suggestionsByQuery[n].data=t.result,e}).case(Jp.loadCategories.failed,(e,t)=>{const{query:n}=t.params;return e.suggestionsByQuery[n].status=X.ERROR,e.suggestionsByQuery[n].error=t.error,e})),wft=Bx({categories:Cft});var Sft=(e,t,n)=>{if(!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");n=n||{};let r,o,a=[];return function(){const i=this,s=arguments;return new Promise(l=>{const c=n.leading&&!o;clearTimeout(o),o=setTimeout(()=>{o=null;const d=n.leading?r:e.apply(i,s);for(l of a)l(d);a=[]},t),c?(r=e.apply(i,s),l(r)):a.push(l)})}};const Dft=jr(Sft);class Eft{constructor(){q(this,"supportsAutoComplete",!0);q(this,"fetchSearch",async(t,n={})=>{const r={domain:Ive,query:t,expand:["breadcrumbs","-body"],limit:Math.floor(10/fh.sources.length),collapse:!0,locale:If(),...n},o=oA(),a=o&&o.attributes&&o.attributes.categoryID;!("categoryID"in r)&&a>0&&(r.categoryID=a,r.includeChildCategories=!0);const i=o&&o.sectionGroup;!("siteSectionGroup"in r)&&i!=="vanilla"&&(r.siteSectionGroup=i);const s=fh.sources.map(d=>d.performSearch(r).then(f=>({...f,source:d.key})));return(await Promise.all(s)).map(({results:d,source:f})=>d.map(h=>{const m={crumbs:h.breadcrumbs??[],name:h.name,dateUpdated:h.dateUpdated??h.dateInserted,labels:h.labelCodes,url:h.url,type:h.type,isForeign:h.isForeign};return{label:h.name,value:h.name,type:h.type,url:h.url,source:f,data:m}})).flat()});q(this,"debounceFetchSearch",Dft(this.fetchSearch,100));q(this,"autocomplete",(t,n={})=>t===""?Promise.resolve([]):this.debounceFetchSearch(t,n));q(this,"makeSearchUrl",(t,n,r)=>xz(t,n,r))}}const Ift=re(()=>{const e=ee(),t=S({...E.border({color:e.mainColors.primary,width:e.border.width,radius:e.border.radius,style:"solid"}),display:"flex",lineHeight:e.lineHeights.base,...E.margin({bottom:e.gutter.size}),flexWrap:"wrap",overflow:"hidden"},"label:AttachmentLayout-classes-root"),n=S({...E.background({color:e.mainColors.primary}),...E.font({color:e.mainColors.primaryContrast}),display:"flex",flexDirection:"column",alignItems:"center",flex:"1 0 auto"},"label:AttachmentLayout-classes-logoSection"),r=S({...E.padding({horizontal:30,vertical:20}),"& svg":{width:60,height:60}},"label:AttachmentLayout-classes-logoWrapper"),o=S({flex:"1000 1 300px",...E.padding({top:e.spacer.componentInner,left:e.spacer.componentInner,right:e.spacer.componentInner})},"label:AttachmentLayout-classes-textSection"),a=S({borderBottom:wt(),paddingBottom:e.gutter.quarter,display:"flex",justifyContent:"space-between",flexWrap:"wrap"},"label:AttachmentLayout-classes-header"),i=S({display:"flex",flexWrap:"wrap",flexGrow:1},"label:AttachmentLayout-classes-titleAndNoticeAndMetasWrapper"),s=S({justifyContent:"space-between"},"label:AttachmentLayout-classes-positionNoticeInCorner"),l=S({"&&":{...E.margin({right:e.gutter.half,bottom:2}),display:"inline-flex",...E.font({...e.fontSizeAndWeightVars("large")})}},"label:AttachmentLayout-classes-title"),c=S({display:"inline-flex !important",flexBasis:"content"},"label:AttachmentLayout-classes-inlineMetas"),d=S({display:"flex",flexBasis:"100%"},"label:AttachmentLayout-classes-metasRow"),f=Tn(),h=S({...kr(f.spacing.horizontal),marginRight:-f.spacing.horizontal,flexBasis:"fit-content"},"label:AttachmentLayout-classes-externalLinkWrapper"),m=S({display:"flex",height:"1lh",...E.clickable.itemState()},"label:AttachmentLayout-classes-externalLink"),g=S({...E.verticallyAlignInContainer(24,e.lineHeights.base)},"label:AttachmentLayout-classes-externalIcon"),p=S({textTransform:"uppercase",textAlign:"center"},"label:AttachmentLayout-classes-notice"),v=S({...E.margin(f.spacing)},"label:AttachmentLayout-classes-detailItem"),b=S({display:"flex",...E.clickable.itemState()},"label:AttachmentLayout-classes-detailLink"),y=S({...E.padding({top:e.gutter.quarter*3,bottom:e.gutter.size}),columnGap:e.gutter.size,columnCount:2,columnWidth:220,[`> .${v}`]:{display:"inline-block",width:"100%",...E.margin({all:"0",bottom:e.gutter.half})}},"label:AttachmentLayout-classes-details"),C=S({...E.font({...f.font})},"label:AttachmentLayout-classes-detailLabel"),D=S({},"label:AttachmentLayout-classes-detailValue"),A=S({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:4,...E.font({...e.fontSizeAndWeightVars("medium")}),color:P.colorOut(e.elementaryColors.darkText),...E.linkDecoration()},"label:AttachmentLayout-classes-userMetaValue");return{root:t,logoSection:n,logoWrapper:r,textSection:o,header:a,titleAndNoticeAndMetasWrapper:i,positionNoticeInCorner:s,title:l,inlineMetas:c,metasRow:d,notice:p,externalLinkWrapper:h,externalLink:m,externalIcon:g,details:y,detailItem:v,detailLabel:C,detailLink:b,detailValue:D,userMetaValue:A,tokens:S({display:"flex",flexWrap:"wrap",gap:4},"label:AttachmentLayout-classes-tokens"),attchmentTypeWrapper:S({marginRight:16},"label:AttachmentLayout-classes-attchmentTypeWrapper"),aiEscalationMetaIcon:S({display:"inline-flex",alignItems:"center",gap:"6px",marginInlineStart:"6px"},"label:AttachmentLayout-classes-aiEscalationMetaIcon")}});function Tft(e){var b;const{icon:t,title:n,notice:r,url:o,id:a,idLabel:i,dateUpdated:s,user:l,metadata:c,attachmentTypeIcon:d,metas:f}=e,h=Ift(),m=r&&!d?u.jsx(Bn,{children:u.jsx(CV,{className:h.notice,children:r})}):null,g=!!o&&!!a&&!!i,v=!!m&&!(!!m&&g);return u.jsxs("div",{className:h.root,children:[u.jsx("div",{className:h.logoSection,children:!!t&&u.jsx("div",{className:h.logoWrapper,children:t})}),u.jsxs("div",{className:h.textSection,children:[u.jsxs("div",{className:h.header,children:[u.jsxs("div",{className:ge(h.titleAndNoticeAndMetasWrapper,{[h.positionNoticeInCorner]:v}),children:[!!n&&u.jsx("h5",{className:h.title,children:n}),(!!m||!!f)&&u.jsxs(ph,{className:h.inlineMetas,children:[m," ",f]}),u.jsx(ph,{className:h.metasRow,children:!!s&&!!l&&u.jsx(Bn,{children:u.jsx(dn,{source:"Last refreshed <0/> by <1/>.",c0:u.jsx(Uo,{timestamp:s}),c1:u.jsx(ai,{className:Aa().metaLink,userFragment:l})})})})]}),d&&u.jsx("div",{className:h.attchmentTypeWrapper,children:d}),g&&u.jsx("div",{className:h.externalLinkWrapper,children:u.jsxs("div",{className:h.detailItem,children:[u.jsx("div",{className:h.detailLabel,children:i}),u.jsx("div",{className:h.detailValue,children:u.jsxs(wr,{to:o,className:h.externalLink,children:[u.jsx("strong",{children:a}),u.jsx(Bt,{className:h.externalIcon,icon:"meta-external-compact"})]})})]})})]}),u.jsx("div",{className:h.details,children:(b=c??[])==null?void 0:b.map((y,C)=>{var A;let D=y.value;switch(y.format){case"user":D=u.jsxs(ai,{className:h.userMetaValue,userFragment:y.userFragment,isUserCard:!0,children:[u.jsx(Yi,{userInfo:y.userFragment,size:ho.XSMALL}),u.jsx("span",{children:y.userFragment.name})]});break;case"date-time":D=u.jsx(u.Fragment,{children:(y==null?void 0:y.value)&&u.jsx(Uo,{timestamp:(A=y.value)==null?void 0:A.toString(),mode:"fixed",type:WE.EXTENDED})});break;default:D=y.value}return y.labelCode&&y.url&&(D=u.jsxs(wr,{to:y.url,className:h.detailLink,children:[D,u.jsx(Bt,{className:h.externalIcon,icon:"meta-external-compact",size:"default"})]})),Array.isArray(y.value)&&(D=u.jsx("div",{className:h.tokens,children:y.value.map((T,B)=>u.jsx($U,{children:T},`${T}${B}`))})),u.jsxs("div",{className:h.detailItem,children:[u.jsx("div",{className:h.detailLabel,children:k(y.labelCode)}),u.jsx("div",{className:h.detailValue,children:D})]},C)})})]})]})}var _4;(function(e){e.ACCEPTED="accepted",e.REJECTED="rejected",e.PENDING="pending"})(_4||(_4={}));var F4;(function(e){e.OLDEST="dateInserted",e.NEWEST="-dateInserted",e.TOP="-score",e.TRENDING="-experimentalTrending"})(F4||(F4={}));re(()=>{const e=(c=!1)=>S({marginTop:16,...c&&{textAlign:"center"}},"label:DiscussionThread-classes-title"),t=S({borderTop:wt({color:P.colorOut(ee().border.color),width:1}),borderBottom:wt({color:P.colorOut(ee().border.color),width:1}),...E.padding(ee().itemList.padding)},"label:DiscussionThread-classes-containerWithTopBottomBorder"),n=S({...E.margin({horizontal:"1em"}),verticalAlign:"middle"},"label:DiscussionThread-classes-closedTag"),r=S({marginInlineStart:12,"& svg":{verticalAlign:"middle"}},"label:DiscussionThread-classes-resolved"),o=S({flexShrink:0,inlineMarginStart:4,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"4px inherit","& svg":{transform:"translateY(-1%)"}},"label:DiscussionThread-classes-reportsTag"),a=S({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:16,marginBottom:"6px"},"label:DiscussionThread-classes-sortPagerRow"),i=S({paddingTop:0,paddingBottom:0},"label:DiscussionThread-classes-topPager"),s=S({display:"flex",flexDirection:"column",gap:4,...p8()},"label:DiscussionThread-classes-trendingTooltip");return{title:e,containerWithTopBottomBorder:t,closedTag:n,resolved:r,reportsTag:o,sortPagerRow:a,topPager:i,trendingTooltip:s,trendingMathMl:S({fontSize:"16px !important"},"label:DiscussionThread-classes-trendingMathMl")}});function ev(e){const{attachment:t}=e,{state:n,status:r,sourceUrl:o,sourceID:a,dateUpdated:i,dateInserted:s,metadata:l,insertUser:c}=t,d=obe(),f=(d==null?void 0:d.title)??"Unknown Integration",h=(d==null?void 0:d.externalIDLabel)??"Unknown #",m=(d==null?void 0:d.logoIcon)??"meta-external",g=d==null?void 0:d.attachmentTypeIcon,p=ev.additionalMetaItems.filter(({shouldRender:v})=>v(t)).map(({component:v},b)=>u.jsx(v,{attachment:t},b));return u.jsx(Tft,{title:f,notice:n??r,url:o,idLabel:h,icon:u.jsx(Bt,{icon:m,height:60,width:60}),attachmentTypeIcon:g?u.jsx(Bt,{icon:g}):void 0,id:a?`${a}`:void 0,dateUpdated:i??s,user:c,metadata:l,metas:p.length>0?p:void 0})}ev.additionalMetaItems=[];ev.registerMetaItem=(e,t)=>{ev.additionalMetaItems.push({component:e,shouldRender:t})};function Aft(e){var n;const{attachments:t}=e;return!t||t.length===0?u.jsx("div",{}):u.jsx("div",{children:(n=e.attachments)==null?void 0:n.map((r,o)=>u.jsx(abe,{attachmentType:r.attachmentType,children:u.jsx(ev,{attachment:r},o)},r.attachmentID))})}function Oft(e){return u.jsx(Bft,{...e})}function Bft(e){const{isAuthor:t}=e,n=JO().filter(r=>r.recordTypes.includes(e.recordType)).filter(({writeableContentScope:r})=>r==="own"?t:!0);return n.length>0?u.jsx(u.Fragment,{children:n.map(r=>u.jsx($z,{recordType:e.recordType,attachmentType:r.attachmentType,recordID:e.recordID,children:u.jsx(xV,{onSuccess:async()=>{window.location.href=e.redirectTarget}})},r.attachmentType))}):null}const kft=()=>{const e=S({...E.margin({vertical:16})},"label:LegacyTrollComment-root"),t=S({display:"flex",...E.margin({vertical:16}),alignItems:"center",gap:8,"& > span":{display:"flex",alignSelf:"start",alignItems:"center",gap:4}},"label:LegacyTrollComment-layout");return{root:e,layout:t,blurContainer:S({"&[data-visible='false']":{filter:"blur(5px)"}},"label:LegacyTrollComment-blurContainer")}};function Pft(e){const t=kft(),[n,r]=x.useState(!1);return u.jsxs("div",{className:t.root,children:[u.jsx(kE,{content:e.hideText}),u.jsxs("div",{className:t.layout,children:[u.jsx("span",{children:u.jsx(In,{label:k(n?"Hide this content":"Show this content"),children:u.jsx(ut,{buttonType:ye.ICON_COMPACT,onClick:()=>r(!n),children:n?u.jsx(Bt,{icon:"editor-eye"}):u.jsx(Bt,{icon:"editor-eye-slash"})})})}),u.jsx("div",{className:t.blurContainer,"data-visible":n,children:u.jsx(kE,{content:e.comment})})]})]})}Wh("forum",wft);an("HomeWidget",cG,{overwrite:!0});an("DiscussionListModule",TV,{overwrite:!0});an("DiscussionDiscussionsWidget",XV,{overwrite:!0});an("DiscussionAnnouncementsWidget",XV,{overwrite:!0});an("QuickLinks",$v,{overwrite:!0});an("CallToAction",zU,{overwrite:!0});an("UserSpotlight",IG,{overwrite:!0});an("SearchWidget",_3e,{overwrite:!0});an("CategoryPicker",x4e,{overwrite:!0});an("CategoryFollowDropDown",Bk,{overwrite:!0});an("TabWidget",c5e,{overwrite:!0});an("NewPostMenu",A3e,{overwrite:!0});an("LeaderboardWidget",w4e,{overwrite:!0});an("CategoriesWidget",pMe,{overwrite:!0});an("RSSWidget",R3e,{overwrite:!0});an("UserSpotlightWidget",f5e,{overwrite:!0});an("CallToActionWidget",sLe,{overwrite:!0});an("AboutMeWidget",M2e,{overwrite:!0});an("ProfileOverviewWidget",P3e,{overwrite:!0});an("ProfileAnalyticsWidget",k3e,{overwrite:!0});an("AccountSettings",Ag,{overwrite:!0});an("EditProfileFields",bMe,{overwrite:!0});an("FollowedContent",p4e,{overwrite:!0});an("NotificationPreferences",q$e,{overwrite:!0});an("LegacyThreadAttachmentsAsset",Aft);an("LegacyIntegrationsOptionsMenuItems",Oft);an("TrollComment",Pft);gh.setOptionProvider(new Eft);gft();Wc(()=>{vft()});PO.addRoutes([u5e.route]);iv("click",".js-addDiscussionToCollection",(e,t)=>{e.preventDefault();const n=t.getAttribute("data-discussionID")||null,r=t.getAttribute("data-recordType");if(n===null)return;const o=parseInt(n,10);lz(u.jsx(bV,{initialVisibility:!0,recordID:o,recordType:r,modalOnly:!0}))});iv("click",".js-legacyDiscussionOrCommentReport",(e,t)=>{e.preventDefault();const n=t.getAttribute("data-recordID"),r=t.getAttribute("data-recordType"),o=t.getAttribute("data-categoryID"),a=t.getAttribute("data-discussionName");!n||!r||!a||!o||lz(u.jsx(BI,{discussionName:a,recordID:parseInt(n,10),recordType:r,placeRecordType:"category",placeRecordID:o,initialVisibility:!0,customTrigger:()=>null,isLegacyPage:!0}))});const lr=window.__VANILLA_ENABLED_ADDON_KEYS__;let pn=[];lr.includes("groups")&&(pn.push(mt(()=>import("../entries/addons/groups/common.CItIXtMr.min.js"),__vite__mapDeps([47,1,21,19,20]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'groups'",e))),pn.push(mt(()=>import("../chunks/forum.BYdx6GoZ.min.js").then(e=>e.p),__vite__mapDeps([48,1,49,25,50]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'groups'",e))));lr.includes("advancedsearch")&&pn.push(mt(()=>import("../entries/addons/AdvancedSearch/forum.DUX6VIuu.min.js"),[],import.meta.url).catch(e=>console.error("Error loading javascript for addon 'advancedsearch'",e)));lr.includes("elasticsearch")&&pn.push(mt(()=>import("../entries/addons/ElasticSearch/common.CrJ3AZ6b.min.js"),__vite__mapDeps([51,1,52]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'elasticsearch'",e)));lr.includes("federatedsearch")&&pn.push(mt(()=>import("../entries/addons/FederatedSearch/common.Br4i8me8.min.js"),__vite__mapDeps([53,1,19,20,18,23,54]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'federatedsearch'",e)));lr.includes("jira")&&pn.push(mt(()=>import("../entries/addons/Jira/forum.CTIrkLuE.min.js"),__vite__mapDeps([55,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'jira'",e)));lr.includes("online")&&pn.push(mt(()=>import("../entries/addons/Online/forum.QcudYmME.min.js"),__vite__mapDeps([56,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'online'",e)));lr.includes("polls")&&pn.push(mt(()=>import("../entries/addons/Polls/common.BTUIukEo.min.js"),__vite__mapDeps([57,1,30,19,20]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'polls'",e)));lr.includes("qna")&&(pn.push(mt(()=>import("../entries/addons/QnA/common.DO1Cejak.min.js"),__vite__mapDeps([58,1,30,19,20,59,60,61,50,37]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'qna'",e))),pn.push(mt(()=>import("../entries/addons/QnA/forum.CS484KQK.min.js"),__vite__mapDeps([62,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'qna'",e))));lr.includes("ranks")&&pn.push(mt(()=>import("../entries/addons/Ranks/common.DvLhoT_Q.min.js"),__vite__mapDeps([63,52,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'ranks'",e)));lr.includes("salesforce")&&pn.push(mt(()=>import("../entries/addons/Salesforce/forum.DGKbZKg_.min.js"),__vite__mapDeps([64,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'salesforce'",e)));lr.includes("sentimentanalysis")&&pn.push(mt(()=>import("../entries/addons/SentimentAnalysis/common.kLXUnix5.min.js"),__vite__mapDeps([65,59,1,60,61,50,37]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'sentimentanalysis'",e)));lr.includes("translationsapi")&&pn.push(mt(()=>import("../entries/addons/TranslationsApi/common.Bi2ihcDS.min.js"),__vite__mapDeps([66,1,67]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'translationsapi'",e)));lr.includes("zendesk")&&pn.push(mt(()=>import("../entries/addons/Zendesk/forum.AGTb0ZrV.min.js"),__vite__mapDeps([68,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'zendesk'",e)));lr.includes("badges")&&(pn.push(mt(()=>import("../entries/addons/badges/common.BV6PXzcq.min.js"),__vite__mapDeps([69,1,70]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'badges'",e))),pn.push(mt(()=>import("../entries/addons/badges/forum.BiYS8zE7.min.js"),__vite__mapDeps([71,1,70]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'badges'",e))));lr.includes("ideation")&&(pn.push(mt(()=>import("../entries/addons/ideation/common.83N983w5.min.js"),__vite__mapDeps([72,1,30,19,20,59,60,61,50,37]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'ideation'",e))),pn.push(mt(()=>import("../entries/addons/ideation/forum.C1wPDLuy.min.js"),__vite__mapDeps([73,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'ideation'",e))));lr.includes("knowledge")&&(pn.push(mt(()=>import("../entries/addons/knowledge/common.BtF--GC7.min.js"),__vite__mapDeps([74,1,21,19,20]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'knowledge'",e))),pn.push(mt(()=>import("../chunks/forum.B9JxbiQY.min.js").then(e=>e.m),__vite__mapDeps([75,1,76,35,77]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'knowledge'",e))));lr.includes("rich-editor")&&pn.push(mt(()=>import("../entries/addons/rich-editor/forum.DGlcBW0_.min.js"),__vite__mapDeps([78,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'rich-editor'",e)));lr.includes("sitehubshared")&&pn.push(mt(()=>import("../entries/addons/sitehubshared/common.DGT0irQN.min.js"),__vite__mapDeps([79,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'sitehubshared'",e)));lr.includes("subcommunities")&&(pn.push(mt(()=>import("../entries/addons/subcommunities/common.C3hyJglm.min.js"),__vite__mapDeps([80,1,67,19,20]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'subcommunities'",e))),pn.push(mt(()=>import("../entries/addons/subcommunities/forum.CPCzs_8o.min.js"),__vite__mapDeps([81,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'subcommunities'",e))));lr.includes("vanillaanalytics")&&(pn.push(mt(()=>import("../entries/addons/vanillaanalytics/common.DgCRYFKW.min.js"),__vite__mapDeps([82,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'vanillaanalytics'",e))),pn.push(mt(()=>import("../entries/addons/vanillaanalytics/forum.DKfsV87b.min.js"),__vite__mapDeps([83,1]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'vanillaanalytics'",e))));lr.includes("zoom")&&pn.push(mt(()=>import("../entries/addons/zoom/forum.DjzEcln0.min.js"),__vite__mapDeps([84,1,85]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'zoom'",e)));lr.includes("lavendermoon")&&pn.push(mt(()=>import("../entries/addons/lavendermoon/forum.CiSO8u5B.min.js"),__vite__mapDeps([86,87]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'lavendermoon'",e)));lr.includes("lavendersun")&&pn.push(mt(()=>import("../entries/addons/lavendersun/forum.CiSO8u5B.min.js"),__vite__mapDeps([88,87]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'lavendersun'",e)));lr.includes("theme-foundation")&&pn.push(mt(()=>import("../entries/addons/theme-foundation/forum.CiSO8u5B.min.js"),__vite__mapDeps([89,87]),import.meta.url).catch(e=>console.error("Error loading javascript for addon 'theme-foundation'",e)));Promise.all(pn).then(async e=>{console.log("addon dependencies loaded",e.length),await Xde()});export{Xxe as $,bW as A,Z as B,LW as C,La as D,Qh as E,wo as F,fg as G,ro as H,ae as I,Sv as J,ye as K,X as L,E as M,Rge as N,Cr as O,$xe as P,tn as Q,br as R,YH as S,nmt as T,aC as U,ce as V,Bn as W,Mv as X,ys as Y,cB as Z,mt as _,Ave as a,Zht as a$,Ge as a0,nj as a1,die as a2,aE as a3,$U as a4,WE as a5,Uo as a6,xr as a7,ph as a8,Aa as a9,dV as aA,TI as aB,uC as aC,Ra as aD,vLe as aE,Fv as aF,lMe as aG,uMe as aH,mC as aI,eG as aJ,jI as aK,d4e as aL,Rk as aM,fle as aN,Jc as aO,u1 as aP,kk as aQ,i4e as aR,dn as aS,PO as aT,an as aU,iv as aV,JV as aW,Wh as aX,lz as aY,fh as aZ,vg as a_,Ry as aa,Ci as ab,Kh as ac,qh as ad,wr as ae,mr as af,ao as ag,jt as ah,im as ai,Uc as aj,lm as ak,hg as al,xs as am,Lv as an,wI as ao,no as ap,El as aq,ut as ar,t1 as as,Sht as at,Ln as au,un as av,Gc as aw,Us as ax,Ct as ay,ha as az,fmt as b,DO as b$,Ove as b0,w3 as b1,Z0 as b2,Oc as b3,ni as b4,p$e as b5,so as b6,r1 as b7,n1 as b8,Bt as b9,Do as bA,Q as bB,HO as bC,Ro as bD,Wme as bE,Lk as bF,Ri as bG,w1 as bH,H8 as bI,K0 as bJ,it as bK,hs as bL,oj as bM,pht as bN,In as bO,ky as bP,bt as bQ,lmt as bR,Xi as bS,Ree as bT,Nn as bU,Tpe as bV,Le as bW,Ape as bX,zo as bY,as as bZ,G3e as b_,oa as ba,zT as bb,Hc as bc,Tt as bd,UT as be,Ni as bf,ti as bg,Kt as bh,Vce as bi,zn as bj,mn as bk,jht as bl,$ht as bm,ho as bn,ai as bo,Yi as bp,uh as bq,E2e as br,emt as bs,Lxe as bt,la as bu,pr as bv,Pr as bw,TV as bx,$h as by,Bv as bz,mv as c,Hz as c$,oi as c0,k8 as c1,Dn as c2,Ad as c3,vht as c4,PB as c5,q6 as c6,R3 as c7,yv as c8,x2e as c9,KNe as cA,Qy as cB,xfe as cC,Rc as cD,P8 as cE,N8 as cF,$i as cG,pO as cH,kme as cI,rS as cJ,So as cK,j8 as cL,y2 as cM,u1e as cN,smt as cO,imt as cP,iI as cQ,d1 as cR,H6 as cS,f1 as cT,dht as cU,Es as cV,pbe as cW,amt as cX,$2e as cY,Uz as cZ,VE as c_,Ps as ca,Ov as cb,sm as cc,ir as cd,y2e as ce,vi as cf,g2e as cg,w2e as ch,Z6 as ci,Jht as cj,vY as ck,m7e as cl,g7e as cm,_9e as cn,pP as co,bY as cp,t9 as cq,Ff as cr,jO as cs,If as ct,Yt as cu,Xht as cv,rmt as cw,Tve as cx,oo as cy,Na as cz,Gt as d,Ta as d$,UE as d0,L8 as d1,xge as d2,yh as d3,Ea as d4,Y3e as d5,Oy as d6,us as d7,Nme as d8,hmt as d9,Bht as dA,a4e as dB,Ac as dC,Kht as dD,cy as dE,yf as dF,Hn as dG,jn as dH,Gi as dI,Qft as dJ,Xs as dK,nA as dL,xk as dM,QT as dN,et as dO,Lht as dP,qi as dQ,Vft as dR,Bc as dS,vme as dT,rv as dU,n$e as dV,iC as dW,Ik as dX,rV as dY,ZA as dZ,Xce as d_,jh as da,WH as db,zH as dc,HH as dd,Mht as de,vh as df,EE as dg,dfe as dh,uf as di,Jh as dj,jc as dk,A2 as dl,Ege as dm,Rr as dn,oA as dp,sC as dq,Wht as dr,Ki as ds,sr as dt,Pc as du,pMe as dv,Id as dw,E6 as dx,Ok as dy,Kft as dz,_A as e,gO as e$,gv as e0,hW as e1,yz as e2,yt as e3,Gh as e4,a1 as e5,hLe as e6,Ive as e7,gL as e8,GH as e9,Dht as eA,gme as eB,qht as eC,Jp as eD,Xft as eE,Td as eF,rve as eG,bht as eH,Afe as eI,cfe as eJ,vv as eK,bl as eL,ca as eM,ki as eN,KFe as eO,_W as eP,afe as eQ,dc as eR,n4e as eS,Yft as eT,mmt as eU,pee as eV,Tn as eW,ld as eX,Un as eY,hr as eZ,lfe as e_,omt as ea,Axe as eb,sB as ec,u4e as ed,t5e as ee,Yht as ef,Vc as eg,UH as eh,qH as ei,Sa as ej,BO as ek,fS as el,lme as em,Pht as en,kht as eo,Xt as ep,NFe as eq,Rht as er,TU as es,Yh as et,C1 as eu,mh as ev,see as ew,B8 as ex,zU as ey,Fbe as ez,Vi as f,D9e as f$,YW as f0,Efe as f1,mht as f2,N3 as f3,rfe as f4,ofe as f5,Og as f6,jge as f7,Nge as f8,nfe as f9,Gce as fA,bv as fB,Fc as fC,ei as fD,Wee as fE,Gft as fF,lT as fG,uY as fH,Wg as fI,Ppt as fJ,de as fK,Gs as fL,Z_ as fM,C6e as fN,Nmt as fO,Ce as fP,cpt as fQ,gmt as fR,px as fS,Imt as fT,B9e as fU,km as fV,tu as fW,cT as fX,Mmt as fY,zmt as fZ,WK as f_,Dl as fa,ght as fb,CO as fc,kE as fd,V6 as fe,tfe as ff,Ofe as fg,zx as fh,Sy as fi,wxe as fj,E0 as fk,$H as fl,MH as fm,_H as fn,P1 as fo,Exe as fp,Vht as fq,Ght as fr,FH as fs,Ixe as ft,xa as fu,l1 as fv,oM as fw,bk as fx,wa as fy,yE as fz,re as g,Kmt as g$,Fmt as g0,zi as g1,SC as g2,Tmt as g3,hY as g4,_mt as g5,Gmt as g6,Amt as g7,vmt as g8,Bm as g9,spt as gA,cmt as gB,umt as gC,$mt as gD,aY as gE,b9e as gF,LVe as gG,_g as gH,S9e as gI,ji as gJ,aee as gK,m1 as gL,I9e as gM,T9e as gN,Umt as gO,bce as gP,K6 as gQ,Pe as gR,Lft as gS,Ade as gT,Ztt as gU,lq as gV,Rtt as gW,zC as gX,dpt as gY,Uft as gZ,pmt as g_,EP as ga,ZY as gb,QK as gc,Pm as gd,apt as ge,Qmt as gf,ept as gg,Xmt as gh,Jmt as gi,Zmt as gj,tpt as gk,opt as gl,JK as gm,ipt as gn,bmt as go,RJe as gp,VF as gq,rpt as gr,lf as gs,qmt as gt,AD as gu,Op as gv,npt as gw,Mpt as gx,E8e as gy,ymt as gz,dh as h,hpt as h$,Wi as h0,Ymt as h1,DC as h2,dP as h3,xmt as h4,Vmt as h5,Npt as h6,jpt as h7,fpt as h8,zh as h9,bpt as hA,iht as hB,Nft as hC,TD as hD,ub as hE,WC as hF,aht as hG,sht as hH,Fg as hI,Sge as hJ,Fst as hK,kpt as hL,Ust as hM,qst as hN,Hft as hO,x0e as hP,bT as hQ,pW as hR,Fft as hS,eht as hT,Cge as hU,Wpt as hV,D1 as hW,Fpt as hX,hee as hY,dnt as hZ,g$e as h_,Dpt as ha,Tfe as hb,Ai as hc,Lpt as hd,ppt as he,Rpt as hf,P9e as hg,Vst as hh,wmt as hi,xht as hj,_e as hk,Dy as hl,Smt as hm,Spt as hn,k9e as ho,cY as hp,wpt as hq,m9e as hr,Lmt as hs,I4 as ht,Wst as hu,_pt as hv,Ept as hw,Bpt as hx,uP as hy,O9e as hz,ee as i,CE as i$,TJe as i0,dft as i1,mP as i2,z_ as i3,A9e as i4,$pt as i5,Omt as i6,Emt as i7,H_ as i8,Opt as i9,Apt as iA,Kst as iB,lpt as iC,gpt as iD,jmt as iE,Cmt as iF,wC as iG,Bmt as iH,xpt as iI,ypt as iJ,cft as iK,v$e as iL,nx as iM,ibe as iN,r$e as iO,dmt as iP,wv as iQ,Tht as iR,LO as iS,iO as iT,TW as iU,mO as iV,Dde as iW,Go as iX,Fh as iY,xde as iZ,Cde as i_,Wt as ia,kmt as ib,oY as ic,nY as id,Tpt as ie,upt as ig,Dmt as ih,rY as ii,Cpt as ij,y9e as ik,lY as il,mpt as im,pnt as io,Gst as ip,gx as iq,Ipt as ir,Wmt as is,fP as it,vpt as iu,Pmt as iv,Rmt as iw,hnt as ix,fo as iy,Hmt as iz,C2e as j,zD as j$,nV as j0,x$e as j1,rht as j2,Aht as j3,Oht as j4,Cht as j5,ms as j6,iMe as j7,tht as j8,Lp as j9,js as jA,EW as jB,Fz as jC,C7e as jD,yht as jE,Dae as jF,jU as jG,I6 as jH,va as jI,A2e as jJ,LU as jK,b4e as jL,bM as jM,mfe as jN,Qht as jO,jz as jP,Ly as jQ,QA as jR,nE as jS,Jft as jT,Hh as jU,$ft as jV,uft as jW,hfe as jX,cht as jY,Zft as jZ,g4e as j_,Mce as ja,nht as jb,zp as jc,eue as jd,Bu as je,VO as jf,iA as jg,Abe as jh,qft as ji,Mve as jj,Uht as jk,Dbe as jl,En as jm,tmt as jn,NO as jo,Pi as jp,Eht as jq,zMe as jr,Iht as js,yV as jt,Fht as ju,Nht as jv,oee as jw,Lee as jx,SFe as jy,Az as jz,Pge as k,Lo as k0,Zn as k1,xv as k2,g1 as k3,$f as k4,lht as k5,wht as k6,S1 as k7,gl as k8,wy as k9,Qz as kA,Za as kB,Iu as kC,oht as kD,zft as kE,Wft as kF,fc as ka,uht as kb,hht as kc,ufe as kd,eo as ke,uOe as kf,Dd as kg,fC as kh,dO as ki,Xh as kj,DE as kk,Qf as kl,fht as km,Mft as kn,zZ as ko,cd as kp,ave as kq,gh as kr,vm as ks,cG as kt,bC as ku,XH as kv,Dft as kw,KO as kx,dt as ky,_ft as kz,Ht as l,wt as m,kr as n,Wc as o,fa as p,w as q,_ht as r,zr as s,k as t,Cd as u,qe as v,P as w,je as x,em as y,vW as z};
